@univerjs-pro/docs-code 1.0.0-insiders.20260720-e1e8f51 → 1.0.0-insiders.20260722-553148e
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x147922=_0x3ed9;(function(_0x4b6056,_0xb29186){var _0x3b8848=_0x3ed9,_0x1da3da=_0x4b6056();while(!![]){try{var _0x35a864=-parseInt(_0x3b8848(0x11f))/0x1*(parseInt(_0x3b8848(0x122))/0x2)+-parseInt(_0x3b8848(0x113))/0x3*(-parseInt(_0x3b8848(0x116))/0x4)+parseInt(_0x3b8848(0x11b))/0x5*(-parseInt(_0x3b8848(0x12e))/0x6)+-parseInt(_0x3b8848(0x150))/0x7*(parseInt(_0x3b8848(0x127))/0x8)+parseInt(_0x3b8848(0x13a))/0x9*(-parseInt(_0x3b8848(0x153))/0xa)+parseInt(_0x3b8848(0x132))/0xb*(parseInt(_0x3b8848(0x11d))/0xc)+parseInt(_0x3b8848(0x146))/0xd;if(_0x35a864===_0xb29186)break;else _0x1da3da['push'](_0x1da3da['shift']());}catch(_0x4b01a4){_0x1da3da['push'](_0x1da3da['shift']());}}}(_0x29ef,0xac93f),Object[_0x147922(0x117)](exports,Symbol[_0x147922(0x119)],{'value':_0x147922(0x151)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x5a313f){'@babel/helpers - typeof';var _0x141acc=_0x147922;return r=typeof Symbol==_0x141acc(0x137)&&typeof Symbol[_0x141acc(0x142)]==_0x141acc(0x10a)?function(_0x516d18){return typeof _0x516d18;}:function(_0x49289c){var _0x2c7e86=_0x141acc;return _0x49289c&&typeof Symbol==_0x2c7e86(0x137)&&_0x49289c[_0x2c7e86(0x123)]===Symbol&&_0x49289c!==Symbol['prototype']?_0x2c7e86(0x10a):typeof _0x49289c;},r(_0x5a313f);}function i(_0xae4aa5,_0x360450){var _0xda9086=_0x147922;if(r(_0xae4aa5)!=_0xda9086(0x135)||!_0xae4aa5)return _0xae4aa5;var _0x15b48e=_0xae4aa5[Symbol[_0xda9086(0x128)]];if(_0x15b48e!==void 0x0){var _0x3843f8=_0x15b48e['call'](_0xae4aa5,_0x360450||_0xda9086(0x107));if(r(_0x3843f8)!=_0xda9086(0x135))return _0x3843f8;throw TypeError(_0xda9086(0x14b));}return(_0x360450===_0xda9086(0x147)?String:Number)(_0xae4aa5);}function _0x3ed9(_0x315636,_0x1890b0){_0x315636=_0x315636-0x104;var _0x29ef08=_0x29ef();var _0x3ed98c=_0x29ef08[_0x315636];return _0x3ed98c;}function a(_0x281fae){var _0xb88e16=_0x147922,_0x3e1e02=i(_0x281fae,_0xb88e16(0x147));return r(_0x3e1e02)==_0xb88e16(0x10a)?_0x3e1e02:_0x3e1e02+'';}function _0x29ef(){var _0x2f7b43=['map','_getDocumentData','DocsCodeUnwrapCommand','save','findCodes','updateConfig','iterator','DocsCodeRemoveCommand','startIndex','Inject','18986591zxImZO','string','_document','blockType','isParagraphFacade','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','describe','length','filter','BLOCK_START','7ZvKJgk','Module','generateRandomId','100910CFcgLJ','endIndex','DocsCodeModel','DocsCodeUpdateCommand','findCodeByText','DocsCodeInsertCommand','DocumentBlockRangeType','normalizeDocsCodeConfig','getOwnPropertyDescriptor','default','blockId','FDocumentCode','symbol','_blockId','ICommandService','_injector','DataStreamTreeTokenType','syncExecuteCommand','decorate','get','getCodeAt','6tegoDx','blockRanges','remove','1009992sXvERv','defineProperty','body','toStringTag','config','450005KYpyrb','getId','348180JNXXEP','SECTION_BREAK','533jSHNBs','_getBlockRange','text','3482fsCJWY','constructor','PARAGRAPH','getText','BLOCK_END','5605784mPBivg','toPrimitive','getCodeConfig','dataStream','getCode','getCodes','slice','12OpsxHX','getConfig','find','_getBlockRanges','308GRsnjM','createInstance','getRange','object','_createFDocumentCode','function','_unitId','extend','234uvuNpa','CODE'];_0x29ef=function(){return _0x2f7b43;};return _0x29ef();}function o(_0x11e077,_0xa46c5a,_0x2d7299){var _0x560359=_0x147922;return(_0xa46c5a=a(_0xa46c5a))in _0x11e077?Object[_0x560359(0x117)](_0x11e077,_0xa46c5a,{'value':_0x2d7299,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11e077[_0xa46c5a]=_0x2d7299,_0x11e077;}function s(_0x472f7a,_0x5d799a){return function(_0x1125bf,_0x3443da){_0x5d799a(_0x1125bf,_0x3443da,_0x472f7a);};}function c(_0xd10698,_0x3ac330,_0x12eed2,_0x584f52){var _0x570a8f=_0x147922,_0xe882bb=arguments[_0x570a8f(0x14d)],_0x3a40ec=_0xe882bb<0x3?_0x3ac330:_0x584f52===null?_0x584f52=Object[_0x570a8f(0x106)](_0x3ac330,_0x12eed2):_0x584f52,_0x507371;if(typeof Reflect==_0x570a8f(0x135)&&typeof Reflect[_0x570a8f(0x110)]==_0x570a8f(0x137))_0x3a40ec=Reflect[_0x570a8f(0x110)](_0xd10698,_0x3ac330,_0x12eed2,_0x584f52);else{for(var _0x4092fe=_0xd10698['length']-0x1;_0x4092fe>=0x0;_0x4092fe--)(_0x507371=_0xd10698[_0x4092fe])&&(_0x3a40ec=(_0xe882bb<0x3?_0x507371(_0x3a40ec):_0xe882bb>0x3?_0x507371(_0x3ac330,_0x12eed2,_0x3a40ec):_0x507371(_0x3ac330,_0x12eed2))||_0x3a40ec);}return _0xe882bb>0x3&&_0x3a40ec&&Object[_0x570a8f(0x117)](_0x3ac330,_0x12eed2,_0x3a40ec),_0x3a40ec;}let l=class{constructor(_0x188e5d,_0x51eb47,_0x1c8e42){var _0x14d009=_0x147922;this[_0x14d009(0x148)]=_0x188e5d,this['_blockId']=_0x51eb47,this[_0x14d009(0x10d)]=_0x1c8e42,o(this,_0x14d009(0x138),void 0x0),this['_unitId']=this[_0x14d009(0x148)]['getId']();}[_0x147922(0x11c)](){var _0x3d5ef6=_0x147922;return this[_0x3d5ef6(0x10b)];}['getRange'](){var _0x3c8821=_0x147922;let _0x4ae928=this[_0x3c8821(0x120)]();return _0x4ae928?{'blockId':_0x4ae928[_0x3c8821(0x108)],'endIndex':_0x4ae928[_0x3c8821(0x154)],'startIndex':_0x4ae928[_0x3c8821(0x144)]}:null;}[_0x147922(0x125)](){var _0x3cd49d=_0x147922,_0x262b5e;let _0x1ac77b=this[_0x3cd49d(0x120)](),_0x42773e=(_0x262b5e=this[_0x3cd49d(0x13d)]()[_0x3cd49d(0x118)])==null?void 0x0:_0x262b5e[_0x3cd49d(0x12a)];return!_0x1ac77b||!_0x42773e?'':u(_0x42773e[_0x3cd49d(0x12d)](_0x1ac77b[_0x3cd49d(0x144)]+0x1,_0x1ac77b[_0x3cd49d(0x154)]));}[_0x147922(0x14c)](){var _0x23dc43=_0x147922;let _0xfc6764=this['getRange']();return _0xfc6764?{..._0xfc6764,'config':this[_0x23dc43(0x12f)](),'text':this[_0x23dc43(0x125)](),'type':t[_0x23dc43(0x104)]['CODE']}:null;}[_0x147922(0x12f)](){var _0x2c6583=_0x147922;return(0x0,e[_0x2c6583(0x105)])(this[_0x2c6583(0x10d)][_0x2c6583(0x111)](e[_0x2c6583(0x155)])[_0x2c6583(0x129)](this[_0x2c6583(0x138)],this[_0x2c6583(0x10b)]));}[_0x147922(0x141)](_0x2d6736){var _0x62e43f=_0x147922;return this[_0x62e43f(0x10d)]['get'](t['ICommandService'])[_0x62e43f(0x10f)](e[_0x62e43f(0x156)]['id'],{'blockId':this[_0x62e43f(0x10b)],'config':_0x2d6736[_0x62e43f(0x11a)],'unitId':this[_0x62e43f(0x138)]});}['unwrap'](){var _0x4d84ca=_0x147922;return this[_0x4d84ca(0x10d)][_0x4d84ca(0x111)](t[_0x4d84ca(0x10c)])['syncExecuteCommand'](e[_0x4d84ca(0x13e)]['id'],{'blockId':this[_0x4d84ca(0x10b)],'unitId':this[_0x4d84ca(0x138)]});}[_0x147922(0x115)](){var _0x511db6=_0x147922;return this[_0x511db6(0x10d)]['get'](t[_0x511db6(0x10c)])['syncExecuteCommand'](e[_0x511db6(0x143)]['id'],{'blockId':this[_0x511db6(0x10b)],'unitId':this[_0x511db6(0x138)]});}['_getBlockRange'](){var _0x3841b9=_0x147922,_0x3371bd;let _0x5a63a1=(_0x3371bd=this['_getDocumentData']()[_0x3841b9(0x118)])==null||(_0x3371bd=_0x3371bd['blockRanges'])==null?void 0x0:_0x3371bd['find'](_0x4c96eb=>_0x4c96eb[_0x3841b9(0x108)]===this[_0x3841b9(0x10b)]&&_0x4c96eb['blockType']===t[_0x3841b9(0x104)][_0x3841b9(0x13b)]);return _0x5a63a1==null?null:_0x5a63a1;}[_0x147922(0x13d)](){var _0x3886cc=_0x147922;return this[_0x3886cc(0x148)]['save']();}};l=c([s(0x2,(0x0,t[_0x147922(0x145)])(t['Injector']))],l);function u(_0x3c0793){var _0x455a44=_0x147922;return Array['from'](_0x3c0793)[_0x455a44(0x13c)](_0x4baf36=>_0x4baf36===t[_0x455a44(0x10e)][_0x455a44(0x124)]?'\x0a':_0x4baf36)[_0x455a44(0x14e)](_0x4747e3=>_0x4747e3!==t[_0x455a44(0x10e)][_0x455a44(0x14f)]&&_0x4747e3!==t[_0x455a44(0x10e)][_0x455a44(0x126)]&&_0x4747e3!==t[_0x455a44(0x10e)][_0x455a44(0x11e)])['join']('')['replace'](/\n$/,'');}var d=class extends n['FDocument']{[_0x147922(0x12c)](){var _0x2a35cf=_0x147922;return this[_0x2a35cf(0x131)]()[_0x2a35cf(0x14e)](_0x3e03ae=>_0x3e03ae['blockType']===t['DocumentBlockRangeType']['CODE'])[_0x2a35cf(0x13c)](_0x2a8685=>this[_0x2a35cf(0x136)](_0x2a8685[_0x2a35cf(0x108)]));}[_0x147922(0x12b)](_0x4bcc5a){var _0x23090c=_0x147922;return this[_0x23090c(0x131)]()['some'](_0x239b8a=>_0x239b8a[_0x23090c(0x108)]===_0x4bcc5a&&_0x239b8a[_0x23090c(0x149)]===t[_0x23090c(0x104)][_0x23090c(0x13b)])?this[_0x23090c(0x136)](_0x4bcc5a):null;}[_0x147922(0x112)](_0x29551f){var _0x2d5084=_0x147922;let _0x44cd10=this[_0x2d5084(0x131)]()[_0x2d5084(0x130)](_0x3cc09f=>_0x3cc09f[_0x2d5084(0x149)]===t[_0x2d5084(0x104)]['CODE']&&_0x3cc09f[_0x2d5084(0x144)]<=_0x29551f&&_0x29551f<=_0x3cc09f[_0x2d5084(0x154)]);return _0x44cd10?this[_0x2d5084(0x136)](_0x44cd10['blockId']):null;}[_0x147922(0x157)](_0x1d72ff){var _0x3c371b=_0x147922,_0xeead54;return(_0xeead54=this[_0x3c371b(0x140)](_0x1d72ff)[0x0])==null?null:_0xeead54;}[_0x147922(0x140)](_0x32dc6e){var _0x532401=_0x147922;let _0x411cf3=typeof _0x32dc6e==_0x532401(0x147)?{'text':_0x32dc6e}:_0x32dc6e;return this[_0x532401(0x12c)]()[_0x532401(0x14e)](_0x46cdcf=>!(_0x411cf3[_0x532401(0x108)]&&_0x46cdcf[_0x532401(0x11c)]()!==_0x411cf3['blockId']||_0x411cf3[_0x532401(0x121)]&&!_0x46cdcf[_0x532401(0x125)]()['includes'](_0x411cf3['text'])));}['insertCode'](_0xdab05d={},_0x24cb4c={}){var _0x197f92=_0x147922,_0x22f245;let _0x3700c2=this['_injector']['get'](t['ICommandService']),_0x261e25=(0x0,n[_0x197f92(0x14a)])(_0xdab05d)?{..._0x24cb4c,..._0xdab05d[_0x197f92(0x134)]()}:_0xdab05d,_0x599d74=(_0x22f245=_0x261e25[_0x197f92(0x108)])==null?(0x0,t[_0x197f92(0x152)])(0x6):_0x22f245;return _0x3700c2[_0x197f92(0x10f)](e[_0x197f92(0x158)]['id'],{..._0x261e25,'blockId':_0x599d74,'unitId':this['getId']()})?this[_0x197f92(0x12b)](_0x599d74):null;}[_0x147922(0x131)](){var _0x32a508=_0x147922,_0x133826,_0x273c97;return(_0x133826=(_0x273c97=this[_0x32a508(0x13f)]()[_0x32a508(0x118)])==null?void 0x0:_0x273c97[_0x32a508(0x114)])==null?[]:_0x133826;}['_createFDocumentCode'](_0x4788cd){var _0x1569d3=_0x147922;return this['_injector'][_0x1569d3(0x133)](l,this,_0x4788cd);}};n['FDocument'][_0x147922(0x139)](d),Object[_0x147922(0x117)](exports,_0x147922(0x109),{'enumerable':!0x0,'get':function(){return l;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5777dd=_0x1bcc;(function(_0x11d9a0,_0x73607a){const _0x5d20ac=_0x1bcc,_0x310b52=_0x11d9a0();while(!![]){try{const _0x61b8fa=parseInt(_0x5d20ac(0x1ba))/0x1*(parseInt(_0x5d20ac(0x238))/0x2)+-parseInt(_0x5d20ac(0x1e9))/0x3*(parseInt(_0x5d20ac(0x1ab))/0x4)+parseInt(_0x5d20ac(0x21e))/0x5+parseInt(_0x5d20ac(0x1fb))/0x6*(parseInt(_0x5d20ac(0x193))/0x7)+parseInt(_0x5d20ac(0x235))/0x8*(-parseInt(_0x5d20ac(0x22d))/0x9)+-parseInt(_0x5d20ac(0x1d5))/0xa+-parseInt(_0x5d20ac(0x23d))/0xb;if(_0x61b8fa===_0x73607a)break;else _0x310b52['push'](_0x310b52['shift']());}catch(_0x55d1a6){_0x310b52['push'](_0x310b52['shift']());}}}(_0x9aff,0xab1f3),Object[_0x5777dd(0x23c)](exports,Symbol[_0x5777dd(0x18f)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x5777dd(0x24d),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x896e3){return{...i,..._0x896e3};}function o(_0x4a4454){const _0x142491=_0x5777dd;var _0x1967a1;let _0xf0c359=(_0x1967a1=_0x4a4454==null?void 0x0:_0x4a4454[_0x142491(0x210)])==null?{}:_0x1967a1;return{'codes':Object['fromEntries'](Object[_0x142491(0x233)](_0xf0c359)[_0x142491(0x1ed)](([_0x1d270e,_0x4cf6cd])=>[_0x1d270e,a(_0x4cf6cd)]))};}function s(_0x54ed76,_0x37f380,_0x43adb7){const _0x3528a6=_0x5777dd;let _0x2176c9=o(_0x54ed76);return _0x2176c9[_0x3528a6(0x210)][_0x37f380]=a({..._0x2176c9[_0x3528a6(0x210)][_0x37f380],..._0x43adb7}),_0x2176c9;}function c(_0x58a1c3,_0x3bca0a){const _0x28b141=_0x5777dd;let _0x259bf6=o(_0x58a1c3);return delete _0x259bf6[_0x28b141(0x210)][_0x3bca0a],_0x259bf6;}const l=_0x5777dd(0x1e8);var u=class extends Error{constructor(_0x9eee36='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x9eee36);}};function d(_0x35c4ff){const _0x23672d=_0x5777dd;var _0x122b7a,_0x1dc374,_0x1d773b;let _0x22774d=C(_0x35c4ff[_0x23672d(0x239)]),_0x23140d=T(_0x22774d),_0x321d69=p(_0x35c4ff['startOffset'],_0x35c4ff['endOffset']),_0xbd0e0a=_0x321d69?(_0x122b7a=_0x23140d['blockRanges'])==null?void 0x0:_0x122b7a['find'](_0xcaae20=>{const _0x86f898=_0x23672d;let _0x2434ba=(0x0,e[_0x86f898(0x194)])(_0xcaae20);return _0x2434ba[_0x86f898(0x1a2)]===_0x321d69[_0x86f898(0x1a2)]&&_0x2434ba[_0x86f898(0x257)]===_0x321d69[_0x86f898(0x257)];}):void 0x0,{startOffset:_0x2883a3,endOffset:_0x152e6c}=_0xbd0e0a?_0x321d69:oe(_0x23140d,_0x35c4ff[_0x23672d(0x1a2)],_0x35c4ff['endOffset'],_0x35c4ff[_0x23672d(0x254)]);if(!_0xbd0e0a&&m(_0x23140d,_0x2883a3,_0x152e6c))throw new u(_0x23672d(0x1af));let _0x1a6971=le(_0x23140d,_0x2883a3,_0x152e6c),_0x2f110f=(_0x1dc374=_0xbd0e0a==null?void 0x0:_0xbd0e0a[_0x23672d(0x21f)])==null?_0x35c4ff[_0x23672d(0x21f)]:_0x1dc374,_0x5e4120=s(_0x35c4ff['metadata'],_0x2f110f,{...i,..._0x35c4ff[_0x23672d(0x243)]});if(_0xbd0e0a)return _0xbd0e0a[_0x23672d(0x21d)]=e[_0x23672d(0x22e)][_0x23672d(0x1b5)],f(_0x23140d,_0x2883a3,_0x152e6c),te(_0x23140d,_0x2883a3,_0x152e6c,_0x1a6971),O(_0x23140d,_0xbd0e0a),{'nextDocumentData':_0x22774d,'nextMetadata':_0x5e4120,'cursorOffset':_0x2883a3+0x1};if(_0x2883a3===_0x152e6c){var _0x1887b2,_0x5dc0a5;let _0x1a26a4=''+e[_0x23672d(0x1d0)]['BLOCK_START']+e['DataStreamTreeTokenType'][_0x23672d(0x250)]+e['DataStreamTreeTokenType'][_0x23672d(0x1c3)];k(_0x23140d,_0x2883a3,_0x1a26a4,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x23672d(0x1cf)])(new Set((_0x1887b2=_0x23140d[_0x23672d(0x22a)])==null?void 0x0:_0x1887b2[_0x23672d(0x1ed)](_0x18e54c=>_0x18e54c[_0x23672d(0x1dc)]))),'paragraphStyle':ee(!0x0,!0x0,_0x1a6971)}],'blockRanges':[{'blockId':_0x2f110f,'blockType':e['DocumentBlockRangeType'][_0x23672d(0x1b5)],'startIndex':0x0,'endIndex':_0x1a26a4[_0x23672d(0x204)]-0x1}]});let _0x243801=(_0x5dc0a5=_0x23140d[_0x23672d(0x20a)])==null?void 0x0:_0x5dc0a5[_0x23672d(0x1bd)](_0x1ed1c8=>_0x1ed1c8['blockId']===_0x2f110f);return _0x243801&&O(_0x23140d,_0x243801),{'nextDocumentData':_0x22774d,'nextMetadata':_0x5e4120,'cursorOffset':_0x2883a3+0x1};}k(_0x23140d,_0x152e6c,e['DataStreamTreeTokenType'][_0x23672d(0x1c3)]),k(_0x23140d,_0x2883a3,e[_0x23672d(0x1d0)][_0x23672d(0x216)]),te(_0x23140d,_0x2883a3,_0x152e6c+0x1,_0x1a6971);let _0x41fe52={'blockId':_0x2f110f,'blockType':e[_0x23672d(0x22e)][_0x23672d(0x1b5)],'startIndex':_0x2883a3,'endIndex':_0x152e6c+0x1};return _0x23140d[_0x23672d(0x20a)]=[...(_0x1d773b=_0x23140d[_0x23672d(0x20a)])==null?[]:_0x1d773b,_0x41fe52][_0x23672d(0x1ea)]((_0x4d371f,_0x2dbbfd)=>_0x4d371f[_0x23672d(0x200)]-_0x2dbbfd[_0x23672d(0x200)]),O(_0x23140d,_0x41fe52),{'nextDocumentData':_0x22774d,'nextMetadata':_0x5e4120,'cursorOffset':_0x2883a3+0x1};}function f(_0x42a9af,_0xb70b20,_0x85afeb){const _0x47ca1a=_0x5777dd;var _0x98b987;((_0x98b987=_0x42a9af[_0x47ca1a(0x22a)])==null?[]:_0x98b987)[_0x47ca1a(0x25f)](_0x2b9c6b=>_0x2b9c6b['startIndex']>_0xb70b20&&_0x2b9c6b['startIndex']<_0x85afeb)[_0x47ca1a(0x191)](_0x293039=>{const _0x2684d8=_0x47ca1a;var _0x12f337;let _0x318e7a={...(_0x12f337=_0x293039[_0x2684d8(0x25b)])==null?{}:_0x12f337};delete _0x318e7a['spaceAbove'],delete _0x318e7a['spaceBelow'],_0x293039[_0x2684d8(0x25b)]=_0x318e7a;});}function p(_0xf786eb,_0x1f0954){const _0x1884c7=_0x5777dd;return _0xf786eb==null||_0x1f0954==null||_0xf786eb===_0x1f0954?null:{'startOffset':Math[_0x1884c7(0x246)](_0xf786eb,_0x1f0954),'endOffset':Math[_0x1884c7(0x201)](_0xf786eb,_0x1f0954)};}function m(_0x523b1d,_0x46c058,_0x85a4b2){const _0x22f302=_0x5777dd;var _0x547346;return((_0x547346=_0x523b1d[_0x22f302(0x20a)])==null?[]:_0x547346)[_0x22f302(0x1a9)](_0x26bb47=>{const _0x95e18=_0x22f302;let _0x4b2314=(0x0,e[_0x95e18(0x194)])(_0x26bb47);return _0x46c058===_0x85a4b2?(0x0,e[_0x95e18(0x1d4)])(_0x4b2314,_0x46c058):(0x0,e[_0x95e18(0x223)])(_0x4b2314,{'startOffset':_0x46c058,'endOffset':_0x85a4b2});});}function h(_0x1bcc1d){const _0x1dcc83=_0x5777dd;return{'nextDocumentData':C(_0x1bcc1d[_0x1dcc83(0x239)]),'nextMetadata':s(_0x1bcc1d['metadata'],_0x1bcc1d[_0x1dcc83(0x21f)],_0x1bcc1d[_0x1dcc83(0x243)]),'cursorOffset':0x0};}function g(_0x2470f0){const _0x5c220f=_0x5777dd;let _0xf7f9f4=C(_0x2470f0[_0x5c220f(0x239)]),_0x48d8b5=T(_0xf7f9f4),_0x1c341a=b(_0x48d8b5,_0x2470f0['blockId']);if(!_0x1c341a)return null;let _0x2bf0a1=ie(_0x48d8b5,_0x1c341a);return{'nextDocumentData':_0xf7f9f4,'nextMetadata':c(_0x2470f0[_0x5c220f(0x1f4)],_0x2470f0['blockId']),'cursorOffset':_0x2bf0a1};}function _(_0x4e0d97){const _0x1c1df6=_0x5777dd;var _0x169a05;let _0x13ed14=C(_0x4e0d97[_0x1c1df6(0x239)]),_0xb1aff5=T(_0x13ed14),_0x931227=b(_0xb1aff5,_0x4e0d97[_0x1c1df6(0x21f)]);if(!_0x931227)return null;let _0x4d994c=(0x0,e[_0x1c1df6(0x194)])(_0x931227);return A(_0xb1aff5,_0x4d994c['startOffset'],_0x4d994c[_0x1c1df6(0x257)]),_0xb1aff5[_0x1c1df6(0x20a)]=(_0x169a05=_0xb1aff5[_0x1c1df6(0x20a)])==null?void 0x0:_0x169a05[_0x1c1df6(0x25f)](_0x457e03=>_0x457e03[_0x1c1df6(0x21f)]!==_0x4e0d97[_0x1c1df6(0x21f)]),{'nextDocumentData':_0x13ed14,'nextMetadata':c(_0x4e0d97[_0x1c1df6(0x1f4)],_0x4e0d97[_0x1c1df6(0x21f)]),'cursorOffset':_0x931227[_0x1c1df6(0x200)]};}function v(_0x48f798){const _0x4590e2=_0x5777dd;let _0x490260=C(_0x48f798[_0x4590e2(0x239)]),_0x87d15c=T(_0x490260),_0xe507f5=S(_0x87d15c,_0x48f798[_0x4590e2(0x1ac)]);return _0xe507f5&&y(_0x490260,_0x87d15c,_0xe507f5,_0x48f798[_0x4590e2(0x1ac)],_0x48f798['paragraphStartIndex'])||null;}function y(_0x51b3fa,_0x3c3a4c,_0x185601,_0x5b427e,_0x54e76b){const _0x2d6806=_0x5777dd;let _0x2b24bb=he(_0x3c3a4c,_0x185601,_0x5b427e,_0x54e76b);if(!_0x2b24bb)return null;let _0x36802a=_0x2b24bb[_0x2d6806(0x1d9)]-0x1;return A(_0x3c3a4c,_0x2b24bb['paragraph'][_0x2d6806(0x200)],_0x2b24bb[_0x2d6806(0x1c1)][_0x2d6806(0x200)]+0x1),{'nextDocumentData':_0x51b3fa,'cursorOffset':_0x36802a};}function b(_0xf52ba0,_0x2e48be){const _0x1d0497=_0x5777dd;var _0x21d845;return _0xf52ba0==null||(_0x21d845=_0xf52ba0[_0x1d0497(0x20a)])==null?void 0x0:_0x21d845['find'](_0x436e34=>_0x436e34[_0x1d0497(0x21d)]===e[_0x1d0497(0x22e)][_0x1d0497(0x1b5)]&&_0x436e34[_0x1d0497(0x21f)]===_0x2e48be);}function x(_0x16530f){const _0x3d8442=_0x5777dd;var _0x56f6f8;let _0x4174f0=_0x16530f[_0x3d8442(0x239)]['body'];if(!_0x4174f0)return!0x1;let _0x213719=_0x16530f[_0x3d8442(0x1d2)]===_0x3d8442(0x1a4)?_0x16530f['cursorOffset']-0x1:_0x16530f[_0x3d8442(0x1ac)],_0x333255=_0x16530f[_0x3d8442(0x1d2)]===_0x3d8442(0x1da)?_0x16530f[_0x3d8442(0x1ac)]+0x1:_0x213719;return((_0x56f6f8=_0x4174f0[_0x3d8442(0x20a)])==null?[]:_0x56f6f8)[_0x3d8442(0x1a9)](_0x1a1f70=>_0x1a1f70[_0x3d8442(0x21d)]===e[_0x3d8442(0x22e)]['CODE']?_0x213719===_0x1a1f70[_0x3d8442(0x200)]||_0x213719===_0x1a1f70[_0x3d8442(0x25c)]||_0x333255===_0x1a1f70[_0x3d8442(0x200)]||_0x333255===_0x1a1f70[_0x3d8442(0x25c)]:!0x1);}function S(_0x212f38,_0x19bc50){const _0x51d45d=_0x5777dd;var _0x5e22cb;return(_0x5e22cb=_0x212f38[_0x51d45d(0x20a)])==null?void 0x0:_0x5e22cb['find'](_0x5880a1=>{const _0x43a9c0=_0x51d45d;let _0x453014=D(_0x5880a1);return _0x5880a1[_0x43a9c0(0x21d)]===e[_0x43a9c0(0x22e)]['CODE']&&_0x5880a1[_0x43a9c0(0x200)]<=_0x19bc50&&_0x19bc50<=_0x453014+0x2;});}function ee(_0x31aba6,_0x343dd4,_0x2ec70f=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x31aba6&&_0x2ec70f?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function te(_0x1c1fa1,_0x360d0d,_0x27b817,_0x46ae28=!0x1){const _0x17cfd3=_0x5777dd;var _0x4f3b9d;let _0x14ab22=((_0x4f3b9d=_0x1c1fa1['paragraphs'])==null?[]:_0x4f3b9d)['filter'](_0x265928=>_0x265928[_0x17cfd3(0x200)]>_0x360d0d&&_0x265928['startIndex']<_0x27b817);_0x14ab22[_0x17cfd3(0x191)]((_0x54e9b3,_0x5399b0)=>{const _0x435966=_0x17cfd3;var _0x52a5b2;_0x54e9b3[_0x435966(0x25b)]={...(_0x52a5b2=_0x54e9b3[_0x435966(0x25b)])==null?{}:_0x52a5b2,...ee(_0x5399b0===0x0,_0x5399b0===_0x14ab22[_0x435966(0x204)]-0x1,_0x46ae28)};});}function ne(_0x3ec0d5){const _0x3403d6=_0x5777dd;var _0x23f58a,_0x4d7468;let _0x2cafc4={..._0x3ec0d5==null?{}:_0x3ec0d5};return delete _0x2cafc4['indentEnd'],delete _0x2cafc4[_0x3403d6(0x230)],delete _0x2cafc4[_0x3403d6(0x228)],delete _0x2cafc4[_0x3403d6(0x24b)],((_0x23f58a=_0x2cafc4[_0x3403d6(0x226)])==null?void 0x0:_0x23f58a['ff'])===l&&((_0x4d7468=_0x2cafc4['textStyle'])==null?void 0x0:_0x4d7468['fs'])===0xc&&delete _0x2cafc4[_0x3403d6(0x226)],_0x2cafc4;}function re(_0x42734f,_0xfe71e5){const _0x586d02=_0x5777dd;var _0x446a39;let _0x481858=D(_0xfe71e5);return((_0x446a39=_0x42734f['paragraphs'])==null?[]:_0x446a39)[_0x586d02(0x25f)](_0x51eeba=>_0x51eeba[_0x586d02(0x200)]>_0xfe71e5[_0x586d02(0x200)]&&_0x51eeba[_0x586d02(0x200)]<_0x481858);}function ie(_0x5bb60c,_0x2be242){const _0x56ef42=_0x5777dd;var _0x370c1f;let _0x2b4734=D(_0x2be242);return re(_0x5bb60c,_0x2be242)[_0x56ef42(0x191)](_0x2fbe37=>{const _0x1caaba=_0x56ef42;_0x2fbe37[_0x1caaba(0x25b)]=ne(_0x2fbe37[_0x1caaba(0x25b)]);}),A(_0x5bb60c,_0x2b4734,_0x2b4734+0x1),A(_0x5bb60c,_0x2be242[_0x56ef42(0x200)],_0x2be242[_0x56ef42(0x200)]+0x1),_0x5bb60c[_0x56ef42(0x20a)]=(_0x370c1f=_0x5bb60c[_0x56ef42(0x20a)])==null?void 0x0:_0x370c1f[_0x56ef42(0x25f)](_0xd6ad01=>_0xd6ad01[_0x56ef42(0x21f)]!==_0x2be242['blockId']),_0x2be242[_0x56ef42(0x200)];}function C(_0xac391e){const _0x2fe184=_0x5777dd;return{..._0xac391e,'body':_0xac391e[_0x2fe184(0x1c6)]?ae(_0xac391e['body']):_0xac391e[_0x2fe184(0x1c6)]};}function ae(_0xaff146){const _0x55fb50=_0x5777dd;var _0x49dfdf,_0x420a18,_0x1baac4,_0x74a94c,_0x35c3e8,_0x2c75a3,_0x4373ad,_0x14833d,_0x50df25;return{..._0xaff146,'paragraphs':(_0x49dfdf=_0xaff146[_0x55fb50(0x22a)])==null?void 0x0:_0x49dfdf['map'](_0x207da3=>({..._0x207da3,'bullet':w(_0x207da3[_0x55fb50(0x1dd)]),'paragraphStyle':w(_0x207da3['paragraphStyle'])})),'sectionBreaks':(_0x420a18=_0xaff146[_0x55fb50(0x217)])==null?void 0x0:_0x420a18[_0x55fb50(0x1ed)](_0x74442c=>({..._0x74442c})),'textRuns':(_0x1baac4=_0xaff146[_0x55fb50(0x23f)])==null?void 0x0:_0x1baac4[_0x55fb50(0x1ed)](_0x14903c=>({..._0x14903c})),'tables':(_0x74a94c=_0xaff146[_0x55fb50(0x211)])==null?void 0x0:_0x74a94c[_0x55fb50(0x1ed)](_0x574d72=>({..._0x574d72})),'columnGroups':(_0x35c3e8=_0xaff146[_0x55fb50(0x1e6)])==null?void 0x0:_0x35c3e8['map'](_0x26762f=>{const _0x460e1d=_0x55fb50;var _0xa3aba0;return{..._0x26762f,'columns':(_0xa3aba0=_0x26762f['columns'])==null?void 0x0:_0xa3aba0[_0x460e1d(0x1ed)](_0x551c89=>w(_0x551c89))};}),'blockRanges':(_0x2c75a3=_0xaff146[_0x55fb50(0x20a)])==null?void 0x0:_0x2c75a3[_0x55fb50(0x1ed)](_0x450b81=>({..._0x450b81})),'customRanges':(_0x4373ad=_0xaff146[_0x55fb50(0x1b9)])==null?void 0x0:_0x4373ad[_0x55fb50(0x1ed)](_0x2f3975=>({..._0x2f3975})),'customDecorations':(_0x14833d=_0xaff146[_0x55fb50(0x251)])==null?void 0x0:_0x14833d[_0x55fb50(0x1ed)](_0x556722=>({..._0x556722})),'customBlocks':(_0x50df25=_0xaff146[_0x55fb50(0x219)])==null?void 0x0:_0x50df25[_0x55fb50(0x1ed)](_0x4c1aa=>({..._0x4c1aa}))};}function w(_0x4f3cfb){const _0x184682=_0x5777dd;return Array[_0x184682(0x1e5)](_0x4f3cfb)?_0x4f3cfb['map'](_0x52b815=>w(_0x52b815)):!_0x4f3cfb||typeof _0x4f3cfb!=_0x184682(0x20b)?_0x4f3cfb:Object[_0x184682(0x195)](Object[_0x184682(0x233)](_0x4f3cfb)['map'](([_0x2c44bd,_0x33fd32])=>[_0x2c44bd,w(_0x33fd32)]));}function T(_0x540cb1){const _0x5c8603=_0x5777dd;if(!_0x540cb1[_0x5c8603(0x1c6)])throw Error(_0x5c8603(0x249));return _0x540cb1[_0x5c8603(0x1c6)];}function oe(_0x183bc5,_0xf61c1e,_0x9231de,_0x302d14='convert-paragraph'){const _0x38d81c=_0x5777dd;if(_0xf61c1e==null||_0x9231de==null){let _0x472b2e=ce(_0x183bc5);return{'startOffset':_0x472b2e,'endOffset':_0x472b2e};}let _0x2396bf=Math[_0x38d81c(0x246)](_0xf61c1e,_0x9231de),_0x203cbd=Math[_0x38d81c(0x201)](_0xf61c1e,_0x9231de),_0x4d1bda=pe(_0x183bc5,_0x2396bf,_0x203cbd);return _0x2396bf===_0x203cbd?_0x302d14===_0x38d81c(0x1f5)?{'startOffset':_0x2396bf,'endOffset':_0x203cbd}:se(_0x183bc5,_0x2396bf,_0x4d1bda):ue(_0x183bc5,_0x2396bf,_0x203cbd,_0x4d1bda);}function se(_0x28b208,_0x5015d5,_0x43434a){const _0x3d721b=_0x5777dd;let _0x5a15a5=de(_0x28b208,_0x5015d5);if(_0x5a15a5){let _0x42b4e8=E(_0x28b208,_0x5a15a5,_0x43434a);if(_0x42b4e8<_0x5a15a5[_0x3d721b(0x200)])return{'startOffset':_0x42b4e8,'endOffset':_0x43434a?Math['min'](_0x5a15a5[_0x3d721b(0x200)]+0x1,_0x43434a['endOffset']):_0x5a15a5[_0x3d721b(0x200)]+0x1};}let _0x4cbd1f=_0x5015d5===0x0&&_0x28b208[_0x3d721b(0x1a7)][0x0]===e[_0x3d721b(0x1d0)][_0x3d721b(0x250)]?0x1:_0x5015d5;return{'startOffset':_0x4cbd1f,'endOffset':_0x4cbd1f};}function ce(_0x3dfc86){const _0x5d1746=_0x5777dd;return _0x3dfc86['dataStream']['endsWith'](e[_0x5d1746(0x1d0)][_0x5d1746(0x19a)])?Math[_0x5d1746(0x201)](0x0,_0x3dfc86[_0x5d1746(0x1a7)]['length']-0x1):_0x3dfc86[_0x5d1746(0x1a7)]['length'];}function le(_0x453ba1,_0x225c4d,_0x54ab29){const _0x2665f9=_0x5777dd;var _0x14b6e9;let _0x16d84e=Math[_0x2665f9(0x246)](_0x225c4d,_0x54ab29),_0x198478=Math['max'](_0x225c4d,_0x54ab29);return!!((_0x14b6e9=_0x453ba1[_0x2665f9(0x211)])!=null&&_0x14b6e9[_0x2665f9(0x1a9)](_0x10bfca=>_0x16d84e>_0x10bfca[_0x2665f9(0x200)]&&_0x16d84e<_0x10bfca[_0x2665f9(0x25c)]||_0x198478>_0x10bfca[_0x2665f9(0x200)]&&_0x198478<_0x10bfca[_0x2665f9(0x25c)]||_0x16d84e<=_0x10bfca[_0x2665f9(0x200)]&&_0x198478>=_0x10bfca[_0x2665f9(0x25c)]));}function ue(_0x526af2,_0x5a1365,_0x17dfcc,_0x308dd9){const _0x582628=_0x5777dd;var _0x3ad47b,_0x1cc96a;let _0x5f03b9=[...(_0x3ad47b=_0x526af2[_0x582628(0x22a)])==null?[]:_0x3ad47b]['sort']((_0x12d803,_0x59be84)=>_0x12d803['startIndex']-_0x59be84['startIndex']),_0x9e1e=(0x0,e['getParagraphContentStartOffsets'])(_0x526af2),_0x34c44e=_0x5f03b9['find'](_0x584b4d=>E(_0x526af2,_0x584b4d,_0x308dd9,_0x9e1e)<=_0x5a1365&&_0x5a1365<=_0x584b4d['startIndex']),_0x3abe9d=(_0x1cc96a=_0x5f03b9['find'](_0x51852c=>_0x51852c[_0x582628(0x200)]>=_0x17dfcc-0x1))==null?_0x5f03b9[_0x5f03b9[_0x582628(0x204)]-0x1]:_0x1cc96a;return{'startOffset':_0x34c44e?E(_0x526af2,_0x34c44e,_0x308dd9,_0x9e1e):_0x5a1365,'endOffset':_0x3abe9d?fe(_0x3abe9d,_0x308dd9):_0x17dfcc};}function de(_0x51dadc,_0x247f1c){const _0x2090b9=_0x5777dd;var _0x77ca9b;let _0x26b4bb=[...(_0x77ca9b=_0x51dadc[_0x2090b9(0x22a)])==null?[]:_0x77ca9b][_0x2090b9(0x1ea)]((_0x23f615,_0x41a2e0)=>_0x23f615[_0x2090b9(0x200)]-_0x41a2e0['startIndex']),_0x4abbc3=(0x0,e[_0x2090b9(0x1aa)])(_0x51dadc);return _0x26b4bb[_0x2090b9(0x1bd)](_0x56cf2e=>{const _0x1434ee=_0x2090b9;var _0x422936;return((_0x422936=_0x4abbc3[_0x1434ee(0x1e1)](_0x56cf2e[_0x1434ee(0x200)]))==null?0x0:_0x422936)<=_0x247f1c&&_0x247f1c<=_0x56cf2e[_0x1434ee(0x200)];});}function E(_0x1fd86d,_0x440b82,_0x258bf1,_0x51025b){const _0x5735ce=_0x5777dd;var _0x2af1fe;let _0x9acecc=(_0x2af1fe=_0x51025b==null?void 0x0:_0x51025b[_0x5735ce(0x1e1)](_0x440b82[_0x5735ce(0x200)]))==null?(0x0,e['getParagraphContentStartOffset'])(_0x1fd86d,_0x440b82):_0x2af1fe;return _0x258bf1?Math[_0x5735ce(0x201)](_0x9acecc,_0x258bf1[_0x5735ce(0x1a2)]):_0x9acecc;}function fe(_0x191899,_0x1f2a59){const _0x50c70e=_0x5777dd;let _0x3dd472=_0x191899[_0x50c70e(0x200)]+0x1;return _0x1f2a59?Math[_0x50c70e(0x246)](_0x3dd472,_0x1f2a59[_0x50c70e(0x257)]):_0x3dd472;}function pe(_0x4de0e3,_0x52b79f,_0x5e703a){const _0x1b49ea=_0x5777dd;let _0x1e43ca=me(_0x4de0e3,_0x52b79f),_0x2f6caf=me(_0x4de0e3,_0x52b79f===_0x5e703a?_0x5e703a:Math['max'](_0x52b79f,_0x5e703a-0x1));if(!(!_0x1e43ca&&!_0x2f6caf)){if(!_0x1e43ca||!_0x2f6caf||_0x1e43ca['startTokenOffset']!==_0x2f6caf[_0x1b49ea(0x1b8)]||_0x1e43ca[_0x1b49ea(0x1d9)]!==_0x2f6caf['endTokenOffset'])throw new u();return _0x1e43ca;}}function me(_0xc6487c,_0x4457c3){const _0x4acd9a=_0x5777dd;let _0x223ff5=_0xc6487c[_0x4acd9a(0x1a7)],_0x37baeb=-0x1;for(let _0xab004a=Math[_0x4acd9a(0x246)](_0x4457c3,_0x223ff5[_0x4acd9a(0x204)]-0x1);_0xab004a>=0x0;_0xab004a--){let _0x41f74a=_0x223ff5[_0xab004a];if(_0x41f74a===e[_0x4acd9a(0x1d0)][_0x4acd9a(0x1cb)])return;if(_0x41f74a===e[_0x4acd9a(0x1d0)][_0x4acd9a(0x227)]){_0x37baeb=_0xab004a;break;}}if(_0x37baeb<0x0)return;let _0x374c62=_0x223ff5[_0x4acd9a(0x1de)](e[_0x4acd9a(0x1d0)][_0x4acd9a(0x1cb)],_0x37baeb+0x1);if(!(_0x374c62<0x0||_0x4457c3<_0x37baeb+0x1||_0x4457c3>_0x374c62-0x1))return{'startOffset':_0x37baeb+0x1,'endOffset':Math[_0x4acd9a(0x201)](_0x37baeb+0x1,_0x374c62-0x1),'startTokenOffset':_0x37baeb,'endTokenOffset':_0x374c62};}function D(_0xcb844){const _0x30e5ad=_0x5777dd;return(0x0,e[_0x30e5ad(0x194)])(_0xcb844)[_0x30e5ad(0x257)]-0x1;}function he(_0x1557b3,_0xb55841,_0x4137cf,_0x46d81a){const _0xed9742=_0x5777dd;var _0x5debb6;let _0x56101b=D(_0xb55841),_0x2049f1=((_0x5debb6=_0x1557b3['paragraphs'])==null?[]:_0x5debb6)[_0xed9742(0x1bd)](_0x59b71a=>_0x59b71a[_0xed9742(0x200)]===_0x56101b+0x1);if(!_0x2049f1||_0x46d81a!=null&&_0x2049f1[_0xed9742(0x200)]!==_0x46d81a||_0x4137cf!=null&&(_0x4137cf<_0x56101b||_0x4137cf>_0x2049f1[_0xed9742(0x200)]+0x1)||_0x1557b3[_0xed9742(0x1a7)][_0x2049f1[_0xed9742(0x200)]]!==e['DataStreamTreeTokenType'][_0xed9742(0x250)])return null;let _0x5343d4=(0x0,e[_0xed9742(0x212)])(_0x1557b3,_0x2049f1),_0x2667c2=_0x1557b3[_0xed9742(0x1a7)][_0xed9742(0x1c2)](_0x5343d4,_0x2049f1['startIndex']);return Array[_0xed9742(0x24e)](_0x2667c2)['every'](_0x11f37f=>_0x11f37f===e['DataStreamTreeTokenType'][_0xed9742(0x1c3)])?{'paragraph':_0x2049f1,'endTokenOffset':_0x56101b}:null;}function O(_0x523b5e,_0x1f3854){const _0x12a22c=_0x5777dd;var _0xb07b58;let _0x3a98cd=D(_0x1f3854),_0x351a62=_0x523b5e[_0x12a22c(0x1a7)][_0x3a98cd+0x1];_0x351a62!==e[_0x12a22c(0x1d0)][_0x12a22c(0x19a)]&&_0x351a62!==void 0x0||k(_0x523b5e,_0x3a98cd+0x1,e[_0x12a22c(0x1d0)]['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0xb07b58=_0x523b5e[_0x12a22c(0x22a)])==null?void 0x0:_0xb07b58[_0x12a22c(0x1ed)](_0x1c551a=>_0x1c551a[_0x12a22c(0x1dc)])))}]});}function k(_0x39a355,_0x350668,_0x399435,_0xfb7af1={}){const _0x3fe61d=_0x5777dd;var _0x203bf5,_0x4e56d7;if(_0x399435){if(_0x39a355[_0x3fe61d(0x1a7)]=''+_0x39a355[_0x3fe61d(0x1a7)][_0x3fe61d(0x1c2)](0x0,_0x350668)+_0x399435+_0x39a355['dataStream'][_0x3fe61d(0x1c2)](_0x350668),ge(_0x39a355,_0x350668,_0x399435['length']),(_0x203bf5=_0xfb7af1['paragraphs'])!=null&&_0x203bf5[_0x3fe61d(0x204)]){var _0x5a02a5;_0x39a355[_0x3fe61d(0x22a)]=[...(_0x5a02a5=_0x39a355[_0x3fe61d(0x22a)])==null?[]:_0x5a02a5,..._0xfb7af1[_0x3fe61d(0x22a)]['map'](_0x1a106e=>({..._0x1a106e,'startIndex':_0x1a106e['startIndex']+_0x350668}))][_0x3fe61d(0x1ea)]((_0x5be1fd,_0x4589b5)=>_0x5be1fd['startIndex']-_0x4589b5[_0x3fe61d(0x200)]);}if((_0x4e56d7=_0xfb7af1[_0x3fe61d(0x20a)])!=null&&_0x4e56d7[_0x3fe61d(0x204)]){var _0x2a6bef;_0x39a355[_0x3fe61d(0x20a)]=[...(_0x2a6bef=_0x39a355[_0x3fe61d(0x20a)])==null?[]:_0x2a6bef,..._0xfb7af1['blockRanges']['map'](_0x43f0b4=>({..._0x43f0b4,'startIndex':_0x43f0b4[_0x3fe61d(0x200)]+_0x350668,'endIndex':_0x43f0b4[_0x3fe61d(0x25c)]+_0x350668}))][_0x3fe61d(0x1ea)]((_0x3424b6,_0x11f848)=>_0x3424b6['startIndex']-_0x11f848[_0x3fe61d(0x200)]);}}}function A(_0x497074,_0x5cad91,_0x5d3f3d){const _0x2e6dce=_0x5777dd;let _0x499d95=_0x5d3f3d-_0x5cad91;_0x497074['dataStream']=''+_0x497074[_0x2e6dce(0x1a7)][_0x2e6dce(0x1c2)](0x0,_0x5cad91)+_0x497074[_0x2e6dce(0x1a7)]['slice'](_0x5d3f3d),_e(_0x497074,_0x5cad91,_0x499d95);}function ge(_0x3ff1b5,_0x1c0db8,_0x199a27){const _0x2e9e3e=_0x5777dd;_0x3ff1b5[_0x2e9e3e(0x22a)]=j(_0x3ff1b5['paragraphs'],_0x1c0db8,_0x199a27),_0x3ff1b5[_0x2e9e3e(0x217)]=j(_0x3ff1b5[_0x2e9e3e(0x217)],_0x1c0db8,_0x199a27),_0x3ff1b5['customBlocks']=j(_0x3ff1b5[_0x2e9e3e(0x219)],_0x1c0db8,_0x199a27),_0x3ff1b5[_0x2e9e3e(0x23f)]=ve(_0x3ff1b5[_0x2e9e3e(0x23f)],_0x1c0db8,_0x199a27),_0x3ff1b5['tables']=ye(_0x3ff1b5['tables'],_0x1c0db8,_0x199a27),_0x3ff1b5[_0x2e9e3e(0x1e6)]=N(_0x3ff1b5[_0x2e9e3e(0x1e6)],_0x1c0db8,_0x199a27),_0x3ff1b5['customRanges']=N(_0x3ff1b5[_0x2e9e3e(0x1b9)],_0x1c0db8,_0x199a27),_0x3ff1b5['customDecorations']=N(_0x3ff1b5[_0x2e9e3e(0x251)],_0x1c0db8,_0x199a27),_0x3ff1b5[_0x2e9e3e(0x20a)]=N(_0x3ff1b5[_0x2e9e3e(0x20a)],_0x1c0db8,_0x199a27);}function _e(_0x465e09,_0xd01edf,_0x1e93e0){const _0x18fe11=_0x5777dd;var _0x4253f6,_0x5b3382;_0x465e09[_0x18fe11(0x22a)]=M(_0x465e09[_0x18fe11(0x22a)],_0xd01edf,_0x1e93e0),_0x465e09[_0x18fe11(0x217)]=M(_0x465e09[_0x18fe11(0x217)],_0xd01edf,_0x1e93e0),_0x465e09[_0x18fe11(0x219)]=M(_0x465e09[_0x18fe11(0x219)],_0xd01edf,_0x1e93e0),_0x465e09[_0x18fe11(0x23f)]=(_0x4253f6=be((_0x5b3382=_0x465e09[_0x18fe11(0x23f)])==null?void 0x0:_0x5b3382[_0x18fe11(0x1ed)](_0x2d67b7=>({..._0x2d67b7,'startIndex':_0x2d67b7['st'],'endIndex':_0x2d67b7['ed']})),_0xd01edf,_0x1e93e0))==null?void 0x0:_0x4253f6['map'](_0x15d55b=>{let {startIndex:_0x7029bf,endIndex:_0x43bafa,..._0x26c043}=_0x15d55b;return{..._0x26c043,'st':_0x7029bf,'ed':_0x43bafa};}),_0x465e09['tables']=be(_0x465e09['tables'],_0xd01edf,_0x1e93e0),_0x465e09[_0x18fe11(0x1e6)]=P(_0x465e09[_0x18fe11(0x1e6)],_0xd01edf,_0x1e93e0),_0x465e09[_0x18fe11(0x1b9)]=P(_0x465e09[_0x18fe11(0x1b9)],_0xd01edf,_0x1e93e0),_0x465e09[_0x18fe11(0x251)]=P(_0x465e09['customDecorations'],_0xd01edf,_0x1e93e0),_0x465e09['blockRanges']=P(_0x465e09[_0x18fe11(0x20a)],_0xd01edf,_0x1e93e0);}function j(_0x3b46f2,_0x54e64a,_0x50969c){const _0x4f6484=_0x5777dd;return _0x3b46f2==null?void 0x0:_0x3b46f2[_0x4f6484(0x1ed)](_0xcba5bb=>_0xcba5bb[_0x4f6484(0x200)]>=_0x54e64a?{..._0xcba5bb,'startIndex':_0xcba5bb['startIndex']+_0x50969c}:_0xcba5bb);}function M(_0x9edd79,_0x3986ae,_0x17b95d){const _0x1a0a4b=_0x5777dd;let _0x17b017=_0x3986ae+_0x17b95d;return _0x9edd79==null?void 0x0:_0x9edd79[_0x1a0a4b(0x1ed)](_0x5f0167=>_0x5f0167[_0x1a0a4b(0x200)]>=_0x3986ae&&_0x5f0167[_0x1a0a4b(0x200)]<_0x17b017?null:_0x5f0167[_0x1a0a4b(0x200)]>=_0x17b017?{..._0x5f0167,'startIndex':_0x5f0167['startIndex']-_0x17b95d}:_0x5f0167)['filter'](_0x3d73fe=>_0x3d73fe!=null);}function ve(_0x3621b3,_0x37aa9b,_0xb4194d){const _0x3c7e96=_0x5777dd;return _0x3621b3==null?void 0x0:_0x3621b3[_0x3c7e96(0x1ed)](_0x388028=>_0x388028['st']>=_0x37aa9b?{..._0x388028,'st':_0x388028['st']+_0xb4194d,'ed':_0x388028['ed']+_0xb4194d}:_0x388028['ed']>_0x37aa9b?{..._0x388028,'ed':_0x388028['ed']+_0xb4194d}:_0x388028);}function N(_0x41246e,_0x565117,_0x2b79a1){const _0x456a9e=_0x5777dd;return _0x41246e==null?void 0x0:_0x41246e[_0x456a9e(0x1ed)](_0x399a41=>(0x0,e[_0x456a9e(0x220)])(_0x399a41,_0x565117,_0x2b79a1));}function ye(_0x5b69a0,_0x238af4,_0x1f11bc){const _0x45450e=_0x5777dd;return _0x5b69a0==null?void 0x0:_0x5b69a0['map'](_0x395499=>(0x0,e[_0x45450e(0x1cc)])(_0x395499,_0x238af4,_0x1f11bc));}function P(_0x2bb0dc,_0x1bb610,_0xc8c7ed){const _0xc67e1d=_0x5777dd;return _0x2bb0dc==null?void 0x0:_0x2bb0dc[_0xc67e1d(0x1ed)](_0x535abb=>(0x0,e[_0xc67e1d(0x1ee)])(_0x535abb,_0x1bb610,_0xc8c7ed))[_0xc67e1d(0x25f)](_0xc398db=>_0xc398db!=null);}function be(_0x51c00b,_0x46c705,_0x4a945a){const _0x3c0f6a=_0x5777dd;return _0x51c00b==null?void 0x0:_0x51c00b[_0x3c0f6a(0x1ed)](_0x233e60=>(0x0,e[_0x3c0f6a(0x1b2)])(_0x233e60,_0x46c705,_0x4a945a))[_0x3c0f6a(0x25f)](_0x42b6e7=>_0x42b6e7!=null);}function F(_0x7ea509){'@babel/helpers - typeof';const _0x3b91af=_0x5777dd;return F=typeof Symbol==_0x3b91af(0x198)&&typeof Symbol[_0x3b91af(0x1fd)]==_0x3b91af(0x1fe)?function(_0xd679dd){return typeof _0xd679dd;}:function(_0x3f2b54){const _0x441764=_0x3b91af;return _0x3f2b54&&typeof Symbol==_0x441764(0x198)&&_0x3f2b54[_0x441764(0x252)]===Symbol&&_0x3f2b54!==Symbol[_0x441764(0x222)]?'symbol':typeof _0x3f2b54;},F(_0x7ea509);}function xe(_0x3c0846,_0x5f36f7){const _0x1d424c=_0x5777dd;if(F(_0x3c0846)!=_0x1d424c(0x20b)||!_0x3c0846)return _0x3c0846;var _0x404d04=_0x3c0846[Symbol[_0x1d424c(0x1fa)]];if(_0x404d04!==void 0x0){var _0x781509=_0x404d04[_0x1d424c(0x20f)](_0x3c0846,_0x5f36f7||_0x1d424c(0x1a3));if(F(_0x781509)!=_0x1d424c(0x20b))return _0x781509;throw TypeError(_0x1d424c(0x20d));}return(_0x5f36f7===_0x1d424c(0x225)?String:Number)(_0x3c0846);}function _0x1bcc(_0x5e9d2f,_0x323e71){_0x5e9d2f=_0x5e9d2f-0x18f;const _0x9aff2=_0x9aff();let _0x1bccdc=_0x9aff2[_0x5e9d2f];return _0x1bccdc;}function Se(_0x5cf5a9){const _0x16e6b0=_0x5777dd;var _0x29022f=xe(_0x5cf5a9,_0x16e6b0(0x225));return F(_0x29022f)==_0x16e6b0(0x1fe)?_0x29022f:_0x29022f+'';}function I(_0x55b174,_0x22d5a3,_0xc07cb7){const _0x4fee82=_0x5777dd;return(_0x22d5a3=Se(_0x22d5a3))in _0x55b174?Object[_0x4fee82(0x23c)](_0x55b174,_0x22d5a3,{'value':_0xc07cb7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55b174[_0x22d5a3]=_0xc07cb7,_0x55b174;}var L=class extends e['Disposable']{constructor(..._0xe815ef){const _0x9eaba=_0x5777dd;super(..._0xe815ef),I(this,_0x9eaba(0x1a8),new Map()),I(this,'_change$',new n[(_0x9eaba(0x1b3))]()),I(this,'change$',this[_0x9eaba(0x1a1)][_0x9eaba(0x1c4)]());}[_0x5777dd(0x24a)](_0x4f1612,_0x59ee5b){const _0x48f18c=_0x5777dd;return o(this[_0x48f18c(0x1a8)]['get'](_0x4f1612))[_0x48f18c(0x210)][_0x59ee5b];}[_0x5777dd(0x196)](_0x13a8a9,_0x35532e,_0x5aec5e){const _0x15a30d=_0x5777dd;this['_setResource'](_0x13a8a9,_0x35532e,s(this[_0x15a30d(0x1a8)][_0x15a30d(0x1e1)](_0x13a8a9),_0x35532e,_0x5aec5e));}[_0x5777dd(0x24c)](_0x8dcca7,_0x14e887){const _0x393023=_0x5777dd;this['_setResource'](_0x8dcca7,_0x14e887,c(this[_0x393023(0x1a8)]['get'](_0x8dcca7),_0x14e887));}[_0x5777dd(0x244)](_0x945921){const _0x3cc982=_0x5777dd;return o(this[_0x3cc982(0x1a8)][_0x3cc982(0x1e1)](_0x945921));}['deserialize'](_0x4df533,_0x1b0144){const _0x4c392a=_0x5777dd;this['_resources'][_0x4c392a(0x1ad)](_0x4df533,o(_0x1b0144)),this[_0x4c392a(0x1a1)]['next']({'unitId':_0x4df533});}[_0x5777dd(0x234)](_0x16c713){const _0x5bb00d=_0x5777dd;this['_resources'][_0x5bb00d(0x1f7)](_0x16c713),this[_0x5bb00d(0x1a1)][_0x5bb00d(0x1b6)]({'unitId':_0x16c713});}['dispose'](){const _0x3217db=_0x5777dd;super[_0x3217db(0x231)](),this[_0x3217db(0x1a8)]['clear'](),this[_0x3217db(0x1a1)][_0x3217db(0x21b)]();}[_0x5777dd(0x1db)](_0x1e86e1,_0x4f61a0,_0x3e0977){const _0x451172=_0x5777dd;this[_0x451172(0x1a8)][_0x451172(0x1ad)](_0x1e86e1,_0x3e0977),this[_0x451172(0x1a1)][_0x451172(0x1b6)]({'unitId':_0x1e86e1,'blockId':_0x4f61a0});}};const R={'id':_0x5777dd(0x1ae),'type':e[_0x5777dd(0x1c7)][_0x5777dd(0x218)],'handler':_0x4d66a6=>{const _0x1deaee=_0x5777dd;var _0x294df6;if((0x0,t[_0x1deaee(0x248)])(G(_0x4d66a6)))return!0x1;let _0x146140=(0x0,t[_0x1deaee(0x1a0)])(_0x4d66a6);if(_0x146140)return _0x4d66a6['get'](e[_0x1deaee(0x240)])[_0x1deaee(0x21c)](z['id'],{'startOffset':_0x146140[_0x1deaee(0x1a2)],'endOffset':_0x146140[_0x1deaee(0x257)],'insertionMode':_0x1deaee(0x1f5),'unitId':_0x146140[_0x1deaee(0x232)]});let _0x216deb=Oe(_0x4d66a6);if(!_0x216deb)return!0x1;let _0x3ad173=(_0x294df6=_0x4d66a6['get'](e['IUniverInstanceService'])[_0x1deaee(0x1f0)](e[_0x1deaee(0x259)][_0x1deaee(0x256)]))==null?void 0x0:_0x294df6['getBody'](),_0x3cfbe4=_0x3ad173?(0x0,e[_0x1deaee(0x24f)])(_0x3ad173,_0x216deb):_0x216deb[_0x1deaee(0x200)]+0x1;return _0x4d66a6[_0x1deaee(0x1e1)](e[_0x1deaee(0x240)])[_0x1deaee(0x21c)](z['id'],{'startOffset':_0x3cfbe4,'endOffset':_0x3cfbe4});}},Ce={'id':_0x5777dd(0x209),'type':e[_0x5777dd(0x1c7)][_0x5777dd(0x218)],'handler':()=>!0x0},z={'id':'docs-code.command.insert','type':e[_0x5777dd(0x1c7)][_0x5777dd(0x218)],'handler':(_0x263274,_0x32e0cd)=>{const _0x507e89=_0x5777dd;var _0x7ff632;let _0x5c6d35=W(_0x263274,_0x32e0cd==null?void 0x0:_0x32e0cd['unitId']);if(!_0x5c6d35)return!0x1;let _0x2bf1ae=G(_0x263274);if((0x0,t[_0x507e89(0x248)])(_0x2bf1ae))return!0x1;let _0xdd3b47=_0x5c6d35[_0x507e89(0x19c)]['serialize'](_0x5c6d35[_0x507e89(0x232)]),_0x431d5c=Te(_0x32e0cd,_0x2bf1ae),_0xdcfe55=Ee(_0x5c6d35['previousDocumentData'],_0x431d5c);if(_0xdcfe55){if(_0xdcfe55[_0x507e89(0x21d)]!==e[_0x507e89(0x22e)]['CODE'])return!0x1;let _0xb9744e=g({'blockId':_0xdcfe55[_0x507e89(0x21f)],'documentData':_0x5c6d35[_0x507e89(0x19b)],'metadata':_0xdd3b47});if(!_0xb9744e)return!0x1;let _0x313967=Y(_0x5c6d35['commandService'],_0x5c6d35[_0x507e89(0x25e)],_0x5c6d35[_0x507e89(0x232)],_0x5c6d35[_0x507e89(0x19b)],_0xb9744e[_0x507e89(0x1ce)],z['id'],_0xb9744e[_0x507e89(0x1ac)]);return _0x313967&&_0xb9744e['nextMetadata']&&_0x5c6d35[_0x507e89(0x19c)][_0x507e89(0x1f6)](_0x5c6d35[_0x507e89(0x232)],_0xb9744e[_0x507e89(0x241)]),_0x313967;}let _0x35c118=(_0x7ff632=_0x32e0cd==null?void 0x0:_0x32e0cd[_0x507e89(0x21f)])==null?(0x0,e[_0x507e89(0x22b)])(0x6):_0x7ff632,_0x4d58a7;try{_0x4d58a7=d({'blockId':_0x35c118,'config':_0x32e0cd==null?void 0x0:_0x32e0cd[_0x507e89(0x243)],'documentData':_0x5c6d35[_0x507e89(0x19b)],'endOffset':_0x431d5c==null?void 0x0:_0x431d5c[_0x507e89(0x257)],'insertionMode':_0x32e0cd==null?void 0x0:_0x32e0cd['insertionMode'],'metadata':_0xdd3b47,'startOffset':_0x431d5c==null?void 0x0:_0x431d5c['startOffset']});}catch(_0x26ac71){if(_0x26ac71 instanceof u)return!0x1;throw _0x26ac71;}let _0x2bd35a=Y(_0x5c6d35['commandService'],_0x5c6d35['selectionManager'],_0x5c6d35['unitId'],_0x5c6d35[_0x507e89(0x19b)],_0x4d58a7[_0x507e89(0x1ce)],z['id'],_0x4d58a7[_0x507e89(0x1ac)]);return _0x2bd35a&&_0x4d58a7[_0x507e89(0x241)]&&_0x5c6d35[_0x507e89(0x19c)][_0x507e89(0x1f6)](_0x5c6d35[_0x507e89(0x232)],_0x4d58a7[_0x507e89(0x241)]),_0x2bd35a;}},B={'id':_0x5777dd(0x202),'type':e[_0x5777dd(0x1c7)][_0x5777dd(0x218)],'handler':(_0x13f72d,_0x53a590)=>{const _0x39aeb8=_0x5777dd;if(!_0x53a590)return!0x1;let _0x413448=W(_0x13f72d,_0x53a590[_0x39aeb8(0x232)]);if(!_0x413448)return!0x1;let _0x452a69=h({'blockId':_0x53a590[_0x39aeb8(0x21f)],'config':_0x53a590[_0x39aeb8(0x243)],'documentData':_0x413448[_0x39aeb8(0x19b)],'metadata':_0x413448[_0x39aeb8(0x19c)][_0x39aeb8(0x244)](_0x413448[_0x39aeb8(0x232)])});return _0x452a69[_0x39aeb8(0x241)]&&_0x413448[_0x39aeb8(0x19c)][_0x39aeb8(0x1f6)](_0x413448[_0x39aeb8(0x232)],_0x452a69[_0x39aeb8(0x241)]),!0x0;}},we={'id':_0x5777dd(0x1e0),'type':e[_0x5777dd(0x1c7)][_0x5777dd(0x218)],'handler':(_0x55157d,_0x1da1d8)=>V[_0x5777dd(0x23b)](_0x55157d,_0x1da1d8)},V={'id':'docs-code.command.unwrap','type':e['CommandType'][_0x5777dd(0x218)],'handler':(_0x1f099a,_0x26ff9d)=>{const _0xfad590=_0x5777dd;if(!_0x26ff9d)return!0x1;let _0x10ec66=W(_0x1f099a,_0x26ff9d==null?void 0x0:_0x26ff9d[_0xfad590(0x232)]);if(!_0x10ec66)return!0x1;let _0x477bb8=g({'blockId':_0x26ff9d['blockId'],'documentData':_0x10ec66[_0xfad590(0x19b)],'metadata':_0x10ec66['model'][_0xfad590(0x244)](_0x10ec66[_0xfad590(0x232)])});if(!_0x477bb8)return!0x1;let _0x456e6a=Y(_0x10ec66[_0xfad590(0x258)],_0x10ec66[_0xfad590(0x25e)],_0x10ec66[_0xfad590(0x232)],_0x10ec66[_0xfad590(0x19b)],_0x477bb8[_0xfad590(0x1ce)],V['id'],_0x477bb8['cursorOffset']);return _0x456e6a&&_0x477bb8[_0xfad590(0x241)]&&_0x10ec66[_0xfad590(0x19c)][_0xfad590(0x1f6)](_0x10ec66['unitId'],_0x477bb8[_0xfad590(0x241)]),_0x456e6a;}},H={'id':_0x5777dd(0x255),'type':e[_0x5777dd(0x1c7)][_0x5777dd(0x218)],'handler':(_0x32e0f7,_0x3e4ca2)=>{const _0x2af7f5=_0x5777dd;if(!_0x3e4ca2)return!0x1;let _0x43097c=W(_0x32e0f7,_0x3e4ca2==null?void 0x0:_0x3e4ca2[_0x2af7f5(0x232)]);if(!_0x43097c)return!0x1;let _0x156684=_({'blockId':_0x3e4ca2['blockId'],'documentData':_0x43097c[_0x2af7f5(0x19b)],'metadata':_0x43097c['model'][_0x2af7f5(0x244)](_0x43097c['unitId'])});if(!_0x156684)return!0x1;let _0x297335=Y(_0x43097c[_0x2af7f5(0x258)],_0x43097c[_0x2af7f5(0x25e)],_0x43097c['unitId'],_0x43097c[_0x2af7f5(0x19b)],_0x156684[_0x2af7f5(0x1ce)],H['id'],_0x156684[_0x2af7f5(0x1ac)]);return _0x297335&&_0x156684[_0x2af7f5(0x241)]&&_0x43097c[_0x2af7f5(0x19c)][_0x2af7f5(0x1f6)](_0x43097c[_0x2af7f5(0x232)],_0x156684['nextMetadata']),_0x297335;}},U={'id':_0x5777dd(0x192),'type':e[_0x5777dd(0x1c7)][_0x5777dd(0x218)],'handler':(_0x25eee6,_0x52893a)=>{const _0x47f103=_0x5777dd;var _0x37d54a,_0x12ebf2;let _0x4c36b8=W(_0x25eee6,_0x52893a==null?void 0x0:_0x52893a[_0x47f103(0x232)]);if(!_0x4c36b8)return!0x1;let _0x333719=(_0x37d54a=_0x52893a==null?void 0x0:_0x52893a[_0x47f103(0x1ac)])==null?(_0x12ebf2=G(_0x25eee6))==null?void 0x0:_0x12ebf2[_0x47f103(0x1a2)]:_0x37d54a;if(_0x333719==null)return!0x1;let _0xd44cbe=v({'cursorOffset':_0x333719,'documentData':_0x4c36b8[_0x47f103(0x19b)],'paragraphStartIndex':_0x52893a==null?void 0x0:_0x52893a[_0x47f103(0x1b7)]});return _0xd44cbe?Y(_0x4c36b8[_0x47f103(0x258)],_0x4c36b8[_0x47f103(0x25e)],_0x4c36b8[_0x47f103(0x232)],_0x4c36b8[_0x47f103(0x19b)],_0xd44cbe[_0x47f103(0x1ce)],U['id'],_0xd44cbe[_0x47f103(0x1ac)]):!0x1;}};function W(_0x10dcd7,_0x59e7b7){const _0x3f5777=_0x5777dd;let _0x22a264=_0x10dcd7[_0x3f5777(0x1e1)](e[_0x3f5777(0x1e4)]),_0x447465=_0x59e7b7?_0x22a264[_0x3f5777(0x25a)](_0x59e7b7,e[_0x3f5777(0x259)]['UNIVER_DOC']):_0x22a264[_0x3f5777(0x1f0)](e[_0x3f5777(0x259)]['UNIVER_DOC']);return _0x447465?{'commandService':_0x10dcd7[_0x3f5777(0x1e1)](e['ICommandService']),'model':_0x10dcd7[_0x3f5777(0x1e1)](L),'previousDocumentData':_0x447465[_0x3f5777(0x25d)](),'selectionManager':_0x10dcd7[_0x3f5777(0x1e1)](t[_0x3f5777(0x253)]),'unitId':_0x447465['getUnitId']()}:null;}function G(_0x466e51){const _0x2698f3=_0x5777dd;var _0x243cf5;return(_0x243cf5=_0x466e51[_0x2698f3(0x1e1)](t[_0x2698f3(0x253)])['getTextRanges']())==null?void 0x0:_0x243cf5[0x0];}function Te(_0x3376b1,_0x4ddd27){const _0x1c683f=_0x5777dd;var _0xc74d3b,_0x3ccba8;let _0x199c2b=(_0xc74d3b=_0x3376b1==null?void 0x0:_0x3376b1[_0x1c683f(0x1a2)])==null?_0x4ddd27==null?void 0x0:_0x4ddd27[_0x1c683f(0x1a2)]:_0xc74d3b,_0x546ee4=(_0x3ccba8=_0x3376b1==null?void 0x0:_0x3376b1[_0x1c683f(0x257)])==null?_0x4ddd27==null?void 0x0:_0x4ddd27[_0x1c683f(0x257)]:_0x3ccba8;if(!(_0x199c2b==null||_0x546ee4==null))return{'endOffset':Math['max'](_0x199c2b,_0x546ee4),'startOffset':Math['min'](_0x199c2b,_0x546ee4)};}function Ee(_0x508e22,_0xa7b6ce){const _0x30a132=_0x5777dd;var _0xf12c9;if(!_0xa7b6ce)return;let _0x24bf03=De(_0xa7b6ce);return(_0xf12c9=_0x508e22[_0x30a132(0x1c6)])==null||(_0xf12c9=_0xf12c9[_0x30a132(0x20a)])==null?void 0x0:_0xf12c9[_0x30a132(0x1bd)](_0x2afe66=>{const _0x197b20=_0x30a132;let _0x5d7958=(0x0,e[_0x197b20(0x194)])(_0x2afe66);return _0xa7b6ce['startOffset']===_0xa7b6ce[_0x197b20(0x257)]?(0x0,e['containsInteriorInsertionOffset'])(_0x5d7958,_0x24bf03):(0x0,e[_0x197b20(0x1bf)])(_0x5d7958,_0x24bf03);});}function De(_0x12810e){const _0x2822d2=_0x5777dd;return _0x12810e[_0x2822d2(0x1a2)]===_0x12810e[_0x2822d2(0x257)]?_0x12810e[_0x2822d2(0x1a2)]:_0x12810e[_0x2822d2(0x1a2)]+0x1;}function Oe(_0x414902){const _0x43607c=_0x5777dd;var _0x403e9a,_0x51e13c,_0x16f834;let _0x1eb6da=G(_0x414902);if(!_0x1eb6da)return null;let _0x1b029c=_0x414902[_0x43607c(0x1e1)](e[_0x43607c(0x1e4)])[_0x43607c(0x1f0)](e['UniverInstanceType'][_0x43607c(0x256)]),_0x3de92f=_0x1b029c==null?void 0x0:_0x1b029c[_0x43607c(0x1d7)]();return _0x3de92f?(_0x403e9a=e[_0x43607c(0x1f8)][_0x43607c(0x224)][_0x43607c(0x247)](_0x1eb6da,(_0x51e13c=_0x3de92f[_0x43607c(0x22a)])==null?[]:_0x51e13c,(_0x16f834=_0x3de92f[_0x43607c(0x1a7)])==null?'':_0x16f834)[0x0])==null?null:_0x403e9a:null;}function ke(_0x39d1d1,_0x39159d){const _0x37846a=_0x5777dd;let _0x56c094=_0x39d1d1['body'],_0x155efa=_0x39159d[_0x37846a(0x1c6)],_0x4695ab=(0x0,e[_0x37846a(0x245)])(_0x56c094,_0x155efa);return[_0x4695ab&&_0x155efa?Ae(_0x155efa,_0x4695ab):null,_0x4695ab?null:je(_0x56c094,_0x155efa)][_0x37846a(0x25f)](Boolean)[_0x37846a(0x1df)]((_0x56c6dc,_0xf33cce)=>e['JSONX'][_0x37846a(0x1d6)](_0x56c6dc,_0xf33cce),null);}function Ae(_0x2ff6ea,_0x2e77b4){const _0x370f99=_0x5777dd;let _0x1cf840=new e[(_0x370f99(0x208))]();return _0x1cf840[_0x370f99(0x20e)](_0x2e77b4[_0x370f99(0x206)]),_0x2e77b4[_0x370f99(0x1d8)]>0x0&&_0x1cf840[_0x370f99(0x1ec)](_0x2e77b4[_0x370f99(0x1d8)],(0x0,e[_0x370f99(0x197)])(_0x2ff6ea,_0x2e77b4[_0x370f99(0x206)],_0x2e77b4[_0x370f99(0x206)]+_0x2e77b4[_0x370f99(0x1d8)],!0x1)),_0x2e77b4[_0x370f99(0x1e3)]>0x0&&_0x1cf840['delete'](_0x2e77b4[_0x370f99(0x1e3)]),e[_0x370f99(0x221)][_0x370f99(0x1f9)]()[_0x370f99(0x207)](_0x1cf840['serialize'](),['body']);}function je(_0x321186,_0x470b6b){const _0x244c36=_0x5777dd;let _0x11c64d=[],_0x32bb6f=_0x321186?Ne(_0x321186):void 0x0,_0x4596de=_0x470b6b?Ne(_0x470b6b):void 0x0;for(let _0x15c59e of Me)K(e[_0x244c36(0x221)][_0x244c36(0x1f9)](),[_0x244c36(0x1c6),_0x15c59e],_0x32bb6f==null?void 0x0:_0x32bb6f[_0x15c59e],_0x4596de==null?void 0x0:_0x4596de[_0x15c59e],_0x11c64d);return _0x11c64d[_0x244c36(0x1df)]((_0x97fae8,_0xa553c8)=>e['JSONX']['compose'](_0x97fae8,_0xa553c8),null);}const Me=['paragraphs',_0x5777dd(0x217),_0x5777dd(0x211),'columnGroups',_0x5777dd(0x20a),_0x5777dd(0x219),_0x5777dd(0x1b9),_0x5777dd(0x251),_0x5777dd(0x23f)];function Ne(_0x45eebc){return _0x45eebc;}function K(_0x55b340,_0x5c7295,_0x2e52ba,_0x5cbc88,_0xec328e){const _0x4562a2=_0x5777dd;if(!J(_0x2e52ba,_0x5cbc88)){if(_0x2e52ba==null){_0xec328e[_0x4562a2(0x1b0)](_0x55b340[_0x4562a2(0x1b1)](_0x5c7295,_0x5cbc88));return;}if(_0x5cbc88==null){_0xec328e['push'](_0x55b340[_0x4562a2(0x1eb)](_0x5c7295,_0x2e52ba));return;}if(Array[_0x4562a2(0x1e5)](_0x2e52ba)&&Array['isArray'](_0x5cbc88)){Pe(_0x55b340,_0x5c7295,_0x2e52ba,_0x5cbc88,_0xec328e);return;}if(q(_0x2e52ba)&&q(_0x5cbc88)){new Set([...Object['keys'](_0x2e52ba),...Object[_0x4562a2(0x1a6)](_0x5cbc88)])[_0x4562a2(0x191)](_0x42f19c=>{K(_0x55b340,[..._0x5c7295,_0x42f19c],_0x2e52ba[_0x42f19c],_0x5cbc88[_0x42f19c],_0xec328e);});return;}_0xec328e['push'](_0x55b340[_0x4562a2(0x1e7)](_0x5c7295,_0x2e52ba,_0x5cbc88));}}function Pe(_0x341275,_0x1b36e9,_0x53b654,_0x595a44,_0x2d0245){const _0x1e366c=_0x5777dd;if(_0x53b654[_0x1e366c(0x204)]===_0x595a44[_0x1e366c(0x204)]){_0x53b654[_0x1e366c(0x191)]((_0x432a3d,_0x525f4d)=>K(_0x341275,[..._0x1b36e9,_0x525f4d],_0x432a3d,_0x595a44[_0x525f4d],_0x2d0245));return;}let _0x4bd4a7=0x0;for(;_0x4bd4a7<_0x53b654[_0x1e366c(0x204)]&&_0x4bd4a7<_0x595a44[_0x1e366c(0x204)]&&J(_0x53b654[_0x4bd4a7],_0x595a44[_0x4bd4a7]);)_0x4bd4a7++;let _0xd83ba2=_0x53b654[_0x1e366c(0x204)]-0x1,_0x466433=_0x595a44['length']-0x1;for(;_0xd83ba2>=_0x4bd4a7&&_0x466433>=_0x4bd4a7&&J(_0x53b654[_0xd83ba2],_0x595a44[_0x466433]);)_0xd83ba2--,_0x466433--;for(let _0x405b97=_0xd83ba2;_0x405b97>=_0x4bd4a7;_0x405b97--)_0x2d0245[_0x1e366c(0x1b0)](_0x341275[_0x1e366c(0x1eb)]([..._0x1b36e9,_0x405b97],_0x53b654[_0x405b97]));for(let _0x48a5b5=_0x4bd4a7;_0x48a5b5<=_0x466433;_0x48a5b5++)_0x2d0245[_0x1e366c(0x1b0)](_0x341275[_0x1e366c(0x1b1)]([..._0x1b36e9,_0x48a5b5],_0x595a44[_0x48a5b5]));}function q(_0x13f950){const _0x597f4a=_0x5777dd;return typeof _0x13f950==_0x597f4a(0x20b)&&!!_0x13f950&&!Array['isArray'](_0x13f950);}function J(_0xbf0706,_0x176102){const _0x52b996=_0x5777dd;return JSON[_0x52b996(0x1f2)](_0xbf0706)===JSON[_0x52b996(0x1f2)](_0x176102);}function Y(_0x4ae054,_0x151734,_0x4c0059,_0x1529c4,_0x99fa68,_0x4126e5,_0x459da1){const _0x198375=_0x5777dd;let _0xf5a47e=ke(_0x1529c4,_0x99fa68);return _0xf5a47e?!!_0x4ae054[_0x198375(0x21c)](t['RichTextEditingMutation']['id'],{'unitId':_0x4c0059,'actions':_0xf5a47e,'textRanges':[{'startOffset':_0x459da1,'endOffset':_0x459da1,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x4126e5}):(_0x151734[_0x198375(0x1f3)]([{'startOffset':_0x459da1,'endOffset':_0x459da1}],{'unitId':_0x4c0059,'subUnitId':_0x4c0059},!0x1),!0x0);}const X=_0x5777dd(0x23e);function _0x9aff(){const _0x3fc945=['UniverInstanceType','getUnit','paragraphStyle','endIndex','getSnapshot','selectionManager','filter','toStringTag','add','forEach','docs-code.command.cancel-empty-paragraph','7JEKmZW','getBlockRangeInterval','fromEntries','setCodeConfig','getBodySliceForTextXAction','function','onStarting','SECTION_BREAK','previousDocumentData','model','_injector','pluginName','DOCS_CODE_PLUGIN','getContentInsertRange','_change$','startOffset','default','left','isCodeBoundaryDelete','keys','dataStream','_resources','some','getParagraphContentStartOffsets','2499908zpoLtb','cursorOffset','set','docs-code.command.insert-below','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','push','insertOp','shiftExclusiveRangeOnDelete','Subject','DocsCodeCancelEmptyParagraphCommand','CODE','next','paragraphStartIndex','startTokenOffset','customRanges','11BKLOIh','buildCancelEmptyCodeParagraphActions','getOwnPropertyDescriptor','find','DocsCodeConsumeBoundaryDeleteCommand','containsStreamIndex','merge','paragraph','slice','BLOCK_END','asObservable','Injector','body','CommandType','DocsCodeUpdateCommand','Inject','Disposable','TABLE_CELL_END','shiftExclusiveRangeOnInsert','_docsCodeModel','nextDocumentData','createParagraphId','DataStreamTreeTokenType','_commandService','direction','packageName','containsInteriorInsertionOffset','4112400uqoZxX','compose','getBody','insertLength','endTokenOffset','right','_setResource','paragraphId','bullet','indexOf','reduce','docs-code.command.exit','get','UniverLicensePlugin','deleteLength','IUniverInstanceService','isArray','columnGroups','replaceOp','monospace','6EPeDmp','sort','removeOp','insert','map','shiftInclusiveRangeOnDelete','DocsCodeInsertCommand','getCurrentUnitOfType','decorate','stringify','replaceDocRanges','metadata','insert-new','deserialize','delete','BuildTextUtils','getInstance','toPrimitive','6860388yvcFam','@univerjs-pro/docs-code','iterator','symbol','DocsCodeUnwrapCommand','startIndex','max','docs-code.command.update','_initResource','length','_config','start','editOp','TextX','docs-code.command.consume-boundary-delete','blockRanges','object','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','retain','call','codes','tables','getParagraphContentStartOffset','Plugin','version','registerPluginResource','BLOCK_START','sectionBreaks','COMMAND','customBlocks','normalizeDocsCodeConfig','complete','syncExecuteCommand','blockType','5998740gRwgym','blockId','shiftInclusiveRangeOnInsert','JSONX','prototype','intersectsOperationalIntervals','range','string','textStyle','TABLE_CELL_START','spaceAbove','registerCommand','paragraphs','generateRandomId','_resourceManagerService','2029653EtdrWu','DocumentBlockRangeType','type','indentStart','dispose','unitId','entries','removeUnit','8HnHXoC','DependentOn','DocsCodeRemoveCommand','252234hhEGtG','documentData','disposeWithMe','handler','defineProperty','12570877VbRksu','DOC_CODE_PLUGIN','textRuns','ICommandService','nextMetadata','UniverDocsPlugin','config','serialize','getSingleDataStreamChange','min','getParagraphsInRange','isHeaderFooterSelection','Document\x20body\x20is\x20required','getCodeConfig','spaceBelow','removeCode','javascript','from','getParagraphFollowingBlockOffset','PARAGRAPH','customDecorations','constructor','DocSelectionManagerService','insertionMode','docs-code.command.remove','UNIVER_DOC','endOffset','commandService'];_0x9aff=function(){return _0x3fc945;};return _0x9aff();}var Fe=_0x5777dd(0x1fc),Ie='1.0.0-insiders.20260720-e1e8f51';const Le={};function Z(_0x422966,_0x346a86){return function(_0x3d2130,_0x44878c){_0x346a86(_0x3d2130,_0x44878c,_0x422966);};}function Re(_0x235fea,_0x382a3c,_0x44ff40,_0x5ec950){const _0x44bdf2=_0x5777dd;var _0x4ed874=arguments[_0x44bdf2(0x204)],_0x2e9855=_0x4ed874<0x3?_0x382a3c:_0x5ec950===null?_0x5ec950=Object[_0x44bdf2(0x1bc)](_0x382a3c,_0x44ff40):_0x5ec950,_0x371a11;if(typeof Reflect==_0x44bdf2(0x20b)&&typeof Reflect['decorate']=='function')_0x2e9855=Reflect[_0x44bdf2(0x1f1)](_0x235fea,_0x382a3c,_0x44ff40,_0x5ec950);else{for(var _0x4e94c1=_0x235fea[_0x44bdf2(0x204)]-0x1;_0x4e94c1>=0x0;_0x4e94c1--)(_0x371a11=_0x235fea[_0x4e94c1])&&(_0x2e9855=(_0x4ed874<0x3?_0x371a11(_0x2e9855):_0x4ed874>0x3?_0x371a11(_0x382a3c,_0x44ff40,_0x2e9855):_0x371a11(_0x382a3c,_0x44ff40))||_0x2e9855);}return _0x4ed874>0x3&&_0x2e9855&&Object[_0x44bdf2(0x23c)](_0x382a3c,_0x44ff40,_0x2e9855),_0x2e9855;}let Q=class extends e[_0x5777dd(0x1ca)]{constructor(_0x409872,_0x46df9d){const _0x3814e6=_0x5777dd;super(),this[_0x3814e6(0x22c)]=_0x409872,this[_0x3814e6(0x1cd)]=_0x46df9d,this[_0x3814e6(0x203)]();}['_initResource'](){const _0xb21ec2=_0x5777dd;this['disposeWithMe'](this['_resourceManagerService'][_0xb21ec2(0x215)]({'pluginName':X,'businesses':[e[_0xb21ec2(0x259)][_0xb21ec2(0x256)]],'toJson':_0x4cd647=>JSON[_0xb21ec2(0x1f2)](this['_docsCodeModel'][_0xb21ec2(0x244)](_0x4cd647)),'parseJson':_0x3457ec=>o(JSON['parse'](_0x3457ec)),'onLoad':(_0x34f1f5,_0x228a7a)=>this[_0xb21ec2(0x1cd)][_0xb21ec2(0x1f6)](_0x34f1f5,_0x228a7a),'onUnLoad':_0x150926=>this[_0xb21ec2(0x1cd)]['removeUnit'](_0x150926)}));}};Q=Re([Z(0x0,e['IResourceManagerService']),Z(0x1,(0x0,e[_0x5777dd(0x1c9)])(L))],Q);let $=class extends e[_0x5777dd(0x213)]{constructor(_0xc3e929=Le,_0x349df3,_0xf1bed9,_0x17385a){const _0x455e18=_0x5777dd;super(),this[_0x455e18(0x205)]=_0xc3e929,this[_0x455e18(0x19d)]=_0x349df3,this[_0x455e18(0x1d1)]=_0xf1bed9,this[_0x455e18(0x20c)]=_0x17385a;let {..._0x2faef4}=(0x0,e[_0x455e18(0x1c0)])({},Le,this['_config']);this[_0x455e18(0x20c)]['setConfig']('docs-code.config',_0x2faef4);}[_0x5777dd(0x199)](){const _0x160ce9=_0x5777dd;this[_0x160ce9(0x19d)][_0x160ce9(0x190)]([L]),this[_0x160ce9(0x19d)][_0x160ce9(0x190)]([Q]),this[_0x160ce9(0x19d)][_0x160ce9(0x1e1)](L),this[_0x160ce9(0x19d)][_0x160ce9(0x1e1)](Q),[z,R,B,V,H,we,U,Ce][_0x160ce9(0x191)](_0x1ee48f=>this[_0x160ce9(0x23a)](this[_0x160ce9(0x1d1)][_0x160ce9(0x229)](_0x1ee48f)));}};I($,_0x5777dd(0x19e),X),I($,_0x5777dd(0x1d3),Fe),I($,_0x5777dd(0x214),Ie),I($,_0x5777dd(0x22f),e['UniverInstanceType'][_0x5777dd(0x256)]),$=Re([(0x0,e[_0x5777dd(0x236)])(r[_0x5777dd(0x1e2)],t[_0x5777dd(0x242)]),Z(0x1,(0x0,e[_0x5777dd(0x1c9)])(e[_0x5777dd(0x1c5)])),Z(0x2,e['ICommandService']),Z(0x3,e['IConfigService'])],$),exports[_0x5777dd(0x19f)]=X,exports[_0x5777dd(0x1b4)]=U,exports[_0x5777dd(0x1be)]=Ce,exports['DocsCodeInsertBelowCommand']=R,exports[_0x5777dd(0x1ef)]=z,exports['DocsCodeModel']=L,exports[_0x5777dd(0x237)]=H,exports[_0x5777dd(0x1ff)]=V,exports[_0x5777dd(0x1c8)]=B,Object['defineProperty'](exports,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x5777dd(0x1bb)]=v,exports[_0x5777dd(0x1a5)]=x,exports[_0x5777dd(0x21a)]=a;
|
|
1
|
+
const _0x1d297a=_0x477c;(function(_0xd997f7,_0x59d49c){const _0x4167fa=_0x477c,_0x805bee=_0xd997f7();while(!![]){try{const _0x5ca88e=parseInt(_0x4167fa(0x26a))/0x1*(parseInt(_0x4167fa(0x227))/0x2)+-parseInt(_0x4167fa(0x204))/0x3+-parseInt(_0x4167fa(0x205))/0x4*(parseInt(_0x4167fa(0x270))/0x5)+-parseInt(_0x4167fa(0x27b))/0x6+parseInt(_0x4167fa(0x283))/0x7+-parseInt(_0x4167fa(0x244))/0x8*(-parseInt(_0x4167fa(0x24e))/0x9)+-parseInt(_0x4167fa(0x215))/0xa*(-parseInt(_0x4167fa(0x22e))/0xb);if(_0x5ca88e===_0x59d49c)break;else _0x805bee['push'](_0x805bee['shift']());}catch(_0x59076a){_0x805bee['push'](_0x805bee['shift']());}}}(_0x4481,0x29c33),Object['defineProperty'](exports,Symbol[_0x1d297a(0x1f3)],{'value':_0x1d297a(0x1e5)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x2a4065){return{...i,..._0x2a4065};}function o(_0xddd2ea){const _0x48f6e8=_0x1d297a;var _0x8f9990;let _0x27d50d=(_0x8f9990=_0xddd2ea==null?void 0x0:_0xddd2ea[_0x48f6e8(0x25a)])==null?{}:_0x8f9990;return{'codes':Object[_0x48f6e8(0x20d)](Object[_0x48f6e8(0x28e)](_0x27d50d)[_0x48f6e8(0x261)](([_0x5e6b4a,_0x552bea])=>[_0x5e6b4a,a(_0x552bea)]))};}function s(_0x3a1489,_0x245104,_0x10075d){const _0x264be2=_0x1d297a;let _0x20c1e2=o(_0x3a1489);return _0x20c1e2[_0x264be2(0x25a)][_0x245104]=a({..._0x20c1e2[_0x264be2(0x25a)][_0x245104],..._0x10075d}),_0x20c1e2;}function c(_0x58a6fb,_0x5f1f7e){const _0x147376=_0x1d297a;let _0x31effb=o(_0x58a6fb);return delete _0x31effb[_0x147376(0x25a)][_0x5f1f7e],_0x31effb;}const l=_0x1d297a(0x276);var u=class extends Error{constructor(_0x2d6907=_0x1d297a(0x1ca)){super(_0x2d6907);}};function d(_0x1b31fc){const _0x5c1317=_0x1d297a;var _0x1f5bce,_0x2347d3,_0x12114a;let _0x4fcbe6=C(_0x1b31fc[_0x5c1317(0x286)]),_0x5aa2b6=T(_0x4fcbe6),_0x267f4c=p(_0x1b31fc[_0x5c1317(0x24c)],_0x1b31fc[_0x5c1317(0x224)]),_0x4d8aaf=_0x267f4c?(_0x1f5bce=_0x5aa2b6[_0x5c1317(0x232)])==null?void 0x0:_0x1f5bce['find'](_0x4954a6=>{const _0x1cf606=_0x5c1317;let _0xacc57b=(0x0,e['getBlockRangeInterval'])(_0x4954a6);return _0xacc57b['startOffset']===_0x267f4c[_0x1cf606(0x24c)]&&_0xacc57b[_0x1cf606(0x224)]===_0x267f4c['endOffset'];}):void 0x0,{startOffset:_0x1970b1,endOffset:_0x266ab8}=_0x4d8aaf?_0x267f4c:oe(_0x5aa2b6,_0x1b31fc[_0x5c1317(0x24c)],_0x1b31fc['endOffset'],_0x1b31fc[_0x5c1317(0x22f)]);if(!_0x4d8aaf&&m(_0x5aa2b6,_0x1970b1,_0x266ab8))throw new u('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x259320=le(_0x5aa2b6,_0x1970b1,_0x266ab8),_0x1d9642=(_0x2347d3=_0x4d8aaf==null?void 0x0:_0x4d8aaf['blockId'])==null?_0x1b31fc[_0x5c1317(0x284)]:_0x2347d3,_0x3eef47=s(_0x1b31fc[_0x5c1317(0x209)],_0x1d9642,{...i,..._0x1b31fc[_0x5c1317(0x278)]});if(_0x4d8aaf)return _0x4d8aaf[_0x5c1317(0x1f2)]=e['DocumentBlockRangeType']['CODE'],f(_0x5aa2b6,_0x1970b1,_0x266ab8),te(_0x5aa2b6,_0x1970b1,_0x266ab8,_0x259320),O(_0x5aa2b6,_0x4d8aaf),{'nextDocumentData':_0x4fcbe6,'nextMetadata':_0x3eef47,'cursorOffset':_0x1970b1+0x1};if(_0x1970b1===_0x266ab8){var _0x408088,_0x5a4dd4;let _0x31ad1e=''+e[_0x5c1317(0x1f8)][_0x5c1317(0x1fc)]+e[_0x5c1317(0x1f8)][_0x5c1317(0x1cc)]+e['DataStreamTreeTokenType']['BLOCK_END'];k(_0x5aa2b6,_0x1970b1,_0x31ad1e,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x408088=_0x5aa2b6[_0x5c1317(0x22c)])==null?void 0x0:_0x408088[_0x5c1317(0x261)](_0x2fb123=>_0x2fb123[_0x5c1317(0x21c)]))),'paragraphStyle':ee(!0x0,!0x0,_0x259320)}],'blockRanges':[{'blockId':_0x1d9642,'blockType':e[_0x5c1317(0x255)][_0x5c1317(0x20b)],'startIndex':0x0,'endIndex':_0x31ad1e['length']-0x1}]});let _0x582838=(_0x5a4dd4=_0x5aa2b6[_0x5c1317(0x232)])==null?void 0x0:_0x5a4dd4[_0x5c1317(0x28a)](_0x2a0215=>_0x2a0215[_0x5c1317(0x284)]===_0x1d9642);return _0x582838&&O(_0x5aa2b6,_0x582838),{'nextDocumentData':_0x4fcbe6,'nextMetadata':_0x3eef47,'cursorOffset':_0x1970b1+0x1};}k(_0x5aa2b6,_0x266ab8,e[_0x5c1317(0x1f8)][_0x5c1317(0x251)]),k(_0x5aa2b6,_0x1970b1,e[_0x5c1317(0x1f8)][_0x5c1317(0x1fc)]),te(_0x5aa2b6,_0x1970b1,_0x266ab8+0x1,_0x259320);let _0x14374d={'blockId':_0x1d9642,'blockType':e[_0x5c1317(0x255)][_0x5c1317(0x20b)],'startIndex':_0x1970b1,'endIndex':_0x266ab8+0x1};return _0x5aa2b6[_0x5c1317(0x232)]=[...(_0x12114a=_0x5aa2b6[_0x5c1317(0x232)])==null?[]:_0x12114a,_0x14374d][_0x5c1317(0x207)]((_0x1c22c5,_0x8b20f8)=>_0x1c22c5[_0x5c1317(0x259)]-_0x8b20f8[_0x5c1317(0x259)]),O(_0x5aa2b6,_0x14374d),{'nextDocumentData':_0x4fcbe6,'nextMetadata':_0x3eef47,'cursorOffset':_0x1970b1+0x1};}function f(_0x236847,_0x123d9f,_0xbd6dcf){const _0x779b88=_0x1d297a;var _0x22fcaf;((_0x22fcaf=_0x236847['paragraphs'])==null?[]:_0x22fcaf)[_0x779b88(0x1fd)](_0xa9d7ae=>_0xa9d7ae[_0x779b88(0x259)]>_0x123d9f&&_0xa9d7ae[_0x779b88(0x259)]<_0xbd6dcf)[_0x779b88(0x212)](_0x3f54e4=>{const _0x39ae1a=_0x779b88;var _0x14dcb0;let _0xa65daf={...(_0x14dcb0=_0x3f54e4[_0x39ae1a(0x1cb)])==null?{}:_0x14dcb0};delete _0xa65daf['spaceAbove'],delete _0xa65daf[_0x39ae1a(0x1d7)],_0x3f54e4[_0x39ae1a(0x1cb)]=_0xa65daf;});}function p(_0x71675,_0x56ae8f){const _0x431cf8=_0x1d297a;return _0x71675==null||_0x56ae8f==null||_0x71675===_0x56ae8f?null:{'startOffset':Math[_0x431cf8(0x28b)](_0x71675,_0x56ae8f),'endOffset':Math[_0x431cf8(0x22b)](_0x71675,_0x56ae8f)};}function m(_0xac3203,_0xfd5f33,_0x19a7aa){const _0x3a25df=_0x1d297a;var _0x259c65;return((_0x259c65=_0xac3203[_0x3a25df(0x232)])==null?[]:_0x259c65)[_0x3a25df(0x264)](_0x41209e=>{const _0x18d3f7=_0x3a25df;let _0x1abd82=(0x0,e[_0x18d3f7(0x248)])(_0x41209e);return _0xfd5f33===_0x19a7aa?(0x0,e[_0x18d3f7(0x1da)])(_0x1abd82,_0xfd5f33):(0x0,e['intersectsOperationalIntervals'])(_0x1abd82,{'startOffset':_0xfd5f33,'endOffset':_0x19a7aa});});}function h(_0x2ef1ba){const _0x1fae09=_0x1d297a;return{'nextDocumentData':C(_0x2ef1ba[_0x1fae09(0x286)]),'nextMetadata':s(_0x2ef1ba['metadata'],_0x2ef1ba[_0x1fae09(0x284)],_0x2ef1ba[_0x1fae09(0x278)]),'cursorOffset':0x0};}function g(_0x26a32d){const _0x58001e=_0x1d297a;let _0x5775b0=C(_0x26a32d['documentData']),_0x5b617d=T(_0x5775b0),_0x4bbba1=b(_0x5b617d,_0x26a32d[_0x58001e(0x284)]);if(!_0x4bbba1)return null;let _0x2f662e=ie(_0x5b617d,_0x4bbba1);return{'nextDocumentData':_0x5775b0,'nextMetadata':c(_0x26a32d[_0x58001e(0x209)],_0x26a32d[_0x58001e(0x284)]),'cursorOffset':_0x2f662e};}function _(_0x2ec01e){const _0x2997ff=_0x1d297a;var _0x455fdb;let _0x39fe3f=C(_0x2ec01e['documentData']),_0x27eb5b=T(_0x39fe3f),_0x4305a9=b(_0x27eb5b,_0x2ec01e[_0x2997ff(0x284)]);if(!_0x4305a9)return null;let _0x15b430=(0x0,e[_0x2997ff(0x248)])(_0x4305a9);return A(_0x27eb5b,_0x15b430[_0x2997ff(0x24c)],_0x15b430[_0x2997ff(0x224)]),_0x27eb5b[_0x2997ff(0x232)]=(_0x455fdb=_0x27eb5b['blockRanges'])==null?void 0x0:_0x455fdb[_0x2997ff(0x1fd)](_0x149176=>_0x149176['blockId']!==_0x2ec01e['blockId']),{'nextDocumentData':_0x39fe3f,'nextMetadata':c(_0x2ec01e[_0x2997ff(0x209)],_0x2ec01e[_0x2997ff(0x284)]),'cursorOffset':_0x4305a9[_0x2997ff(0x259)]};}function v(_0x53b507){const _0x3b3ac1=_0x1d297a;let _0x34f1cf=C(_0x53b507[_0x3b3ac1(0x286)]),_0x358dd6=T(_0x34f1cf),_0xdbe296=S(_0x358dd6,_0x53b507[_0x3b3ac1(0x1f6)]);return _0xdbe296&&y(_0x34f1cf,_0x358dd6,_0xdbe296,_0x53b507[_0x3b3ac1(0x1f6)],_0x53b507['paragraphStartIndex'])||null;}function y(_0x3f1be8,_0x434980,_0x38db45,_0x493dbf,_0x41edf1){const _0x2eb182=_0x1d297a;let _0x5b33e7=he(_0x434980,_0x38db45,_0x493dbf,_0x41edf1);if(!_0x5b33e7)return null;let _0x1fc529=_0x5b33e7['endTokenOffset']-0x1;return A(_0x434980,_0x5b33e7['paragraph'][_0x2eb182(0x259)],_0x5b33e7[_0x2eb182(0x271)]['startIndex']+0x1),{'nextDocumentData':_0x3f1be8,'cursorOffset':_0x1fc529};}function b(_0x23620b,_0x51fc6b){const _0x54c509=_0x1d297a;var _0x2a8bfb;return _0x23620b==null||(_0x2a8bfb=_0x23620b['blockRanges'])==null?void 0x0:_0x2a8bfb[_0x54c509(0x28a)](_0x59aa79=>_0x59aa79['blockType']===e[_0x54c509(0x255)][_0x54c509(0x20b)]&&_0x59aa79[_0x54c509(0x284)]===_0x51fc6b);}function x(_0x41bd57){const _0x1cb222=_0x1d297a;var _0x1cd868;let _0x1f7507=_0x41bd57['documentData']['body'];if(!_0x1f7507)return!0x1;let _0x134a07=_0x41bd57[_0x1cb222(0x1e2)]===_0x1cb222(0x1d8)?_0x41bd57[_0x1cb222(0x1f6)]-0x1:_0x41bd57[_0x1cb222(0x1f6)],_0x36f8e9=_0x41bd57[_0x1cb222(0x1e2)]===_0x1cb222(0x27e)?_0x41bd57[_0x1cb222(0x1f6)]+0x1:_0x134a07;return((_0x1cd868=_0x1f7507[_0x1cb222(0x232)])==null?[]:_0x1cd868)[_0x1cb222(0x264)](_0x4c49c0=>_0x4c49c0['blockType']===e[_0x1cb222(0x255)]['CODE']?_0x134a07===_0x4c49c0[_0x1cb222(0x259)]||_0x134a07===_0x4c49c0[_0x1cb222(0x26d)]||_0x36f8e9===_0x4c49c0['startIndex']||_0x36f8e9===_0x4c49c0[_0x1cb222(0x26d)]:!0x1);}function S(_0x4b066e,_0x81ae2d){const _0x3a0af5=_0x1d297a;var _0x442b09;return(_0x442b09=_0x4b066e[_0x3a0af5(0x232)])==null?void 0x0:_0x442b09[_0x3a0af5(0x28a)](_0x6bee1a=>{const _0x46e5a0=_0x3a0af5;let _0x1415ce=D(_0x6bee1a);return _0x6bee1a[_0x46e5a0(0x1f2)]===e[_0x46e5a0(0x255)][_0x46e5a0(0x20b)]&&_0x6bee1a['startIndex']<=_0x81ae2d&&_0x81ae2d<=_0x1415ce+0x2;});}function ee(_0x156180,_0x6af431,_0x4bcd6a=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x156180&&_0x4bcd6a?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function te(_0x53859d,_0xf915e3,_0x454522,_0x1aa53c=!0x1){const _0x33b87c=_0x1d297a;var _0x20f24c;let _0x57a05c=((_0x20f24c=_0x53859d[_0x33b87c(0x22c)])==null?[]:_0x20f24c)[_0x33b87c(0x1fd)](_0x215b1b=>_0x215b1b[_0x33b87c(0x259)]>_0xf915e3&&_0x215b1b['startIndex']<_0x454522);_0x57a05c[_0x33b87c(0x212)]((_0x27c0ab,_0x2878e3)=>{const _0xbca9db=_0x33b87c;var _0xda8107;_0x27c0ab[_0xbca9db(0x1cb)]={...(_0xda8107=_0x27c0ab[_0xbca9db(0x1cb)])==null?{}:_0xda8107,...ee(_0x2878e3===0x0,_0x2878e3===_0x57a05c['length']-0x1,_0x1aa53c)};});}function ne(_0x277cc5){const _0x48c5f8=_0x1d297a;var _0x4bd0ea,_0x365942;let _0x5f08e9={..._0x277cc5==null?{}:_0x277cc5};return delete _0x5f08e9[_0x48c5f8(0x1e6)],delete _0x5f08e9[_0x48c5f8(0x225)],delete _0x5f08e9[_0x48c5f8(0x20c)],delete _0x5f08e9['spaceBelow'],((_0x4bd0ea=_0x5f08e9[_0x48c5f8(0x1f0)])==null?void 0x0:_0x4bd0ea['ff'])===l&&((_0x365942=_0x5f08e9[_0x48c5f8(0x1f0)])==null?void 0x0:_0x365942['fs'])===0xc&&delete _0x5f08e9[_0x48c5f8(0x1f0)],_0x5f08e9;}function re(_0xcb8ea6,_0x56bfe9){const _0x74410c=_0x1d297a;var _0x12e83b;let _0x50d752=D(_0x56bfe9);return((_0x12e83b=_0xcb8ea6[_0x74410c(0x22c)])==null?[]:_0x12e83b)[_0x74410c(0x1fd)](_0x5d9537=>_0x5d9537[_0x74410c(0x259)]>_0x56bfe9[_0x74410c(0x259)]&&_0x5d9537['startIndex']<_0x50d752);}function ie(_0x2b2e20,_0x5bc6ea){const _0x30ce24=_0x1d297a;var _0x355064;let _0x597a16=D(_0x5bc6ea);return re(_0x2b2e20,_0x5bc6ea)[_0x30ce24(0x212)](_0x197d28=>{const _0x4967a4=_0x30ce24;_0x197d28[_0x4967a4(0x1cb)]=ne(_0x197d28[_0x4967a4(0x1cb)]);}),A(_0x2b2e20,_0x597a16,_0x597a16+0x1),A(_0x2b2e20,_0x5bc6ea[_0x30ce24(0x259)],_0x5bc6ea['startIndex']+0x1),_0x2b2e20[_0x30ce24(0x232)]=(_0x355064=_0x2b2e20[_0x30ce24(0x232)])==null?void 0x0:_0x355064[_0x30ce24(0x1fd)](_0x467c2f=>_0x467c2f[_0x30ce24(0x284)]!==_0x5bc6ea[_0x30ce24(0x284)]),_0x5bc6ea[_0x30ce24(0x259)];}function C(_0x1eee01){const _0xbbd899=_0x1d297a;return{..._0x1eee01,'body':_0x1eee01[_0xbbd899(0x1ef)]?ae(_0x1eee01['body']):_0x1eee01[_0xbbd899(0x1ef)]};}function ae(_0x56793d){const _0x1c4174=_0x1d297a;var _0x25193f,_0x1264cc,_0x15e63d,_0x4ed6d2,_0x26a7c3,_0x2776a6,_0x366cc5,_0x4d457b,_0x4a0ead;return{..._0x56793d,'paragraphs':(_0x25193f=_0x56793d[_0x1c4174(0x22c)])==null?void 0x0:_0x25193f[_0x1c4174(0x261)](_0x170881=>({..._0x170881,'bullet':w(_0x170881[_0x1c4174(0x1d0)]),'paragraphStyle':w(_0x170881['paragraphStyle'])})),'sectionBreaks':(_0x1264cc=_0x56793d[_0x1c4174(0x25c)])==null?void 0x0:_0x1264cc[_0x1c4174(0x261)](_0x4413cd=>({..._0x4413cd})),'textRuns':(_0x15e63d=_0x56793d['textRuns'])==null?void 0x0:_0x15e63d[_0x1c4174(0x261)](_0x3ae623=>({..._0x3ae623})),'tables':(_0x4ed6d2=_0x56793d[_0x1c4174(0x1df)])==null?void 0x0:_0x4ed6d2[_0x1c4174(0x261)](_0x4111f2=>({..._0x4111f2})),'columnGroups':(_0x26a7c3=_0x56793d[_0x1c4174(0x20e)])==null?void 0x0:_0x26a7c3[_0x1c4174(0x261)](_0x3f1cb5=>{const _0x23754c=_0x1c4174;var _0x941bc4;return{..._0x3f1cb5,'columns':(_0x941bc4=_0x3f1cb5[_0x23754c(0x256)])==null?void 0x0:_0x941bc4[_0x23754c(0x261)](_0x898c6a=>w(_0x898c6a))};}),'blockRanges':(_0x2776a6=_0x56793d[_0x1c4174(0x232)])==null?void 0x0:_0x2776a6[_0x1c4174(0x261)](_0x30818c=>({..._0x30818c})),'customRanges':(_0x366cc5=_0x56793d[_0x1c4174(0x25d)])==null?void 0x0:_0x366cc5[_0x1c4174(0x261)](_0x42013c=>({..._0x42013c})),'customDecorations':(_0x4d457b=_0x56793d[_0x1c4174(0x208)])==null?void 0x0:_0x4d457b['map'](_0x317667=>({..._0x317667})),'customBlocks':(_0x4a0ead=_0x56793d[_0x1c4174(0x246)])==null?void 0x0:_0x4a0ead['map'](_0x2ffb18=>({..._0x2ffb18}))};}function w(_0x5ec221){const _0x595f39=_0x1d297a;return Array[_0x595f39(0x1d2)](_0x5ec221)?_0x5ec221['map'](_0x214161=>w(_0x214161)):!_0x5ec221||typeof _0x5ec221!=_0x595f39(0x252)?_0x5ec221:Object[_0x595f39(0x20d)](Object[_0x595f39(0x28e)](_0x5ec221)[_0x595f39(0x261)](([_0x1e89ed,_0x344b7d])=>[_0x1e89ed,w(_0x344b7d)]));}function _0x477c(_0x245f47,_0x1ae522){_0x245f47=_0x245f47-0x1ca;const _0x4481fb=_0x4481();let _0x477c02=_0x4481fb[_0x245f47];return _0x477c02;}function T(_0x19885b){const _0x59cafd=_0x1d297a;if(!_0x19885b[_0x59cafd(0x1ef)])throw Error(_0x59cafd(0x233));return _0x19885b[_0x59cafd(0x1ef)];}function oe(_0x355ad7,_0x47794f,_0x1cf7e1,_0xc35ecd='convert-paragraph'){const _0x3d0ac0=_0x1d297a;if(_0x47794f==null||_0x1cf7e1==null){let _0x3c8c94=ce(_0x355ad7);return{'startOffset':_0x3c8c94,'endOffset':_0x3c8c94};}let _0x2fc672=Math[_0x3d0ac0(0x28b)](_0x47794f,_0x1cf7e1),_0x1b1495=Math[_0x3d0ac0(0x22b)](_0x47794f,_0x1cf7e1),_0x1ea39a=pe(_0x355ad7,_0x2fc672,_0x1b1495);return _0x2fc672===_0x1b1495?_0xc35ecd===_0x3d0ac0(0x280)?{'startOffset':_0x2fc672,'endOffset':_0x1b1495}:se(_0x355ad7,_0x2fc672,_0x1ea39a):ue(_0x355ad7,_0x2fc672,_0x1b1495,_0x1ea39a);}function se(_0x4753c0,_0x1740f8,_0x5be153){const _0x11c9f0=_0x1d297a;let _0x200d89=de(_0x4753c0,_0x1740f8);if(_0x200d89){let _0xa28e47=E(_0x4753c0,_0x200d89,_0x5be153);if(_0xa28e47<_0x200d89['startIndex'])return{'startOffset':_0xa28e47,'endOffset':_0x5be153?Math['min'](_0x200d89[_0x11c9f0(0x259)]+0x1,_0x5be153['endOffset']):_0x200d89[_0x11c9f0(0x259)]+0x1};}let _0x21ce7e=_0x1740f8===0x0&&_0x4753c0[_0x11c9f0(0x28d)][0x0]===e[_0x11c9f0(0x1f8)]['PARAGRAPH']?0x1:_0x1740f8;return{'startOffset':_0x21ce7e,'endOffset':_0x21ce7e};}function ce(_0x3b21ea){const _0x1294ec=_0x1d297a;return _0x3b21ea[_0x1294ec(0x28d)][_0x1294ec(0x1db)](e['DataStreamTreeTokenType'][_0x1294ec(0x1e1)])?Math['max'](0x0,_0x3b21ea[_0x1294ec(0x28d)][_0x1294ec(0x240)]-0x1):_0x3b21ea[_0x1294ec(0x28d)][_0x1294ec(0x240)];}function le(_0x562690,_0x219366,_0x3b772c){const _0x502235=_0x1d297a;var _0xf0fc6c;let _0x39c7ce=Math[_0x502235(0x28b)](_0x219366,_0x3b772c),_0x5cd4c3=Math[_0x502235(0x22b)](_0x219366,_0x3b772c);return!!((_0xf0fc6c=_0x562690[_0x502235(0x1df)])!=null&&_0xf0fc6c[_0x502235(0x264)](_0x1cdca6=>_0x39c7ce>_0x1cdca6[_0x502235(0x259)]&&_0x39c7ce<_0x1cdca6[_0x502235(0x26d)]||_0x5cd4c3>_0x1cdca6[_0x502235(0x259)]&&_0x5cd4c3<_0x1cdca6[_0x502235(0x26d)]||_0x39c7ce<=_0x1cdca6[_0x502235(0x259)]&&_0x5cd4c3>=_0x1cdca6['endIndex']));}function ue(_0x546881,_0x6f90b4,_0x3dc7e9,_0x1c2ba2){const _0x149a24=_0x1d297a;var _0x2e2357,_0x36f44a;let _0x12f361=[...(_0x2e2357=_0x546881[_0x149a24(0x22c)])==null?[]:_0x2e2357][_0x149a24(0x207)]((_0x336859,_0x264468)=>_0x336859['startIndex']-_0x264468[_0x149a24(0x259)]),_0xa9e519=(0x0,e[_0x149a24(0x223)])(_0x546881),_0x321cb8=_0x12f361['find'](_0x33eb31=>E(_0x546881,_0x33eb31,_0x1c2ba2,_0xa9e519)<=_0x6f90b4&&_0x6f90b4<=_0x33eb31[_0x149a24(0x259)]),_0x1befa4=(_0x36f44a=_0x12f361[_0x149a24(0x28a)](_0x2a4559=>_0x2a4559['startIndex']>=_0x3dc7e9-0x1))==null?_0x12f361[_0x12f361[_0x149a24(0x240)]-0x1]:_0x36f44a;return{'startOffset':_0x321cb8?E(_0x546881,_0x321cb8,_0x1c2ba2,_0xa9e519):_0x6f90b4,'endOffset':_0x1befa4?fe(_0x1befa4,_0x1c2ba2):_0x3dc7e9};}function de(_0x395063,_0x1e0e0e){const _0x3e4e58=_0x1d297a;var _0x58cb41;let _0x3d33e9=[...(_0x58cb41=_0x395063[_0x3e4e58(0x22c)])==null?[]:_0x58cb41][_0x3e4e58(0x207)]((_0x3b2d4c,_0x1acf3e)=>_0x3b2d4c[_0x3e4e58(0x259)]-_0x1acf3e[_0x3e4e58(0x259)]),_0xc63296=(0x0,e[_0x3e4e58(0x223)])(_0x395063);return _0x3d33e9[_0x3e4e58(0x28a)](_0xb5f040=>{const _0x20bed4=_0x3e4e58;var _0x16ca4b;return((_0x16ca4b=_0xc63296[_0x20bed4(0x21b)](_0xb5f040[_0x20bed4(0x259)]))==null?0x0:_0x16ca4b)<=_0x1e0e0e&&_0x1e0e0e<=_0xb5f040[_0x20bed4(0x259)];});}function E(_0x32ca33,_0x1c7e03,_0x5b77a5,_0x131a6c){const _0x334558=_0x1d297a;var _0x19969b;let _0x7e6f24=(_0x19969b=_0x131a6c==null?void 0x0:_0x131a6c[_0x334558(0x21b)](_0x1c7e03[_0x334558(0x259)]))==null?(0x0,e[_0x334558(0x1ea)])(_0x32ca33,_0x1c7e03):_0x19969b;return _0x5b77a5?Math['max'](_0x7e6f24,_0x5b77a5['startOffset']):_0x7e6f24;}function fe(_0xc02d5,_0x19d808){const _0x1f4986=_0x1d297a;let _0x3f2f43=_0xc02d5[_0x1f4986(0x259)]+0x1;return _0x19d808?Math[_0x1f4986(0x28b)](_0x3f2f43,_0x19d808[_0x1f4986(0x224)]):_0x3f2f43;}function pe(_0x7fb476,_0x5191a7,_0x7a3f9f){const _0x2bbfb4=_0x1d297a;let _0x4da334=me(_0x7fb476,_0x5191a7),_0x581e7e=me(_0x7fb476,_0x5191a7===_0x7a3f9f?_0x7a3f9f:Math['max'](_0x5191a7,_0x7a3f9f-0x1));if(!(!_0x4da334&&!_0x581e7e)){if(!_0x4da334||!_0x581e7e||_0x4da334[_0x2bbfb4(0x265)]!==_0x581e7e['startTokenOffset']||_0x4da334[_0x2bbfb4(0x23d)]!==_0x581e7e[_0x2bbfb4(0x23d)])throw new u();return _0x4da334;}}function me(_0x12062c,_0x362b8d){const _0x5e18f3=_0x1d297a;let _0x142c88=_0x12062c['dataStream'],_0x190615=-0x1;for(let _0x534bed=Math['min'](_0x362b8d,_0x142c88[_0x5e18f3(0x240)]-0x1);_0x534bed>=0x0;_0x534bed--){let _0x4817c1=_0x142c88[_0x534bed];if(_0x4817c1===e[_0x5e18f3(0x1f8)][_0x5e18f3(0x25b)])return;if(_0x4817c1===e[_0x5e18f3(0x1f8)]['TABLE_CELL_START']){_0x190615=_0x534bed;break;}}if(_0x190615<0x0)return;let _0x488b9a=_0x142c88[_0x5e18f3(0x1e7)](e[_0x5e18f3(0x1f8)][_0x5e18f3(0x25b)],_0x190615+0x1);if(!(_0x488b9a<0x0||_0x362b8d<_0x190615+0x1||_0x362b8d>_0x488b9a-0x1))return{'startOffset':_0x190615+0x1,'endOffset':Math['max'](_0x190615+0x1,_0x488b9a-0x1),'startTokenOffset':_0x190615,'endTokenOffset':_0x488b9a};}function D(_0x4814b3){const _0x29efaf=_0x1d297a;return(0x0,e[_0x29efaf(0x248)])(_0x4814b3)[_0x29efaf(0x224)]-0x1;}function he(_0x2b3d9a,_0xa3b2fe,_0x10b1b0,_0x2c28f0){const _0x5501b2=_0x1d297a;var _0x2c0cf8;let _0x37467c=D(_0xa3b2fe),_0x5b99d7=((_0x2c0cf8=_0x2b3d9a[_0x5501b2(0x22c)])==null?[]:_0x2c0cf8)[_0x5501b2(0x28a)](_0x3e3de9=>_0x3e3de9[_0x5501b2(0x259)]===_0x37467c+0x1);if(!_0x5b99d7||_0x2c28f0!=null&&_0x5b99d7[_0x5501b2(0x259)]!==_0x2c28f0||_0x10b1b0!=null&&(_0x10b1b0<_0x37467c||_0x10b1b0>_0x5b99d7[_0x5501b2(0x259)]+0x1)||_0x2b3d9a[_0x5501b2(0x28d)][_0x5b99d7[_0x5501b2(0x259)]]!==e[_0x5501b2(0x1f8)][_0x5501b2(0x1cc)])return null;let _0x4c6c1c=(0x0,e[_0x5501b2(0x1ea)])(_0x2b3d9a,_0x5b99d7),_0x2fdb6a=_0x2b3d9a['dataStream']['slice'](_0x4c6c1c,_0x5b99d7['startIndex']);return Array[_0x5501b2(0x279)](_0x2fdb6a)[_0x5501b2(0x272)](_0x121192=>_0x121192===e[_0x5501b2(0x1f8)][_0x5501b2(0x251)])?{'paragraph':_0x5b99d7,'endTokenOffset':_0x37467c}:null;}function O(_0x1931fe,_0x27d681){const _0x92fc70=_0x1d297a;var _0x5acb8e;let _0x431053=D(_0x27d681),_0x19b400=_0x1931fe[_0x92fc70(0x28d)][_0x431053+0x1];_0x19b400!==e[_0x92fc70(0x1f8)]['SECTION_BREAK']&&_0x19b400!==void 0x0||k(_0x1931fe,_0x431053+0x1,e[_0x92fc70(0x1f8)][_0x92fc70(0x1cc)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x92fc70(0x1d6)])(new Set((_0x5acb8e=_0x1931fe['paragraphs'])==null?void 0x0:_0x5acb8e[_0x92fc70(0x261)](_0x24d9db=>_0x24d9db[_0x92fc70(0x21c)])))}]});}function k(_0x103a2c,_0x4325ee,_0x9f271f,_0x1c5ded={}){const _0x18286f=_0x1d297a;var _0x4c0e62,_0x5e79b5;if(_0x9f271f){if(_0x103a2c['dataStream']=''+_0x103a2c[_0x18286f(0x28d)][_0x18286f(0x1e4)](0x0,_0x4325ee)+_0x9f271f+_0x103a2c['dataStream'][_0x18286f(0x1e4)](_0x4325ee),ge(_0x103a2c,_0x4325ee,_0x9f271f[_0x18286f(0x240)]),(_0x4c0e62=_0x1c5ded[_0x18286f(0x22c)])!=null&&_0x4c0e62[_0x18286f(0x240)]){var _0x146b70;_0x103a2c['paragraphs']=[...(_0x146b70=_0x103a2c[_0x18286f(0x22c)])==null?[]:_0x146b70,..._0x1c5ded[_0x18286f(0x22c)]['map'](_0x200f26=>({..._0x200f26,'startIndex':_0x200f26[_0x18286f(0x259)]+_0x4325ee}))][_0x18286f(0x207)]((_0x160633,_0x3b4eb8)=>_0x160633[_0x18286f(0x259)]-_0x3b4eb8['startIndex']);}if((_0x5e79b5=_0x1c5ded['blockRanges'])!=null&&_0x5e79b5[_0x18286f(0x240)]){var _0x3163b8;_0x103a2c[_0x18286f(0x232)]=[...(_0x3163b8=_0x103a2c[_0x18286f(0x232)])==null?[]:_0x3163b8,..._0x1c5ded[_0x18286f(0x232)][_0x18286f(0x261)](_0x312fe7=>({..._0x312fe7,'startIndex':_0x312fe7[_0x18286f(0x259)]+_0x4325ee,'endIndex':_0x312fe7[_0x18286f(0x26d)]+_0x4325ee}))][_0x18286f(0x207)]((_0x2a1c2e,_0x3b35f4)=>_0x2a1c2e['startIndex']-_0x3b35f4[_0x18286f(0x259)]);}}}function A(_0x2a0551,_0x3f9f01,_0x512025){const _0x1c810c=_0x1d297a;let _0x894b07=_0x512025-_0x3f9f01;_0x2a0551['dataStream']=''+_0x2a0551[_0x1c810c(0x28d)][_0x1c810c(0x1e4)](0x0,_0x3f9f01)+_0x2a0551['dataStream'][_0x1c810c(0x1e4)](_0x512025),_e(_0x2a0551,_0x3f9f01,_0x894b07);}function ge(_0x5ab0d2,_0x528db8,_0x3e7751){const _0x30904f=_0x1d297a;_0x5ab0d2['paragraphs']=j(_0x5ab0d2['paragraphs'],_0x528db8,_0x3e7751),_0x5ab0d2[_0x30904f(0x25c)]=j(_0x5ab0d2['sectionBreaks'],_0x528db8,_0x3e7751),_0x5ab0d2[_0x30904f(0x246)]=j(_0x5ab0d2[_0x30904f(0x246)],_0x528db8,_0x3e7751),_0x5ab0d2[_0x30904f(0x26e)]=ve(_0x5ab0d2[_0x30904f(0x26e)],_0x528db8,_0x3e7751),_0x5ab0d2[_0x30904f(0x1df)]=ye(_0x5ab0d2[_0x30904f(0x1df)],_0x528db8,_0x3e7751),_0x5ab0d2[_0x30904f(0x20e)]=N(_0x5ab0d2[_0x30904f(0x20e)],_0x528db8,_0x3e7751),_0x5ab0d2[_0x30904f(0x25d)]=N(_0x5ab0d2[_0x30904f(0x25d)],_0x528db8,_0x3e7751),_0x5ab0d2[_0x30904f(0x208)]=N(_0x5ab0d2['customDecorations'],_0x528db8,_0x3e7751),_0x5ab0d2[_0x30904f(0x232)]=N(_0x5ab0d2[_0x30904f(0x232)],_0x528db8,_0x3e7751);}function _e(_0x670ac6,_0x2d0c1a,_0x1b6643){const _0x3dd0d6=_0x1d297a;var _0x7b8f63,_0x12051f;_0x670ac6[_0x3dd0d6(0x22c)]=M(_0x670ac6['paragraphs'],_0x2d0c1a,_0x1b6643),_0x670ac6[_0x3dd0d6(0x25c)]=M(_0x670ac6[_0x3dd0d6(0x25c)],_0x2d0c1a,_0x1b6643),_0x670ac6[_0x3dd0d6(0x246)]=M(_0x670ac6[_0x3dd0d6(0x246)],_0x2d0c1a,_0x1b6643),_0x670ac6['textRuns']=(_0x7b8f63=be((_0x12051f=_0x670ac6[_0x3dd0d6(0x26e)])==null?void 0x0:_0x12051f[_0x3dd0d6(0x261)](_0x3d55e9=>({..._0x3d55e9,'startIndex':_0x3d55e9['st'],'endIndex':_0x3d55e9['ed']})),_0x2d0c1a,_0x1b6643))==null?void 0x0:_0x7b8f63['map'](_0x60762f=>{let {startIndex:_0x2a0a83,endIndex:_0x257992,..._0x15bf39}=_0x60762f;return{..._0x15bf39,'st':_0x2a0a83,'ed':_0x257992};}),_0x670ac6[_0x3dd0d6(0x1df)]=be(_0x670ac6[_0x3dd0d6(0x1df)],_0x2d0c1a,_0x1b6643),_0x670ac6['columnGroups']=P(_0x670ac6[_0x3dd0d6(0x20e)],_0x2d0c1a,_0x1b6643),_0x670ac6[_0x3dd0d6(0x25d)]=P(_0x670ac6['customRanges'],_0x2d0c1a,_0x1b6643),_0x670ac6[_0x3dd0d6(0x208)]=P(_0x670ac6[_0x3dd0d6(0x208)],_0x2d0c1a,_0x1b6643),_0x670ac6[_0x3dd0d6(0x232)]=P(_0x670ac6[_0x3dd0d6(0x232)],_0x2d0c1a,_0x1b6643);}function j(_0x40b983,_0xdf16a1,_0x24f320){const _0x2cadab=_0x1d297a;return _0x40b983==null?void 0x0:_0x40b983['map'](_0x19874b=>_0x19874b[_0x2cadab(0x259)]>=_0xdf16a1?{..._0x19874b,'startIndex':_0x19874b['startIndex']+_0x24f320}:_0x19874b);}function M(_0x50c82d,_0x49b45f,_0x4a1a15){const _0x16d636=_0x1d297a;let _0x35efb9=_0x49b45f+_0x4a1a15;return _0x50c82d==null?void 0x0:_0x50c82d[_0x16d636(0x261)](_0x1be9ef=>_0x1be9ef[_0x16d636(0x259)]>=_0x49b45f&&_0x1be9ef['startIndex']<_0x35efb9?null:_0x1be9ef[_0x16d636(0x259)]>=_0x35efb9?{..._0x1be9ef,'startIndex':_0x1be9ef[_0x16d636(0x259)]-_0x4a1a15}:_0x1be9ef)['filter'](_0x583b0b=>_0x583b0b!=null);}function ve(_0x4b3877,_0x33d179,_0x2f8f3a){const _0x2db8e8=_0x1d297a;return _0x4b3877==null?void 0x0:_0x4b3877[_0x2db8e8(0x261)](_0x1d9ca6=>_0x1d9ca6['st']>=_0x33d179?{..._0x1d9ca6,'st':_0x1d9ca6['st']+_0x2f8f3a,'ed':_0x1d9ca6['ed']+_0x2f8f3a}:_0x1d9ca6['ed']>_0x33d179?{..._0x1d9ca6,'ed':_0x1d9ca6['ed']+_0x2f8f3a}:_0x1d9ca6);}function N(_0x2bb7ff,_0x28d2d1,_0x3a39e9){const _0x32f4b2=_0x1d297a;return _0x2bb7ff==null?void 0x0:_0x2bb7ff[_0x32f4b2(0x261)](_0x3ccf3a=>(0x0,e[_0x32f4b2(0x275)])(_0x3ccf3a,_0x28d2d1,_0x3a39e9));}function _0x4481(){const _0x1993c9=['from','_injector','518238qjppfN','UniverDocsCodePlugin','DocsCodeInsertBelowCommand','right','syncExecuteCommand','insert-new','getInstance','shiftExclusiveRangeOnDelete','1301958CjgIPN','blockId','string','documentData','compose','getContentInsertRange','IConfigService','find','min','previousDocumentData','dataStream','entries','DocsCodeUpdateCommand','BuildTextUtils','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','paragraphStyle','PARAGRAPH','dispose','containsStreamIndex','removeCode','bullet','disposeWithMe','isArray','commandService','removeUnit','pluginName','createParagraphId','spaceBelow','left','deleteLength','containsInteriorInsertionOffset','endsWith','getTextRanges','type','insertLength','tables','docs-code.command.exit','SECTION_BREAK','direction','_change$','slice','Module','indentEnd','indexOf','shiftExclusiveRangeOnInsert','docs-code.command.cancel-empty-paragraph','getParagraphContentStartOffset','_initResource','editOp','buildCancelEmptyCodeParagraphActions','getBody','body','textStyle','Inject','blockType','toStringTag','constructor','_docsCodeModel','cursorOffset','getCodeConfig','DataStreamTreeTokenType','retain','getCurrentUnitOfType','docs-code.config','BLOCK_START','filter','ICommandService','DocsCodeCancelEmptyParagraphCommand','getSingleDataStreamChange','symbol','_commandService','docs-code.command.insert','294147FhUyPK','40fARUMo','keys','sort','customDecorations','metadata','Disposable','CODE','spaceAbove','fromEntries','columnGroups','registerPluginResource','docs-code.command.unwrap','defineProperty','forEach','docs-code.command.update','add','10scrVAq','stringify','push','nextDocumentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','TextX','get','paragraphId','DOCS_CODE_PLUGIN','COMMAND','decorate','getUnitId','isHeaderFooterSelection','insertOp','getParagraphContentStartOffsets','endOffset','indentStart','DocsCodeRemoveCommand','10958jOPZri','DocsCodeConsumeBoundaryDeleteCommand','getSnapshot','UniverInstanceType','max','paragraphs','model','700051JeTaea','insertionMode','getParagraphFollowingBlockOffset','paragraphStartIndex','blockRanges','Document\x20body\x20is\x20required','Subject','IResourceManagerService','_resources','UNIVER_DOC','toPrimitive','reduce','DOC_CODE_PLUGIN','set','getParagraphsInRange','endTokenOffset','DocsCodeModel','IUniverInstanceService','length','onStarting','selectionManager','_resourceManagerService','1650952tUAMov','getOwnPropertyDescriptor','customBlocks','UniverLicensePlugin','getBlockRangeInterval','generateRandomId','delete','serialize','startOffset','default','9nyHHVV','replaceDocRanges','_config','BLOCK_END','object','UniverDocsPlugin','JSONX','DocumentBlockRangeType','columns','nextMetadata','docs-code.command.remove','startIndex','codes','TABLE_CELL_END','sectionBreaks','customRanges','unitId','docs-code.command.consume-boundary-delete','docs-code.command.insert-below','map','DocSelectionManagerService','range','some','startTokenOffset','_setResource','_configService','packageName','deserialize','43vfkqwN','parse','start','endIndex','textRuns','CommandType','168060RyKWSC','paragraph','every','function','getUnit','shiftInclusiveRangeOnInsert','monospace','removeOp','config'];_0x4481=function(){return _0x1993c9;};return _0x4481();}function ye(_0x4cfa1d,_0x4be56d,_0xeb7a74){const _0x1cc8ca=_0x1d297a;return _0x4cfa1d==null?void 0x0:_0x4cfa1d[_0x1cc8ca(0x261)](_0x141ab4=>(0x0,e[_0x1cc8ca(0x1e8)])(_0x141ab4,_0x4be56d,_0xeb7a74));}function P(_0x70c40b,_0x1d728e,_0x39a07f){const _0x10d929=_0x1d297a;return _0x70c40b==null?void 0x0:_0x70c40b[_0x10d929(0x261)](_0x13d017=>(0x0,e['shiftInclusiveRangeOnDelete'])(_0x13d017,_0x1d728e,_0x39a07f))['filter'](_0x469f63=>_0x469f63!=null);}function be(_0x2bab3e,_0x53ef8b,_0x49792c){const _0x1b13dc=_0x1d297a;return _0x2bab3e==null?void 0x0:_0x2bab3e[_0x1b13dc(0x261)](_0x6fa128=>(0x0,e[_0x1b13dc(0x282)])(_0x6fa128,_0x53ef8b,_0x49792c))[_0x1b13dc(0x1fd)](_0xe02d2f=>_0xe02d2f!=null);}function F(_0x35f9be){'@babel/helpers - typeof';const _0x4a0425=_0x1d297a;return F=typeof Symbol==_0x4a0425(0x273)&&typeof Symbol['iterator']==_0x4a0425(0x201)?function(_0x3a5a97){return typeof _0x3a5a97;}:function(_0x300f4a){const _0x465936=_0x4a0425;return _0x300f4a&&typeof Symbol==_0x465936(0x273)&&_0x300f4a[_0x465936(0x1f4)]===Symbol&&_0x300f4a!==Symbol['prototype']?_0x465936(0x201):typeof _0x300f4a;},F(_0x35f9be);}function xe(_0x1710e3,_0x2e0cf7){const _0x263a4b=_0x1d297a;if(F(_0x1710e3)!=_0x263a4b(0x252)||!_0x1710e3)return _0x1710e3;var _0x4b12ef=_0x1710e3[Symbol[_0x263a4b(0x238)]];if(_0x4b12ef!==void 0x0){var _0x3b82e1=_0x4b12ef['call'](_0x1710e3,_0x2e0cf7||_0x263a4b(0x24d));if(F(_0x3b82e1)!=_0x263a4b(0x252))return _0x3b82e1;throw TypeError(_0x263a4b(0x219));}return(_0x2e0cf7===_0x263a4b(0x285)?String:Number)(_0x1710e3);}function Se(_0x4af48f){const _0x266438=_0x1d297a;var _0x39d6d1=xe(_0x4af48f,_0x266438(0x285));return F(_0x39d6d1)==_0x266438(0x201)?_0x39d6d1:_0x39d6d1+'';}function I(_0x712a8a,_0x31eec1,_0x1f8f7c){const _0x4e8c70=_0x1d297a;return(_0x31eec1=Se(_0x31eec1))in _0x712a8a?Object[_0x4e8c70(0x211)](_0x712a8a,_0x31eec1,{'value':_0x1f8f7c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x712a8a[_0x31eec1]=_0x1f8f7c,_0x712a8a;}var L=class extends e[_0x1d297a(0x20a)]{constructor(..._0x217a3f){const _0x2d7c56=_0x1d297a;super(..._0x217a3f),I(this,_0x2d7c56(0x236),new Map()),I(this,'_change$',new n[(_0x2d7c56(0x234))]()),I(this,'change$',this[_0x2d7c56(0x1e3)]['asObservable']());}[_0x1d297a(0x1f7)](_0x2832f0,_0x4900bf){const _0x16999b=_0x1d297a;return o(this[_0x16999b(0x236)]['get'](_0x2832f0))[_0x16999b(0x25a)][_0x4900bf];}['setCodeConfig'](_0x16913b,_0x1b1750,_0xd32e36){const _0x2315fd=_0x1d297a;this[_0x2315fd(0x266)](_0x16913b,_0x1b1750,s(this[_0x2315fd(0x236)][_0x2315fd(0x21b)](_0x16913b),_0x1b1750,_0xd32e36));}[_0x1d297a(0x1cf)](_0x288834,_0x3cb81c){const _0x36a0cb=_0x1d297a;this[_0x36a0cb(0x266)](_0x288834,_0x3cb81c,c(this[_0x36a0cb(0x236)][_0x36a0cb(0x21b)](_0x288834),_0x3cb81c));}[_0x1d297a(0x24b)](_0x11c827){const _0x3f7ff9=_0x1d297a;return o(this['_resources'][_0x3f7ff9(0x21b)](_0x11c827));}['deserialize'](_0x29d704,_0x42949c){const _0x27aa60=_0x1d297a;this['_resources'][_0x27aa60(0x23b)](_0x29d704,o(_0x42949c)),this[_0x27aa60(0x1e3)]['next']({'unitId':_0x29d704});}[_0x1d297a(0x1d4)](_0x2dcb6f){const _0x1534af=_0x1d297a;this['_resources'][_0x1534af(0x24a)](_0x2dcb6f),this['_change$']['next']({'unitId':_0x2dcb6f});}[_0x1d297a(0x1cd)](){const _0x34d373=_0x1d297a;super['dispose'](),this[_0x34d373(0x236)]['clear'](),this[_0x34d373(0x1e3)]['complete']();}['_setResource'](_0x469cee,_0x1bb42c,_0xe9e95e){const _0x169d2a=_0x1d297a;this['_resources']['set'](_0x469cee,_0xe9e95e),this[_0x169d2a(0x1e3)]['next']({'unitId':_0x469cee,'blockId':_0x1bb42c});}};const R={'id':_0x1d297a(0x260),'type':e[_0x1d297a(0x26f)][_0x1d297a(0x21e)],'handler':_0x503a28=>{const _0x119b15=_0x1d297a;var _0x260fc0;if((0x0,t[_0x119b15(0x221)])(G(_0x503a28)))return!0x1;let _0x2bdfb2=(0x0,t[_0x119b15(0x288)])(_0x503a28);if(_0x2bdfb2)return _0x503a28[_0x119b15(0x21b)](e[_0x119b15(0x1fe)])[_0x119b15(0x27f)](z['id'],{'startOffset':_0x2bdfb2[_0x119b15(0x24c)],'endOffset':_0x2bdfb2[_0x119b15(0x224)],'insertionMode':'insert-new','unitId':_0x2bdfb2[_0x119b15(0x25e)]});let _0x51c29a=Oe(_0x503a28);if(!_0x51c29a)return!0x1;let _0x3485c3=(_0x260fc0=_0x503a28['get'](e[_0x119b15(0x23f)])[_0x119b15(0x1fa)](e[_0x119b15(0x22a)][_0x119b15(0x237)]))==null?void 0x0:_0x260fc0[_0x119b15(0x1ee)](),_0x486b15=_0x3485c3?(0x0,e[_0x119b15(0x230)])(_0x3485c3,_0x51c29a):_0x51c29a[_0x119b15(0x259)]+0x1;return _0x503a28[_0x119b15(0x21b)](e[_0x119b15(0x1fe)])[_0x119b15(0x27f)](z['id'],{'startOffset':_0x486b15,'endOffset':_0x486b15});}},Ce={'id':_0x1d297a(0x25f),'type':e[_0x1d297a(0x26f)][_0x1d297a(0x21e)],'handler':()=>!0x0},z={'id':_0x1d297a(0x203),'type':e['CommandType'][_0x1d297a(0x21e)],'handler':(_0x5601cd,_0x475495)=>{const _0x59a914=_0x1d297a;var _0x2260a3;let _0x5e7d19=W(_0x5601cd,_0x475495==null?void 0x0:_0x475495[_0x59a914(0x25e)]);if(!_0x5e7d19)return!0x1;let _0x5cc257=G(_0x5601cd);if((0x0,t['isHeaderFooterSelection'])(_0x5cc257))return!0x1;let _0x15bb99=_0x5e7d19['model'][_0x59a914(0x24b)](_0x5e7d19[_0x59a914(0x25e)]),_0x25a449=Te(_0x475495,_0x5cc257),_0x50fc6a=Ee(_0x5e7d19[_0x59a914(0x28c)],_0x25a449);if(_0x50fc6a){if(_0x50fc6a['blockType']!==e[_0x59a914(0x255)]['CODE'])return!0x1;let _0xbdd7fb=g({'blockId':_0x50fc6a[_0x59a914(0x284)],'documentData':_0x5e7d19['previousDocumentData'],'metadata':_0x15bb99});if(!_0xbdd7fb)return!0x1;let _0x23e6fb=Y(_0x5e7d19[_0x59a914(0x1d3)],_0x5e7d19[_0x59a914(0x242)],_0x5e7d19[_0x59a914(0x25e)],_0x5e7d19[_0x59a914(0x28c)],_0xbdd7fb[_0x59a914(0x218)],z['id'],_0xbdd7fb[_0x59a914(0x1f6)]);return _0x23e6fb&&_0xbdd7fb[_0x59a914(0x257)]&&_0x5e7d19[_0x59a914(0x22d)]['deserialize'](_0x5e7d19[_0x59a914(0x25e)],_0xbdd7fb[_0x59a914(0x257)]),_0x23e6fb;}let _0x440e34=(_0x2260a3=_0x475495==null?void 0x0:_0x475495[_0x59a914(0x284)])==null?(0x0,e[_0x59a914(0x249)])(0x6):_0x2260a3,_0x2e4f6f;try{_0x2e4f6f=d({'blockId':_0x440e34,'config':_0x475495==null?void 0x0:_0x475495[_0x59a914(0x278)],'documentData':_0x5e7d19[_0x59a914(0x28c)],'endOffset':_0x25a449==null?void 0x0:_0x25a449[_0x59a914(0x224)],'insertionMode':_0x475495==null?void 0x0:_0x475495[_0x59a914(0x22f)],'metadata':_0x15bb99,'startOffset':_0x25a449==null?void 0x0:_0x25a449[_0x59a914(0x24c)]});}catch(_0x1c42eb){if(_0x1c42eb instanceof u)return!0x1;throw _0x1c42eb;}let _0x7d28c2=Y(_0x5e7d19['commandService'],_0x5e7d19[_0x59a914(0x242)],_0x5e7d19['unitId'],_0x5e7d19['previousDocumentData'],_0x2e4f6f[_0x59a914(0x218)],z['id'],_0x2e4f6f[_0x59a914(0x1f6)]);return _0x7d28c2&&_0x2e4f6f[_0x59a914(0x257)]&&_0x5e7d19[_0x59a914(0x22d)]['deserialize'](_0x5e7d19[_0x59a914(0x25e)],_0x2e4f6f[_0x59a914(0x257)]),_0x7d28c2;}},B={'id':_0x1d297a(0x213),'type':e[_0x1d297a(0x26f)][_0x1d297a(0x21e)],'handler':(_0x4e0ccc,_0x4f4e22)=>{const _0x3049dd=_0x1d297a;if(!_0x4f4e22)return!0x1;let _0x319ec2=W(_0x4e0ccc,_0x4f4e22[_0x3049dd(0x25e)]);if(!_0x319ec2)return!0x1;let _0x333332=h({'blockId':_0x4f4e22[_0x3049dd(0x284)],'config':_0x4f4e22[_0x3049dd(0x278)],'documentData':_0x319ec2[_0x3049dd(0x28c)],'metadata':_0x319ec2[_0x3049dd(0x22d)][_0x3049dd(0x24b)](_0x319ec2['unitId'])});return _0x333332[_0x3049dd(0x257)]&&_0x319ec2[_0x3049dd(0x22d)][_0x3049dd(0x269)](_0x319ec2[_0x3049dd(0x25e)],_0x333332['nextMetadata']),!0x0;}},we={'id':_0x1d297a(0x1e0),'type':e['CommandType'][_0x1d297a(0x21e)],'handler':(_0x32fd63,_0x7592b0)=>V['handler'](_0x32fd63,_0x7592b0)},V={'id':_0x1d297a(0x210),'type':e[_0x1d297a(0x26f)]['COMMAND'],'handler':(_0x752a67,_0x59fe38)=>{const _0x232aaf=_0x1d297a;if(!_0x59fe38)return!0x1;let _0x3e5cc0=W(_0x752a67,_0x59fe38==null?void 0x0:_0x59fe38[_0x232aaf(0x25e)]);if(!_0x3e5cc0)return!0x1;let _0x3c21ba=g({'blockId':_0x59fe38[_0x232aaf(0x284)],'documentData':_0x3e5cc0['previousDocumentData'],'metadata':_0x3e5cc0[_0x232aaf(0x22d)][_0x232aaf(0x24b)](_0x3e5cc0[_0x232aaf(0x25e)])});if(!_0x3c21ba)return!0x1;let _0x35175d=Y(_0x3e5cc0['commandService'],_0x3e5cc0[_0x232aaf(0x242)],_0x3e5cc0['unitId'],_0x3e5cc0[_0x232aaf(0x28c)],_0x3c21ba[_0x232aaf(0x218)],V['id'],_0x3c21ba[_0x232aaf(0x1f6)]);return _0x35175d&&_0x3c21ba['nextMetadata']&&_0x3e5cc0['model']['deserialize'](_0x3e5cc0[_0x232aaf(0x25e)],_0x3c21ba[_0x232aaf(0x257)]),_0x35175d;}},H={'id':_0x1d297a(0x258),'type':e['CommandType'][_0x1d297a(0x21e)],'handler':(_0x2b5810,_0x596654)=>{const _0x1a17b0=_0x1d297a;if(!_0x596654)return!0x1;let _0x32e5de=W(_0x2b5810,_0x596654==null?void 0x0:_0x596654[_0x1a17b0(0x25e)]);if(!_0x32e5de)return!0x1;let _0x74794b=_({'blockId':_0x596654[_0x1a17b0(0x284)],'documentData':_0x32e5de['previousDocumentData'],'metadata':_0x32e5de[_0x1a17b0(0x22d)][_0x1a17b0(0x24b)](_0x32e5de[_0x1a17b0(0x25e)])});if(!_0x74794b)return!0x1;let _0x194ada=Y(_0x32e5de[_0x1a17b0(0x1d3)],_0x32e5de[_0x1a17b0(0x242)],_0x32e5de[_0x1a17b0(0x25e)],_0x32e5de[_0x1a17b0(0x28c)],_0x74794b[_0x1a17b0(0x218)],H['id'],_0x74794b[_0x1a17b0(0x1f6)]);return _0x194ada&&_0x74794b[_0x1a17b0(0x257)]&&_0x32e5de['model']['deserialize'](_0x32e5de['unitId'],_0x74794b[_0x1a17b0(0x257)]),_0x194ada;}},U={'id':_0x1d297a(0x1e9),'type':e['CommandType'][_0x1d297a(0x21e)],'handler':(_0xfa45ff,_0xfa5922)=>{const _0x5638d9=_0x1d297a;var _0x10ff78,_0x165637;let _0x5e1a94=W(_0xfa45ff,_0xfa5922==null?void 0x0:_0xfa5922[_0x5638d9(0x25e)]);if(!_0x5e1a94)return!0x1;let _0x4952bb=(_0x10ff78=_0xfa5922==null?void 0x0:_0xfa5922[_0x5638d9(0x1f6)])==null?(_0x165637=G(_0xfa45ff))==null?void 0x0:_0x165637[_0x5638d9(0x24c)]:_0x10ff78;if(_0x4952bb==null)return!0x1;let _0x443b0d=v({'cursorOffset':_0x4952bb,'documentData':_0x5e1a94[_0x5638d9(0x28c)],'paragraphStartIndex':_0xfa5922==null?void 0x0:_0xfa5922[_0x5638d9(0x231)]});return _0x443b0d?Y(_0x5e1a94['commandService'],_0x5e1a94[_0x5638d9(0x242)],_0x5e1a94[_0x5638d9(0x25e)],_0x5e1a94[_0x5638d9(0x28c)],_0x443b0d['nextDocumentData'],U['id'],_0x443b0d['cursorOffset']):!0x1;}};function W(_0x1153a3,_0x585344){const _0x42441e=_0x1d297a;let _0x2f294f=_0x1153a3[_0x42441e(0x21b)](e[_0x42441e(0x23f)]),_0x1cf76a=_0x585344?_0x2f294f[_0x42441e(0x274)](_0x585344,e[_0x42441e(0x22a)][_0x42441e(0x237)]):_0x2f294f[_0x42441e(0x1fa)](e[_0x42441e(0x22a)][_0x42441e(0x237)]);return _0x1cf76a?{'commandService':_0x1153a3[_0x42441e(0x21b)](e[_0x42441e(0x1fe)]),'model':_0x1153a3[_0x42441e(0x21b)](L),'previousDocumentData':_0x1cf76a[_0x42441e(0x229)](),'selectionManager':_0x1153a3[_0x42441e(0x21b)](t['DocSelectionManagerService']),'unitId':_0x1cf76a[_0x42441e(0x220)]()}:null;}function G(_0x3ee7ec){const _0x35984d=_0x1d297a;var _0x43c16e;return(_0x43c16e=_0x3ee7ec[_0x35984d(0x21b)](t[_0x35984d(0x262)])[_0x35984d(0x1dc)]())==null?void 0x0:_0x43c16e[0x0];}function Te(_0x3c2e19,_0x45805a){const _0x5a19e0=_0x1d297a;var _0x4bb4fb,_0xe90513;let _0x108261=(_0x4bb4fb=_0x3c2e19==null?void 0x0:_0x3c2e19['startOffset'])==null?_0x45805a==null?void 0x0:_0x45805a['startOffset']:_0x4bb4fb,_0x1f55dd=(_0xe90513=_0x3c2e19==null?void 0x0:_0x3c2e19['endOffset'])==null?_0x45805a==null?void 0x0:_0x45805a[_0x5a19e0(0x224)]:_0xe90513;if(!(_0x108261==null||_0x1f55dd==null))return{'endOffset':Math['max'](_0x108261,_0x1f55dd),'startOffset':Math[_0x5a19e0(0x28b)](_0x108261,_0x1f55dd)};}function Ee(_0x155d29,_0x4fad68){const _0x4237d0=_0x1d297a;var _0x519f0a;if(!_0x4fad68)return;let _0x436059=De(_0x4fad68);return(_0x519f0a=_0x155d29[_0x4237d0(0x1ef)])==null||(_0x519f0a=_0x519f0a[_0x4237d0(0x232)])==null?void 0x0:_0x519f0a['find'](_0x421264=>{const _0x276711=_0x4237d0;let _0xcc0b06=(0x0,e[_0x276711(0x248)])(_0x421264);return _0x4fad68[_0x276711(0x24c)]===_0x4fad68[_0x276711(0x224)]?(0x0,e[_0x276711(0x1da)])(_0xcc0b06,_0x436059):(0x0,e[_0x276711(0x1ce)])(_0xcc0b06,_0x436059);});}function De(_0x59cdc0){const _0x113bc0=_0x1d297a;return _0x59cdc0[_0x113bc0(0x24c)]===_0x59cdc0[_0x113bc0(0x224)]?_0x59cdc0[_0x113bc0(0x24c)]:_0x59cdc0[_0x113bc0(0x24c)]+0x1;}function Oe(_0x457f5a){const _0x9df460=_0x1d297a;var _0x220704,_0x48feac,_0x23826c;let _0x5f1ef8=G(_0x457f5a);if(!_0x5f1ef8)return null;let _0x5b55db=_0x457f5a[_0x9df460(0x21b)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e['UniverInstanceType']['UNIVER_DOC']),_0x3900fb=_0x5b55db==null?void 0x0:_0x5b55db['getBody']();return _0x3900fb?(_0x220704=e[_0x9df460(0x290)][_0x9df460(0x263)][_0x9df460(0x23c)](_0x5f1ef8,(_0x48feac=_0x3900fb[_0x9df460(0x22c)])==null?[]:_0x48feac,(_0x23826c=_0x3900fb[_0x9df460(0x28d)])==null?'':_0x23826c)[0x0])==null?null:_0x220704:null;}function ke(_0x3bc027,_0x1e09c3){const _0x20b766=_0x1d297a;let _0x163186=_0x3bc027[_0x20b766(0x1ef)],_0x44a74d=_0x1e09c3[_0x20b766(0x1ef)],_0x108b0d=(0x0,e[_0x20b766(0x200)])(_0x163186,_0x44a74d);return[_0x108b0d&&_0x44a74d?Ae(_0x44a74d,_0x108b0d):null,_0x108b0d?null:je(_0x163186,_0x44a74d)]['filter'](Boolean)[_0x20b766(0x239)]((_0xbc9e1b,_0x2eea11)=>e[_0x20b766(0x254)][_0x20b766(0x287)](_0xbc9e1b,_0x2eea11),null);}function Ae(_0x44a92b,_0x232836){const _0x2d2525=_0x1d297a;let _0x11d10e=new e[(_0x2d2525(0x21a))]();return _0x11d10e[_0x2d2525(0x1f9)](_0x232836[_0x2d2525(0x26c)]),_0x232836['insertLength']>0x0&&_0x11d10e['insert'](_0x232836[_0x2d2525(0x1de)],(0x0,e['getBodySliceForTextXAction'])(_0x44a92b,_0x232836[_0x2d2525(0x26c)],_0x232836[_0x2d2525(0x26c)]+_0x232836[_0x2d2525(0x1de)],!0x1)),_0x232836[_0x2d2525(0x1d9)]>0x0&&_0x11d10e['delete'](_0x232836['deleteLength']),e[_0x2d2525(0x254)][_0x2d2525(0x281)]()[_0x2d2525(0x1ec)](_0x11d10e[_0x2d2525(0x24b)](),[_0x2d2525(0x1ef)]);}function je(_0x3806de,_0x4a1ff5){const _0x1c6333=_0x1d297a;let _0x20254a=[],_0x4931d2=_0x3806de?Ne(_0x3806de):void 0x0,_0x73b8f3=_0x4a1ff5?Ne(_0x4a1ff5):void 0x0;for(let _0x54bcdc of Me)K(e[_0x1c6333(0x254)][_0x1c6333(0x281)](),[_0x1c6333(0x1ef),_0x54bcdc],_0x4931d2==null?void 0x0:_0x4931d2[_0x54bcdc],_0x73b8f3==null?void 0x0:_0x73b8f3[_0x54bcdc],_0x20254a);return _0x20254a[_0x1c6333(0x239)]((_0x308eef,_0x494176)=>e['JSONX'][_0x1c6333(0x287)](_0x308eef,_0x494176),null);}const Me=[_0x1d297a(0x22c),_0x1d297a(0x25c),'tables',_0x1d297a(0x20e),_0x1d297a(0x232),_0x1d297a(0x246),'customRanges','customDecorations',_0x1d297a(0x26e)];function Ne(_0x50409d){return _0x50409d;}function K(_0x44cf9c,_0x1b4f1b,_0x1aa027,_0x8f4c09,_0x45a077){const _0xe5bd5e=_0x1d297a;if(!J(_0x1aa027,_0x8f4c09)){if(_0x1aa027==null){_0x45a077['push'](_0x44cf9c[_0xe5bd5e(0x222)](_0x1b4f1b,_0x8f4c09));return;}if(_0x8f4c09==null){_0x45a077[_0xe5bd5e(0x217)](_0x44cf9c[_0xe5bd5e(0x277)](_0x1b4f1b,_0x1aa027));return;}if(Array[_0xe5bd5e(0x1d2)](_0x1aa027)&&Array[_0xe5bd5e(0x1d2)](_0x8f4c09)){Pe(_0x44cf9c,_0x1b4f1b,_0x1aa027,_0x8f4c09,_0x45a077);return;}if(q(_0x1aa027)&&q(_0x8f4c09)){new Set([...Object[_0xe5bd5e(0x206)](_0x1aa027),...Object[_0xe5bd5e(0x206)](_0x8f4c09)])['forEach'](_0x3f4501=>{K(_0x44cf9c,[..._0x1b4f1b,_0x3f4501],_0x1aa027[_0x3f4501],_0x8f4c09[_0x3f4501],_0x45a077);});return;}_0x45a077[_0xe5bd5e(0x217)](_0x44cf9c['replaceOp'](_0x1b4f1b,_0x1aa027,_0x8f4c09));}}function Pe(_0x50453e,_0x5dca13,_0x5005be,_0x51fbde,_0x458251){const _0x17a127=_0x1d297a;if(_0x5005be[_0x17a127(0x240)]===_0x51fbde['length']){_0x5005be['forEach']((_0x79f176,_0x4050b4)=>K(_0x50453e,[..._0x5dca13,_0x4050b4],_0x79f176,_0x51fbde[_0x4050b4],_0x458251));return;}let _0x4353a8=0x0;for(;_0x4353a8<_0x5005be[_0x17a127(0x240)]&&_0x4353a8<_0x51fbde[_0x17a127(0x240)]&&J(_0x5005be[_0x4353a8],_0x51fbde[_0x4353a8]);)_0x4353a8++;let _0x24374c=_0x5005be['length']-0x1,_0x306c5a=_0x51fbde[_0x17a127(0x240)]-0x1;for(;_0x24374c>=_0x4353a8&&_0x306c5a>=_0x4353a8&&J(_0x5005be[_0x24374c],_0x51fbde[_0x306c5a]);)_0x24374c--,_0x306c5a--;for(let _0x264635=_0x24374c;_0x264635>=_0x4353a8;_0x264635--)_0x458251[_0x17a127(0x217)](_0x50453e['removeOp']([..._0x5dca13,_0x264635],_0x5005be[_0x264635]));for(let _0x1f73cf=_0x4353a8;_0x1f73cf<=_0x306c5a;_0x1f73cf++)_0x458251[_0x17a127(0x217)](_0x50453e[_0x17a127(0x222)]([..._0x5dca13,_0x1f73cf],_0x51fbde[_0x1f73cf]));}function q(_0x3ff6a3){const _0x393b87=_0x1d297a;return typeof _0x3ff6a3==_0x393b87(0x252)&&!!_0x3ff6a3&&!Array[_0x393b87(0x1d2)](_0x3ff6a3);}function J(_0x307439,_0x44d3df){const _0x1e8b61=_0x1d297a;return JSON[_0x1e8b61(0x216)](_0x307439)===JSON[_0x1e8b61(0x216)](_0x44d3df);}function Y(_0xd02048,_0x3bbba8,_0x35ad4a,_0x473c22,_0x2dcdc3,_0x2c3f2c,_0x21707a){const _0x4fbb24=_0x1d297a;let _0x392285=ke(_0x473c22,_0x2dcdc3);return _0x392285?!!_0xd02048[_0x4fbb24(0x27f)](t['RichTextEditingMutation']['id'],{'unitId':_0x35ad4a,'actions':_0x392285,'textRanges':[{'startOffset':_0x21707a,'endOffset':_0x21707a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2c3f2c}):(_0x3bbba8[_0x4fbb24(0x24f)]([{'startOffset':_0x21707a,'endOffset':_0x21707a}],{'unitId':_0x35ad4a,'subUnitId':_0x35ad4a},!0x1),!0x0);}const X=_0x1d297a(0x23a);var Fe='@univerjs-pro/docs-code',Ie='1.0.0-insiders.20260722-553148e';const Le={};function Z(_0x3fbac8,_0x31de96){return function(_0x52bdac,_0x57177c){_0x31de96(_0x52bdac,_0x57177c,_0x3fbac8);};}function Re(_0x2f0679,_0x3c8fae,_0x42ab7d,_0x1ea0f9){const _0xe03859=_0x1d297a;var _0x2d8597=arguments[_0xe03859(0x240)],_0x41db44=_0x2d8597<0x3?_0x3c8fae:_0x1ea0f9===null?_0x1ea0f9=Object[_0xe03859(0x245)](_0x3c8fae,_0x42ab7d):_0x1ea0f9,_0x25a24f;if(typeof Reflect==_0xe03859(0x252)&&typeof Reflect[_0xe03859(0x21f)]==_0xe03859(0x273))_0x41db44=Reflect[_0xe03859(0x21f)](_0x2f0679,_0x3c8fae,_0x42ab7d,_0x1ea0f9);else{for(var _0x3c0200=_0x2f0679[_0xe03859(0x240)]-0x1;_0x3c0200>=0x0;_0x3c0200--)(_0x25a24f=_0x2f0679[_0x3c0200])&&(_0x41db44=(_0x2d8597<0x3?_0x25a24f(_0x41db44):_0x2d8597>0x3?_0x25a24f(_0x3c8fae,_0x42ab7d,_0x41db44):_0x25a24f(_0x3c8fae,_0x42ab7d))||_0x41db44);}return _0x2d8597>0x3&&_0x41db44&&Object[_0xe03859(0x211)](_0x3c8fae,_0x42ab7d,_0x41db44),_0x41db44;}let Q=class extends e[_0x1d297a(0x20a)]{constructor(_0x1d248c,_0x15f22a){const _0x2e2c44=_0x1d297a;super(),this['_resourceManagerService']=_0x1d248c,this['_docsCodeModel']=_0x15f22a,this[_0x2e2c44(0x1eb)]();}[_0x1d297a(0x1eb)](){const _0x49d8a0=_0x1d297a;this[_0x49d8a0(0x1d1)](this[_0x49d8a0(0x243)][_0x49d8a0(0x20f)]({'pluginName':X,'businesses':[e['UniverInstanceType'][_0x49d8a0(0x237)]],'toJson':_0x5ed41a=>JSON[_0x49d8a0(0x216)](this[_0x49d8a0(0x1f5)][_0x49d8a0(0x24b)](_0x5ed41a)),'parseJson':_0x453792=>o(JSON[_0x49d8a0(0x26b)](_0x453792)),'onLoad':(_0xd8c9fe,_0x162347)=>this[_0x49d8a0(0x1f5)][_0x49d8a0(0x269)](_0xd8c9fe,_0x162347),'onUnLoad':_0x1d8fc9=>this['_docsCodeModel']['removeUnit'](_0x1d8fc9)}));}};Q=Re([Z(0x0,e[_0x1d297a(0x235)]),Z(0x1,(0x0,e[_0x1d297a(0x1f1)])(L))],Q);let $=class extends e['Plugin']{constructor(_0x30695e=Le,_0x2487dc,_0x4b8674,_0x4aea15){const _0x1634c7=_0x1d297a;super(),this['_config']=_0x30695e,this[_0x1634c7(0x27a)]=_0x2487dc,this[_0x1634c7(0x202)]=_0x4b8674,this[_0x1634c7(0x267)]=_0x4aea15;let {..._0x192f19}=(0x0,e['merge'])({},Le,this[_0x1634c7(0x250)]);this[_0x1634c7(0x267)]['setConfig'](_0x1634c7(0x1fb),_0x192f19);}[_0x1d297a(0x241)](){const _0x2268fe=_0x1d297a;this[_0x2268fe(0x27a)][_0x2268fe(0x214)]([L]),this['_injector'][_0x2268fe(0x214)]([Q]),this[_0x2268fe(0x27a)][_0x2268fe(0x21b)](L),this['_injector']['get'](Q),[z,R,B,V,H,we,U,Ce][_0x2268fe(0x212)](_0x1f5479=>this['disposeWithMe'](this[_0x2268fe(0x202)]['registerCommand'](_0x1f5479)));}};I($,_0x1d297a(0x1d5),X),I($,_0x1d297a(0x268),Fe),I($,'version',Ie),I($,_0x1d297a(0x1dd),e[_0x1d297a(0x22a)][_0x1d297a(0x237)]),$=Re([(0x0,e['DependentOn'])(r[_0x1d297a(0x247)],t[_0x1d297a(0x253)]),Z(0x1,(0x0,e[_0x1d297a(0x1f1)])(e['Injector'])),Z(0x2,e['ICommandService']),Z(0x3,e[_0x1d297a(0x289)])],$),exports[_0x1d297a(0x21d)]=X,exports[_0x1d297a(0x1ff)]=U,exports[_0x1d297a(0x228)]=Ce,exports[_0x1d297a(0x27d)]=R,exports['DocsCodeInsertCommand']=z,exports[_0x1d297a(0x23e)]=L,exports[_0x1d297a(0x226)]=H,exports['DocsCodeUnwrapCommand']=V,exports[_0x1d297a(0x28f)]=B,Object[_0x1d297a(0x211)](exports,_0x1d297a(0x27c),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1d297a(0x1ed)]=v,exports['isCodeBoundaryDelete']=x,exports['normalizeDocsCodeConfig']=a;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x236d11=_0x5815;(function(_0x157a5c,_0x220054){var _0x40f883=_0x5815,_0x1a7fea=_0x157a5c();while(!![]){try{var _0x548b72=-parseInt(_0x40f883(0x16f))/0x1*(parseInt(_0x40f883(0x159))/0x2)+-parseInt(_0x40f883(0x18d))/0x3+-parseInt(_0x40f883(0x15f))/0x4*(-parseInt(_0x40f883(0x16b))/0x5)+parseInt(_0x40f883(0x17e))/0x6+-parseInt(_0x40f883(0x160))/0x7+parseInt(_0x40f883(0x184))/0x8+parseInt(_0x40f883(0x17a))/0x9;if(_0x548b72===_0x220054)break;else _0x1a7fea['push'](_0x1a7fea['shift']());}catch(_0x511dc1){_0x1a7fea['push'](_0x1a7fea['shift']());}}}(_0x4942,0x53182));import{DocsCodeInsertCommand as _0x23a0cf,DocsCodeModel as _0x54b038,DocsCodeRemoveCommand as _0xe340d2,DocsCodeUnwrapCommand as _0x1f3f3f,DocsCodeUpdateCommand as _0x5885fc,normalizeDocsCodeConfig as _0x44ee95}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x7147e0,DocumentBlockRangeType as _0x3c0ce7,ICommandService as _0x2c757a,Inject as _0x51c44e,Injector as _0x58f7a9,generateRandomId as _0x5496aa}from'@univerjs/core';import{FDocument as _0x1b6fb4,isParagraphFacade as _0x5b111d}from'@univerjs/docs/facade';function m(_0x4e99b9){'@babel/helpers - typeof';var _0x3f6d0b=_0x5815;return m=typeof Symbol==_0x3f6d0b(0x188)&&typeof Symbol[_0x3f6d0b(0x162)]==_0x3f6d0b(0x18a)?function(_0x4dd89b){return typeof _0x4dd89b;}:function(_0x56d87b){var _0x4d2fb9=_0x3f6d0b;return _0x56d87b&&typeof Symbol=='function'&&_0x56d87b[_0x4d2fb9(0x183)]===Symbol&&_0x56d87b!==Symbol[_0x4d2fb9(0x174)]?'symbol':typeof _0x56d87b;},m(_0x4e99b9);}function h(_0x369998,_0x4dc453){var _0x39f730=_0x5815;if(m(_0x369998)!=_0x39f730(0x181)||!_0x369998)return _0x369998;var _0x406f50=_0x369998[Symbol['toPrimitive']];if(_0x406f50!==void 0x0){var _0x340b5f=_0x406f50['call'](_0x369998,_0x4dc453||'default');if(m(_0x340b5f)!=_0x39f730(0x181))return _0x340b5f;throw TypeError(_0x39f730(0x16e));}return(_0x4dc453==='string'?String:Number)(_0x369998);}function g(_0x17d83e){var _0x34dbe3=_0x5815,_0x2ad611=h(_0x17d83e,_0x34dbe3(0x185));return m(_0x2ad611)==_0x34dbe3(0x18a)?_0x2ad611:_0x2ad611+'';}function _(_0xa8ff5f,_0x1eab84,_0x681b40){var _0xe94010=_0x5815;return(_0x1eab84=g(_0x1eab84))in _0xa8ff5f?Object[_0xe94010(0x168)](_0xa8ff5f,_0x1eab84,{'value':_0x681b40,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa8ff5f[_0x1eab84]=_0x681b40,_0xa8ff5f;}function v(_0x39f151,_0x192b95){return function(_0x1cb695,_0x59f534){_0x192b95(_0x1cb695,_0x59f534,_0x39f151);};}function y(_0x4577c4,_0x2404f4,_0x299293,_0xad11d3){var _0x25dab6=_0x5815,_0x1ffe93=arguments['length'],_0x47a727=_0x1ffe93<0x3?_0x2404f4:_0xad11d3===null?_0xad11d3=Object[_0x25dab6(0x166)](_0x2404f4,_0x299293):_0xad11d3,_0x5d342c;if(typeof Reflect==_0x25dab6(0x181)&&typeof Reflect[_0x25dab6(0x180)]=='function')_0x47a727=Reflect[_0x25dab6(0x180)](_0x4577c4,_0x2404f4,_0x299293,_0xad11d3);else{for(var _0x556f7f=_0x4577c4[_0x25dab6(0x176)]-0x1;_0x556f7f>=0x0;_0x556f7f--)(_0x5d342c=_0x4577c4[_0x556f7f])&&(_0x47a727=(_0x1ffe93<0x3?_0x5d342c(_0x47a727):_0x1ffe93>0x3?_0x5d342c(_0x2404f4,_0x299293,_0x47a727):_0x5d342c(_0x2404f4,_0x299293))||_0x47a727);}return _0x1ffe93>0x3&&_0x47a727&&Object['defineProperty'](_0x2404f4,_0x299293,_0x47a727),_0x47a727;}let b=class{constructor(_0x20840b,_0x357735,_0x3c073e){var _0x11aa82=_0x5815;this[_0x11aa82(0x189)]=_0x20840b,this['_blockId']=_0x357735,this[_0x11aa82(0x164)]=_0x3c073e,_(this,_0x11aa82(0x17c),void 0x0),this[_0x11aa82(0x17c)]=this[_0x11aa82(0x189)][_0x11aa82(0x15d)]();}[_0x236d11(0x15d)](){return this['_blockId'];}[_0x236d11(0x177)](){var _0x1be335=_0x236d11;let _0x1efab2=this['_getBlockRange']();return _0x1efab2?{'blockId':_0x1efab2[_0x1be335(0x190)],'endIndex':_0x1efab2[_0x1be335(0x169)],'startIndex':_0x1efab2[_0x1be335(0x192)]}:null;}['getText'](){var _0x2aa983=_0x236d11,_0x279a84;let _0x31ee31=this[_0x2aa983(0x15b)](),_0x557d33=(_0x279a84=this[_0x2aa983(0x15e)]()[_0x2aa983(0x16d)])==null?void 0x0:_0x279a84[_0x2aa983(0x17d)];return!_0x31ee31||!_0x557d33?'':x(_0x557d33['slice'](_0x31ee31['startIndex']+0x1,_0x31ee31[_0x2aa983(0x169)]));}['describe'](){var _0x48c291=_0x236d11;let _0x1dd2da=this[_0x48c291(0x177)]();return _0x1dd2da?{..._0x1dd2da,'config':this[_0x48c291(0x167)](),'text':this[_0x48c291(0x15a)](),'type':_0x3c0ce7[_0x48c291(0x18e)]}:null;}['getConfig'](){var _0x3fcea4=_0x236d11;return _0x44ee95(this[_0x3fcea4(0x164)][_0x3fcea4(0x171)](_0x54b038)[_0x3fcea4(0x191)](this[_0x3fcea4(0x17c)],this[_0x3fcea4(0x165)]));}['updateConfig'](_0xc05904){var _0x13efbc=_0x236d11;return this['_injector'][_0x13efbc(0x171)](_0x2c757a)['syncExecuteCommand'](_0x5885fc['id'],{'blockId':this[_0x13efbc(0x165)],'config':_0xc05904[_0x13efbc(0x16c)],'unitId':this[_0x13efbc(0x17c)]});}[_0x236d11(0x173)](){var _0x33303b=_0x236d11;return this[_0x33303b(0x164)]['get'](_0x2c757a)['syncExecuteCommand'](_0x1f3f3f['id'],{'blockId':this[_0x33303b(0x165)],'unitId':this[_0x33303b(0x17c)]});}[_0x236d11(0x158)](){var _0x27c4cd=_0x236d11;return this[_0x27c4cd(0x164)][_0x27c4cd(0x171)](_0x2c757a)[_0x27c4cd(0x170)](_0xe340d2['id'],{'blockId':this[_0x27c4cd(0x165)],'unitId':this[_0x27c4cd(0x17c)]});}[_0x236d11(0x15b)](){var _0x9ea9dc=_0x236d11,_0x35748f;let _0x38ec13=(_0x35748f=this[_0x9ea9dc(0x15e)]()[_0x9ea9dc(0x16d)])==null||(_0x35748f=_0x35748f['blockRanges'])==null?void 0x0:_0x35748f[_0x9ea9dc(0x17b)](_0x1172d1=>_0x1172d1['blockId']===this[_0x9ea9dc(0x165)]&&_0x1172d1[_0x9ea9dc(0x163)]===_0x3c0ce7[_0x9ea9dc(0x18e)]);return _0x38ec13==null?null:_0x38ec13;}['_getDocumentData'](){var _0x8a5c00=_0x236d11;return this[_0x8a5c00(0x189)][_0x8a5c00(0x178)]();}};b=y([v(0x2,_0x51c44e(_0x58f7a9))],b);function x(_0xd9381){var _0x5e0b52=_0x236d11;return Array['from'](_0xd9381)[_0x5e0b52(0x175)](_0x238902=>_0x238902===_0x7147e0['PARAGRAPH']?'\x0a':_0x238902)[_0x5e0b52(0x186)](_0x3027a9=>_0x3027a9!==_0x7147e0[_0x5e0b52(0x161)]&&_0x3027a9!==_0x7147e0['BLOCK_END']&&_0x3027a9!==_0x7147e0['SECTION_BREAK'])[_0x5e0b52(0x193)]('')['replace'](/\n$/,'');}var S=class extends _0x1b6fb4{[_0x236d11(0x18b)](){var _0x3ffe13=_0x236d11;return this[_0x3ffe13(0x16a)]()[_0x3ffe13(0x186)](_0x28fdc9=>_0x28fdc9['blockType']===_0x3c0ce7[_0x3ffe13(0x18e)])[_0x3ffe13(0x175)](_0x26d6af=>this['_createFDocumentCode'](_0x26d6af[_0x3ffe13(0x190)]));}[_0x236d11(0x172)](_0x538a25){var _0x2d0e0d=_0x236d11;return this[_0x2d0e0d(0x16a)]()['some'](_0x4ebf98=>_0x4ebf98['blockId']===_0x538a25&&_0x4ebf98[_0x2d0e0d(0x163)]===_0x3c0ce7['CODE'])?this[_0x2d0e0d(0x18f)](_0x538a25):null;}[_0x236d11(0x157)](_0x5ef19b){var _0x61025d=_0x236d11;let _0x448e9b=this['_getBlockRanges']()[_0x61025d(0x17b)](_0x6e09ee=>_0x6e09ee['blockType']===_0x3c0ce7[_0x61025d(0x18e)]&&_0x6e09ee[_0x61025d(0x192)]<=_0x5ef19b&&_0x5ef19b<=_0x6e09ee[_0x61025d(0x169)]);return _0x448e9b?this[_0x61025d(0x18f)](_0x448e9b[_0x61025d(0x190)]):null;}[_0x236d11(0x15c)](_0x2176d5){var _0x6e4081=_0x236d11,_0x22a917;return(_0x22a917=this[_0x6e4081(0x182)](_0x2176d5)[0x0])==null?null:_0x22a917;}[_0x236d11(0x182)](_0x5f317e){var _0x1cdaef=_0x236d11;let _0x3fda12=typeof _0x5f317e==_0x1cdaef(0x185)?{'text':_0x5f317e}:_0x5f317e;return this[_0x1cdaef(0x18b)]()[_0x1cdaef(0x186)](_0x145bf3=>!(_0x3fda12[_0x1cdaef(0x190)]&&_0x145bf3[_0x1cdaef(0x15d)]()!==_0x3fda12[_0x1cdaef(0x190)]||_0x3fda12[_0x1cdaef(0x187)]&&!_0x145bf3['getText']()['includes'](_0x3fda12['text'])));}[_0x236d11(0x17f)](_0x55dac6={},_0x30ec49={}){var _0x570013=_0x236d11,_0x1b7853;let _0x505e80=this['_injector']['get'](_0x2c757a),_0x3636e5=_0x5b111d(_0x55dac6)?{..._0x30ec49,..._0x55dac6[_0x570013(0x177)]()}:_0x55dac6,_0x4aec51=(_0x1b7853=_0x3636e5[_0x570013(0x190)])==null?_0x5496aa(0x6):_0x1b7853;return _0x505e80[_0x570013(0x170)](_0x23a0cf['id'],{..._0x3636e5,'blockId':_0x4aec51,'unitId':this[_0x570013(0x15d)]()})?this[_0x570013(0x172)](_0x4aec51):null;}['_getBlockRanges'](){var _0x1e0dfa,_0x5f499a;return(_0x1e0dfa=(_0x5f499a=this['save']()['body'])==null?void 0x0:_0x5f499a['blockRanges'])==null?[]:_0x1e0dfa;}['_createFDocumentCode'](_0x45c3a9){var _0x38238a=_0x236d11;return this[_0x38238a(0x164)][_0x38238a(0x179)](b,this,_0x45c3a9);}};function _0x5815(_0x255ec8,_0x46087c){_0x255ec8=_0x255ec8-0x157;var _0x4942f6=_0x4942();var _0x581534=_0x4942f6[_0x255ec8];return _0x581534;}_0x1b6fb4[_0x236d11(0x18c)](S);function _0x4942(){var _0x5f3742=['defineProperty','endIndex','_getBlockRanges','275685FYUqYd','config','body','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','358ZLRHja','syncExecuteCommand','get','getCode','unwrap','prototype','map','length','getRange','save','createInstance','5349348zoHrfw','find','_unitId','dataStream','3331056iwQial','insertCode','decorate','object','findCodes','constructor','981416MlcTIp','string','filter','text','function','_document','symbol','getCodes','extend','350631ivFQag','CODE','_createFDocumentCode','blockId','getCodeConfig','startIndex','join','getCodeAt','remove','3662eevcJG','getText','_getBlockRange','findCodeByText','getId','_getDocumentData','4ymZUPm','1502431NOEfVD','BLOCK_START','iterator','blockType','_injector','_blockId','getOwnPropertyDescriptor','getConfig'];_0x4942=function(){return _0x5f3742;};return _0x4942();}export{b as FDocumentCode};
|