@univerjs-pro/docs-code 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x27d22f=_0x2d33;(function(_0xb7cb0a,_0x851f2d){const _0x307c3a=_0x2d33,_0x194ce7=_0xb7cb0a();while(!![]){try{const _0x37d08a=parseInt(_0x307c3a(0x7a))/0x1+-parseInt(_0x307c3a(0x8d))/0x2+-parseInt(_0x307c3a(0x8e))/0x3+parseInt(_0x307c3a(0x76))/0x4+parseInt(_0x307c3a(0xb5))/0x5*(parseInt(_0x307c3a(0x8c))/0x6)+parseInt(_0x307c3a(0x8a))/0x7+-parseInt(_0x307c3a(0xa6))/0x8;if(_0x37d08a===_0x851f2d)break;else _0x194ce7['push'](_0x194ce7['shift']());}catch(_0x38bf67){_0x194ce7['push'](_0x194ce7['shift']());}}}(_0x5e66,0xe41b3),Object[_0x27d22f(0xa8)](exports,Symbol[_0x27d22f(0xa5)],{'value':'Module'}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0xc6574c){'@babel/helpers - typeof';const _0x20558f=_0x27d22f;return r=typeof Symbol==_0x20558f(0x70)&&typeof Symbol[_0x20558f(0x75)]=='symbol'?function(_0x5c2c28){return typeof _0x5c2c28;}:function(_0x300b42){const _0x2e06a1=_0x20558f;return _0x300b42&&typeof Symbol==_0x2e06a1(0x70)&&_0x300b42[_0x2e06a1(0xab)]===Symbol&&_0x300b42!==Symbol[_0x2e06a1(0x79)]?_0x2e06a1(0x87):typeof _0x300b42;},r(_0xc6574c);}function i(_0x128259,_0x5d4162){const _0x3a1a6d=_0x27d22f;if(r(_0x128259)!='object'||!_0x128259)return _0x128259;var _0x4cf036=_0x128259[Symbol[_0x3a1a6d(0x85)]];if(_0x4cf036!==void 0x0){var _0x5c0fc1=_0x4cf036['call'](_0x128259,_0x5d4162||_0x3a1a6d(0xb0));if(r(_0x5c0fc1)!=_0x3a1a6d(0x83))return _0x5c0fc1;throw TypeError(_0x3a1a6d(0x78));}return(_0x5d4162===_0x3a1a6d(0xb8)?String:Number)(_0x128259);}function a(_0x53da77){const _0x51dd0a=_0x27d22f;var _0x5cc5f7=i(_0x53da77,_0x51dd0a(0xb8));return r(_0x5cc5f7)==_0x51dd0a(0x87)?_0x5cc5f7:_0x5cc5f7+'';}function o(_0x77f306,_0x33a77e,_0x510f76){const _0x123db4=_0x27d22f;return(_0x33a77e=a(_0x33a77e))in _0x77f306?Object[_0x123db4(0xa8)](_0x77f306,_0x33a77e,{'value':_0x510f76,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x77f306[_0x33a77e]=_0x510f76,_0x77f306;}function s(_0x205cff,_0x21319c){return function(_0x337435,_0x3a5fd8){_0x21319c(_0x337435,_0x3a5fd8,_0x205cff);};}function _0x5e66(){const _0x55f6ca=['isParagraphFacade','extend','find','_getDocumentData','insertCode','slice','describe','includes','map','getCodes','endIndex','PARAGRAPH','_document','normalizeDocsCodeConfig','CODE','createInstance','getRange','getOwnPropertyDescriptor','DocsCodeRemoveCommand','toStringTag','10633616ZPnMDZ','DocsCodeModel','defineProperty','_createFDocumentCode','decorate','constructor','filter','DataStreamTreeTokenType','ICommandService','save','default','text','blockId','getId','getCodeAt','252055ragBiw','findCodes','_unitId','string','getText','remove','get','body','length','function','getCodeConfig','startIndex','BLOCK_END','_getBlockRange','iterator','818380SAFJHY','FDocument','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','prototype','1345880wfAHpC','config','_injector','join','Inject','DocumentBlockRangeType','updateConfig','getConfig','getCode','object','syncExecuteCommand','toPrimitive','Injector','symbol','generateRandomId','_getBlockRanges','12077163HRKFAo','DocsCodeInsertCommand','192xlQcRB','2317706oKKKzy','4399674BLdSmB','unwrap','blockType','_blockId'];_0x5e66=function(){return _0x55f6ca;};return _0x5e66();}function c(_0x4ca8f6,_0x12df4e,_0x371511,_0x2b3827){const _0x346675=_0x27d22f;var _0x5e84b3=arguments[_0x346675(0xbd)],_0x862fb4=_0x5e84b3<0x3?_0x12df4e:_0x2b3827===null?_0x2b3827=Object[_0x346675(0xa3)](_0x12df4e,_0x371511):_0x2b3827,_0x54210f;if(typeof Reflect==_0x346675(0x83)&&typeof Reflect[_0x346675(0xaa)]==_0x346675(0x70))_0x862fb4=Reflect['decorate'](_0x4ca8f6,_0x12df4e,_0x371511,_0x2b3827);else{for(var _0x413695=_0x4ca8f6[_0x346675(0xbd)]-0x1;_0x413695>=0x0;_0x413695--)(_0x54210f=_0x4ca8f6[_0x413695])&&(_0x862fb4=(_0x5e84b3<0x3?_0x54210f(_0x862fb4):_0x5e84b3>0x3?_0x54210f(_0x12df4e,_0x371511,_0x862fb4):_0x54210f(_0x12df4e,_0x371511))||_0x862fb4);}return _0x5e84b3>0x3&&_0x862fb4&&Object[_0x346675(0xa8)](_0x12df4e,_0x371511,_0x862fb4),_0x862fb4;}let l=class{constructor(_0xb7c7d8,_0x3c7bee,_0x416088){const _0xb6f49c=_0x27d22f;this['_document']=_0xb7c7d8,this[_0xb6f49c(0x91)]=_0x3c7bee,this[_0xb6f49c(0x7c)]=_0x416088,o(this,_0xb6f49c(0xb7),void 0x0),this[_0xb6f49c(0xb7)]=this[_0xb6f49c(0x9e)][_0xb6f49c(0xb3)]();}[_0x27d22f(0xb3)](){const _0x56f2f3=_0x27d22f;return this[_0x56f2f3(0x91)];}[_0x27d22f(0xa2)](){const _0x27a95f=_0x27d22f;let _0x3ede75=this['_getBlockRange']();return _0x3ede75?{'blockId':_0x3ede75[_0x27a95f(0xb2)],'endIndex':_0x3ede75['endIndex'],'startIndex':_0x3ede75[_0x27a95f(0x72)]}:null;}['getText'](){const _0x41450e=_0x27d22f;var _0x447757;let _0x342224=this[_0x41450e(0x74)](),_0x5b9af4=(_0x447757=this[_0x41450e(0x95)]()[_0x41450e(0xbc)])==null?void 0x0:_0x447757['dataStream'];return!_0x342224||!_0x5b9af4?'':u(_0x5b9af4[_0x41450e(0x97)](_0x342224[_0x41450e(0x72)]+0x1,_0x342224[_0x41450e(0x9c)]));}[_0x27d22f(0x98)](){const _0x9e808b=_0x27d22f;let _0x217e4c=this[_0x9e808b(0xa2)]();return _0x217e4c?{..._0x217e4c,'config':this[_0x9e808b(0x81)](),'text':this[_0x9e808b(0xb9)](),'type':t[_0x9e808b(0x7f)][_0x9e808b(0xa0)]}:null;}[_0x27d22f(0x81)](){const _0x4b0015=_0x27d22f;let _0x5b8a69=this[_0x4b0015(0x7c)][_0x4b0015(0xbb)](e[_0x4b0015(0xa7)]);return(0x0,e[_0x4b0015(0x9f)])(_0x5b8a69[_0x4b0015(0x71)](this[_0x4b0015(0xb7)],this[_0x4b0015(0x91)]));}[_0x27d22f(0x80)](_0xea2e39){const _0x15ce86=_0x27d22f;return this[_0x15ce86(0x7c)][_0x15ce86(0xbb)](t[_0x15ce86(0xae)])[_0x15ce86(0x84)](e['DocsCodeUpdateCommand']['id'],{'blockId':this[_0x15ce86(0x91)],'config':_0xea2e39[_0x15ce86(0x7b)],'unitId':this[_0x15ce86(0xb7)]});}[_0x27d22f(0x8f)](){const _0x2dea67=_0x27d22f;return this[_0x2dea67(0x7c)][_0x2dea67(0xbb)](t[_0x2dea67(0xae)])[_0x2dea67(0x84)](e['DocsCodeUnwrapCommand']['id'],{'blockId':this[_0x2dea67(0x91)],'unitId':this[_0x2dea67(0xb7)]});}[_0x27d22f(0xba)](){const _0x26cb31=_0x27d22f;return this[_0x26cb31(0x7c)]['get'](t[_0x26cb31(0xae)])['syncExecuteCommand'](e[_0x26cb31(0xa4)]['id'],{'blockId':this[_0x26cb31(0x91)],'unitId':this[_0x26cb31(0xb7)]});}[_0x27d22f(0x74)](){const _0x17eebe=_0x27d22f;var _0x2ef394;return((_0x2ef394=this[_0x17eebe(0x95)]()[_0x17eebe(0xbc)])==null||(_0x2ef394=_0x2ef394['blockRanges'])==null?void 0x0:_0x2ef394[_0x17eebe(0x94)](_0x45b3de=>_0x45b3de[_0x17eebe(0xb2)]===this[_0x17eebe(0x91)]&&_0x45b3de[_0x17eebe(0x90)]===t['DocumentBlockRangeType'][_0x17eebe(0xa0)]))??null;}[_0x27d22f(0x95)](){const _0x4783f1=_0x27d22f;return this[_0x4783f1(0x9e)]['save']();}};l=c([s(0x2,(0x0,t[_0x27d22f(0x7e)])(t[_0x27d22f(0x86)]))],l);function _0x2d33(_0x2125b3,_0x3cf4a8){_0x2125b3=_0x2125b3-0x70;const _0x5e66cf=_0x5e66();let _0x2d3382=_0x5e66cf[_0x2125b3];return _0x2d3382;}function u(_0x1b734b){const _0x305066=_0x27d22f;return Array['from'](_0x1b734b)[_0x305066(0x9a)](_0x2f268e=>_0x2f268e===t[_0x305066(0xad)][_0x305066(0x9d)]?'\x0a':_0x2f268e)[_0x305066(0xac)](_0x24abd=>_0x24abd!==t[_0x305066(0xad)]['BLOCK_START']&&_0x24abd!==t[_0x305066(0xad)][_0x305066(0x73)]&&_0x24abd!==t[_0x305066(0xad)]['SECTION_BREAK'])[_0x305066(0x7d)]('')['replace'](/\n$/,'');}var d=class extends n[_0x27d22f(0x77)]{[_0x27d22f(0x9b)](){const _0x16742e=_0x27d22f;return this[_0x16742e(0x89)]()[_0x16742e(0xac)](_0x46d246=>_0x46d246['blockType']===t[_0x16742e(0x7f)][_0x16742e(0xa0)])['map'](_0x48bb43=>this['_createFDocumentCode'](_0x48bb43[_0x16742e(0xb2)]));}[_0x27d22f(0x82)](_0x4ec2b5){const _0x558c20=_0x27d22f;return this[_0x558c20(0x89)]()['some'](_0x3c6fc0=>_0x3c6fc0[_0x558c20(0xb2)]===_0x4ec2b5&&_0x3c6fc0[_0x558c20(0x90)]===t[_0x558c20(0x7f)][_0x558c20(0xa0)])?this[_0x558c20(0xa9)](_0x4ec2b5):null;}[_0x27d22f(0xb4)](_0xaf5f95){const _0x2b8d50=_0x27d22f;let _0x45036f=this[_0x2b8d50(0x89)]()[_0x2b8d50(0x94)](_0x306ebe=>_0x306ebe[_0x2b8d50(0x90)]===t[_0x2b8d50(0x7f)]['CODE']&&_0x306ebe[_0x2b8d50(0x72)]<=_0xaf5f95&&_0xaf5f95<=_0x306ebe[_0x2b8d50(0x9c)]);return _0x45036f?this[_0x2b8d50(0xa9)](_0x45036f['blockId']):null;}['findCodeByText'](_0x516c56){const _0x510969=_0x27d22f;return this[_0x510969(0xb6)](_0x516c56)[0x0]??null;}[_0x27d22f(0xb6)](_0x2444c8){const _0x1a890b=_0x27d22f;let _0x223608=typeof _0x2444c8==_0x1a890b(0xb8)?{'text':_0x2444c8}:_0x2444c8;return this[_0x1a890b(0x9b)]()[_0x1a890b(0xac)](_0x344c71=>!(_0x223608[_0x1a890b(0xb2)]&&_0x344c71[_0x1a890b(0xb3)]()!==_0x223608[_0x1a890b(0xb2)]||_0x223608[_0x1a890b(0xb1)]&&!_0x344c71[_0x1a890b(0xb9)]()[_0x1a890b(0x99)](_0x223608[_0x1a890b(0xb1)])));}[_0x27d22f(0x96)](_0xf60e0={},_0x5a1e9={}){const _0x3a09c0=_0x27d22f;let _0x213433=this[_0x3a09c0(0x7c)][_0x3a09c0(0xbb)](t[_0x3a09c0(0xae)]),_0x41264c=(0x0,n[_0x3a09c0(0x92)])(_0xf60e0)?{..._0x5a1e9,..._0xf60e0[_0x3a09c0(0xa2)]()}:_0xf60e0,_0x4aa935=_0x41264c[_0x3a09c0(0xb2)]??(0x0,t[_0x3a09c0(0x88)])(0x6);return _0x213433[_0x3a09c0(0x84)](e[_0x3a09c0(0x8b)]['id'],{..._0x41264c,'blockId':_0x4aa935,'unitId':this['getId']()})?this['getCode'](_0x4aa935):null;}['_getBlockRanges'](){const _0x57313b=_0x27d22f;var _0x89ceca;return((_0x89ceca=this[_0x57313b(0xaf)]()[_0x57313b(0xbc)])==null?void 0x0:_0x89ceca['blockRanges'])??[];}['_createFDocumentCode'](_0x25f86b){const _0xad742=_0x27d22f;return this[_0xad742(0x7c)][_0xad742(0xa1)](l,this,_0x25f86b);}};n[_0x27d22f(0x77)][_0x27d22f(0x93)](d),Object[_0x27d22f(0xa8)](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
1
+ const _0x87345e=_0x57fb;function _0x1d75(){const _0x5ec111=['normalizeDocsCodeConfig','_getBlockRanges','findCodes','toPrimitive','getRange','map','FDocumentCode','DocsCodeUpdateCommand','prototype','object','blockType','_blockId','Injector','body','function','DocsCodeUnwrapCommand','endIndex','getOwnPropertyDescriptor','createInstance','blockRanges','string','BLOCK_END','text','getCodeConfig','isParagraphFacade','findCodeByText','2625078BjOBfI','decorate','DocsCodeInsertCommand','get','DataStreamTreeTokenType','filter','save','blockId','Module','replace','find','BLOCK_START','Inject','4ZNdZGF','config','call','_createFDocumentCode','dataStream','_document','symbol','1700478CKKaao','join','defineProperty','getCodes','iterator','_unitId','getCodeAt','updateConfig','describe','2441970gchlYS','getCode','1378640jegFgg','1623040ugpJtC','FDocument','DocsCodeRemoveCommand','generateRandomId','_getDocumentData','from','DocumentBlockRangeType','_getBlockRange','getConfig','syncExecuteCommand','includes','remove','DocsCodeModel','length','CODE','extend','constructor','insertCode','getText','ICommandService','_injector','getId','334608DMOVUc','42CTkXOv','some','513224gTveYy','unwrap','startIndex'];_0x1d75=function(){return _0x5ec111;};return _0x1d75();}(function(_0xb46b1,_0x20fb5d){const _0x33b50a=_0x57fb,_0x2ec3b9=_0xb46b1();while(!![]){try{const _0x4e0dc7=-parseInt(_0x33b50a(0x214))/0x1+parseInt(_0x33b50a(0x1fa))/0x2+parseInt(_0x33b50a(0x1db))/0x3*(parseInt(_0x33b50a(0x1e8))/0x4)+-parseInt(_0x33b50a(0x1fb))/0x5+parseInt(_0x33b50a(0x1f8))/0x6+parseInt(_0x33b50a(0x212))/0x7*(-parseInt(_0x33b50a(0x211))/0x8)+-parseInt(_0x33b50a(0x1ef))/0x9;if(_0x4e0dc7===_0x20fb5d)break;else _0x2ec3b9['push'](_0x2ec3b9['shift']());}catch(_0x55f2d2){_0x2ec3b9['push'](_0x2ec3b9['shift']());}}}(_0x1d75,0xa956b),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x87345e(0x1e3)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x34d608){'@babel/helpers - typeof';const _0x369f2a=_0x87345e;return r=typeof Symbol==_0x369f2a(0x1cf)&&typeof Symbol[_0x369f2a(0x1f3)]==_0x369f2a(0x1ee)?function(_0x5c821c){return typeof _0x5c821c;}:function(_0x1fd10f){const _0x135d35=_0x369f2a;return _0x1fd10f&&typeof Symbol=='function'&&_0x1fd10f[_0x135d35(0x20b)]===Symbol&&_0x1fd10f!==Symbol[_0x135d35(0x1c9)]?'symbol':typeof _0x1fd10f;},r(_0x34d608);}function _0x57fb(_0x2888b9,_0x4cf822){_0x2888b9=_0x2888b9-0x1c1;const _0x1d7519=_0x1d75();let _0x57fb0b=_0x1d7519[_0x2888b9];return _0x57fb0b;}function i(_0x185b0f,_0x124d38){const _0x2c809d=_0x87345e;if(r(_0x185b0f)!='object'||!_0x185b0f)return _0x185b0f;var _0x11bec2=_0x185b0f[Symbol[_0x2c809d(0x1c4)]];if(_0x11bec2!==void 0x0){var _0x154294=_0x11bec2[_0x2c809d(0x1ea)](_0x185b0f,_0x124d38||'default');if(r(_0x154294)!='object')return _0x154294;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x124d38==='string'?String:Number)(_0x185b0f);}function a(_0x5cebc7){const _0x3d95e7=_0x87345e;var _0x20427c=i(_0x5cebc7,_0x3d95e7(0x1d5));return r(_0x20427c)==_0x3d95e7(0x1ee)?_0x20427c:_0x20427c+'';}function o(_0x40e256,_0x3861c1,_0x4fdb39){const _0x5c1276=_0x87345e;return(_0x3861c1=a(_0x3861c1))in _0x40e256?Object[_0x5c1276(0x1f1)](_0x40e256,_0x3861c1,{'value':_0x4fdb39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40e256[_0x3861c1]=_0x4fdb39,_0x40e256;}function s(_0x192613,_0x42aae6){return function(_0x32ebe4,_0x5b0ca1){_0x42aae6(_0x32ebe4,_0x5b0ca1,_0x192613);};}function c(_0x387fff,_0xe9f7a8,_0x394d57,_0x32c89a){const _0x3e9ad5=_0x87345e;var _0x4c12f2=arguments[_0x3e9ad5(0x208)],_0x21a425=_0x4c12f2<0x3?_0xe9f7a8:_0x32c89a===null?_0x32c89a=Object[_0x3e9ad5(0x1d2)](_0xe9f7a8,_0x394d57):_0x32c89a,_0x363dd0;if(typeof Reflect==_0x3e9ad5(0x1ca)&&typeof Reflect[_0x3e9ad5(0x1dc)]=='function')_0x21a425=Reflect[_0x3e9ad5(0x1dc)](_0x387fff,_0xe9f7a8,_0x394d57,_0x32c89a);else{for(var _0x7a0e2a=_0x387fff[_0x3e9ad5(0x208)]-0x1;_0x7a0e2a>=0x0;_0x7a0e2a--)(_0x363dd0=_0x387fff[_0x7a0e2a])&&(_0x21a425=(_0x4c12f2<0x3?_0x363dd0(_0x21a425):_0x4c12f2>0x3?_0x363dd0(_0xe9f7a8,_0x394d57,_0x21a425):_0x363dd0(_0xe9f7a8,_0x394d57))||_0x21a425);}return _0x4c12f2>0x3&&_0x21a425&&Object['defineProperty'](_0xe9f7a8,_0x394d57,_0x21a425),_0x21a425;}let l=class{constructor(_0x14c4d0,_0x5344c4,_0x3c9070){const _0x5ed196=_0x87345e;this[_0x5ed196(0x1ed)]=_0x14c4d0,this[_0x5ed196(0x1cc)]=_0x5344c4,this[_0x5ed196(0x20f)]=_0x3c9070,o(this,'_unitId',void 0x0),this[_0x5ed196(0x1f4)]=this[_0x5ed196(0x1ed)][_0x5ed196(0x210)]();}[_0x87345e(0x210)](){return this['_blockId'];}[_0x87345e(0x1c5)](){const _0x44d28d=_0x87345e;let _0x3d2669=this[_0x44d28d(0x202)]();return _0x3d2669?{'blockId':_0x3d2669[_0x44d28d(0x1e2)],'endIndex':_0x3d2669[_0x44d28d(0x1d1)],'startIndex':_0x3d2669[_0x44d28d(0x216)]}:null;}[_0x87345e(0x20d)](){const _0x22b0b8=_0x87345e;var _0x5dcf11;let _0x23768c=this[_0x22b0b8(0x202)](),_0x1e0c38=(_0x5dcf11=this[_0x22b0b8(0x1ff)]()[_0x22b0b8(0x1ce)])==null?void 0x0:_0x5dcf11[_0x22b0b8(0x1ec)];return!_0x23768c||!_0x1e0c38?'':u(_0x1e0c38['slice'](_0x23768c[_0x22b0b8(0x216)]+0x1,_0x23768c['endIndex']));}[_0x87345e(0x1f7)](){const _0x47632e=_0x87345e;let _0x2d360c=this[_0x47632e(0x1c5)]();return _0x2d360c?{..._0x2d360c,'config':this[_0x47632e(0x203)](),'text':this['getText'](),'type':t['DocumentBlockRangeType'][_0x47632e(0x209)]}:null;}[_0x87345e(0x203)](){const _0x5cde44=_0x87345e;let _0x2c0c99=this[_0x5cde44(0x20f)][_0x5cde44(0x1de)](e[_0x5cde44(0x207)]);return(0x0,e[_0x5cde44(0x1c1)])(_0x2c0c99[_0x5cde44(0x1d8)](this['_unitId'],this[_0x5cde44(0x1cc)]));}[_0x87345e(0x1f6)](_0x3f5341){const _0x51a013=_0x87345e;return this[_0x51a013(0x20f)][_0x51a013(0x1de)](t[_0x51a013(0x20e)])[_0x51a013(0x204)](e[_0x51a013(0x1c8)]['id'],{'blockId':this['_blockId'],'config':_0x3f5341[_0x51a013(0x1e9)],'unitId':this['_unitId']});}[_0x87345e(0x215)](){const _0xe3ccbf=_0x87345e;return this['_injector'][_0xe3ccbf(0x1de)](t[_0xe3ccbf(0x20e)])['syncExecuteCommand'](e[_0xe3ccbf(0x1d0)]['id'],{'blockId':this[_0xe3ccbf(0x1cc)],'unitId':this[_0xe3ccbf(0x1f4)]});}[_0x87345e(0x206)](){const _0x219589=_0x87345e;return this[_0x219589(0x20f)][_0x219589(0x1de)](t[_0x219589(0x20e)])['syncExecuteCommand'](e[_0x219589(0x1fd)]['id'],{'blockId':this[_0x219589(0x1cc)],'unitId':this[_0x219589(0x1f4)]});}[_0x87345e(0x202)](){const _0x5ade43=_0x87345e;var _0xa3e87b;return((_0xa3e87b=this['_getDocumentData']()[_0x5ade43(0x1ce)])==null||(_0xa3e87b=_0xa3e87b[_0x5ade43(0x1d4)])==null?void 0x0:_0xa3e87b[_0x5ade43(0x1e5)](_0xb116fe=>_0xb116fe[_0x5ade43(0x1e2)]===this['_blockId']&&_0xb116fe[_0x5ade43(0x1cb)]===t[_0x5ade43(0x201)][_0x5ade43(0x209)]))??null;}['_getDocumentData'](){const _0xcdaa2f=_0x87345e;return this[_0xcdaa2f(0x1ed)][_0xcdaa2f(0x1e1)]();}};l=c([s(0x2,(0x0,t[_0x87345e(0x1e7)])(t[_0x87345e(0x1cd)]))],l);function u(_0x436e2b){const _0x519a30=_0x87345e;return Array[_0x519a30(0x200)](_0x436e2b)[_0x519a30(0x1c6)](_0x43b2f9=>_0x43b2f9===t[_0x519a30(0x1df)]['PARAGRAPH']?'\x0a':_0x43b2f9)['filter'](_0x5ead12=>_0x5ead12!==t['DataStreamTreeTokenType'][_0x519a30(0x1e6)]&&_0x5ead12!==t[_0x519a30(0x1df)][_0x519a30(0x1d6)]&&_0x5ead12!==t['DataStreamTreeTokenType']['SECTION_BREAK'])[_0x519a30(0x1f0)]('')[_0x519a30(0x1e4)](/\n$/,'');}var d=class extends n[_0x87345e(0x1fc)]{['getCodes'](){const _0x41ac40=_0x87345e;return this[_0x41ac40(0x1c2)]()[_0x41ac40(0x1e0)](_0x19171b=>_0x19171b[_0x41ac40(0x1cb)]===t[_0x41ac40(0x201)][_0x41ac40(0x209)])['map'](_0x17f940=>this['_createFDocumentCode'](_0x17f940[_0x41ac40(0x1e2)]));}[_0x87345e(0x1f9)](_0x8c9ef9){const _0x11a92f=_0x87345e;return this['_getBlockRanges']()[_0x11a92f(0x213)](_0x2c0adb=>_0x2c0adb[_0x11a92f(0x1e2)]===_0x8c9ef9&&_0x2c0adb[_0x11a92f(0x1cb)]===t[_0x11a92f(0x201)]['CODE'])?this['_createFDocumentCode'](_0x8c9ef9):null;}[_0x87345e(0x1f5)](_0x2c6970){const _0x72f05f=_0x87345e;let _0x57cc28=this[_0x72f05f(0x1c2)]()[_0x72f05f(0x1e5)](_0x52138f=>_0x52138f[_0x72f05f(0x1cb)]===t[_0x72f05f(0x201)]['CODE']&&_0x52138f['startIndex']<=_0x2c6970&&_0x2c6970<=_0x52138f[_0x72f05f(0x1d1)]);return _0x57cc28?this['_createFDocumentCode'](_0x57cc28[_0x72f05f(0x1e2)]):null;}[_0x87345e(0x1da)](_0x139329){const _0x2f1224=_0x87345e;return this[_0x2f1224(0x1c3)](_0x139329)[0x0]??null;}['findCodes'](_0x246f82){const _0x580201=_0x87345e;let _0x59c01d=typeof _0x246f82=='string'?{'text':_0x246f82}:_0x246f82;return this[_0x580201(0x1f2)]()[_0x580201(0x1e0)](_0x2943bf=>!(_0x59c01d[_0x580201(0x1e2)]&&_0x2943bf[_0x580201(0x210)]()!==_0x59c01d['blockId']||_0x59c01d[_0x580201(0x1d7)]&&!_0x2943bf[_0x580201(0x20d)]()[_0x580201(0x205)](_0x59c01d[_0x580201(0x1d7)])));}[_0x87345e(0x20c)](_0x115dc2={},_0x27936f={}){const _0x452b89=_0x87345e;let _0x479307=this['_injector'][_0x452b89(0x1de)](t[_0x452b89(0x20e)]),_0x3fb3dd=(0x0,n[_0x452b89(0x1d9)])(_0x115dc2)?{..._0x27936f,..._0x115dc2[_0x452b89(0x1c5)]()}:_0x115dc2,_0x2fe70f=_0x3fb3dd[_0x452b89(0x1e2)]??(0x0,t[_0x452b89(0x1fe)])(0x6);return _0x479307['syncExecuteCommand'](e[_0x452b89(0x1dd)]['id'],{..._0x3fb3dd,'blockId':_0x2fe70f,'unitId':this['getId']()})?this['getCode'](_0x2fe70f):null;}['_getBlockRanges'](){const _0x5b5f7e=_0x87345e;var _0x1e1431;return((_0x1e1431=this['save']()['body'])==null?void 0x0:_0x1e1431[_0x5b5f7e(0x1d4)])??[];}[_0x87345e(0x1eb)](_0xcafbec){const _0x46baf4=_0x87345e;return this[_0x46baf4(0x20f)][_0x46baf4(0x1d3)](l,this,_0xcafbec);}};n[_0x87345e(0x1fc)][_0x87345e(0x20a)](d),Object[_0x87345e(0x1f1)](exports,_0x87345e(0x1c7),{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4c6b99=_0x4c8f;(function(_0x306610,_0x5d4111){const _0x278fd6=_0x4c8f,_0x25de99=_0x306610();while(!![]){try{const _0x3dbb9a=parseInt(_0x278fd6(0x159))/0x1*(-parseInt(_0x278fd6(0x1e0))/0x2)+-parseInt(_0x278fd6(0x167))/0x3+-parseInt(_0x278fd6(0x1e3))/0x4*(-parseInt(_0x278fd6(0x1d3))/0x5)+parseInt(_0x278fd6(0x15f))/0x6*(-parseInt(_0x278fd6(0x1c9))/0x7)+parseInt(_0x278fd6(0x1cb))/0x8*(-parseInt(_0x278fd6(0x20d))/0x9)+parseInt(_0x278fd6(0x1bf))/0xa+parseInt(_0x278fd6(0x15a))/0xb;if(_0x3dbb9a===_0x5d4111)break;else _0x25de99['push'](_0x25de99['shift']());}catch(_0xdbc4d7){_0x25de99['push'](_0x25de99['shift']());}}}(_0x3e8d,0xc5af5),Object[_0x4c6b99(0x1de)](exports,Symbol['toStringTag'],{'value':_0x4c6b99(0x1ab)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x4c6b99(0x209),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x143325){return{...i,..._0x143325};}function o(_0x1cb49e){const _0x56c83b=_0x4c6b99;let _0x1ea3a3=(_0x1cb49e==null?void 0x0:_0x1cb49e[_0x56c83b(0x1af)])??{};return{'codes':Object['fromEntries'](Object['entries'](_0x1ea3a3)[_0x56c83b(0x219)](([_0x4054a2,_0x21e00d])=>[_0x4054a2,a(_0x21e00d)]))};}function s(_0x4e97d0,_0x7a5794,_0x380353){let _0x17e8b0=o(_0x4e97d0);return _0x17e8b0['codes'][_0x7a5794]=a({..._0x17e8b0['codes'][_0x7a5794],..._0x380353}),_0x17e8b0;}function c(_0x2fdd39,_0x55b1c4){let _0x3e23c3=o(_0x2fdd39);return delete _0x3e23c3['codes'][_0x55b1c4],_0x3e23c3;}function l(_0x51bf48){'@babel/helpers - typeof';const _0x5d73bf=_0x4c6b99;return l=typeof Symbol==_0x5d73bf(0x1a7)&&typeof Symbol['iterator']==_0x5d73bf(0x1bc)?function(_0x3de58f){return typeof _0x3de58f;}:function(_0x2ecde5){const _0xfdfb20=_0x5d73bf;return _0x2ecde5&&typeof Symbol=='function'&&_0x2ecde5[_0xfdfb20(0x16f)]===Symbol&&_0x2ecde5!==Symbol[_0xfdfb20(0x1e8)]?_0xfdfb20(0x1bc):typeof _0x2ecde5;},l(_0x51bf48);}function u(_0x301e40,_0x4c0451){const _0x35c0c3=_0x4c6b99;if(l(_0x301e40)!='object'||!_0x301e40)return _0x301e40;var _0xbb1501=_0x301e40[Symbol[_0x35c0c3(0x1d1)]];if(_0xbb1501!==void 0x0){var _0x347aed=_0xbb1501[_0x35c0c3(0x187)](_0x301e40,_0x4c0451||'default');if(l(_0x347aed)!='object')return _0x347aed;throw TypeError(_0x35c0c3(0x1f1));}return(_0x4c0451===_0x35c0c3(0x1d7)?String:Number)(_0x301e40);}function d(_0x3d3ec1){const _0x37d94b=_0x4c6b99;var _0x2e4452=u(_0x3d3ec1,_0x37d94b(0x1d7));return l(_0x2e4452)=='symbol'?_0x2e4452:_0x2e4452+'';}function f(_0x4a55f5,_0x37f4d9,_0x24391b){const _0x32cfc5=_0x4c6b99;return(_0x37f4d9=d(_0x37f4d9))in _0x4a55f5?Object[_0x32cfc5(0x1de)](_0x4a55f5,_0x37f4d9,{'value':_0x24391b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a55f5[_0x37f4d9]=_0x24391b,_0x4a55f5;}var p=class extends e[_0x4c6b99(0x16c)]{constructor(..._0x1b9ebd){const _0x2a55ad=_0x4c6b99;super(..._0x1b9ebd),f(this,'_resources',new Map()),f(this,_0x2a55ad(0x227),new t[(_0x2a55ad(0x22f))]()),f(this,'change$',this[_0x2a55ad(0x227)]['asObservable']());}[_0x4c6b99(0x160)](_0x109ca0,_0x4f266){const _0x3ed502=_0x4c6b99;return o(this[_0x3ed502(0x20a)]['get'](_0x109ca0))[_0x3ed502(0x1af)][_0x4f266];}['setCodeConfig'](_0xb8a3d,_0x434f5a,_0x3c22eb){const _0x5ded1d=_0x4c6b99;this['_setResource'](_0xb8a3d,_0x434f5a,s(this[_0x5ded1d(0x20a)]['get'](_0xb8a3d),_0x434f5a,_0x3c22eb));}[_0x4c6b99(0x1f3)](_0x1cff8a,_0x5c7b15){const _0x577a5c=_0x4c6b99;this[_0x577a5c(0x1a0)](_0x1cff8a,_0x5c7b15,c(this[_0x577a5c(0x20a)]['get'](_0x1cff8a),_0x5c7b15));}[_0x4c6b99(0x1c6)](_0x3b11fa){const _0xbd0af7=_0x4c6b99;return o(this['_resources'][_0xbd0af7(0x1fa)](_0x3b11fa));}[_0x4c6b99(0x1ea)](_0x53f77d,_0x44270a){const _0x2880ab=_0x4c6b99;this[_0x2880ab(0x20a)]['set'](_0x53f77d,o(_0x44270a)),this[_0x2880ab(0x227)][_0x2880ab(0x16d)]({'unitId':_0x53f77d});}['removeUnit'](_0x504d8d){const _0x505a26=_0x4c6b99;this[_0x505a26(0x20a)]['delete'](_0x504d8d),this[_0x505a26(0x227)][_0x505a26(0x16d)]({'unitId':_0x504d8d});}[_0x4c6b99(0x1ca)](){const _0x44f8c2=_0x4c6b99;super[_0x44f8c2(0x1ca)](),this[_0x44f8c2(0x20a)][_0x44f8c2(0x16e)](),this[_0x44f8c2(0x227)]['complete']();}[_0x4c6b99(0x1a0)](_0xbf3730,_0x1c6055,_0x2edd8c){const _0x1e979a=_0x4c6b99;this['_resources'][_0x1e979a(0x190)](_0xbf3730,_0x2edd8c),this['_change$']['next']({'unitId':_0xbf3730,'blockId':_0x1c6055});}};const m={'id':_0x4c6b99(0x204),'type':e[_0x4c6b99(0x1c1)][_0x4c6b99(0x18d)],'handler':(_0xd19162,_0x376727)=>!(_0x376727!=null&&_0x376727['unitId'])||!_0x376727[_0x4c6b99(0x1a6)]?!0x1:(_0xd19162[_0x4c6b99(0x1fa)](p)[_0x4c6b99(0x1fe)](_0x376727[_0x4c6b99(0x1b3)],_0x376727['blockId'],_0x376727['config']),!0x0)},h={'id':'docs-code.mutation.remove-config','type':e[_0x4c6b99(0x1c1)]['MUTATION'],'handler':(_0x1b01ed,_0x1093b6)=>!(_0x1093b6!=null&&_0x1093b6[_0x4c6b99(0x1b3)])||!_0x1093b6[_0x4c6b99(0x1a6)]?!0x1:(_0x1b01ed[_0x4c6b99(0x1fa)](p)['removeCode'](_0x1093b6[_0x4c6b99(0x1b3)],_0x1093b6[_0x4c6b99(0x1a6)]),!0x0)},g=_0x4c6b99(0x1ae);var _=class extends Error{constructor(_0x25e60e=_0x4c6b99(0x1da)){super(_0x25e60e);}};function ee(_0x22630b){const _0x1d9e80=_0x4c6b99;var _0x32ade6;let _0x2fe0df=S(_0x22630b[_0x1d9e80(0x228)]),_0x1ec567=w(_0x2fe0df),_0x5c51c9=ne(_0x22630b[_0x1d9e80(0x199)],_0x22630b[_0x1d9e80(0x1b6)]),_0x49ab7b=_0x5c51c9?(_0x32ade6=_0x1ec567['blockRanges'])==null?void 0x0:_0x32ade6[_0x1d9e80(0x173)](_0x765c72=>{const _0x18e1c5=_0x1d9e80;let _0x2a0a6b=(0x0,e[_0x18e1c5(0x164)])(_0x765c72);return _0x2a0a6b[_0x18e1c5(0x199)]===_0x5c51c9[_0x18e1c5(0x199)]&&_0x2a0a6b[_0x18e1c5(0x1b6)]===_0x5c51c9[_0x18e1c5(0x1b6)];}):void 0x0,{startOffset:_0x1f12b9,endOffset:_0x152fc8}=_0x49ab7b?_0x5c51c9:me(_0x1ec567,_0x22630b[_0x1d9e80(0x199)],_0x22630b[_0x1d9e80(0x1b6)],_0x22630b[_0x1d9e80(0x1d2)]);if(!_0x49ab7b&&re(_0x1ec567,_0x1f12b9,_0x152fc8))throw new _(_0x1d9e80(0x1cf));let _0x3d3cb1=_e(_0x1ec567,_0x1f12b9,_0x152fc8),_0x56d86f=(_0x49ab7b==null?void 0x0:_0x49ab7b[_0x1d9e80(0x1a6)])??_0x22630b[_0x1d9e80(0x1a6)],_0x38d507=s(_0x22630b['metadata'],_0x56d86f,{...i,..._0x22630b['config']});if(_0x49ab7b)return _0x49ab7b['blockType']=e[_0x1d9e80(0x1e9)][_0x1d9e80(0x163)],te(_0x1ec567,_0x1f12b9,_0x152fc8),le(_0x1ec567,_0x1f12b9,_0x152fc8,_0x3d3cb1),O(_0x1ec567,_0x49ab7b),{'nextDocumentData':_0x2fe0df,'nextMetadata':_0x38d507,'cursorOffset':_0x1f12b9+0x1};if(_0x1f12b9===_0x152fc8){var _0x2c13be,_0x2b7e12;let _0x1857b6=''+e[_0x1d9e80(0x19a)][_0x1d9e80(0x1b9)]+e[_0x1d9e80(0x19a)][_0x1d9e80(0x188)]+e[_0x1d9e80(0x19a)]['BLOCK_END'];k(_0x1ec567,_0x1f12b9,_0x1857b6,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x1d9e80(0x214)])(new Set((_0x2c13be=_0x1ec567[_0x1d9e80(0x1ad)])==null?void 0x0:_0x2c13be['map'](_0x54809c=>_0x54809c[_0x1d9e80(0x19b)]))),'paragraphStyle':x(!0x0,!0x0,_0x3d3cb1)}],'blockRanges':[{'blockId':_0x56d86f,'blockType':e[_0x1d9e80(0x1e9)][_0x1d9e80(0x163)],'startIndex':0x0,'endIndex':_0x1857b6[_0x1d9e80(0x218)]-0x1}]});let _0x4b234d=(_0x2b7e12=_0x1ec567['blockRanges'])==null?void 0x0:_0x2b7e12[_0x1d9e80(0x173)](_0x5c7a93=>_0x5c7a93['blockId']===_0x56d86f);return _0x4b234d&&O(_0x1ec567,_0x4b234d),{'nextDocumentData':_0x2fe0df,'nextMetadata':_0x38d507,'cursorOffset':_0x1f12b9+0x1};}k(_0x1ec567,_0x152fc8,e[_0x1d9e80(0x19a)][_0x1d9e80(0x224)]),k(_0x1ec567,_0x1f12b9,e['DataStreamTreeTokenType']['BLOCK_START']),le(_0x1ec567,_0x1f12b9,_0x152fc8+0x1,_0x3d3cb1);let _0x4ff302={'blockId':_0x56d86f,'blockType':e[_0x1d9e80(0x1e9)]['CODE'],'startIndex':_0x1f12b9,'endIndex':_0x152fc8+0x1};return _0x1ec567['blockRanges']=[..._0x1ec567[_0x1d9e80(0x20e)]??[],_0x4ff302][_0x1d9e80(0x203)]((_0x5072b1,_0x50bf7c)=>_0x5072b1[_0x1d9e80(0x230)]-_0x50bf7c[_0x1d9e80(0x230)]),O(_0x1ec567,_0x4ff302),{'nextDocumentData':_0x2fe0df,'nextMetadata':_0x38d507,'cursorOffset':_0x1f12b9+0x1};}function te(_0x3c7377,_0x3d639a,_0x54c08d){const _0x519e18=_0x4c6b99;(_0x3c7377[_0x519e18(0x1ad)]??[])['filter'](_0x3f386d=>_0x3f386d[_0x519e18(0x230)]>_0x3d639a&&_0x3f386d[_0x519e18(0x230)]<_0x54c08d)['forEach'](_0x1f526b=>{const _0xc268ba=_0x519e18;let _0x1870a7={..._0x1f526b[_0xc268ba(0x20c)]??{}};delete _0x1870a7['spaceAbove'],delete _0x1870a7[_0xc268ba(0x1ed)],_0x1f526b['paragraphStyle']=_0x1870a7;});}function ne(_0x9b0da6,_0x16b7f2){const _0x304940=_0x4c6b99;return _0x9b0da6==null||_0x16b7f2==null||_0x9b0da6===_0x16b7f2?null:{'startOffset':Math[_0x304940(0x1d0)](_0x9b0da6,_0x16b7f2),'endOffset':Math[_0x304940(0x21b)](_0x9b0da6,_0x16b7f2)};}function re(_0x40138d,_0x157efd,_0x36d884){const _0x4c0d7a=_0x4c6b99;return(_0x40138d['blockRanges']??[])[_0x4c0d7a(0x193)](_0x1905c8=>{const _0xbbd4ba=_0x4c0d7a;let _0x48e8fb=(0x0,e[_0xbbd4ba(0x164)])(_0x1905c8);return _0x157efd===_0x36d884?(0x0,e[_0xbbd4ba(0x1e7)])(_0x48e8fb,_0x157efd):(0x0,e[_0xbbd4ba(0x1ee)])(_0x48e8fb,{'startOffset':_0x157efd,'endOffset':_0x36d884});});}function ie(_0x5bf2df){const _0x534210=_0x4c6b99;return{'nextDocumentData':S(_0x5bf2df['documentData']),'nextMetadata':s(_0x5bf2df['metadata'],_0x5bf2df[_0x534210(0x1a6)],_0x5bf2df[_0x534210(0x19e)]),'cursorOffset':0x0};}function v(_0x518f76){const _0x5afce9=_0x4c6b99;let _0x262c5a=S(_0x518f76[_0x5afce9(0x228)]),_0x3820f8=w(_0x262c5a),_0x37f884=b(_0x3820f8,_0x518f76[_0x5afce9(0x1a6)]);if(!_0x37f884)return null;let _0x34f2d3=fe(_0x3820f8,_0x37f884);return{'nextDocumentData':_0x262c5a,'nextMetadata':c(_0x518f76[_0x5afce9(0x1c2)],_0x518f76[_0x5afce9(0x1a6)]),'cursorOffset':_0x34f2d3};}function ae(_0x398b8e){const _0x57f7ae=_0x4c6b99;var _0x50dc20;let _0x5d5d55=S(_0x398b8e[_0x57f7ae(0x228)]),_0x3cf422=w(_0x5d5d55),_0x7654a2=b(_0x3cf422,_0x398b8e[_0x57f7ae(0x1a6)]);if(!_0x7654a2)return null;let _0x43aa0e=(0x0,e[_0x57f7ae(0x164)])(_0x7654a2);return A(_0x3cf422,_0x43aa0e[_0x57f7ae(0x199)],_0x43aa0e[_0x57f7ae(0x1b6)]),_0x3cf422[_0x57f7ae(0x20e)]=(_0x50dc20=_0x3cf422['blockRanges'])==null?void 0x0:_0x50dc20['filter'](_0x59d151=>_0x59d151[_0x57f7ae(0x1a6)]!==_0x398b8e[_0x57f7ae(0x1a6)]),{'nextDocumentData':_0x5d5d55,'nextMetadata':c(_0x398b8e['metadata'],_0x398b8e[_0x57f7ae(0x1a6)]),'cursorOffset':_0x7654a2[_0x57f7ae(0x230)]};}function y(_0x3ca4da){const _0x4e518f=_0x4c6b99;let _0x14a2ce=S(_0x3ca4da[_0x4e518f(0x228)]),_0x11ce5e=w(_0x14a2ce),_0x54584e=ce(_0x11ce5e,_0x3ca4da[_0x4e518f(0x21d)]);return _0x54584e&&oe(_0x14a2ce,_0x11ce5e,_0x54584e,_0x3ca4da[_0x4e518f(0x21d)],_0x3ca4da[_0x4e518f(0x1a3)])||null;}function oe(_0x51e617,_0x1ddb51,_0x57dca7,_0x1e9776,_0x2bfe71){const _0x5e37cc=_0x4c6b99;let _0x41bd11=Se(_0x1ddb51,_0x57dca7,_0x1e9776,_0x2bfe71);if(!_0x41bd11)return null;let _0x4c0161=_0x41bd11[_0x5e37cc(0x1fc)]-0x1;return A(_0x1ddb51,_0x41bd11[_0x5e37cc(0x1a5)][_0x5e37cc(0x230)],_0x41bd11[_0x5e37cc(0x1a5)][_0x5e37cc(0x230)]+0x1),{'nextDocumentData':_0x51e617,'cursorOffset':_0x4c0161};}function b(_0x40dcc9,_0x559ce9){const _0x14431f=_0x4c6b99;var _0x1818e1;return _0x40dcc9==null||(_0x1818e1=_0x40dcc9[_0x14431f(0x20e)])==null?void 0x0:_0x1818e1['find'](_0x593f2b=>_0x593f2b[_0x14431f(0x185)]===e[_0x14431f(0x1e9)][_0x14431f(0x163)]&&_0x593f2b[_0x14431f(0x1a6)]===_0x559ce9);}function se(_0x2a8d06){const _0x306284=_0x4c6b99;let _0x473c4e=_0x2a8d06[_0x306284(0x228)][_0x306284(0x1d5)];if(!_0x473c4e)return!0x1;let _0x3edc95=_0x2a8d06['direction']==='left'?_0x2a8d06['cursorOffset']-0x1:_0x2a8d06[_0x306284(0x21d)],_0x5284ea=_0x2a8d06[_0x306284(0x174)]===_0x306284(0x20f)?_0x2a8d06['cursorOffset']+0x1:_0x3edc95;return(_0x473c4e[_0x306284(0x20e)]??[])[_0x306284(0x193)](_0x3a4c7d=>_0x3a4c7d[_0x306284(0x185)]===e[_0x306284(0x1e9)][_0x306284(0x163)]?_0x3edc95===_0x3a4c7d[_0x306284(0x230)]||_0x3edc95===_0x3a4c7d[_0x306284(0x1b0)]||_0x5284ea===_0x3a4c7d[_0x306284(0x230)]||_0x5284ea===_0x3a4c7d[_0x306284(0x1b0)]:!0x1);}function ce(_0x43aa2f,_0x284875){const _0x47fe44=_0x4c6b99;var _0x4f9b4c;return(_0x4f9b4c=_0x43aa2f[_0x47fe44(0x20e)])==null?void 0x0:_0x4f9b4c[_0x47fe44(0x173)](_0x3d5fef=>{const _0x483896=_0x47fe44;let _0x25f37b=D(_0x3d5fef);return _0x3d5fef[_0x483896(0x185)]===e[_0x483896(0x1e9)][_0x483896(0x163)]&&_0x3d5fef['startIndex']<=_0x284875&&_0x284875<=_0x25f37b+0x2;});}function x(_0x26c6a1,_0x2d5b47,_0x581b97=!0x1){const _0x278cd9=_0x4c6b99;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x278cd9(0x184)][_0x278cd9(0x1db)],'keepNext':_0x2d5b47?e['BooleanNumber'][_0x278cd9(0x17f)]:e[_0x278cd9(0x184)][_0x278cd9(0x1db)],'widowControl':e['BooleanNumber']['TRUE'],..._0x26c6a1&&_0x581b97?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x4d202a,_0x1c839a,_0x6181f,_0x40f5a4=!0x1){const _0x54a95a=_0x4c6b99;let _0x44fa45=(_0x4d202a[_0x54a95a(0x1ad)]??[])[_0x54a95a(0x1a2)](_0x1082fa=>_0x1082fa['startIndex']>_0x1c839a&&_0x1082fa[_0x54a95a(0x230)]<_0x6181f);_0x44fa45['forEach']((_0xa3ad40,_0x475c51)=>{const _0xd42976=_0x54a95a;_0xa3ad40[_0xd42976(0x20c)]={..._0xa3ad40[_0xd42976(0x20c)]??{},...x(_0x475c51===0x0,_0x475c51===_0x44fa45[_0xd42976(0x218)]-0x1,_0x40f5a4)};});}function ue(_0x1f4389){const _0x1e6374=_0x4c6b99;var _0x3cb6a0,_0x44fb6a;let _0x15ec28={..._0x1f4389??{}};return delete _0x15ec28[_0x1e6374(0x178)],delete _0x15ec28[_0x1e6374(0x186)],delete _0x15ec28[_0x1e6374(0x168)],delete _0x15ec28[_0x1e6374(0x1ed)],delete _0x15ec28[_0x1e6374(0x22a)],delete _0x15ec28[_0x1e6374(0x166)],delete _0x15ec28[_0x1e6374(0x165)],((_0x3cb6a0=_0x15ec28['textStyle'])==null?void 0x0:_0x3cb6a0['ff'])===g&&((_0x44fb6a=_0x15ec28[_0x1e6374(0x17a)])==null?void 0x0:_0x44fb6a['fs'])===0xc&&delete _0x15ec28['textStyle'],_0x15ec28;}function de(_0x2cd48e,_0x56761d){const _0x51c7ac=_0x4c6b99;let _0x3201a2=D(_0x56761d);return(_0x2cd48e[_0x51c7ac(0x1ad)]??[])[_0x51c7ac(0x1a2)](_0x6975=>_0x6975['startIndex']>_0x56761d[_0x51c7ac(0x230)]&&_0x6975[_0x51c7ac(0x230)]<_0x3201a2);}function fe(_0x492125,_0x5127a0){const _0xf3a946=_0x4c6b99;var _0x335e3a;let _0x20c49c=D(_0x5127a0);return de(_0x492125,_0x5127a0)[_0xf3a946(0x207)](_0x70dd35=>{const _0x14d368=_0xf3a946;_0x70dd35[_0x14d368(0x20c)]=ue(_0x70dd35['paragraphStyle']);}),A(_0x492125,_0x20c49c,_0x20c49c+0x1),A(_0x492125,_0x5127a0['startIndex'],_0x5127a0[_0xf3a946(0x230)]+0x1),_0x492125[_0xf3a946(0x20e)]=(_0x335e3a=_0x492125[_0xf3a946(0x20e)])==null?void 0x0:_0x335e3a[_0xf3a946(0x1a2)](_0x2d09ec=>_0x2d09ec[_0xf3a946(0x1a6)]!==_0x5127a0[_0xf3a946(0x1a6)]),_0x5127a0[_0xf3a946(0x230)];}function S(_0x338d14){const _0x5829e7=_0x4c6b99;return{..._0x338d14,'body':_0x338d14[_0x5829e7(0x1d5)]?pe(_0x338d14['body']):_0x338d14[_0x5829e7(0x1d5)]};}function pe(_0x11be7d){const _0x21e1ec=_0x4c6b99;var _0x12b3d9,_0x548047,_0x4f3f6f,_0x592e98,_0x9511ea,_0x3d9dd8,_0x553db4,_0x5e0b3d,_0x2c09cf;return{..._0x11be7d,'paragraphs':(_0x12b3d9=_0x11be7d[_0x21e1ec(0x1ad)])==null?void 0x0:_0x12b3d9['map'](_0x58c161=>({..._0x58c161,'bullet':C(_0x58c161[_0x21e1ec(0x182)]),'paragraphStyle':C(_0x58c161[_0x21e1ec(0x20c)])})),'sectionBreaks':(_0x548047=_0x11be7d['sectionBreaks'])==null?void 0x0:_0x548047[_0x21e1ec(0x219)](_0x2592ca=>({..._0x2592ca})),'textRuns':(_0x4f3f6f=_0x11be7d['textRuns'])==null?void 0x0:_0x4f3f6f['map'](_0x48a0a3=>({..._0x48a0a3})),'tables':(_0x592e98=_0x11be7d[_0x21e1ec(0x1ce)])==null?void 0x0:_0x592e98[_0x21e1ec(0x219)](_0x56b887=>({..._0x56b887})),'columnGroups':(_0x9511ea=_0x11be7d[_0x21e1ec(0x1bd)])==null?void 0x0:_0x9511ea[_0x21e1ec(0x219)](_0x5b3315=>{const _0x2fe076=_0x21e1ec;var _0x2887d8;return{..._0x5b3315,'columns':(_0x2887d8=_0x5b3315[_0x2fe076(0x1e1)])==null?void 0x0:_0x2887d8['map'](_0x308ad9=>C(_0x308ad9))};}),'blockRanges':(_0x3d9dd8=_0x11be7d[_0x21e1ec(0x20e)])==null?void 0x0:_0x3d9dd8['map'](_0x19171e=>({..._0x19171e})),'customRanges':(_0x553db4=_0x11be7d[_0x21e1ec(0x1e5)])==null?void 0x0:_0x553db4['map'](_0x122f0e=>({..._0x122f0e})),'customDecorations':(_0x5e0b3d=_0x11be7d[_0x21e1ec(0x200)])==null?void 0x0:_0x5e0b3d[_0x21e1ec(0x219)](_0x4d77a2=>({..._0x4d77a2})),'customBlocks':(_0x2c09cf=_0x11be7d[_0x21e1ec(0x1e2)])==null?void 0x0:_0x2c09cf[_0x21e1ec(0x219)](_0x4b4b60=>({..._0x4b4b60}))};}function C(_0x719226){const _0xf372c5=_0x4c6b99;return Array[_0xf372c5(0x19f)](_0x719226)?_0x719226['map'](_0x4d8483=>C(_0x4d8483)):!_0x719226||typeof _0x719226!=_0xf372c5(0x177)?_0x719226:Object[_0xf372c5(0x17c)](Object[_0xf372c5(0x181)](_0x719226)[_0xf372c5(0x219)](([_0x358a2b,_0x518512])=>[_0x358a2b,C(_0x518512)]));}function w(_0x2d660f){const _0x138c22=_0x4c6b99;if(!_0x2d660f[_0x138c22(0x1d5)])throw Error('Document\x20body\x20is\x20required');return _0x2d660f[_0x138c22(0x1d5)];}function me(_0x28f052,_0x2edbb0,_0x25ad7b,_0x2625c3=_0x4c6b99(0x1d8)){const _0x98069c=_0x4c6b99;if(_0x2edbb0==null||_0x25ad7b==null){let _0x333745=ge(_0x28f052);return{'startOffset':_0x333745,'endOffset':_0x333745};}let _0x5115fc=Math['min'](_0x2edbb0,_0x25ad7b),_0x387ad1=Math[_0x98069c(0x21b)](_0x2edbb0,_0x25ad7b),_0x2e69fc=xe(_0x28f052,_0x5115fc,_0x387ad1);return _0x5115fc===_0x387ad1?_0x2625c3===_0x98069c(0x216)?{'startOffset':_0x5115fc,'endOffset':_0x387ad1}:he(_0x28f052,_0x5115fc,_0x2e69fc):ve(_0x28f052,_0x5115fc,_0x387ad1,_0x2e69fc);}function he(_0x3caf0f,_0x3ea4fb,_0x44040d){const _0x59c0d8=_0x4c6b99;let _0x3f2c8a=ye(_0x3caf0f,_0x3ea4fb);if(_0x3f2c8a){let _0x562091=T(_0x3caf0f,_0x3f2c8a,_0x44040d);if(_0x562091<_0x3f2c8a[_0x59c0d8(0x230)])return{'startOffset':_0x562091,'endOffset':_0x44040d?Math[_0x59c0d8(0x1d0)](_0x3f2c8a[_0x59c0d8(0x230)]+0x1,_0x44040d[_0x59c0d8(0x1b6)]):_0x3f2c8a['startIndex']+0x1};}let _0xf6f67b=_0x3ea4fb===0x0&&_0x3caf0f[_0x59c0d8(0x21a)][0x0]===e[_0x59c0d8(0x19a)][_0x59c0d8(0x188)]?0x1:_0x3ea4fb;return{'startOffset':_0xf6f67b,'endOffset':_0xf6f67b};}function ge(_0x47690c){const _0x3eaf88=_0x4c6b99;return _0x47690c['dataStream'][_0x3eaf88(0x1cc)](e[_0x3eaf88(0x19a)]['SECTION_BREAK'])?Math[_0x3eaf88(0x21b)](0x0,_0x47690c['dataStream'][_0x3eaf88(0x218)]-0x1):_0x47690c['dataStream'][_0x3eaf88(0x218)];}function _e(_0x207c19,_0x5dc15f,_0x40a0d1){const _0x30a5cb=_0x4c6b99;var _0x1490c1;let _0x5d9b6a=Math[_0x30a5cb(0x1d0)](_0x5dc15f,_0x40a0d1),_0x387910=Math[_0x30a5cb(0x21b)](_0x5dc15f,_0x40a0d1);return!!((_0x1490c1=_0x207c19[_0x30a5cb(0x1ce)])!=null&&_0x1490c1['some'](_0x31815d=>_0x5d9b6a>_0x31815d['startIndex']&&_0x5d9b6a<_0x31815d['endIndex']||_0x387910>_0x31815d[_0x30a5cb(0x230)]&&_0x387910<_0x31815d['endIndex']||_0x5d9b6a<=_0x31815d['startIndex']&&_0x387910>=_0x31815d[_0x30a5cb(0x1b0)]));}function ve(_0x2d8cf6,_0x307bc2,_0x20b793,_0x217e7a){const _0x57159e=_0x4c6b99;let _0x5efd37=[..._0x2d8cf6[_0x57159e(0x1ad)]??[]][_0x57159e(0x203)]((_0x549473,_0x3eef1e)=>_0x549473[_0x57159e(0x230)]-_0x3eef1e['startIndex']),_0x1775a4=(0x0,e[_0x57159e(0x1fb)])(_0x2d8cf6),_0xf7b8a0=_0x5efd37[_0x57159e(0x173)](_0x1ff4f0=>T(_0x2d8cf6,_0x1ff4f0,_0x217e7a,_0x1775a4)<=_0x307bc2&&_0x307bc2<=_0x1ff4f0['startIndex']),_0x18dbbe=_0x5efd37[_0x57159e(0x173)](_0x23bd03=>_0x23bd03[_0x57159e(0x230)]>=_0x20b793-0x1)??_0x5efd37[_0x5efd37[_0x57159e(0x218)]-0x1];return{'startOffset':_0xf7b8a0?T(_0x2d8cf6,_0xf7b8a0,_0x217e7a,_0x1775a4):_0x307bc2,'endOffset':_0x18dbbe?be(_0x18dbbe,_0x217e7a):_0x20b793};}function ye(_0x1a6a9e,_0x29338f){const _0x4fb7bd=_0x4c6b99;let _0x39d2e4=[..._0x1a6a9e[_0x4fb7bd(0x1ad)]??[]]['sort']((_0x4d244a,_0x3e7c4d)=>_0x4d244a[_0x4fb7bd(0x230)]-_0x3e7c4d['startIndex']),_0x3fd63f=(0x0,e[_0x4fb7bd(0x1fb)])(_0x1a6a9e);return _0x39d2e4[_0x4fb7bd(0x173)](_0x19fc1f=>(_0x3fd63f[_0x4fb7bd(0x1fa)](_0x19fc1f[_0x4fb7bd(0x230)])??0x0)<=_0x29338f&&_0x29338f<=_0x19fc1f[_0x4fb7bd(0x230)]);}function T(_0x1ab9eb,_0x45e87e,_0x494a75,_0x50dffb){const _0x223835=_0x4c6b99;let _0x5aadd1=(_0x50dffb==null?void 0x0:_0x50dffb['get'](_0x45e87e[_0x223835(0x230)]))??(0x0,e['getParagraphContentStartOffset'])(_0x1ab9eb,_0x45e87e);return _0x494a75?Math[_0x223835(0x21b)](_0x5aadd1,_0x494a75[_0x223835(0x199)]):_0x5aadd1;}function be(_0x8daa0f,_0x56df71){const _0x341453=_0x4c6b99;let _0x309382=_0x8daa0f[_0x341453(0x230)]+0x1;return _0x56df71?Math['min'](_0x309382,_0x56df71['endOffset']):_0x309382;}function xe(_0x5c2d00,_0x1ead6b,_0x3da348){const _0x58ffb5=_0x4c6b99;let _0x31dad1=E(_0x5c2d00,_0x1ead6b),_0x59454e=E(_0x5c2d00,_0x1ead6b===_0x3da348?_0x3da348:Math['max'](_0x1ead6b,_0x3da348-0x1));if(_0x31dad1||_0x59454e){if(!_0x31dad1||!_0x59454e||_0x31dad1['startTokenOffset']!==_0x59454e[_0x58ffb5(0x225)]||_0x31dad1[_0x58ffb5(0x1fc)]!==_0x59454e[_0x58ffb5(0x1fc)])throw new _();return _0x31dad1;}}function E(_0x2bf4f6,_0x14ba0d){const _0x30f8b2=_0x4c6b99;let _0x28c749=_0x2bf4f6[_0x30f8b2(0x21a)],_0x2c5cd9=-0x1;for(let _0x9bc5ab=Math[_0x30f8b2(0x1d0)](_0x14ba0d,_0x28c749[_0x30f8b2(0x218)]-0x1);_0x9bc5ab>=0x0;_0x9bc5ab--){let _0x567fb8=_0x28c749[_0x9bc5ab];if(_0x567fb8===e[_0x30f8b2(0x19a)]['TABLE_CELL_END'])return;if(_0x567fb8===e[_0x30f8b2(0x19a)][_0x30f8b2(0x205)]){_0x2c5cd9=_0x9bc5ab;break;}}if(_0x2c5cd9<0x0)return;let _0x36f8fe=_0x28c749['indexOf'](e[_0x30f8b2(0x19a)][_0x30f8b2(0x222)],_0x2c5cd9+0x1);if(!(_0x36f8fe<0x0||_0x14ba0d<_0x2c5cd9+0x1||_0x14ba0d>_0x36f8fe-0x1))return{'startOffset':_0x2c5cd9+0x1,'endOffset':Math[_0x30f8b2(0x21b)](_0x2c5cd9+0x1,_0x36f8fe-0x1),'startTokenOffset':_0x2c5cd9,'endTokenOffset':_0x36f8fe};}function D(_0x3041fe){const _0x334be7=_0x4c6b99;return(0x0,e[_0x334be7(0x164)])(_0x3041fe)[_0x334be7(0x1b6)]-0x1;}function Se(_0x2ab0d5,_0x5b4182,_0x37c11f,_0x595665){const _0x11f5ca=_0x4c6b99;let _0x83757b=D(_0x5b4182),_0x4bb329=(_0x2ab0d5['paragraphs']??[])[_0x11f5ca(0x173)](_0x53a3bf=>_0x53a3bf[_0x11f5ca(0x230)]===_0x83757b+0x1);if(!_0x4bb329||_0x595665!=null&&_0x4bb329[_0x11f5ca(0x230)]!==_0x595665||_0x37c11f!=null&&(_0x37c11f<_0x83757b||_0x37c11f>_0x4bb329[_0x11f5ca(0x230)]+0x1)||_0x2ab0d5['dataStream'][_0x4bb329['startIndex']]!==e[_0x11f5ca(0x19a)][_0x11f5ca(0x188)])return null;let _0xa84668=(0x0,e[_0x11f5ca(0x18c)])(_0x2ab0d5,_0x4bb329),_0xe33009=_0x2ab0d5['dataStream']['slice'](_0xa84668,_0x4bb329[_0x11f5ca(0x230)]);return Array['from'](_0xe33009)[_0x11f5ca(0x1b7)](_0x538866=>_0x538866===e['DataStreamTreeTokenType'][_0x11f5ca(0x224)])?{'paragraph':_0x4bb329,'endTokenOffset':_0x83757b}:null;}function O(_0x57f1e8,_0x1a9c66){const _0x26c816=_0x4c6b99;var _0x5ac545;let _0x239666=D(_0x1a9c66),_0x383d1e=_0x57f1e8[_0x26c816(0x21a)][_0x239666+0x1];(_0x383d1e===e['DataStreamTreeTokenType']['SECTION_BREAK']||_0x383d1e===void 0x0)&&k(_0x57f1e8,_0x239666+0x1,e[_0x26c816(0x19a)][_0x26c816(0x188)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x26c816(0x214)])(new Set((_0x5ac545=_0x57f1e8[_0x26c816(0x1ad)])==null?void 0x0:_0x5ac545[_0x26c816(0x219)](_0x187f7c=>_0x187f7c[_0x26c816(0x19b)])))}]});}function k(_0x180837,_0xc37d0,_0x41ed34,_0x2071be={}){const _0x4247f2=_0x4c6b99;var _0x46b8d2,_0x4d1076;_0x41ed34&&(_0x180837[_0x4247f2(0x21a)]=''+_0x180837[_0x4247f2(0x21a)][_0x4247f2(0x183)](0x0,_0xc37d0)+_0x41ed34+_0x180837[_0x4247f2(0x21a)][_0x4247f2(0x183)](_0xc37d0),Ce(_0x180837,_0xc37d0,_0x41ed34['length']),(_0x46b8d2=_0x2071be[_0x4247f2(0x1ad)])!=null&&_0x46b8d2[_0x4247f2(0x218)]&&(_0x180837[_0x4247f2(0x1ad)]=[..._0x180837[_0x4247f2(0x1ad)]??[],..._0x2071be[_0x4247f2(0x1ad)][_0x4247f2(0x219)](_0x1920de=>({..._0x1920de,'startIndex':_0x1920de['startIndex']+_0xc37d0}))][_0x4247f2(0x203)]((_0x529a4b,_0x4ea12b)=>_0x529a4b[_0x4247f2(0x230)]-_0x4ea12b[_0x4247f2(0x230)])),(_0x4d1076=_0x2071be[_0x4247f2(0x20e)])!=null&&_0x4d1076[_0x4247f2(0x218)]&&(_0x180837[_0x4247f2(0x20e)]=[..._0x180837['blockRanges']??[],..._0x2071be['blockRanges'][_0x4247f2(0x219)](_0xd1e580=>({..._0xd1e580,'startIndex':_0xd1e580[_0x4247f2(0x230)]+_0xc37d0,'endIndex':_0xd1e580['endIndex']+_0xc37d0}))][_0x4247f2(0x203)]((_0x27c723,_0x262cba)=>_0x27c723[_0x4247f2(0x230)]-_0x262cba[_0x4247f2(0x230)])));}function A(_0x42de6f,_0x10e4ea,_0x359cdb){const _0x210ce9=_0x4c6b99;let _0x4f5d10=_0x359cdb-_0x10e4ea;_0x42de6f[_0x210ce9(0x21a)]=''+_0x42de6f['dataStream']['slice'](0x0,_0x10e4ea)+_0x42de6f[_0x210ce9(0x21a)]['slice'](_0x359cdb),we(_0x42de6f,_0x10e4ea,_0x4f5d10);}function Ce(_0x5d20ed,_0x22da14,_0x4c39a8){const _0x31c97b=_0x4c6b99;_0x5d20ed[_0x31c97b(0x1ad)]=j(_0x5d20ed['paragraphs'],_0x22da14,_0x4c39a8),_0x5d20ed['sectionBreaks']=j(_0x5d20ed[_0x31c97b(0x196)],_0x22da14,_0x4c39a8),_0x5d20ed[_0x31c97b(0x1e2)]=j(_0x5d20ed[_0x31c97b(0x1e2)],_0x22da14,_0x4c39a8),_0x5d20ed[_0x31c97b(0x1b8)]=Te(_0x5d20ed[_0x31c97b(0x1b8)],_0x22da14,_0x4c39a8),_0x5d20ed[_0x31c97b(0x1ce)]=Ee(_0x5d20ed['tables'],_0x22da14,_0x4c39a8),_0x5d20ed[_0x31c97b(0x1bd)]=N(_0x5d20ed[_0x31c97b(0x1bd)],_0x22da14,_0x4c39a8),_0x5d20ed[_0x31c97b(0x1e5)]=N(_0x5d20ed[_0x31c97b(0x1e5)],_0x22da14,_0x4c39a8),_0x5d20ed[_0x31c97b(0x200)]=N(_0x5d20ed[_0x31c97b(0x200)],_0x22da14,_0x4c39a8),_0x5d20ed['blockRanges']=N(_0x5d20ed[_0x31c97b(0x20e)],_0x22da14,_0x4c39a8);}function we(_0x240e8b,_0x1e1bcc,_0x38c6ca){const _0x162d54=_0x4c6b99;var _0x2c2f85,_0x20ab1e;_0x240e8b[_0x162d54(0x1ad)]=M(_0x240e8b['paragraphs'],_0x1e1bcc,_0x38c6ca),_0x240e8b[_0x162d54(0x196)]=M(_0x240e8b[_0x162d54(0x196)],_0x1e1bcc,_0x38c6ca),_0x240e8b['customBlocks']=M(_0x240e8b['customBlocks'],_0x1e1bcc,_0x38c6ca),_0x240e8b[_0x162d54(0x1b8)]=(_0x2c2f85=F((_0x20ab1e=_0x240e8b[_0x162d54(0x1b8)])==null?void 0x0:_0x20ab1e[_0x162d54(0x219)](_0x3d18aa=>({..._0x3d18aa,'startIndex':_0x3d18aa['st'],'endIndex':_0x3d18aa['ed']})),_0x1e1bcc,_0x38c6ca))==null?void 0x0:_0x2c2f85['map'](_0x20f0c3=>{let {startIndex:_0x4d9fdf,endIndex:_0xbd769d,..._0xfff505}=_0x20f0c3;return{..._0xfff505,'st':_0x4d9fdf,'ed':_0xbd769d};}),_0x240e8b[_0x162d54(0x1ce)]=F(_0x240e8b[_0x162d54(0x1ce)],_0x1e1bcc,_0x38c6ca),_0x240e8b[_0x162d54(0x1bd)]=P(_0x240e8b[_0x162d54(0x1bd)],_0x1e1bcc,_0x38c6ca),_0x240e8b['customRanges']=P(_0x240e8b[_0x162d54(0x1e5)],_0x1e1bcc,_0x38c6ca),_0x240e8b[_0x162d54(0x200)]=P(_0x240e8b['customDecorations'],_0x1e1bcc,_0x38c6ca),_0x240e8b[_0x162d54(0x20e)]=P(_0x240e8b[_0x162d54(0x20e)],_0x1e1bcc,_0x38c6ca);}function j(_0x54c233,_0x37878b,_0x1a071d){const _0x1b249f=_0x4c6b99;return _0x54c233==null?void 0x0:_0x54c233['map'](_0x3f5b31=>_0x3f5b31[_0x1b249f(0x230)]>=_0x37878b?{..._0x3f5b31,'startIndex':_0x3f5b31[_0x1b249f(0x230)]+_0x1a071d}:_0x3f5b31);}function M(_0x54274b,_0x187ec2,_0x40ec4f){const _0x4557b8=_0x4c6b99;let _0x2c9e8e=_0x187ec2+_0x40ec4f;return _0x54274b==null?void 0x0:_0x54274b[_0x4557b8(0x219)](_0x41bc50=>_0x41bc50['startIndex']>=_0x187ec2&&_0x41bc50['startIndex']<_0x2c9e8e?null:_0x41bc50[_0x4557b8(0x230)]>=_0x2c9e8e?{..._0x41bc50,'startIndex':_0x41bc50['startIndex']-_0x40ec4f}:_0x41bc50)[_0x4557b8(0x1a2)](_0x5d927b=>_0x5d927b!=null);}function Te(_0x75eae8,_0x4efc76,_0x27c23c){const _0x1d2704=_0x4c6b99;return _0x75eae8==null?void 0x0:_0x75eae8[_0x1d2704(0x219)](_0x3da9c5=>_0x3da9c5['st']>=_0x4efc76?{..._0x3da9c5,'st':_0x3da9c5['st']+_0x27c23c,'ed':_0x3da9c5['ed']+_0x27c23c}:_0x3da9c5['ed']>_0x4efc76?{..._0x3da9c5,'ed':_0x3da9c5['ed']+_0x27c23c}:_0x3da9c5);}function N(_0x53426c,_0x18771a,_0x1d0cb5){return _0x53426c==null?void 0x0:_0x53426c['map'](_0xc62455=>(0x0,e['shiftInclusiveRangeOnInsert'])(_0xc62455,_0x18771a,_0x1d0cb5));}function Ee(_0x4bf0bb,_0x3d2167,_0x14f3a3){const _0xa95ae5=_0x4c6b99;return _0x4bf0bb==null?void 0x0:_0x4bf0bb[_0xa95ae5(0x219)](_0x4cac15=>(0x0,e[_0xa95ae5(0x223)])(_0x4cac15,_0x3d2167,_0x14f3a3));}function P(_0x5c434f,_0x2ede40,_0x2c50f6){const _0x4f9c18=_0x4c6b99;return _0x5c434f==null?void 0x0:_0x5c434f[_0x4f9c18(0x219)](_0x34f0ff=>(0x0,e[_0x4f9c18(0x192)])(_0x34f0ff,_0x2ede40,_0x2c50f6))['filter'](_0x234b5a=>_0x234b5a!=null);}function F(_0x2317d6,_0x382736,_0x4c3bc7){const _0x2d0ecf=_0x4c6b99;return _0x2317d6==null?void 0x0:_0x2317d6[_0x2d0ecf(0x219)](_0x48b8eb=>(0x0,e['shiftExclusiveRangeOnDelete'])(_0x48b8eb,_0x382736,_0x4c3bc7))[_0x2d0ecf(0x1a2)](_0x581c94=>_0x581c94!=null);}const I={'id':_0x4c6b99(0x22c),'type':e[_0x4c6b99(0x1c1)][_0x4c6b99(0x15e)],'handler':_0x483567=>{const _0x20b019=_0x4c6b99;var _0x172c80;if((0x0,n[_0x20b019(0x1bb)])(W(_0x483567)))return!0x1;let _0x983ac=(0x0,n[_0x20b019(0x17b)])(_0x483567);if(_0x983ac)return _0x483567[_0x20b019(0x1fa)](e[_0x20b019(0x1a1)])[_0x20b019(0x22b)](R['id'],{'startOffset':_0x983ac[_0x20b019(0x199)],'endOffset':_0x983ac['endOffset'],'insertionMode':_0x20b019(0x216),'unitId':_0x983ac[_0x20b019(0x1b3)]});let _0x10d58d=je(_0x483567);if(!_0x10d58d)return!0x1;let _0x2b10c3=(_0x172c80=_0x483567[_0x20b019(0x1fa)](e[_0x20b019(0x215)])[_0x20b019(0x161)](e[_0x20b019(0x1a8)][_0x20b019(0x1d9)]))==null?void 0x0:_0x172c80[_0x20b019(0x15c)](),_0x30c770=_0x2b10c3?(0x0,e['getParagraphFollowingBlockOffset'])(_0x2b10c3,_0x10d58d):_0x10d58d[_0x20b019(0x230)]+0x1;return _0x483567['get'](e[_0x20b019(0x1a1)])[_0x20b019(0x22b)](R['id'],{'startOffset':_0x30c770,'endOffset':_0x30c770});}},L={'id':_0x4c6b99(0x179),'type':e[_0x4c6b99(0x1c1)][_0x4c6b99(0x15e)],'handler':()=>!0x0},R={'id':'docs-code.command.insert','type':e[_0x4c6b99(0x1c1)][_0x4c6b99(0x15e)],'handler':(_0x55256f,_0x8e7bb7)=>{const _0x1854b3=_0x4c6b99;let _0x2ba0ad=U(_0x55256f,_0x8e7bb7==null?void 0x0:_0x8e7bb7[_0x1854b3(0x1b3)]);if(!_0x2ba0ad)return!0x1;let _0x143c58=W(_0x55256f);if((0x0,n['isHeaderFooterSelection'])(_0x143c58))return!0x1;let _0x5bf4ee=_0x2ba0ad['model'][_0x1854b3(0x1c6)](_0x2ba0ad[_0x1854b3(0x1b3)]),_0xa914cc=Oe(_0x8e7bb7,_0x143c58),_0x233d6c=ke(_0x2ba0ad[_0x1854b3(0x1df)],_0xa914cc);if(_0x233d6c){if(_0x233d6c[_0x1854b3(0x185)]!==e[_0x1854b3(0x1e9)][_0x1854b3(0x163)])return!0x1;let _0x28da86=v({'blockId':_0x233d6c[_0x1854b3(0x1a6)],'documentData':_0x2ba0ad[_0x1854b3(0x1df)],'metadata':_0x5bf4ee});if(!_0x28da86)return!0x1;let _0x4e3f5d=J(_0x2ba0ad['commandService'],_0x2ba0ad[_0x1854b3(0x1f7)],_0x2ba0ad[_0x1854b3(0x1b3)],_0x2ba0ad[_0x1854b3(0x1df)],_0x28da86[_0x1854b3(0x1d6)],R['id'],_0x28da86[_0x1854b3(0x21d)]);return _0x4e3f5d&&_0x28da86[_0x1854b3(0x201)]&&_0x2ba0ad[_0x1854b3(0x180)][_0x1854b3(0x1ea)](_0x2ba0ad[_0x1854b3(0x1b3)],_0x28da86[_0x1854b3(0x201)]),_0x4e3f5d;}let _0x1fc467=(_0x8e7bb7==null?void 0x0:_0x8e7bb7[_0x1854b3(0x1a6)])??(0x0,e[_0x1854b3(0x21e)])(0x6),_0x2dcb11;try{_0x2dcb11=ee({'blockId':_0x1fc467,'config':_0x8e7bb7==null?void 0x0:_0x8e7bb7[_0x1854b3(0x19e)],'documentData':_0x2ba0ad[_0x1854b3(0x1df)],'endOffset':_0xa914cc==null?void 0x0:_0xa914cc[_0x1854b3(0x1b6)],'insertionMode':_0x8e7bb7==null?void 0x0:_0x8e7bb7[_0x1854b3(0x1d2)],'metadata':_0x5bf4ee,'startOffset':_0xa914cc==null?void 0x0:_0xa914cc[_0x1854b3(0x199)]});}catch(_0x3d1d76){if(_0x3d1d76 instanceof _)return!0x1;throw _0x3d1d76;}let _0x76d6b1=J(_0x2ba0ad['commandService'],_0x2ba0ad[_0x1854b3(0x1f7)],_0x2ba0ad[_0x1854b3(0x1b3)],_0x2ba0ad['previousDocumentData'],_0x2dcb11[_0x1854b3(0x1d6)],R['id'],_0x2dcb11[_0x1854b3(0x21d)]);return _0x76d6b1&&_0x2dcb11['nextMetadata']&&_0x2ba0ad[_0x1854b3(0x180)][_0x1854b3(0x1ea)](_0x2ba0ad[_0x1854b3(0x1b3)],_0x2dcb11[_0x1854b3(0x201)]),_0x76d6b1;}},z={'id':_0x4c6b99(0x1eb),'type':e['CommandType']['COMMAND'],'handler':(_0x2f2fc4,_0x444ca8)=>{const _0x2df68f=_0x4c6b99;if(!_0x444ca8)return!0x1;let _0x38885e=U(_0x2f2fc4,_0x444ca8[_0x2df68f(0x1b3)]);if(!_0x38885e)return!0x1;let _0xfff70c=ie({'blockId':_0x444ca8[_0x2df68f(0x1a6)],'config':_0x444ca8[_0x2df68f(0x19e)],'documentData':_0x38885e[_0x2df68f(0x1df)],'metadata':_0x38885e[_0x2df68f(0x180)][_0x2df68f(0x1c6)](_0x38885e[_0x2df68f(0x1b3)])});return _0xfff70c['nextMetadata']&&_0x38885e['model'][_0x2df68f(0x1ea)](_0x38885e[_0x2df68f(0x1b3)],_0xfff70c[_0x2df68f(0x201)]),!0x0;}},De={'id':'docs-code.command.exit','type':e[_0x4c6b99(0x1c1)][_0x4c6b99(0x15e)],'handler':(_0x48987e,_0x39b5a8)=>B['handler'](_0x48987e,_0x39b5a8)},B={'id':_0x4c6b99(0x202),'type':e[_0x4c6b99(0x1c1)][_0x4c6b99(0x15e)],'handler':(_0x57ee32,_0x3c89ed)=>{const _0x484521=_0x4c6b99;if(!_0x3c89ed)return!0x1;let _0x13a82d=U(_0x57ee32,_0x3c89ed==null?void 0x0:_0x3c89ed['unitId']);if(!_0x13a82d)return!0x1;let _0x279554=v({'blockId':_0x3c89ed[_0x484521(0x1a6)],'documentData':_0x13a82d[_0x484521(0x1df)],'metadata':_0x13a82d['model']['serialize'](_0x13a82d[_0x484521(0x1b3)])});if(!_0x279554)return!0x1;let _0x29fdc6=J(_0x13a82d['commandService'],_0x13a82d['selectionManager'],_0x13a82d['unitId'],_0x13a82d[_0x484521(0x1df)],_0x279554[_0x484521(0x1d6)],B['id'],_0x279554[_0x484521(0x21d)]);return _0x29fdc6&&_0x279554[_0x484521(0x201)]&&_0x13a82d[_0x484521(0x180)][_0x484521(0x1ea)](_0x13a82d[_0x484521(0x1b3)],_0x279554['nextMetadata']),_0x29fdc6;}},V={'id':_0x4c6b99(0x194),'type':e['CommandType'][_0x4c6b99(0x15e)],'handler':(_0x1f15ef,_0xa5e411)=>{const _0x1d4e99=_0x4c6b99;if(!_0xa5e411)return!0x1;let _0x9b6cc0=U(_0x1f15ef,_0xa5e411==null?void 0x0:_0xa5e411[_0x1d4e99(0x1b3)]);if(!_0x9b6cc0)return!0x1;let _0x48b350=ae({'blockId':_0xa5e411['blockId'],'documentData':_0x9b6cc0[_0x1d4e99(0x1df)],'metadata':_0x9b6cc0[_0x1d4e99(0x180)][_0x1d4e99(0x1c6)](_0x9b6cc0[_0x1d4e99(0x1b3)])});if(!_0x48b350)return!0x1;let _0x99db86=J(_0x9b6cc0[_0x1d4e99(0x19d)],_0x9b6cc0[_0x1d4e99(0x1f7)],_0x9b6cc0['unitId'],_0x9b6cc0['previousDocumentData'],_0x48b350['nextDocumentData'],V['id'],_0x48b350[_0x1d4e99(0x21d)]);return _0x99db86&&_0x48b350[_0x1d4e99(0x201)]&&_0x9b6cc0['model'][_0x1d4e99(0x1ea)](_0x9b6cc0['unitId'],_0x48b350[_0x1d4e99(0x201)]),_0x99db86;}},H={'id':'docs-code.command.cancel-empty-paragraph','type':e['CommandType'][_0x4c6b99(0x15e)],'handler':(_0x20fb9e,_0x1c2307)=>{const _0x8c3aa8=_0x4c6b99;var _0x40925e;let _0x198014=U(_0x20fb9e,_0x1c2307==null?void 0x0:_0x1c2307[_0x8c3aa8(0x1b3)]);if(!_0x198014)return!0x1;let _0x237e9c=(_0x1c2307==null?void 0x0:_0x1c2307['cursorOffset'])??((_0x40925e=W(_0x20fb9e))==null?void 0x0:_0x40925e[_0x8c3aa8(0x199)]);if(_0x237e9c==null)return!0x1;let _0xad41ba=y({'cursorOffset':_0x237e9c,'documentData':_0x198014[_0x8c3aa8(0x1df)],'paragraphStartIndex':_0x1c2307==null?void 0x0:_0x1c2307[_0x8c3aa8(0x1a3)]});return _0xad41ba?J(_0x198014[_0x8c3aa8(0x19d)],_0x198014[_0x8c3aa8(0x1f7)],_0x198014[_0x8c3aa8(0x1b3)],_0x198014[_0x8c3aa8(0x1df)],_0xad41ba['nextDocumentData'],H['id'],_0xad41ba[_0x8c3aa8(0x21d)]):!0x1;}};function _0x4c8f(_0x350e72,_0x4322a2){_0x350e72=_0x350e72-0x159;const _0x3e8d4f=_0x3e8d();let _0x4c8fb1=_0x3e8d4f[_0x350e72];return _0x4c8fb1;}function U(_0x4e11ec,_0x2923fa){const _0x1253a0=_0x4c6b99;let _0x542b81=_0x4e11ec[_0x1253a0(0x1fa)](e[_0x1253a0(0x215)]),_0x21617c=_0x2923fa?_0x542b81['getUnit'](_0x2923fa,e['UniverInstanceType'][_0x1253a0(0x1d9)]):_0x542b81[_0x1253a0(0x161)](e['UniverInstanceType'][_0x1253a0(0x1d9)]);return _0x21617c?{'commandService':_0x4e11ec[_0x1253a0(0x1fa)](e[_0x1253a0(0x1a1)]),'model':_0x4e11ec['get'](p),'previousDocumentData':_0x21617c[_0x1253a0(0x195)](),'selectionManager':_0x4e11ec[_0x1253a0(0x1fa)](n[_0x1253a0(0x229)]),'unitId':_0x21617c[_0x1253a0(0x16b)]()}:null;}function W(_0x5ae9ab){const _0x513fe2=_0x4c6b99;var _0x307e4b;return(_0x307e4b=_0x5ae9ab[_0x513fe2(0x1fa)](n[_0x513fe2(0x229)])[_0x513fe2(0x22d)]())==null?void 0x0:_0x307e4b[0x0];}function Oe(_0x3bf97e,_0x4196be){const _0x2c905d=_0x4c6b99;let _0xc31d88=(_0x3bf97e==null?void 0x0:_0x3bf97e['startOffset'])??(_0x4196be==null?void 0x0:_0x4196be['startOffset']),_0x3e1926=(_0x3bf97e==null?void 0x0:_0x3bf97e[_0x2c905d(0x1b6)])??(_0x4196be==null?void 0x0:_0x4196be[_0x2c905d(0x1b6)]);if(_0xc31d88!=null&&_0x3e1926!=null)return{'endOffset':Math[_0x2c905d(0x21b)](_0xc31d88,_0x3e1926),'startOffset':Math['min'](_0xc31d88,_0x3e1926)};}function ke(_0x729734,_0x924a27){const _0x15d225=_0x4c6b99;var _0xb27ae9;if(!_0x924a27)return;let _0x28b8c9=Ae(_0x924a27);return(_0xb27ae9=_0x729734[_0x15d225(0x1d5)])==null||(_0xb27ae9=_0xb27ae9['blockRanges'])==null?void 0x0:_0xb27ae9[_0x15d225(0x173)](_0x56e70d=>{const _0x1c12e5=_0x15d225;let _0x4aa78d=(0x0,e[_0x1c12e5(0x164)])(_0x56e70d);return _0x924a27[_0x1c12e5(0x199)]===_0x924a27[_0x1c12e5(0x1b6)]?(0x0,e[_0x1c12e5(0x1e7)])(_0x4aa78d,_0x28b8c9):(0x0,e[_0x1c12e5(0x210)])(_0x4aa78d,_0x28b8c9);});}function Ae(_0xfa4c8a){const _0x1ee896=_0x4c6b99;return _0xfa4c8a[_0x1ee896(0x199)]===_0xfa4c8a['endOffset']?_0xfa4c8a[_0x1ee896(0x199)]:_0xfa4c8a[_0x1ee896(0x199)]+0x1;}function je(_0x3fea63){const _0x68a855=_0x4c6b99;let _0x55d11c=W(_0x3fea63);if(!_0x55d11c)return null;let _0x5cfd0a=_0x3fea63[_0x68a855(0x1fa)](e[_0x68a855(0x215)])[_0x68a855(0x161)](e[_0x68a855(0x1a8)][_0x68a855(0x1d9)]),_0x13aa19=_0x5cfd0a==null?void 0x0:_0x5cfd0a[_0x68a855(0x15c)]();return _0x13aa19?e[_0x68a855(0x169)][_0x68a855(0x1c3)][_0x68a855(0x1f8)](_0x55d11c,_0x13aa19['paragraphs']??[],_0x13aa19[_0x68a855(0x21a)]??'')[0x0]??null:null;}function Me(_0x38a0f3,_0x3872c7){const _0x16bbb7=_0x4c6b99;let _0x4856b3=_0x38a0f3['body'],_0x5ee13c=_0x3872c7[_0x16bbb7(0x1d5)],_0x395235=(0x0,e['getSingleDataStreamChange'])(_0x4856b3,_0x5ee13c);return[_0x395235&&_0x5ee13c?Ne(_0x5ee13c,_0x395235):null,_0x395235?null:Pe(_0x4856b3,_0x5ee13c)][_0x16bbb7(0x1a2)](Boolean)[_0x16bbb7(0x1a4)]((_0x8d5629,_0x4066cc)=>e[_0x16bbb7(0x1c7)][_0x16bbb7(0x22e)](_0x8d5629,_0x4066cc),null);}function Ne(_0x3a2fac,_0x1cfcff){const _0x5d747f=_0x4c6b99;let _0x5c1ceb=new e[(_0x5d747f(0x189))]();return _0x5c1ceb['retain'](_0x1cfcff['start']),_0x1cfcff['insertLength']>0x0&&_0x5c1ceb[_0x5d747f(0x1b5)](_0x1cfcff['insertLength'],(0x0,e[_0x5d747f(0x1b4)])(_0x3a2fac,_0x1cfcff[_0x5d747f(0x1f9)],_0x1cfcff[_0x5d747f(0x1f9)]+_0x1cfcff[_0x5d747f(0x1c8)],!0x1)),_0x1cfcff[_0x5d747f(0x1a9)]>0x0&&_0x5c1ceb[_0x5d747f(0x212)](_0x1cfcff[_0x5d747f(0x1a9)]),e[_0x5d747f(0x1c7)][_0x5d747f(0x1c4)]()[_0x5d747f(0x1ef)](_0x5c1ceb['serialize'](),[_0x5d747f(0x1d5)]);}function Pe(_0x17436c,_0x315909){const _0x516d8d=_0x4c6b99;let _0x1ec49d=[],_0x33b09a=_0x17436c?G(_0x17436c):void 0x0,_0x2b81ed=_0x315909?G(_0x315909):void 0x0;for(let _0x12d0ef of Fe)K(e[_0x516d8d(0x1c7)][_0x516d8d(0x1c4)](),[_0x516d8d(0x1d5),_0x12d0ef],_0x33b09a==null?void 0x0:_0x33b09a[_0x12d0ef],_0x2b81ed==null?void 0x0:_0x2b81ed[_0x12d0ef],_0x1ec49d);return _0x1ec49d[_0x516d8d(0x1a4)]((_0xd70687,_0x1c1654)=>e['JSONX'][_0x516d8d(0x22e)](_0xd70687,_0x1c1654),null);}const Fe=[_0x4c6b99(0x1ad),_0x4c6b99(0x196),_0x4c6b99(0x1ce),_0x4c6b99(0x1bd),_0x4c6b99(0x20e),_0x4c6b99(0x1e2),_0x4c6b99(0x1e5),_0x4c6b99(0x200),'textRuns'];function G(_0x44c245){return _0x44c245;}function K(_0x2c0be3,_0x257d40,_0x52a7c6,_0x4b418b,_0x2eed7f){const _0x3a35c4=_0x4c6b99;q(_0x52a7c6,_0x4b418b)||(_0x52a7c6==null?_0x2eed7f[_0x3a35c4(0x197)](_0x2c0be3[_0x3a35c4(0x1dc)](_0x257d40,_0x4b418b)):_0x4b418b==null?_0x2eed7f[_0x3a35c4(0x197)](_0x2c0be3[_0x3a35c4(0x21f)](_0x257d40,_0x52a7c6)):Array[_0x3a35c4(0x19f)](_0x52a7c6)&&Array[_0x3a35c4(0x19f)](_0x4b418b)?Ie(_0x2c0be3,_0x257d40,_0x52a7c6,_0x4b418b,_0x2eed7f):Le(_0x52a7c6)&&Le(_0x4b418b)?new Set([...Object['keys'](_0x52a7c6),...Object[_0x3a35c4(0x1e4)](_0x4b418b)])[_0x3a35c4(0x207)](_0x3018b8=>{K(_0x2c0be3,[..._0x257d40,_0x3018b8],_0x52a7c6[_0x3018b8],_0x4b418b[_0x3018b8],_0x2eed7f);}):_0x2eed7f[_0x3a35c4(0x197)](_0x2c0be3[_0x3a35c4(0x211)](_0x257d40,_0x52a7c6,_0x4b418b)));}function Ie(_0x3942d8,_0xfe03d0,_0x3ebdb5,_0x3fd14d,_0xcedc6d){const _0x283c49=_0x4c6b99;if(_0x3ebdb5[_0x283c49(0x218)]===_0x3fd14d[_0x283c49(0x218)]){_0x3ebdb5['forEach']((_0x1494d4,_0x3a9eb5)=>K(_0x3942d8,[..._0xfe03d0,_0x3a9eb5],_0x1494d4,_0x3fd14d[_0x3a9eb5],_0xcedc6d));return;}let _0x3eba95=0x0;for(;_0x3eba95<_0x3ebdb5[_0x283c49(0x218)]&&_0x3eba95<_0x3fd14d[_0x283c49(0x218)]&&q(_0x3ebdb5[_0x3eba95],_0x3fd14d[_0x3eba95]);)_0x3eba95++;let _0x225484=_0x3ebdb5[_0x283c49(0x218)]-0x1,_0x1e079c=_0x3fd14d[_0x283c49(0x218)]-0x1;for(;_0x225484>=_0x3eba95&&_0x1e079c>=_0x3eba95&&q(_0x3ebdb5[_0x225484],_0x3fd14d[_0x1e079c]);)_0x225484--,_0x1e079c--;for(let _0x58e1ea=_0x225484;_0x58e1ea>=_0x3eba95;_0x58e1ea--)_0xcedc6d[_0x283c49(0x197)](_0x3942d8['removeOp']([..._0xfe03d0,_0x58e1ea],_0x3ebdb5[_0x58e1ea]));for(let _0x582060=_0x3eba95;_0x582060<=_0x1e079c;_0x582060++)_0xcedc6d['push'](_0x3942d8[_0x283c49(0x1dc)]([..._0xfe03d0,_0x582060],_0x3fd14d[_0x582060]));}function Le(_0x472afa){const _0x853497=_0x4c6b99;return typeof _0x472afa=='object'&&!!_0x472afa&&!Array[_0x853497(0x19f)](_0x472afa);}function q(_0x268e73,_0x5428ae){const _0x4e842f=_0x4c6b99;return JSON[_0x4e842f(0x1e6)](_0x268e73)===JSON['stringify'](_0x5428ae);}function J(_0x297040,_0x39cdfa,_0x3672b4,_0x558071,_0x1f0107,_0x354737,_0x84662a){const _0x5add6b=_0x4c6b99;let _0x2dc561=Me(_0x558071,_0x1f0107);return _0x2dc561?!!_0x297040[_0x5add6b(0x22b)](n[_0x5add6b(0x1aa)]['id'],{'unitId':_0x3672b4,'actions':_0x2dc561,'textRanges':[{'startOffset':_0x84662a,'endOffset':_0x84662a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x354737}):(_0x39cdfa[_0x5add6b(0x16a)]([{'startOffset':_0x84662a,'endOffset':_0x84662a}],{'unitId':_0x3672b4,'subUnitId':_0x3672b4},!0x1),!0x0);}const Y=_0x4c6b99(0x162);var Re='@univerjs-pro/docs-code',ze=_0x4c6b99(0x176);const Be={};function X(_0x388513,_0x13deea){return function(_0x502a79,_0x22e4ac){_0x13deea(_0x502a79,_0x22e4ac,_0x388513);};}function Z(_0xaf3ad3,_0x18f225,_0x449f39,_0x1221b1){const _0x5d27d3=_0x4c6b99;var _0x3b23a5=arguments[_0x5d27d3(0x218)],_0x1dd62c=_0x3b23a5<0x3?_0x18f225:_0x1221b1===null?_0x1221b1=Object[_0x5d27d3(0x175)](_0x18f225,_0x449f39):_0x1221b1,_0x503c17;if(typeof Reflect==_0x5d27d3(0x177)&&typeof Reflect[_0x5d27d3(0x18a)]==_0x5d27d3(0x1a7))_0x1dd62c=Reflect['decorate'](_0xaf3ad3,_0x18f225,_0x449f39,_0x1221b1);else{for(var _0x95fe7e=_0xaf3ad3[_0x5d27d3(0x218)]-0x1;_0x95fe7e>=0x0;_0x95fe7e--)(_0x503c17=_0xaf3ad3[_0x95fe7e])&&(_0x1dd62c=(_0x3b23a5<0x3?_0x503c17(_0x1dd62c):_0x3b23a5>0x3?_0x503c17(_0x18f225,_0x449f39,_0x1dd62c):_0x503c17(_0x18f225,_0x449f39))||_0x1dd62c);}return _0x3b23a5>0x3&&_0x1dd62c&&Object[_0x5d27d3(0x1de)](_0x18f225,_0x449f39,_0x1dd62c),_0x1dd62c;}let Q=class extends e['Disposable']{constructor(_0x270dfb,_0xd84f6c){const _0x1d942f=_0x4c6b99;super(),this['_resourceManagerService']=_0x270dfb,this[_0x1d942f(0x208)]=_0xd84f6c,this[_0x1d942f(0x1f6)]();}[_0x4c6b99(0x1f6)](){const _0x45c272=_0x4c6b99;this[_0x45c272(0x220)](this['_resourceManagerService'][_0x45c272(0x191)]({'pluginName':Y,'businesses':[e[_0x45c272(0x1a8)][_0x45c272(0x1d9)]],'toJson':_0x420cff=>JSON[_0x45c272(0x1e6)](this[_0x45c272(0x208)][_0x45c272(0x1c6)](_0x420cff)),'parseJson':_0x1466ec=>o(JSON['parse'](_0x1466ec)),'onLoad':(_0x3c9ddb,_0x48b526)=>this[_0x45c272(0x208)]['deserialize'](_0x3c9ddb,_0x48b526),'onUnLoad':_0x4d3b35=>this[_0x45c272(0x208)][_0x45c272(0x1ba)](_0x4d3b35)}));}};Q=Z([X(0x0,e[_0x4c6b99(0x1be)]),X(0x1,(0x0,e['Inject'])(p))],Q);let $=class extends e[_0x4c6b99(0x1ec)]{constructor(_0x26707c=Be,_0x8f1e4d,_0x49db48,_0x47f255){const _0x598d6a=_0x4c6b99;super(),this[_0x598d6a(0x217)]=_0x26707c,this[_0x598d6a(0x172)]=_0x8f1e4d,this[_0x598d6a(0x1b2)]=_0x49db48,this[_0x598d6a(0x1ac)]=_0x47f255;let {..._0x54fa97}=(0x0,e[_0x598d6a(0x226)])({},Be,this[_0x598d6a(0x217)]);this[_0x598d6a(0x1ac)]['setConfig'](_0x598d6a(0x170),_0x54fa97);}[_0x4c6b99(0x20b)](){const _0x3b24cb=_0x4c6b99;this[_0x3b24cb(0x172)][_0x3b24cb(0x1b1)]([p]),this[_0x3b24cb(0x172)][_0x3b24cb(0x1b1)]([Q]),this[_0x3b24cb(0x172)][_0x3b24cb(0x1fa)](p),this[_0x3b24cb(0x172)][_0x3b24cb(0x1fa)](Q),[R,I,z,B,V,De,H,L,m,h][_0x3b24cb(0x207)](_0x467981=>this[_0x3b24cb(0x220)](this[_0x3b24cb(0x1b2)][_0x3b24cb(0x1c5)](_0x467981)));}};function _0x3e8d(){const _0x59a96b=['onStarting','paragraphStyle','18bxhArK','blockRanges','right','containsStreamIndex','replaceOp','delete','DocsCodeRemoveCommand','createParagraphId','IUniverInstanceService','insert-new','_config','length','map','dataStream','max','DocsCodeConsumeBoundaryDeleteCommand','cursorOffset','generateRandomId','removeOp','disposeWithMe','normalizeDocsCodeMetadataResource','TABLE_CELL_END','shiftExclusiveRangeOnInsert','BLOCK_END','startTokenOffset','merge','_change$','documentData','DocSelectionManagerService','keepLines','syncExecuteCommand','docs-code.command.insert-below','getTextRanges','compose','Subject','startIndex','1EvJYhx','8233753iPYVud','DocsCodeInsertBelowCommand','getBody','pluginName','COMMAND','6NBHAcE','getCodeConfig','getCurrentUnitOfType','DOC_CODE_PLUGIN','CODE','getBlockRangeInterval','widowControl','keepNext','2885610nCSpYV','spaceAbove','BuildTextUtils','replaceDocRanges','getUnitId','Disposable','next','clear','constructor','docs-code.config','IConfigService','_injector','find','direction','getOwnPropertyDescriptor','1.2.0','object','indentEnd','docs-code.command.consume-boundary-delete','textStyle','getContentInsertRange','fromEntries','DocsCodeUnwrapCommand','DocsCodeInsertCommand','FALSE','model','entries','bullet','slice','BooleanNumber','blockType','indentStart','call','PARAGRAPH','TextX','decorate','DependentOn','getParagraphContentStartOffset','MUTATION','SetDocsCodeConfigMutation','buildCancelEmptyCodeParagraphActions','set','registerPluginResource','shiftInclusiveRangeOnDelete','some','docs-code.command.remove','getSnapshot','sectionBreaks','push','version','startOffset','DataStreamTreeTokenType','paragraphId','UniverDocsPlugin','commandService','config','isArray','_setResource','ICommandService','filter','paragraphStartIndex','reduce','paragraph','blockId','function','UniverInstanceType','deleteLength','RichTextEditingMutation','Module','_configService','paragraphs','monospace','codes','endIndex','add','_commandService','unitId','getBodySliceForTextXAction','insert','endOffset','every','textRuns','BLOCK_START','removeUnit','isHeaderFooterSelection','symbol','columnGroups','IResourceManagerService','6775620uXXHmH','DocsCodeModel','CommandType','metadata','range','getInstance','registerCommand','serialize','JSONX','insertLength','356657eApCOD','dispose','2319736SienKc','endsWith','DocsCodeUpdateCommand','tables','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','min','toPrimitive','insertionMode','40JMuVMV','Inject','body','nextDocumentData','string','convert-paragraph','UNIVER_DOC','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','TRUE','insertOp','type','defineProperty','previousDocumentData','456842JFAmaO','columns','customBlocks','602404TfyUaH','keys','customRanges','stringify','containsInteriorInsertionOffset','prototype','DocumentBlockRangeType','deserialize','docs-code.command.update','Plugin','spaceBelow','intersectsOperationalIntervals','editOp','isCodeBoundaryDelete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverLicensePlugin','removeCode','Injector','packageName','_initResource','selectionManager','getParagraphsInRange','start','get','getParagraphContentStartOffsets','endTokenOffset','UniverDocsCodePlugin','setCodeConfig','DocsCodeCancelEmptyParagraphCommand','customDecorations','nextMetadata','docs-code.command.unwrap','sort','docs-code.mutation.set-config','TABLE_CELL_START','RemoveDocsCodeConfigMutation','forEach','_docsCodeModel','javascript','_resources'];_0x3e8d=function(){return _0x59a96b;};return _0x3e8d();}f($,_0x4c6b99(0x15d),Y),f($,_0x4c6b99(0x1f5),Re),f($,_0x4c6b99(0x198),ze),f($,_0x4c6b99(0x1dd),e[_0x4c6b99(0x1a8)]['UNIVER_DOC']),$=Z([(0x0,e[_0x4c6b99(0x18b)])(r[_0x4c6b99(0x1f2)],n[_0x4c6b99(0x19c)]),X(0x1,(0x0,e[_0x4c6b99(0x1d4)])(e[_0x4c6b99(0x1f4)])),X(0x2,e[_0x4c6b99(0x1a1)]),X(0x3,e[_0x4c6b99(0x171)])],$),exports['DOCS_CODE_PLUGIN']=Y,exports[_0x4c6b99(0x1ff)]=H,exports[_0x4c6b99(0x21c)]=L,exports[_0x4c6b99(0x15b)]=I,exports[_0x4c6b99(0x17e)]=R,exports[_0x4c6b99(0x1c0)]=p,exports[_0x4c6b99(0x213)]=V,exports[_0x4c6b99(0x17d)]=B,exports[_0x4c6b99(0x1cd)]=z,exports[_0x4c6b99(0x206)]=h,exports[_0x4c6b99(0x18e)]=m,Object['defineProperty'](exports,_0x4c6b99(0x1fd),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4c6b99(0x18f)]=y,exports[_0x4c6b99(0x1f0)]=se,exports['normalizeDocsCodeConfig']=a,exports[_0x4c6b99(0x221)]=o;
1
+ const _0x1dea98=_0x4ac4;(function(_0xce0721,_0x16503b){const _0x3431a4=_0x4ac4,_0x1fc037=_0xce0721();while(!![]){try{const _0x413332=-parseInt(_0x3431a4(0xd2))/0x1+parseInt(_0x3431a4(0xe3))/0x2*(-parseInt(_0x3431a4(0x14b))/0x3)+parseInt(_0x3431a4(0x105))/0x4*(-parseInt(_0x3431a4(0x98))/0x5)+parseInt(_0x3431a4(0x138))/0x6*(-parseInt(_0x3431a4(0x139))/0x7)+-parseInt(_0x3431a4(0x151))/0x8+parseInt(_0x3431a4(0x89))/0x9*(parseInt(_0x3431a4(0x91))/0xa)+parseInt(_0x3431a4(0x137))/0xb*(parseInt(_0x3431a4(0x8f))/0xc);if(_0x413332===_0x16503b)break;else _0x1fc037['push'](_0x1fc037['shift']());}catch(_0x52437e){_0x1fc037['push'](_0x1fc037['shift']());}}}(_0x46c8,0x6dfa3),Object[_0x1dea98(0xe7)](exports,Symbol[_0x1dea98(0x131)],{'value':_0x1dea98(0x8c)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x1dea98(0x9f),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0xa1157d){return{...i,..._0xa1157d};}function o(_0x55aca8){const _0x1f75e9=_0x1dea98;let _0x2fa845=(_0x55aca8==null?void 0x0:_0x55aca8[_0x1f75e9(0x121)])??{};return{'codes':Object['fromEntries'](Object[_0x1f75e9(0x155)](_0x2fa845)[_0x1f75e9(0xbb)](([_0x3da0f8,_0x40cd36])=>[_0x3da0f8,a(_0x40cd36)]))};}function s(_0x4f3872,_0xb9d33a,_0x14e275){const _0x523635=_0x1dea98;let _0x1df141=o(_0x4f3872);return _0x1df141[_0x523635(0x121)][_0xb9d33a]=a({..._0x1df141[_0x523635(0x121)][_0xb9d33a],..._0x14e275}),_0x1df141;}function _0x46c8(){const _0x3905b0=['serialize','6951992PoafqG','pluginName','body','UniverInstanceType','entries','IResourceManagerService','nextMetadata','add','normalizeDocsCodeMetadataResource','DocSelectionManagerService','documentData','next','getCurrentUnitOfType','207rGpjOF','forEach','paragraphStartIndex','Module','startIndex','start','4011804gyXSCd','max','171910OPEYCW','paragraphId','DocsCodeUnwrapCommand','docs-code.mutation.remove-config','default','shiftExclusiveRangeOnDelete','ICommandService','5xYDyhl','config','delete','DocsCodeModel','asObservable','replaceOp','min','javascript','dataStream','startOffset','model','insertOp','isCodeBoundaryDelete','endTokenOffset','BLOCK_START','SECTION_BREAK','left','find','shiftInclusiveRangeOnDelete','getOwnPropertyDescriptor','getUnit','removeCode','columns','IUniverInstanceService','isArray','previousDocumentData','type','version','blockRanges','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getSingleDataStreamChange','blockType','call','textStyle','DOCS_CODE_PLUGIN','map','TRUE','buildCancelEmptyCodeParagraphActions','convert-paragraph','_config','change$','getBlockRangeInterval','deleteLength','bullet','_docsCodeModel','DOC_CODE_PLUGIN','decorate','every','JSONX','PARAGRAPH','TextX','textRuns','paragraphs','disposeWithMe','DocumentBlockRangeType','unitId','insertLength','getParagraphsInRange','292823xrtARe','indentEnd','DependentOn','endIndex','DocsCodeUpdateCommand','insertionMode','spaceAbove','range','deserialize','docs-code.command.consume-boundary-delete','some','compose','reduce','UniverDocsCodePlugin','BooleanNumber','object','indentStart','106BIQBAt','monospace','metadata','get','defineProperty','FALSE','_configService','DocsCodeCancelEmptyParagraphCommand','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','keys','CODE','getBody','slice','docs-code.command.update','customDecorations','DocsCodeInsertBelowCommand','cursorOffset','getParagraphContentStartOffset','containsInteriorInsertionOffset','DataStreamTreeTokenType','COMMAND','insert-new','endsWith','generateRandomId','getBodySliceForTextXAction','RichTextEditingMutation','complete','editOp','packageName','docs-code.command.insert','startTokenOffset','TABLE_CELL_END','Inject','right','2557652kHWsoB','dispose','constructor','push','Document\x20body\x20is\x20required','customBlocks','UniverDocsPlugin','DocsCodeRemoveCommand','iterator','spaceBelow','@univerjs-pro/docs-code','_resources','_injector','paragraphStyle','keepLines','Subject','BLOCK_END','customRanges','_initResource','docs-code.command.insert-below','getInstance','removeOp','UniverLicensePlugin','sectionBreaks','direction','stringify','SetDocsCodeConfigMutation','nextDocumentData','codes','merge','endOffset','handler','UNIVER_DOC','getParagraphContentStartOffsets','commandService','docs-code.command.remove','1.3.1','TABLE_CELL_START','shiftExclusiveRangeOnInsert','getContentInsertRange','createParagraphId','docs-code.command.unwrap','function','CommandType','toStringTag','syncExecuteCommand','isHeaderFooterSelection','Disposable','symbol','paragraph','88ibZcBR','2746644DmdywM','7mbOAHm','prototype','intersectsOperationalIntervals','from','selectionManager','_setResource','_change$','_resourceManagerService','docs-code.command.exit','getCodeConfig','docs-code.config','blockId','length','getTextRanges','getUnitId','shiftInclusiveRangeOnInsert','clear','sort','20403HsqUZr','columnGroups','tables','filter','RemoveDocsCodeConfigMutation'];_0x46c8=function(){return _0x3905b0;};return _0x46c8();}function c(_0x560832,_0x46970a){const _0x1bc711=_0x1dea98;let _0xaae83e=o(_0x560832);return delete _0xaae83e[_0x1bc711(0x121)][_0x46970a],_0xaae83e;}function l(_0x4dbf60){'@babel/helpers - typeof';const _0x11e4df=_0x1dea98;return l=typeof Symbol==_0x11e4df(0x12f)&&typeof Symbol[_0x11e4df(0x10d)]==_0x11e4df(0x135)?function(_0x3773c2){return typeof _0x3773c2;}:function(_0x3ff4b0){const _0x5e86a0=_0x11e4df;return _0x3ff4b0&&typeof Symbol==_0x5e86a0(0x12f)&&_0x3ff4b0[_0x5e86a0(0x107)]===Symbol&&_0x3ff4b0!==Symbol[_0x5e86a0(0x13a)]?'symbol':typeof _0x3ff4b0;},l(_0x4dbf60);}function u(_0x2936a5,_0x1cfa83){const _0x45ce12=_0x1dea98;if(l(_0x2936a5)!=_0x45ce12(0xe1)||!_0x2936a5)return _0x2936a5;var _0x3e024b=_0x2936a5[Symbol['toPrimitive']];if(_0x3e024b!==void 0x0){var _0x1d3ad7=_0x3e024b[_0x45ce12(0xb8)](_0x2936a5,_0x1cfa83||_0x45ce12(0x95));if(l(_0x1d3ad7)!='object')return _0x1d3ad7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1cfa83==='string'?String:Number)(_0x2936a5);}function d(_0x2eebd7){var _0x29f7f0=u(_0x2eebd7,'string');return l(_0x29f7f0)=='symbol'?_0x29f7f0:_0x29f7f0+'';}function f(_0x4bf32,_0x2cc437,_0x571cbe){const _0x3ec4e2=_0x1dea98;return(_0x2cc437=d(_0x2cc437))in _0x4bf32?Object[_0x3ec4e2(0xe7)](_0x4bf32,_0x2cc437,{'value':_0x571cbe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bf32[_0x2cc437]=_0x571cbe,_0x4bf32;}var p=class extends e[_0x1dea98(0x134)]{constructor(..._0x539c99){const _0x5692a9=_0x1dea98;super(..._0x539c99),f(this,_0x5692a9(0x110),new Map()),f(this,_0x5692a9(0x13f),new t[(_0x5692a9(0x114))]()),f(this,_0x5692a9(0xc0),this['_change$'][_0x5692a9(0x9c)]());}[_0x1dea98(0x142)](_0x48288e,_0x1910bb){const _0x4c628d=_0x1dea98;return o(this['_resources'][_0x4c628d(0xe6)](_0x48288e))[_0x4c628d(0x121)][_0x1910bb];}['setCodeConfig'](_0x4c5db9,_0x4d5b6b,_0xba8c90){const _0x1528da=_0x1dea98;this['_setResource'](_0x4c5db9,_0x4d5b6b,s(this['_resources'][_0x1528da(0xe6)](_0x4c5db9),_0x4d5b6b,_0xba8c90));}['removeCode'](_0xcc1a91,_0xcd48da){const _0xc35400=_0x1dea98;this['_setResource'](_0xcc1a91,_0xcd48da,c(this[_0xc35400(0x110)][_0xc35400(0xe6)](_0xcc1a91),_0xcd48da));}[_0x1dea98(0x150)](_0x12edce){const _0x13389a=_0x1dea98;return o(this[_0x13389a(0x110)][_0x13389a(0xe6)](_0x12edce));}[_0x1dea98(0xda)](_0x1256e3,_0x1e0400){const _0x421d5b=_0x1dea98;this['_resources']['set'](_0x1256e3,o(_0x1e0400)),this[_0x421d5b(0x13f)]['next']({'unitId':_0x1256e3});}['removeUnit'](_0x10e26d){const _0x50bc67=_0x1dea98;this[_0x50bc67(0x110)][_0x50bc67(0x9a)](_0x10e26d),this[_0x50bc67(0x13f)][_0x50bc67(0x87)]({'unitId':_0x10e26d});}[_0x1dea98(0x106)](){const _0x2dd98f=_0x1dea98;super[_0x2dd98f(0x106)](),this[_0x2dd98f(0x110)][_0x2dd98f(0x149)](),this[_0x2dd98f(0x13f)][_0x2dd98f(0xfd)]();}[_0x1dea98(0x13e)](_0x452a28,_0x2e2019,_0x2dea20){const _0x2634c3=_0x1dea98;this[_0x2634c3(0x110)]['set'](_0x452a28,_0x2dea20),this['_change$'][_0x2634c3(0x87)]({'unitId':_0x452a28,'blockId':_0x2e2019});}};const m={'id':'docs-code.mutation.set-config','type':e['CommandType']['MUTATION'],'handler':(_0x35fbe1,_0x35ec4f)=>!(_0x35ec4f!=null&&_0x35ec4f[_0x1dea98(0xcf)])||!_0x35ec4f['blockId']?!0x1:(_0x35fbe1[_0x1dea98(0xe6)](p)['setCodeConfig'](_0x35ec4f[_0x1dea98(0xcf)],_0x35ec4f[_0x1dea98(0x144)],_0x35ec4f[_0x1dea98(0x99)]),!0x0)},h={'id':_0x1dea98(0x94),'type':e['CommandType']['MUTATION'],'handler':(_0xeb7950,_0x5bb281)=>!(_0x5bb281!=null&&_0x5bb281[_0x1dea98(0xcf)])||!_0x5bb281['blockId']?!0x1:(_0xeb7950['get'](p)[_0x1dea98(0xad)](_0x5bb281[_0x1dea98(0xcf)],_0x5bb281[_0x1dea98(0x144)]),!0x0)},g=_0x1dea98(0xe4);var _=class extends Error{constructor(_0x3d2a5d=_0x1dea98(0xeb)){super(_0x3d2a5d);}};function ee(_0x2cbb77){const _0x3fffbe=_0x1dea98;var _0x10d172;let _0xc5c1ac=S(_0x2cbb77['documentData']),_0x53389f=w(_0xc5c1ac),_0x179ee5=ne(_0x2cbb77['startOffset'],_0x2cbb77[_0x3fffbe(0x123)]),_0x26b45c=_0x179ee5?(_0x10d172=_0x53389f['blockRanges'])==null?void 0x0:_0x10d172[_0x3fffbe(0xa9)](_0x5e9582=>{const _0x56b1d5=_0x3fffbe;let _0x56867e=(0x0,e[_0x56b1d5(0xc1)])(_0x5e9582);return _0x56867e[_0x56b1d5(0xa1)]===_0x179ee5[_0x56b1d5(0xa1)]&&_0x56867e[_0x56b1d5(0x123)]===_0x179ee5[_0x56b1d5(0x123)];}):void 0x0,{startOffset:_0x220dcd,endOffset:_0x194b40}=_0x26b45c?_0x179ee5:me(_0x53389f,_0x2cbb77[_0x3fffbe(0xa1)],_0x2cbb77[_0x3fffbe(0x123)],_0x2cbb77['insertionMode']);if(!_0x26b45c&&re(_0x53389f,_0x220dcd,_0x194b40))throw new _(_0x3fffbe(0xb5));let _0x22d94e=_e(_0x53389f,_0x220dcd,_0x194b40),_0x2db1b2=(_0x26b45c==null?void 0x0:_0x26b45c[_0x3fffbe(0x144)])??_0x2cbb77['blockId'],_0x2dd9be=s(_0x2cbb77[_0x3fffbe(0xe5)],_0x2db1b2,{...i,..._0x2cbb77['config']});if(_0x26b45c)return _0x26b45c[_0x3fffbe(0xb7)]=e[_0x3fffbe(0xce)][_0x3fffbe(0xed)],te(_0x53389f,_0x220dcd,_0x194b40),le(_0x53389f,_0x220dcd,_0x194b40,_0x22d94e),O(_0x53389f,_0x26b45c),{'nextDocumentData':_0xc5c1ac,'nextMetadata':_0x2dd9be,'cursorOffset':_0x220dcd+0x1};if(_0x220dcd===_0x194b40){var _0x395e20,_0x19a284;let _0x1f4065=''+e[_0x3fffbe(0xf6)]['BLOCK_START']+e[_0x3fffbe(0xf6)]['PARAGRAPH']+e['DataStreamTreeTokenType'][_0x3fffbe(0x115)];k(_0x53389f,_0x220dcd,_0x1f4065,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x395e20=_0x53389f['paragraphs'])==null?void 0x0:_0x395e20[_0x3fffbe(0xbb)](_0x3ce9da=>_0x3ce9da[_0x3fffbe(0x92)]))),'paragraphStyle':x(!0x0,!0x0,_0x22d94e)}],'blockRanges':[{'blockId':_0x2db1b2,'blockType':e[_0x3fffbe(0xce)][_0x3fffbe(0xed)],'startIndex':0x0,'endIndex':_0x1f4065[_0x3fffbe(0x145)]-0x1}]});let _0x40b12e=(_0x19a284=_0x53389f[_0x3fffbe(0xb4)])==null?void 0x0:_0x19a284[_0x3fffbe(0xa9)](_0x25eb6c=>_0x25eb6c[_0x3fffbe(0x144)]===_0x2db1b2);return _0x40b12e&&O(_0x53389f,_0x40b12e),{'nextDocumentData':_0xc5c1ac,'nextMetadata':_0x2dd9be,'cursorOffset':_0x220dcd+0x1};}k(_0x53389f,_0x194b40,e['DataStreamTreeTokenType'][_0x3fffbe(0x115)]),k(_0x53389f,_0x220dcd,e[_0x3fffbe(0xf6)][_0x3fffbe(0xa6)]),le(_0x53389f,_0x220dcd,_0x194b40+0x1,_0x22d94e);let _0x493398={'blockId':_0x2db1b2,'blockType':e['DocumentBlockRangeType'][_0x3fffbe(0xed)],'startIndex':_0x220dcd,'endIndex':_0x194b40+0x1};return _0x53389f[_0x3fffbe(0xb4)]=[..._0x53389f[_0x3fffbe(0xb4)]??[],_0x493398][_0x3fffbe(0x14a)]((_0x2ddfdc,_0x1d6347)=>_0x2ddfdc['startIndex']-_0x1d6347[_0x3fffbe(0x8d)]),O(_0x53389f,_0x493398),{'nextDocumentData':_0xc5c1ac,'nextMetadata':_0x2dd9be,'cursorOffset':_0x220dcd+0x1};}function te(_0x7eb0c8,_0x28a181,_0x2b994b){const _0x124b15=_0x1dea98;(_0x7eb0c8[_0x124b15(0xcc)]??[])[_0x124b15(0x14e)](_0x3647ed=>_0x3647ed['startIndex']>_0x28a181&&_0x3647ed[_0x124b15(0x8d)]<_0x2b994b)[_0x124b15(0x8a)](_0x19c78a=>{const _0x542fa7=_0x124b15;let _0x5f4ce9={..._0x19c78a[_0x542fa7(0x112)]??{}};delete _0x5f4ce9[_0x542fa7(0xd8)],delete _0x5f4ce9[_0x542fa7(0x10e)],_0x19c78a['paragraphStyle']=_0x5f4ce9;});}function ne(_0x3b37dd,_0x271fe2){return _0x3b37dd==null||_0x271fe2==null||_0x3b37dd===_0x271fe2?null:{'startOffset':Math['min'](_0x3b37dd,_0x271fe2),'endOffset':Math['max'](_0x3b37dd,_0x271fe2)};}function re(_0x14ef05,_0xcc990d,_0x5ba61b){const _0x32ed16=_0x1dea98;return(_0x14ef05[_0x32ed16(0xb4)]??[])[_0x32ed16(0xdc)](_0x8fc580=>{const _0x571070=_0x32ed16;let _0x47933c=(0x0,e[_0x571070(0xc1)])(_0x8fc580);return _0xcc990d===_0x5ba61b?(0x0,e[_0x571070(0xf5)])(_0x47933c,_0xcc990d):(0x0,e[_0x571070(0x13b)])(_0x47933c,{'startOffset':_0xcc990d,'endOffset':_0x5ba61b});});}function ie(_0x636d16){const _0x2d5a51=_0x1dea98;return{'nextDocumentData':S(_0x636d16['documentData']),'nextMetadata':s(_0x636d16[_0x2d5a51(0xe5)],_0x636d16[_0x2d5a51(0x144)],_0x636d16['config']),'cursorOffset':0x0};}function v(_0x1c61fc){const _0x31c90b=_0x1dea98;let _0x3442e3=S(_0x1c61fc[_0x31c90b(0x86)]),_0x2d51a0=w(_0x3442e3),_0x50773b=b(_0x2d51a0,_0x1c61fc[_0x31c90b(0x144)]);if(!_0x50773b)return null;let _0x1653ee=fe(_0x2d51a0,_0x50773b);return{'nextDocumentData':_0x3442e3,'nextMetadata':c(_0x1c61fc[_0x31c90b(0xe5)],_0x1c61fc[_0x31c90b(0x144)]),'cursorOffset':_0x1653ee};}function ae(_0x240fc9){const _0x5d3a73=_0x1dea98;var _0x31771d;let _0x3844ad=S(_0x240fc9[_0x5d3a73(0x86)]),_0x5269e4=w(_0x3844ad),_0x4f73fc=b(_0x5269e4,_0x240fc9[_0x5d3a73(0x144)]);if(!_0x4f73fc)return null;let _0x227fd2=(0x0,e[_0x5d3a73(0xc1)])(_0x4f73fc);return A(_0x5269e4,_0x227fd2[_0x5d3a73(0xa1)],_0x227fd2['endOffset']),_0x5269e4['blockRanges']=(_0x31771d=_0x5269e4[_0x5d3a73(0xb4)])==null?void 0x0:_0x31771d[_0x5d3a73(0x14e)](_0x4590b8=>_0x4590b8['blockId']!==_0x240fc9[_0x5d3a73(0x144)]),{'nextDocumentData':_0x3844ad,'nextMetadata':c(_0x240fc9[_0x5d3a73(0xe5)],_0x240fc9['blockId']),'cursorOffset':_0x4f73fc[_0x5d3a73(0x8d)]};}function y(_0x5bf3ac){const _0x5bab4b=_0x1dea98;let _0x544dec=S(_0x5bf3ac[_0x5bab4b(0x86)]),_0x53925e=w(_0x544dec),_0x5f4373=ce(_0x53925e,_0x5bf3ac[_0x5bab4b(0xf3)]);return _0x5f4373&&oe(_0x544dec,_0x53925e,_0x5f4373,_0x5bf3ac[_0x5bab4b(0xf3)],_0x5bf3ac[_0x5bab4b(0x8b)])||null;}function oe(_0xd27b4f,_0xcea8da,_0x36ad7f,_0x338844,_0x47f4ce){const _0x39e808=_0x1dea98;let _0x37994f=Se(_0xcea8da,_0x36ad7f,_0x338844,_0x47f4ce);if(!_0x37994f)return null;let _0x479202=_0x37994f[_0x39e808(0xa5)]-0x1;return A(_0xcea8da,_0x37994f[_0x39e808(0x136)][_0x39e808(0x8d)],_0x37994f[_0x39e808(0x136)][_0x39e808(0x8d)]+0x1),{'nextDocumentData':_0xd27b4f,'cursorOffset':_0x479202};}function b(_0x4a3d41,_0x1b5b1a){const _0x5ee141=_0x1dea98;var _0x46328c;return _0x4a3d41==null||(_0x46328c=_0x4a3d41[_0x5ee141(0xb4)])==null?void 0x0:_0x46328c[_0x5ee141(0xa9)](_0x1b69ba=>_0x1b69ba[_0x5ee141(0xb7)]===e['DocumentBlockRangeType']['CODE']&&_0x1b69ba['blockId']===_0x1b5b1a);}function se(_0x52413c){const _0x407e3b=_0x1dea98;let _0x1670a3=_0x52413c[_0x407e3b(0x86)]['body'];if(!_0x1670a3)return!0x1;let _0x409a89=_0x52413c[_0x407e3b(0x11d)]===_0x407e3b(0xa8)?_0x52413c[_0x407e3b(0xf3)]-0x1:_0x52413c[_0x407e3b(0xf3)],_0x4e45d9=_0x52413c[_0x407e3b(0x11d)]===_0x407e3b(0x104)?_0x52413c['cursorOffset']+0x1:_0x409a89;return(_0x1670a3[_0x407e3b(0xb4)]??[])[_0x407e3b(0xdc)](_0x37c275=>_0x37c275[_0x407e3b(0xb7)]===e[_0x407e3b(0xce)]['CODE']?_0x409a89===_0x37c275['startIndex']||_0x409a89===_0x37c275[_0x407e3b(0xd5)]||_0x4e45d9===_0x37c275[_0x407e3b(0x8d)]||_0x4e45d9===_0x37c275[_0x407e3b(0xd5)]:!0x1);}function ce(_0xcecb4f,_0xf7ec45){const _0x54bf62=_0x1dea98;var _0x517a7a;return(_0x517a7a=_0xcecb4f[_0x54bf62(0xb4)])==null?void 0x0:_0x517a7a[_0x54bf62(0xa9)](_0x210403=>{const _0x2fb601=_0x54bf62;let _0x1b7aa1=D(_0x210403);return _0x210403[_0x2fb601(0xb7)]===e[_0x2fb601(0xce)][_0x2fb601(0xed)]&&_0x210403[_0x2fb601(0x8d)]<=_0xf7ec45&&_0xf7ec45<=_0x1b7aa1+0x2;});}function x(_0x3c5eb0,_0x4edda7,_0x208db5=!0x1){const _0x5be0f5=_0x1dea98;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x5be0f5(0xe0)][_0x5be0f5(0xbc)],'keepNext':_0x4edda7?e['BooleanNumber'][_0x5be0f5(0xe8)]:e[_0x5be0f5(0xe0)][_0x5be0f5(0xbc)],'widowControl':e[_0x5be0f5(0xe0)][_0x5be0f5(0xbc)],..._0x3c5eb0&&_0x208db5?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0xeda84f,_0x50abfb,_0x5b9360,_0x10ceb0=!0x1){const _0x8e448e=_0x1dea98;let _0xf6d722=(_0xeda84f[_0x8e448e(0xcc)]??[])['filter'](_0x5c4227=>_0x5c4227[_0x8e448e(0x8d)]>_0x50abfb&&_0x5c4227[_0x8e448e(0x8d)]<_0x5b9360);_0xf6d722[_0x8e448e(0x8a)]((_0x5a8b47,_0x1f9c9b)=>{const _0x1d6303=_0x8e448e;_0x5a8b47['paragraphStyle']={..._0x5a8b47[_0x1d6303(0x112)]??{},...x(_0x1f9c9b===0x0,_0x1f9c9b===_0xf6d722['length']-0x1,_0x10ceb0)};});}function ue(_0x3d1d32){const _0x5c7507=_0x1dea98;var _0x586e07,_0x46da4b;let _0x1f2824={..._0x3d1d32??{}};return delete _0x1f2824[_0x5c7507(0xd3)],delete _0x1f2824[_0x5c7507(0xe2)],delete _0x1f2824[_0x5c7507(0xd8)],delete _0x1f2824[_0x5c7507(0x10e)],delete _0x1f2824[_0x5c7507(0x113)],delete _0x1f2824['keepNext'],delete _0x1f2824['widowControl'],((_0x586e07=_0x1f2824[_0x5c7507(0xb9)])==null?void 0x0:_0x586e07['ff'])===g&&((_0x46da4b=_0x1f2824['textStyle'])==null?void 0x0:_0x46da4b['fs'])===0xc&&delete _0x1f2824[_0x5c7507(0xb9)],_0x1f2824;}function de(_0x132af9,_0x1820bb){const _0x58fa7c=_0x1dea98;let _0x17000f=D(_0x1820bb);return(_0x132af9['paragraphs']??[])[_0x58fa7c(0x14e)](_0x251b5d=>_0x251b5d[_0x58fa7c(0x8d)]>_0x1820bb[_0x58fa7c(0x8d)]&&_0x251b5d[_0x58fa7c(0x8d)]<_0x17000f);}function _0x4ac4(_0x136bd8,_0x10a033){_0x136bd8=_0x136bd8-0x83;const _0x46c807=_0x46c8();let _0x4ac4ba=_0x46c807[_0x136bd8];return _0x4ac4ba;}function fe(_0x78ccf9,_0x398599){const _0x5770f1=_0x1dea98;var _0xd5457f;let _0x2d6eae=D(_0x398599);return de(_0x78ccf9,_0x398599)[_0x5770f1(0x8a)](_0x461594=>{const _0x182300=_0x5770f1;_0x461594['paragraphStyle']=ue(_0x461594[_0x182300(0x112)]);}),A(_0x78ccf9,_0x2d6eae,_0x2d6eae+0x1),A(_0x78ccf9,_0x398599[_0x5770f1(0x8d)],_0x398599[_0x5770f1(0x8d)]+0x1),_0x78ccf9[_0x5770f1(0xb4)]=(_0xd5457f=_0x78ccf9[_0x5770f1(0xb4)])==null?void 0x0:_0xd5457f['filter'](_0x5784a0=>_0x5784a0[_0x5770f1(0x144)]!==_0x398599['blockId']),_0x398599[_0x5770f1(0x8d)];}function S(_0x4ec141){const _0xcb3e77=_0x1dea98;return{..._0x4ec141,'body':_0x4ec141['body']?pe(_0x4ec141[_0xcb3e77(0x153)]):_0x4ec141['body']};}function pe(_0x335709){const _0x3747cd=_0x1dea98;var _0x5503d2,_0x48bf09,_0x3e9ce0,_0x273726,_0x1313ac,_0x53fe60,_0x1bb9a4,_0x38843,_0x1a786e;return{..._0x335709,'paragraphs':(_0x5503d2=_0x335709[_0x3747cd(0xcc)])==null?void 0x0:_0x5503d2[_0x3747cd(0xbb)](_0x42e784=>({..._0x42e784,'bullet':C(_0x42e784[_0x3747cd(0xc3)]),'paragraphStyle':C(_0x42e784[_0x3747cd(0x112)])})),'sectionBreaks':(_0x48bf09=_0x335709[_0x3747cd(0x11c)])==null?void 0x0:_0x48bf09[_0x3747cd(0xbb)](_0x5e1076=>({..._0x5e1076})),'textRuns':(_0x3e9ce0=_0x335709[_0x3747cd(0xcb)])==null?void 0x0:_0x3e9ce0['map'](_0x1fa9fe=>({..._0x1fa9fe})),'tables':(_0x273726=_0x335709[_0x3747cd(0x14d)])==null?void 0x0:_0x273726[_0x3747cd(0xbb)](_0x500149=>({..._0x500149})),'columnGroups':(_0x1313ac=_0x335709[_0x3747cd(0x14c)])==null?void 0x0:_0x1313ac['map'](_0xe30d84=>{const _0x1fffdd=_0x3747cd;var _0x432062;return{..._0xe30d84,'columns':(_0x432062=_0xe30d84[_0x1fffdd(0xae)])==null?void 0x0:_0x432062[_0x1fffdd(0xbb)](_0x3914a8=>C(_0x3914a8))};}),'blockRanges':(_0x53fe60=_0x335709[_0x3747cd(0xb4)])==null?void 0x0:_0x53fe60['map'](_0x10d158=>({..._0x10d158})),'customRanges':(_0x1bb9a4=_0x335709[_0x3747cd(0x116)])==null?void 0x0:_0x1bb9a4['map'](_0x1678e8=>({..._0x1678e8})),'customDecorations':(_0x38843=_0x335709[_0x3747cd(0xf1)])==null?void 0x0:_0x38843[_0x3747cd(0xbb)](_0x1e95c6=>({..._0x1e95c6})),'customBlocks':(_0x1a786e=_0x335709[_0x3747cd(0x10a)])==null?void 0x0:_0x1a786e[_0x3747cd(0xbb)](_0x384b56=>({..._0x384b56}))};}function C(_0xa450d4){const _0x44cd2d=_0x1dea98;return Array['isArray'](_0xa450d4)?_0xa450d4[_0x44cd2d(0xbb)](_0x1c3194=>C(_0x1c3194)):!_0xa450d4||typeof _0xa450d4!=_0x44cd2d(0xe1)?_0xa450d4:Object['fromEntries'](Object[_0x44cd2d(0x155)](_0xa450d4)[_0x44cd2d(0xbb)](([_0x269997,_0x4414ad])=>[_0x269997,C(_0x4414ad)]));}function w(_0x3dd18a){const _0x30687a=_0x1dea98;if(!_0x3dd18a['body'])throw Error(_0x30687a(0x109));return _0x3dd18a['body'];}function me(_0x3a1d46,_0x2f06c2,_0x1577fd,_0x500c5d=_0x1dea98(0xbe)){const _0x4034cc=_0x1dea98;if(_0x2f06c2==null||_0x1577fd==null){let _0x4e1840=ge(_0x3a1d46);return{'startOffset':_0x4e1840,'endOffset':_0x4e1840};}let _0x3ea3aa=Math[_0x4034cc(0x9e)](_0x2f06c2,_0x1577fd),_0x5320e2=Math['max'](_0x2f06c2,_0x1577fd),_0x52eceb=xe(_0x3a1d46,_0x3ea3aa,_0x5320e2);return _0x3ea3aa===_0x5320e2?_0x500c5d==='insert-new'?{'startOffset':_0x3ea3aa,'endOffset':_0x5320e2}:he(_0x3a1d46,_0x3ea3aa,_0x52eceb):ve(_0x3a1d46,_0x3ea3aa,_0x5320e2,_0x52eceb);}function he(_0x2de652,_0x2f96d1,_0x272dc1){const _0x2e1974=_0x1dea98;let _0x523c2a=ye(_0x2de652,_0x2f96d1);if(_0x523c2a){let _0x489adf=T(_0x2de652,_0x523c2a,_0x272dc1);if(_0x489adf<_0x523c2a[_0x2e1974(0x8d)])return{'startOffset':_0x489adf,'endOffset':_0x272dc1?Math['min'](_0x523c2a[_0x2e1974(0x8d)]+0x1,_0x272dc1[_0x2e1974(0x123)]):_0x523c2a[_0x2e1974(0x8d)]+0x1};}let _0x45d773=_0x2f96d1===0x0&&_0x2de652['dataStream'][0x0]===e[_0x2e1974(0xf6)][_0x2e1974(0xc9)]?0x1:_0x2f96d1;return{'startOffset':_0x45d773,'endOffset':_0x45d773};}function ge(_0x44a51d){const _0x1ff5db=_0x1dea98;return _0x44a51d[_0x1ff5db(0xa0)][_0x1ff5db(0xf9)](e[_0x1ff5db(0xf6)][_0x1ff5db(0xa7)])?Math['max'](0x0,_0x44a51d['dataStream'][_0x1ff5db(0x145)]-0x1):_0x44a51d['dataStream'][_0x1ff5db(0x145)];}function _e(_0x578ddc,_0x3cda36,_0x23ee68){const _0x2f1155=_0x1dea98;var _0x32821c;let _0x2ff037=Math[_0x2f1155(0x9e)](_0x3cda36,_0x23ee68),_0x28c50b=Math[_0x2f1155(0x90)](_0x3cda36,_0x23ee68);return!!((_0x32821c=_0x578ddc[_0x2f1155(0x14d)])!=null&&_0x32821c[_0x2f1155(0xdc)](_0x1dc9e6=>_0x2ff037>_0x1dc9e6[_0x2f1155(0x8d)]&&_0x2ff037<_0x1dc9e6[_0x2f1155(0xd5)]||_0x28c50b>_0x1dc9e6[_0x2f1155(0x8d)]&&_0x28c50b<_0x1dc9e6[_0x2f1155(0xd5)]||_0x2ff037<=_0x1dc9e6[_0x2f1155(0x8d)]&&_0x28c50b>=_0x1dc9e6[_0x2f1155(0xd5)]));}function ve(_0x49d485,_0x54bf49,_0x4c12eb,_0x4eae54){const _0x1f3880=_0x1dea98;let _0x41b4e9=[..._0x49d485[_0x1f3880(0xcc)]??[]][_0x1f3880(0x14a)]((_0x36c341,_0x41293b)=>_0x36c341[_0x1f3880(0x8d)]-_0x41293b['startIndex']),_0x345e6f=(0x0,e[_0x1f3880(0x126)])(_0x49d485),_0x431ff6=_0x41b4e9[_0x1f3880(0xa9)](_0x591755=>T(_0x49d485,_0x591755,_0x4eae54,_0x345e6f)<=_0x54bf49&&_0x54bf49<=_0x591755[_0x1f3880(0x8d)]),_0x45b3b5=_0x41b4e9[_0x1f3880(0xa9)](_0x4bb78b=>_0x4bb78b['startIndex']>=_0x4c12eb-0x1)??_0x41b4e9[_0x41b4e9[_0x1f3880(0x145)]-0x1];return{'startOffset':_0x431ff6?T(_0x49d485,_0x431ff6,_0x4eae54,_0x345e6f):_0x54bf49,'endOffset':_0x45b3b5?be(_0x45b3b5,_0x4eae54):_0x4c12eb};}function ye(_0x34eaa4,_0x1c8793){const _0x50e38b=_0x1dea98;let _0x1f4686=[..._0x34eaa4['paragraphs']??[]]['sort']((_0x279e02,_0x2be987)=>_0x279e02[_0x50e38b(0x8d)]-_0x2be987[_0x50e38b(0x8d)]),_0x53ef0c=(0x0,e[_0x50e38b(0x126)])(_0x34eaa4);return _0x1f4686['find'](_0x68fb77=>(_0x53ef0c[_0x50e38b(0xe6)](_0x68fb77['startIndex'])??0x0)<=_0x1c8793&&_0x1c8793<=_0x68fb77[_0x50e38b(0x8d)]);}function T(_0x398c24,_0x583904,_0x5680d0,_0x2c16d8){const _0x316ed1=_0x1dea98;let _0x21d200=(_0x2c16d8==null?void 0x0:_0x2c16d8[_0x316ed1(0xe6)](_0x583904['startIndex']))??(0x0,e[_0x316ed1(0xf4)])(_0x398c24,_0x583904);return _0x5680d0?Math[_0x316ed1(0x90)](_0x21d200,_0x5680d0[_0x316ed1(0xa1)]):_0x21d200;}function be(_0x44cff8,_0x29f540){const _0x17325f=_0x1dea98;let _0x5265f3=_0x44cff8['startIndex']+0x1;return _0x29f540?Math['min'](_0x5265f3,_0x29f540[_0x17325f(0x123)]):_0x5265f3;}function xe(_0x267206,_0x238a26,_0x5bb8bf){const _0x15cbbd=_0x1dea98;let _0xd838ef=E(_0x267206,_0x238a26),_0x12da20=E(_0x267206,_0x238a26===_0x5bb8bf?_0x5bb8bf:Math[_0x15cbbd(0x90)](_0x238a26,_0x5bb8bf-0x1));if(_0xd838ef||_0x12da20){if(!_0xd838ef||!_0x12da20||_0xd838ef[_0x15cbbd(0x101)]!==_0x12da20['startTokenOffset']||_0xd838ef[_0x15cbbd(0xa5)]!==_0x12da20[_0x15cbbd(0xa5)])throw new _();return _0xd838ef;}}function E(_0x3f4b0c,_0x6d9d53){const _0x352c2b=_0x1dea98;let _0x13f54e=_0x3f4b0c[_0x352c2b(0xa0)],_0x4e34c9=-0x1;for(let _0x1f7704=Math[_0x352c2b(0x9e)](_0x6d9d53,_0x13f54e[_0x352c2b(0x145)]-0x1);_0x1f7704>=0x0;_0x1f7704--){let _0x446632=_0x13f54e[_0x1f7704];if(_0x446632===e[_0x352c2b(0xf6)][_0x352c2b(0x102)])return;if(_0x446632===e[_0x352c2b(0xf6)][_0x352c2b(0x12a)]){_0x4e34c9=_0x1f7704;break;}}if(_0x4e34c9<0x0)return;let _0x174475=_0x13f54e['indexOf'](e[_0x352c2b(0xf6)]['TABLE_CELL_END'],_0x4e34c9+0x1);if(!(_0x174475<0x0||_0x6d9d53<_0x4e34c9+0x1||_0x6d9d53>_0x174475-0x1))return{'startOffset':_0x4e34c9+0x1,'endOffset':Math[_0x352c2b(0x90)](_0x4e34c9+0x1,_0x174475-0x1),'startTokenOffset':_0x4e34c9,'endTokenOffset':_0x174475};}function D(_0x236194){const _0xeee514=_0x1dea98;return(0x0,e['getBlockRangeInterval'])(_0x236194)[_0xeee514(0x123)]-0x1;}function Se(_0x591c3a,_0x45700c,_0x5a6cec,_0x54a65f){const _0x4a233f=_0x1dea98;let _0x358abd=D(_0x45700c),_0x28be20=(_0x591c3a[_0x4a233f(0xcc)]??[])['find'](_0x142a7e=>_0x142a7e['startIndex']===_0x358abd+0x1);if(!_0x28be20||_0x54a65f!=null&&_0x28be20[_0x4a233f(0x8d)]!==_0x54a65f||_0x5a6cec!=null&&(_0x5a6cec<_0x358abd||_0x5a6cec>_0x28be20[_0x4a233f(0x8d)]+0x1)||_0x591c3a['dataStream'][_0x28be20[_0x4a233f(0x8d)]]!==e[_0x4a233f(0xf6)][_0x4a233f(0xc9)])return null;let _0x37408e=(0x0,e[_0x4a233f(0xf4)])(_0x591c3a,_0x28be20),_0x4cd690=_0x591c3a[_0x4a233f(0xa0)][_0x4a233f(0xef)](_0x37408e,_0x28be20[_0x4a233f(0x8d)]);return Array[_0x4a233f(0x13c)](_0x4cd690)[_0x4a233f(0xc7)](_0x5945c2=>_0x5945c2===e['DataStreamTreeTokenType']['BLOCK_END'])?{'paragraph':_0x28be20,'endTokenOffset':_0x358abd}:null;}function O(_0x42beda,_0xd76eab){const _0x376d5b=_0x1dea98;var _0x11d5af;let _0x570928=D(_0xd76eab),_0x17a6c7=_0x42beda[_0x376d5b(0xa0)][_0x570928+0x1];(_0x17a6c7===e['DataStreamTreeTokenType'][_0x376d5b(0xa7)]||_0x17a6c7===void 0x0)&&k(_0x42beda,_0x570928+0x1,e[_0x376d5b(0xf6)]['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x376d5b(0x12d)])(new Set((_0x11d5af=_0x42beda[_0x376d5b(0xcc)])==null?void 0x0:_0x11d5af[_0x376d5b(0xbb)](_0x26a8a9=>_0x26a8a9['paragraphId'])))}]});}function k(_0x12e7b6,_0x51148a,_0x4c5bad,_0x180dd5={}){const _0x182e76=_0x1dea98;var _0x209aa5,_0x4d54e6;_0x4c5bad&&(_0x12e7b6['dataStream']=''+_0x12e7b6[_0x182e76(0xa0)][_0x182e76(0xef)](0x0,_0x51148a)+_0x4c5bad+_0x12e7b6[_0x182e76(0xa0)]['slice'](_0x51148a),Ce(_0x12e7b6,_0x51148a,_0x4c5bad[_0x182e76(0x145)]),(_0x209aa5=_0x180dd5['paragraphs'])!=null&&_0x209aa5['length']&&(_0x12e7b6[_0x182e76(0xcc)]=[..._0x12e7b6['paragraphs']??[],..._0x180dd5[_0x182e76(0xcc)][_0x182e76(0xbb)](_0xb8507=>({..._0xb8507,'startIndex':_0xb8507[_0x182e76(0x8d)]+_0x51148a}))]['sort']((_0x44dfef,_0x2ff4d4)=>_0x44dfef['startIndex']-_0x2ff4d4['startIndex'])),(_0x4d54e6=_0x180dd5[_0x182e76(0xb4)])!=null&&_0x4d54e6[_0x182e76(0x145)]&&(_0x12e7b6[_0x182e76(0xb4)]=[..._0x12e7b6[_0x182e76(0xb4)]??[],..._0x180dd5['blockRanges']['map'](_0x5c07fa=>({..._0x5c07fa,'startIndex':_0x5c07fa[_0x182e76(0x8d)]+_0x51148a,'endIndex':_0x5c07fa[_0x182e76(0xd5)]+_0x51148a}))]['sort']((_0x3797ed,_0x41e4f6)=>_0x3797ed[_0x182e76(0x8d)]-_0x41e4f6['startIndex'])));}function A(_0x63125f,_0x23cdb1,_0x3db8ae){const _0x2f456a=_0x1dea98;let _0x19eef4=_0x3db8ae-_0x23cdb1;_0x63125f['dataStream']=''+_0x63125f['dataStream']['slice'](0x0,_0x23cdb1)+_0x63125f[_0x2f456a(0xa0)][_0x2f456a(0xef)](_0x3db8ae),we(_0x63125f,_0x23cdb1,_0x19eef4);}function Ce(_0x218e1f,_0x464d38,_0x451e74){const _0x32ed9f=_0x1dea98;_0x218e1f['paragraphs']=j(_0x218e1f[_0x32ed9f(0xcc)],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x11c)]=j(_0x218e1f['sectionBreaks'],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x10a)]=j(_0x218e1f[_0x32ed9f(0x10a)],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0xcb)]=Te(_0x218e1f[_0x32ed9f(0xcb)],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x14d)]=Ee(_0x218e1f[_0x32ed9f(0x14d)],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x14c)]=N(_0x218e1f['columnGroups'],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x116)]=N(_0x218e1f[_0x32ed9f(0x116)],_0x464d38,_0x451e74),_0x218e1f['customDecorations']=N(_0x218e1f['customDecorations'],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0xb4)]=N(_0x218e1f[_0x32ed9f(0xb4)],_0x464d38,_0x451e74);}function we(_0x38770f,_0x319428,_0x198a28){const _0x21e3ea=_0x1dea98;var _0x5c261a,_0x1f6af0;_0x38770f[_0x21e3ea(0xcc)]=M(_0x38770f['paragraphs'],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0x11c)]=M(_0x38770f[_0x21e3ea(0x11c)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0x10a)]=M(_0x38770f[_0x21e3ea(0x10a)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0xcb)]=(_0x5c261a=F((_0x1f6af0=_0x38770f['textRuns'])==null?void 0x0:_0x1f6af0[_0x21e3ea(0xbb)](_0x274857=>({..._0x274857,'startIndex':_0x274857['st'],'endIndex':_0x274857['ed']})),_0x319428,_0x198a28))==null?void 0x0:_0x5c261a[_0x21e3ea(0xbb)](_0x48af20=>{let {startIndex:_0x8b773f,endIndex:_0x1b5dc0,..._0x3a2693}=_0x48af20;return{..._0x3a2693,'st':_0x8b773f,'ed':_0x1b5dc0};}),_0x38770f['tables']=F(_0x38770f[_0x21e3ea(0x14d)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0x14c)]=P(_0x38770f[_0x21e3ea(0x14c)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0x116)]=P(_0x38770f[_0x21e3ea(0x116)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0xf1)]=P(_0x38770f[_0x21e3ea(0xf1)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0xb4)]=P(_0x38770f[_0x21e3ea(0xb4)],_0x319428,_0x198a28);}function j(_0x5472a0,_0x3abcfe,_0x2c55c4){const _0x38607e=_0x1dea98;return _0x5472a0==null?void 0x0:_0x5472a0[_0x38607e(0xbb)](_0x2927a3=>_0x2927a3['startIndex']>=_0x3abcfe?{..._0x2927a3,'startIndex':_0x2927a3[_0x38607e(0x8d)]+_0x2c55c4}:_0x2927a3);}function M(_0x5bf2b7,_0x5414b8,_0x1901bd){const _0x1d8b9f=_0x1dea98;let _0x40d375=_0x5414b8+_0x1901bd;return _0x5bf2b7==null?void 0x0:_0x5bf2b7[_0x1d8b9f(0xbb)](_0x29154d=>_0x29154d[_0x1d8b9f(0x8d)]>=_0x5414b8&&_0x29154d[_0x1d8b9f(0x8d)]<_0x40d375?null:_0x29154d['startIndex']>=_0x40d375?{..._0x29154d,'startIndex':_0x29154d[_0x1d8b9f(0x8d)]-_0x1901bd}:_0x29154d)['filter'](_0x494ede=>_0x494ede!=null);}function Te(_0x5c2eaa,_0x4037ba,_0x19c3b1){const _0x5ceb87=_0x1dea98;return _0x5c2eaa==null?void 0x0:_0x5c2eaa[_0x5ceb87(0xbb)](_0x36551c=>_0x36551c['st']>=_0x4037ba?{..._0x36551c,'st':_0x36551c['st']+_0x19c3b1,'ed':_0x36551c['ed']+_0x19c3b1}:_0x36551c['ed']>_0x4037ba?{..._0x36551c,'ed':_0x36551c['ed']+_0x19c3b1}:_0x36551c);}function N(_0x435db3,_0xc7a662,_0x33cf98){const _0x3b9a6d=_0x1dea98;return _0x435db3==null?void 0x0:_0x435db3[_0x3b9a6d(0xbb)](_0x1b8b95=>(0x0,e[_0x3b9a6d(0x148)])(_0x1b8b95,_0xc7a662,_0x33cf98));}function Ee(_0x4bbe16,_0x33fa73,_0x3605f6){const _0x2ec71d=_0x1dea98;return _0x4bbe16==null?void 0x0:_0x4bbe16['map'](_0xf6f83d=>(0x0,e[_0x2ec71d(0x12b)])(_0xf6f83d,_0x33fa73,_0x3605f6));}function P(_0x37503f,_0x29114e,_0x4c68ca){const _0x3908f3=_0x1dea98;return _0x37503f==null?void 0x0:_0x37503f[_0x3908f3(0xbb)](_0x4cb13b=>(0x0,e[_0x3908f3(0xaa)])(_0x4cb13b,_0x29114e,_0x4c68ca))[_0x3908f3(0x14e)](_0x2dbde3=>_0x2dbde3!=null);}function F(_0x5c28dc,_0x26560b,_0x2e12ac){const _0x38ed85=_0x1dea98;return _0x5c28dc==null?void 0x0:_0x5c28dc[_0x38ed85(0xbb)](_0xeb07f1=>(0x0,e[_0x38ed85(0x96)])(_0xeb07f1,_0x26560b,_0x2e12ac))[_0x38ed85(0x14e)](_0x4d93d2=>_0x4d93d2!=null);}const I={'id':_0x1dea98(0x118),'type':e['CommandType']['COMMAND'],'handler':_0x3b0b89=>{const _0x9ff142=_0x1dea98;var _0x31f358;if((0x0,n[_0x9ff142(0x133)])(W(_0x3b0b89)))return!0x1;let _0xbaa48c=(0x0,n[_0x9ff142(0x12c)])(_0x3b0b89);if(_0xbaa48c)return _0x3b0b89['get'](e[_0x9ff142(0x97)])[_0x9ff142(0x132)](R['id'],{'startOffset':_0xbaa48c[_0x9ff142(0xa1)],'endOffset':_0xbaa48c[_0x9ff142(0x123)],'insertionMode':_0x9ff142(0xf8),'unitId':_0xbaa48c['unitId']});let _0x5a92a=je(_0x3b0b89);if(!_0x5a92a)return!0x1;let _0x3887bb=(_0x31f358=_0x3b0b89['get'](e[_0x9ff142(0xaf)])[_0x9ff142(0x88)](e[_0x9ff142(0x154)][_0x9ff142(0x125)]))==null?void 0x0:_0x31f358[_0x9ff142(0xee)](),_0x4224b8=_0x3887bb?(0x0,e['getParagraphFollowingBlockOffset'])(_0x3887bb,_0x5a92a):_0x5a92a[_0x9ff142(0x8d)]+0x1;return _0x3b0b89['get'](e[_0x9ff142(0x97)])[_0x9ff142(0x132)](R['id'],{'startOffset':_0x4224b8,'endOffset':_0x4224b8});}},L={'id':_0x1dea98(0xdb),'type':e[_0x1dea98(0x130)]['COMMAND'],'handler':()=>!0x0},R={'id':_0x1dea98(0x100),'type':e[_0x1dea98(0x130)]['COMMAND'],'handler':(_0x2cb211,_0x39a17c)=>{const _0x1f7b0c=_0x1dea98;let _0x5a37ca=U(_0x2cb211,_0x39a17c==null?void 0x0:_0x39a17c[_0x1f7b0c(0xcf)]);if(!_0x5a37ca)return!0x1;let _0x343b7d=W(_0x2cb211);if((0x0,n[_0x1f7b0c(0x133)])(_0x343b7d))return!0x1;let _0x1ddd70=_0x5a37ca[_0x1f7b0c(0xa2)][_0x1f7b0c(0x150)](_0x5a37ca['unitId']),_0x3395a7=Oe(_0x39a17c,_0x343b7d),_0x4a7a66=ke(_0x5a37ca[_0x1f7b0c(0xb1)],_0x3395a7);if(_0x4a7a66){if(_0x4a7a66['blockType']!==e[_0x1f7b0c(0xce)]['CODE'])return!0x1;let _0x4db4a2=v({'blockId':_0x4a7a66[_0x1f7b0c(0x144)],'documentData':_0x5a37ca['previousDocumentData'],'metadata':_0x1ddd70});if(!_0x4db4a2)return!0x1;let _0x46cdf6=J(_0x5a37ca['commandService'],_0x5a37ca[_0x1f7b0c(0x13d)],_0x5a37ca[_0x1f7b0c(0xcf)],_0x5a37ca[_0x1f7b0c(0xb1)],_0x4db4a2[_0x1f7b0c(0x120)],R['id'],_0x4db4a2[_0x1f7b0c(0xf3)]);return _0x46cdf6&&_0x4db4a2['nextMetadata']&&_0x5a37ca[_0x1f7b0c(0xa2)][_0x1f7b0c(0xda)](_0x5a37ca['unitId'],_0x4db4a2['nextMetadata']),_0x46cdf6;}let _0x4bbb54=(_0x39a17c==null?void 0x0:_0x39a17c[_0x1f7b0c(0x144)])??(0x0,e[_0x1f7b0c(0xfa)])(0x6),_0x52c5b1;try{_0x52c5b1=ee({'blockId':_0x4bbb54,'config':_0x39a17c==null?void 0x0:_0x39a17c[_0x1f7b0c(0x99)],'documentData':_0x5a37ca[_0x1f7b0c(0xb1)],'endOffset':_0x3395a7==null?void 0x0:_0x3395a7[_0x1f7b0c(0x123)],'insertionMode':_0x39a17c==null?void 0x0:_0x39a17c[_0x1f7b0c(0xd7)],'metadata':_0x1ddd70,'startOffset':_0x3395a7==null?void 0x0:_0x3395a7['startOffset']});}catch(_0xf2a207){if(_0xf2a207 instanceof _)return!0x1;throw _0xf2a207;}let _0x5d9790=J(_0x5a37ca[_0x1f7b0c(0x127)],_0x5a37ca[_0x1f7b0c(0x13d)],_0x5a37ca[_0x1f7b0c(0xcf)],_0x5a37ca[_0x1f7b0c(0xb1)],_0x52c5b1[_0x1f7b0c(0x120)],R['id'],_0x52c5b1[_0x1f7b0c(0xf3)]);return _0x5d9790&&_0x52c5b1['nextMetadata']&&_0x5a37ca['model']['deserialize'](_0x5a37ca[_0x1f7b0c(0xcf)],_0x52c5b1[_0x1f7b0c(0x157)]),_0x5d9790;}},z={'id':_0x1dea98(0xf0),'type':e[_0x1dea98(0x130)][_0x1dea98(0xf7)],'handler':(_0x5b32df,_0x12bbe8)=>{const _0xb95e54=_0x1dea98;if(!_0x12bbe8)return!0x1;let _0x55905f=U(_0x5b32df,_0x12bbe8['unitId']);if(!_0x55905f)return!0x1;let _0x902eb9=ie({'blockId':_0x12bbe8[_0xb95e54(0x144)],'config':_0x12bbe8[_0xb95e54(0x99)],'documentData':_0x55905f[_0xb95e54(0xb1)],'metadata':_0x55905f[_0xb95e54(0xa2)][_0xb95e54(0x150)](_0x55905f[_0xb95e54(0xcf)])});return _0x902eb9['nextMetadata']&&_0x55905f['model']['deserialize'](_0x55905f[_0xb95e54(0xcf)],_0x902eb9['nextMetadata']),!0x0;}},De={'id':_0x1dea98(0x141),'type':e[_0x1dea98(0x130)][_0x1dea98(0xf7)],'handler':(_0xde9a65,_0x2b28f2)=>B[_0x1dea98(0x124)](_0xde9a65,_0x2b28f2)},B={'id':_0x1dea98(0x12e),'type':e[_0x1dea98(0x130)]['COMMAND'],'handler':(_0xa51c95,_0x3780f3)=>{const _0x2b3709=_0x1dea98;if(!_0x3780f3)return!0x1;let _0x3ff200=U(_0xa51c95,_0x3780f3==null?void 0x0:_0x3780f3[_0x2b3709(0xcf)]);if(!_0x3ff200)return!0x1;let _0x4c078f=v({'blockId':_0x3780f3[_0x2b3709(0x144)],'documentData':_0x3ff200[_0x2b3709(0xb1)],'metadata':_0x3ff200[_0x2b3709(0xa2)]['serialize'](_0x3ff200[_0x2b3709(0xcf)])});if(!_0x4c078f)return!0x1;let _0x392053=J(_0x3ff200[_0x2b3709(0x127)],_0x3ff200[_0x2b3709(0x13d)],_0x3ff200['unitId'],_0x3ff200['previousDocumentData'],_0x4c078f[_0x2b3709(0x120)],B['id'],_0x4c078f[_0x2b3709(0xf3)]);return _0x392053&&_0x4c078f['nextMetadata']&&_0x3ff200['model'][_0x2b3709(0xda)](_0x3ff200['unitId'],_0x4c078f[_0x2b3709(0x157)]),_0x392053;}},V={'id':_0x1dea98(0x128),'type':e[_0x1dea98(0x130)][_0x1dea98(0xf7)],'handler':(_0xd4b36e,_0x22fa16)=>{const _0x285e9d=_0x1dea98;if(!_0x22fa16)return!0x1;let _0x45fca5=U(_0xd4b36e,_0x22fa16==null?void 0x0:_0x22fa16[_0x285e9d(0xcf)]);if(!_0x45fca5)return!0x1;let _0x4221ee=ae({'blockId':_0x22fa16[_0x285e9d(0x144)],'documentData':_0x45fca5[_0x285e9d(0xb1)],'metadata':_0x45fca5['model'][_0x285e9d(0x150)](_0x45fca5[_0x285e9d(0xcf)])});if(!_0x4221ee)return!0x1;let _0x227741=J(_0x45fca5['commandService'],_0x45fca5['selectionManager'],_0x45fca5[_0x285e9d(0xcf)],_0x45fca5['previousDocumentData'],_0x4221ee[_0x285e9d(0x120)],V['id'],_0x4221ee['cursorOffset']);return _0x227741&&_0x4221ee[_0x285e9d(0x157)]&&_0x45fca5[_0x285e9d(0xa2)][_0x285e9d(0xda)](_0x45fca5['unitId'],_0x4221ee[_0x285e9d(0x157)]),_0x227741;}},H={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x1dea98(0x130)][_0x1dea98(0xf7)],'handler':(_0x50c8e3,_0x16fc7e)=>{const _0x3f8f5a=_0x1dea98;var _0xbf7fb6;let _0x4b481f=U(_0x50c8e3,_0x16fc7e==null?void 0x0:_0x16fc7e[_0x3f8f5a(0xcf)]);if(!_0x4b481f)return!0x1;let _0x96d520=(_0x16fc7e==null?void 0x0:_0x16fc7e[_0x3f8f5a(0xf3)])??((_0xbf7fb6=W(_0x50c8e3))==null?void 0x0:_0xbf7fb6[_0x3f8f5a(0xa1)]);if(_0x96d520==null)return!0x1;let _0x20534f=y({'cursorOffset':_0x96d520,'documentData':_0x4b481f[_0x3f8f5a(0xb1)],'paragraphStartIndex':_0x16fc7e==null?void 0x0:_0x16fc7e[_0x3f8f5a(0x8b)]});return _0x20534f?J(_0x4b481f[_0x3f8f5a(0x127)],_0x4b481f[_0x3f8f5a(0x13d)],_0x4b481f[_0x3f8f5a(0xcf)],_0x4b481f['previousDocumentData'],_0x20534f[_0x3f8f5a(0x120)],H['id'],_0x20534f['cursorOffset']):!0x1;}};function U(_0x37501c,_0x926a6a){const _0x1054ee=_0x1dea98;let _0x5e9e62=_0x37501c['get'](e[_0x1054ee(0xaf)]),_0x4321de=_0x926a6a?_0x5e9e62[_0x1054ee(0xac)](_0x926a6a,e[_0x1054ee(0x154)]['UNIVER_DOC']):_0x5e9e62[_0x1054ee(0x88)](e[_0x1054ee(0x154)][_0x1054ee(0x125)]);return _0x4321de?{'commandService':_0x37501c['get'](e['ICommandService']),'model':_0x37501c[_0x1054ee(0xe6)](p),'previousDocumentData':_0x4321de['getSnapshot'](),'selectionManager':_0x37501c['get'](n['DocSelectionManagerService']),'unitId':_0x4321de[_0x1054ee(0x147)]()}:null;}function W(_0x2bb9c4){const _0x41073c=_0x1dea98;var _0x381387;return(_0x381387=_0x2bb9c4[_0x41073c(0xe6)](n[_0x41073c(0x85)])[_0x41073c(0x146)]())==null?void 0x0:_0x381387[0x0];}function Oe(_0x45397d,_0x3dff5d){const _0x1e2494=_0x1dea98;let _0x1b7221=(_0x45397d==null?void 0x0:_0x45397d[_0x1e2494(0xa1)])??(_0x3dff5d==null?void 0x0:_0x3dff5d[_0x1e2494(0xa1)]),_0x582d4a=(_0x45397d==null?void 0x0:_0x45397d[_0x1e2494(0x123)])??(_0x3dff5d==null?void 0x0:_0x3dff5d[_0x1e2494(0x123)]);if(_0x1b7221!=null&&_0x582d4a!=null)return{'endOffset':Math[_0x1e2494(0x90)](_0x1b7221,_0x582d4a),'startOffset':Math[_0x1e2494(0x9e)](_0x1b7221,_0x582d4a)};}function ke(_0x1285f1,_0x37d9ad){const _0x26810c=_0x1dea98;var _0x9eab4b;if(!_0x37d9ad)return;let _0x1af306=Ae(_0x37d9ad);return(_0x9eab4b=_0x1285f1['body'])==null||(_0x9eab4b=_0x9eab4b[_0x26810c(0xb4)])==null?void 0x0:_0x9eab4b[_0x26810c(0xa9)](_0x508884=>{const _0x454d6e=_0x26810c;let _0x55ae0c=(0x0,e[_0x454d6e(0xc1)])(_0x508884);return _0x37d9ad[_0x454d6e(0xa1)]===_0x37d9ad[_0x454d6e(0x123)]?(0x0,e[_0x454d6e(0xf5)])(_0x55ae0c,_0x1af306):(0x0,e['containsStreamIndex'])(_0x55ae0c,_0x1af306);});}function Ae(_0x174e19){const _0x39ffa1=_0x1dea98;return _0x174e19[_0x39ffa1(0xa1)]===_0x174e19[_0x39ffa1(0x123)]?_0x174e19['startOffset']:_0x174e19[_0x39ffa1(0xa1)]+0x1;}function je(_0x347284){const _0x30f406=_0x1dea98;let _0x19e3bd=W(_0x347284);if(!_0x19e3bd)return null;let _0x4eccd3=_0x347284[_0x30f406(0xe6)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e[_0x30f406(0x154)][_0x30f406(0x125)]),_0x48370e=_0x4eccd3==null?void 0x0:_0x4eccd3['getBody']();return _0x48370e?e['BuildTextUtils'][_0x30f406(0xd9)][_0x30f406(0xd1)](_0x19e3bd,_0x48370e[_0x30f406(0xcc)]??[],_0x48370e[_0x30f406(0xa0)]??'')[0x0]??null:null;}function Me(_0x5837cc,_0x3760ea){const _0x30cf02=_0x1dea98;let _0x176692=_0x5837cc[_0x30cf02(0x153)],_0xe7d62f=_0x3760ea[_0x30cf02(0x153)],_0x20b86a=(0x0,e[_0x30cf02(0xb6)])(_0x176692,_0xe7d62f);return[_0x20b86a&&_0xe7d62f?Ne(_0xe7d62f,_0x20b86a):null,_0x20b86a?null:Pe(_0x176692,_0xe7d62f)][_0x30cf02(0x14e)](Boolean)['reduce']((_0x3d4d50,_0x30f4e5)=>e[_0x30cf02(0xc8)][_0x30cf02(0xdd)](_0x3d4d50,_0x30f4e5),null);}function Ne(_0x1d2821,_0x2663fd){const _0x446385=_0x1dea98;let _0x141ac3=new e[(_0x446385(0xca))]();return _0x141ac3['retain'](_0x2663fd[_0x446385(0x8e)]),_0x2663fd[_0x446385(0xd0)]>0x0&&_0x141ac3['insert'](_0x2663fd[_0x446385(0xd0)],(0x0,e[_0x446385(0xfb)])(_0x1d2821,_0x2663fd[_0x446385(0x8e)],_0x2663fd[_0x446385(0x8e)]+_0x2663fd[_0x446385(0xd0)],!0x1)),_0x2663fd[_0x446385(0xc2)]>0x0&&_0x141ac3['delete'](_0x2663fd[_0x446385(0xc2)]),e[_0x446385(0xc8)][_0x446385(0x119)]()[_0x446385(0xfe)](_0x141ac3['serialize'](),['body']);}function Pe(_0x1a1f8,_0x13febb){const _0x6555=_0x1dea98;let _0x687b14=[],_0x531788=_0x1a1f8?G(_0x1a1f8):void 0x0,_0x47f502=_0x13febb?G(_0x13febb):void 0x0;for(let _0x323ac2 of Fe)K(e[_0x6555(0xc8)][_0x6555(0x119)](),[_0x6555(0x153),_0x323ac2],_0x531788==null?void 0x0:_0x531788[_0x323ac2],_0x47f502==null?void 0x0:_0x47f502[_0x323ac2],_0x687b14);return _0x687b14[_0x6555(0xde)]((_0x36673f,_0x315e74)=>e[_0x6555(0xc8)][_0x6555(0xdd)](_0x36673f,_0x315e74),null);}const Fe=['paragraphs',_0x1dea98(0x11c),_0x1dea98(0x14d),_0x1dea98(0x14c),_0x1dea98(0xb4),_0x1dea98(0x10a),_0x1dea98(0x116),'customDecorations',_0x1dea98(0xcb)];function G(_0x3e8916){return _0x3e8916;}function K(_0x210fa4,_0x147d64,_0x408828,_0x38157b,_0x2dfcd3){const _0xb7f06f=_0x1dea98;q(_0x408828,_0x38157b)||(_0x408828==null?_0x2dfcd3['push'](_0x210fa4[_0xb7f06f(0xa3)](_0x147d64,_0x38157b)):_0x38157b==null?_0x2dfcd3[_0xb7f06f(0x108)](_0x210fa4[_0xb7f06f(0x11a)](_0x147d64,_0x408828)):Array[_0xb7f06f(0xb0)](_0x408828)&&Array[_0xb7f06f(0xb0)](_0x38157b)?Ie(_0x210fa4,_0x147d64,_0x408828,_0x38157b,_0x2dfcd3):Le(_0x408828)&&Le(_0x38157b)?new Set([...Object[_0xb7f06f(0xec)](_0x408828),...Object[_0xb7f06f(0xec)](_0x38157b)])['forEach'](_0x4b4774=>{K(_0x210fa4,[..._0x147d64,_0x4b4774],_0x408828[_0x4b4774],_0x38157b[_0x4b4774],_0x2dfcd3);}):_0x2dfcd3[_0xb7f06f(0x108)](_0x210fa4[_0xb7f06f(0x9d)](_0x147d64,_0x408828,_0x38157b)));}function Ie(_0x5f080a,_0x55c52d,_0x228655,_0x3fa302,_0x1b3a5d){const _0x2bceff=_0x1dea98;if(_0x228655[_0x2bceff(0x145)]===_0x3fa302['length']){_0x228655['forEach']((_0x27292c,_0x4325d5)=>K(_0x5f080a,[..._0x55c52d,_0x4325d5],_0x27292c,_0x3fa302[_0x4325d5],_0x1b3a5d));return;}let _0x3caef2=0x0;for(;_0x3caef2<_0x228655['length']&&_0x3caef2<_0x3fa302[_0x2bceff(0x145)]&&q(_0x228655[_0x3caef2],_0x3fa302[_0x3caef2]);)_0x3caef2++;let _0x172fad=_0x228655[_0x2bceff(0x145)]-0x1,_0x5f1f41=_0x3fa302[_0x2bceff(0x145)]-0x1;for(;_0x172fad>=_0x3caef2&&_0x5f1f41>=_0x3caef2&&q(_0x228655[_0x172fad],_0x3fa302[_0x5f1f41]);)_0x172fad--,_0x5f1f41--;for(let _0x2b8282=_0x172fad;_0x2b8282>=_0x3caef2;_0x2b8282--)_0x1b3a5d[_0x2bceff(0x108)](_0x5f080a[_0x2bceff(0x11a)]([..._0x55c52d,_0x2b8282],_0x228655[_0x2b8282]));for(let _0x4b3322=_0x3caef2;_0x4b3322<=_0x5f1f41;_0x4b3322++)_0x1b3a5d['push'](_0x5f080a[_0x2bceff(0xa3)]([..._0x55c52d,_0x4b3322],_0x3fa302[_0x4b3322]));}function Le(_0x5c5354){const _0x41bbbb=_0x1dea98;return typeof _0x5c5354==_0x41bbbb(0xe1)&&!!_0x5c5354&&!Array[_0x41bbbb(0xb0)](_0x5c5354);}function q(_0x4dbb21,_0x573c59){const _0x4e6ee2=_0x1dea98;return JSON[_0x4e6ee2(0x11e)](_0x4dbb21)===JSON[_0x4e6ee2(0x11e)](_0x573c59);}function J(_0x3cb6a8,_0xaa63d5,_0x578de4,_0x2ca491,_0x34cce8,_0x2eb7bd,_0x3a6582){const _0x4516ad=_0x1dea98;let _0x1129e6=Me(_0x2ca491,_0x34cce8);return _0x1129e6?!!_0x3cb6a8[_0x4516ad(0x132)](n[_0x4516ad(0xfc)]['id'],{'unitId':_0x578de4,'actions':_0x1129e6,'textRanges':[{'startOffset':_0x3a6582,'endOffset':_0x3a6582,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2eb7bd}):(_0xaa63d5['replaceDocRanges']([{'startOffset':_0x3a6582,'endOffset':_0x3a6582}],{'unitId':_0x578de4,'subUnitId':_0x578de4},!0x1),!0x0);}const Y=_0x1dea98(0xc5);var Re=_0x1dea98(0x10f),ze=_0x1dea98(0x129);const Be={};function X(_0x5610cb,_0x1e4e8d){return function(_0x54d243,_0x85cdbe){_0x1e4e8d(_0x54d243,_0x85cdbe,_0x5610cb);};}function Z(_0x238e34,_0x28710a,_0x4e422f,_0xc30ca0){const _0x389fd2=_0x1dea98;var _0x4ad55a=arguments[_0x389fd2(0x145)],_0x227207=_0x4ad55a<0x3?_0x28710a:_0xc30ca0===null?_0xc30ca0=Object[_0x389fd2(0xab)](_0x28710a,_0x4e422f):_0xc30ca0,_0x1d6901;if(typeof Reflect==_0x389fd2(0xe1)&&typeof Reflect[_0x389fd2(0xc6)]==_0x389fd2(0x12f))_0x227207=Reflect[_0x389fd2(0xc6)](_0x238e34,_0x28710a,_0x4e422f,_0xc30ca0);else{for(var _0x18fbc4=_0x238e34[_0x389fd2(0x145)]-0x1;_0x18fbc4>=0x0;_0x18fbc4--)(_0x1d6901=_0x238e34[_0x18fbc4])&&(_0x227207=(_0x4ad55a<0x3?_0x1d6901(_0x227207):_0x4ad55a>0x3?_0x1d6901(_0x28710a,_0x4e422f,_0x227207):_0x1d6901(_0x28710a,_0x4e422f))||_0x227207);}return _0x4ad55a>0x3&&_0x227207&&Object[_0x389fd2(0xe7)](_0x28710a,_0x4e422f,_0x227207),_0x227207;}let Q=class extends e[_0x1dea98(0x134)]{constructor(_0xd750e1,_0x6461a1){const _0x46ee64=_0x1dea98;super(),this[_0x46ee64(0x140)]=_0xd750e1,this[_0x46ee64(0xc4)]=_0x6461a1,this[_0x46ee64(0x117)]();}[_0x1dea98(0x117)](){const _0x57e681=_0x1dea98;this[_0x57e681(0xcd)](this[_0x57e681(0x140)]['registerPluginResource']({'pluginName':Y,'businesses':[e['UniverInstanceType'][_0x57e681(0x125)]],'toJson':_0x3c82f9=>JSON[_0x57e681(0x11e)](this[_0x57e681(0xc4)][_0x57e681(0x150)](_0x3c82f9)),'parseJson':_0x246784=>o(JSON['parse'](_0x246784)),'onLoad':(_0x81bd73,_0x31d58b)=>this[_0x57e681(0xc4)][_0x57e681(0xda)](_0x81bd73,_0x31d58b),'onUnLoad':_0x29c814=>this['_docsCodeModel']['removeUnit'](_0x29c814)}));}};Q=Z([X(0x0,e[_0x1dea98(0x156)]),X(0x1,(0x0,e[_0x1dea98(0x103)])(p))],Q);let $=class extends e['Plugin']{constructor(_0x5ef4da=Be,_0x416823,_0x5b24c1,_0x41861b){const _0x406982=_0x1dea98;super(),this['_config']=_0x5ef4da,this[_0x406982(0x111)]=_0x416823,this['_commandService']=_0x5b24c1,this[_0x406982(0xe9)]=_0x41861b;let {..._0x4dede5}=(0x0,e[_0x406982(0x122)])({},Be,this[_0x406982(0xbf)]);this[_0x406982(0xe9)]['setConfig'](_0x406982(0x143),_0x4dede5);}['onStarting'](){const _0x2c8cad=_0x1dea98;this[_0x2c8cad(0x111)][_0x2c8cad(0x83)]([p]),this[_0x2c8cad(0x111)][_0x2c8cad(0x83)]([Q]),this['_injector'][_0x2c8cad(0xe6)](p),this[_0x2c8cad(0x111)][_0x2c8cad(0xe6)](Q),[R,I,z,B,V,De,H,L,m,h]['forEach'](_0xab2f47=>this[_0x2c8cad(0xcd)](this['_commandService']['registerCommand'](_0xab2f47)));}};f($,_0x1dea98(0x152),Y),f($,_0x1dea98(0xff),Re),f($,_0x1dea98(0xb3),ze),f($,_0x1dea98(0xb2),e[_0x1dea98(0x154)][_0x1dea98(0x125)]),$=Z([(0x0,e[_0x1dea98(0xd4)])(r[_0x1dea98(0x11b)],n[_0x1dea98(0x10b)]),X(0x1,(0x0,e[_0x1dea98(0x103)])(e['Injector'])),X(0x2,e[_0x1dea98(0x97)]),X(0x3,e['IConfigService'])],$),exports[_0x1dea98(0xba)]=Y,exports[_0x1dea98(0xea)]=H,exports['DocsCodeConsumeBoundaryDeleteCommand']=L,exports[_0x1dea98(0xf2)]=I,exports['DocsCodeInsertCommand']=R,exports[_0x1dea98(0x9b)]=p,exports[_0x1dea98(0x10c)]=V,exports[_0x1dea98(0x93)]=B,exports[_0x1dea98(0xd6)]=z,exports[_0x1dea98(0x14f)]=h,exports[_0x1dea98(0x11f)]=m,Object[_0x1dea98(0xe7)](exports,_0x1dea98(0xdf),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1dea98(0xbd)]=y,exports[_0x1dea98(0xa4)]=se,exports['normalizeDocsCodeConfig']=a,exports[_0x1dea98(0x84)]=o;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x15446c=_0x3d13;(function(_0x5cd14e,_0x371cc9){var _0x17d229=_0x3d13,_0x589644=_0x5cd14e();while(!![]){try{var _0x4b0a20=parseInt(_0x17d229(0x1ba))/0x1*(-parseInt(_0x17d229(0x1a5))/0x2)+parseInt(_0x17d229(0x1d3))/0x3*(parseInt(_0x17d229(0x19f))/0x4)+-parseInt(_0x17d229(0x1be))/0x5+-parseInt(_0x17d229(0x1a7))/0x6*(parseInt(_0x17d229(0x1d2))/0x7)+-parseInt(_0x17d229(0x1a9))/0x8+parseInt(_0x17d229(0x1d9))/0x9+parseInt(_0x17d229(0x1b3))/0xa*(parseInt(_0x17d229(0x1cc))/0xb);if(_0x4b0a20===_0x371cc9)break;else _0x589644['push'](_0x589644['shift']());}catch(_0x20e9fb){_0x589644['push'](_0x589644['shift']());}}}(_0x26bb,0x1c659));import{DocsCodeInsertCommand as _0x35c08b,DocsCodeModel as _0x46c96c,DocsCodeRemoveCommand as _0x29b805,DocsCodeUnwrapCommand as _0x29572c,DocsCodeUpdateCommand as _0x10ba3f,normalizeDocsCodeConfig as _0x301f3a}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x415f91,DocumentBlockRangeType as _0x956497,ICommandService as _0x29fab8,Inject as _0x3bf9f4,Injector as _0x516525,generateRandomId as _0x1ec0c6}from'@univerjs/core';function _0x3d13(_0x4036df,_0x41ed8d){_0x4036df=_0x4036df-0x198;var _0x26bbef=_0x26bb();var _0x3d13c4=_0x26bbef[_0x4036df];return _0x3d13c4;}import{FDocument as _0x193b6d,isParagraphFacade as _0x1b4abd}from'@univerjs/docs/facade';function m(_0x5eb12e){'@babel/helpers - typeof';var _0x1febfa=_0x3d13;return m=typeof Symbol=='function'&&typeof Symbol[_0x1febfa(0x1af)]==_0x1febfa(0x1bf)?function(_0x41552e){return typeof _0x41552e;}:function(_0x5cddb5){var _0x5bce6c=_0x1febfa;return _0x5cddb5&&typeof Symbol==_0x5bce6c(0x1d6)&&_0x5cddb5[_0x5bce6c(0x1c4)]===Symbol&&_0x5cddb5!==Symbol[_0x5bce6c(0x1b5)]?_0x5bce6c(0x1bf):typeof _0x5cddb5;},m(_0x5eb12e);}function h(_0x114aed,_0x5ae558){var _0x1c06f9=_0x3d13;if(m(_0x114aed)!=_0x1c06f9(0x19c)||!_0x114aed)return _0x114aed;var _0x3167aa=_0x114aed[Symbol[_0x1c06f9(0x1ca)]];if(_0x3167aa!==void 0x0){var _0x4e68e6=_0x3167aa[_0x1c06f9(0x19e)](_0x114aed,_0x5ae558||_0x1c06f9(0x1d7));if(m(_0x4e68e6)!=_0x1c06f9(0x19c))return _0x4e68e6;throw TypeError(_0x1c06f9(0x1d8));}return(_0x5ae558===_0x1c06f9(0x1d5)?String:Number)(_0x114aed);}function g(_0x2818d1){var _0x3ad5aa=_0x3d13,_0x288fe7=h(_0x2818d1,_0x3ad5aa(0x1d5));return m(_0x288fe7)==_0x3ad5aa(0x1bf)?_0x288fe7:_0x288fe7+'';}function _(_0x444bf8,_0x1b7f24,_0x27ef07){var _0x55f117=_0x3d13;return(_0x1b7f24=g(_0x1b7f24))in _0x444bf8?Object[_0x55f117(0x1b2)](_0x444bf8,_0x1b7f24,{'value':_0x27ef07,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x444bf8[_0x1b7f24]=_0x27ef07,_0x444bf8;}function v(_0x17d448,_0x28a3e8){return function(_0x45de54,_0x1731ec){_0x28a3e8(_0x45de54,_0x1731ec,_0x17d448);};}function y(_0x38dedd,_0x4ab3b1,_0x39a00b,_0x4f427c){var _0x76dcb0=_0x3d13,_0x12150f=arguments[_0x76dcb0(0x1bb)],_0xf550=_0x12150f<0x3?_0x4ab3b1:_0x4f427c===null?_0x4f427c=Object['getOwnPropertyDescriptor'](_0x4ab3b1,_0x39a00b):_0x4f427c,_0x3f7cc2;if(typeof Reflect==_0x76dcb0(0x19c)&&typeof Reflect[_0x76dcb0(0x1c2)]==_0x76dcb0(0x1d6))_0xf550=Reflect['decorate'](_0x38dedd,_0x4ab3b1,_0x39a00b,_0x4f427c);else{for(var _0x3dc68a=_0x38dedd['length']-0x1;_0x3dc68a>=0x0;_0x3dc68a--)(_0x3f7cc2=_0x38dedd[_0x3dc68a])&&(_0xf550=(_0x12150f<0x3?_0x3f7cc2(_0xf550):_0x12150f>0x3?_0x3f7cc2(_0x4ab3b1,_0x39a00b,_0xf550):_0x3f7cc2(_0x4ab3b1,_0x39a00b))||_0xf550);}return _0x12150f>0x3&&_0xf550&&Object['defineProperty'](_0x4ab3b1,_0x39a00b,_0xf550),_0xf550;}function _0x26bb(){var _0x190213=['describe','115507gakYHJ','8937UNeeXo','PARAGRAPH','string','function','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1846719PGvJnR','getCode','syncExecuteCommand','includes','unwrap','object','findCodes','call','268OLStxj','findCodeByText','getRange','_unitId','map','dataStream','4QVAkNG','_createFDocumentCode','6WxVKuJ','getId','1209808sWFEUw','blockType','updateConfig','replace','find','_getBlockRange','iterator','text','_blockId','defineProperty','612310ioCJRA','startIndex','prototype','join','BLOCK_START','getCodes','some','109284vJhFcs','length','getText','getConfig','1041655FMSbIn','symbol','blockId','BLOCK_END','decorate','endIndex','constructor','CODE','_getBlockRanges','blockRanges','filter','_injector','toPrimitive','get','55ZQoUQy','_document','_getDocumentData','body','getCodeConfig'];_0x26bb=function(){return _0x190213;};return _0x26bb();}let b=class{constructor(_0x46ad6d,_0x468803,_0x2661eb){var _0x21e4d6=_0x3d13;this[_0x21e4d6(0x1cd)]=_0x46ad6d,this[_0x21e4d6(0x1b1)]=_0x468803,this[_0x21e4d6(0x1c9)]=_0x2661eb,_(this,'_unitId',void 0x0),this[_0x21e4d6(0x1a2)]=this[_0x21e4d6(0x1cd)][_0x21e4d6(0x1a8)]();}[_0x15446c(0x1a8)](){var _0x2359e2=_0x15446c;return this[_0x2359e2(0x1b1)];}[_0x15446c(0x1a1)](){var _0x15347e=_0x15446c;let _0x111b16=this[_0x15347e(0x1ae)]();return _0x111b16?{'blockId':_0x111b16[_0x15347e(0x1c0)],'endIndex':_0x111b16[_0x15347e(0x1c3)],'startIndex':_0x111b16[_0x15347e(0x1b4)]}:null;}['getText'](){var _0x29d429=_0x15446c,_0x1a7552;let _0x3f879b=this[_0x29d429(0x1ae)](),_0x3145f1=(_0x1a7552=this['_getDocumentData']()[_0x29d429(0x1cf)])==null?void 0x0:_0x1a7552[_0x29d429(0x1a4)];return!_0x3f879b||!_0x3145f1?'':x(_0x3145f1['slice'](_0x3f879b[_0x29d429(0x1b4)]+0x1,_0x3f879b[_0x29d429(0x1c3)]));}[_0x15446c(0x1d1)](){var _0x52e736=_0x15446c;let _0x31f8bd=this['getRange']();return _0x31f8bd?{..._0x31f8bd,'config':this[_0x52e736(0x1bd)](),'text':this[_0x52e736(0x1bc)](),'type':_0x956497['CODE']}:null;}['getConfig'](){var _0x1bfacf=_0x15446c;let _0x1722ad=this['_injector'][_0x1bfacf(0x1cb)](_0x46c96c);return _0x301f3a(_0x1722ad[_0x1bfacf(0x1d0)](this[_0x1bfacf(0x1a2)],this[_0x1bfacf(0x1b1)]));}[_0x15446c(0x1ab)](_0x4d5f95){var _0x1a032a=_0x15446c;return this['_injector'][_0x1a032a(0x1cb)](_0x29fab8)[_0x1a032a(0x199)](_0x10ba3f['id'],{'blockId':this[_0x1a032a(0x1b1)],'config':_0x4d5f95['config'],'unitId':this[_0x1a032a(0x1a2)]});}[_0x15446c(0x19b)](){var _0xa5de65=_0x15446c;return this[_0xa5de65(0x1c9)][_0xa5de65(0x1cb)](_0x29fab8)[_0xa5de65(0x199)](_0x29572c['id'],{'blockId':this['_blockId'],'unitId':this[_0xa5de65(0x1a2)]});}['remove'](){var _0x10588f=_0x15446c;return this['_injector']['get'](_0x29fab8)[_0x10588f(0x199)](_0x29b805['id'],{'blockId':this[_0x10588f(0x1b1)],'unitId':this['_unitId']});}['_getBlockRange'](){var _0x41b825=_0x15446c,_0x2a3824;return((_0x2a3824=this[_0x41b825(0x1ce)]()[_0x41b825(0x1cf)])==null||(_0x2a3824=_0x2a3824[_0x41b825(0x1c7)])==null?void 0x0:_0x2a3824[_0x41b825(0x1ad)](_0x5f3702=>_0x5f3702['blockId']===this[_0x41b825(0x1b1)]&&_0x5f3702[_0x41b825(0x1aa)]===_0x956497[_0x41b825(0x1c5)]))??null;}[_0x15446c(0x1ce)](){var _0x39d469=_0x15446c;return this[_0x39d469(0x1cd)]['save']();}};b=y([v(0x2,_0x3bf9f4(_0x516525))],b);function x(_0xd8d3c3){var _0x55948f=_0x15446c;return Array['from'](_0xd8d3c3)['map'](_0x4b767e=>_0x4b767e===_0x415f91[_0x55948f(0x1d4)]?'\x0a':_0x4b767e)[_0x55948f(0x1c8)](_0x3b4069=>_0x3b4069!==_0x415f91[_0x55948f(0x1b7)]&&_0x3b4069!==_0x415f91[_0x55948f(0x1c1)]&&_0x3b4069!==_0x415f91['SECTION_BREAK'])[_0x55948f(0x1b6)]('')[_0x55948f(0x1ac)](/\n$/,'');}var S=class extends _0x193b6d{[_0x15446c(0x1b8)](){var _0x173eaf=_0x15446c;return this[_0x173eaf(0x1c6)]()[_0x173eaf(0x1c8)](_0x29f6cf=>_0x29f6cf['blockType']===_0x956497[_0x173eaf(0x1c5)])[_0x173eaf(0x1a3)](_0x111fea=>this[_0x173eaf(0x1a6)](_0x111fea['blockId']));}['getCode'](_0x431512){var _0x562df3=_0x15446c;return this[_0x562df3(0x1c6)]()[_0x562df3(0x1b9)](_0xf10cf1=>_0xf10cf1[_0x562df3(0x1c0)]===_0x431512&&_0xf10cf1[_0x562df3(0x1aa)]===_0x956497['CODE'])?this[_0x562df3(0x1a6)](_0x431512):null;}['getCodeAt'](_0x4efedd){var _0x2da1ea=_0x15446c;let _0x34b71b=this[_0x2da1ea(0x1c6)]()[_0x2da1ea(0x1ad)](_0x4f8da0=>_0x4f8da0[_0x2da1ea(0x1aa)]===_0x956497['CODE']&&_0x4f8da0[_0x2da1ea(0x1b4)]<=_0x4efedd&&_0x4efedd<=_0x4f8da0[_0x2da1ea(0x1c3)]);return _0x34b71b?this[_0x2da1ea(0x1a6)](_0x34b71b[_0x2da1ea(0x1c0)]):null;}[_0x15446c(0x1a0)](_0x41778f){return this['findCodes'](_0x41778f)[0x0]??null;}[_0x15446c(0x19d)](_0xa149c7){var _0x445967=_0x15446c;let _0x549ada=typeof _0xa149c7==_0x445967(0x1d5)?{'text':_0xa149c7}:_0xa149c7;return this[_0x445967(0x1b8)]()[_0x445967(0x1c8)](_0x7d5618=>!(_0x549ada['blockId']&&_0x7d5618['getId']()!==_0x549ada[_0x445967(0x1c0)]||_0x549ada[_0x445967(0x1b0)]&&!_0x7d5618[_0x445967(0x1bc)]()[_0x445967(0x19a)](_0x549ada[_0x445967(0x1b0)])));}['insertCode'](_0x25a0a7={},_0x12bf5e={}){var _0x5cc534=_0x15446c;let _0x4a5849=this[_0x5cc534(0x1c9)][_0x5cc534(0x1cb)](_0x29fab8),_0x80fe3e=_0x1b4abd(_0x25a0a7)?{..._0x12bf5e,..._0x25a0a7[_0x5cc534(0x1a1)]()}:_0x25a0a7,_0xb915e1=_0x80fe3e[_0x5cc534(0x1c0)]??_0x1ec0c6(0x6);return _0x4a5849[_0x5cc534(0x199)](_0x35c08b['id'],{..._0x80fe3e,'blockId':_0xb915e1,'unitId':this[_0x5cc534(0x1a8)]()})?this[_0x5cc534(0x198)](_0xb915e1):null;}[_0x15446c(0x1c6)](){var _0x486b62=_0x15446c,_0x39b919;return((_0x39b919=this['save']()[_0x486b62(0x1cf)])==null?void 0x0:_0x39b919[_0x486b62(0x1c7)])??[];}[_0x15446c(0x1a6)](_0xae86bb){return this['_injector']['createInstance'](b,this,_0xae86bb);}};_0x193b6d['extend'](S);export{b as FDocumentCode};
1
+ var _0x523619=_0x3e77;function _0x273d(){var _0x523f53=['15656mvVdiS','find','replace','defineProperty','function','filter','_unitId','CODE','3LhfaaV','_injector','body','endIndex','getText','remove','slice','8488578etzGfD','_blockId','_document','SECTION_BREAK','extend','blockId','config','includes','findCodeByText','2621020gSPome','getCodeAt','getCodeConfig','getId','constructor','10PxHSAd','map','_getBlockRange','from','prototype','7KLoOsw','getRange','iterator','BLOCK_START','default','insertCode','_getDocumentData','8699273NUgBsH','888288fBJPci','unwrap','call','5097752SEzUWm','decorate','BLOCK_END','startIndex','get','describe','_getBlockRanges','toPrimitive','_createFDocumentCode','622666mMSqVf','4239YXFynn','some','save','getConfig','text','object','updateConfig','getCodes','blockRanges','createInstance','blockType','string','getCode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','syncExecuteCommand'];_0x273d=function(){return _0x523f53;};return _0x273d();}(function(_0x335eb2,_0x65d4a4){var _0x9e8b56=_0x3e77,_0x562101=_0x335eb2();while(!![]){try{var _0x201c67=parseInt(_0x9e8b56(0x178))/0x1+parseInt(_0x9e8b56(0x184))/0x2+parseInt(_0x9e8b56(0x156))/0x3*(-parseInt(_0x9e8b56(0x17b))/0x4)+parseInt(_0x9e8b56(0x166))/0x5+parseInt(_0x9e8b56(0x15d))/0x6*(-parseInt(_0x9e8b56(0x170))/0x7)+-parseInt(_0x9e8b56(0x14e))/0x8*(-parseInt(_0x9e8b56(0x185))/0x9)+-parseInt(_0x9e8b56(0x16b))/0xa*(-parseInt(_0x9e8b56(0x177))/0xb);if(_0x201c67===_0x65d4a4)break;else _0x562101['push'](_0x562101['shift']());}catch(_0x42a83b){_0x562101['push'](_0x562101['shift']());}}}(_0x273d,0xb66ce));import{DocsCodeInsertCommand as _0x1084c1,DocsCodeModel as _0x1795d6,DocsCodeRemoveCommand as _0x388fa1,DocsCodeUnwrapCommand as _0x5d55d7,DocsCodeUpdateCommand as _0x37caab,normalizeDocsCodeConfig as _0x5d2e3b}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0xe08ab3,DocumentBlockRangeType as _0x1a5759,ICommandService as _0x55e8a6,Inject as _0x352200,Injector as _0x491548,generateRandomId as _0x535c1d}from'@univerjs/core';import{FDocument as _0x5dacc6,isParagraphFacade as _0x3dd811}from'@univerjs/docs/facade';function m(_0x4111a0){'@babel/helpers - typeof';var _0x563b17=_0x3e77;return m=typeof Symbol=='function'&&typeof Symbol[_0x563b17(0x172)]==_0x563b17(0x14c)?function(_0x28e975){return typeof _0x28e975;}:function(_0x42fb57){var _0x561bc2=_0x563b17;return _0x42fb57&&typeof Symbol==_0x561bc2(0x152)&&_0x42fb57[_0x561bc2(0x16a)]===Symbol&&_0x42fb57!==Symbol[_0x561bc2(0x16f)]?'symbol':typeof _0x42fb57;},m(_0x4111a0);}function h(_0x3c2f8c,_0x1b68db){var _0x53a937=_0x3e77;if(m(_0x3c2f8c)!=_0x53a937(0x143)||!_0x3c2f8c)return _0x3c2f8c;var _0x2be133=_0x3c2f8c[Symbol[_0x53a937(0x182)]];if(_0x2be133!==void 0x0){var _0x137533=_0x2be133[_0x53a937(0x17a)](_0x3c2f8c,_0x1b68db||_0x53a937(0x174));if(m(_0x137533)!=_0x53a937(0x143))return _0x137533;throw TypeError(_0x53a937(0x14b));}return(_0x1b68db===_0x53a937(0x149)?String:Number)(_0x3c2f8c);}function g(_0x1be631){var _0x5ad09f=h(_0x1be631,'string');return m(_0x5ad09f)=='symbol'?_0x5ad09f:_0x5ad09f+'';}function _(_0x589346,_0x9f4f2f,_0x17b56b){var _0x56be00=_0x3e77;return(_0x9f4f2f=g(_0x9f4f2f))in _0x589346?Object[_0x56be00(0x151)](_0x589346,_0x9f4f2f,{'value':_0x17b56b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x589346[_0x9f4f2f]=_0x17b56b,_0x589346;}function v(_0x8347f5,_0x32761b){return function(_0x2b6eba,_0x140e4b){_0x32761b(_0x2b6eba,_0x140e4b,_0x8347f5);};}function y(_0x917fa5,_0x3e0a75,_0x5db6d9,_0x200c18){var _0x452aa2=_0x3e77,_0x469f3f=arguments['length'],_0x4c9071=_0x469f3f<0x3?_0x3e0a75:_0x200c18===null?_0x200c18=Object['getOwnPropertyDescriptor'](_0x3e0a75,_0x5db6d9):_0x200c18,_0xdefea2;if(typeof Reflect=='object'&&typeof Reflect[_0x452aa2(0x17c)]=='function')_0x4c9071=Reflect[_0x452aa2(0x17c)](_0x917fa5,_0x3e0a75,_0x5db6d9,_0x200c18);else{for(var _0x23dc93=_0x917fa5['length']-0x1;_0x23dc93>=0x0;_0x23dc93--)(_0xdefea2=_0x917fa5[_0x23dc93])&&(_0x4c9071=(_0x469f3f<0x3?_0xdefea2(_0x4c9071):_0x469f3f>0x3?_0xdefea2(_0x3e0a75,_0x5db6d9,_0x4c9071):_0xdefea2(_0x3e0a75,_0x5db6d9))||_0x4c9071);}return _0x469f3f>0x3&&_0x4c9071&&Object[_0x452aa2(0x151)](_0x3e0a75,_0x5db6d9,_0x4c9071),_0x4c9071;}let b=class{constructor(_0x249e1f,_0x80a068,_0x2150fe){var _0x97f0c8=_0x3e77;this['_document']=_0x249e1f,this[_0x97f0c8(0x15e)]=_0x80a068,this[_0x97f0c8(0x157)]=_0x2150fe,_(this,'_unitId',void 0x0),this[_0x97f0c8(0x154)]=this[_0x97f0c8(0x15f)][_0x97f0c8(0x169)]();}['getId'](){var _0x57ef20=_0x3e77;return this[_0x57ef20(0x15e)];}['getRange'](){var _0x349ee2=_0x3e77;let _0x3b5498=this['_getBlockRange']();return _0x3b5498?{'blockId':_0x3b5498['blockId'],'endIndex':_0x3b5498[_0x349ee2(0x159)],'startIndex':_0x3b5498['startIndex']}:null;}['getText'](){var _0xe8ffa5=_0x3e77,_0x39733d;let _0x1dc5a4=this['_getBlockRange'](),_0x305235=(_0x39733d=this['_getDocumentData']()[_0xe8ffa5(0x158)])==null?void 0x0:_0x39733d['dataStream'];return!_0x1dc5a4||!_0x305235?'':x(_0x305235[_0xe8ffa5(0x15c)](_0x1dc5a4[_0xe8ffa5(0x17e)]+0x1,_0x1dc5a4[_0xe8ffa5(0x159)]));}[_0x523619(0x180)](){var _0x25ce3f=_0x523619;let _0x572501=this[_0x25ce3f(0x171)]();return _0x572501?{..._0x572501,'config':this[_0x25ce3f(0x141)](),'text':this['getText'](),'type':_0x1a5759['CODE']}:null;}['getConfig'](){var _0x25bf1f=_0x523619;let _0x126f12=this[_0x25bf1f(0x157)][_0x25bf1f(0x17f)](_0x1795d6);return _0x5d2e3b(_0x126f12[_0x25bf1f(0x168)](this[_0x25bf1f(0x154)],this[_0x25bf1f(0x15e)]));}[_0x523619(0x144)](_0xd0d1ba){var _0x3b3774=_0x523619;return this[_0x3b3774(0x157)][_0x3b3774(0x17f)](_0x55e8a6)[_0x3b3774(0x14d)](_0x37caab['id'],{'blockId':this[_0x3b3774(0x15e)],'config':_0xd0d1ba[_0x3b3774(0x163)],'unitId':this[_0x3b3774(0x154)]});}[_0x523619(0x179)](){var _0x4095b0=_0x523619;return this['_injector']['get'](_0x55e8a6)['syncExecuteCommand'](_0x5d55d7['id'],{'blockId':this[_0x4095b0(0x15e)],'unitId':this[_0x4095b0(0x154)]});}[_0x523619(0x15b)](){var _0x4a1189=_0x523619;return this['_injector'][_0x4a1189(0x17f)](_0x55e8a6)[_0x4a1189(0x14d)](_0x388fa1['id'],{'blockId':this[_0x4a1189(0x15e)],'unitId':this[_0x4a1189(0x154)]});}[_0x523619(0x16d)](){var _0x59b8e8=_0x523619,_0x19e168;return((_0x19e168=this[_0x59b8e8(0x176)]()[_0x59b8e8(0x158)])==null||(_0x19e168=_0x19e168[_0x59b8e8(0x146)])==null?void 0x0:_0x19e168[_0x59b8e8(0x14f)](_0x1cc644=>_0x1cc644[_0x59b8e8(0x162)]===this[_0x59b8e8(0x15e)]&&_0x1cc644[_0x59b8e8(0x148)]===_0x1a5759[_0x59b8e8(0x155)]))??null;}[_0x523619(0x176)](){var _0x308cab=_0x523619;return this['_document'][_0x308cab(0x187)]();}};b=y([v(0x2,_0x352200(_0x491548))],b);function _0x3e77(_0x8ff20b,_0xa1f21d){_0x8ff20b=_0x8ff20b-0x141;var _0x273dcc=_0x273d();var _0x3e77d2=_0x273dcc[_0x8ff20b];return _0x3e77d2;}function x(_0xaa9811){var _0x7b1757=_0x523619;return Array[_0x7b1757(0x16e)](_0xaa9811)[_0x7b1757(0x16c)](_0x4c79d4=>_0x4c79d4===_0xe08ab3['PARAGRAPH']?'\x0a':_0x4c79d4)['filter'](_0x2e89ba=>_0x2e89ba!==_0xe08ab3[_0x7b1757(0x173)]&&_0x2e89ba!==_0xe08ab3[_0x7b1757(0x17d)]&&_0x2e89ba!==_0xe08ab3[_0x7b1757(0x160)])['join']('')[_0x7b1757(0x150)](/\n$/,'');}var S=class extends _0x5dacc6{[_0x523619(0x145)](){var _0x1c31c3=_0x523619;return this['_getBlockRanges']()[_0x1c31c3(0x153)](_0x4701e5=>_0x4701e5[_0x1c31c3(0x148)]===_0x1a5759['CODE'])[_0x1c31c3(0x16c)](_0x2d2585=>this[_0x1c31c3(0x183)](_0x2d2585[_0x1c31c3(0x162)]));}[_0x523619(0x14a)](_0x4f9c6e){var _0x1a3f5b=_0x523619;return this[_0x1a3f5b(0x181)]()[_0x1a3f5b(0x186)](_0x31a680=>_0x31a680[_0x1a3f5b(0x162)]===_0x4f9c6e&&_0x31a680[_0x1a3f5b(0x148)]===_0x1a5759[_0x1a3f5b(0x155)])?this[_0x1a3f5b(0x183)](_0x4f9c6e):null;}[_0x523619(0x167)](_0x3ab4f4){var _0x1837da=_0x523619;let _0x1912b7=this[_0x1837da(0x181)]()[_0x1837da(0x14f)](_0x4d6e7f=>_0x4d6e7f[_0x1837da(0x148)]===_0x1a5759[_0x1837da(0x155)]&&_0x4d6e7f[_0x1837da(0x17e)]<=_0x3ab4f4&&_0x3ab4f4<=_0x4d6e7f['endIndex']);return _0x1912b7?this[_0x1837da(0x183)](_0x1912b7[_0x1837da(0x162)]):null;}[_0x523619(0x165)](_0x3555cb){return this['findCodes'](_0x3555cb)[0x0]??null;}['findCodes'](_0x96085c){var _0x180fb6=_0x523619;let _0x5898c7=typeof _0x96085c==_0x180fb6(0x149)?{'text':_0x96085c}:_0x96085c;return this[_0x180fb6(0x145)]()[_0x180fb6(0x153)](_0x57de9a=>!(_0x5898c7[_0x180fb6(0x162)]&&_0x57de9a['getId']()!==_0x5898c7['blockId']||_0x5898c7[_0x180fb6(0x142)]&&!_0x57de9a[_0x180fb6(0x15a)]()[_0x180fb6(0x164)](_0x5898c7[_0x180fb6(0x142)])));}[_0x523619(0x175)](_0x45ec4a={},_0x338f7e={}){var _0x18a3d3=_0x523619;let _0x100377=this[_0x18a3d3(0x157)][_0x18a3d3(0x17f)](_0x55e8a6),_0x4b99fe=_0x3dd811(_0x45ec4a)?{..._0x338f7e,..._0x45ec4a['getRange']()}:_0x45ec4a,_0x4f4ec7=_0x4b99fe[_0x18a3d3(0x162)]??_0x535c1d(0x6);return _0x100377[_0x18a3d3(0x14d)](_0x1084c1['id'],{..._0x4b99fe,'blockId':_0x4f4ec7,'unitId':this[_0x18a3d3(0x169)]()})?this[_0x18a3d3(0x14a)](_0x4f4ec7):null;}['_getBlockRanges'](){var _0x36d51a=_0x523619,_0x4e0b53;return((_0x4e0b53=this[_0x36d51a(0x187)]()[_0x36d51a(0x158)])==null?void 0x0:_0x4e0b53['blockRanges'])??[];}[_0x523619(0x183)](_0x400106){var _0x4e0cab=_0x523619;return this[_0x4e0cab(0x157)][_0x4e0cab(0x147)](b,this,_0x400106);}};_0x5dacc6[_0x523619(0x161)](S);export{b as FDocumentCode};