@ckeditor/ckeditor5-operations-compressor
Advanced tools
Comparing version 1.1.1 to 1.1.2
Changelog | ||
========= | ||
## 1.1.2 (2019-07-04) | ||
### Bug fixes | ||
* Undone user selection changes will now be properly recognized by the operations compressor. | ||
## 1.1.1 (2019-03-06) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-operations-compressor", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "CKEditor 5 operations compressor for real-time collaboration.", | ||
@@ -30,2 +30,3 @@ "license": "SEE LICENSE IN LICENSE.md", | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-utils": "^13.0.0", | ||
"lodash-es": "^4.17.11", | ||
@@ -32,0 +33,0 @@ "protobufjs": "^6.8.8" |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x3c0f=['compress','length','shift','push','buffers','decompress','types'];(function(_0x5427ab,_0x54e6e3){var _0xb5f92e=function(_0x32b230){while(--_0x32b230){_0x5427ab['push'](_0x5427ab['shift']());}};_0xb5f92e(++_0x54e6e3);}(_0x3c0f,0x7e));var _0x38c0=function(_0x21f362,_0x3ac0cb){_0x21f362=_0x21f362-0x0;var _0x398544=_0x3c0f[_0x21f362];return _0x398544;};import{cloneDeep}from'lodash-es';export default class ActionCompressor{constructor(_0x14b160,_0x295d0a){this['id']=_0x14b160,this['s']=_0x295d0a;}[_0x38c0('0x0')](_0x2c5b62,_0x8488b6){let _0x4e406b;for(;_0x8488b6[_0x38c0('0x1')]>0x1&&this['o'](_0x8488b6[0x0],_0x8488b6[0x1]);)_0x4e406b?(_0x4e406b=this['e'](_0x8488b6[_0x38c0('0x2')](),_0x4e406b),_0x2c5b62['types']['push'](0x0)):(_0x4e406b=cloneDeep(_0x8488b6[_0x38c0('0x2')]()),_0x2c5b62['types']['push'](this['id']));return!!_0x4e406b&&(_0x4e406b=this['e'](_0x8488b6[_0x38c0('0x2')](),_0x4e406b),_0x2c5b62['types'][_0x38c0('0x3')](0x0),_0x2c5b62[_0x38c0('0x4')][_0x38c0('0x3')](this['r'](_0x4e406b)),!0x0);}[_0x38c0('0x5')](_0x5aa95f,_0x2cfbc4){const _0x455448=this['i'](_0x2cfbc4);for(;0x0==_0x2cfbc4['types'][0x0];)_0x2cfbc4[_0x38c0('0x6')][_0x38c0('0x2')](),_0x5aa95f[_0x38c0('0x3')](this['h'](_0x455448));_0x5aa95f[_0x38c0('0x3')](_0x455448);}}; | ||
var _0x36ff=['decompress','compress','length','shift','types','push','buffers'];(function(_0x2595c4,_0x495638){var _0x4d857f=function(_0x83f0e5){while(--_0x83f0e5){_0x2595c4['push'](_0x2595c4['shift']());}};_0x4d857f(++_0x495638);}(_0x36ff,0x166));var _0x1cf5=function(_0x77cf62,_0xd90fb8){_0x77cf62=_0x77cf62-0x0;var _0x16e7f0=_0x36ff[_0x77cf62];return _0x16e7f0;};import{cloneDeep}from'lodash-es';export default class ActionCompressor{constructor(_0xaf2b74,_0x7de9cf){this['id']=_0xaf2b74,this['s']=_0x7de9cf;}[_0x1cf5('0x0')](_0x6eea06,_0x364cac){let _0x2cd83c;for(;_0x364cac[_0x1cf5('0x1')]>0x1&&this['o'](_0x364cac[0x0],_0x364cac[0x1]);)_0x2cd83c?(_0x2cd83c=this['e'](_0x364cac[_0x1cf5('0x2')](),_0x2cd83c),_0x6eea06[_0x1cf5('0x3')][_0x1cf5('0x4')](0x0)):(_0x2cd83c=cloneDeep(_0x364cac['shift']()),_0x6eea06[_0x1cf5('0x3')][_0x1cf5('0x4')](this['id']));return!!_0x2cd83c&&(_0x2cd83c=this['e'](_0x364cac[_0x1cf5('0x2')](),_0x2cd83c),_0x6eea06['types']['push'](0x0),_0x6eea06[_0x1cf5('0x5')][_0x1cf5('0x4')](this['r'](_0x2cd83c)),!0x0);}[_0x1cf5('0x6')](_0xb885df,_0x4d40e9){const _0x1dfc2a=this['i'](_0x4d40e9);for(;0x0==_0x4d40e9[_0x1cf5('0x3')][0x0];)_0x4d40e9['types'][_0x1cf5('0x2')](),_0xb885df['push'](this['h'](_0x1dfc2a));_0xb885df[_0x1cf5('0x4')](_0x1dfc2a);}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x311b=['targetPosition','MoveOperation','decompress','__className','wasUndone','sourcePosition','howMany'];(function(_0x415865,_0x2569de){var _0x48fd1f=function(_0x387566){while(--_0x387566){_0x415865['push'](_0x415865['shift']());}};_0x48fd1f(++_0x2569de);}(_0x311b,0xa6));var _0x4e35=function(_0x156cba,_0x8fce83){_0x156cba=_0x156cba-0x0;var _0x15559e=_0x311b[_0x156cba];return _0x15559e;};import _0x2cdb36 from'./actioncompressor';import{arePositionsEqual,getPositionShiftedBy}from'../utils';import{cloneDeep}from'lodash-es';export default class DeletingActionCompressor extends _0x2cdb36{['e'](e,o){return o['howMany']++,o[_0x4e35('0x0')]=cloneDeep(e[_0x4e35('0x0')]),o;}['h'](e){const o=cloneDeep(e);return e['howMany']--,o[_0x4e35('0x1')]=0x1,o[_0x4e35('0x0')]=getPositionShiftedBy(o[_0x4e35('0x0')],e[_0x4e35('0x1')]),o;}['o'](e,o){return!(!_checkOperation(e)||!_checkOperation(o))&&(arePositionsEqual(getPositionShiftedBy(e[_0x4e35('0x0')],-0x1),o[_0x4e35('0x0')])&&arePositionsEqual(e[_0x4e35('0x2')],o[_0x4e35('0x2')]));}['r'](e){const o={'types':[],'buffers':[],'baseVersion':0x0};return this['s']['n'](_0x4e35('0x3'))['compress'](o,[e]),o['buffers'][0x0];}['i'](e){const o=[];return this['s']['n'](_0x4e35('0x3'))[_0x4e35('0x4')](o,e),o[0x0];}};function _checkOperation(e){return'MoveOperation'==e[_0x4e35('0x5')]&&'$graveyard'==e[_0x4e35('0x2')]['root']&&0x1==e[_0x4e35('0x1')]&&!e[_0x4e35('0x6')];} | ||
var _0x385f=['MoveOperation','compress','decompress','__className','$graveyard','wasUndone','howMany','sourcePosition','targetPosition','_getCompressorByName'];(function(_0x22268a,_0x463cee){var _0x40f608=function(_0x4903e2){while(--_0x4903e2){_0x22268a['push'](_0x22268a['shift']());}};_0x40f608(++_0x463cee);}(_0x385f,0x10a));var _0x36cc=function(_0x3c6aec,_0x3a7a26){_0x3c6aec=_0x3c6aec-0x0;var _0x25622b=_0x385f[_0x3c6aec];return _0x25622b;};import _0x292632 from'./actioncompressor';import{arePositionsEqual,getPositionShiftedBy}from'../utils';import{cloneDeep}from'lodash-es';export default class DeletingActionCompressor extends _0x292632{['e'](e,o){return o[_0x36cc('0x0')]++,o[_0x36cc('0x1')]=cloneDeep(e['sourcePosition']),o;}['h'](e){const o=cloneDeep(e);return e[_0x36cc('0x0')]--,o['howMany']=0x1,o[_0x36cc('0x1')]=getPositionShiftedBy(o[_0x36cc('0x1')],e[_0x36cc('0x0')]),o;}['o'](e,o){return!(!_checkOperation(e)||!_checkOperation(o))&&(arePositionsEqual(getPositionShiftedBy(e[_0x36cc('0x1')],-0x1),o['sourcePosition'])&&arePositionsEqual(e[_0x36cc('0x2')],o[_0x36cc('0x2')]));}['r'](e){const o={'types':[],'buffers':[],'baseVersion':0x0};return this['s'][_0x36cc('0x3')](_0x36cc('0x4'))[_0x36cc('0x5')](o,[e]),o['buffers'][0x0];}['i'](e){const o=[];return this['s']['_getCompressorByName'](_0x36cc('0x4'))[_0x36cc('0x6')](o,e),o[0x0];}};function _checkOperation(e){return'MoveOperation'==e[_0x36cc('0x7')]&&_0x36cc('0x8')==e[_0x36cc('0x2')]['root']&&0x1==e['howMany']&&!e[_0x36cc('0x9')];} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x1a9b=['root','wasUndone','howMany','sourcePosition','targetPosition','MoveOperation','compress','decompress','__className','$graveyard'];(function(_0x4b40fa,_0x2127ae){var _0x26d6a8=function(_0x2f605b){while(--_0x2f605b){_0x4b40fa['push'](_0x4b40fa['shift']());}};_0x26d6a8(++_0x2127ae);}(_0x1a9b,0x14c));var _0xe600=function(_0x5f08a5,_0x438c42){_0x5f08a5=_0x5f08a5-0x0;var _0x1d8afd=_0x1a9b[_0x5f08a5];return _0x1d8afd;};import _0x2915a4 from'./actioncompressor';import{arePositionsEqual}from'../utils';import{cloneDeep}from'lodash-es';export default class ForwardDeletingActionCompressor extends _0x2915a4{['e'](e,o){return o[_0xe600('0x0')]++,o;}['h'](e){const o=cloneDeep(e);return o[_0xe600('0x0')]=0x1,e[_0xe600('0x0')]--,o;}['o'](e,o){return!(!_checkOperation(e)||!_checkOperation(o))&&(arePositionsEqual(e[_0xe600('0x1')],o[_0xe600('0x1')])&&arePositionsEqual(e[_0xe600('0x2')],o[_0xe600('0x2')]));}['r'](e){const o={'types':[],'buffers':[],'baseVersion':0x0};return this['s']['n'](_0xe600('0x3'))[_0xe600('0x4')](o,[e]),o['buffers'][0x0];}['i'](e){const o=[];return this['s']['n'](_0xe600('0x3'))[_0xe600('0x5')](o,e),o[0x0];}};function _checkOperation(e){return'MoveOperation'==e[_0xe600('0x6')]&&_0xe600('0x7')==e[_0xe600('0x2')][_0xe600('0x8')]&&0x1==e[_0xe600('0x0')]&&!e[_0xe600('0x9')];} | ||
var _0xd2ed=['buffers','_getCompressorByName','decompress','$graveyard','wasUndone','howMany','sourcePosition','targetPosition','MoveOperation','compress'];(function(_0x39dfb7,_0x4ca6b6){var _0x54bf35=function(_0x2cf33c){while(--_0x2cf33c){_0x39dfb7['push'](_0x39dfb7['shift']());}};_0x54bf35(++_0x4ca6b6);}(_0xd2ed,0x113));var _0x3f9a=function(_0x27c503,_0x33674c){_0x27c503=_0x27c503-0x0;var _0x555d03=_0xd2ed[_0x27c503];return _0x555d03;};import _0x47a250 from'./actioncompressor';import{arePositionsEqual}from'../utils';import{cloneDeep}from'lodash-es';export default class ForwardDeletingActionCompressor extends _0x47a250{['e'](e,o){return o[_0x3f9a('0x0')]++,o;}['h'](e){const o=cloneDeep(e);return o[_0x3f9a('0x0')]=0x1,e[_0x3f9a('0x0')]--,o;}['o'](e,o){return!(!_checkOperation(e)||!_checkOperation(o))&&(arePositionsEqual(e[_0x3f9a('0x1')],o[_0x3f9a('0x1')])&&arePositionsEqual(e[_0x3f9a('0x2')],o[_0x3f9a('0x2')]));}['r'](e){const o={'types':[],'buffers':[],'baseVersion':0x0};return this['s']['_getCompressorByName'](_0x3f9a('0x3'))[_0x3f9a('0x4')](o,[e]),o[_0x3f9a('0x5')][0x0];}['i'](e){const o=[];return this['s'][_0x3f9a('0x6')](_0x3f9a('0x3'))[_0x3f9a('0x7')](o,e),o[0x0];}};function _checkOperation(e){return'MoveOperation'==e['__className']&&_0x3f9a('0x8')==e[_0x3f9a('0x2')]['root']&&0x1==e[_0x3f9a('0x0')]&&!e[_0x3f9a('0x9')];} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x4ee2=['compress','buffers','decompress','InsertOperation','wasUndone','keys','attributes','every','nodes','from','data','substr','position','length'];(function(_0x4be9ad,_0x3b22e5){var _0x577204=function(_0x7ea3ad){while(--_0x7ea3ad){_0x4be9ad['push'](_0x4be9ad['shift']());}};_0x577204(++_0x3b22e5);}(_0x4ee2,0x1ba));var _0x405d=function(_0x199a03,_0x482a95){_0x199a03=_0x199a03-0x0;var _0x51233d=_0x4ee2[_0x199a03];return _0x51233d;};import _0x635a61 from'./actioncompressor';import{arePositionsEqual,getPositionShiftedBy}from'../utils';import{cloneDeep}from'lodash-es';export default class TypingActionCompressor extends _0x635a61{['e'](e,t){return t[_0x405d('0x0')][0x0]['data']+=e['nodes'][0x0]['data'],t;}['h'](e){const t=cloneDeep(e),r=t[_0x405d('0x0')][0x0],o=e[_0x405d('0x0')][0x0],n=Array[_0x405d('0x1')](o[_0x405d('0x2')])[0x0],i=n['length'];return r[_0x405d('0x2')]=n,o[_0x405d('0x2')]=o[_0x405d('0x2')][_0x405d('0x3')](i),e[_0x405d('0x4')]=getPositionShiftedBy(e['position'],i),t;}['o'](e,t){if(_checkOperation(e)&&_checkOperation(t)){const r=e[_0x405d('0x0')][0x0][_0x405d('0x2')][_0x405d('0x5')],o=arePositionsEqual(getPositionShiftedBy(e[_0x405d('0x4')],r),t['position']),n=e[_0x405d('0x0')][0x0],i=t[_0x405d('0x0')][0x0];return o&&_compareAttributes(n,i);}return!0x1;}['r'](e){const t={'types':[],'buffers':[],'baseVersion':0x0};return this['s']['n']('InsertOperation')[_0x405d('0x6')](t,[e]),t[_0x405d('0x7')][0x0];}['i'](e){const t=[];return this['s']['n']('InsertOperation')[_0x405d('0x8')](t,e),t[0x0];}};function _checkOperation(e){return _0x405d('0x9')==e['__className']&&0x1==e[_0x405d('0x0')][_0x405d('0x5')]&&e[_0x405d('0x0')][0x0]['data']&&!e[_0x405d('0xa')]&&0x1==Array[_0x405d('0x1')](e[_0x405d('0x0')][0x0][_0x405d('0x2')])[_0x405d('0x5')];}function _compareAttributes(e,t){const r=Object[_0x405d('0xb')](e[_0x405d('0xc')]||{}),o=Object[_0x405d('0xb')](t[_0x405d('0xc')]||{});return r[_0x405d('0x5')]===o[_0x405d('0x5')]&&r[_0x405d('0xd')](r=>t[_0x405d('0xc')][r]&&t['attributes'][r]===e[_0x405d('0xc')][r]);} | ||
var _0x1fb0=['compress','buffers','__className','wasUndone','keys','attributes','every','nodes','from','data','length','position','_getCompressorByName','InsertOperation'];(function(_0x3f13d1,_0xe18f3f){var _0x3bb70f=function(_0x59f4a1){while(--_0x59f4a1){_0x3f13d1['push'](_0x3f13d1['shift']());}};_0x3bb70f(++_0xe18f3f);}(_0x1fb0,0x1f1));var _0x47af=function(_0x5cc656,_0xa60f54){_0x5cc656=_0x5cc656-0x0;var _0x123bbe=_0x1fb0[_0x5cc656];return _0x123bbe;};import _0x42777f from'./actioncompressor';import{arePositionsEqual,getPositionShiftedBy}from'../utils';import{cloneDeep}from'lodash-es';export default class TypingActionCompressor extends _0x42777f{['e'](e,r){return r[_0x47af('0x0')][0x0]['data']+=e['nodes'][0x0]['data'],r;}['h'](e){const r=cloneDeep(e),o=r[_0x47af('0x0')][0x0],n=e[_0x47af('0x0')][0x0],i=Array[_0x47af('0x1')](n[_0x47af('0x2')])[0x0],s=i[_0x47af('0x3')];return o[_0x47af('0x2')]=i,n[_0x47af('0x2')]=n[_0x47af('0x2')]['substr'](s),e[_0x47af('0x4')]=getPositionShiftedBy(e[_0x47af('0x4')],s),r;}['o'](e,r){if(_checkOperation(e)&&_checkOperation(r)){const o=e[_0x47af('0x0')][0x0][_0x47af('0x2')][_0x47af('0x3')],n=arePositionsEqual(getPositionShiftedBy(e[_0x47af('0x4')],o),r[_0x47af('0x4')]),i=e[_0x47af('0x0')][0x0],s=r[_0x47af('0x0')][0x0];return n&&_compareAttributes(i,s);}return!0x1;}['r'](e){const r={'types':[],'buffers':[],'baseVersion':0x0};return this['s'][_0x47af('0x5')](_0x47af('0x6'))[_0x47af('0x7')](r,[e]),r[_0x47af('0x8')][0x0];}['i'](e){const r=[];return this['s']['_getCompressorByName'](_0x47af('0x6'))['decompress'](r,e),r[0x0];}};function _checkOperation(e){return _0x47af('0x6')==e[_0x47af('0x9')]&&0x1==e['nodes']['length']&&e[_0x47af('0x0')][0x0][_0x47af('0x2')]&&!e[_0x47af('0xa')]&&0x1==Array[_0x47af('0x1')](e[_0x47af('0x0')][0x0][_0x47af('0x2')])[_0x47af('0x3')];}function _compareAttributes(e,r){const o=Object[_0x47af('0xb')](e[_0x47af('0xc')]||{}),n=Object['keys'](r[_0x47af('0xc')]||{});return o[_0x47af('0x3')]===n['length']&&o[_0x47af('0xd')](o=>r['attributes'][o]&&r[_0x47af('0xc')][o]===e['attributes'][o]);} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x11de=['toNone','name','user:position:','split','MarkerOperation','__className','startsWith','user:range','user:position','compress','oldRange','newRange','start','end','shift','types','push','decompress','stickiness'];(function(_0x198051,_0x31dc75){var _0x4530e6=function(_0x2ea7c4){while(--_0x2ea7c4){_0x198051['push'](_0x198051['shift']());}};_0x4530e6(++_0x31dc75);}(_0x11de,0x1ab));var _0x2047=function(_0x25b0dc,_0x5557f5){_0x25b0dc=_0x25b0dc-0x0;var _0x3ec073=_0x11de[_0x25b0dc];return _0x3ec073;};import _0x3f7802 from'./actioncompressor';import{arePositionsEqual}from'../utils';import{cloneDeep}from'lodash-es';export default class UserSelectionActionCompressor extends _0x3f7802{[_0x2047('0x0')](e,o){if(!_compareOperations(o[0x0],o[0x1]))return!0x1;const r=o['shift']();return r[_0x2047('0x1')]=null,r[_0x2047('0x2')]&&arePositionsEqual(r[_0x2047('0x2')][_0x2047('0x3')],r[_0x2047('0x2')][_0x2047('0x4')])&&(r[_0x2047('0x2')][_0x2047('0x4')]=null),o[_0x2047('0x5')](),e[_0x2047('0x6')]['push'](this['id']),e[_0x2047('0x6')][_0x2047('0x7')](0x0),e['buffers'][_0x2047('0x7')](this['r'](r)),!0x0;}[_0x2047('0x8')](e,o){const r=this['i'](o);r[_0x2047('0x2')]&&!r[_0x2047('0x2')]['end']&&(r['newRange'][_0x2047('0x4')]=cloneDeep(r['newRange']['start']));const s=cloneDeep(r);s[_0x2047('0x2')]&&(s['newRange'][_0x2047('0x3')][_0x2047('0x9')]=_0x2047('0xa'),s[_0x2047('0x2')][_0x2047('0x4')]=cloneDeep(s[_0x2047('0x2')][_0x2047('0x3')])),s[_0x2047('0xb')]=_0x2047('0xc')+s['name'][_0x2047('0xd')](':')[0x2],o[_0x2047('0x6')][_0x2047('0x5')](),e['push'](r),e[_0x2047('0x7')](s);}['r'](e){const o={'types':[],'buffers':[],'baseVersion':0x0};return this['s']['n']('MarkerOperation')[_0x2047('0x0')](o,[e]),o['buffers'][0x0];}['i'](e){const o=[];return this['s']['n'](_0x2047('0xe'))['decompress'](o,e),o[0x0];}};function _compareOperations(e,o){return!(!e||!o)&&(_0x2047('0xe')==e[_0x2047('0xf')]&&_0x2047('0xe')==o[_0x2047('0xf')]&&!(!e[_0x2047('0xb')][_0x2047('0x10')](_0x2047('0x11'))&&!o[_0x2047('0xb')][_0x2047('0x10')](_0x2047('0x12'))));} | ||
var _0x1243=['name','split','MarkerOperation','_getCompressorByName','__className','startsWith','user:','compress','oldRange','newRange','end','shift','types','push','buffers','decompress','stickiness','toNone','start','user:position:'];(function(_0x325fe0,_0x14b552){var _0x3c6915=function(_0xf1e134){while(--_0xf1e134){_0x325fe0['push'](_0x325fe0['shift']());}};_0x3c6915(++_0x14b552);}(_0x1243,0xcf));var _0x3378=function(_0x5d6fef,_0x126044){_0x5d6fef=_0x5d6fef-0x0;var _0x598380=_0x1243[_0x5d6fef];return _0x598380;};import _0x486703 from'./actioncompressor';import{arePositionsEqual}from'../utils';import{cloneDeep}from'lodash-es';export default class UserSelectionActionCompressor extends _0x486703{[_0x3378('0x0')](e,r){if(!_compareOperations(r[0x0],r[0x1]))return!0x1;const o=r['shift']();return o[_0x3378('0x1')]=null,o[_0x3378('0x2')]&&arePositionsEqual(o[_0x3378('0x2')]['start'],o[_0x3378('0x2')]['end'])&&(o['newRange'][_0x3378('0x3')]=null),r[_0x3378('0x4')](),e[_0x3378('0x5')][_0x3378('0x6')](this['id']),e[_0x3378('0x5')][_0x3378('0x6')](0x0),e[_0x3378('0x7')][_0x3378('0x6')](this['r'](o)),!0x0;}[_0x3378('0x8')](e,r){const o=this['i'](r);o[_0x3378('0x2')]&&!o['newRange']['end']&&(o[_0x3378('0x2')][_0x3378('0x3')]=cloneDeep(o[_0x3378('0x2')]['start']));const s=cloneDeep(o);s[_0x3378('0x2')]&&(s[_0x3378('0x2')]['start'][_0x3378('0x9')]=_0x3378('0xa'),s['newRange'][_0x3378('0x3')]=cloneDeep(s[_0x3378('0x2')][_0x3378('0xb')])),s['name']=_0x3378('0xc')+s[_0x3378('0xd')][_0x3378('0xe')](':')[0x2],r[_0x3378('0x5')][_0x3378('0x4')](),e[_0x3378('0x6')](o),e[_0x3378('0x6')](s);}['r'](e){const r={'types':[],'buffers':[],'baseVersion':0x0};return this['s']['_getCompressorByName'](_0x3378('0xf'))[_0x3378('0x0')](r,[e]),r[_0x3378('0x7')][0x0];}['i'](e){const r=[];return this['s'][_0x3378('0x10')]('MarkerOperation')[_0x3378('0x8')](r,e),r[0x0];}};function _compareOperations(e,r){return!(!e||!r)&&(_0x3378('0xf')==e[_0x3378('0x11')]&&_0x3378('0xf')==r[_0x3378('0x11')]&&!(!e['name'][_0x3378('0x12')](_0x3378('0x13'))||!r[_0x3378('0xd')][_0x3378('0x12')]('user:')||e[_0x3378('0xd')]==r[_0x3378('0xd')]));} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x1300=['Element','string','bool','repeated','uint32','Position'];(function(_0x2f1011,_0x1fffed){var _0x52d6bc=function(_0x4fff10){while(--_0x4fff10){_0x2f1011['push'](_0x2f1011['shift']());}};_0x52d6bc(++_0x1fffed);}(_0x1300,0xd9));var _0x1dcd=function(_0x28b4aa,_0x54981f){_0x28b4aa=_0x28b4aa-0x0;var _0x19e39b=_0x1300[_0x28b4aa];return _0x19e39b;};export default{'Position':{'fields':{'root':{'type':_0x1dcd('0x0'),'id':0x1},'rootMain':{'type':'bool','id':0x2},'rootGraveyard':{'type':_0x1dcd('0x1'),'id':0x3},'path':{'rule':_0x1dcd('0x2'),'type':_0x1dcd('0x3'),'id':0x4},'stickiness':{'type':_0x1dcd('0x0'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x1dcd('0x4'),'id':0x1},'end':{'type':_0x1dcd('0x4'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x1dcd('0x0'),'id':0x1},'children':{'rule':_0x1dcd('0x2'),'type':_0x1dcd('0x5'),'id':0x2},'data':{'type':_0x1dcd('0x0'),'id':0x3},'attributesBoolean':{'keyType':_0x1dcd('0x0'),'type':_0x1dcd('0x1'),'id':0x4},'attributesJson':{'type':_0x1dcd('0x0'),'id':0x5}}}}; | ||
var _0x2d21=['Element','bool','repeated','uint32','string','Position'];(function(_0x153abc,_0x5f4d81){var _0x42e713=function(_0x4430f8){while(--_0x4430f8){_0x153abc['push'](_0x153abc['shift']());}};_0x42e713(++_0x5f4d81);}(_0x2d21,0xc8));var _0x222d=function(_0x569bef,_0x129206){_0x569bef=_0x569bef-0x0;var _0x284995=_0x2d21[_0x569bef];return _0x284995;};export default{'Position':{'fields':{'root':{'type':'string','id':0x1},'rootMain':{'type':'bool','id':0x2},'rootGraveyard':{'type':'bool','id':0x3},'path':{'rule':_0x222d('0x0'),'type':_0x222d('0x1'),'id':0x4},'stickiness':{'type':_0x222d('0x2'),'id':0x5}}},'Range':{'fields':{'start':{'type':'Position','id':0x1},'end':{'type':_0x222d('0x3'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x222d('0x2'),'id':0x1},'children':{'rule':_0x222d('0x0'),'type':_0x222d('0x4'),'id':0x2},'data':{'type':'string','id':0x3},'attributesBoolean':{'keyType':_0x222d('0x2'),'type':_0x222d('0x5'),'id':0x4},'attributesJson':{'type':'string','id':0x5}}}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x16fe=['MoveOperation','SplitOperation','build','NoOperation','AttributeOperation','RenameOperation','RootAttributeOperation','getDescriptor','comment','SuggestionMarkerOperation','TypingAction','DeletingAction','ForwardDeletingAction','set','get','UserSelectionAction','compress','CommentMarkerOperation','decompress','types','length','forEach','baseVersion','registerDescriptor','Position','Range','Element','description','InsertOperation','MarkerOperation','MergeOperation'];(function(_0x3e6f89,_0x5e8875){var _0x130ee0=function(_0x50da65){while(--_0x50da65){_0x3e6f89['push'](_0x3e6f89['shift']());}};_0x130ee0(++_0x5e8875);}(_0x16fe,0x1e8));var _0x1062=function(_0x45e451,_0x29e09f){_0x45e451=_0x45e451-0x0;var _0x390040=_0x16fe[_0x45e451];return _0x390040;};import _0x140cf5 from'./protobuffactory';import _0x165e4c from'./commondescriptions';import _0x513567 from'./operationcompressor/attributeoperationcompressor';import _0x44f438 from'./operationcompressor/insertoperationcompressor';import _0x15843c from'./operationcompressor/markeroperationcompressor';import _0x122372 from'./operationcompressor/mergeoperationcompressor';import _0x353e65 from'./operationcompressor/moveoperationcompressor';import _0x1fa27e from'./operationcompressor/renameoperationcompressor';import _0x711a5 from'./operationcompressor/rootattributeoperationcompressor';import _0x311115 from'./operationcompressor/splitoperationcompressor';import _0x26d116 from'./operationcompressor/nooperationcompressor';import _0x476d73 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x190690 from'./actioncompressor/typingactioncompressor';import _0x4e07a7 from'./actioncompressor/deletingactioncompressor';import _0x3f3ef1 from'./actioncompressor/forwarddeletingactioncompressor';import _0x456cce from'./actioncompressor/userselectionactioncompressor';export default class Compressor{constructor(){this['p']=new Map(),this['m']=new Map(),this['a']=new _0x140cf5(),this['a'][_0x1062('0x0')](_0x1062('0x1'),_0x165e4c[_0x1062('0x1')]),this['a']['registerDescriptor']('Range',_0x165e4c[_0x1062('0x2')]),this['a'][_0x1062('0x0')](_0x1062('0x3'),_0x165e4c[_0x1062('0x3')]),this['a'][_0x1062('0x0')]('AttributeOperation',_0x513567[_0x1062('0x4')]),this['a'][_0x1062('0x0')](_0x1062('0x5'),_0x44f438[_0x1062('0x4')]),this['a']['registerDescriptor'](_0x1062('0x6'),_0x15843c[_0x1062('0x4')]),this['a'][_0x1062('0x0')](_0x1062('0x7'),_0x122372['description']),this['a'][_0x1062('0x0')](_0x1062('0x8'),_0x353e65['description']),this['a']['registerDescriptor']('RenameOperation',_0x1fa27e['description']),this['a'][_0x1062('0x0')]('RootAttributeOperation',_0x711a5[_0x1062('0x4')]),this['a'][_0x1062('0x0')](_0x1062('0x9'),_0x311115[_0x1062('0x4')]),this['a'][_0x1062('0xa')](),this['c'](0x1,_0x1062('0xb'),new _0x26d116(0x1,'NoOperation')),this['O'](0xa,_0x1062('0xc'),_0x513567),this['O'](0xb,'InsertOperation',_0x44f438),this['O'](0xc,_0x1062('0x6'),_0x15843c),this['O'](0xd,_0x1062('0x7'),_0x122372),this['O'](0xe,'MoveOperation',_0x353e65),this['O'](0xf,_0x1062('0xd'),_0x1fa27e),this['O'](0x10,_0x1062('0xe'),_0x711a5),this['O'](0x11,_0x1062('0x9'),_0x311115);const o=this['a'][_0x1062('0xf')]('MarkerOperation');this['c'](0x12,'CommentMarkerOperation',new _0x476d73(0x12,'MarkerOperation',o,_0x1062('0x10'))),this['c'](0x13,_0x1062('0x11'),new _0x476d73(0x13,_0x1062('0x6'),o,'suggestion')),this['C'](0x64,_0x1062('0x12'),_0x190690),this['C'](0x65,_0x1062('0x13'),_0x4e07a7),this['C'](0x66,_0x1062('0x14'),_0x3f3ef1),this['C'](0x67,'UserSelectionAction',_0x456cce);}['O'](o,r,e){const t=new e(o,r,this['a'][_0x1062('0xf')](r));this['c'](o,r,t);}['C'](o,r,e){const t=new e(o,this);this['c'](o,r,t);}['c'](o,r,e){this['p'][_0x1062('0x15')](o,e),this['m'][_0x1062('0x15')](r,e);}['n'](o){return this['m'][_0x1062('0x16')](o);}['compress'](o){const r={'types':[],'buffers':[],'baseVersion':o[0x0]['baseVersion']};for(;o['length'];)this['n'](_0x1062('0x17'))[_0x1062('0x18')](r,o)||this['n'](_0x1062('0x12'))[_0x1062('0x18')](r,o)||this['n'](_0x1062('0x13'))[_0x1062('0x18')](r,o)||this['n']('ForwardDeletingAction')['compress'](r,o)||this['n'](_0x1062('0x19'))['compress'](r,o)||this['n'](_0x1062('0x11'))['compress'](r,o)||this['n'](o[0x0]['__className'])[_0x1062('0x18')](r,o);return r;}[_0x1062('0x1a')](o){const r=[];for(;o[_0x1062('0x1b')][_0x1062('0x1c')];){this['p']['get'](o[_0x1062('0x1b')][0x0])[_0x1062('0x1a')](r,o);}return r[_0x1062('0x1d')]((r,e)=>r[_0x1062('0x1e')]=o[_0x1062('0x1e')]+e),r;}}; | ||
var _0xd290=['length','compress','__className','decompress','types','forEach','registerDescriptor','Position','Range','Element','AttributeOperation','description','MarkerOperation','MergeOperation','MoveOperation','RenameOperation','RootAttributeOperation','SplitOperation','NoOperation','InsertOperation','getDescriptor','CommentMarkerOperation','SuggestionMarkerOperation','TypingAction','DeletingAction','ForwardDeletingAction','set','_getCompressorByName','get','baseVersion'];(function(_0x50ae0a,_0x590da2){var _0x36571a=function(_0x440ee2){while(--_0x440ee2){_0x50ae0a['push'](_0x50ae0a['shift']());}};_0x36571a(++_0x590da2);}(_0xd290,0x150));var _0x59fb=function(_0x200b40,_0x3c9232){_0x200b40=_0x200b40-0x0;var _0x507060=_0xd290[_0x200b40];return _0x507060;};import _0x4c895c from'./protobuffactory';import _0x330752 from'./commondescriptions';import _0x4f266e from'./operationcompressor/attributeoperationcompressor';import _0x1b192d from'./operationcompressor/insertoperationcompressor';import _0x3e2307 from'./operationcompressor/markeroperationcompressor';import _0x42580c from'./operationcompressor/mergeoperationcompressor';import _0x38c9d5 from'./operationcompressor/moveoperationcompressor';import _0x3f6330 from'./operationcompressor/renameoperationcompressor';import _0x5cefc7 from'./operationcompressor/rootattributeoperationcompressor';import _0x18dddc from'./operationcompressor/splitoperationcompressor';import _0x1cd316 from'./operationcompressor/nooperationcompressor';import _0x10febe from'./operationcompressor/annotationmarkeroperationcompressor';import _0x3c90d5 from'./actioncompressor/typingactioncompressor';import _0x4a97d0 from'./actioncompressor/deletingactioncompressor';import _0x5762a6 from'./actioncompressor/forwarddeletingactioncompressor';import _0x77de74 from'./actioncompressor/userselectionactioncompressor';export default class Compressor{constructor(){this['p']=new Map(),this['n']=new Map(),this['m']=new _0x4c895c(),this['m'][_0x59fb('0x0')](_0x59fb('0x1'),_0x330752[_0x59fb('0x1')]),this['m'][_0x59fb('0x0')](_0x59fb('0x2'),_0x330752[_0x59fb('0x2')]),this['m']['registerDescriptor']('Element',_0x330752[_0x59fb('0x3')]),this['m'][_0x59fb('0x0')](_0x59fb('0x4'),_0x4f266e['description']),this['m'][_0x59fb('0x0')]('InsertOperation',_0x1b192d[_0x59fb('0x5')]),this['m'][_0x59fb('0x0')](_0x59fb('0x6'),_0x3e2307['description']),this['m'][_0x59fb('0x0')](_0x59fb('0x7'),_0x42580c[_0x59fb('0x5')]),this['m'][_0x59fb('0x0')](_0x59fb('0x8'),_0x38c9d5['description']),this['m'][_0x59fb('0x0')](_0x59fb('0x9'),_0x3f6330[_0x59fb('0x5')]),this['m'][_0x59fb('0x0')](_0x59fb('0xa'),_0x5cefc7[_0x59fb('0x5')]),this['m'][_0x59fb('0x0')](_0x59fb('0xb'),_0x18dddc['description']),this['m']['build'](),this['a'](0x1,_0x59fb('0xc'),new _0x1cd316(0x1,'NoOperation')),this['c'](0xa,_0x59fb('0x4'),_0x4f266e),this['c'](0xb,_0x59fb('0xd'),_0x1b192d),this['c'](0xc,_0x59fb('0x6'),_0x3e2307),this['c'](0xd,_0x59fb('0x7'),_0x42580c),this['c'](0xe,_0x59fb('0x8'),_0x38c9d5),this['c'](0xf,_0x59fb('0x9'),_0x3f6330),this['c'](0x10,_0x59fb('0xa'),_0x5cefc7),this['c'](0x11,_0x59fb('0xb'),_0x18dddc);const o=this['m'][_0x59fb('0xe')](_0x59fb('0x6'));this['a'](0x12,_0x59fb('0xf'),new _0x10febe(0x12,_0x59fb('0x6'),o,'comment')),this['a'](0x13,_0x59fb('0x10'),new _0x10febe(0x13,_0x59fb('0x6'),o,'suggestion')),this['O'](0x64,_0x59fb('0x11'),_0x3c90d5),this['O'](0x65,_0x59fb('0x12'),_0x4a97d0),this['O'](0x66,_0x59fb('0x13'),_0x5762a6),this['O'](0x67,'UserSelectionAction',_0x77de74);}['c'](o,r,e){const s=new e(o,r,this['m'][_0x59fb('0xe')](r));this['a'](o,r,s);}['O'](o,r,e){const s=new e(o,this);this['a'](o,r,s);}['a'](o,r,e){this['p'][_0x59fb('0x14')](o,e),this['n'][_0x59fb('0x14')](r,e);}[_0x59fb('0x15')](o){return this['n'][_0x59fb('0x16')](o);}['compress'](o){const r={'types':[],'buffers':[],'baseVersion':o[0x0][_0x59fb('0x17')]};for(;o[_0x59fb('0x18')];)this['_getCompressorByName']('UserSelectionAction')[_0x59fb('0x19')](r,o)||this['_getCompressorByName'](_0x59fb('0x11'))[_0x59fb('0x19')](r,o)||this[_0x59fb('0x15')](_0x59fb('0x12'))['compress'](r,o)||this[_0x59fb('0x15')]('ForwardDeletingAction')['compress'](r,o)||this[_0x59fb('0x15')](_0x59fb('0xf'))[_0x59fb('0x19')](r,o)||this[_0x59fb('0x15')](_0x59fb('0x10'))[_0x59fb('0x19')](r,o)||this[_0x59fb('0x15')](o[0x0][_0x59fb('0x1a')])[_0x59fb('0x19')](r,o);return r;}[_0x59fb('0x1b')](o){const r=[];for(;o['types']['length'];){this['p'][_0x59fb('0x16')](o[_0x59fb('0x1c')][0x0])[_0x59fb('0x1b')](r,o);}return r[_0x59fb('0x1d')]((r,e)=>r['baseVersion']=o[_0x59fb('0x17')]+e),r;}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x24e4=['compress','__className','name','startsWith','decompress','length'];(function(_0x539f4a,_0x4f7b52){var _0x59cf01=function(_0x449508){while(--_0x449508){_0x539f4a['push'](_0x539f4a['shift']());}};_0x59cf01(++_0x4f7b52);}(_0x24e4,0x1bc));var _0x3cfe=function(_0xc595f2,_0x59590d){_0xc595f2=_0xc595f2-0x0;var _0x4a0b82=_0x24e4[_0xc595f2];return _0x4a0b82;};import _0x2b7778 from'./markeroperationcompressor';export default class AnnotationMarkerOperationCompressor extends _0x2b7778{constructor(_0x5b9f62,_0x508e3b,_0x74a79,_0xc79696){super(_0x5b9f62,_0x508e3b,_0x74a79),this['u']=_0xc79696+':';}[_0x3cfe('0x0')](_0x38159f,_0x36200c){return!('MarkerOperation'!=_0x36200c[0x0][_0x3cfe('0x1')]||!_0x36200c[0x0][_0x3cfe('0x2')][_0x3cfe('0x3')](this['u']))&&(_0x36200c[0x0]['name']=_0x36200c[0x0][_0x3cfe('0x2')]['replace'](new RegExp('^'+this['u']),''),super[_0x3cfe('0x0')](_0x38159f,_0x36200c),!0x0);}[_0x3cfe('0x4')](_0x327b01,_0x7a02b2){super[_0x3cfe('0x4')](_0x327b01,_0x7a02b2);const _0x1de473=_0x327b01[_0x327b01[_0x3cfe('0x5')]-0x1];_0x1de473[_0x3cfe('0x2')]=this['u']+_0x1de473[_0x3cfe('0x2')];}}; | ||
var _0x48f8=['MarkerOperation','__className','name','startsWith','replace','decompress','length','compress'];(function(_0x5c9884,_0x279e9e){var _0x19e78d=function(_0x12e53c){while(--_0x12e53c){_0x5c9884['push'](_0x5c9884['shift']());}};_0x19e78d(++_0x279e9e);}(_0x48f8,0x147));var _0xbb08=function(_0x421d39,_0x491dbc){_0x421d39=_0x421d39-0x0;var _0x3040fe=_0x48f8[_0x421d39];return _0x3040fe;};import _0x4a174e from'./markeroperationcompressor';export default class AnnotationMarkerOperationCompressor extends _0x4a174e{constructor(_0x4de353,_0x7701ab,_0x5f2ce6,_0x708d5){super(_0x4de353,_0x7701ab,_0x5f2ce6),this['u']=_0x708d5+':';}[_0xbb08('0x0')](_0x3c9fef,_0x2069b5){return!(_0xbb08('0x1')!=_0x2069b5[0x0][_0xbb08('0x2')]||!_0x2069b5[0x0][_0xbb08('0x3')][_0xbb08('0x4')](this['u']))&&(_0x2069b5[0x0][_0xbb08('0x3')]=_0x2069b5[0x0][_0xbb08('0x3')][_0xbb08('0x5')](new RegExp('^'+this['u']),''),super[_0xbb08('0x0')](_0x3c9fef,_0x2069b5),!0x0);}[_0xbb08('0x6')](_0x52e314,_0x3281ea){super[_0xbb08('0x6')](_0x52e314,_0x3281ea);const _0x3dd253=_0x52e314[_0x52e314[_0xbb08('0x7')]-0x1];_0x3dd253[_0xbb08('0x3')]=this['u']+_0x3dd253[_0xbb08('0x3')];}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x4312=['Json','description','bool','string','compress','shift','buffers','_protobufDescriptor','push','decompress','oldValue','operationName','boolean','Boolean','stringify'];(function(_0xc850e7,_0x514e2f){var _0x48ac3f=function(_0x1d21de){while(--_0x1d21de){_0xc850e7['push'](_0xc850e7['shift']());}};_0x48ac3f(++_0x514e2f);}(_0x4312,0x88));var _0x1c66=function(_0x1367ab,_0x13113b){_0x1367ab=_0x1367ab-0x0;var _0x31d73f=_0x4312[_0x1367ab];return _0x31d73f;};import _0x1ee13f from'./operationcompressor';import{parsePositionBeforeCompression,parsePositionAfterCompression}from'../utils';export default class AttributeOperationCompressor extends _0x1ee13f{static get[_0x1c66('0x0')](){return{'fields':{'range':{'type':'Range','id':0x1},'key':{'type':'string','id':0x2},'oldValueBoolean':{'type':_0x1c66('0x1'),'id':0x3},'oldValueJson':{'type':_0x1c66('0x2'),'id':0x4},'newValueBoolean':{'type':_0x1c66('0x1'),'id':0x5},'newValueJson':{'type':'string','id':0x6},'wasUndone':{'type':_0x1c66('0x1'),'id':0x7}}};}[_0x1c66('0x3')](e,o){const s=o[_0x1c66('0x4')]();_serializeOneOf('oldValue',s),_serializeOneOf('newValue',s),parsePositionBeforeCompression(s),e[_0x1c66('0x5')]['push'](this[_0x1c66('0x6')][_0x1c66('0x3')](s)),e['types'][_0x1c66('0x7')](this['id']);}['decompress'](e,o){const {types:s,buffers:i}=o,n=this['_protobufDescriptor'][_0x1c66('0x8')](i[_0x1c66('0x4')]());s['shift'](),_deserializeOneOf(_0x1c66('0x9'),n),_deserializeOneOf('newValue',n),parsePositionAfterCompression(n),n['__className']=this[_0x1c66('0xa')],e[_0x1c66('0x7')](n);}};function _serializeOneOf(e,o){const s=o[e];_0x1c66('0xb')==typeof s?o[e+_0x1c66('0xc')]=s:o[e+'Json']=JSON[_0x1c66('0xd')](s);}function _deserializeOneOf(e,o){const s=e+_0x1c66('0xe');o[s]?(o[e]=JSON['parse'](o[s]),delete o[s]):(o[e]=o[e+'Boolean'],delete o[e+_0x1c66('0xc')]);} | ||
var _0xa700=['Boolean','description','Range','string','bool','compress','shift','oldValue','_protobufDescriptor','types','push','decompress','newValue','operationName','stringify','Json','parse'];(function(_0x32f660,_0x1b4dd1){var _0x562839=function(_0x505142){while(--_0x505142){_0x32f660['push'](_0x32f660['shift']());}};_0x562839(++_0x1b4dd1);}(_0xa700,0x1dd));var _0x14f4=function(_0x26f1ca,_0x51b910){_0x26f1ca=_0x26f1ca-0x0;var _0x177c34=_0xa700[_0x26f1ca];return _0x177c34;};import _0x2c44ae from'./operationcompressor';import{parsePositionBeforeCompression,parsePositionAfterCompression}from'../utils';export default class AttributeOperationCompressor extends _0x2c44ae{static get[_0x14f4('0x0')](){return{'fields':{'range':{'type':_0x14f4('0x1'),'id':0x1},'key':{'type':_0x14f4('0x2'),'id':0x2},'oldValueBoolean':{'type':_0x14f4('0x3'),'id':0x3},'oldValueJson':{'type':_0x14f4('0x2'),'id':0x4},'newValueBoolean':{'type':_0x14f4('0x3'),'id':0x5},'newValueJson':{'type':_0x14f4('0x2'),'id':0x6},'wasUndone':{'type':'bool','id':0x7}}};}[_0x14f4('0x4')](e,o){const s=o[_0x14f4('0x5')]();_serializeOneOf(_0x14f4('0x6'),s),_serializeOneOf('newValue',s),parsePositionBeforeCompression(s),e['buffers']['push'](this[_0x14f4('0x7')]['compress'](s)),e[_0x14f4('0x8')][_0x14f4('0x9')](this['id']);}[_0x14f4('0xa')](e,o){const {types:s,buffers:i}=o,n=this['_protobufDescriptor'][_0x14f4('0xa')](i[_0x14f4('0x5')]());s['shift'](),_deserializeOneOf('oldValue',n),_deserializeOneOf(_0x14f4('0xb'),n),parsePositionAfterCompression(n),n['__className']=this[_0x14f4('0xc')],e[_0x14f4('0x9')](n);}};function _serializeOneOf(e,o){const s=o[e];'boolean'==typeof s?o[e+'Boolean']=s:o[e+'Json']=JSON[_0x14f4('0xd')](s);}function _deserializeOneOf(e,o){const s=e+_0x14f4('0xe');o[s]?(o[e]=JSON[_0x14f4('0xf')](o[s]),delete o[s]):(o[e]=o[e+_0x14f4('0x10')],delete o[e+_0x14f4('0x10')]);} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x4197=['shift','nodes','buffers','push','_protobufDescriptor','types','decompress','__className','operationName','attributes','attributesBoolean','attributesJson','parse','children','boolean','description','repeated','Element','bool','compress'];(function(_0x1f3614,_0x3a404b){var _0x1bfe58=function(_0x474c5a){while(--_0x474c5a){_0x1f3614['push'](_0x1f3614['shift']());}};_0x1bfe58(++_0x3a404b);}(_0x4197,0x13b));var _0x1613=function(_0x473639,_0x201e99){_0x473639=_0x473639-0x0;var _0x2dc2e0=_0x4197[_0x473639];return _0x2dc2e0;};import _0x4699a8 from'./operationcompressor';import{parsePositionBeforeCompression,parsePositionAfterCompression}from'../utils';export default class InsertOperationCompressor extends _0x4699a8{static get[_0x1613('0x0')](){return{'fields':{'position':{'type':'Position','id':0x1},'nodes':{'rule':_0x1613('0x1'),'type':_0x1613('0x2'),'id':0x2},'shouldReceiveAttributes':{'type':_0x1613('0x3'),'id':0x3},'wasUndone':{'type':_0x1613('0x3'),'id':0x4}}};}[_0x1613('0x4')](e,o){const s=o[_0x1613('0x5')]();_serializeNodesAttributes(s[_0x1613('0x6')]),parsePositionBeforeCompression(s),e[_0x1613('0x7')][_0x1613('0x8')](this[_0x1613('0x9')][_0x1613('0x4')](s)),e[_0x1613('0xa')][_0x1613('0x8')](this['id']);}['decompress'](e,o){const {types:s,buffers:t}=o,i=this[_0x1613('0x9')][_0x1613('0xb')](t[_0x1613('0x5')]());s[_0x1613('0x5')](),i[_0x1613('0x6')]||(i[_0x1613('0x6')]=[]),_deserializeNodesAttributes(i[_0x1613('0x6')]),parsePositionAfterCompression(i),i[_0x1613('0xc')]=this[_0x1613('0xd')],e[_0x1613('0x8')](i);}};function _serializeNodesAttributes(e){for(const o of e){if(o[_0x1613('0xe')]){const e=o[_0x1613('0xe')];_areValuesBoolean(e)?o[_0x1613('0xf')]=e:o[_0x1613('0x10')]=JSON['stringify'](e);}o['children']&&_serializeNodesAttributes(o['children']);}}function _deserializeNodesAttributes(e){for(const o of e)(o['attributesBoolean']||o[_0x1613('0x10')])&&(o[_0x1613('0xf')]?(o[_0x1613('0xe')]=o[_0x1613('0xf')],delete o['attributesBoolean']):(o[_0x1613('0xe')]=JSON[_0x1613('0x11')](o[_0x1613('0x10')]),delete o[_0x1613('0x10')])),o[_0x1613('0x12')]&&_deserializeNodesAttributes(o[_0x1613('0x12')]);}function _areValuesBoolean(e){return Object['keys'](e)['every'](o=>_0x1613('0x13')==typeof e[o]);} | ||
var _0x1813=['shift','nodes','buffers','push','_protobufDescriptor','types','decompress','__className','operationName','attributes','attributesBoolean','attributesJson','stringify','children','keys','every','description','Position','repeated','Element','bool','compress'];(function(_0xadfa8c,_0x2f3683){var _0xb65a64=function(_0x5596e7){while(--_0x5596e7){_0xadfa8c['push'](_0xadfa8c['shift']());}};_0xb65a64(++_0x2f3683);}(_0x1813,0x68));var _0x2115=function(_0x2e9539,_0x4e4f26){_0x2e9539=_0x2e9539-0x0;var _0x278089=_0x1813[_0x2e9539];return _0x278089;};import _0x58d8c7 from'./operationcompressor';import{parsePositionBeforeCompression,parsePositionAfterCompression}from'../utils';export default class InsertOperationCompressor extends _0x58d8c7{static get[_0x2115('0x0')](){return{'fields':{'position':{'type':_0x2115('0x1'),'id':0x1},'nodes':{'rule':_0x2115('0x2'),'type':_0x2115('0x3'),'id':0x2},'shouldReceiveAttributes':{'type':_0x2115('0x4'),'id':0x3},'wasUndone':{'type':_0x2115('0x4'),'id':0x4}}};}[_0x2115('0x5')](e,o){const s=o[_0x2115('0x6')]();_serializeNodesAttributes(s[_0x2115('0x7')]),parsePositionBeforeCompression(s),e[_0x2115('0x8')][_0x2115('0x9')](this[_0x2115('0xa')][_0x2115('0x5')](s)),e[_0x2115('0xb')][_0x2115('0x9')](this['id']);}[_0x2115('0xc')](e,o){const {types:s,buffers:i}=o,r=this['_protobufDescriptor'][_0x2115('0xc')](i[_0x2115('0x6')]());s['shift'](),r[_0x2115('0x7')]||(r[_0x2115('0x7')]=[]),_deserializeNodesAttributes(r[_0x2115('0x7')]),parsePositionAfterCompression(r),r[_0x2115('0xd')]=this[_0x2115('0xe')],e[_0x2115('0x9')](r);}};function _serializeNodesAttributes(e){for(const o of e){if(o[_0x2115('0xf')]){const e=o['attributes'];_areValuesBoolean(e)?o[_0x2115('0x10')]=e:o[_0x2115('0x11')]=JSON[_0x2115('0x12')](e);}o[_0x2115('0x13')]&&_serializeNodesAttributes(o[_0x2115('0x13')]);}}function _deserializeNodesAttributes(e){for(const o of e)(o[_0x2115('0x10')]||o['attributesJson'])&&(o[_0x2115('0x10')]?(o['attributes']=o[_0x2115('0x10')],delete o['attributesBoolean']):(o['attributes']=JSON['parse'](o[_0x2115('0x11')]),delete o[_0x2115('0x11')])),o[_0x2115('0x13')]&&_deserializeNodesAttributes(o[_0x2115('0x13')]);}function _areValuesBoolean(e){return Object[_0x2115('0x14')](e)[_0x2115('0x15')](o=>'boolean'==typeof e[o]);} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x305c=['description','string','bool','decompress','length','oldRange','newRange'];(function(_0x3f0492,_0x2c136c){var _0xdd571=function(_0x1079b9){while(--_0x1079b9){_0x3f0492['push'](_0x3f0492['shift']());}};_0xdd571(++_0x2c136c);}(_0x305c,0xc4));var _0xa897=function(_0x2bc66e,_0x46464f){_0x2bc66e=_0x2bc66e-0x0;var _0x3dc07e=_0x305c[_0x2bc66e];return _0x3dc07e;};import _0x2056a4 from'./operationcompressor';export default class MarkerOperationCompressor extends _0x2056a4{static get[_0xa897('0x0')](){return{'fields':{'name':{'type':_0xa897('0x1'),'id':0x1},'oldRange':{'type':'Range','id':0x2},'newRange':{'type':'Range','id':0x3},'affectsData':{'type':_0xa897('0x2'),'id':0x4},'wasUndone':{'type':_0xa897('0x2'),'id':0x5}}};}[_0xa897('0x3')](_0x3e468e,_0x300a6d){super[_0xa897('0x3')](_0x3e468e,_0x300a6d);const _0x2d50e3=_0x3e468e[_0x3e468e[_0xa897('0x4')]-0x1];_0x2d50e3[_0xa897('0x5')]||(_0x2d50e3[_0xa897('0x5')]=null),_0x2d50e3[_0xa897('0x6')]||(_0x2d50e3[_0xa897('0x6')]=null);}}; | ||
var _0x4682=['newRange','description','string','Range','bool','decompress'];(function(_0x584c4c,_0x565191){var _0x29404f=function(_0x5552b3){while(--_0x5552b3){_0x584c4c['push'](_0x584c4c['shift']());}};_0x29404f(++_0x565191);}(_0x4682,0x18d));var _0x56c4=function(_0x4f9246,_0x2fe815){_0x4f9246=_0x4f9246-0x0;var _0x707467=_0x4682[_0x4f9246];return _0x707467;};import _0x5ebc84 from'./operationcompressor';export default class MarkerOperationCompressor extends _0x5ebc84{static get[_0x56c4('0x0')](){return{'fields':{'name':{'type':_0x56c4('0x1'),'id':0x1},'oldRange':{'type':_0x56c4('0x2'),'id':0x2},'newRange':{'type':'Range','id':0x3},'affectsData':{'type':'bool','id':0x4},'wasUndone':{'type':_0x56c4('0x3'),'id':0x5}}};}[_0x56c4('0x4')](_0x6bc571,_0x777aed){super[_0x56c4('0x4')](_0x6bc571,_0x777aed);const _0x4c5612=_0x6bc571[_0x6bc571['length']-0x1];_0x4c5612['oldRange']||(_0x4c5612['oldRange']=null),_0x4c5612[_0x56c4('0x5')]||(_0x4c5612['newRange']=null);}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x425b=['Position','uint32','bool','description'];(function(_0x26b332,_0x831329){var _0x52d74e=function(_0x23d172){while(--_0x23d172){_0x26b332['push'](_0x26b332['shift']());}};_0x52d74e(++_0x831329);}(_0x425b,0x67));var _0x3df6=function(_0x561251,_0x4b6e44){_0x561251=_0x561251-0x0;var _0x48d53b=_0x425b[_0x561251];return _0x48d53b;};import _0x1a6bf0 from'./operationcompressor';export default class MergeOperationCompressor extends _0x1a6bf0{static get[_0x3df6('0x0')](){return{'fields':{'sourcePosition':{'type':_0x3df6('0x1'),'id':0x1},'targetPosition':{'type':_0x3df6('0x1'),'id':0x2},'graveyardPosition':{'type':_0x3df6('0x1'),'id':0x3},'howMany':{'type':_0x3df6('0x2'),'id':0x4},'wasUndone':{'type':_0x3df6('0x3'),'id':0x5}}};}}; | ||
var _0x1c9a=['Position','uint32','bool'];(function(_0x3080c2,_0x2f6ee2){var _0x277517=function(_0x8fb9f7){while(--_0x8fb9f7){_0x3080c2['push'](_0x3080c2['shift']());}};_0x277517(++_0x2f6ee2);}(_0x1c9a,0x16e));var _0x5d35=function(_0x115149,_0x4037ef){_0x115149=_0x115149-0x0;var _0x5933bd=_0x1c9a[_0x115149];return _0x5933bd;};import _0x2e9343 from'./operationcompressor';export default class MergeOperationCompressor extends _0x2e9343{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x5d35('0x0'),'id':0x1},'targetPosition':{'type':'Position','id':0x2},'graveyardPosition':{'type':_0x5d35('0x0'),'id':0x3},'howMany':{'type':_0x5d35('0x1'),'id':0x4},'wasUndone':{'type':_0x5d35('0x2'),'id':0x5}}};}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x1d60=['Position','bool','description'];(function(_0x9c8fe8,_0x5b2373){var _0x3f9c98=function(_0x28f795){while(--_0x28f795){_0x9c8fe8['push'](_0x9c8fe8['shift']());}};_0x3f9c98(++_0x5b2373);}(_0x1d60,0xe0));var _0x3eb1=function(_0x44e41e,_0x594afa){_0x44e41e=_0x44e41e-0x0;var _0x4057a5=_0x1d60[_0x44e41e];return _0x4057a5;};import _0x2cbb5a from'./operationcompressor';export default class MoveOperationCompressor extends _0x2cbb5a{static get[_0x3eb1('0x0')](){return{'fields':{'sourcePosition':{'type':_0x3eb1('0x1'),'id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x3eb1('0x2'),'id':0x4}}};}}; | ||
var _0x2b89=['Position','uint32'];(function(_0x13fff9,_0x43a773){var _0x3e6128=function(_0x477a5e){while(--_0x477a5e){_0x13fff9['push'](_0x13fff9['shift']());}};_0x3e6128(++_0x43a773);}(_0x2b89,0x160));var _0x205c=function(_0x338f60,_0xa09dcc){_0x338f60=_0x338f60-0x0;var _0x462bed=_0x2b89[_0x338f60];return _0x462bed;};import _0x92eec7 from'./operationcompressor';export default class MoveOperationCompressor extends _0x92eec7{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x205c('0x0'),'id':0x1},'howMany':{'type':_0x205c('0x1'),'id':0x2},'targetPosition':{'type':_0x205c('0x0'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x7dbd=['decompress','shift','push','operationName','compress','types'];(function(_0x3b4f50,_0x5a9b16){var _0x200049=function(_0x5e86f7){while(--_0x5e86f7){_0x3b4f50['push'](_0x3b4f50['shift']());}};_0x200049(++_0x5a9b16);}(_0x7dbd,0x64));var _0x1078=function(_0x453cae,_0xe56506){_0x453cae=_0x453cae-0x0;var _0x5da23a=_0x7dbd[_0x453cae];return _0x5da23a;};import _0x111ef8 from'./operationcompressor';export default class NoOperationCompressor extends _0x111ef8{[_0x1078('0x0')](_0x4a6fe6,_0x45ba77){_0x45ba77['shift'](),_0x4a6fe6[_0x1078('0x1')]['push'](this['id']);}[_0x1078('0x2')](_0x17acac,_0x4e7769){_0x4e7769[_0x1078('0x1')][_0x1078('0x3')](),_0x17acac[_0x1078('0x4')]({'__className':this[_0x1078('0x5')]});}}; | ||
var _0x4844=['compress','shift','types','push','decompress','operationName'];(function(_0x11cbff,_0x15a08d){var _0x20fb52=function(_0x562fc1){while(--_0x562fc1){_0x11cbff['push'](_0x11cbff['shift']());}};_0x20fb52(++_0x15a08d);}(_0x4844,0xf6));var _0x54eb=function(_0x2699a9,_0x501e82){_0x2699a9=_0x2699a9-0x0;var _0x5b6c40=_0x4844[_0x2699a9];return _0x5b6c40;};import _0x4aad0c from'./operationcompressor';export default class NoOperationCompressor extends _0x4aad0c{[_0x54eb('0x0')](_0x5b2349,_0x1d8245){_0x1d8245[_0x54eb('0x1')](),_0x5b2349[_0x54eb('0x2')][_0x54eb('0x3')](this['id']);}[_0x54eb('0x4')](_0x50261a,_0x320f2a){_0x320f2a[_0x54eb('0x2')][_0x54eb('0x1')](),_0x50261a[_0x54eb('0x3')]({'__className':this[_0x54eb('0x5')]});}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x82f2=['__className','operationName','_protobufDescriptor','compress','shift','buffers','push','types','decompress'];(function(_0x334005,_0x49b171){var _0xc09d52=function(_0x4ca87a){while(--_0x4ca87a){_0x334005['push'](_0x334005['shift']());}};_0xc09d52(++_0x49b171);}(_0x82f2,0xa3));var _0x352f=function(_0x2a71aa,_0xd54975){_0x2a71aa=_0x2a71aa-0x0;var _0x1f7ed3=_0x82f2[_0x2a71aa];return _0x1f7ed3;};import{parsePositionBeforeCompression,parsePositionAfterCompression}from'../utils';export default class OperationCompressor{constructor(_0x5f4e73,_0x4e5c27,_0x295481){this['id']=_0x5f4e73,this[_0x352f('0x0')]=_0x4e5c27,this[_0x352f('0x1')]=_0x295481;}[_0x352f('0x2')](_0x26a132,_0x4a7ecb){const _0x5519be=_0x4a7ecb[_0x352f('0x3')]();parsePositionBeforeCompression(_0x5519be),_0x26a132[_0x352f('0x4')][_0x352f('0x5')](this[_0x352f('0x1')]['compress'](_0x5519be)),_0x26a132[_0x352f('0x6')][_0x352f('0x5')](this['id']);}[_0x352f('0x7')](_0x4aa4e1,_0x2463c7){_0x2463c7[_0x352f('0x6')][_0x352f('0x3')]();const _0x48fb57=this['_protobufDescriptor'][_0x352f('0x7')](_0x2463c7[_0x352f('0x4')][_0x352f('0x3')]());parsePositionAfterCompression(_0x48fb57),_0x48fb57[_0x352f('0x8')]=this[_0x352f('0x0')],_0x4aa4e1[_0x352f('0x5')](_0x48fb57);}}; | ||
var _0x1b9a=['compress','push','decompress','__className','operationName','_protobufDescriptor','shift','buffers'];(function(_0x3ae857,_0x5204d3){var _0x2bd349=function(_0xc8b545){while(--_0xc8b545){_0x3ae857['push'](_0x3ae857['shift']());}};_0x2bd349(++_0x5204d3);}(_0x1b9a,0xc4));var _0x187a=function(_0x366c08,_0x5ac17a){_0x366c08=_0x366c08-0x0;var _0x9a5da9=_0x1b9a[_0x366c08];return _0x9a5da9;};import{parsePositionBeforeCompression,parsePositionAfterCompression}from'../utils';export default class OperationCompressor{constructor(_0x5a805b,_0x46b211,_0x30d579){this['id']=_0x5a805b,this[_0x187a('0x0')]=_0x46b211,this[_0x187a('0x1')]=_0x30d579;}['compress'](_0x1ec9b3,_0x3faaa3){const _0x40e175=_0x3faaa3[_0x187a('0x2')]();parsePositionBeforeCompression(_0x40e175),_0x1ec9b3[_0x187a('0x3')]['push'](this[_0x187a('0x1')][_0x187a('0x4')](_0x40e175)),_0x1ec9b3['types'][_0x187a('0x5')](this['id']);}[_0x187a('0x6')](_0x24595d,_0x549d38){_0x549d38['types'][_0x187a('0x2')]();const _0x3a5046=this[_0x187a('0x1')][_0x187a('0x6')](_0x549d38[_0x187a('0x3')][_0x187a('0x2')]());parsePositionAfterCompression(_0x3a5046),_0x3a5046[_0x187a('0x7')]=this[_0x187a('0x0')],_0x24595d[_0x187a('0x5')](_0x3a5046);}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x2006=['bool','description'];(function(_0x28323e,_0x1bef51){var _0x5bfa4d=function(_0x489555){while(--_0x489555){_0x28323e['push'](_0x28323e['shift']());}};_0x5bfa4d(++_0x1bef51);}(_0x2006,0xef));var _0x195f=function(_0x36f572,_0xb501fe){_0x36f572=_0x36f572-0x0;var _0x771d25=_0x2006[_0x36f572];return _0x771d25;};import _0xc45bbc from'./operationcompressor';export default class RenameOperationCompressor extends _0xc45bbc{static get[_0x195f('0x0')](){return{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':'string','id':0x2},'newName':{'type':'string','id':0x3},'wasUndone':{'type':_0x195f('0x1'),'id':0x4}}};}}; | ||
var _0x37c1=['bool','Position','string'];(function(_0x390ef0,_0x1bbc01){var _0x1a6f76=function(_0x327ea6){while(--_0x327ea6){_0x390ef0['push'](_0x390ef0['shift']());}};_0x1a6f76(++_0x1bbc01);}(_0x37c1,0xd3));var _0x4d59=function(_0x400d2b,_0x725ef1){_0x400d2b=_0x400d2b-0x0;var _0x1edc40=_0x37c1[_0x400d2b];return _0x1edc40;};import _0x1a32b6 from'./operationcompressor';export default class RenameOperationCompressor extends _0x1a32b6{static get['description'](){return{'fields':{'position':{'type':_0x4d59('0x0'),'id':0x1},'oldName':{'type':_0x4d59('0x1'),'id':0x2},'newName':{'type':'string','id':0x3},'wasUndone':{'type':_0x4d59('0x2'),'id':0x4}}};}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x3ece=['string','description','fields'];(function(_0x2d8f05,_0x4b81bb){var _0x4d74cb=function(_0x32719f){while(--_0x32719f){_0x2d8f05['push'](_0x2d8f05['shift']());}};_0x4d74cb(++_0x4b81bb);}(_0x3ece,0x97));var _0x1981=function(_0x29f74f,_0x36b7dc){_0x29f74f=_0x29f74f-0x0;var _0x5448b1=_0x3ece[_0x29f74f];return _0x5448b1;};import _0x2e040e from'./attributeoperationcompressor';export default class RootAttributeOperationCompressor extends _0x2e040e{static get[_0x1981('0x0')](){const _0x158c32=_0x2e040e[_0x1981('0x0')];return delete _0x158c32[_0x1981('0x1')]['range'],_0x158c32[_0x1981('0x1')]['root']={'type':_0x1981('0x2'),'id':0x1},_0x158c32;}}; | ||
var _0x2fbb=['root','string','description'];(function(_0x2ed9c2,_0x6c1a38){var _0x384d35=function(_0x2ee961){while(--_0x2ee961){_0x2ed9c2['push'](_0x2ed9c2['shift']());}};_0x384d35(++_0x6c1a38);}(_0x2fbb,0xb0));var _0x421b=function(_0x34dffd,_0x4570cb){_0x34dffd=_0x34dffd-0x0;var _0x4286a2=_0x2fbb[_0x34dffd];return _0x4286a2;};import _0x308d1d from'./attributeoperationcompressor';export default class RootAttributeOperationCompressor extends _0x308d1d{static get[_0x421b('0x0')](){const _0x11451c=_0x308d1d[_0x421b('0x0')];return delete _0x11451c['fields']['range'],_0x11451c['fields'][_0x421b('0x1')]={'type':_0x421b('0x2'),'id':0x1},_0x11451c;}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0xaead=['Position','uint32','bool'];(function(_0x4df8e8,_0x504c96){var _0x234530=function(_0x34850e){while(--_0x34850e){_0x4df8e8['push'](_0x4df8e8['shift']());}};_0x234530(++_0x504c96);}(_0xaead,0x17a));var _0x4d5d=function(_0x5aae9b,_0x212c9b){_0x5aae9b=_0x5aae9b-0x0;var _0x406c5f=_0xaead[_0x5aae9b];return _0x406c5f;};import _0x2cfbed from'./operationcompressor';export default class SplitOperationCompressor extends _0x2cfbed{static get['description'](){return{'fields':{'splitPosition':{'type':_0x4d5d('0x0'),'id':0x1},'graveyardPosition':{'type':_0x4d5d('0x0'),'id':0x2},'howMany':{'type':_0x4d5d('0x1'),'id':0x3},'insertionPosition':{'type':_0x4d5d('0x0'),'id':0x4},'wasUndone':{'type':_0x4d5d('0x2'),'id':0x5}}};}}; | ||
var _0x50e6=['Position','bool'];(function(_0xc3c41b,_0x44456d){var _0x11a5ee=function(_0x1a2336){while(--_0x1a2336){_0xc3c41b['push'](_0xc3c41b['shift']());}};_0x11a5ee(++_0x44456d);}(_0x50e6,0x13c));var _0xfe7d=function(_0x450d56,_0x2ec7c4){_0x450d56=_0x450d56-0x0;var _0x55d919=_0x50e6[_0x450d56];return _0x55d919;};import _0x218da7 from'./operationcompressor';export default class SplitOperationCompressor extends _0x218da7{static get['description'](){return{'fields':{'splitPosition':{'type':_0xfe7d('0x0'),'id':0x1},'graveyardPosition':{'type':_0xfe7d('0x0'),'id':0x2},'howMany':{'type':'uint32','id':0x3},'insertionPosition':{'type':'Position','id':0x4},'wasUndone':{'type':_0xfe7d('0x1'),'id':0x5}}};}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x467a=['create','decompress','toObject','decode','registerDescriptor','nested','build','Root','fromJSON','getDescriptor','Cannot\x20get\x20descriptor\x20before\x20build.','lookupType','compress','verify'];(function(_0x2699a9,_0x501e82){var _0x5b6c40=function(_0xa3de42){while(--_0xa3de42){_0x2699a9['push'](_0x2699a9['shift']());}};_0x5b6c40(++_0x501e82);}(_0x467a,0x1b6));var _0x1555=function(_0x24a786,_0x24d1c4){_0x24a786=_0x24a786-0x0;var _0x54072e=_0x467a[_0x24a786];return _0x54072e;};import _0x36b48e from'protobufjs/light';export default class ProtobufFactory{constructor(){this['f']={'nested':{}};}[_0x1555('0x0')](_0x356b8b,_0x177beb){this['f'][_0x1555('0x1')][_0x356b8b]=_0x177beb;}[_0x1555('0x2')](){this['b']=_0x36b48e[_0x1555('0x3')][_0x1555('0x4')](this['f']);}[_0x1555('0x5')](_0x16b370){if(!this['b'])throw new Error(_0x1555('0x6'));return new ProtobufDescriptor(this['b'][_0x1555('0x7')](_0x16b370));}};class ProtobufDescriptor{constructor(_0x42a36c){this['d']=_0x42a36c;}[_0x1555('0x8')](_0x579d00){const _0x39ead9=this['d'][_0x1555('0x9')](_0x579d00);if(_0x39ead9)throw Error(_0x39ead9);return this['d']['encode'](this['d'][_0x1555('0xa')](_0x579d00))['finish']();}[_0x1555('0xb')](_0x4b31e4){return this['d'][_0x1555('0xc')](this['d'][_0x1555('0xd')](_0x4b31e4),{'oneofs':!0x0});}} | ||
var _0x5e27=['decompress','decode','registerDescriptor','nested','build','Root','fromJSON','getDescriptor','protobuffactory-cannot-get-descriptor-before-build:\x20Cannot\x20get\x20descriptor\x20before\x20build.','lookupType','compress','encode','create','finish'];(function(_0x3d032c,_0x4772f3){var _0xbed84f=function(_0x56a10a){while(--_0x56a10a){_0x3d032c['push'](_0x3d032c['shift']());}};_0xbed84f(++_0x4772f3);}(_0x5e27,0xc6));var _0x2f3d=function(_0x5be861,_0x56d391){_0x5be861=_0x5be861-0x0;var _0x6e59d2=_0x5e27[_0x5be861];return _0x6e59d2;};import _0x24d8e3 from'protobufjs/light';import _0x27e87d from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class ProtobufFactory{constructor(){this['f']={'nested':{}};}[_0x2f3d('0x0')](r,o){this['f'][_0x2f3d('0x1')][r]=o;}[_0x2f3d('0x2')](){this['d']=_0x24d8e3[_0x2f3d('0x3')][_0x2f3d('0x4')](this['f']);}[_0x2f3d('0x5')](r){if(!this['d'])throw new _0x27e87d(_0x2f3d('0x6'),this);return new ProtobufDescriptor(this['d'][_0x2f3d('0x7')](r));}};class ProtobufDescriptor{constructor(r){this['b']=r;}[_0x2f3d('0x8')](r){const o=this['b']['verify'](r);if(o)throw Error(o);return this['b'][_0x2f3d('0x9')](this['b'][_0x2f3d('0xa')](r))[_0x2f3d('0xb')]();}[_0x2f3d('0xc')](r){return this['b']['toObject'](this['b'][_0x2f3d('0xd')](r),{'oneofs':!0x0});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x1ec7=['root','main','$graveyard','rootGraveyard','rootMain','nodes','path','length'];(function(_0x67c576,_0x3b774f){var _0x279e2c=function(_0x54f348){while(--_0x54f348){_0x67c576['push'](_0x67c576['shift']());}};_0x279e2c(++_0x3b774f);}(_0x1ec7,0x7e));var _0x15a2=function(_0x468be7,_0x359af){_0x468be7=_0x468be7-0x0;var _0x5b9fc4=_0x1ec7[_0x468be7];return _0x5b9fc4;};import{cloneDeep,isEqual,isObject}from'lodash-es';export function getPositionShiftedBy(_0x3ba10c,_0xe94187){const _0x36090e=cloneDeep(_0x3ba10c);return _0x36090e[_0x15a2('0x0')][_0x36090e['path'][_0x15a2('0x1')]-0x1]+=_0xe94187,_0x36090e;};export function arePositionsEqual(_0x1ede62,_0x3eda6e){return _0x1ede62[_0x15a2('0x2')]===_0x3eda6e[_0x15a2('0x2')]&&isEqual(_0x1ede62[_0x15a2('0x0')],_0x3eda6e[_0x15a2('0x0')]);};export function parsePositionBeforeCompression(_0x809425){_mapPositions(_0x809425,_0x809425=>(_0x15a2('0x3')==_0x809425[_0x15a2('0x2')]?(_0x809425['rootMain']=!0x0,delete _0x809425[_0x15a2('0x2')]):_0x15a2('0x4')==_0x809425[_0x15a2('0x2')]&&(_0x809425[_0x15a2('0x5')]=!0x0,delete _0x809425[_0x15a2('0x2')]),_0x809425));};export function parsePositionAfterCompression(_0x296a37){_mapPositions(_0x296a37,_0x296a37=>(_0x296a37['rootMain']?(_0x296a37['root']=_0x15a2('0x3'),delete _0x296a37[_0x15a2('0x6')]):_0x296a37[_0x15a2('0x5')]&&(_0x296a37[_0x15a2('0x2')]=_0x15a2('0x4'),delete _0x296a37[_0x15a2('0x5')]),_0x296a37));};function _mapPositions(_0x40ddd5,_0x52703b){for(const _0x5ac6f3 in _0x40ddd5){const _0x5d6eee=_0x40ddd5[_0x5ac6f3];_0x15a2('0x7')!==_0x5ac6f3&&isObject(_0x5d6eee)&&(_0x5d6eee[_0x15a2('0x0')]&&(_0x5d6eee[_0x15a2('0x2')]||_0x5d6eee['rootMain']||_0x5d6eee[_0x15a2('0x5')])?_0x40ddd5[_0x5ac6f3]=_0x52703b(_0x5d6eee):_mapPositions(_0x5d6eee,_0x52703b));}return _0x40ddd5;} | ||
var _0x2815=['length','root','main','rootMain','$graveyard','rootGraveyard','nodes','path'];(function(_0x46cc5c,_0x1db30d){var _0x2781e3=function(_0x19607c){while(--_0x19607c){_0x46cc5c['push'](_0x46cc5c['shift']());}};_0x2781e3(++_0x1db30d);}(_0x2815,0xdf));var _0x26e9=function(_0x3da539,_0x27ba14){_0x3da539=_0x3da539-0x0;var _0x41113e=_0x2815[_0x3da539];return _0x41113e;};import{cloneDeep,isEqual,isObject}from'lodash-es';export function getPositionShiftedBy(_0x89ab4f,_0x2e21e9){const _0x24eab6=cloneDeep(_0x89ab4f);return _0x24eab6['path'][_0x24eab6[_0x26e9('0x0')][_0x26e9('0x1')]-0x1]+=_0x2e21e9,_0x24eab6;};export function arePositionsEqual(_0x41b978,_0x2b211f){return _0x41b978[_0x26e9('0x2')]===_0x2b211f[_0x26e9('0x2')]&&isEqual(_0x41b978[_0x26e9('0x0')],_0x2b211f[_0x26e9('0x0')]);};export function parsePositionBeforeCompression(_0x3d5d7b){_mapPositions(_0x3d5d7b,_0x3d5d7b=>(_0x26e9('0x3')==_0x3d5d7b['root']?(_0x3d5d7b[_0x26e9('0x4')]=!0x0,delete _0x3d5d7b[_0x26e9('0x2')]):_0x26e9('0x5')==_0x3d5d7b['root']&&(_0x3d5d7b[_0x26e9('0x6')]=!0x0,delete _0x3d5d7b[_0x26e9('0x2')]),_0x3d5d7b));};export function parsePositionAfterCompression(_0x237c83){_mapPositions(_0x237c83,_0x237c83=>(_0x237c83[_0x26e9('0x4')]?(_0x237c83[_0x26e9('0x2')]='main',delete _0x237c83[_0x26e9('0x4')]):_0x237c83[_0x26e9('0x6')]&&(_0x237c83[_0x26e9('0x2')]='$graveyard',delete _0x237c83['rootGraveyard']),_0x237c83));};function _mapPositions(_0x24849c,_0x15867a){for(const _0x5729a3 in _0x24849c){const _0x1a6453=_0x24849c[_0x5729a3];_0x26e9('0x7')!==_0x5729a3&&isObject(_0x1a6453)&&(_0x1a6453['path']&&(_0x1a6453['root']||_0x1a6453[_0x26e9('0x4')]||_0x1a6453['rootGraveyard'])?_0x24849c[_0x5729a3]=_0x15867a(_0x1a6453):_mapPositions(_0x1a6453,_0x15867a));}return _0x24849c;} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56904
3
+ Added@ckeditor/ckeditor5-utils@13.0.1(transitive)
+ Addedckeditor5@12.4.0(transitive)