@univerjs-pro/docs-code 1.0.0-alpha.7 → 1.0.0-beta.0

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.
@@ -67,36 +67,72 @@ export interface IFDocumentCodeMixin {
67
67
  * Inserts a code block around a paragraph element.
68
68
  * The paragraph wrapper is resolved by persisted `paragraphId` before the command runs, so facade edits
69
69
  * inserted before the paragraph do not require recalculating offsets.
70
+ *
71
+ * This API writes `keepLines` and `widowControl` to every inserted paragraph.
72
+ * For multiple paragraphs it also writes `keepNext = TRUE` between adjacent
73
+ * paragraphs and `keepNext = FALSE` on the final paragraph, so the code block
74
+ * does not capture the following body paragraph. Callers do not need to add
75
+ * these pagination styles manually.
76
+ *
77
+ * Traditional Docs apply the styles during physical pagination. A code block
78
+ * that fits on a fresh page stays together; content taller than a fresh page
79
+ * remains splittable. Modern and Unspecified Docs preserve the styles in the
80
+ * model but do not apply them during physical pagination.
81
+ *
70
82
  * @param {FDocumentParagraph} paragraph The paragraph to convert to a code block.
71
83
  * @param {IDocsCodeInsertParagraphFacadeOptions} [options] Optional block id and code config.
72
84
  * @returns {FDocumentCode | null} The newly inserted FDocumentCode instance, or `null` if the insert code failed.
73
85
  * @example
74
86
  * ```ts
75
87
  * const fDocument = univerAPI.getActiveDocument();
88
+ * if (!fDocument) {
89
+ * throw new Error('No active document');
90
+ * }
76
91
  *
77
92
  * // Insert a code block around a paragraph with TypeScript language config.
78
93
  * const paragraph = fDocument.appendParagraph('const total = rows.length;');
79
94
  * const code = fDocument.insertCode(paragraph, {
80
95
  * config: { language: 'typescript' },
81
96
  * });
82
- * console.log(code?.getConfig()?.language);
97
+ * if (!code) {
98
+ * throw new Error('Failed to insert the code block');
99
+ * }
100
+ * console.log({
101
+ * language: code.getConfig()?.language,
102
+ * wordPaginationApplied: fDocument.isTraditional(),
103
+ * });
83
104
  * ```
84
105
  */
85
106
  insertCode(paragraph: FDocumentParagraph, options?: IDocsCodeInsertParagraphFacadeOptions): FDocumentCode | null;
86
107
  /**
87
108
  * Inserts a code around a document range, or inserts an empty code when the range is collapsed.
88
109
  * Prefer the paragraph overload for agent-authored code.
110
+ *
111
+ * The same automatic pagination styles as the paragraph overload are written
112
+ * for every paragraph in the range. Traditional Docs apply them; Modern and
113
+ * Unspecified Docs preserve them in the model but ignore them during physical
114
+ * pagination. Content taller than a fresh page remains splittable.
115
+ *
89
116
  * @param {IDocsCodeInsertFacadeOptions} [options] Optional block id and start/end offsets.
90
117
  * @returns {FDocumentCode | null} The newly inserted FDocumentCode instance, or `null` if the insert code failed.
91
118
  * @example
92
119
  * ```ts
93
120
  * const fDocument = univerAPI.getActiveDocument();
121
+ * if (!fDocument) {
122
+ * throw new Error('No active document');
123
+ * }
94
124
  *
95
125
  * // Insert a code block around the text "Snippet" in a table cell with TypeScript language config.
96
126
  * const table = fDocument.findTableByText('Snippet');
97
127
  * const range = table?.getCell(1, 0)?.getContentRange();
98
- * const code = range ? fDocument.insertCode({ ...range, config: { language: 'typescript' } }) : null;
99
- * console.log(code);
128
+ * if (!range) {
129
+ * throw new Error('Snippet table cell not found');
130
+ * }
131
+ * const code = fDocument.insertCode({ ...range, config: { language: 'typescript' } });
132
+ * if (!code) {
133
+ * throw new Error('Failed to insert the table-cell code block');
134
+ * }
135
+ * console.log(code.getId());
100
136
  *
101
137
  * // Insert a code block around the text "const" and the next three paragraphs with TypeScript language config.
102
138
  * // const cell = {
@@ -107,9 +143,16 @@ export interface IFDocumentCodeMixin {
107
143
  * if (paragraph) {
108
144
  * const paragraphs = fDocument.getParagraphs();
109
145
  * const { paragraphIndex, startOffset } = paragraph.getInfo();
110
- * const { endOffset } = paragraphs[paragraphIndex + 3].getInfo();
146
+ * const finalParagraph = paragraphs[paragraphIndex + 3];
147
+ * if (!finalParagraph) {
148
+ * throw new Error('Expected three paragraphs after the code start');
149
+ * }
150
+ * const { endOffset } = finalParagraph.getInfo();
111
151
  * const code2 = fDocument.insertCode({ startOffset, endOffset, config: { language: 'typescript' } });
112
- * console.log(code2);
152
+ * if (!code2) {
153
+ * throw new Error('Failed to insert the multi-paragraph code block');
154
+ * }
155
+ * console.log(code2.getId());
113
156
  * }
114
157
  * ```
115
158
  */
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4ab8(_0x35c588,_0x1946fb){_0x35c588=_0x35c588-0x8f;var _0x426bbe=_0x426b();var _0x4ab8a5=_0x426bbe[_0x35c588];return _0x4ab8a5;}function _0x426b(){var _0x412c95=['insertCode','561687rfkSjT','_injector','getText','join','getId','blockRanges','defineProperty','text','5925410oTipxR','3486000TfKffS','getConfig','_createFDocumentCode','toPrimitive','syncExecuteCommand','FDocument','findCodeByText','@univerjs/core','remove','_unitId','4PrQKNY','normalizeDocsCodeConfig','describe','_document','16760232sGMXJl','@univerjs/docs/facade','includes','save','config','string','_getBlockRange','5478567ZDgprc','createInstance','amd','UniverDocsFacade','_getDocumentData','filter','getCodeConfig','some','getRange','CODE','Injector','FDocumentCode','getOwnPropertyDescriptor','PARAGRAPH','blockId','startIndex','default','dataStream','from','endIndex','@univerjs-pro/docs-code','updateConfig','getCode','4582434LMJERT','DocsCodeInsertCommand','DataStreamTreeTokenType','exports','DocsCodeRemoveCommand','BLOCK_END','Module','_getBlockRanges','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProDocsCodeFacade','decorate','DocsCodeUpdateCommand','_blockId','1792418UzMzHa','blockType','extend','UniverProDocsCode','isParagraphFacade','DocsCodeUnwrapCommand','replace','get','constructor','BLOCK_START','SECTION_BREAK','findCodes','Inject','body','DocumentBlockRangeType','7nMksNg','map','object','find','slice','symbol','function','UniverCore','ICommandService'];_0x426b=function(){return _0x412c95;};return _0x426b();}(function(_0x3874d9,_0x54a37b){var _0x5d9301=_0x4ab8,_0x3ad295=_0x3874d9();while(!![]){try{var _0x53475f=-parseInt(_0x5d9301(0x91))/0x1+-parseInt(_0x5d9301(0xd3))/0x2+-parseInt(_0x5d9301(0xaf))/0x3*(parseInt(_0x5d9301(0xa4))/0x4)+parseInt(_0x5d9301(0x99))/0x5+-parseInt(_0x5d9301(0xc6))/0x6*(-parseInt(_0x5d9301(0xe2))/0x7)+parseInt(_0x5d9301(0x9a))/0x8+parseInt(_0x5d9301(0xa8))/0x9;if(_0x53475f===_0x54a37b)break;else _0x3ad295['push'](_0x3ad295['shift']());}catch(_0x3da005){_0x3ad295['push'](_0x3ad295['shift']());}}}(_0x426b,0xeb0ae),function(_0x415787,_0x3ac7fb){var _0x4357e2=_0x4ab8;typeof exports==_0x4357e2(0xe4)&&typeof module<'u'?_0x3ac7fb(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x4357e2(0xb1)]?define([_0x4357e2(0xc9),_0x4357e2(0xc3),_0x4357e2(0xa1),_0x4357e2(0xa9)],_0x3ac7fb):(_0x415787=typeof globalThis<'u'?globalThis:_0x415787||self,_0x3ac7fb(_0x415787[_0x4357e2(0xcf)]={},_0x415787[_0x4357e2(0xd6)],_0x415787[_0x4357e2(0xe9)],_0x415787[_0x4357e2(0xb2)]));}(this,function(_0x152b47,_0x13ce60,_0x585616,_0x4c6b03){var _0x500ae8=_0x4ab8;Object[_0x500ae8(0x97)](_0x152b47,Symbol['toStringTag'],{'value':_0x500ae8(0xcc)});function _0x4066de(_0x12805e){'@babel/helpers - typeof';var _0x40d085=_0x500ae8;return _0x4066de=typeof Symbol==_0x40d085(0xe8)&&typeof Symbol['iterator']==_0x40d085(0xe7)?function(_0x18637c){return typeof _0x18637c;}:function(_0x5db017){var _0x3f479f=_0x40d085;return _0x5db017&&typeof Symbol==_0x3f479f(0xe8)&&_0x5db017[_0x3f479f(0xdb)]===Symbol&&_0x5db017!==Symbol['prototype']?_0x3f479f(0xe7):typeof _0x5db017;},_0x4066de(_0x12805e);}function _0x593b0c(_0x4f691e,_0x4b5e49){var _0x345d3e=_0x500ae8;if(_0x4066de(_0x4f691e)!='object'||!_0x4f691e)return _0x4f691e;var _0x4f9b1a=_0x4f691e[Symbol[_0x345d3e(0x9d)]];if(_0x4f9b1a!==void 0x0){var _0x16156a=_0x4f9b1a['call'](_0x4f691e,_0x4b5e49||_0x345d3e(0xbf));if(_0x4066de(_0x16156a)!=_0x345d3e(0xe4))return _0x16156a;throw TypeError(_0x345d3e(0xce));}return(_0x4b5e49===_0x345d3e(0xad)?String:Number)(_0x4f691e);}function _0x34c802(_0x5a7f96){var _0x5552a2=_0x500ae8,_0x5883d3=_0x593b0c(_0x5a7f96,_0x5552a2(0xad));return _0x4066de(_0x5883d3)==_0x5552a2(0xe7)?_0x5883d3:_0x5883d3+'';}function _0xbf8c92(_0x4754e5,_0x3ee231,_0x234870){var _0x30de92=_0x500ae8;return(_0x3ee231=_0x34c802(_0x3ee231))in _0x4754e5?Object[_0x30de92(0x97)](_0x4754e5,_0x3ee231,{'value':_0x234870,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4754e5[_0x3ee231]=_0x234870,_0x4754e5;}function _0x1ad032(_0x3fc1a1,_0x183e4e){return function(_0xdcd572,_0x2f2226){_0x183e4e(_0xdcd572,_0x2f2226,_0x3fc1a1);};}function _0xed7a7c(_0x256df4,_0xb04f60,_0x4916a4,_0x379e00){var _0x2aeaeb=_0x500ae8,_0x543123=arguments['length'],_0x1f4c9c=_0x543123<0x3?_0xb04f60:_0x379e00===null?_0x379e00=Object[_0x2aeaeb(0xbb)](_0xb04f60,_0x4916a4):_0x379e00,_0xcb9b67;if(typeof Reflect==_0x2aeaeb(0xe4)&&typeof Reflect[_0x2aeaeb(0xd0)]=='function')_0x1f4c9c=Reflect[_0x2aeaeb(0xd0)](_0x256df4,_0xb04f60,_0x4916a4,_0x379e00);else{for(var _0x367fe6=_0x256df4['length']-0x1;_0x367fe6>=0x0;_0x367fe6--)(_0xcb9b67=_0x256df4[_0x367fe6])&&(_0x1f4c9c=(_0x543123<0x3?_0xcb9b67(_0x1f4c9c):_0x543123>0x3?_0xcb9b67(_0xb04f60,_0x4916a4,_0x1f4c9c):_0xcb9b67(_0xb04f60,_0x4916a4))||_0x1f4c9c);}return _0x543123>0x3&&_0x1f4c9c&&Object[_0x2aeaeb(0x97)](_0xb04f60,_0x4916a4,_0x1f4c9c),_0x1f4c9c;}let _0x198765=class{constructor(_0x34d877,_0xe9c099,_0x3aed56){var _0x5558ee=_0x500ae8;this['_document']=_0x34d877,this[_0x5558ee(0xd2)]=_0xe9c099,this[_0x5558ee(0x92)]=_0x3aed56,_0xbf8c92(this,_0x5558ee(0xa3),void 0x0),this['_unitId']=this[_0x5558ee(0xa7)][_0x5558ee(0x95)]();}[_0x500ae8(0x95)](){return this['_blockId'];}[_0x500ae8(0xb7)](){var _0x26991a=_0x500ae8;let _0x1af725=this[_0x26991a(0xae)]();return _0x1af725?{'blockId':_0x1af725[_0x26991a(0xbd)],'endIndex':_0x1af725['endIndex'],'startIndex':_0x1af725[_0x26991a(0xbe)]}:null;}[_0x500ae8(0x93)](){var _0x5a8ad6=_0x500ae8,_0x568b46;let _0x4ed85b=this[_0x5a8ad6(0xae)](),_0x134213=(_0x568b46=this[_0x5a8ad6(0xb3)]()[_0x5a8ad6(0xe0)])==null?void 0x0:_0x568b46[_0x5a8ad6(0xc0)];return!_0x4ed85b||!_0x134213?'':_0x4e4469(_0x134213[_0x5a8ad6(0xe6)](_0x4ed85b[_0x5a8ad6(0xbe)]+0x1,_0x4ed85b[_0x5a8ad6(0xc2)]));}[_0x500ae8(0xa6)](){var _0x2e02b6=_0x500ae8;let _0x194c68=this[_0x2e02b6(0xb7)]();return _0x194c68?{..._0x194c68,'config':this[_0x2e02b6(0x9b)](),'text':this[_0x2e02b6(0x93)](),'type':_0x585616[_0x2e02b6(0xe1)][_0x2e02b6(0xb8)]}:null;}[_0x500ae8(0x9b)](){var _0xad2ebf=_0x500ae8;return(0x0,_0x13ce60[_0xad2ebf(0xa5)])(this[_0xad2ebf(0x92)]['get'](_0x13ce60['DocsCodeModel'])[_0xad2ebf(0xb5)](this[_0xad2ebf(0xa3)],this[_0xad2ebf(0xd2)]));}[_0x500ae8(0xc4)](_0x59ece1){var _0x1ea8fe=_0x500ae8;return this[_0x1ea8fe(0x92)]['get'](_0x585616[_0x1ea8fe(0x8f)])['syncExecuteCommand'](_0x13ce60[_0x1ea8fe(0xd1)]['id'],{'blockId':this[_0x1ea8fe(0xd2)],'config':_0x59ece1[_0x1ea8fe(0xac)],'unitId':this[_0x1ea8fe(0xa3)]});}['unwrap'](){var _0x5eb01f=_0x500ae8;return this['_injector']['get'](_0x585616['ICommandService'])['syncExecuteCommand'](_0x13ce60[_0x5eb01f(0xd8)]['id'],{'blockId':this[_0x5eb01f(0xd2)],'unitId':this[_0x5eb01f(0xa3)]});}[_0x500ae8(0xa2)](){var _0x14976b=_0x500ae8;return this['_injector'][_0x14976b(0xda)](_0x585616[_0x14976b(0x8f)])[_0x14976b(0x9e)](_0x13ce60[_0x14976b(0xca)]['id'],{'blockId':this['_blockId'],'unitId':this[_0x14976b(0xa3)]});}['_getBlockRange'](){var _0x3be849=_0x500ae8,_0x3bdf93;let _0x5a967c=(_0x3bdf93=this[_0x3be849(0xb3)]()['body'])==null||(_0x3bdf93=_0x3bdf93[_0x3be849(0x96)])==null?void 0x0:_0x3bdf93[_0x3be849(0xe5)](_0xb35801=>_0xb35801[_0x3be849(0xbd)]===this[_0x3be849(0xd2)]&&_0xb35801['blockType']===_0x585616['DocumentBlockRangeType']['CODE']);return _0x5a967c==null?null:_0x5a967c;}['_getDocumentData'](){var _0x53a91e=_0x500ae8;return this[_0x53a91e(0xa7)][_0x53a91e(0xab)]();}};_0x198765=_0xed7a7c([_0x1ad032(0x2,(0x0,_0x585616[_0x500ae8(0xdf)])(_0x585616[_0x500ae8(0xb9)]))],_0x198765);function _0x4e4469(_0x476607){var _0x8f4879=_0x500ae8;return Array[_0x8f4879(0xc1)](_0x476607)[_0x8f4879(0xe3)](_0x362b10=>_0x362b10===_0x585616['DataStreamTreeTokenType'][_0x8f4879(0xbc)]?'\x0a':_0x362b10)[_0x8f4879(0xb4)](_0x2d952c=>_0x2d952c!==_0x585616[_0x8f4879(0xc8)][_0x8f4879(0xdc)]&&_0x2d952c!==_0x585616['DataStreamTreeTokenType'][_0x8f4879(0xcb)]&&_0x2d952c!==_0x585616[_0x8f4879(0xc8)][_0x8f4879(0xdd)])[_0x8f4879(0x94)]('')[_0x8f4879(0xd9)](/\n$/,'');}var _0x24ef66=class extends _0x4c6b03['FDocument']{['getCodes'](){var _0x5a8daf=_0x500ae8;return this[_0x5a8daf(0xcd)]()[_0x5a8daf(0xb4)](_0x277b0a=>_0x277b0a[_0x5a8daf(0xd4)]===_0x585616[_0x5a8daf(0xe1)]['CODE'])[_0x5a8daf(0xe3)](_0x305774=>this[_0x5a8daf(0x9c)](_0x305774[_0x5a8daf(0xbd)]));}[_0x500ae8(0xc5)](_0xff128e){var _0x24a1b7=_0x500ae8;return this[_0x24a1b7(0xcd)]()[_0x24a1b7(0xb6)](_0xc753f6=>_0xc753f6[_0x24a1b7(0xbd)]===_0xff128e&&_0xc753f6[_0x24a1b7(0xd4)]===_0x585616[_0x24a1b7(0xe1)][_0x24a1b7(0xb8)])?this[_0x24a1b7(0x9c)](_0xff128e):null;}['getCodeAt'](_0x3f7a7b){var _0x455f2f=_0x500ae8;let _0x39ed5c=this[_0x455f2f(0xcd)]()['find'](_0x16c185=>_0x16c185[_0x455f2f(0xd4)]===_0x585616[_0x455f2f(0xe1)][_0x455f2f(0xb8)]&&_0x16c185[_0x455f2f(0xbe)]<=_0x3f7a7b&&_0x3f7a7b<=_0x16c185[_0x455f2f(0xc2)]);return _0x39ed5c?this[_0x455f2f(0x9c)](_0x39ed5c['blockId']):null;}[_0x500ae8(0xa0)](_0x2a71f6){var _0x423a0e=_0x500ae8,_0x94daae;return(_0x94daae=this[_0x423a0e(0xde)](_0x2a71f6)[0x0])==null?null:_0x94daae;}[_0x500ae8(0xde)](_0x264bef){var _0x3813ae=_0x500ae8;let _0x4ae8b0=typeof _0x264bef=='string'?{'text':_0x264bef}:_0x264bef;return this['getCodes']()[_0x3813ae(0xb4)](_0x461394=>!(_0x4ae8b0[_0x3813ae(0xbd)]&&_0x461394[_0x3813ae(0x95)]()!==_0x4ae8b0[_0x3813ae(0xbd)]||_0x4ae8b0['text']&&!_0x461394[_0x3813ae(0x93)]()[_0x3813ae(0xaa)](_0x4ae8b0[_0x3813ae(0x98)])));}[_0x500ae8(0x90)](_0x21041f={},_0x369ae8={}){var _0x18c8f5=_0x500ae8,_0xfa1e5c;let _0x391fc3=this['_injector'][_0x18c8f5(0xda)](_0x585616[_0x18c8f5(0x8f)]),_0x205b35=(0x0,_0x4c6b03[_0x18c8f5(0xd7)])(_0x21041f)?{..._0x369ae8,..._0x21041f['getRange']()}:_0x21041f,_0x16aaaa=(_0xfa1e5c=_0x205b35[_0x18c8f5(0xbd)])==null?(0x0,_0x585616['generateRandomId'])(0x6):_0xfa1e5c;return _0x391fc3[_0x18c8f5(0x9e)](_0x13ce60[_0x18c8f5(0xc7)]['id'],{..._0x205b35,'blockId':_0x16aaaa,'unitId':this[_0x18c8f5(0x95)]()})?this['getCode'](_0x16aaaa):null;}[_0x500ae8(0xcd)](){var _0x574df4=_0x500ae8,_0x30f6d6,_0x1dc64e;return(_0x30f6d6=(_0x1dc64e=this[_0x574df4(0xab)]()[_0x574df4(0xe0)])==null?void 0x0:_0x1dc64e[_0x574df4(0x96)])==null?[]:_0x30f6d6;}[_0x500ae8(0x9c)](_0x2f8990){var _0x207300=_0x500ae8;return this[_0x207300(0x92)][_0x207300(0xb0)](_0x198765,this,_0x2f8990);}};_0x4c6b03[_0x500ae8(0x9f)][_0x500ae8(0xd5)](_0x24ef66),Object[_0x500ae8(0x97)](_0x152b47,_0x500ae8(0xba),{'enumerable':!0x0,'get':function(){return _0x198765;}});}));
1
+ function _0x339f(_0x33ff0f,_0x5eb8a1){_0x33ff0f=_0x33ff0f-0x158;var _0x4b8ce5=_0x4b8c();var _0x339fc8=_0x4b8ce5[_0x33ff0f];return _0x339fc8;}function _0x4b8c(){var _0x133536=['prototype','_unitId','symbol','blockType','getConfig','CODE','some','isParagraphFacade','_document','text','get','insertCode','normalizeDocsCodeConfig','1353056EpuQMw','slice','getCodeAt','object','_blockId','10lrMBjB','ICommandService','startIndex','getCode','syncExecuteCommand','_createFDocumentCode','includes','4646196jDPikT','UniverCore','body','@univerjs-pro/docs-code','DocumentBlockRangeType','1582012KBbFRd','SECTION_BREAK','FDocument','10PUTESN','map','defineProperty','UniverDocsFacade','default','FDocumentCode','blockRanges','4075974ARslBY','DocsCodeModel','string','join','getId','UniverProDocsCode','decorate','replace','DataStreamTreeTokenType','BLOCK_START','89336hsZnQh','function','DocsCodeUpdateCommand','PARAGRAPH','getOwnPropertyDescriptor','Inject','length','getCodes','exports','toPrimitive','blockId','config','getCodeConfig','unwrap','remove','_getBlockRanges','filter','Module','endIndex','336TRJWUW','1098255zdbsFG','extend','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRange','iterator','4463536caPNyG','generateRandomId','findCodeByText','findCodes','dataStream','_getBlockRange','@univerjs/docs/facade','save','_getDocumentData','getText','DocsCodeRemoveCommand','_injector','1eqZZUq','UniverProDocsCodeFacade'];_0x4b8c=function(){return _0x133536;};return _0x4b8c();}(function(_0x332f7a,_0x54fda3){var _0x110561=_0x339f,_0x5a5ca3=_0x332f7a();while(!![]){try{var _0x38423f=-parseInt(_0x110561(0x174))/0x1*(-parseInt(_0x110561(0x194))/0x2)+parseInt(_0x110561(0x163))/0x3+parseInt(_0x110561(0x183))/0x4*(parseInt(_0x110561(0x197))/0x5)+-parseInt(_0x110561(0x18f))/0x6+parseInt(_0x110561(0x162))/0x7*(-parseInt(_0x110561(0x1a8))/0x8)+-parseInt(_0x110561(0x19e))/0x9+-parseInt(_0x110561(0x188))/0xa*(-parseInt(_0x110561(0x168))/0xb);if(_0x38423f===_0x54fda3)break;else _0x5a5ca3['push'](_0x5a5ca3['shift']());}catch(_0xb2e97f){_0x5a5ca3['push'](_0x5a5ca3['shift']());}}}(_0x4b8c,0x743df),function(_0x85be0e,_0x262bf5){var _0x11c803=_0x339f;typeof exports=='object'&&typeof module<'u'?_0x262bf5(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define['amd']?define([_0x11c803(0x1b0),_0x11c803(0x192),'@univerjs/core',_0x11c803(0x16e)],_0x262bf5):(_0x85be0e=typeof globalThis<'u'?globalThis:_0x85be0e||self,_0x262bf5(_0x85be0e[_0x11c803(0x175)]={},_0x85be0e[_0x11c803(0x1a3)],_0x85be0e[_0x11c803(0x190)],_0x85be0e[_0x11c803(0x19a)]));}(this,function(_0x39c88b,_0xe016ff,_0x5cf7b4,_0x573fda){var _0x4afeb3=_0x339f;Object[_0x4afeb3(0x199)](_0x39c88b,Symbol['toStringTag'],{'value':_0x4afeb3(0x160)});function _0x508dda(_0x94ce06){'@babel/helpers - typeof';var _0x277fd8=_0x4afeb3;return _0x508dda=typeof Symbol==_0x277fd8(0x1a9)&&typeof Symbol[_0x277fd8(0x167)]==_0x277fd8(0x178)?function(_0x39871b){return typeof _0x39871b;}:function(_0x3770cd){var _0x7b7900=_0x277fd8;return _0x3770cd&&typeof Symbol==_0x7b7900(0x1a9)&&_0x3770cd['constructor']===Symbol&&_0x3770cd!==Symbol[_0x7b7900(0x176)]?_0x7b7900(0x178):typeof _0x3770cd;},_0x508dda(_0x94ce06);}function _0x1f5500(_0x265d8e,_0x194c52){var _0x26510e=_0x4afeb3;if(_0x508dda(_0x265d8e)!=_0x26510e(0x186)||!_0x265d8e)return _0x265d8e;var _0x166f01=_0x265d8e[Symbol[_0x26510e(0x158)]];if(_0x166f01!==void 0x0){var _0x1c5c20=_0x166f01['call'](_0x265d8e,_0x194c52||_0x26510e(0x19b));if(_0x508dda(_0x1c5c20)!='object')return _0x1c5c20;throw TypeError(_0x26510e(0x165));}return(_0x194c52===_0x26510e(0x1a0)?String:Number)(_0x265d8e);}function _0x1fe96a(_0x44f1bc){var _0x544d6e=_0x4afeb3,_0x4c2618=_0x1f5500(_0x44f1bc,_0x544d6e(0x1a0));return _0x508dda(_0x4c2618)=='symbol'?_0x4c2618:_0x4c2618+'';}function _0x116e71(_0x2b13af,_0xddd77b,_0x460f73){var _0x43cf7e=_0x4afeb3;return(_0xddd77b=_0x1fe96a(_0xddd77b))in _0x2b13af?Object[_0x43cf7e(0x199)](_0x2b13af,_0xddd77b,{'value':_0x460f73,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b13af[_0xddd77b]=_0x460f73,_0x2b13af;}function _0x1ec09b(_0x4d72c8,_0x2399c5){return function(_0x66ef40,_0x322e47){_0x2399c5(_0x66ef40,_0x322e47,_0x4d72c8);};}function _0x1c1d77(_0x2bbe6d,_0x1cc299,_0x506267,_0x1578af){var _0xf6cd31=_0x4afeb3,_0x5d4a16=arguments[_0xf6cd31(0x1ae)],_0x2a6cf7=_0x5d4a16<0x3?_0x1cc299:_0x1578af===null?_0x1578af=Object[_0xf6cd31(0x1ac)](_0x1cc299,_0x506267):_0x1578af,_0x2a9132;if(typeof Reflect==_0xf6cd31(0x186)&&typeof Reflect[_0xf6cd31(0x1a4)]=='function')_0x2a6cf7=Reflect[_0xf6cd31(0x1a4)](_0x2bbe6d,_0x1cc299,_0x506267,_0x1578af);else{for(var _0x54a5c0=_0x2bbe6d[_0xf6cd31(0x1ae)]-0x1;_0x54a5c0>=0x0;_0x54a5c0--)(_0x2a9132=_0x2bbe6d[_0x54a5c0])&&(_0x2a6cf7=(_0x5d4a16<0x3?_0x2a9132(_0x2a6cf7):_0x5d4a16>0x3?_0x2a9132(_0x1cc299,_0x506267,_0x2a6cf7):_0x2a9132(_0x1cc299,_0x506267))||_0x2a6cf7);}return _0x5d4a16>0x3&&_0x2a6cf7&&Object[_0xf6cd31(0x199)](_0x1cc299,_0x506267,_0x2a6cf7),_0x2a6cf7;}let _0x941b8=class{constructor(_0x1cc37e,_0x4d6624,_0x37e0a7){var _0x4f915f=_0x4afeb3;this[_0x4f915f(0x17e)]=_0x1cc37e,this['_blockId']=_0x4d6624,this[_0x4f915f(0x173)]=_0x37e0a7,_0x116e71(this,_0x4f915f(0x177),void 0x0),this['_unitId']=this[_0x4f915f(0x17e)][_0x4f915f(0x1a2)]();}[_0x4afeb3(0x1a2)](){var _0x381473=_0x4afeb3;return this[_0x381473(0x187)];}[_0x4afeb3(0x166)](){var _0x45c9ec=_0x4afeb3;let _0x1a978b=this[_0x45c9ec(0x16d)]();return _0x1a978b?{'blockId':_0x1a978b[_0x45c9ec(0x159)],'endIndex':_0x1a978b[_0x45c9ec(0x161)],'startIndex':_0x1a978b[_0x45c9ec(0x18a)]}:null;}['getText'](){var _0x1a3ff6=_0x4afeb3,_0x561451;let _0x14f55c=this[_0x1a3ff6(0x16d)](),_0xb57c63=(_0x561451=this['_getDocumentData']()[_0x1a3ff6(0x191)])==null?void 0x0:_0x561451[_0x1a3ff6(0x16c)];return!_0x14f55c||!_0xb57c63?'':_0x33bbf3(_0xb57c63[_0x1a3ff6(0x184)](_0x14f55c['startIndex']+0x1,_0x14f55c[_0x1a3ff6(0x161)]));}['describe'](){var _0x111c01=_0x4afeb3;let _0x3507b2=this[_0x111c01(0x166)]();return _0x3507b2?{..._0x3507b2,'config':this[_0x111c01(0x17a)](),'text':this[_0x111c01(0x171)](),'type':_0x5cf7b4[_0x111c01(0x193)][_0x111c01(0x17b)]}:null;}[_0x4afeb3(0x17a)](){var _0x49488e=_0x4afeb3;return(0x0,_0xe016ff[_0x49488e(0x182)])(this[_0x49488e(0x173)][_0x49488e(0x180)](_0xe016ff[_0x49488e(0x19f)])[_0x49488e(0x15b)](this[_0x49488e(0x177)],this['_blockId']));}['updateConfig'](_0xaa04c9){var _0x357162=_0x4afeb3;return this[_0x357162(0x173)][_0x357162(0x180)](_0x5cf7b4['ICommandService'])[_0x357162(0x18c)](_0xe016ff[_0x357162(0x1aa)]['id'],{'blockId':this['_blockId'],'config':_0xaa04c9[_0x357162(0x15a)],'unitId':this[_0x357162(0x177)]});}[_0x4afeb3(0x15c)](){var _0x42677a=_0x4afeb3;return this['_injector'][_0x42677a(0x180)](_0x5cf7b4[_0x42677a(0x189)])['syncExecuteCommand'](_0xe016ff['DocsCodeUnwrapCommand']['id'],{'blockId':this[_0x42677a(0x187)],'unitId':this[_0x42677a(0x177)]});}[_0x4afeb3(0x15d)](){var _0xfea223=_0x4afeb3;return this[_0xfea223(0x173)][_0xfea223(0x180)](_0x5cf7b4['ICommandService'])['syncExecuteCommand'](_0xe016ff[_0xfea223(0x172)]['id'],{'blockId':this[_0xfea223(0x187)],'unitId':this[_0xfea223(0x177)]});}['_getBlockRange'](){var _0x431334=_0x4afeb3,_0x27d4d5;return((_0x27d4d5=this['_getDocumentData']()[_0x431334(0x191)])==null||(_0x27d4d5=_0x27d4d5['blockRanges'])==null?void 0x0:_0x27d4d5['find'](_0x52e3dd=>_0x52e3dd[_0x431334(0x159)]===this[_0x431334(0x187)]&&_0x52e3dd[_0x431334(0x179)]===_0x5cf7b4[_0x431334(0x193)]['CODE']))??null;}[_0x4afeb3(0x170)](){var _0x4eab49=_0x4afeb3;return this[_0x4eab49(0x17e)][_0x4eab49(0x16f)]();}};_0x941b8=_0x1c1d77([_0x1ec09b(0x2,(0x0,_0x5cf7b4[_0x4afeb3(0x1ad)])(_0x5cf7b4['Injector']))],_0x941b8);function _0x33bbf3(_0x21eb05){var _0x4b64c4=_0x4afeb3;return Array['from'](_0x21eb05)[_0x4b64c4(0x198)](_0x51271a=>_0x51271a===_0x5cf7b4['DataStreamTreeTokenType'][_0x4b64c4(0x1ab)]?'\x0a':_0x51271a)['filter'](_0x601d7d=>_0x601d7d!==_0x5cf7b4['DataStreamTreeTokenType'][_0x4b64c4(0x1a7)]&&_0x601d7d!==_0x5cf7b4[_0x4b64c4(0x1a6)]['BLOCK_END']&&_0x601d7d!==_0x5cf7b4[_0x4b64c4(0x1a6)][_0x4b64c4(0x195)])[_0x4b64c4(0x1a1)]('')[_0x4b64c4(0x1a5)](/\n$/,'');}var _0xbd9cac=class extends _0x573fda[_0x4afeb3(0x196)]{[_0x4afeb3(0x1af)](){var _0x82d8fd=_0x4afeb3;return this['_getBlockRanges']()[_0x82d8fd(0x15f)](_0x47cc6c=>_0x47cc6c[_0x82d8fd(0x179)]===_0x5cf7b4[_0x82d8fd(0x193)][_0x82d8fd(0x17b)])['map'](_0x267960=>this['_createFDocumentCode'](_0x267960[_0x82d8fd(0x159)]));}[_0x4afeb3(0x18b)](_0x2dbaac){var _0x573eab=_0x4afeb3;return this['_getBlockRanges']()[_0x573eab(0x17c)](_0x58ebde=>_0x58ebde[_0x573eab(0x159)]===_0x2dbaac&&_0x58ebde[_0x573eab(0x179)]===_0x5cf7b4[_0x573eab(0x193)][_0x573eab(0x17b)])?this[_0x573eab(0x18d)](_0x2dbaac):null;}[_0x4afeb3(0x185)](_0x2c0022){var _0x291894=_0x4afeb3;let _0x4e480c=this[_0x291894(0x15e)]()['find'](_0xbd126=>_0xbd126[_0x291894(0x179)]===_0x5cf7b4[_0x291894(0x193)][_0x291894(0x17b)]&&_0xbd126[_0x291894(0x18a)]<=_0x2c0022&&_0x2c0022<=_0xbd126['endIndex']);return _0x4e480c?this[_0x291894(0x18d)](_0x4e480c['blockId']):null;}[_0x4afeb3(0x16a)](_0x1e2af0){return this['findCodes'](_0x1e2af0)[0x0]??null;}[_0x4afeb3(0x16b)](_0x78f028){var _0x304770=_0x4afeb3;let _0x5e91f4=typeof _0x78f028==_0x304770(0x1a0)?{'text':_0x78f028}:_0x78f028;return this['getCodes']()[_0x304770(0x15f)](_0x25215c=>!(_0x5e91f4[_0x304770(0x159)]&&_0x25215c[_0x304770(0x1a2)]()!==_0x5e91f4['blockId']||_0x5e91f4[_0x304770(0x17f)]&&!_0x25215c['getText']()[_0x304770(0x18e)](_0x5e91f4[_0x304770(0x17f)])));}[_0x4afeb3(0x181)](_0x39fb2b={},_0x335968={}){var _0x5eff70=_0x4afeb3;let _0x58fe20=this['_injector'][_0x5eff70(0x180)](_0x5cf7b4['ICommandService']),_0x349bf7=(0x0,_0x573fda[_0x5eff70(0x17d)])(_0x39fb2b)?{..._0x335968,..._0x39fb2b[_0x5eff70(0x166)]()}:_0x39fb2b,_0x5b8175=_0x349bf7[_0x5eff70(0x159)]??(0x0,_0x5cf7b4[_0x5eff70(0x169)])(0x6);return _0x58fe20[_0x5eff70(0x18c)](_0xe016ff['DocsCodeInsertCommand']['id'],{..._0x349bf7,'blockId':_0x5b8175,'unitId':this['getId']()})?this[_0x5eff70(0x18b)](_0x5b8175):null;}[_0x4afeb3(0x15e)](){var _0x13a289=_0x4afeb3,_0x1c9d3e;return((_0x1c9d3e=this[_0x13a289(0x16f)]()[_0x13a289(0x191)])==null?void 0x0:_0x1c9d3e[_0x13a289(0x19d)])??[];}[_0x4afeb3(0x18d)](_0x46c97c){return this['_injector']['createInstance'](_0x941b8,this,_0x46c97c);}};_0x573fda['FDocument'][_0x4afeb3(0x164)](_0xbd9cac),Object[_0x4afeb3(0x199)](_0x39c88b,_0x4afeb3(0x19c),{'enumerable':!0x0,'get':function(){return _0x941b8;}});}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xf638(_0x2ba148,_0x47c712){_0x2ba148=_0x2ba148-0x1f0;const _0x3ea311=_0x3ea3();let _0xf638a8=_0x3ea311[_0x2ba148];return _0xf638a8;}(function(_0x172ef6,_0x3293ba){const _0xf6e46=_0xf638,_0x2a2fa1=_0x172ef6();while(!![]){try{const _0x35bf80=parseInt(_0xf6e46(0x277))/0x1+parseInt(_0xf6e46(0x21f))/0x2+parseInt(_0xf6e46(0x276))/0x3*(-parseInt(_0xf6e46(0x23d))/0x4)+-parseInt(_0xf6e46(0x202))/0x5*(parseInt(_0xf6e46(0x262))/0x6)+parseInt(_0xf6e46(0x27c))/0x7+-parseInt(_0xf6e46(0x2a1))/0x8*(parseInt(_0xf6e46(0x1f9))/0x9)+parseInt(_0xf6e46(0x2b2))/0xa;if(_0x35bf80===_0x3293ba)break;else _0x2a2fa1['push'](_0x2a2fa1['shift']());}catch(_0x47d1ee){_0x2a2fa1['push'](_0x2a2fa1['shift']());}}}(_0x3ea3,0xb15bd),function(_0x3def12,_0x2bc9e5){const _0xed5e33=_0xf638;typeof exports==_0xed5e33(0x2a7)&&typeof module<'u'?_0x2bc9e5(exports,require('@univerjs/core'),require('rxjs'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0xed5e33(0x280)&&define[_0xed5e33(0x246)]?define([_0xed5e33(0x28f),_0xed5e33(0x285),_0xed5e33(0x29b),_0xed5e33(0x271),_0xed5e33(0x23b)],_0x2bc9e5):(_0x3def12=typeof globalThis<'u'?globalThis:_0x3def12||self,_0x2bc9e5(_0x3def12[_0xed5e33(0x1f5)]={},_0x3def12['UniverCore'],_0x3def12[_0xed5e33(0x29b)],_0x3def12['UniverDocs'],_0x3def12[_0xed5e33(0x1ff)]));}(this,function(_0x429989,_0x5e550b,_0x3e712b,_0x279706,_0x4a0047){const _0x5a4fc5=_0xf638;Object[_0x5a4fc5(0x1fe)](_0x429989,Symbol['toStringTag'],{'value':'Module'});let _0x3fa418={'language':_0x5a4fc5(0x24a),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x34b69d(_0x366a1f){return{..._0x3fa418,..._0x366a1f};}function _0x713509(_0x56ccea){const _0x1a4370=_0x5a4fc5;var _0x2fb432;let _0x319d85=(_0x2fb432=_0x56ccea==null?void 0x0:_0x56ccea[_0x1a4370(0x221)])==null?{}:_0x2fb432;return{'codes':Object[_0x1a4370(0x1f6)](Object[_0x1a4370(0x253)](_0x319d85)[_0x1a4370(0x2bb)](([_0x3d6a28,_0x2234a3])=>[_0x3d6a28,_0x34b69d(_0x2234a3)]))};}function _0x32b067(_0x231b3d,_0x170891,_0x1a0f17){const _0x2878ad=_0x5a4fc5;let _0xadd27d=_0x713509(_0x231b3d);return _0xadd27d[_0x2878ad(0x221)][_0x170891]=_0x34b69d({..._0xadd27d['codes'][_0x170891],..._0x1a0f17}),_0xadd27d;}function _0x16ba49(_0x571756,_0x8419fd){const _0x5d3e69=_0x5a4fc5;let _0x2b32df=_0x713509(_0x571756);return delete _0x2b32df[_0x5d3e69(0x221)][_0x8419fd],_0x2b32df;}function _0x5865a3(_0xbfe6de){'@babel/helpers - typeof';const _0x1f48ad=_0x5a4fc5;return _0x5865a3=typeof Symbol==_0x1f48ad(0x280)&&typeof Symbol['iterator']==_0x1f48ad(0x27b)?function(_0x20ad42){return typeof _0x20ad42;}:function(_0x4669d7){const _0x55e85c=_0x1f48ad;return _0x4669d7&&typeof Symbol=='function'&&_0x4669d7[_0x55e85c(0x1fa)]===Symbol&&_0x4669d7!==Symbol[_0x55e85c(0x2b3)]?_0x55e85c(0x27b):typeof _0x4669d7;},_0x5865a3(_0xbfe6de);}function _0x4e559d(_0x5735bc,_0x1292cb){const _0x468876=_0x5a4fc5;if(_0x5865a3(_0x5735bc)!=_0x468876(0x2a7)||!_0x5735bc)return _0x5735bc;var _0x599fff=_0x5735bc[Symbol['toPrimitive']];if(_0x599fff!==void 0x0){var _0x355e43=_0x599fff['call'](_0x5735bc,_0x1292cb||_0x468876(0x2a3));if(_0x5865a3(_0x355e43)!=_0x468876(0x2a7))return _0x355e43;throw TypeError(_0x468876(0x24c));}return(_0x1292cb===_0x468876(0x256)?String:Number)(_0x5735bc);}function _0x7e9ede(_0x48a0f9){const _0x297f2e=_0x5a4fc5;var _0x26dba4=_0x4e559d(_0x48a0f9,_0x297f2e(0x256));return _0x5865a3(_0x26dba4)==_0x297f2e(0x27b)?_0x26dba4:_0x26dba4+'';}function _0x3ebe32(_0x328ee5,_0x18075b,_0x5d50d1){const _0x32f79b=_0x5a4fc5;return(_0x18075b=_0x7e9ede(_0x18075b))in _0x328ee5?Object[_0x32f79b(0x1fe)](_0x328ee5,_0x18075b,{'value':_0x5d50d1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x328ee5[_0x18075b]=_0x5d50d1,_0x328ee5;}var _0x50a18d=class extends _0x5e550b[_0x5a4fc5(0x269)]{constructor(..._0xe61a47){const _0x5eac67=_0x5a4fc5;super(..._0xe61a47),_0x3ebe32(this,_0x5eac67(0x201),new Map()),_0x3ebe32(this,_0x5eac67(0x233),new _0x3e712b[(_0x5eac67(0x2b8))]()),_0x3ebe32(this,_0x5eac67(0x251),this[_0x5eac67(0x233)][_0x5eac67(0x206)]());}[_0x5a4fc5(0x270)](_0x48eeef,_0x13257c){return _0x713509(this['_resources']['get'](_0x48eeef))['codes'][_0x13257c];}['setCodeConfig'](_0x5c61c2,_0x3692eb,_0x5cb7f3){const _0x3752a7=_0x5a4fc5;this[_0x3752a7(0x24d)](_0x5c61c2,_0x3692eb,_0x32b067(this[_0x3752a7(0x201)][_0x3752a7(0x222)](_0x5c61c2),_0x3692eb,_0x5cb7f3));}[_0x5a4fc5(0x25c)](_0x2f7d81,_0x18ddac){const _0x502f4b=_0x5a4fc5;this[_0x502f4b(0x24d)](_0x2f7d81,_0x18ddac,_0x16ba49(this[_0x502f4b(0x201)]['get'](_0x2f7d81),_0x18ddac));}[_0x5a4fc5(0x226)](_0x3b3dc6){const _0x352b06=_0x5a4fc5;return _0x713509(this[_0x352b06(0x201)][_0x352b06(0x222)](_0x3b3dc6));}['deserialize'](_0x328360,_0x183169){const _0x213ba6=_0x5a4fc5;this['_resources'][_0x213ba6(0x27f)](_0x328360,_0x713509(_0x183169)),this[_0x213ba6(0x233)]['next']({'unitId':_0x328360});}[_0x5a4fc5(0x290)](_0x398dc3){const _0x34c5e4=_0x5a4fc5;this[_0x34c5e4(0x201)][_0x34c5e4(0x2a4)](_0x398dc3),this['_change$'][_0x34c5e4(0x21c)]({'unitId':_0x398dc3});}[_0x5a4fc5(0x23c)](){const _0x553558=_0x5a4fc5;super[_0x553558(0x23c)](),this[_0x553558(0x201)][_0x553558(0x261)](),this[_0x553558(0x233)]['complete']();}[_0x5a4fc5(0x24d)](_0x26367d,_0x2143e0,_0x19aa24){const _0x576cd4=_0x5a4fc5;this[_0x576cd4(0x201)][_0x576cd4(0x27f)](_0x26367d,_0x19aa24),this['_change$'][_0x576cd4(0x21c)]({'unitId':_0x26367d,'blockId':_0x2143e0});}};let _0x124ee6={'id':'docs-code.mutation.set-config','type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x1f4)],'handler':(_0x6c53dd,_0x26ccca)=>!(_0x26ccca!=null&&_0x26ccca[_0x5a4fc5(0x2a6)])||!_0x26ccca[_0x5a4fc5(0x252)]?!0x1:(_0x6c53dd[_0x5a4fc5(0x222)](_0x50a18d)[_0x5a4fc5(0x215)](_0x26ccca['unitId'],_0x26ccca[_0x5a4fc5(0x252)],_0x26ccca['config']),!0x0)},_0x30c687={'id':_0x5a4fc5(0x26c),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x1f4)],'handler':(_0x1c1686,_0x8e81cc)=>!(_0x8e81cc!=null&&_0x8e81cc[_0x5a4fc5(0x2a6)])||!_0x8e81cc[_0x5a4fc5(0x252)]?!0x1:(_0x1c1686[_0x5a4fc5(0x222)](_0x50a18d)[_0x5a4fc5(0x25c)](_0x8e81cc[_0x5a4fc5(0x2a6)],_0x8e81cc[_0x5a4fc5(0x252)]),!0x0)},_0xf9e6dc='monospace';var _0x14e695=class extends Error{constructor(_0x1fe6c1='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x1fe6c1);}};function _0x3dec13(_0x14f6ca){const _0x3676ce=_0x5a4fc5;var _0x3772c8,_0x13f47e,_0x3ce583;let _0x48e1c9=_0x4bfcdd(_0x14f6ca[_0x3676ce(0x28d)]),_0x255914=_0x3c95d2(_0x48e1c9),_0x2e3e95=_0x5e0534(_0x14f6ca['startOffset'],_0x14f6ca['endOffset']),_0x586768=_0x2e3e95?(_0x3772c8=_0x255914['blockRanges'])==null?void 0x0:_0x3772c8['find'](_0x1cfbd6=>{const _0x563da2=_0x3676ce;let _0x2310e1=(0x0,_0x5e550b['getBlockRangeInterval'])(_0x1cfbd6);return _0x2310e1['startOffset']===_0x2e3e95['startOffset']&&_0x2310e1[_0x563da2(0x229)]===_0x2e3e95[_0x563da2(0x229)];}):void 0x0,{startOffset:_0x4f0274,endOffset:_0xd988fe}=_0x586768?_0x2e3e95:_0x37f1e4(_0x255914,_0x14f6ca[_0x3676ce(0x2ab)],_0x14f6ca[_0x3676ce(0x229)],_0x14f6ca[_0x3676ce(0x29f)]);if(!_0x586768&&_0x511c61(_0x255914,_0x4f0274,_0xd988fe))throw new _0x14e695('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x39dc0d=_0xe72862(_0x255914,_0x4f0274,_0xd988fe),_0xc4ec92=(_0x13f47e=_0x586768==null?void 0x0:_0x586768[_0x3676ce(0x252)])==null?_0x14f6ca['blockId']:_0x13f47e,_0x1369e4=_0x32b067(_0x14f6ca[_0x3676ce(0x20b)],_0xc4ec92,{..._0x3fa418,..._0x14f6ca['config']});if(_0x586768)return _0x586768[_0x3676ce(0x26a)]=_0x5e550b[_0x3676ce(0x21a)]['CODE'],_0x24eca1(_0x255914,_0x4f0274,_0xd988fe),_0x2eebbf(_0x255914,_0x4f0274,_0xd988fe,_0x39dc0d),_0x4cadcc(_0x255914,_0x586768),{'nextDocumentData':_0x48e1c9,'nextMetadata':_0x1369e4,'cursorOffset':_0x4f0274+0x1};if(_0x4f0274===_0xd988fe){var _0x43c28b,_0xa91b00;let _0x484b3e=''+_0x5e550b['DataStreamTreeTokenType'][_0x3676ce(0x248)]+_0x5e550b[_0x3676ce(0x2a2)]['PARAGRAPH']+_0x5e550b[_0x3676ce(0x2a2)]['BLOCK_END'];_0x452b6b(_0x255914,_0x4f0274,_0x484b3e,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x5e550b[_0x3676ce(0x219)])(new Set((_0x43c28b=_0x255914['paragraphs'])==null?void 0x0:_0x43c28b[_0x3676ce(0x2bb)](_0x1af8b9=>_0x1af8b9[_0x3676ce(0x292)]))),'paragraphStyle':_0x43fd62(!0x0,!0x0,_0x39dc0d)}],'blockRanges':[{'blockId':_0xc4ec92,'blockType':_0x5e550b['DocumentBlockRangeType'][_0x3676ce(0x273)],'startIndex':0x0,'endIndex':_0x484b3e[_0x3676ce(0x293)]-0x1}]});let _0x43a121=(_0xa91b00=_0x255914[_0x3676ce(0x291)])==null?void 0x0:_0xa91b00['find'](_0x297adb=>_0x297adb[_0x3676ce(0x252)]===_0xc4ec92);return _0x43a121&&_0x4cadcc(_0x255914,_0x43a121),{'nextDocumentData':_0x48e1c9,'nextMetadata':_0x1369e4,'cursorOffset':_0x4f0274+0x1};}_0x452b6b(_0x255914,_0xd988fe,_0x5e550b[_0x3676ce(0x2a2)][_0x3676ce(0x258)]),_0x452b6b(_0x255914,_0x4f0274,_0x5e550b[_0x3676ce(0x2a2)][_0x3676ce(0x248)]),_0x2eebbf(_0x255914,_0x4f0274,_0xd988fe+0x1,_0x39dc0d);let _0x6ba5a={'blockId':_0xc4ec92,'blockType':_0x5e550b[_0x3676ce(0x21a)][_0x3676ce(0x273)],'startIndex':_0x4f0274,'endIndex':_0xd988fe+0x1};return _0x255914['blockRanges']=[...(_0x3ce583=_0x255914[_0x3676ce(0x291)])==null?[]:_0x3ce583,_0x6ba5a][_0x3676ce(0x296)]((_0x3d0cdb,_0x201815)=>_0x3d0cdb['startIndex']-_0x201815[_0x3676ce(0x237)]),_0x4cadcc(_0x255914,_0x6ba5a),{'nextDocumentData':_0x48e1c9,'nextMetadata':_0x1369e4,'cursorOffset':_0x4f0274+0x1};}function _0x24eca1(_0x24f783,_0x5208f1,_0x12d7fd){const _0x31bcd0=_0x5a4fc5;var _0x4b29ff;((_0x4b29ff=_0x24f783[_0x31bcd0(0x20c)])==null?[]:_0x4b29ff)[_0x31bcd0(0x24e)](_0x186e9c=>_0x186e9c[_0x31bcd0(0x237)]>_0x5208f1&&_0x186e9c[_0x31bcd0(0x237)]<_0x12d7fd)['forEach'](_0x1b37e4=>{const _0x1868b6=_0x31bcd0;var _0xde55b3;let _0x135caf={...(_0xde55b3=_0x1b37e4[_0x1868b6(0x238)])==null?{}:_0xde55b3};delete _0x135caf[_0x1868b6(0x1f3)],delete _0x135caf['spaceBelow'],_0x1b37e4[_0x1868b6(0x238)]=_0x135caf;});}function _0x5e0534(_0x369d22,_0x2df2f6){const _0x157e07=_0x5a4fc5;return _0x369d22==null||_0x2df2f6==null||_0x369d22===_0x2df2f6?null:{'startOffset':Math[_0x157e07(0x2bc)](_0x369d22,_0x2df2f6),'endOffset':Math[_0x157e07(0x23e)](_0x369d22,_0x2df2f6)};}function _0x511c61(_0xce55bf,_0x341f41,_0x273b9f){const _0x4c82b1=_0x5a4fc5;var _0x302a44;return((_0x302a44=_0xce55bf[_0x4c82b1(0x291)])==null?[]:_0x302a44)['some'](_0x2737c5=>{const _0x3a033d=_0x4c82b1;let _0x49ef44=(0x0,_0x5e550b[_0x3a033d(0x205)])(_0x2737c5);return _0x341f41===_0x273b9f?(0x0,_0x5e550b[_0x3a033d(0x1f2)])(_0x49ef44,_0x341f41):(0x0,_0x5e550b[_0x3a033d(0x297)])(_0x49ef44,{'startOffset':_0x341f41,'endOffset':_0x273b9f});});}function _0xc863bc(_0x1bfa0c){const _0x27765f=_0x5a4fc5;return{'nextDocumentData':_0x4bfcdd(_0x1bfa0c[_0x27765f(0x28d)]),'nextMetadata':_0x32b067(_0x1bfa0c['metadata'],_0x1bfa0c[_0x27765f(0x252)],_0x1bfa0c[_0x27765f(0x216)]),'cursorOffset':0x0};}function _0x1fa18f(_0x32806d){const _0x28f613=_0x5a4fc5;let _0x29f1d7=_0x4bfcdd(_0x32806d['documentData']),_0x2fc344=_0x3c95d2(_0x29f1d7),_0xd5616a=_0x179dcc(_0x2fc344,_0x32806d['blockId']);if(!_0xd5616a)return null;let _0xfed5=_0x2db023(_0x2fc344,_0xd5616a);return{'nextDocumentData':_0x29f1d7,'nextMetadata':_0x16ba49(_0x32806d[_0x28f613(0x20b)],_0x32806d[_0x28f613(0x252)]),'cursorOffset':_0xfed5};}function _0x3a0b0e(_0x5cf16a){const _0x53bd6b=_0x5a4fc5;var _0x228a1a;let _0x2f6582=_0x4bfcdd(_0x5cf16a['documentData']),_0x16558d=_0x3c95d2(_0x2f6582),_0x34c8e5=_0x179dcc(_0x16558d,_0x5cf16a[_0x53bd6b(0x252)]);if(!_0x34c8e5)return null;let _0x1a459c=(0x0,_0x5e550b[_0x53bd6b(0x205)])(_0x34c8e5);return _0x31bfd5(_0x16558d,_0x1a459c[_0x53bd6b(0x2ab)],_0x1a459c[_0x53bd6b(0x229)]),_0x16558d[_0x53bd6b(0x291)]=(_0x228a1a=_0x16558d[_0x53bd6b(0x291)])==null?void 0x0:_0x228a1a['filter'](_0x410317=>_0x410317['blockId']!==_0x5cf16a[_0x53bd6b(0x252)]),{'nextDocumentData':_0x2f6582,'nextMetadata':_0x16ba49(_0x5cf16a[_0x53bd6b(0x20b)],_0x5cf16a[_0x53bd6b(0x252)]),'cursorOffset':_0x34c8e5['startIndex']};}function _0x83239a(_0x1c9fb6){const _0xf543d3=_0x5a4fc5;let _0x47e314=_0x4bfcdd(_0x1c9fb6[_0xf543d3(0x28d)]),_0x10edf2=_0x3c95d2(_0x47e314),_0x555dc7=_0x1151bc(_0x10edf2,_0x1c9fb6['cursorOffset']);return _0x555dc7&&_0x179dab(_0x47e314,_0x10edf2,_0x555dc7,_0x1c9fb6['cursorOffset'],_0x1c9fb6['paragraphStartIndex'])||null;}function _0x179dab(_0x5f37f0,_0x410be4,_0x2ca333,_0x53b139,_0x5b4775){const _0x1b6796=_0x5a4fc5;let _0x2ae69f=_0x1de5b2(_0x410be4,_0x2ca333,_0x53b139,_0x5b4775);if(!_0x2ae69f)return null;let _0x2f7eeb=_0x2ae69f[_0x1b6796(0x286)]-0x1;return _0x31bfd5(_0x410be4,_0x2ae69f[_0x1b6796(0x235)][_0x1b6796(0x237)],_0x2ae69f[_0x1b6796(0x235)][_0x1b6796(0x237)]+0x1),{'nextDocumentData':_0x5f37f0,'cursorOffset':_0x2f7eeb};}function _0x179dcc(_0x122ba0,_0x3cbeb1){const _0x17cda3=_0x5a4fc5;var _0x38fd7a;return _0x122ba0==null||(_0x38fd7a=_0x122ba0[_0x17cda3(0x291)])==null?void 0x0:_0x38fd7a[_0x17cda3(0x240)](_0x2ddec8=>_0x2ddec8[_0x17cda3(0x26a)]===_0x5e550b[_0x17cda3(0x21a)][_0x17cda3(0x273)]&&_0x2ddec8[_0x17cda3(0x252)]===_0x3cbeb1);}function _0x5dfcb4(_0x39b3df){const _0x5b9b86=_0x5a4fc5;var _0x2b4438;let _0x53215f=_0x39b3df[_0x5b9b86(0x28d)]['body'];if(!_0x53215f)return!0x1;let _0x4731fa=_0x39b3df['direction']===_0x5b9b86(0x295)?_0x39b3df['cursorOffset']-0x1:_0x39b3df['cursorOffset'],_0x23deca=_0x39b3df[_0x5b9b86(0x1fb)]==='right'?_0x39b3df[_0x5b9b86(0x282)]+0x1:_0x4731fa;return((_0x2b4438=_0x53215f[_0x5b9b86(0x291)])==null?[]:_0x2b4438)[_0x5b9b86(0x27a)](_0x6f954e=>_0x6f954e[_0x5b9b86(0x26a)]===_0x5e550b[_0x5b9b86(0x21a)][_0x5b9b86(0x273)]?_0x4731fa===_0x6f954e[_0x5b9b86(0x237)]||_0x4731fa===_0x6f954e[_0x5b9b86(0x2ac)]||_0x23deca===_0x6f954e[_0x5b9b86(0x237)]||_0x23deca===_0x6f954e[_0x5b9b86(0x2ac)]:!0x1);}function _0x1151bc(_0x29691a,_0x3e5efd){const _0x2bdaa1=_0x5a4fc5;var _0x3dfeb2;return(_0x3dfeb2=_0x29691a[_0x2bdaa1(0x291)])==null?void 0x0:_0x3dfeb2[_0x2bdaa1(0x240)](_0x134305=>{const _0x561433=_0x2bdaa1;let _0x3e3d7a=_0x5d6ac0(_0x134305);return _0x134305[_0x561433(0x26a)]===_0x5e550b[_0x561433(0x21a)][_0x561433(0x273)]&&_0x134305[_0x561433(0x237)]<=_0x3e5efd&&_0x3e5efd<=_0x3e3d7a+0x2;});}function _0x43fd62(_0x107d0,_0x335292,_0x14ce8d=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x107d0&&_0x14ce8d?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0xf9e6dc,'fs':0xc}};}function _0x2eebbf(_0x5ac7c7,_0x3cebf5,_0x3e4cf3,_0x4d8711=!0x1){const _0x247686=_0x5a4fc5;var _0x2914ef;let _0x30203b=((_0x2914ef=_0x5ac7c7[_0x247686(0x20c)])==null?[]:_0x2914ef)[_0x247686(0x24e)](_0x55b405=>_0x55b405['startIndex']>_0x3cebf5&&_0x55b405[_0x247686(0x237)]<_0x3e4cf3);_0x30203b[_0x247686(0x23f)]((_0x2e60df,_0x1773a6)=>{const _0x267316=_0x247686;var _0x3b3916;_0x2e60df[_0x267316(0x238)]={...(_0x3b3916=_0x2e60df[_0x267316(0x238)])==null?{}:_0x3b3916,..._0x43fd62(_0x1773a6===0x0,_0x1773a6===_0x30203b[_0x267316(0x293)]-0x1,_0x4d8711)};});}function _0x190789(_0x683325){const _0x152294=_0x5a4fc5;var _0x81489e,_0x48661d;let _0x1298f8={..._0x683325==null?{}:_0x683325};return delete _0x1298f8['indentEnd'],delete _0x1298f8[_0x152294(0x28e)],delete _0x1298f8[_0x152294(0x1f3)],delete _0x1298f8[_0x152294(0x22d)],((_0x81489e=_0x1298f8[_0x152294(0x250)])==null?void 0x0:_0x81489e['ff'])===_0xf9e6dc&&((_0x48661d=_0x1298f8[_0x152294(0x250)])==null?void 0x0:_0x48661d['fs'])===0xc&&delete _0x1298f8['textStyle'],_0x1298f8;}function _0x25e14a(_0x3f29fe,_0x2d9708){const _0x2ffae6=_0x5a4fc5;var _0x185de4;let _0x1f1755=_0x5d6ac0(_0x2d9708);return((_0x185de4=_0x3f29fe[_0x2ffae6(0x20c)])==null?[]:_0x185de4)[_0x2ffae6(0x24e)](_0xf15034=>_0xf15034['startIndex']>_0x2d9708[_0x2ffae6(0x237)]&&_0xf15034['startIndex']<_0x1f1755);}function _0x2db023(_0x16759e,_0x1ea0c2){const _0x25f4dc=_0x5a4fc5;var _0x545cb4;let _0x1f0c0a=_0x5d6ac0(_0x1ea0c2);return _0x25e14a(_0x16759e,_0x1ea0c2)['forEach'](_0x233511=>{const _0x105613=_0xf638;_0x233511[_0x105613(0x238)]=_0x190789(_0x233511[_0x105613(0x238)]);}),_0x31bfd5(_0x16759e,_0x1f0c0a,_0x1f0c0a+0x1),_0x31bfd5(_0x16759e,_0x1ea0c2[_0x25f4dc(0x237)],_0x1ea0c2[_0x25f4dc(0x237)]+0x1),_0x16759e[_0x25f4dc(0x291)]=(_0x545cb4=_0x16759e[_0x25f4dc(0x291)])==null?void 0x0:_0x545cb4[_0x25f4dc(0x24e)](_0x3e9909=>_0x3e9909[_0x25f4dc(0x252)]!==_0x1ea0c2['blockId']),_0x1ea0c2[_0x25f4dc(0x237)];}function _0x4bfcdd(_0x4f5af2){const _0x1a3282=_0x5a4fc5;return{..._0x4f5af2,'body':_0x4f5af2[_0x1a3282(0x2a8)]?_0x381872(_0x4f5af2[_0x1a3282(0x2a8)]):_0x4f5af2[_0x1a3282(0x2a8)]};}function _0x381872(_0x4da905){const _0x1d42ea=_0x5a4fc5;var _0x59f54d,_0x2c8ab9,_0x52702f,_0xa1175e,_0xbc1dc5,_0x3fc9c9,_0x2e0905,_0x5937f7,_0x153a4b;return{..._0x4da905,'paragraphs':(_0x59f54d=_0x4da905['paragraphs'])==null?void 0x0:_0x59f54d['map'](_0x1dbafb=>({..._0x1dbafb,'bullet':_0x5bbcd5(_0x1dbafb[_0x1d42ea(0x26b)]),'paragraphStyle':_0x5bbcd5(_0x1dbafb[_0x1d42ea(0x238)])})),'sectionBreaks':(_0x2c8ab9=_0x4da905[_0x1d42ea(0x2b0)])==null?void 0x0:_0x2c8ab9[_0x1d42ea(0x2bb)](_0x9ac347=>({..._0x9ac347})),'textRuns':(_0x52702f=_0x4da905[_0x1d42ea(0x2b7)])==null?void 0x0:_0x52702f[_0x1d42ea(0x2bb)](_0x2d60de=>({..._0x2d60de})),'tables':(_0xa1175e=_0x4da905['tables'])==null?void 0x0:_0xa1175e[_0x1d42ea(0x2bb)](_0x42cea5=>({..._0x42cea5})),'columnGroups':(_0xbc1dc5=_0x4da905[_0x1d42ea(0x232)])==null?void 0x0:_0xbc1dc5[_0x1d42ea(0x2bb)](_0xb1478b=>{const _0x102e25=_0x1d42ea;var _0x3da59e;return{..._0xb1478b,'columns':(_0x3da59e=_0xb1478b[_0x102e25(0x288)])==null?void 0x0:_0x3da59e['map'](_0x2ec789=>_0x5bbcd5(_0x2ec789))};}),'blockRanges':(_0x3fc9c9=_0x4da905[_0x1d42ea(0x291)])==null?void 0x0:_0x3fc9c9[_0x1d42ea(0x2bb)](_0x4fe1ae=>({..._0x4fe1ae})),'customRanges':(_0x2e0905=_0x4da905[_0x1d42ea(0x1f1)])==null?void 0x0:_0x2e0905[_0x1d42ea(0x2bb)](_0x37deff=>({..._0x37deff})),'customDecorations':(_0x5937f7=_0x4da905['customDecorations'])==null?void 0x0:_0x5937f7['map'](_0x246c51=>({..._0x246c51})),'customBlocks':(_0x153a4b=_0x4da905[_0x1d42ea(0x224)])==null?void 0x0:_0x153a4b[_0x1d42ea(0x2bb)](_0x388b93=>({..._0x388b93}))};}function _0x5bbcd5(_0x35eea1){const _0x40b547=_0x5a4fc5;return Array['isArray'](_0x35eea1)?_0x35eea1[_0x40b547(0x2bb)](_0x3cc82f=>_0x5bbcd5(_0x3cc82f)):!_0x35eea1||typeof _0x35eea1!=_0x40b547(0x2a7)?_0x35eea1:Object['fromEntries'](Object[_0x40b547(0x253)](_0x35eea1)[_0x40b547(0x2bb)](([_0x845cc8,_0x4f4eca])=>[_0x845cc8,_0x5bbcd5(_0x4f4eca)]));}function _0x3c95d2(_0x5de595){const _0x209a57=_0x5a4fc5;if(!_0x5de595[_0x209a57(0x2a8)])throw Error(_0x209a57(0x25e));return _0x5de595['body'];}function _0x37f1e4(_0x2972ac,_0x434df3,_0x364b27,_0x6f7cae=_0x5a4fc5(0x231)){const _0x252b39=_0x5a4fc5;if(_0x434df3==null||_0x364b27==null){let _0x524d24=_0x23d097(_0x2972ac);return{'startOffset':_0x524d24,'endOffset':_0x524d24};}let _0x218714=Math[_0x252b39(0x2bc)](_0x434df3,_0x364b27),_0x352e7e=Math[_0x252b39(0x23e)](_0x434df3,_0x364b27),_0x4aa806=_0x32833f(_0x2972ac,_0x218714,_0x352e7e);return _0x218714===_0x352e7e?_0x6f7cae===_0x252b39(0x25b)?{'startOffset':_0x218714,'endOffset':_0x352e7e}:_0x29d32c(_0x2972ac,_0x218714,_0x4aa806):_0x545361(_0x2972ac,_0x218714,_0x352e7e,_0x4aa806);}function _0x29d32c(_0x3a8dce,_0x45745c,_0x5264bd){const _0x5556b8=_0x5a4fc5;let _0xf9c65e=_0xebaaa7(_0x3a8dce,_0x45745c);if(_0xf9c65e){let _0x2def98=_0x5cd5ce(_0x3a8dce,_0xf9c65e,_0x5264bd);if(_0x2def98<_0xf9c65e['startIndex'])return{'startOffset':_0x2def98,'endOffset':_0x5264bd?Math[_0x5556b8(0x2bc)](_0xf9c65e['startIndex']+0x1,_0x5264bd['endOffset']):_0xf9c65e[_0x5556b8(0x237)]+0x1};}let _0x2542a4=_0x45745c===0x0&&_0x3a8dce[_0x5556b8(0x27e)][0x0]===_0x5e550b[_0x5556b8(0x2a2)][_0x5556b8(0x2a9)]?0x1:_0x45745c;return{'startOffset':_0x2542a4,'endOffset':_0x2542a4};}function _0x23d097(_0x5147f5){const _0x11dc37=_0x5a4fc5;return _0x5147f5[_0x11dc37(0x27e)]['endsWith'](_0x5e550b[_0x11dc37(0x2a2)][_0x11dc37(0x208)])?Math['max'](0x0,_0x5147f5['dataStream'][_0x11dc37(0x293)]-0x1):_0x5147f5[_0x11dc37(0x27e)]['length'];}function _0xe72862(_0x5cf60b,_0x565642,_0x186243){const _0x4d7c65=_0x5a4fc5;var _0x2345e9;let _0x3f1b8d=Math['min'](_0x565642,_0x186243),_0x45d6a1=Math[_0x4d7c65(0x23e)](_0x565642,_0x186243);return!!((_0x2345e9=_0x5cf60b['tables'])!=null&&_0x2345e9[_0x4d7c65(0x27a)](_0x416671=>_0x3f1b8d>_0x416671[_0x4d7c65(0x237)]&&_0x3f1b8d<_0x416671['endIndex']||_0x45d6a1>_0x416671[_0x4d7c65(0x237)]&&_0x45d6a1<_0x416671[_0x4d7c65(0x2ac)]||_0x3f1b8d<=_0x416671[_0x4d7c65(0x237)]&&_0x45d6a1>=_0x416671[_0x4d7c65(0x2ac)]));}function _0x545361(_0x2f9a68,_0x4b39b8,_0x399a64,_0x3d673a){const _0x4b7773=_0x5a4fc5;var _0xd4cc6f,_0xe6b553;let _0x451ece=[...(_0xd4cc6f=_0x2f9a68[_0x4b7773(0x20c)])==null?[]:_0xd4cc6f][_0x4b7773(0x296)]((_0x12ce51,_0x5ed3ac)=>_0x12ce51[_0x4b7773(0x237)]-_0x5ed3ac[_0x4b7773(0x237)]),_0x5e9b19=(0x0,_0x5e550b['getParagraphContentStartOffsets'])(_0x2f9a68),_0x56f16e=_0x451ece[_0x4b7773(0x240)](_0x5ca389=>_0x5cd5ce(_0x2f9a68,_0x5ca389,_0x3d673a,_0x5e9b19)<=_0x4b39b8&&_0x4b39b8<=_0x5ca389[_0x4b7773(0x237)]),_0x9f9a40=(_0xe6b553=_0x451ece[_0x4b7773(0x240)](_0x19b321=>_0x19b321[_0x4b7773(0x237)]>=_0x399a64-0x1))==null?_0x451ece[_0x451ece[_0x4b7773(0x293)]-0x1]:_0xe6b553;return{'startOffset':_0x56f16e?_0x5cd5ce(_0x2f9a68,_0x56f16e,_0x3d673a,_0x5e9b19):_0x4b39b8,'endOffset':_0x9f9a40?_0xdd2aeb(_0x9f9a40,_0x3d673a):_0x399a64};}function _0xebaaa7(_0x5f0e09,_0x23d725){const _0x375829=_0x5a4fc5;var _0x3f663f;let _0x589937=[...(_0x3f663f=_0x5f0e09['paragraphs'])==null?[]:_0x3f663f]['sort']((_0x2c9cc5,_0x34afff)=>_0x2c9cc5[_0x375829(0x237)]-_0x34afff[_0x375829(0x237)]),_0xfca7c=(0x0,_0x5e550b[_0x375829(0x24f)])(_0x5f0e09);return _0x589937[_0x375829(0x240)](_0x2086a2=>{const _0x8bb479=_0x375829;var _0x523454;return((_0x523454=_0xfca7c['get'](_0x2086a2[_0x8bb479(0x237)]))==null?0x0:_0x523454)<=_0x23d725&&_0x23d725<=_0x2086a2[_0x8bb479(0x237)];});}function _0x5cd5ce(_0x5eb332,_0x55d4bf,_0x3249e1,_0x2eddfc){const _0x1db312=_0x5a4fc5;var _0x1f2f5e;let _0x1d483e=(_0x1f2f5e=_0x2eddfc==null?void 0x0:_0x2eddfc[_0x1db312(0x222)](_0x55d4bf['startIndex']))==null?(0x0,_0x5e550b[_0x1db312(0x2ba)])(_0x5eb332,_0x55d4bf):_0x1f2f5e;return _0x3249e1?Math['max'](_0x1d483e,_0x3249e1[_0x1db312(0x2ab)]):_0x1d483e;}function _0xdd2aeb(_0x3b0364,_0x5cecdc){const _0x450aaa=_0x5a4fc5;let _0x4232b7=_0x3b0364[_0x450aaa(0x237)]+0x1;return _0x5cecdc?Math['min'](_0x4232b7,_0x5cecdc[_0x450aaa(0x229)]):_0x4232b7;}function _0x32833f(_0x2d6c87,_0x501bfc,_0x112fa){const _0x29a504=_0x5a4fc5;let _0x4bea04=_0x207ef1(_0x2d6c87,_0x501bfc),_0x5cc8d5=_0x207ef1(_0x2d6c87,_0x501bfc===_0x112fa?_0x112fa:Math[_0x29a504(0x23e)](_0x501bfc,_0x112fa-0x1));if(!(!_0x4bea04&&!_0x5cc8d5)){if(!_0x4bea04||!_0x5cc8d5||_0x4bea04[_0x29a504(0x22f)]!==_0x5cc8d5[_0x29a504(0x22f)]||_0x4bea04[_0x29a504(0x286)]!==_0x5cc8d5[_0x29a504(0x286)])throw new _0x14e695();return _0x4bea04;}}function _0x207ef1(_0x3ffe3e,_0x33d0ac){const _0x498600=_0x5a4fc5;let _0x20ac9d=_0x3ffe3e[_0x498600(0x27e)],_0x41838c=-0x1;for(let _0x9ca090=Math['min'](_0x33d0ac,_0x20ac9d[_0x498600(0x293)]-0x1);_0x9ca090>=0x0;_0x9ca090--){let _0x3b47ce=_0x20ac9d[_0x9ca090];if(_0x3b47ce===_0x5e550b[_0x498600(0x2a2)][_0x498600(0x275)])return;if(_0x3b47ce===_0x5e550b[_0x498600(0x2a2)][_0x498600(0x1f7)]){_0x41838c=_0x9ca090;break;}}if(_0x41838c<0x0)return;let _0x8bbc1d=_0x20ac9d['indexOf'](_0x5e550b['DataStreamTreeTokenType'][_0x498600(0x275)],_0x41838c+0x1);if(!(_0x8bbc1d<0x0||_0x33d0ac<_0x41838c+0x1||_0x33d0ac>_0x8bbc1d-0x1))return{'startOffset':_0x41838c+0x1,'endOffset':Math[_0x498600(0x23e)](_0x41838c+0x1,_0x8bbc1d-0x1),'startTokenOffset':_0x41838c,'endTokenOffset':_0x8bbc1d};}function _0x5d6ac0(_0x2d7b9a){const _0x369dce=_0x5a4fc5;return(0x0,_0x5e550b[_0x369dce(0x205)])(_0x2d7b9a)[_0x369dce(0x229)]-0x1;}function _0x1de5b2(_0x221f4b,_0x14ed82,_0x1b2780,_0x56ecf7){const _0x35ef68=_0x5a4fc5;var _0x3f6e78;let _0x17c089=_0x5d6ac0(_0x14ed82),_0x3094b8=((_0x3f6e78=_0x221f4b[_0x35ef68(0x20c)])==null?[]:_0x3f6e78)[_0x35ef68(0x240)](_0x95c15=>_0x95c15[_0x35ef68(0x237)]===_0x17c089+0x1);if(!_0x3094b8||_0x56ecf7!=null&&_0x3094b8['startIndex']!==_0x56ecf7||_0x1b2780!=null&&(_0x1b2780<_0x17c089||_0x1b2780>_0x3094b8[_0x35ef68(0x237)]+0x1)||_0x221f4b[_0x35ef68(0x27e)][_0x3094b8['startIndex']]!==_0x5e550b[_0x35ef68(0x2a2)][_0x35ef68(0x2a9)])return null;let _0x492606=(0x0,_0x5e550b[_0x35ef68(0x2ba)])(_0x221f4b,_0x3094b8),_0x52685a=_0x221f4b[_0x35ef68(0x27e)][_0x35ef68(0x25f)](_0x492606,_0x3094b8[_0x35ef68(0x237)]);return Array[_0x35ef68(0x26f)](_0x52685a)[_0x35ef68(0x2ae)](_0x44d4ef=>_0x44d4ef===_0x5e550b[_0x35ef68(0x2a2)][_0x35ef68(0x258)])?{'paragraph':_0x3094b8,'endTokenOffset':_0x17c089}:null;}function _0x4cadcc(_0x34f99b,_0x42e63d){const _0x10558b=_0x5a4fc5;var _0x1a24bf;let _0x20b18b=_0x5d6ac0(_0x42e63d),_0x360641=_0x34f99b[_0x10558b(0x27e)][_0x20b18b+0x1];_0x360641!==_0x5e550b[_0x10558b(0x2a2)]['SECTION_BREAK']&&_0x360641!==void 0x0||_0x452b6b(_0x34f99b,_0x20b18b+0x1,_0x5e550b['DataStreamTreeTokenType'][_0x10558b(0x2a9)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x5e550b[_0x10558b(0x219)])(new Set((_0x1a24bf=_0x34f99b[_0x10558b(0x20c)])==null?void 0x0:_0x1a24bf[_0x10558b(0x2bb)](_0x1dde67=>_0x1dde67[_0x10558b(0x292)])))}]});}function _0x452b6b(_0x564e75,_0x5a474a,_0x225079,_0x3750d7={}){const _0x456c0e=_0x5a4fc5;var _0x5dab22,_0x5ab9d8;if(_0x225079){if(_0x564e75['dataStream']=''+_0x564e75[_0x456c0e(0x27e)][_0x456c0e(0x25f)](0x0,_0x5a474a)+_0x225079+_0x564e75[_0x456c0e(0x27e)][_0x456c0e(0x25f)](_0x5a474a),_0x256634(_0x564e75,_0x5a474a,_0x225079[_0x456c0e(0x293)]),(_0x5dab22=_0x3750d7[_0x456c0e(0x20c)])!=null&&_0x5dab22[_0x456c0e(0x293)]){var _0x16c3ec;_0x564e75[_0x456c0e(0x20c)]=[...(_0x16c3ec=_0x564e75[_0x456c0e(0x20c)])==null?[]:_0x16c3ec,..._0x3750d7[_0x456c0e(0x20c)]['map'](_0x2676c6=>({..._0x2676c6,'startIndex':_0x2676c6['startIndex']+_0x5a474a}))][_0x456c0e(0x296)]((_0x3d5e26,_0x270e92)=>_0x3d5e26[_0x456c0e(0x237)]-_0x270e92[_0x456c0e(0x237)]);}if((_0x5ab9d8=_0x3750d7[_0x456c0e(0x291)])!=null&&_0x5ab9d8[_0x456c0e(0x293)]){var _0x31340e;_0x564e75[_0x456c0e(0x291)]=[...(_0x31340e=_0x564e75['blockRanges'])==null?[]:_0x31340e,..._0x3750d7['blockRanges'][_0x456c0e(0x2bb)](_0x5030e5=>({..._0x5030e5,'startIndex':_0x5030e5[_0x456c0e(0x237)]+_0x5a474a,'endIndex':_0x5030e5[_0x456c0e(0x2ac)]+_0x5a474a}))][_0x456c0e(0x296)]((_0xc8cde7,_0x447882)=>_0xc8cde7[_0x456c0e(0x237)]-_0x447882['startIndex']);}}}function _0x31bfd5(_0x19fc82,_0x471989,_0x791035){const _0x26bfc3=_0x5a4fc5;let _0x37e4dc=_0x791035-_0x471989;_0x19fc82['dataStream']=''+_0x19fc82[_0x26bfc3(0x27e)][_0x26bfc3(0x25f)](0x0,_0x471989)+_0x19fc82[_0x26bfc3(0x27e)][_0x26bfc3(0x25f)](_0x791035),_0x181dea(_0x19fc82,_0x471989,_0x37e4dc);}function _0x256634(_0x3dba25,_0x1bb8e3,_0x153ce3){const _0x17d44a=_0x5a4fc5;_0x3dba25[_0x17d44a(0x20c)]=_0x7287b1(_0x3dba25['paragraphs'],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x2b0)]=_0x7287b1(_0x3dba25[_0x17d44a(0x2b0)],_0x1bb8e3,_0x153ce3),_0x3dba25['customBlocks']=_0x7287b1(_0x3dba25[_0x17d44a(0x224)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x2b7)]=_0x39aa43(_0x3dba25[_0x17d44a(0x2b7)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x1f0)]=_0x5304ee(_0x3dba25[_0x17d44a(0x1f0)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x232)]=_0x280789(_0x3dba25[_0x17d44a(0x232)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x1f1)]=_0x280789(_0x3dba25['customRanges'],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x29a)]=_0x280789(_0x3dba25[_0x17d44a(0x29a)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x291)]=_0x280789(_0x3dba25[_0x17d44a(0x291)],_0x1bb8e3,_0x153ce3);}function _0x181dea(_0x321072,_0x57cfaa,_0x19469f){const _0x3af9cb=_0x5a4fc5;var _0x3f2d15,_0x173a0f;_0x321072[_0x3af9cb(0x20c)]=_0x1e138e(_0x321072[_0x3af9cb(0x20c)],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x2b0)]=_0x1e138e(_0x321072[_0x3af9cb(0x2b0)],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x224)]=_0x1e138e(_0x321072['customBlocks'],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x2b7)]=(_0x3f2d15=_0x5c5cb1((_0x173a0f=_0x321072[_0x3af9cb(0x2b7)])==null?void 0x0:_0x173a0f[_0x3af9cb(0x2bb)](_0x2d7c55=>({..._0x2d7c55,'startIndex':_0x2d7c55['st'],'endIndex':_0x2d7c55['ed']})),_0x57cfaa,_0x19469f))==null?void 0x0:_0x3f2d15['map'](_0x2f1c35=>{let {startIndex:_0x527641,endIndex:_0x1e1cf7,..._0x17c7d7}=_0x2f1c35;return{..._0x17c7d7,'st':_0x527641,'ed':_0x1e1cf7};}),_0x321072[_0x3af9cb(0x1f0)]=_0x5c5cb1(_0x321072['tables'],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x232)]=_0xce493e(_0x321072[_0x3af9cb(0x232)],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x1f1)]=_0xce493e(_0x321072['customRanges'],_0x57cfaa,_0x19469f),_0x321072['customDecorations']=_0xce493e(_0x321072['customDecorations'],_0x57cfaa,_0x19469f),_0x321072['blockRanges']=_0xce493e(_0x321072[_0x3af9cb(0x291)],_0x57cfaa,_0x19469f);}function _0x7287b1(_0x459c90,_0xdfad24,_0x5c93c3){const _0x3cf609=_0x5a4fc5;return _0x459c90==null?void 0x0:_0x459c90[_0x3cf609(0x2bb)](_0x4e9757=>_0x4e9757['startIndex']>=_0xdfad24?{..._0x4e9757,'startIndex':_0x4e9757[_0x3cf609(0x237)]+_0x5c93c3}:_0x4e9757);}function _0x1e138e(_0x2dc1e7,_0x946b36,_0x1ba531){const _0x11618b=_0x5a4fc5;let _0xf445a6=_0x946b36+_0x1ba531;return _0x2dc1e7==null?void 0x0:_0x2dc1e7[_0x11618b(0x2bb)](_0x2adec5=>_0x2adec5[_0x11618b(0x237)]>=_0x946b36&&_0x2adec5[_0x11618b(0x237)]<_0xf445a6?null:_0x2adec5[_0x11618b(0x237)]>=_0xf445a6?{..._0x2adec5,'startIndex':_0x2adec5[_0x11618b(0x237)]-_0x1ba531}:_0x2adec5)[_0x11618b(0x24e)](_0x2c8809=>_0x2c8809!=null);}function _0x39aa43(_0x25f863,_0x1a6dbe,_0x297d24){const _0x2bddcb=_0x5a4fc5;return _0x25f863==null?void 0x0:_0x25f863[_0x2bddcb(0x2bb)](_0x1b33bc=>_0x1b33bc['st']>=_0x1a6dbe?{..._0x1b33bc,'st':_0x1b33bc['st']+_0x297d24,'ed':_0x1b33bc['ed']+_0x297d24}:_0x1b33bc['ed']>_0x1a6dbe?{..._0x1b33bc,'ed':_0x1b33bc['ed']+_0x297d24}:_0x1b33bc);}function _0x280789(_0x2b8aa6,_0x5bcffc,_0x4be1ee){const _0x2eaaa2=_0x5a4fc5;return _0x2b8aa6==null?void 0x0:_0x2b8aa6[_0x2eaaa2(0x2bb)](_0x467b71=>(0x0,_0x5e550b[_0x2eaaa2(0x234)])(_0x467b71,_0x5bcffc,_0x4be1ee));}function _0x5304ee(_0xe1f7fd,_0x3d9deb,_0x523dfc){const _0x43c4b5=_0x5a4fc5;return _0xe1f7fd==null?void 0x0:_0xe1f7fd[_0x43c4b5(0x2bb)](_0x3193b1=>(0x0,_0x5e550b[_0x43c4b5(0x260)])(_0x3193b1,_0x3d9deb,_0x523dfc));}function _0xce493e(_0x421b8b,_0x5ba0ed,_0x20f6ab){const _0xbfc3c8=_0x5a4fc5;return _0x421b8b==null?void 0x0:_0x421b8b[_0xbfc3c8(0x2bb)](_0x3527f0=>(0x0,_0x5e550b[_0xbfc3c8(0x227)])(_0x3527f0,_0x5ba0ed,_0x20f6ab))['filter'](_0x1d030e=>_0x1d030e!=null);}function _0x5c5cb1(_0x441373,_0x3d1557,_0x5130a6){const _0xdd160b=_0x5a4fc5;return _0x441373==null?void 0x0:_0x441373[_0xdd160b(0x2bb)](_0x291cb7=>(0x0,_0x5e550b[_0xdd160b(0x213)])(_0x291cb7,_0x3d1557,_0x5130a6))[_0xdd160b(0x24e)](_0x4bac99=>_0x4bac99!=null);}let _0x4aaff6={'id':_0x5a4fc5(0x279),'type':_0x5e550b['CommandType'][_0x5a4fc5(0x294)],'handler':_0x40537a=>{const _0xdcfb4=_0x5a4fc5;var _0x3c519b;if((0x0,_0x279706['isHeaderFooterSelection'])(_0x440c21(_0x40537a)))return!0x1;let _0x181d5c=(0x0,_0x279706[_0xdcfb4(0x20d)])(_0x40537a);if(_0x181d5c)return _0x40537a['get'](_0x5e550b['ICommandService'])[_0xdcfb4(0x223)](_0xd9fa02['id'],{'startOffset':_0x181d5c['startOffset'],'endOffset':_0x181d5c['endOffset'],'insertionMode':_0xdcfb4(0x25b),'unitId':_0x181d5c[_0xdcfb4(0x2a6)]});let _0x49a41b=_0x426284(_0x40537a);if(!_0x49a41b)return!0x1;let _0x18524c=(_0x3c519b=_0x40537a['get'](_0x5e550b[_0xdcfb4(0x217)])[_0xdcfb4(0x211)](_0x5e550b[_0xdcfb4(0x1f8)][_0xdcfb4(0x214)]))==null?void 0x0:_0x3c519b['getBody'](),_0x2bfe69=_0x18524c?(0x0,_0x5e550b[_0xdcfb4(0x2b6)])(_0x18524c,_0x49a41b):_0x49a41b['startIndex']+0x1;return _0x40537a[_0xdcfb4(0x222)](_0x5e550b[_0xdcfb4(0x26d)])[_0xdcfb4(0x223)](_0xd9fa02['id'],{'startOffset':_0x2bfe69,'endOffset':_0x2bfe69});}},_0x201326={'id':_0x5a4fc5(0x22a),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':()=>!0x0},_0xd9fa02={'id':_0x5a4fc5(0x298),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':(_0x1c842d,_0x518fcb)=>{const _0x3a4398=_0x5a4fc5;var _0xc8ccd6;let _0x5e90d9=_0x391bdc(_0x1c842d,_0x518fcb==null?void 0x0:_0x518fcb[_0x3a4398(0x2a6)]);if(!_0x5e90d9)return!0x1;let _0xc15c76=_0x440c21(_0x1c842d);if((0x0,_0x279706['isHeaderFooterSelection'])(_0xc15c76))return!0x1;let _0x21e5db=_0x5e90d9[_0x3a4398(0x249)][_0x3a4398(0x226)](_0x5e90d9['unitId']),_0x394594=_0x3b5f96(_0x518fcb,_0xc15c76),_0x58acb2=_0xe1cafa(_0x5e90d9[_0x3a4398(0x257)],_0x394594);if(_0x58acb2){if(_0x58acb2[_0x3a4398(0x26a)]!==_0x5e550b[_0x3a4398(0x21a)][_0x3a4398(0x273)])return!0x1;let _0x40d8c7=_0x1fa18f({'blockId':_0x58acb2['blockId'],'documentData':_0x5e90d9[_0x3a4398(0x257)],'metadata':_0x21e5db});if(!_0x40d8c7)return!0x1;let _0x1f7671=_0x12c156(_0x5e90d9[_0x3a4398(0x225)],_0x5e90d9[_0x3a4398(0x200)],_0x5e90d9[_0x3a4398(0x2a6)],_0x5e90d9[_0x3a4398(0x257)],_0x40d8c7[_0x3a4398(0x264)],_0xd9fa02['id'],_0x40d8c7[_0x3a4398(0x282)]);return _0x1f7671&&_0x40d8c7[_0x3a4398(0x267)]&&_0x5e90d9[_0x3a4398(0x249)][_0x3a4398(0x241)](_0x5e90d9[_0x3a4398(0x2a6)],_0x40d8c7[_0x3a4398(0x267)]),_0x1f7671;}let _0x92fd12=(_0xc8ccd6=_0x518fcb==null?void 0x0:_0x518fcb[_0x3a4398(0x252)])==null?(0x0,_0x5e550b[_0x3a4398(0x2b4)])(0x6):_0xc8ccd6,_0x236c36;try{_0x236c36=_0x3dec13({'blockId':_0x92fd12,'config':_0x518fcb==null?void 0x0:_0x518fcb['config'],'documentData':_0x5e90d9['previousDocumentData'],'endOffset':_0x394594==null?void 0x0:_0x394594[_0x3a4398(0x229)],'insertionMode':_0x518fcb==null?void 0x0:_0x518fcb[_0x3a4398(0x29f)],'metadata':_0x21e5db,'startOffset':_0x394594==null?void 0x0:_0x394594[_0x3a4398(0x2ab)]});}catch(_0x911219){if(_0x911219 instanceof _0x14e695)return!0x1;throw _0x911219;}let _0x2c0c62=_0x12c156(_0x5e90d9[_0x3a4398(0x225)],_0x5e90d9['selectionManager'],_0x5e90d9[_0x3a4398(0x2a6)],_0x5e90d9[_0x3a4398(0x257)],_0x236c36[_0x3a4398(0x264)],_0xd9fa02['id'],_0x236c36['cursorOffset']);return _0x2c0c62&&_0x236c36[_0x3a4398(0x267)]&&_0x5e90d9[_0x3a4398(0x249)][_0x3a4398(0x241)](_0x5e90d9[_0x3a4398(0x2a6)],_0x236c36['nextMetadata']),_0x2c0c62;}},_0x289ef9={'id':_0x5a4fc5(0x243),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':(_0xd0d8e8,_0x3c5a89)=>{const _0x2adcab=_0x5a4fc5;if(!_0x3c5a89)return!0x1;let _0x875599=_0x391bdc(_0xd0d8e8,_0x3c5a89[_0x2adcab(0x2a6)]);if(!_0x875599)return!0x1;let _0x934376=_0xc863bc({'blockId':_0x3c5a89[_0x2adcab(0x252)],'config':_0x3c5a89[_0x2adcab(0x216)],'documentData':_0x875599[_0x2adcab(0x257)],'metadata':_0x875599[_0x2adcab(0x249)]['serialize'](_0x875599[_0x2adcab(0x2a6)])});return _0x934376[_0x2adcab(0x267)]&&_0x875599[_0x2adcab(0x249)][_0x2adcab(0x241)](_0x875599[_0x2adcab(0x2a6)],_0x934376[_0x2adcab(0x267)]),!0x0;}},_0x1867a5={'id':'docs-code.command.exit','type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':(_0x1581c9,_0x81c29a)=>_0x285c4d['handler'](_0x1581c9,_0x81c29a)},_0x285c4d={'id':_0x5a4fc5(0x239),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':(_0x60331f,_0x207b1c)=>{const _0x2dc581=_0x5a4fc5;if(!_0x207b1c)return!0x1;let _0x1f6c09=_0x391bdc(_0x60331f,_0x207b1c==null?void 0x0:_0x207b1c[_0x2dc581(0x2a6)]);if(!_0x1f6c09)return!0x1;let _0x33c862=_0x1fa18f({'blockId':_0x207b1c[_0x2dc581(0x252)],'documentData':_0x1f6c09['previousDocumentData'],'metadata':_0x1f6c09[_0x2dc581(0x249)]['serialize'](_0x1f6c09[_0x2dc581(0x2a6)])});if(!_0x33c862)return!0x1;let _0x41a519=_0x12c156(_0x1f6c09['commandService'],_0x1f6c09[_0x2dc581(0x200)],_0x1f6c09[_0x2dc581(0x2a6)],_0x1f6c09[_0x2dc581(0x257)],_0x33c862[_0x2dc581(0x264)],_0x285c4d['id'],_0x33c862['cursorOffset']);return _0x41a519&&_0x33c862[_0x2dc581(0x267)]&&_0x1f6c09['model']['deserialize'](_0x1f6c09[_0x2dc581(0x2a6)],_0x33c862['nextMetadata']),_0x41a519;}},_0x2ad6c2={'id':'docs-code.command.remove','type':_0x5e550b['CommandType']['COMMAND'],'handler':(_0x19d879,_0x5da86c)=>{const _0x7f3f3b=_0x5a4fc5;if(!_0x5da86c)return!0x1;let _0x5edec4=_0x391bdc(_0x19d879,_0x5da86c==null?void 0x0:_0x5da86c[_0x7f3f3b(0x2a6)]);if(!_0x5edec4)return!0x1;let _0x1045b8=_0x3a0b0e({'blockId':_0x5da86c['blockId'],'documentData':_0x5edec4['previousDocumentData'],'metadata':_0x5edec4['model'][_0x7f3f3b(0x226)](_0x5edec4['unitId'])});if(!_0x1045b8)return!0x1;let _0x2a5428=_0x12c156(_0x5edec4[_0x7f3f3b(0x225)],_0x5edec4[_0x7f3f3b(0x200)],_0x5edec4[_0x7f3f3b(0x2a6)],_0x5edec4['previousDocumentData'],_0x1045b8['nextDocumentData'],_0x2ad6c2['id'],_0x1045b8[_0x7f3f3b(0x282)]);return _0x2a5428&&_0x1045b8[_0x7f3f3b(0x267)]&&_0x5edec4['model'][_0x7f3f3b(0x241)](_0x5edec4[_0x7f3f3b(0x2a6)],_0x1045b8['nextMetadata']),_0x2a5428;}},_0x35a46d={'id':_0x5a4fc5(0x29c),'type':_0x5e550b['CommandType'][_0x5a4fc5(0x294)],'handler':(_0x190cf5,_0x50949e)=>{const _0x54846e=_0x5a4fc5;var _0x386901,_0x30cf81;let _0x27f8b3=_0x391bdc(_0x190cf5,_0x50949e==null?void 0x0:_0x50949e[_0x54846e(0x2a6)]);if(!_0x27f8b3)return!0x1;let _0x3bbd26=(_0x386901=_0x50949e==null?void 0x0:_0x50949e['cursorOffset'])==null?(_0x30cf81=_0x440c21(_0x190cf5))==null?void 0x0:_0x30cf81[_0x54846e(0x2ab)]:_0x386901;if(_0x3bbd26==null)return!0x1;let _0xdf76be=_0x83239a({'cursorOffset':_0x3bbd26,'documentData':_0x27f8b3[_0x54846e(0x257)],'paragraphStartIndex':_0x50949e==null?void 0x0:_0x50949e['paragraphStartIndex']});return _0xdf76be?_0x12c156(_0x27f8b3[_0x54846e(0x225)],_0x27f8b3[_0x54846e(0x200)],_0x27f8b3[_0x54846e(0x2a6)],_0x27f8b3[_0x54846e(0x257)],_0xdf76be[_0x54846e(0x264)],_0x35a46d['id'],_0xdf76be[_0x54846e(0x282)]):!0x1;}};function _0x391bdc(_0x3b82df,_0x59b935){const _0x16e991=_0x5a4fc5;let _0x176cf3=_0x3b82df[_0x16e991(0x222)](_0x5e550b[_0x16e991(0x217)]),_0x4954b0=_0x59b935?_0x176cf3[_0x16e991(0x284)](_0x59b935,_0x5e550b[_0x16e991(0x1f8)][_0x16e991(0x214)]):_0x176cf3[_0x16e991(0x211)](_0x5e550b[_0x16e991(0x1f8)][_0x16e991(0x214)]);return _0x4954b0?{'commandService':_0x3b82df[_0x16e991(0x222)](_0x5e550b[_0x16e991(0x26d)]),'model':_0x3b82df[_0x16e991(0x222)](_0x50a18d),'previousDocumentData':_0x4954b0['getSnapshot'](),'selectionManager':_0x3b82df[_0x16e991(0x222)](_0x279706['DocSelectionManagerService']),'unitId':_0x4954b0[_0x16e991(0x278)]()}:null;}function _0x440c21(_0x26fd51){const _0x1789ca=_0x5a4fc5;var _0x111e25;return(_0x111e25=_0x26fd51[_0x1789ca(0x222)](_0x279706['DocSelectionManagerService'])[_0x1789ca(0x242)]())==null?void 0x0:_0x111e25[0x0];}function _0x3b5f96(_0x29724a,_0x5a830a){var _0x58a558,_0x370dc3;let _0x5303cc=(_0x58a558=_0x29724a==null?void 0x0:_0x29724a['startOffset'])==null?_0x5a830a==null?void 0x0:_0x5a830a['startOffset']:_0x58a558,_0x3fa6cc=(_0x370dc3=_0x29724a==null?void 0x0:_0x29724a['endOffset'])==null?_0x5a830a==null?void 0x0:_0x5a830a['endOffset']:_0x370dc3;if(!(_0x5303cc==null||_0x3fa6cc==null))return{'endOffset':Math['max'](_0x5303cc,_0x3fa6cc),'startOffset':Math['min'](_0x5303cc,_0x3fa6cc)};}function _0xe1cafa(_0x4e3c3e,_0x3b6387){const _0x28136a=_0x5a4fc5;var _0x45892c;if(!_0x3b6387)return;let _0x21d313=_0x89661(_0x3b6387);return(_0x45892c=_0x4e3c3e[_0x28136a(0x2a8)])==null||(_0x45892c=_0x45892c[_0x28136a(0x291)])==null?void 0x0:_0x45892c[_0x28136a(0x240)](_0x55fb53=>{const _0x326aaa=_0x28136a;let _0x5c7bb0=(0x0,_0x5e550b[_0x326aaa(0x205)])(_0x55fb53);return _0x3b6387[_0x326aaa(0x2ab)]===_0x3b6387[_0x326aaa(0x229)]?(0x0,_0x5e550b[_0x326aaa(0x1f2)])(_0x5c7bb0,_0x21d313):(0x0,_0x5e550b['containsStreamIndex'])(_0x5c7bb0,_0x21d313);});}function _0x89661(_0x19127d){const _0x330120=_0x5a4fc5;return _0x19127d[_0x330120(0x2ab)]===_0x19127d[_0x330120(0x229)]?_0x19127d[_0x330120(0x2ab)]:_0x19127d[_0x330120(0x2ab)]+0x1;}function _0x426284(_0x39547a){const _0x4d0191=_0x5a4fc5;var _0x34c1cb,_0x2a9dd0,_0x4f5687;let _0x5a287f=_0x440c21(_0x39547a);if(!_0x5a287f)return null;let _0x2d113c=_0x39547a[_0x4d0191(0x222)](_0x5e550b[_0x4d0191(0x217)])[_0x4d0191(0x211)](_0x5e550b[_0x4d0191(0x1f8)][_0x4d0191(0x214)]),_0x1002de=_0x2d113c==null?void 0x0:_0x2d113c[_0x4d0191(0x20f)]();return _0x1002de?(_0x34c1cb=_0x5e550b['BuildTextUtils']['range'][_0x4d0191(0x2aa)](_0x5a287f,(_0x2a9dd0=_0x1002de['paragraphs'])==null?[]:_0x2a9dd0,(_0x4f5687=_0x1002de[_0x4d0191(0x27e)])==null?'':_0x4f5687)[0x0])==null?null:_0x34c1cb:null;}function _0x22440a(_0x18684f,_0x2cf699){const _0x1bb5c6=_0x5a4fc5;let _0x227c65=_0x18684f[_0x1bb5c6(0x2a8)],_0x4f4416=_0x2cf699[_0x1bb5c6(0x2a8)],_0x1d255f=(0x0,_0x5e550b[_0x1bb5c6(0x287)])(_0x227c65,_0x4f4416);return[_0x1d255f&&_0x4f4416?_0x5c9cda(_0x4f4416,_0x1d255f):null,_0x1d255f?null:_0x3a845b(_0x227c65,_0x4f4416)][_0x1bb5c6(0x24e)](Boolean)[_0x1bb5c6(0x281)]((_0x4b7a18,_0x616806)=>_0x5e550b[_0x1bb5c6(0x204)][_0x1bb5c6(0x2b1)](_0x4b7a18,_0x616806),null);}function _0x5c9cda(_0x34b9c6,_0x5279d8){const _0x27b55c=_0x5a4fc5;let _0x2733f7=new _0x5e550b['TextX']();return _0x2733f7[_0x27b55c(0x24b)](_0x5279d8[_0x27b55c(0x218)]),_0x5279d8[_0x27b55c(0x2af)]>0x0&&_0x2733f7[_0x27b55c(0x203)](_0x5279d8['insertLength'],(0x0,_0x5e550b[_0x27b55c(0x22b)])(_0x34b9c6,_0x5279d8[_0x27b55c(0x218)],_0x5279d8[_0x27b55c(0x218)]+_0x5279d8['insertLength'],!0x1)),_0x5279d8[_0x27b55c(0x283)]>0x0&&_0x2733f7[_0x27b55c(0x2a4)](_0x5279d8[_0x27b55c(0x283)]),_0x5e550b[_0x27b55c(0x204)][_0x27b55c(0x27d)]()[_0x27b55c(0x28a)](_0x2733f7[_0x27b55c(0x226)](),[_0x27b55c(0x2a8)]);}function _0x3a845b(_0x5ba033,_0x4588a1){const _0x5ac10f=_0x5a4fc5;let _0x33fe49=[],_0x13db57=_0x5ba033?_0x3e916a(_0x5ba033):void 0x0,_0x25d945=_0x4588a1?_0x3e916a(_0x4588a1):void 0x0;for(let _0x42d083 of _0x4f15bd)_0x4817f0(_0x5e550b[_0x5ac10f(0x204)][_0x5ac10f(0x27d)](),['body',_0x42d083],_0x13db57==null?void 0x0:_0x13db57[_0x42d083],_0x25d945==null?void 0x0:_0x25d945[_0x42d083],_0x33fe49);return _0x33fe49[_0x5ac10f(0x281)]((_0x407db3,_0x28c35b)=>_0x5e550b[_0x5ac10f(0x204)]['compose'](_0x407db3,_0x28c35b),null);}let _0x4f15bd=['paragraphs',_0x5a4fc5(0x2b0),_0x5a4fc5(0x1f0),_0x5a4fc5(0x232),_0x5a4fc5(0x291),'customBlocks',_0x5a4fc5(0x1f1),_0x5a4fc5(0x29a),_0x5a4fc5(0x2b7)];function _0x3e916a(_0x54e14c){return _0x54e14c;}function _0x4817f0(_0x4f3738,_0x399217,_0x2a4ac8,_0x12e670,_0x19f788){const _0x57bfae=_0x5a4fc5;if(!_0x21beef(_0x2a4ac8,_0x12e670)){if(_0x2a4ac8==null){_0x19f788[_0x57bfae(0x254)](_0x4f3738[_0x57bfae(0x265)](_0x399217,_0x12e670));return;}if(_0x12e670==null){_0x19f788[_0x57bfae(0x254)](_0x4f3738['removeOp'](_0x399217,_0x2a4ac8));return;}if(Array[_0x57bfae(0x228)](_0x2a4ac8)&&Array[_0x57bfae(0x228)](_0x12e670)){_0x277ee9(_0x4f3738,_0x399217,_0x2a4ac8,_0x12e670,_0x19f788);return;}if(_0x159bae(_0x2a4ac8)&&_0x159bae(_0x12e670)){new Set([...Object['keys'](_0x2a4ac8),...Object[_0x57bfae(0x244)](_0x12e670)])[_0x57bfae(0x23f)](_0x4d2bd9=>{_0x4817f0(_0x4f3738,[..._0x399217,_0x4d2bd9],_0x2a4ac8[_0x4d2bd9],_0x12e670[_0x4d2bd9],_0x19f788);});return;}_0x19f788[_0x57bfae(0x254)](_0x4f3738[_0x57bfae(0x236)](_0x399217,_0x2a4ac8,_0x12e670));}}function _0x277ee9(_0x3bfd50,_0x30c3d9,_0x36e9dc,_0x1af761,_0x430360){const _0x434846=_0x5a4fc5;if(_0x36e9dc[_0x434846(0x293)]===_0x1af761[_0x434846(0x293)]){_0x36e9dc[_0x434846(0x23f)]((_0x33c5c3,_0x15a262)=>_0x4817f0(_0x3bfd50,[..._0x30c3d9,_0x15a262],_0x33c5c3,_0x1af761[_0x15a262],_0x430360));return;}let _0x29a247=0x0;for(;_0x29a247<_0x36e9dc[_0x434846(0x293)]&&_0x29a247<_0x1af761[_0x434846(0x293)]&&_0x21beef(_0x36e9dc[_0x29a247],_0x1af761[_0x29a247]);)_0x29a247++;let _0x9521a=_0x36e9dc[_0x434846(0x293)]-0x1,_0x5b5596=_0x1af761[_0x434846(0x293)]-0x1;for(;_0x9521a>=_0x29a247&&_0x5b5596>=_0x29a247&&_0x21beef(_0x36e9dc[_0x9521a],_0x1af761[_0x5b5596]);)_0x9521a--,_0x5b5596--;for(let _0x5211f2=_0x9521a;_0x5211f2>=_0x29a247;_0x5211f2--)_0x430360[_0x434846(0x254)](_0x3bfd50[_0x434846(0x2a5)]([..._0x30c3d9,_0x5211f2],_0x36e9dc[_0x5211f2]));for(let _0x5b3bba=_0x29a247;_0x5b3bba<=_0x5b5596;_0x5b3bba++)_0x430360[_0x434846(0x254)](_0x3bfd50['insertOp']([..._0x30c3d9,_0x5b3bba],_0x1af761[_0x5b3bba]));}function _0x159bae(_0x5489a1){const _0xb1a01=_0x5a4fc5;return typeof _0x5489a1==_0xb1a01(0x2a7)&&!!_0x5489a1&&!Array[_0xb1a01(0x228)](_0x5489a1);}function _0x21beef(_0x50e777,_0x48c4c8){const _0x3298b8=_0x5a4fc5;return JSON['stringify'](_0x50e777)===JSON[_0x3298b8(0x299)](_0x48c4c8);}function _0x12c156(_0x3369ff,_0x35cc08,_0x19b1b1,_0x4d33a1,_0x34dadf,_0x536845,_0x102b71){const _0x5461ba=_0x5a4fc5;let _0x210b4a=_0x22440a(_0x4d33a1,_0x34dadf);return _0x210b4a?!!_0x3369ff[_0x5461ba(0x223)](_0x279706['RichTextEditingMutation']['id'],{'unitId':_0x19b1b1,'actions':_0x210b4a,'textRanges':[{'startOffset':_0x102b71,'endOffset':_0x102b71,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x536845}):(_0x35cc08['replaceDocRanges']([{'startOffset':_0x102b71,'endOffset':_0x102b71}],{'unitId':_0x19b1b1,'subUnitId':_0x19b1b1},!0x1),!0x0);}let _0x542c00=_0x5a4fc5(0x26e);var _0x394d9e=_0x5a4fc5(0x22c),_0x327051=_0x5a4fc5(0x29d);let _0x2f8ffb={};function _0x148001(_0x45c337,_0x4f3d29){return function(_0x505cbd,_0x21b3c9){_0x4f3d29(_0x505cbd,_0x21b3c9,_0x45c337);};}function _0x20cdf9(_0x8ced07,_0x3d8f6f,_0x401fbc,_0x1a574a){const _0x23b565=_0x5a4fc5;var _0x1ff567=arguments[_0x23b565(0x293)],_0x598603=_0x1ff567<0x3?_0x3d8f6f:_0x1a574a===null?_0x1a574a=Object[_0x23b565(0x21d)](_0x3d8f6f,_0x401fbc):_0x1a574a,_0x37aeaf;if(typeof Reflect=='object'&&typeof Reflect[_0x23b565(0x28c)]=='function')_0x598603=Reflect['decorate'](_0x8ced07,_0x3d8f6f,_0x401fbc,_0x1a574a);else{for(var _0x43fddf=_0x8ced07[_0x23b565(0x293)]-0x1;_0x43fddf>=0x0;_0x43fddf--)(_0x37aeaf=_0x8ced07[_0x43fddf])&&(_0x598603=(_0x1ff567<0x3?_0x37aeaf(_0x598603):_0x1ff567>0x3?_0x37aeaf(_0x3d8f6f,_0x401fbc,_0x598603):_0x37aeaf(_0x3d8f6f,_0x401fbc))||_0x598603);}return _0x1ff567>0x3&&_0x598603&&Object[_0x23b565(0x1fe)](_0x3d8f6f,_0x401fbc,_0x598603),_0x598603;}let _0x20e537=class extends _0x5e550b[_0x5a4fc5(0x269)]{constructor(_0x550a81,_0x593158){const _0x46f2ef=_0x5a4fc5;super(),this[_0x46f2ef(0x2a0)]=_0x550a81,this['_docsCodeModel']=_0x593158,this[_0x46f2ef(0x25a)]();}['_initResource'](){const _0x1eeecd=_0x5a4fc5;this[_0x1eeecd(0x255)](this[_0x1eeecd(0x2a0)]['registerPluginResource']({'pluginName':_0x542c00,'businesses':[_0x5e550b[_0x1eeecd(0x1f8)][_0x1eeecd(0x214)]],'toJson':_0x124890=>JSON['stringify'](this[_0x1eeecd(0x21e)][_0x1eeecd(0x226)](_0x124890)),'parseJson':_0x47274c=>_0x713509(JSON['parse'](_0x47274c)),'onLoad':(_0x3db412,_0x419469)=>this[_0x1eeecd(0x21e)][_0x1eeecd(0x241)](_0x3db412,_0x419469),'onUnLoad':_0x2d5e44=>this['_docsCodeModel'][_0x1eeecd(0x290)](_0x2d5e44)}));}};_0x20e537=_0x20cdf9([_0x148001(0x0,_0x5e550b[_0x5a4fc5(0x272)]),_0x148001(0x1,(0x0,_0x5e550b['Inject'])(_0x50a18d))],_0x20e537);let _0x4bcd41=class extends _0x5e550b['Plugin']{constructor(_0x587cab=_0x2f8ffb,_0x87b5cb,_0x1d17b6,_0x26f371){const _0xf5f2be=_0x5a4fc5;super(),this[_0xf5f2be(0x20a)]=_0x587cab,this[_0xf5f2be(0x209)]=_0x87b5cb,this[_0xf5f2be(0x245)]=_0x1d17b6,this[_0xf5f2be(0x266)]=_0x26f371;let {..._0x163738}=(0x0,_0x5e550b['merge'])({},_0x2f8ffb,this['_config']);this[_0xf5f2be(0x266)][_0xf5f2be(0x263)]('docs-code.config',_0x163738);}[_0x5a4fc5(0x2b9)](){const _0x3c1410=_0x5a4fc5;this[_0x3c1410(0x209)][_0x3c1410(0x212)]([_0x50a18d]),this[_0x3c1410(0x209)][_0x3c1410(0x212)]([_0x20e537]),this[_0x3c1410(0x209)][_0x3c1410(0x222)](_0x50a18d),this['_injector'][_0x3c1410(0x222)](_0x20e537),[_0xd9fa02,_0x4aaff6,_0x289ef9,_0x285c4d,_0x2ad6c2,_0x1867a5,_0x35a46d,_0x201326,_0x124ee6,_0x30c687]['forEach'](_0x3bdd9f=>this['disposeWithMe'](this[_0x3c1410(0x245)]['registerCommand'](_0x3bdd9f)));}};_0x3ebe32(_0x4bcd41,'pluginName',_0x542c00),_0x3ebe32(_0x4bcd41,_0x5a4fc5(0x289),_0x394d9e),_0x3ebe32(_0x4bcd41,_0x5a4fc5(0x25d),_0x327051),_0x3ebe32(_0x4bcd41,_0x5a4fc5(0x210),_0x5e550b[_0x5a4fc5(0x1f8)][_0x5a4fc5(0x214)]),_0x4bcd41=_0x20cdf9([(0x0,_0x5e550b[_0x5a4fc5(0x23a)])(_0x4a0047[_0x5a4fc5(0x1fd)],_0x279706['UniverDocsPlugin']),_0x148001(0x1,(0x0,_0x5e550b['Inject'])(_0x5e550b[_0x5a4fc5(0x207)])),_0x148001(0x2,_0x5e550b[_0x5a4fc5(0x26d)]),_0x148001(0x3,_0x5e550b[_0x5a4fc5(0x230)])],_0x4bcd41),_0x429989[_0x5a4fc5(0x28b)]=_0x542c00,_0x429989['DocsCodeCancelEmptyParagraphCommand']=_0x35a46d,_0x429989[_0x5a4fc5(0x220)]=_0x201326,_0x429989[_0x5a4fc5(0x2b5)]=_0x4aaff6,_0x429989[_0x5a4fc5(0x20e)]=_0xd9fa02,_0x429989[_0x5a4fc5(0x247)]=_0x50a18d,_0x429989[_0x5a4fc5(0x1fc)]=_0x2ad6c2,_0x429989[_0x5a4fc5(0x274)]=_0x285c4d,_0x429989[_0x5a4fc5(0x2ad)]=_0x289ef9,_0x429989[_0x5a4fc5(0x268)]=_0x30c687,_0x429989[_0x5a4fc5(0x21b)]=_0x124ee6,Object[_0x5a4fc5(0x1fe)](_0x429989,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return _0x4bcd41;}}),_0x429989[_0x5a4fc5(0x259)]=_0x83239a,_0x429989['isCodeBoundaryDelete']=_0x5dfcb4,_0x429989['normalizeDocsCodeConfig']=_0x34b69d,_0x429989[_0x5a4fc5(0x22e)]=_0x713509;}));function _0x3ea3(){const _0x5c4c0e=['setConfig','nextDocumentData','insertOp','_configService','nextMetadata','RemoveDocsCodeConfigMutation','Disposable','blockType','bullet','docs-code.mutation.remove-config','ICommandService','DOC_CODE_PLUGIN','from','getCodeConfig','@univerjs/docs','IResourceManagerService','CODE','DocsCodeUnwrapCommand','TABLE_CELL_END','5790gjEmJj','151642njsOYj','getUnitId','docs-code.command.insert-below','some','symbol','8688176bGVQJc','getInstance','dataStream','set','function','reduce','cursorOffset','deleteLength','getUnit','@univerjs/core','endTokenOffset','getSingleDataStreamChange','columns','packageName','editOp','DOCS_CODE_PLUGIN','decorate','documentData','indentStart','exports','removeUnit','blockRanges','paragraphId','length','COMMAND','left','sort','intersectsOperationalIntervals','docs-code.command.insert','stringify','customDecorations','rxjs','docs-code.command.cancel-empty-paragraph','1.0.0-alpha.7','CommandType','insertionMode','_resourceManagerService','6328832QPCvjY','DataStreamTreeTokenType','default','delete','removeOp','unitId','object','body','PARAGRAPH','getParagraphsInRange','startOffset','endIndex','DocsCodeUpdateCommand','every','insertLength','sectionBreaks','compose','21895940azoLdN','prototype','generateRandomId','DocsCodeInsertBelowCommand','getParagraphFollowingBlockOffset','textRuns','Subject','onStarting','getParagraphContentStartOffset','map','min','tables','customRanges','containsInteriorInsertionOffset','spaceAbove','MUTATION','UniverProDocsCode','fromEntries','TABLE_CELL_START','UniverInstanceType','9LthNhY','constructor','direction','DocsCodeRemoveCommand','UniverLicensePlugin','defineProperty','UniverProLicense','selectionManager','_resources','7054690QMQVnZ','insert','JSONX','getBlockRangeInterval','asObservable','Injector','SECTION_BREAK','_injector','_config','metadata','paragraphs','getContentInsertRange','DocsCodeInsertCommand','getBody','type','getCurrentUnitOfType','add','shiftExclusiveRangeOnDelete','UNIVER_DOC','setCodeConfig','config','IUniverInstanceService','start','createParagraphId','DocumentBlockRangeType','SetDocsCodeConfigMutation','next','getOwnPropertyDescriptor','_docsCodeModel','656938oYrFEx','DocsCodeConsumeBoundaryDeleteCommand','codes','get','syncExecuteCommand','customBlocks','commandService','serialize','shiftInclusiveRangeOnDelete','isArray','endOffset','docs-code.command.consume-boundary-delete','getBodySliceForTextXAction','@univerjs-pro/docs-code','spaceBelow','normalizeDocsCodeMetadataResource','startTokenOffset','IConfigService','convert-paragraph','columnGroups','_change$','shiftInclusiveRangeOnInsert','paragraph','replaceOp','startIndex','paragraphStyle','docs-code.command.unwrap','DependentOn','@univerjs-pro/license','dispose','2036NlVONx','max','forEach','find','deserialize','getTextRanges','docs-code.command.update','keys','_commandService','amd','DocsCodeModel','BLOCK_START','model','javascript','retain','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_setResource','filter','getParagraphContentStartOffsets','textStyle','change$','blockId','entries','push','disposeWithMe','string','previousDocumentData','BLOCK_END','buildCancelEmptyCodeParagraphActions','_initResource','insert-new','removeCode','version','Document\x20body\x20is\x20required','slice','shiftExclusiveRangeOnInsert','clear','6bjIYWL'];_0x3ea3=function(){return _0x5c4c0e;};return _0x3ea3();}
1
+ function _0xbf42(_0x29dfeb,_0x5c5640){_0x29dfeb=_0x29dfeb-0x1a0;const _0x3e501f=_0x3e50();let _0xbf42dc=_0x3e501f[_0x29dfeb];return _0xbf42dc;}(function(_0x53a65d,_0x5844b7){const _0xf4681e=_0xbf42,_0x44b1d0=_0x53a65d();while(!![]){try{const _0x581f10=parseInt(_0xf4681e(0x1cc))/0x1*(parseInt(_0xf4681e(0x200))/0x2)+-parseInt(_0xf4681e(0x1fc))/0x3*(parseInt(_0xf4681e(0x1aa))/0x4)+-parseInt(_0xf4681e(0x23b))/0x5+parseInt(_0xf4681e(0x1a6))/0x6+parseInt(_0xf4681e(0x279))/0x7*(parseInt(_0xf4681e(0x259))/0x8)+parseInt(_0xf4681e(0x1da))/0x9*(-parseInt(_0xf4681e(0x203))/0xa)+parseInt(_0xf4681e(0x1c9))/0xb*(parseInt(_0xf4681e(0x1e8))/0xc);if(_0x581f10===_0x5844b7)break;else _0x44b1d0['push'](_0x44b1d0['shift']());}catch(_0x52aaf2){_0x44b1d0['push'](_0x44b1d0['shift']());}}}(_0x3e50,0xa7033),function(_0x1e29a7,_0x18b2d0){const _0x32b6a7=_0xbf42;typeof exports==_0x32b6a7(0x25c)&&typeof module<'u'?_0x18b2d0(exports,require('@univerjs/core'),require('rxjs'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x32b6a7(0x268)&&define[_0x32b6a7(0x227)]?define(['exports',_0x32b6a7(0x24e),_0x32b6a7(0x1f8),_0x32b6a7(0x1de),_0x32b6a7(0x1c4)],_0x18b2d0):(_0x1e29a7=typeof globalThis<'u'?globalThis:_0x1e29a7||self,_0x18b2d0(_0x1e29a7[_0x32b6a7(0x1cb)]={},_0x1e29a7[_0x32b6a7(0x246)],_0x1e29a7[_0x32b6a7(0x1f8)],_0x1e29a7[_0x32b6a7(0x261)],_0x1e29a7['UniverProLicense']));}(this,function(_0x4a2f8f,_0x1c9890,_0x556b24,_0x39ee5c,_0x5f3b22){const _0x2332fb=_0xbf42;Object['defineProperty'](_0x4a2f8f,Symbol[_0x2332fb(0x1cd)],{'value':_0x2332fb(0x219)});let _0xda40b={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x73e43a(_0x573571){return{..._0xda40b,..._0x573571};}function _0x5c356d(_0x4bf371){const _0x545e3d=_0x2332fb;let _0x19faae=(_0x4bf371==null?void 0x0:_0x4bf371[_0x545e3d(0x1ad)])??{};return{'codes':Object[_0x545e3d(0x1ca)](Object[_0x545e3d(0x21a)](_0x19faae)[_0x545e3d(0x1ee)](([_0x11ca55,_0x472bb0])=>[_0x11ca55,_0x73e43a(_0x472bb0)]))};}function _0x235e9b(_0x107c8e,_0x59b1a7,_0x1204e7){const _0x2f9f84=_0x2332fb;let _0x2aad1a=_0x5c356d(_0x107c8e);return _0x2aad1a[_0x2f9f84(0x1ad)][_0x59b1a7]=_0x73e43a({..._0x2aad1a[_0x2f9f84(0x1ad)][_0x59b1a7],..._0x1204e7}),_0x2aad1a;}function _0x135b40(_0x5a5d7e,_0xa7c410){const _0x2cd625=_0x2332fb;let _0x101f01=_0x5c356d(_0x5a5d7e);return delete _0x101f01[_0x2cd625(0x1ad)][_0xa7c410],_0x101f01;}function _0x3c9285(_0x164987){'@babel/helpers - typeof';const _0x7ae8db=_0x2332fb;return _0x3c9285=typeof Symbol=='function'&&typeof Symbol[_0x7ae8db(0x253)]==_0x7ae8db(0x1b3)?function(_0x85bc36){return typeof _0x85bc36;}:function(_0x13f794){const _0x69de4b=_0x7ae8db;return _0x13f794&&typeof Symbol=='function'&&_0x13f794[_0x69de4b(0x26e)]===Symbol&&_0x13f794!==Symbol[_0x69de4b(0x245)]?'symbol':typeof _0x13f794;},_0x3c9285(_0x164987);}function _0x530221(_0x496bff,_0x3322bb){const _0x5d63f2=_0x2332fb;if(_0x3c9285(_0x496bff)!=_0x5d63f2(0x25c)||!_0x496bff)return _0x496bff;var _0x305859=_0x496bff[Symbol[_0x5d63f2(0x23c)]];if(_0x305859!==void 0x0){var _0xfb1183=_0x305859[_0x5d63f2(0x1a9)](_0x496bff,_0x3322bb||_0x5d63f2(0x215));if(_0x3c9285(_0xfb1183)!=_0x5d63f2(0x25c))return _0xfb1183;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3322bb===_0x5d63f2(0x27b)?String:Number)(_0x496bff);}function _0x4a0a86(_0x367a04){const _0x5918e2=_0x2332fb;var _0x5a4301=_0x530221(_0x367a04,'string');return _0x3c9285(_0x5a4301)==_0x5918e2(0x1b3)?_0x5a4301:_0x5a4301+'';}function _0x161aba(_0x59f955,_0x156d40,_0x3d1668){const _0x5d6840=_0x2332fb;return(_0x156d40=_0x4a0a86(_0x156d40))in _0x59f955?Object[_0x5d6840(0x1f7)](_0x59f955,_0x156d40,{'value':_0x3d1668,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59f955[_0x156d40]=_0x3d1668,_0x59f955;}var _0x11248c=class extends _0x1c9890['Disposable']{constructor(..._0x1ca36a){const _0x719411=_0x2332fb;super(..._0x1ca36a),_0x161aba(this,_0x719411(0x229),new Map()),_0x161aba(this,'_change$',new _0x556b24[(_0x719411(0x1e6))]()),_0x161aba(this,_0x719411(0x1d5),this[_0x719411(0x1c7)][_0x719411(0x221)]());}[_0x2332fb(0x202)](_0x13508c,_0x514553){const _0x35e58d=_0x2332fb;return _0x5c356d(this[_0x35e58d(0x229)][_0x35e58d(0x1ae)](_0x13508c))[_0x35e58d(0x1ad)][_0x514553];}[_0x2332fb(0x260)](_0x5a2910,_0x33b2c2,_0x14557b){const _0x484af1=_0x2332fb;this[_0x484af1(0x24c)](_0x5a2910,_0x33b2c2,_0x235e9b(this[_0x484af1(0x229)][_0x484af1(0x1ae)](_0x5a2910),_0x33b2c2,_0x14557b));}['removeCode'](_0x28f7cc,_0x3a1675){const _0xe83456=_0x2332fb;this[_0xe83456(0x24c)](_0x28f7cc,_0x3a1675,_0x135b40(this[_0xe83456(0x229)]['get'](_0x28f7cc),_0x3a1675));}[_0x2332fb(0x252)](_0x3925b9){const _0x2d263c=_0x2332fb;return _0x5c356d(this[_0x2d263c(0x229)][_0x2d263c(0x1ae)](_0x3925b9));}[_0x2332fb(0x23e)](_0x38ddc1,_0x4ed3ff){const _0x2981e7=_0x2332fb;this[_0x2981e7(0x229)][_0x2981e7(0x1f1)](_0x38ddc1,_0x5c356d(_0x4ed3ff)),this[_0x2981e7(0x1c7)]['next']({'unitId':_0x38ddc1});}[_0x2332fb(0x205)](_0x5ad76d){const _0x335862=_0x2332fb;this[_0x335862(0x229)][_0x335862(0x239)](_0x5ad76d),this[_0x335862(0x1c7)][_0x335862(0x1a2)]({'unitId':_0x5ad76d});}[_0x2332fb(0x237)](){const _0x5c95e1=_0x2332fb;super[_0x5c95e1(0x237)](),this[_0x5c95e1(0x229)]['clear'](),this[_0x5c95e1(0x1c7)][_0x5c95e1(0x22a)]();}[_0x2332fb(0x24c)](_0x2cab6e,_0x2caa4c,_0x23e47f){const _0x37533f=_0x2332fb;this[_0x37533f(0x229)][_0x37533f(0x1f1)](_0x2cab6e,_0x23e47f),this[_0x37533f(0x1c7)][_0x37533f(0x1a2)]({'unitId':_0x2cab6e,'blockId':_0x2caa4c});}};let _0x9ce394={'id':_0x2332fb(0x256),'type':_0x1c9890['CommandType']['MUTATION'],'handler':(_0x215ef5,_0x29b812)=>!(_0x29b812!=null&&_0x29b812[_0x2332fb(0x1cf)])||!_0x29b812['blockId']?!0x1:(_0x215ef5[_0x2332fb(0x1ae)](_0x11248c)[_0x2332fb(0x260)](_0x29b812[_0x2332fb(0x1cf)],_0x29b812['blockId'],_0x29b812[_0x2332fb(0x225)]),!0x0)},_0x5ad337={'id':_0x2332fb(0x257),'type':_0x1c9890[_0x2332fb(0x244)][_0x2332fb(0x214)],'handler':(_0x51356d,_0x1de069)=>!(_0x1de069!=null&&_0x1de069['unitId'])||!_0x1de069[_0x2332fb(0x249)]?!0x1:(_0x51356d[_0x2332fb(0x1ae)](_0x11248c)[_0x2332fb(0x243)](_0x1de069['unitId'],_0x1de069[_0x2332fb(0x249)]),!0x0)},_0x485e6b=_0x2332fb(0x23d);var _0x1dcfe2=class extends Error{constructor(_0x22e24b=_0x2332fb(0x1fe)){super(_0x22e24b);}};function _0xc6f492(_0x40b818){const _0x68b1b3=_0x2332fb;var _0x5a4936;let _0x4cdcdc=_0x3a310a(_0x40b818[_0x68b1b3(0x1e9)]),_0xc2dd99=_0x45931d(_0x4cdcdc),_0x509a78=_0x4117ca(_0x40b818['startOffset'],_0x40b818[_0x68b1b3(0x1c0)]),_0x1a4c97=_0x509a78?(_0x5a4936=_0xc2dd99[_0x68b1b3(0x254)])==null?void 0x0:_0x5a4936[_0x68b1b3(0x272)](_0x1e2e5d=>{const _0x54eb2d=_0x68b1b3;let _0x235c61=(0x0,_0x1c9890[_0x54eb2d(0x204)])(_0x1e2e5d);return _0x235c61[_0x54eb2d(0x25e)]===_0x509a78['startOffset']&&_0x235c61['endOffset']===_0x509a78[_0x54eb2d(0x1c0)];}):void 0x0,{startOffset:_0x15d433,endOffset:_0x2dc71d}=_0x1a4c97?_0x509a78:_0x24bb9d(_0xc2dd99,_0x40b818['startOffset'],_0x40b818[_0x68b1b3(0x1c0)],_0x40b818['insertionMode']);if(!_0x1a4c97&&_0x5c1116(_0xc2dd99,_0x15d433,_0x2dc71d))throw new _0x1dcfe2('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x45db29=_0x3f5d96(_0xc2dd99,_0x15d433,_0x2dc71d),_0xb61a96=(_0x1a4c97==null?void 0x0:_0x1a4c97[_0x68b1b3(0x249)])??_0x40b818[_0x68b1b3(0x249)],_0x28eff9=_0x235e9b(_0x40b818['metadata'],_0xb61a96,{..._0xda40b,..._0x40b818[_0x68b1b3(0x225)]});if(_0x1a4c97)return _0x1a4c97[_0x68b1b3(0x24b)]=_0x1c9890[_0x68b1b3(0x271)]['CODE'],_0x2751b0(_0xc2dd99,_0x15d433,_0x2dc71d),_0x46b7ac(_0xc2dd99,_0x15d433,_0x2dc71d,_0x45db29),_0x449b0e(_0xc2dd99,_0x1a4c97),{'nextDocumentData':_0x4cdcdc,'nextMetadata':_0x28eff9,'cursorOffset':_0x15d433+0x1};if(_0x15d433===_0x2dc71d){var _0x56b235,_0x5205e0;let _0x682c0e=''+_0x1c9890[_0x68b1b3(0x273)]['BLOCK_START']+_0x1c9890[_0x68b1b3(0x273)][_0x68b1b3(0x1e3)]+_0x1c9890[_0x68b1b3(0x273)][_0x68b1b3(0x211)];_0x526394(_0xc2dd99,_0x15d433,_0x682c0e,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x1c9890[_0x68b1b3(0x1ec)])(new Set((_0x56b235=_0xc2dd99[_0x68b1b3(0x277)])==null?void 0x0:_0x56b235[_0x68b1b3(0x1ee)](_0x1aba28=>_0x1aba28['paragraphId']))),'paragraphStyle':_0x1e6ecc(!0x0,!0x0,_0x45db29)}],'blockRanges':[{'blockId':_0xb61a96,'blockType':_0x1c9890['DocumentBlockRangeType'][_0x68b1b3(0x20e)],'startIndex':0x0,'endIndex':_0x682c0e[_0x68b1b3(0x26a)]-0x1}]});let _0x43b876=(_0x5205e0=_0xc2dd99[_0x68b1b3(0x254)])==null?void 0x0:_0x5205e0['find'](_0x3aa540=>_0x3aa540[_0x68b1b3(0x249)]===_0xb61a96);return _0x43b876&&_0x449b0e(_0xc2dd99,_0x43b876),{'nextDocumentData':_0x4cdcdc,'nextMetadata':_0x28eff9,'cursorOffset':_0x15d433+0x1};}_0x526394(_0xc2dd99,_0x2dc71d,_0x1c9890[_0x68b1b3(0x273)][_0x68b1b3(0x211)]),_0x526394(_0xc2dd99,_0x15d433,_0x1c9890[_0x68b1b3(0x273)][_0x68b1b3(0x231)]),_0x46b7ac(_0xc2dd99,_0x15d433,_0x2dc71d+0x1,_0x45db29);let _0x5b95b5={'blockId':_0xb61a96,'blockType':_0x1c9890[_0x68b1b3(0x271)]['CODE'],'startIndex':_0x15d433,'endIndex':_0x2dc71d+0x1};return _0xc2dd99[_0x68b1b3(0x254)]=[..._0xc2dd99[_0x68b1b3(0x254)]??[],_0x5b95b5][_0x68b1b3(0x20a)]((_0x23c489,_0x31a011)=>_0x23c489[_0x68b1b3(0x25d)]-_0x31a011[_0x68b1b3(0x25d)]),_0x449b0e(_0xc2dd99,_0x5b95b5),{'nextDocumentData':_0x4cdcdc,'nextMetadata':_0x28eff9,'cursorOffset':_0x15d433+0x1};}function _0x2751b0(_0x1935ed,_0x4c5dde,_0x37097b){const _0x3129ff=_0x2332fb;(_0x1935ed[_0x3129ff(0x277)]??[])[_0x3129ff(0x262)](_0x515121=>_0x515121[_0x3129ff(0x25d)]>_0x4c5dde&&_0x515121['startIndex']<_0x37097b)[_0x3129ff(0x1f3)](_0x21dc3c=>{const _0x3ca572=_0x3129ff;let _0x4304da={..._0x21dc3c[_0x3ca572(0x1c3)]??{}};delete _0x4304da['spaceAbove'],delete _0x4304da[_0x3ca572(0x1d9)],_0x21dc3c[_0x3ca572(0x1c3)]=_0x4304da;});}function _0x4117ca(_0x314d62,_0x36bb46){return _0x314d62==null||_0x36bb46==null||_0x314d62===_0x36bb46?null:{'startOffset':Math['min'](_0x314d62,_0x36bb46),'endOffset':Math['max'](_0x314d62,_0x36bb46)};}function _0x5c1116(_0x10c4af,_0x356364,_0x493963){const _0x2d0b5e=_0x2332fb;return(_0x10c4af[_0x2d0b5e(0x254)]??[])['some'](_0x11415d=>{const _0x16e629=_0x2d0b5e;let _0x4e2e80=(0x0,_0x1c9890[_0x16e629(0x204)])(_0x11415d);return _0x356364===_0x493963?(0x0,_0x1c9890[_0x16e629(0x26b)])(_0x4e2e80,_0x356364):(0x0,_0x1c9890[_0x16e629(0x1b7)])(_0x4e2e80,{'startOffset':_0x356364,'endOffset':_0x493963});});}function _0x37a120(_0x30d05c){const _0x5048f0=_0x2332fb;return{'nextDocumentData':_0x3a310a(_0x30d05c[_0x5048f0(0x1e9)]),'nextMetadata':_0x235e9b(_0x30d05c[_0x5048f0(0x1b4)],_0x30d05c[_0x5048f0(0x249)],_0x30d05c[_0x5048f0(0x225)]),'cursorOffset':0x0};}function _0x1116a3(_0x1e0258){const _0xe135fc=_0x2332fb;let _0xa06fd3=_0x3a310a(_0x1e0258['documentData']),_0x23638b=_0x45931d(_0xa06fd3),_0x13a6c1=_0x1137e1(_0x23638b,_0x1e0258['blockId']);if(!_0x13a6c1)return null;let _0x3f197e=_0x15df28(_0x23638b,_0x13a6c1);return{'nextDocumentData':_0xa06fd3,'nextMetadata':_0x135b40(_0x1e0258[_0xe135fc(0x1b4)],_0x1e0258['blockId']),'cursorOffset':_0x3f197e};}function _0x297357(_0x476dc6){const _0x11c077=_0x2332fb;var _0x2046b5;let _0x4946fc=_0x3a310a(_0x476dc6['documentData']),_0x1c631c=_0x45931d(_0x4946fc),_0x1174b2=_0x1137e1(_0x1c631c,_0x476dc6[_0x11c077(0x249)]);if(!_0x1174b2)return null;let _0x33c7fc=(0x0,_0x1c9890[_0x11c077(0x204)])(_0x1174b2);return _0x4ee1b4(_0x1c631c,_0x33c7fc[_0x11c077(0x25e)],_0x33c7fc['endOffset']),_0x1c631c[_0x11c077(0x254)]=(_0x2046b5=_0x1c631c[_0x11c077(0x254)])==null?void 0x0:_0x2046b5[_0x11c077(0x262)](_0x50a1ad=>_0x50a1ad[_0x11c077(0x249)]!==_0x476dc6[_0x11c077(0x249)]),{'nextDocumentData':_0x4946fc,'nextMetadata':_0x135b40(_0x476dc6['metadata'],_0x476dc6[_0x11c077(0x249)]),'cursorOffset':_0x1174b2[_0x11c077(0x25d)]};}function _0x440874(_0x5d7b7d){const _0x403b2c=_0x2332fb;let _0x32c5ae=_0x3a310a(_0x5d7b7d[_0x403b2c(0x1e9)]),_0x18a444=_0x45931d(_0x32c5ae),_0x3d2f6=_0x2e9ed1(_0x18a444,_0x5d7b7d[_0x403b2c(0x247)]);return _0x3d2f6&&_0x67eff9(_0x32c5ae,_0x18a444,_0x3d2f6,_0x5d7b7d['cursorOffset'],_0x5d7b7d[_0x403b2c(0x1ba)])||null;}function _0x67eff9(_0xbac596,_0x2e7aa7,_0x17878c,_0x18c936,_0x17e963){const _0x5bdc44=_0x2332fb;let _0x125f28=_0x1a5c53(_0x2e7aa7,_0x17878c,_0x18c936,_0x17e963);if(!_0x125f28)return null;let _0x9d9b7a=_0x125f28[_0x5bdc44(0x1d7)]-0x1;return _0x4ee1b4(_0x2e7aa7,_0x125f28[_0x5bdc44(0x207)][_0x5bdc44(0x25d)],_0x125f28[_0x5bdc44(0x207)][_0x5bdc44(0x25d)]+0x1),{'nextDocumentData':_0xbac596,'cursorOffset':_0x9d9b7a};}function _0x1137e1(_0x2265f1,_0x51b287){const _0x29efa0=_0x2332fb;var _0x4c333f;return _0x2265f1==null||(_0x4c333f=_0x2265f1[_0x29efa0(0x254)])==null?void 0x0:_0x4c333f[_0x29efa0(0x272)](_0x187ecf=>_0x187ecf[_0x29efa0(0x24b)]===_0x1c9890[_0x29efa0(0x271)][_0x29efa0(0x20e)]&&_0x187ecf[_0x29efa0(0x249)]===_0x51b287);}function _0x5926da(_0x3ce4e1){const _0x26bdb6=_0x2332fb;let _0x271266=_0x3ce4e1[_0x26bdb6(0x1e9)][_0x26bdb6(0x210)];if(!_0x271266)return!0x1;let _0x7487d6=_0x3ce4e1['direction']==='left'?_0x3ce4e1[_0x26bdb6(0x247)]-0x1:_0x3ce4e1[_0x26bdb6(0x247)],_0x1bf817=_0x3ce4e1['direction']===_0x26bdb6(0x1f0)?_0x3ce4e1[_0x26bdb6(0x247)]+0x1:_0x7487d6;return(_0x271266[_0x26bdb6(0x254)]??[])['some'](_0x169c20=>_0x169c20[_0x26bdb6(0x24b)]===_0x1c9890[_0x26bdb6(0x271)]['CODE']?_0x7487d6===_0x169c20[_0x26bdb6(0x25d)]||_0x7487d6===_0x169c20['endIndex']||_0x1bf817===_0x169c20[_0x26bdb6(0x25d)]||_0x1bf817===_0x169c20['endIndex']:!0x1);}function _0x2e9ed1(_0x1d5376,_0x24205f){const _0x4e2149=_0x2332fb;var _0x46a084;return(_0x46a084=_0x1d5376[_0x4e2149(0x254)])==null?void 0x0:_0x46a084[_0x4e2149(0x272)](_0x15ba38=>{const _0x22a561=_0x4e2149;let _0x307410=_0x3f0982(_0x15ba38);return _0x15ba38[_0x22a561(0x24b)]===_0x1c9890['DocumentBlockRangeType'][_0x22a561(0x20e)]&&_0x15ba38['startIndex']<=_0x24205f&&_0x24205f<=_0x307410+0x2;});}function _0x1e6ecc(_0x3f8de7,_0x2a2823,_0x4c7b13=!0x1){const _0x5be0db=_0x2332fb;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x1c9890[_0x5be0db(0x1d3)][_0x5be0db(0x278)],'keepNext':_0x2a2823?_0x1c9890['BooleanNumber'][_0x5be0db(0x223)]:_0x1c9890[_0x5be0db(0x1d3)][_0x5be0db(0x278)],'widowControl':_0x1c9890[_0x5be0db(0x1d3)][_0x5be0db(0x278)],..._0x3f8de7&&_0x4c7b13?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x485e6b,'fs':0xc}};}function _0x46b7ac(_0xbac527,_0x2211d0,_0x18943b,_0x20ff1b=!0x1){const _0x2c9e84=_0x2332fb;let _0x1fc752=(_0xbac527[_0x2c9e84(0x277)]??[])[_0x2c9e84(0x262)](_0x54feae=>_0x54feae[_0x2c9e84(0x25d)]>_0x2211d0&&_0x54feae['startIndex']<_0x18943b);_0x1fc752[_0x2c9e84(0x1f3)]((_0x3458d1,_0xa25b14)=>{const _0x17c489=_0x2c9e84;_0x3458d1[_0x17c489(0x1c3)]={..._0x3458d1[_0x17c489(0x1c3)]??{},..._0x1e6ecc(_0xa25b14===0x0,_0xa25b14===_0x1fc752[_0x17c489(0x26a)]-0x1,_0x20ff1b)};});}function _0x1b652c(_0x27a7dc){const _0x396342=_0x2332fb;var _0x497abb,_0x20d05f;let _0x3cd205={..._0x27a7dc??{}};return delete _0x3cd205[_0x396342(0x1e7)],delete _0x3cd205[_0x396342(0x1a0)],delete _0x3cd205[_0x396342(0x22f)],delete _0x3cd205[_0x396342(0x1d9)],delete _0x3cd205[_0x396342(0x25b)],delete _0x3cd205[_0x396342(0x1c6)],delete _0x3cd205[_0x396342(0x1a8)],((_0x497abb=_0x3cd205[_0x396342(0x232)])==null?void 0x0:_0x497abb['ff'])===_0x485e6b&&((_0x20d05f=_0x3cd205[_0x396342(0x232)])==null?void 0x0:_0x20d05f['fs'])===0xc&&delete _0x3cd205[_0x396342(0x232)],_0x3cd205;}function _0x68d701(_0x22d183,_0x3e8d17){const _0x52f934=_0x2332fb;let _0x4a0624=_0x3f0982(_0x3e8d17);return(_0x22d183[_0x52f934(0x277)]??[])[_0x52f934(0x262)](_0x1e66e6=>_0x1e66e6[_0x52f934(0x25d)]>_0x3e8d17[_0x52f934(0x25d)]&&_0x1e66e6[_0x52f934(0x25d)]<_0x4a0624);}function _0x15df28(_0x4bfc42,_0x17d226){const _0xcc6cf3=_0x2332fb;var _0x2bf830;let _0x3eb522=_0x3f0982(_0x17d226);return _0x68d701(_0x4bfc42,_0x17d226)[_0xcc6cf3(0x1f3)](_0x1167f5=>{const _0x436152=_0xcc6cf3;_0x1167f5[_0x436152(0x1c3)]=_0x1b652c(_0x1167f5[_0x436152(0x1c3)]);}),_0x4ee1b4(_0x4bfc42,_0x3eb522,_0x3eb522+0x1),_0x4ee1b4(_0x4bfc42,_0x17d226['startIndex'],_0x17d226[_0xcc6cf3(0x25d)]+0x1),_0x4bfc42['blockRanges']=(_0x2bf830=_0x4bfc42[_0xcc6cf3(0x254)])==null?void 0x0:_0x2bf830[_0xcc6cf3(0x262)](_0x2ecb85=>_0x2ecb85[_0xcc6cf3(0x249)]!==_0x17d226['blockId']),_0x17d226[_0xcc6cf3(0x25d)];}function _0x3a310a(_0x503138){const _0xd94140=_0x2332fb;return{..._0x503138,'body':_0x503138[_0xd94140(0x210)]?_0x3ffe56(_0x503138[_0xd94140(0x210)]):_0x503138[_0xd94140(0x210)]};}function _0x3ffe56(_0x5770c9){const _0x1cce43=_0x2332fb;var _0x18828c,_0x5b03cc,_0x2e2bb7,_0x45a884,_0x1d800c,_0x22973e,_0x339bee,_0x2792b5,_0x15f915;return{..._0x5770c9,'paragraphs':(_0x18828c=_0x5770c9[_0x1cce43(0x277)])==null?void 0x0:_0x18828c['map'](_0x2058b2=>({..._0x2058b2,'bullet':_0x57a81e(_0x2058b2[_0x1cce43(0x1f5)]),'paragraphStyle':_0x57a81e(_0x2058b2[_0x1cce43(0x1c3)])})),'sectionBreaks':(_0x5b03cc=_0x5770c9[_0x1cce43(0x1fa)])==null?void 0x0:_0x5b03cc[_0x1cce43(0x1ee)](_0x8c0a9f=>({..._0x8c0a9f})),'textRuns':(_0x2e2bb7=_0x5770c9[_0x1cce43(0x1d4)])==null?void 0x0:_0x2e2bb7[_0x1cce43(0x1ee)](_0x3dc7cd=>({..._0x3dc7cd})),'tables':(_0x45a884=_0x5770c9[_0x1cce43(0x1c5)])==null?void 0x0:_0x45a884[_0x1cce43(0x1ee)](_0x144fc0=>({..._0x144fc0})),'columnGroups':(_0x1d800c=_0x5770c9['columnGroups'])==null?void 0x0:_0x1d800c['map'](_0x5696b5=>{const _0x387ffb=_0x1cce43;var _0x28aab8;return{..._0x5696b5,'columns':(_0x28aab8=_0x5696b5[_0x387ffb(0x226)])==null?void 0x0:_0x28aab8[_0x387ffb(0x1ee)](_0x3ffad9=>_0x57a81e(_0x3ffad9))};}),'blockRanges':(_0x22973e=_0x5770c9['blockRanges'])==null?void 0x0:_0x22973e[_0x1cce43(0x1ee)](_0x25b3bd=>({..._0x25b3bd})),'customRanges':(_0x339bee=_0x5770c9[_0x1cce43(0x1dc)])==null?void 0x0:_0x339bee[_0x1cce43(0x1ee)](_0x3c86a5=>({..._0x3c86a5})),'customDecorations':(_0x2792b5=_0x5770c9[_0x1cce43(0x1a4)])==null?void 0x0:_0x2792b5[_0x1cce43(0x1ee)](_0x3bfa39=>({..._0x3bfa39})),'customBlocks':(_0x15f915=_0x5770c9['customBlocks'])==null?void 0x0:_0x15f915[_0x1cce43(0x1ee)](_0x1e1dcf=>({..._0x1e1dcf}))};}function _0x57a81e(_0x4a98e2){const _0x4c4d57=_0x2332fb;return Array[_0x4c4d57(0x23a)](_0x4a98e2)?_0x4a98e2[_0x4c4d57(0x1ee)](_0x4f26df=>_0x57a81e(_0x4f26df)):!_0x4a98e2||typeof _0x4a98e2!=_0x4c4d57(0x25c)?_0x4a98e2:Object[_0x4c4d57(0x1ca)](Object[_0x4c4d57(0x21a)](_0x4a98e2)['map'](([_0x575084,_0x5379ec])=>[_0x575084,_0x57a81e(_0x5379ec)]));}function _0x45931d(_0xb8b814){const _0x117efd=_0x2332fb;if(!_0xb8b814[_0x117efd(0x210)])throw Error(_0x117efd(0x20c));return _0xb8b814[_0x117efd(0x210)];}function _0x24bb9d(_0xfeb8a0,_0x4c30f0,_0x5d1e0a,_0x5dba5f=_0x2332fb(0x1e4)){const _0x3073a0=_0x2332fb;if(_0x4c30f0==null||_0x5d1e0a==null){let _0x4d6a42=_0x4c4cf9(_0xfeb8a0);return{'startOffset':_0x4d6a42,'endOffset':_0x4d6a42};}let _0x195255=Math['min'](_0x4c30f0,_0x5d1e0a),_0x200b33=Math[_0x3073a0(0x248)](_0x4c30f0,_0x5d1e0a),_0x58d363=_0x451fe4(_0xfeb8a0,_0x195255,_0x200b33);return _0x195255===_0x200b33?_0x5dba5f===_0x3073a0(0x22d)?{'startOffset':_0x195255,'endOffset':_0x200b33}:_0x74c244(_0xfeb8a0,_0x195255,_0x58d363):_0x4decdd(_0xfeb8a0,_0x195255,_0x200b33,_0x58d363);}function _0x74c244(_0x4b7e03,_0x218968,_0x1ad6f5){const _0x2a18e8=_0x2332fb;let _0x358081=_0x4e3af1(_0x4b7e03,_0x218968);if(_0x358081){let _0xaf7db=_0x1199f5(_0x4b7e03,_0x358081,_0x1ad6f5);if(_0xaf7db<_0x358081[_0x2a18e8(0x25d)])return{'startOffset':_0xaf7db,'endOffset':_0x1ad6f5?Math[_0x2a18e8(0x1bb)](_0x358081[_0x2a18e8(0x25d)]+0x1,_0x1ad6f5[_0x2a18e8(0x1c0)]):_0x358081[_0x2a18e8(0x25d)]+0x1};}let _0x540c58=_0x218968===0x0&&_0x4b7e03[_0x2a18e8(0x20d)][0x0]===_0x1c9890[_0x2a18e8(0x273)][_0x2a18e8(0x1e3)]?0x1:_0x218968;return{'startOffset':_0x540c58,'endOffset':_0x540c58};}function _0x4c4cf9(_0x5242f3){const _0x1a1819=_0x2332fb;return _0x5242f3[_0x1a1819(0x20d)][_0x1a1819(0x206)](_0x1c9890[_0x1a1819(0x273)][_0x1a1819(0x27c)])?Math[_0x1a1819(0x248)](0x0,_0x5242f3['dataStream'][_0x1a1819(0x26a)]-0x1):_0x5242f3[_0x1a1819(0x20d)]['length'];}function _0x3f5d96(_0x3d5d65,_0x5684db,_0x5ac57a){const _0x5017bc=_0x2332fb;var _0x22e93c;let _0x393375=Math[_0x5017bc(0x1bb)](_0x5684db,_0x5ac57a),_0x3d0193=Math[_0x5017bc(0x248)](_0x5684db,_0x5ac57a);return!!((_0x22e93c=_0x3d5d65[_0x5017bc(0x1c5)])!=null&&_0x22e93c[_0x5017bc(0x1c8)](_0x95387b=>_0x393375>_0x95387b[_0x5017bc(0x25d)]&&_0x393375<_0x95387b[_0x5017bc(0x1bc)]||_0x3d0193>_0x95387b['startIndex']&&_0x3d0193<_0x95387b[_0x5017bc(0x1bc)]||_0x393375<=_0x95387b[_0x5017bc(0x25d)]&&_0x3d0193>=_0x95387b[_0x5017bc(0x1bc)]));}function _0x4decdd(_0x20d6a9,_0x1d5a77,_0x51e482,_0x497ac5){const _0x4d7077=_0x2332fb;let _0x169356=[..._0x20d6a9[_0x4d7077(0x277)]??[]]['sort']((_0x3062c4,_0x58e9d6)=>_0x3062c4[_0x4d7077(0x25d)]-_0x58e9d6[_0x4d7077(0x25d)]),_0x324ba7=(0x0,_0x1c9890[_0x4d7077(0x20b)])(_0x20d6a9),_0x4e7849=_0x169356[_0x4d7077(0x272)](_0x293da7=>_0x1199f5(_0x20d6a9,_0x293da7,_0x497ac5,_0x324ba7)<=_0x1d5a77&&_0x1d5a77<=_0x293da7[_0x4d7077(0x25d)]),_0x242778=_0x169356['find'](_0x130213=>_0x130213[_0x4d7077(0x25d)]>=_0x51e482-0x1)??_0x169356[_0x169356[_0x4d7077(0x26a)]-0x1];return{'startOffset':_0x4e7849?_0x1199f5(_0x20d6a9,_0x4e7849,_0x497ac5,_0x324ba7):_0x1d5a77,'endOffset':_0x242778?_0x278e79(_0x242778,_0x497ac5):_0x51e482};}function _0x4e3af1(_0x5451fd,_0x2b76c5){const _0x38b8a0=_0x2332fb;let _0x1fe886=[..._0x5451fd[_0x38b8a0(0x277)]??[]][_0x38b8a0(0x20a)]((_0x47de4f,_0x34e0cd)=>_0x47de4f[_0x38b8a0(0x25d)]-_0x34e0cd['startIndex']),_0x1c0c11=(0x0,_0x1c9890['getParagraphContentStartOffsets'])(_0x5451fd);return _0x1fe886[_0x38b8a0(0x272)](_0x45a1eb=>(_0x1c0c11['get'](_0x45a1eb[_0x38b8a0(0x25d)])??0x0)<=_0x2b76c5&&_0x2b76c5<=_0x45a1eb['startIndex']);}function _0x1199f5(_0x4dc376,_0x146c97,_0x25d9de,_0x1878a2){const _0x4275f6=_0x2332fb;let _0x355741=(_0x1878a2==null?void 0x0:_0x1878a2[_0x4275f6(0x1ae)](_0x146c97[_0x4275f6(0x25d)]))??(0x0,_0x1c9890[_0x4275f6(0x26c)])(_0x4dc376,_0x146c97);return _0x25d9de?Math[_0x4275f6(0x248)](_0x355741,_0x25d9de[_0x4275f6(0x25e)]):_0x355741;}function _0x278e79(_0x27af83,_0x2578c2){const _0x3ecd98=_0x2332fb;let _0x3f38b7=_0x27af83[_0x3ecd98(0x25d)]+0x1;return _0x2578c2?Math[_0x3ecd98(0x1bb)](_0x3f38b7,_0x2578c2[_0x3ecd98(0x1c0)]):_0x3f38b7;}function _0x451fe4(_0x95672d,_0x354535,_0x3cfe0e){const _0x3d1185=_0x2332fb;let _0x56ecd2=_0x26defd(_0x95672d,_0x354535),_0x25344e=_0x26defd(_0x95672d,_0x354535===_0x3cfe0e?_0x3cfe0e:Math[_0x3d1185(0x248)](_0x354535,_0x3cfe0e-0x1));if(!(!_0x56ecd2&&!_0x25344e)){if(!_0x56ecd2||!_0x25344e||_0x56ecd2[_0x3d1185(0x1b0)]!==_0x25344e[_0x3d1185(0x1b0)]||_0x56ecd2[_0x3d1185(0x1d7)]!==_0x25344e['endTokenOffset'])throw new _0x1dcfe2();return _0x56ecd2;}}function _0x26defd(_0x52c666,_0x1181b4){const _0x38a124=_0x2332fb;let _0xc2feda=_0x52c666[_0x38a124(0x20d)],_0x2a8478=-0x1;for(let _0x435e60=Math['min'](_0x1181b4,_0xc2feda[_0x38a124(0x26a)]-0x1);_0x435e60>=0x0;_0x435e60--){let _0x2ad352=_0xc2feda[_0x435e60];if(_0x2ad352===_0x1c9890[_0x38a124(0x273)]['TABLE_CELL_END'])return;if(_0x2ad352===_0x1c9890[_0x38a124(0x273)]['TABLE_CELL_START']){_0x2a8478=_0x435e60;break;}}if(_0x2a8478<0x0)return;let _0x4d7123=_0xc2feda['indexOf'](_0x1c9890[_0x38a124(0x273)]['TABLE_CELL_END'],_0x2a8478+0x1);if(!(_0x4d7123<0x0||_0x1181b4<_0x2a8478+0x1||_0x1181b4>_0x4d7123-0x1))return{'startOffset':_0x2a8478+0x1,'endOffset':Math[_0x38a124(0x248)](_0x2a8478+0x1,_0x4d7123-0x1),'startTokenOffset':_0x2a8478,'endTokenOffset':_0x4d7123};}function _0x3f0982(_0x2b7824){const _0x2c2bf5=_0x2332fb;return(0x0,_0x1c9890[_0x2c2bf5(0x204)])(_0x2b7824)[_0x2c2bf5(0x1c0)]-0x1;}function _0x1a5c53(_0x7ae3c3,_0x311554,_0x143e94,_0x52ab02){const _0x28d532=_0x2332fb;let _0x33c155=_0x3f0982(_0x311554),_0x3744aa=(_0x7ae3c3['paragraphs']??[])[_0x28d532(0x272)](_0x58f260=>_0x58f260[_0x28d532(0x25d)]===_0x33c155+0x1);if(!_0x3744aa||_0x52ab02!=null&&_0x3744aa[_0x28d532(0x25d)]!==_0x52ab02||_0x143e94!=null&&(_0x143e94<_0x33c155||_0x143e94>_0x3744aa[_0x28d532(0x25d)]+0x1)||_0x7ae3c3['dataStream'][_0x3744aa['startIndex']]!==_0x1c9890[_0x28d532(0x273)][_0x28d532(0x1e3)])return null;let _0x174e40=(0x0,_0x1c9890['getParagraphContentStartOffset'])(_0x7ae3c3,_0x3744aa),_0x2bd537=_0x7ae3c3['dataStream']['slice'](_0x174e40,_0x3744aa[_0x28d532(0x25d)]);return Array[_0x28d532(0x1ed)](_0x2bd537)[_0x28d532(0x250)](_0x481e44=>_0x481e44===_0x1c9890[_0x28d532(0x273)][_0x28d532(0x211)])?{'paragraph':_0x3744aa,'endTokenOffset':_0x33c155}:null;}function _0x449b0e(_0x193b57,_0x200062){const _0x455214=_0x2332fb;var _0x278d1b;let _0x5253bb=_0x3f0982(_0x200062),_0x53757e=_0x193b57[_0x455214(0x20d)][_0x5253bb+0x1];(_0x53757e===_0x1c9890[_0x455214(0x273)][_0x455214(0x27c)]||_0x53757e===void 0x0)&&_0x526394(_0x193b57,_0x5253bb+0x1,_0x1c9890['DataStreamTreeTokenType'][_0x455214(0x1e3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x1c9890['createParagraphId'])(new Set((_0x278d1b=_0x193b57['paragraphs'])==null?void 0x0:_0x278d1b[_0x455214(0x1ee)](_0x29f0d7=>_0x29f0d7['paragraphId'])))}]});}function _0x526394(_0x5f3e43,_0x52b382,_0x193b27,_0x5e81b1={}){const _0x3ed60c=_0x2332fb;var _0x14380f,_0x42e529;_0x193b27&&(_0x5f3e43['dataStream']=''+_0x5f3e43['dataStream'][_0x3ed60c(0x26d)](0x0,_0x52b382)+_0x193b27+_0x5f3e43['dataStream'][_0x3ed60c(0x26d)](_0x52b382),_0x1f2929(_0x5f3e43,_0x52b382,_0x193b27['length']),(_0x14380f=_0x5e81b1[_0x3ed60c(0x277)])!=null&&_0x14380f[_0x3ed60c(0x26a)]&&(_0x5f3e43['paragraphs']=[..._0x5f3e43[_0x3ed60c(0x277)]??[],..._0x5e81b1[_0x3ed60c(0x277)][_0x3ed60c(0x1ee)](_0x1a430a=>({..._0x1a430a,'startIndex':_0x1a430a['startIndex']+_0x52b382}))][_0x3ed60c(0x20a)]((_0x134465,_0x7c8cb6)=>_0x134465[_0x3ed60c(0x25d)]-_0x7c8cb6[_0x3ed60c(0x25d)])),(_0x42e529=_0x5e81b1[_0x3ed60c(0x254)])!=null&&_0x42e529[_0x3ed60c(0x26a)]&&(_0x5f3e43[_0x3ed60c(0x254)]=[..._0x5f3e43['blockRanges']??[],..._0x5e81b1[_0x3ed60c(0x254)][_0x3ed60c(0x1ee)](_0x5ca184=>({..._0x5ca184,'startIndex':_0x5ca184[_0x3ed60c(0x25d)]+_0x52b382,'endIndex':_0x5ca184[_0x3ed60c(0x1bc)]+_0x52b382}))][_0x3ed60c(0x20a)]((_0x15b136,_0x118ea1)=>_0x15b136[_0x3ed60c(0x25d)]-_0x118ea1['startIndex'])));}function _0x4ee1b4(_0x22688e,_0x39528f,_0x2026bb){const _0xa83769=_0x2332fb;let _0x14947b=_0x2026bb-_0x39528f;_0x22688e[_0xa83769(0x20d)]=''+_0x22688e[_0xa83769(0x20d)][_0xa83769(0x26d)](0x0,_0x39528f)+_0x22688e[_0xa83769(0x20d)][_0xa83769(0x26d)](_0x2026bb),_0x3b234b(_0x22688e,_0x39528f,_0x14947b);}function _0x1f2929(_0x29c80f,_0x5b1410,_0x29996a){const _0x4cc062=_0x2332fb;_0x29c80f['paragraphs']=_0x204ca0(_0x29c80f['paragraphs'],_0x5b1410,_0x29996a),_0x29c80f['sectionBreaks']=_0x204ca0(_0x29c80f[_0x4cc062(0x1fa)],_0x5b1410,_0x29996a),_0x29c80f['customBlocks']=_0x204ca0(_0x29c80f[_0x4cc062(0x224)],_0x5b1410,_0x29996a),_0x29c80f[_0x4cc062(0x1d4)]=_0x55a6d7(_0x29c80f[_0x4cc062(0x1d4)],_0x5b1410,_0x29996a),_0x29c80f['tables']=_0x45ea4d(_0x29c80f['tables'],_0x5b1410,_0x29996a),_0x29c80f[_0x4cc062(0x22c)]=_0x2f021f(_0x29c80f['columnGroups'],_0x5b1410,_0x29996a),_0x29c80f[_0x4cc062(0x1dc)]=_0x2f021f(_0x29c80f[_0x4cc062(0x1dc)],_0x5b1410,_0x29996a),_0x29c80f[_0x4cc062(0x1a4)]=_0x2f021f(_0x29c80f[_0x4cc062(0x1a4)],_0x5b1410,_0x29996a),_0x29c80f[_0x4cc062(0x254)]=_0x2f021f(_0x29c80f[_0x4cc062(0x254)],_0x5b1410,_0x29996a);}function _0x3b234b(_0x1bb2c6,_0x20815c,_0x3c459a){const _0x430c47=_0x2332fb;var _0x2cc5e2,_0x36b7d7;_0x1bb2c6[_0x430c47(0x277)]=_0x42fa71(_0x1bb2c6[_0x430c47(0x277)],_0x20815c,_0x3c459a),_0x1bb2c6[_0x430c47(0x1fa)]=_0x42fa71(_0x1bb2c6[_0x430c47(0x1fa)],_0x20815c,_0x3c459a),_0x1bb2c6[_0x430c47(0x224)]=_0x42fa71(_0x1bb2c6['customBlocks'],_0x20815c,_0x3c459a),_0x1bb2c6[_0x430c47(0x1d4)]=(_0x2cc5e2=_0x1ac08a((_0x36b7d7=_0x1bb2c6[_0x430c47(0x1d4)])==null?void 0x0:_0x36b7d7[_0x430c47(0x1ee)](_0x548a21=>({..._0x548a21,'startIndex':_0x548a21['st'],'endIndex':_0x548a21['ed']})),_0x20815c,_0x3c459a))==null?void 0x0:_0x2cc5e2[_0x430c47(0x1ee)](_0x50fac1=>{let {startIndex:_0x2f8418,endIndex:_0x5bb17c,..._0x21e54d}=_0x50fac1;return{..._0x21e54d,'st':_0x2f8418,'ed':_0x5bb17c};}),_0x1bb2c6[_0x430c47(0x1c5)]=_0x1ac08a(_0x1bb2c6[_0x430c47(0x1c5)],_0x20815c,_0x3c459a),_0x1bb2c6[_0x430c47(0x22c)]=_0x1f8d84(_0x1bb2c6[_0x430c47(0x22c)],_0x20815c,_0x3c459a),_0x1bb2c6[_0x430c47(0x1dc)]=_0x1f8d84(_0x1bb2c6[_0x430c47(0x1dc)],_0x20815c,_0x3c459a),_0x1bb2c6[_0x430c47(0x1a4)]=_0x1f8d84(_0x1bb2c6[_0x430c47(0x1a4)],_0x20815c,_0x3c459a),_0x1bb2c6[_0x430c47(0x254)]=_0x1f8d84(_0x1bb2c6[_0x430c47(0x254)],_0x20815c,_0x3c459a);}function _0x204ca0(_0x23f178,_0x873f07,_0x27bf94){const _0x3b73e7=_0x2332fb;return _0x23f178==null?void 0x0:_0x23f178[_0x3b73e7(0x1ee)](_0x493204=>_0x493204[_0x3b73e7(0x25d)]>=_0x873f07?{..._0x493204,'startIndex':_0x493204[_0x3b73e7(0x25d)]+_0x27bf94}:_0x493204);}function _0x42fa71(_0x5bbefc,_0x578d6b,_0x13961f){const _0x79e0c0=_0x2332fb;let _0x469f6e=_0x578d6b+_0x13961f;return _0x5bbefc==null?void 0x0:_0x5bbefc[_0x79e0c0(0x1ee)](_0x1b7a7e=>_0x1b7a7e[_0x79e0c0(0x25d)]>=_0x578d6b&&_0x1b7a7e[_0x79e0c0(0x25d)]<_0x469f6e?null:_0x1b7a7e[_0x79e0c0(0x25d)]>=_0x469f6e?{..._0x1b7a7e,'startIndex':_0x1b7a7e['startIndex']-_0x13961f}:_0x1b7a7e)[_0x79e0c0(0x262)](_0x450a6c=>_0x450a6c!=null);}function _0x55a6d7(_0x26fd72,_0x218ac4,_0x288ac8){const _0x2b333f=_0x2332fb;return _0x26fd72==null?void 0x0:_0x26fd72[_0x2b333f(0x1ee)](_0x1a7e4a=>_0x1a7e4a['st']>=_0x218ac4?{..._0x1a7e4a,'st':_0x1a7e4a['st']+_0x288ac8,'ed':_0x1a7e4a['ed']+_0x288ac8}:_0x1a7e4a['ed']>_0x218ac4?{..._0x1a7e4a,'ed':_0x1a7e4a['ed']+_0x288ac8}:_0x1a7e4a);}function _0x2f021f(_0x583105,_0x55bbcb,_0x1d81b1){const _0x1ab9c6=_0x2332fb;return _0x583105==null?void 0x0:_0x583105[_0x1ab9c6(0x1ee)](_0x2a84ef=>(0x0,_0x1c9890[_0x1ab9c6(0x21f)])(_0x2a84ef,_0x55bbcb,_0x1d81b1));}function _0x45ea4d(_0xdf3a5e,_0x30e5c3,_0x192882){const _0x2c939e=_0x2332fb;return _0xdf3a5e==null?void 0x0:_0xdf3a5e[_0x2c939e(0x1ee)](_0x31b093=>(0x0,_0x1c9890['shiftExclusiveRangeOnInsert'])(_0x31b093,_0x30e5c3,_0x192882));}function _0x1f8d84(_0x94a64f,_0x36571f,_0x1c673f){const _0x2111cd=_0x2332fb;return _0x94a64f==null?void 0x0:_0x94a64f['map'](_0x52cf8b=>(0x0,_0x1c9890[_0x2111cd(0x1eb)])(_0x52cf8b,_0x36571f,_0x1c673f))[_0x2111cd(0x262)](_0x30ba76=>_0x30ba76!=null);}function _0x1ac08a(_0x583e14,_0x426dcb,_0x5b04e6){const _0x5da56e=_0x2332fb;return _0x583e14==null?void 0x0:_0x583e14[_0x5da56e(0x1ee)](_0xb06afd=>(0x0,_0x1c9890[_0x5da56e(0x20f)])(_0xb06afd,_0x426dcb,_0x5b04e6))[_0x5da56e(0x262)](_0x549d06=>_0x549d06!=null);}let _0x2e4319={'id':'docs-code.command.insert-below','type':_0x1c9890['CommandType'][_0x2332fb(0x217)],'handler':_0x17983f=>{const _0x338a78=_0x2332fb;var _0x13a2d4;if((0x0,_0x39ee5c[_0x338a78(0x21e)])(_0x4ef125(_0x17983f)))return!0x1;let _0x4a3ba7=(0x0,_0x39ee5c[_0x338a78(0x264)])(_0x17983f);if(_0x4a3ba7)return _0x17983f[_0x338a78(0x1ae)](_0x1c9890['ICommandService'])[_0x338a78(0x228)](_0x606a81['id'],{'startOffset':_0x4a3ba7['startOffset'],'endOffset':_0x4a3ba7[_0x338a78(0x1c0)],'insertionMode':'insert-new','unitId':_0x4a3ba7[_0x338a78(0x1cf)]});let _0x29384f=_0x35a22d(_0x17983f);if(!_0x29384f)return!0x1;let _0x545924=(_0x13a2d4=_0x17983f[_0x338a78(0x1ae)](_0x1c9890[_0x338a78(0x1be)])[_0x338a78(0x216)](_0x1c9890[_0x338a78(0x1b8)][_0x338a78(0x263)]))==null?void 0x0:_0x13a2d4[_0x338a78(0x240)](),_0x1c78cd=_0x545924?(0x0,_0x1c9890[_0x338a78(0x1d1)])(_0x545924,_0x29384f):_0x29384f[_0x338a78(0x25d)]+0x1;return _0x17983f[_0x338a78(0x1ae)](_0x1c9890[_0x338a78(0x276)])[_0x338a78(0x228)](_0x606a81['id'],{'startOffset':_0x1c78cd,'endOffset':_0x1c78cd});}},_0x30a535={'id':_0x2332fb(0x220),'type':_0x1c9890[_0x2332fb(0x244)]['COMMAND'],'handler':()=>!0x0},_0x606a81={'id':_0x2332fb(0x267),'type':_0x1c9890[_0x2332fb(0x244)][_0x2332fb(0x217)],'handler':(_0x4353ef,_0x15791a)=>{const _0x44b22b=_0x2332fb;let _0x83113c=_0x53a5da(_0x4353ef,_0x15791a==null?void 0x0:_0x15791a[_0x44b22b(0x1cf)]);if(!_0x83113c)return!0x1;let _0xabc8e=_0x4ef125(_0x4353ef);if((0x0,_0x39ee5c[_0x44b22b(0x21e)])(_0xabc8e))return!0x1;let _0x2d92cc=_0x83113c[_0x44b22b(0x1f6)][_0x44b22b(0x252)](_0x83113c['unitId']),_0x2594ec=_0x32f2b9(_0x15791a,_0xabc8e),_0xc7b47f=_0x25d8bf(_0x83113c[_0x44b22b(0x24d)],_0x2594ec);if(_0xc7b47f){if(_0xc7b47f[_0x44b22b(0x24b)]!==_0x1c9890[_0x44b22b(0x271)]['CODE'])return!0x1;let _0x1bb5fd=_0x1116a3({'blockId':_0xc7b47f[_0x44b22b(0x249)],'documentData':_0x83113c[_0x44b22b(0x24d)],'metadata':_0x2d92cc});if(!_0x1bb5fd)return!0x1;let _0x5846a2=_0x2c57c2(_0x83113c[_0x44b22b(0x22e)],_0x83113c[_0x44b22b(0x22b)],_0x83113c['unitId'],_0x83113c['previousDocumentData'],_0x1bb5fd[_0x44b22b(0x21c)],_0x606a81['id'],_0x1bb5fd[_0x44b22b(0x247)]);return _0x5846a2&&_0x1bb5fd[_0x44b22b(0x265)]&&_0x83113c[_0x44b22b(0x1f6)][_0x44b22b(0x23e)](_0x83113c['unitId'],_0x1bb5fd['nextMetadata']),_0x5846a2;}let _0x511441=(_0x15791a==null?void 0x0:_0x15791a[_0x44b22b(0x249)])??(0x0,_0x1c9890[_0x44b22b(0x21d)])(0x6),_0x382486;try{_0x382486=_0xc6f492({'blockId':_0x511441,'config':_0x15791a==null?void 0x0:_0x15791a[_0x44b22b(0x225)],'documentData':_0x83113c[_0x44b22b(0x24d)],'endOffset':_0x2594ec==null?void 0x0:_0x2594ec[_0x44b22b(0x1c0)],'insertionMode':_0x15791a==null?void 0x0:_0x15791a[_0x44b22b(0x234)],'metadata':_0x2d92cc,'startOffset':_0x2594ec==null?void 0x0:_0x2594ec[_0x44b22b(0x25e)]});}catch(_0x2019d8){if(_0x2019d8 instanceof _0x1dcfe2)return!0x1;throw _0x2019d8;}let _0x24927b=_0x2c57c2(_0x83113c[_0x44b22b(0x22e)],_0x83113c[_0x44b22b(0x22b)],_0x83113c[_0x44b22b(0x1cf)],_0x83113c[_0x44b22b(0x24d)],_0x382486[_0x44b22b(0x21c)],_0x606a81['id'],_0x382486[_0x44b22b(0x247)]);return _0x24927b&&_0x382486[_0x44b22b(0x265)]&&_0x83113c[_0x44b22b(0x1f6)]['deserialize'](_0x83113c[_0x44b22b(0x1cf)],_0x382486[_0x44b22b(0x265)]),_0x24927b;}},_0x4b4b16={'id':'docs-code.command.update','type':_0x1c9890['CommandType'][_0x2332fb(0x217)],'handler':(_0x479b09,_0x1d09e1)=>{const _0x6b6198=_0x2332fb;if(!_0x1d09e1)return!0x1;let _0x16e083=_0x53a5da(_0x479b09,_0x1d09e1[_0x6b6198(0x1cf)]);if(!_0x16e083)return!0x1;let _0x219202=_0x37a120({'blockId':_0x1d09e1[_0x6b6198(0x249)],'config':_0x1d09e1[_0x6b6198(0x225)],'documentData':_0x16e083[_0x6b6198(0x24d)],'metadata':_0x16e083['model'][_0x6b6198(0x252)](_0x16e083[_0x6b6198(0x1cf)])});return _0x219202[_0x6b6198(0x265)]&&_0x16e083['model'][_0x6b6198(0x23e)](_0x16e083[_0x6b6198(0x1cf)],_0x219202[_0x6b6198(0x265)]),!0x0;}},_0x2e8a48={'id':_0x2332fb(0x1fb),'type':_0x1c9890['CommandType'][_0x2332fb(0x217)],'handler':(_0x40db48,_0x599b9d)=>_0x123368['handler'](_0x40db48,_0x599b9d)},_0x123368={'id':_0x2332fb(0x269),'type':_0x1c9890[_0x2332fb(0x244)][_0x2332fb(0x217)],'handler':(_0x1b9a4d,_0x10c75b)=>{const _0x41c1bb=_0x2332fb;if(!_0x10c75b)return!0x1;let _0x575cb2=_0x53a5da(_0x1b9a4d,_0x10c75b==null?void 0x0:_0x10c75b[_0x41c1bb(0x1cf)]);if(!_0x575cb2)return!0x1;let _0x5aed1a=_0x1116a3({'blockId':_0x10c75b[_0x41c1bb(0x249)],'documentData':_0x575cb2[_0x41c1bb(0x24d)],'metadata':_0x575cb2[_0x41c1bb(0x1f6)]['serialize'](_0x575cb2[_0x41c1bb(0x1cf)])});if(!_0x5aed1a)return!0x1;let _0x54e43f=_0x2c57c2(_0x575cb2[_0x41c1bb(0x22e)],_0x575cb2[_0x41c1bb(0x22b)],_0x575cb2['unitId'],_0x575cb2[_0x41c1bb(0x24d)],_0x5aed1a[_0x41c1bb(0x21c)],_0x123368['id'],_0x5aed1a[_0x41c1bb(0x247)]);return _0x54e43f&&_0x5aed1a[_0x41c1bb(0x265)]&&_0x575cb2['model'][_0x41c1bb(0x23e)](_0x575cb2[_0x41c1bb(0x1cf)],_0x5aed1a[_0x41c1bb(0x265)]),_0x54e43f;}},_0x5e166b={'id':'docs-code.command.remove','type':_0x1c9890[_0x2332fb(0x244)][_0x2332fb(0x217)],'handler':(_0x47a6f7,_0x2fb800)=>{const _0x49243b=_0x2332fb;if(!_0x2fb800)return!0x1;let _0x30c36f=_0x53a5da(_0x47a6f7,_0x2fb800==null?void 0x0:_0x2fb800[_0x49243b(0x1cf)]);if(!_0x30c36f)return!0x1;let _0x38e507=_0x297357({'blockId':_0x2fb800[_0x49243b(0x249)],'documentData':_0x30c36f[_0x49243b(0x24d)],'metadata':_0x30c36f[_0x49243b(0x1f6)][_0x49243b(0x252)](_0x30c36f[_0x49243b(0x1cf)])});if(!_0x38e507)return!0x1;let _0x57ea57=_0x2c57c2(_0x30c36f[_0x49243b(0x22e)],_0x30c36f[_0x49243b(0x22b)],_0x30c36f[_0x49243b(0x1cf)],_0x30c36f[_0x49243b(0x24d)],_0x38e507[_0x49243b(0x21c)],_0x5e166b['id'],_0x38e507[_0x49243b(0x247)]);return _0x57ea57&&_0x38e507[_0x49243b(0x265)]&&_0x30c36f['model'][_0x49243b(0x23e)](_0x30c36f[_0x49243b(0x1cf)],_0x38e507['nextMetadata']),_0x57ea57;}},_0x4d382f={'id':_0x2332fb(0x208),'type':_0x1c9890[_0x2332fb(0x244)][_0x2332fb(0x217)],'handler':(_0x33f10a,_0x2e7e6f)=>{const _0x50f7cd=_0x2332fb;var _0x40a240;let _0x520bd8=_0x53a5da(_0x33f10a,_0x2e7e6f==null?void 0x0:_0x2e7e6f[_0x50f7cd(0x1cf)]);if(!_0x520bd8)return!0x1;let _0x2592aa=(_0x2e7e6f==null?void 0x0:_0x2e7e6f[_0x50f7cd(0x247)])??((_0x40a240=_0x4ef125(_0x33f10a))==null?void 0x0:_0x40a240[_0x50f7cd(0x25e)]);if(_0x2592aa==null)return!0x1;let _0x514531=_0x440874({'cursorOffset':_0x2592aa,'documentData':_0x520bd8['previousDocumentData'],'paragraphStartIndex':_0x2e7e6f==null?void 0x0:_0x2e7e6f[_0x50f7cd(0x1ba)]});return _0x514531?_0x2c57c2(_0x520bd8[_0x50f7cd(0x22e)],_0x520bd8['selectionManager'],_0x520bd8[_0x50f7cd(0x1cf)],_0x520bd8[_0x50f7cd(0x24d)],_0x514531[_0x50f7cd(0x21c)],_0x4d382f['id'],_0x514531['cursorOffset']):!0x1;}};function _0x53a5da(_0x3e3f99,_0x28a366){const _0xd3de06=_0x2332fb;let _0x5cbeb6=_0x3e3f99[_0xd3de06(0x1ae)](_0x1c9890[_0xd3de06(0x1be)]),_0x1331e4=_0x28a366?_0x5cbeb6[_0xd3de06(0x201)](_0x28a366,_0x1c9890[_0xd3de06(0x1b8)][_0xd3de06(0x263)]):_0x5cbeb6[_0xd3de06(0x216)](_0x1c9890['UniverInstanceType'][_0xd3de06(0x263)]);return _0x1331e4?{'commandService':_0x3e3f99['get'](_0x1c9890[_0xd3de06(0x276)]),'model':_0x3e3f99[_0xd3de06(0x1ae)](_0x11248c),'previousDocumentData':_0x1331e4[_0xd3de06(0x212)](),'selectionManager':_0x3e3f99['get'](_0x39ee5c['DocSelectionManagerService']),'unitId':_0x1331e4[_0xd3de06(0x1d8)]()}:null;}function _0x4ef125(_0x12ea81){const _0x5bbc75=_0x2332fb;var _0x575979;return(_0x575979=_0x12ea81[_0x5bbc75(0x1ae)](_0x39ee5c['DocSelectionManagerService'])[_0x5bbc75(0x251)]())==null?void 0x0:_0x575979[0x0];}function _0x32f2b9(_0x4277cb,_0x30e965){const _0x530d8c=_0x2332fb;let _0x3a287c=(_0x4277cb==null?void 0x0:_0x4277cb[_0x530d8c(0x25e)])??(_0x30e965==null?void 0x0:_0x30e965['startOffset']),_0x18f398=(_0x4277cb==null?void 0x0:_0x4277cb['endOffset'])??(_0x30e965==null?void 0x0:_0x30e965[_0x530d8c(0x1c0)]);if(_0x3a287c!=null&&_0x18f398!=null)return{'endOffset':Math[_0x530d8c(0x248)](_0x3a287c,_0x18f398),'startOffset':Math['min'](_0x3a287c,_0x18f398)};}function _0x25d8bf(_0x5e5d53,_0x423074){const _0x5ea8e9=_0x2332fb;var _0x3ed50f;if(!_0x423074)return;let _0xc3fee=_0x31dca8(_0x423074);return(_0x3ed50f=_0x5e5d53[_0x5ea8e9(0x210)])==null||(_0x3ed50f=_0x3ed50f['blockRanges'])==null?void 0x0:_0x3ed50f[_0x5ea8e9(0x272)](_0x364afa=>{const _0x532fe4=_0x5ea8e9;let _0xb77906=(0x0,_0x1c9890[_0x532fe4(0x204)])(_0x364afa);return _0x423074[_0x532fe4(0x25e)]===_0x423074[_0x532fe4(0x1c0)]?(0x0,_0x1c9890[_0x532fe4(0x26b)])(_0xb77906,_0xc3fee):(0x0,_0x1c9890[_0x532fe4(0x236)])(_0xb77906,_0xc3fee);});}function _0x31dca8(_0x3cf0c7){const _0x19af7e=_0x2332fb;return _0x3cf0c7[_0x19af7e(0x25e)]===_0x3cf0c7['endOffset']?_0x3cf0c7[_0x19af7e(0x25e)]:_0x3cf0c7['startOffset']+0x1;}function _0x35a22d(_0x3295dd){const _0x41b5e3=_0x2332fb;let _0x4660bb=_0x4ef125(_0x3295dd);if(!_0x4660bb)return null;let _0x8087c1=_0x3295dd[_0x41b5e3(0x1ae)](_0x1c9890[_0x41b5e3(0x1be)])[_0x41b5e3(0x216)](_0x1c9890['UniverInstanceType'][_0x41b5e3(0x263)]),_0x37f3c3=_0x8087c1==null?void 0x0:_0x8087c1['getBody']();return _0x37f3c3?_0x1c9890[_0x41b5e3(0x258)][_0x41b5e3(0x27a)]['getParagraphsInRange'](_0x4660bb,_0x37f3c3[_0x41b5e3(0x277)]??[],_0x37f3c3[_0x41b5e3(0x20d)]??'')[0x0]??null:null;}function _0x21d9b0(_0x4d6c71,_0x40bd37){const _0x12101a=_0x2332fb;let _0x4b9656=_0x4d6c71[_0x12101a(0x210)],_0x32eedf=_0x40bd37[_0x12101a(0x210)],_0x500a0a=(0x0,_0x1c9890[_0x12101a(0x1bd)])(_0x4b9656,_0x32eedf);return[_0x500a0a&&_0x32eedf?_0x5059b2(_0x32eedf,_0x500a0a):null,_0x500a0a?null:_0x24176b(_0x4b9656,_0x32eedf)][_0x12101a(0x262)](Boolean)[_0x12101a(0x274)]((_0x82b7b2,_0x2761bb)=>_0x1c9890[_0x12101a(0x1e2)][_0x12101a(0x21b)](_0x82b7b2,_0x2761bb),null);}function _0x5059b2(_0x92211e,_0x33d3f2){const _0x28b3d4=_0x2332fb;let _0x9a1e8e=new _0x1c9890[(_0x28b3d4(0x1c2))]();return _0x9a1e8e['retain'](_0x33d3f2[_0x28b3d4(0x24a)]),_0x33d3f2['insertLength']>0x0&&_0x9a1e8e[_0x28b3d4(0x1f2)](_0x33d3f2[_0x28b3d4(0x1db)],(0x0,_0x1c9890[_0x28b3d4(0x1a5)])(_0x92211e,_0x33d3f2['start'],_0x33d3f2[_0x28b3d4(0x24a)]+_0x33d3f2[_0x28b3d4(0x1db)],!0x1)),_0x33d3f2[_0x28b3d4(0x255)]>0x0&&_0x9a1e8e[_0x28b3d4(0x239)](_0x33d3f2[_0x28b3d4(0x255)]),_0x1c9890['JSONX']['getInstance']()['editOp'](_0x9a1e8e[_0x28b3d4(0x252)](),[_0x28b3d4(0x210)]);}function _0x24176b(_0x413bf5,_0x334bf6){const _0x5ca631=_0x2332fb;let _0x37c7f0=[],_0x3f0726=_0x413bf5?_0x39e424(_0x413bf5):void 0x0,_0x20263a=_0x334bf6?_0x39e424(_0x334bf6):void 0x0;for(let _0x57f8ca of _0x70ed7e)_0x364d1c(_0x1c9890[_0x5ca631(0x1e2)][_0x5ca631(0x25a)](),[_0x5ca631(0x210),_0x57f8ca],_0x3f0726==null?void 0x0:_0x3f0726[_0x57f8ca],_0x20263a==null?void 0x0:_0x20263a[_0x57f8ca],_0x37c7f0);return _0x37c7f0[_0x5ca631(0x274)]((_0x114d31,_0x1ff3cf)=>_0x1c9890[_0x5ca631(0x1e2)][_0x5ca631(0x21b)](_0x114d31,_0x1ff3cf),null);}let _0x70ed7e=[_0x2332fb(0x277),_0x2332fb(0x1fa),'tables',_0x2332fb(0x22c),_0x2332fb(0x254),_0x2332fb(0x224),_0x2332fb(0x1dc),'customDecorations',_0x2332fb(0x1d4)];function _0x39e424(_0x471b67){return _0x471b67;}function _0x364d1c(_0x111f1b,_0x534f0f,_0x3bd34a,_0x2d6882,_0x34f4b7){const _0x257575=_0x2332fb;if(!_0x5449b9(_0x3bd34a,_0x2d6882)){if(_0x3bd34a==null){_0x34f4b7[_0x257575(0x235)](_0x111f1b[_0x257575(0x1b2)](_0x534f0f,_0x2d6882));return;}if(_0x2d6882==null){_0x34f4b7[_0x257575(0x235)](_0x111f1b['removeOp'](_0x534f0f,_0x3bd34a));return;}if(Array[_0x257575(0x23a)](_0x3bd34a)&&Array[_0x257575(0x23a)](_0x2d6882)){_0x39827f(_0x111f1b,_0x534f0f,_0x3bd34a,_0x2d6882,_0x34f4b7);return;}if(_0x182868(_0x3bd34a)&&_0x182868(_0x2d6882)){new Set([...Object[_0x257575(0x25f)](_0x3bd34a),...Object[_0x257575(0x25f)](_0x2d6882)])['forEach'](_0x26f7a0=>{_0x364d1c(_0x111f1b,[..._0x534f0f,_0x26f7a0],_0x3bd34a[_0x26f7a0],_0x2d6882[_0x26f7a0],_0x34f4b7);});return;}_0x34f4b7['push'](_0x111f1b['replaceOp'](_0x534f0f,_0x3bd34a,_0x2d6882));}}function _0x39827f(_0x37deb3,_0xe6dc50,_0x20d7d9,_0x172933,_0x503741){const _0x437c28=_0x2332fb;if(_0x20d7d9[_0x437c28(0x26a)]===_0x172933[_0x437c28(0x26a)]){_0x20d7d9[_0x437c28(0x1f3)]((_0x572414,_0xb73ca3)=>_0x364d1c(_0x37deb3,[..._0xe6dc50,_0xb73ca3],_0x572414,_0x172933[_0xb73ca3],_0x503741));return;}let _0x260fea=0x0;for(;_0x260fea<_0x20d7d9[_0x437c28(0x26a)]&&_0x260fea<_0x172933[_0x437c28(0x26a)]&&_0x5449b9(_0x20d7d9[_0x260fea],_0x172933[_0x260fea]);)_0x260fea++;let _0x40a0be=_0x20d7d9[_0x437c28(0x26a)]-0x1,_0x125fda=_0x172933['length']-0x1;for(;_0x40a0be>=_0x260fea&&_0x125fda>=_0x260fea&&_0x5449b9(_0x20d7d9[_0x40a0be],_0x172933[_0x125fda]);)_0x40a0be--,_0x125fda--;for(let _0x2c13e7=_0x40a0be;_0x2c13e7>=_0x260fea;_0x2c13e7--)_0x503741['push'](_0x37deb3[_0x437c28(0x1c1)]([..._0xe6dc50,_0x2c13e7],_0x20d7d9[_0x2c13e7]));for(let _0x28eb86=_0x260fea;_0x28eb86<=_0x125fda;_0x28eb86++)_0x503741[_0x437c28(0x235)](_0x37deb3[_0x437c28(0x1b2)]([..._0xe6dc50,_0x28eb86],_0x172933[_0x28eb86]));}function _0x182868(_0x270311){return typeof _0x270311=='object'&&!!_0x270311&&!Array['isArray'](_0x270311);}function _0x5449b9(_0x464ab5,_0x34ce1a){const _0x21dcff=_0x2332fb;return JSON[_0x21dcff(0x1ce)](_0x464ab5)===JSON[_0x21dcff(0x1ce)](_0x34ce1a);}function _0x2c57c2(_0x5e0aa2,_0xd8903b,_0x3336f1,_0x49fcd8,_0x5596b0,_0x3b850e,_0x295fc8){const _0x366bfe=_0x2332fb;let _0x5b061c=_0x21d9b0(_0x49fcd8,_0x5596b0);return _0x5b061c?!!_0x5e0aa2['syncExecuteCommand'](_0x39ee5c[_0x366bfe(0x242)]['id'],{'unitId':_0x3336f1,'actions':_0x5b061c,'textRanges':[{'startOffset':_0x295fc8,'endOffset':_0x295fc8,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x3b850e}):(_0xd8903b[_0x366bfe(0x1af)]([{'startOffset':_0x295fc8,'endOffset':_0x295fc8}],{'unitId':_0x3336f1,'subUnitId':_0x3336f1},!0x1),!0x0);}let _0x3c4ddd=_0x2332fb(0x1a3);var _0x3f4fd8=_0x2332fb(0x266),_0x46d95d=_0x2332fb(0x218);let _0x5df914={};function _0x100628(_0x43cf04,_0x44e17e){return function(_0x3b4af1,_0x3273fd){_0x44e17e(_0x3b4af1,_0x3273fd,_0x43cf04);};}function _0x4ba50e(_0x1c4d52,_0x502c87,_0x312843,_0x392551){const _0xb80e26=_0x2332fb;var _0xf1e015=arguments[_0xb80e26(0x26a)],_0x40f7f2=_0xf1e015<0x3?_0x502c87:_0x392551===null?_0x392551=Object[_0xb80e26(0x1bf)](_0x502c87,_0x312843):_0x392551,_0x582993;if(typeof Reflect==_0xb80e26(0x25c)&&typeof Reflect[_0xb80e26(0x1e1)]==_0xb80e26(0x268))_0x40f7f2=Reflect[_0xb80e26(0x1e1)](_0x1c4d52,_0x502c87,_0x312843,_0x392551);else{for(var _0x268273=_0x1c4d52[_0xb80e26(0x26a)]-0x1;_0x268273>=0x0;_0x268273--)(_0x582993=_0x1c4d52[_0x268273])&&(_0x40f7f2=(_0xf1e015<0x3?_0x582993(_0x40f7f2):_0xf1e015>0x3?_0x582993(_0x502c87,_0x312843,_0x40f7f2):_0x582993(_0x502c87,_0x312843))||_0x40f7f2);}return _0xf1e015>0x3&&_0x40f7f2&&Object[_0xb80e26(0x1f7)](_0x502c87,_0x312843,_0x40f7f2),_0x40f7f2;}let _0x493850=class extends _0x1c9890['Disposable']{constructor(_0x538f06,_0x29474f){const _0x807471=_0x2332fb;super(),this[_0x807471(0x233)]=_0x538f06,this[_0x807471(0x1b5)]=_0x29474f,this[_0x807471(0x1ef)]();}[_0x2332fb(0x1ef)](){const _0x394f6d=_0x2332fb;this[_0x394f6d(0x23f)](this[_0x394f6d(0x233)]['registerPluginResource']({'pluginName':_0x3c4ddd,'businesses':[_0x1c9890['UniverInstanceType'][_0x394f6d(0x263)]],'toJson':_0x1b04fe=>JSON['stringify'](this[_0x394f6d(0x1b5)][_0x394f6d(0x252)](_0x1b04fe)),'parseJson':_0x3d23ee=>_0x5c356d(JSON[_0x394f6d(0x1d2)](_0x3d23ee)),'onLoad':(_0x4ae951,_0x2ffad2)=>this['_docsCodeModel'][_0x394f6d(0x23e)](_0x4ae951,_0x2ffad2),'onUnLoad':_0x149628=>this[_0x394f6d(0x1b5)][_0x394f6d(0x205)](_0x149628)}));}};_0x493850=_0x4ba50e([_0x100628(0x0,_0x1c9890[_0x2332fb(0x241)]),_0x100628(0x1,(0x0,_0x1c9890[_0x2332fb(0x1f9)])(_0x11248c))],_0x493850);let _0x3f561c=class extends _0x1c9890[_0x2332fb(0x1fd)]{constructor(_0x213a18=_0x5df914,_0x226796,_0x1a7b05,_0x51d5a3){const _0x25911e=_0x2332fb;super(),this[_0x25911e(0x1b1)]=_0x213a18,this[_0x25911e(0x1a1)]=_0x226796,this['_commandService']=_0x1a7b05,this[_0x25911e(0x222)]=_0x51d5a3;let {..._0x2bc0cb}=(0x0,_0x1c9890[_0x25911e(0x26f)])({},_0x5df914,this['_config']);this[_0x25911e(0x222)]['setConfig'](_0x25911e(0x230),_0x2bc0cb);}[_0x2332fb(0x1b6)](){const _0x30215e=_0x2332fb;this[_0x30215e(0x1a1)][_0x30215e(0x1dd)]([_0x11248c]),this[_0x30215e(0x1a1)][_0x30215e(0x1dd)]([_0x493850]),this['_injector'][_0x30215e(0x1ae)](_0x11248c),this[_0x30215e(0x1a1)][_0x30215e(0x1ae)](_0x493850),[_0x606a81,_0x2e4319,_0x4b4b16,_0x123368,_0x5e166b,_0x2e8a48,_0x4d382f,_0x30a535,_0x9ce394,_0x5ad337]['forEach'](_0x24c8fe=>this['disposeWithMe'](this['_commandService']['registerCommand'](_0x24c8fe)));}};_0x161aba(_0x3f561c,_0x2332fb(0x1e5),_0x3c4ddd),_0x161aba(_0x3f561c,_0x2332fb(0x213),_0x3f4fd8),_0x161aba(_0x3f561c,_0x2332fb(0x1b9),_0x46d95d),_0x161aba(_0x3f561c,'type',_0x1c9890[_0x2332fb(0x1b8)][_0x2332fb(0x263)]),_0x3f561c=_0x4ba50e([(0x0,_0x1c9890['DependentOn'])(_0x5f3b22[_0x2332fb(0x270)],_0x39ee5c[_0x2332fb(0x238)]),_0x100628(0x1,(0x0,_0x1c9890[_0x2332fb(0x1f9)])(_0x1c9890[_0x2332fb(0x1ab)])),_0x100628(0x2,_0x1c9890['ICommandService']),_0x100628(0x3,_0x1c9890[_0x2332fb(0x1f4)])],_0x3f561c),_0x4a2f8f[_0x2332fb(0x1ea)]=_0x3c4ddd,_0x4a2f8f[_0x2332fb(0x1df)]=_0x4d382f,_0x4a2f8f[_0x2332fb(0x1d6)]=_0x30a535,_0x4a2f8f['DocsCodeInsertBelowCommand']=_0x2e4319,_0x4a2f8f[_0x2332fb(0x24f)]=_0x606a81,_0x4a2f8f[_0x2332fb(0x1d0)]=_0x11248c,_0x4a2f8f[_0x2332fb(0x275)]=_0x5e166b,_0x4a2f8f[_0x2332fb(0x1ff)]=_0x123368,_0x4a2f8f[_0x2332fb(0x1a7)]=_0x4b4b16,_0x4a2f8f[_0x2332fb(0x1e0)]=_0x5ad337,_0x4a2f8f[_0x2332fb(0x209)]=_0x9ce394,Object[_0x2332fb(0x1f7)](_0x4a2f8f,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return _0x3f561c;}}),_0x4a2f8f[_0x2332fb(0x1ac)]=_0x440874,_0x4a2f8f['isCodeBoundaryDelete']=_0x5926da,_0x4a2f8f['normalizeDocsCodeConfig']=_0x73e43a,_0x4a2f8f['normalizeDocsCodeMetadataResource']=_0x5c356d;}));function _0x3e50(){const _0x1ce398=['dataStream','CODE','shiftExclusiveRangeOnDelete','body','BLOCK_END','getSnapshot','packageName','MUTATION','default','getCurrentUnitOfType','COMMAND','1.0.0-beta.0','Module','entries','compose','nextDocumentData','generateRandomId','isHeaderFooterSelection','shiftInclusiveRangeOnInsert','docs-code.command.consume-boundary-delete','asObservable','_configService','FALSE','customBlocks','config','columns','amd','syncExecuteCommand','_resources','complete','selectionManager','columnGroups','insert-new','commandService','spaceAbove','docs-code.config','BLOCK_START','textStyle','_resourceManagerService','insertionMode','push','containsStreamIndex','dispose','UniverDocsPlugin','delete','isArray','2677660LRAXbg','toPrimitive','monospace','deserialize','disposeWithMe','getBody','IResourceManagerService','RichTextEditingMutation','removeCode','CommandType','prototype','UniverCore','cursorOffset','max','blockId','start','blockType','_setResource','previousDocumentData','@univerjs/core','DocsCodeInsertCommand','every','getTextRanges','serialize','iterator','blockRanges','deleteLength','docs-code.mutation.set-config','docs-code.mutation.remove-config','BuildTextUtils','5995976ebwCpQ','getInstance','keepLines','object','startIndex','startOffset','keys','setCodeConfig','UniverDocs','filter','UNIVER_DOC','getContentInsertRange','nextMetadata','@univerjs-pro/docs-code','docs-code.command.insert','function','docs-code.command.unwrap','length','containsInteriorInsertionOffset','getParagraphContentStartOffset','slice','constructor','merge','UniverLicensePlugin','DocumentBlockRangeType','find','DataStreamTreeTokenType','reduce','DocsCodeRemoveCommand','ICommandService','paragraphs','TRUE','7pzjFzS','range','string','SECTION_BREAK','indentStart','_injector','next','DOC_CODE_PLUGIN','customDecorations','getBodySliceForTextXAction','1586652hyWdSV','DocsCodeUpdateCommand','widowControl','call','32mYsZJZ','Injector','buildCancelEmptyCodeParagraphActions','codes','get','replaceDocRanges','startTokenOffset','_config','insertOp','symbol','metadata','_docsCodeModel','onStarting','intersectsOperationalIntervals','UniverInstanceType','version','paragraphStartIndex','min','endIndex','getSingleDataStreamChange','IUniverInstanceService','getOwnPropertyDescriptor','endOffset','removeOp','TextX','paragraphStyle','@univerjs-pro/license','tables','keepNext','_change$','some','397177xOpSRS','fromEntries','UniverProDocsCode','673NGCWPb','toStringTag','stringify','unitId','DocsCodeModel','getParagraphFollowingBlockOffset','parse','BooleanNumber','textRuns','change$','DocsCodeConsumeBoundaryDeleteCommand','endTokenOffset','getUnitId','spaceBelow','1266840dZqRhk','insertLength','customRanges','add','@univerjs/docs','DocsCodeCancelEmptyParagraphCommand','RemoveDocsCodeConfigMutation','decorate','JSONX','PARAGRAPH','convert-paragraph','pluginName','Subject','indentEnd','132JBYPpd','documentData','DOCS_CODE_PLUGIN','shiftInclusiveRangeOnDelete','createParagraphId','from','map','_initResource','right','set','insert','forEach','IConfigService','bullet','model','defineProperty','rxjs','Inject','sectionBreaks','docs-code.command.exit','286293ydmjnv','Plugin','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','DocsCodeUnwrapCommand','2118BdNgoO','getUnit','getCodeConfig','10yPPtAh','getBlockRangeInterval','removeUnit','endsWith','paragraph','docs-code.command.cancel-empty-paragraph','SetDocsCodeConfigMutation','sort','getParagraphContentStartOffsets','Document\x20body\x20is\x20required'];_0x3e50=function(){return _0x1ce398;};return _0x3e50();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-code",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-beta.0",
4
4
  "private": false,
5
5
  "description": "Code block model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs/core": "1.0.0-alpha.7",
65
- "@univerjs-pro/license": "1.0.0-alpha.7",
66
- "@univerjs/docs": "1.0.0-alpha.7"
64
+ "@univerjs-pro/license": "1.0.0-beta.0",
65
+ "@univerjs/core": "1.0.0-beta.0",
66
+ "@univerjs/docs": "1.0.0-beta.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",
70
70
  "typescript": "^6.0.3",
71
71
  "vitest": "^4.1.10",
72
- "@univerjs-infra/shared": "1.0.0-alpha.7"
72
+ "@univerjs-infra/shared": "1.0.0-beta.0"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",