@univerjs-pro/docs-sdt 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4bc094=_0x329f;(function(_0x48e353,_0x2a0df8){const _0x73170c=_0x329f,_0x5f1fe0=_0x48e353();while(!![]){try{const _0x3bca6d=parseInt(_0x73170c(0x138))/0x1*(parseInt(_0x73170c(0x9e))/0x2)+-parseInt(_0x73170c(0xcd))/0x3+-parseInt(_0x73170c(0x12b))/0x4*(parseInt(_0x73170c(0x12e))/0x5)+parseInt(_0x73170c(0x11a))/0x6+-parseInt(_0x73170c(0x10f))/0x7*(-parseInt(_0x73170c(0xe7))/0x8)+-parseInt(_0x73170c(0xab))/0x9+-parseInt(_0x73170c(0xa2))/0xa*(-parseInt(_0x73170c(0x156))/0xb);if(_0x3bca6d===_0x2a0df8)break;else _0x5f1fe0['push'](_0x5f1fe0['shift']());}catch(_0x3d2b2e){_0x5f1fe0['push'](_0x5f1fe0['shift']());}}}(_0x1243,0x297d7),Object[_0x4bc094(0x150)](exports,Symbol[_0x4bc094(0x15b)],{'value':_0x4bc094(0x9f)}));let e=require('@univerjs-pro/docs-table'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');function i(_0x598019){const _0x3b6364=_0x4bc094;let _0x2115f0;do _0x2115f0=String(Math[_0x3b6364(0x110)](Math[_0x3b6364(0x175)]()*0x7fffffff));while(_0x598019[_0x3b6364(0x12a)](_0x2115f0));return _0x598019['add'](_0x2115f0),_0x2115f0;}function a(_0x24e297,_0x2dcddc){const _0x17b2f8=_0x4bc094;var _0x59b3e9,_0x5911a1,_0x3d6604,_0x571174,_0x15d432,_0x360fca;if(!s(_0x24e297,_0x2dcddc))return;let _0x101eec=c(_0x24e297,_0x2dcddc),_0x3962c5=new Set(_0x101eec['map'](_0x51cdc3=>_0x51cdc3[_0x17b2f8(0x14f)])),_0x160912=_0x24e297[_0x17b2f8(0xd0)][_0x17b2f8(0xdc)](_0x2dcddc[_0x17b2f8(0x172)]+0x1)==='\x0d',_0xa6bf5b=_0x2dcddc['endIndex']+0x1+Number(_0x160912),_0xd266c4=t[_0x17b2f8(0xc6)]['deepClone']((0x0,t[_0x17b2f8(0x15f)])(_0x24e297,_0x2dcddc['startIndex'],_0xa6bf5b,!0x1,t[_0x17b2f8(0x178)]['copy']));if(!_0xd266c4[_0x17b2f8(0xd0)])return;let _0x25463d=new Set((_0x59b3e9=_0x24e297[_0x17b2f8(0xb1)])==null?void 0x0:_0x59b3e9[_0x17b2f8(0xb8)](_0x66e9b0=>!_0x3962c5[_0x17b2f8(0x12a)](_0x66e9b0[_0x17b2f8(0x14f)])&&_0x2dcddc[_0x17b2f8(0xf8)]<=_0x66e9b0[_0x17b2f8(0xf8)]&&_0x66e9b0[_0x17b2f8(0x172)]<=_0x2dcddc[_0x17b2f8(0x172)])[_0x17b2f8(0x119)](_0xe3e9e0=>_0xe3e9e0['rangeId'])),_0x4c36fd=new Set((_0x5911a1=_0x24e297[_0x17b2f8(0xb1)])==null?void 0x0:_0x5911a1['filter'](_0x4fbe36=>_0x4fbe36[_0x17b2f8(0xc4)]===t[_0x17b2f8(0xdb)][_0x17b2f8(0x163)])[_0x17b2f8(0x119)](_0x37c1d9=>_0x37c1d9[_0x17b2f8(0xe1)][_0x17b2f8(0xc9)]));_0xd266c4[_0x17b2f8(0xb1)]=(_0x3d6604=_0xd266c4['customRanges'])==null?void 0x0:_0x3d6604[_0x17b2f8(0xb8)](_0x49d3fc=>_0x25463d[_0x17b2f8(0x12a)](_0x49d3fc[_0x17b2f8(0x14f)])),(_0x571174=_0xd266c4[_0x17b2f8(0xb1)])==null||_0x571174[_0x17b2f8(0x117)](_0x16a4d0=>{const _0x15685f=_0x17b2f8;_0x16a4d0['rangeId']=(0x0,t[_0x15685f(0x10b)])(),_0x16a4d0[_0x15685f(0xc4)]===t['CustomRangeType'][_0x15685f(0x163)]&&(_0x16a4d0[_0x15685f(0xe1)][_0x15685f(0xc9)]=i(_0x4c36fd));});let _0x3c1844=new Set((_0x15d432=_0x24e297[_0x17b2f8(0x11d)])==null?void 0x0:_0x15d432[_0x17b2f8(0x119)](_0x4d0923=>_0x4d0923['paragraphId']));(_0x360fca=_0xd266c4[_0x17b2f8(0x11d)])==null||_0x360fca[_0x17b2f8(0x117)](_0x1efdef=>{_0x1efdef['paragraphId']=(0x0,t['createParagraphId'])(_0x3c1844);});let _0x5d9ab8=_0xa6bf5b,_0x57c9a4=new t[(_0x17b2f8(0x14e))]()[_0x17b2f8(0x11f)](_0x5d9ab8)['insert'](_0xd266c4['dataStream'][_0x17b2f8(0xfb)],_0xd266c4)['serialize'](),_0x292397=t[_0x17b2f8(0xc6)][_0x17b2f8(0x99)](_0x24e297);t[_0x17b2f8(0x14e)][_0x17b2f8(0xd6)](_0x292397,_0x57c9a4);for(let _0x5546ee of _0x101eec){var _0x286923;let _0x5198b1=(_0x286923=_0x292397[_0x17b2f8(0xb1)])==null?void 0x0:_0x286923[_0x17b2f8(0xb5)](_0x12a96b=>_0x12a96b[_0x17b2f8(0x14f)]===_0x5546ee['rangeId']);if(!_0x5198b1)return;_0x5198b1[_0x17b2f8(0xf8)]=_0x5546ee[_0x17b2f8(0xf8)],_0x5198b1[_0x17b2f8(0x172)]=_0x5546ee['endIndex']+_0xd266c4['dataStream'][_0x17b2f8(0xfb)];}return{'actions':t[_0x17b2f8(0x14e)][_0x17b2f8(0x12c)](_0x57c9a4,new t['TextX']()[_0x17b2f8(0x139)](_0x101eec[_0x17b2f8(0x119)](_0x2f6b46=>({'rangeId':_0x2f6b46[_0x17b2f8(0x14f)],'range':_0x292397['customRanges'][_0x17b2f8(0xb5)](_0x4b7de1=>_0x4b7de1['rangeId']===_0x2f6b46[_0x17b2f8(0x14f)])})))[_0x17b2f8(0x116)]()),'caretOffset':_0x5d9ab8+_0xd266c4[_0x17b2f8(0xd0)]['length']-Number(_0x160912)};}function o(_0x41b09a,_0x482a9a){const _0x57d314=_0x4bc094;if(!s(_0x41b09a,_0x482a9a))return;let _0x458df8=_0x41b09a['dataStream'][_0x57d314(0xdc)](_0x482a9a[_0x57d314(0x172)]+0x1)==='\x0d',_0x48c1bf=_0x482a9a[_0x57d314(0x172)]+0x1+Number(_0x458df8);return{'actions':t[_0x57d314(0x115)][_0x57d314(0xee)][_0x57d314(0x134)]([{'startOffset':_0x482a9a[_0x57d314(0xf8)],'endOffset':_0x48c1bf,'collapsed':!0x1}],_0x41b09a,0x0,null,!0x1),'caretOffset':_0x482a9a[_0x57d314(0xf8)]};}function s(_0xca459e,_0x5edcea){const _0x827616=_0x4bc094;var _0x52f782;if(_0x5edcea[_0x827616(0xe1)][_0x827616(0x118)]!==_0x827616(0x11e)||[_0x827616(0x157),'cell','table'][_0x827616(0x165)](_0x5edcea['properties'][_0x827616(0xe9)]))return!0x1;let _0x1ba489=u(_0xca459e,_0x5edcea);return!(!_0x1ba489||(_0x52f782=_0x1ba489[_0x827616(0xe1)][_0x827616(0xd8)])!=null&&_0x52f782[_0x827616(0x16d)]);}function c(_0x158fa9,_0x4ea033){const _0x7e31dc=_0x4bc094;let _0x382fbe=_0x158fa9[_0x7e31dc(0xb1)]??[],_0x4609dc=_0x382fbe[_0x7e31dc(0x122)](_0x29ea66=>_0x29ea66['rangeId']===_0x4ea033['rangeId']);return _0x382fbe[_0x7e31dc(0xb8)]((_0x4c63f8,_0x516ff3)=>_0x4c63f8[_0x7e31dc(0xc4)]===t[_0x7e31dc(0xdb)][_0x7e31dc(0x163)]&&_0x4c63f8[_0x7e31dc(0x14f)]!==_0x4ea033['rangeId']&&_0x4c63f8['startIndex']<=_0x4ea033[_0x7e31dc(0xf8)]&&_0x4ea033[_0x7e31dc(0x172)]<=_0x4c63f8[_0x7e31dc(0x172)]&&(_0x4c63f8['startIndex']<_0x4ea033[_0x7e31dc(0xf8)]||_0x4ea033[_0x7e31dc(0x172)]<_0x4c63f8[_0x7e31dc(0x172)]||_0x516ff3>_0x4609dc));}function l(_0x456f4a,_0x4fe1a1,_0x30cb83=[_0x4bc094(0x140)]){const _0x3a4f94=_0x4bc094;var _0x975615;let _0x893957=_0x456f4a[_0x3a4f94(0x140)];if(!_0x893957||_0x4fe1a1['properties'][_0x3a4f94(0x118)]!==_0x3a4f94(0x11e)||_0x4fe1a1['properties'][_0x3a4f94(0xe9)]!=='row')return;let _0x363c6f=u(_0x893957,_0x4fe1a1);if(!(!_0x363c6f||(_0x975615=_0x363c6f['properties'][_0x3a4f94(0xd8)])!=null&&_0x975615[_0x3a4f94(0x16d)]))for(let _0x25d1e0 of _0x893957[_0x3a4f94(0x173)]??[]){if(_0x25d1e0['startIndex']>_0x4fe1a1[_0x3a4f94(0xf8)]||_0x25d1e0['endIndex']<=_0x4fe1a1[_0x3a4f94(0x172)])continue;let _0x6c29fd=(0x0,e['getTableRangeById'])(_0x456f4a,_0x25d1e0[_0x3a4f94(0xb6)]);if(!_0x6c29fd)continue;let _0x2e283a=_0x6c29fd[_0x3a4f94(0x167)][_0x3a4f94(0x122)](_0x1a1970=>_0x1a1970['startOffset']===_0x4fe1a1[_0x3a4f94(0xf8)]),_0x55ba86=_0x6c29fd[_0x3a4f94(0x167)]['findIndex'](_0x570c57=>_0x570c57['endOffset']===_0x4fe1a1[_0x3a4f94(0x172)]);if(_0x2e283a<0x0||_0x55ba86<_0x2e283a)continue;let _0x5b52b1=(0x0,e['buildDeleteTableRowsMutationActions'])(_0x456f4a,_0x25d1e0[_0x3a4f94(0xb6)],_0x2e283a,_0x55ba86,_0x30cb83);if(!_0x5b52b1)return;let _0x361b57=_0x5b52b1['deleteTable']?_0x6c29fd[_0x3a4f94(0xb3)]-_0x6c29fd[_0x3a4f94(0xfd)]:_0x4fe1a1['endIndex']-_0x4fe1a1[_0x3a4f94(0xf8)]+0x1;return{'actions':_0x5b52b1[_0x3a4f94(0x9b)],'caretOffset':Math['max'](0x0,Math[_0x3a4f94(0x154)](_0x4fe1a1[_0x3a4f94(0xf8)],_0x893957[_0x3a4f94(0xd0)][_0x3a4f94(0xfb)]-_0x361b57-0x2))};}}function u(_0x328178,_0x8bffcf){const _0xe24527=_0x4bc094;return c(_0x328178,_0x8bffcf)[_0xe24527(0xb8)](_0x1fe1ab=>_0x1fe1ab['properties'][_0xe24527(0x118)]===_0xe24527(0xd8))['sort']((_0x16b421,_0x2005d)=>_0x16b421[_0xe24527(0x172)]-_0x16b421['startIndex']-(_0x2005d[_0xe24527(0x172)]-_0x2005d[_0xe24527(0xf8)]))[0x0];}async function d(_0x2c3bbd,_0x3fb474,_0x33888d){const _0x461065=_0x4bc094;var _0x14f5c5,_0x1fe852;let _0x414915=_0x2c3bbd[_0x461065(0x113)](t['IUniverInstanceService']),_0x5cd770=_0x3fb474[_0x461065(0x170)]?_0x414915[_0x461065(0x137)](_0x3fb474[_0x461065(0x170)],t[_0x461065(0x16c)][_0x461065(0x149)]):_0x414915[_0x461065(0xd4)](t['UniverInstanceType']['UNIVER_DOC']),_0x46e727=_0x5cd770==null||(_0x14f5c5=_0x5cd770[_0x461065(0xeb)](_0x3fb474[_0x461065(0x9d)]))==null?void 0x0:_0x14f5c5[_0x461065(0x105)](),_0x22903a=_0x46e727==null||(_0x1fe852=_0x46e727[_0x461065(0xb1)])==null?void 0x0:_0x1fe852['find'](_0x34a2da=>_0x34a2da[_0x461065(0xc4)]===t[_0x461065(0xdb)][_0x461065(0x163)]&&_0x34a2da[_0x461065(0x14f)]===_0x3fb474[_0x461065(0x14f)]);if(!_0x5cd770||!_0x46e727||!_0x22903a)return!0x1;let _0x39926a=(0x0,t[_0x461065(0x98)])(_0x5cd770,_0x3fb474[_0x461065(0x9d)]),_0x221a5a,_0x5b3b65;if(_0x22903a['properties'][_0x461065(0xe9)]===_0x461065(0x157)){let _0xd24f5f=!_0x33888d&&l({..._0x5cd770['getSnapshot'](),'body':_0x46e727},_0x22903a,_0x39926a);if(!_0xd24f5f)return!0x1;({actions:_0x221a5a,caretOffset:_0x5b3b65}=_0xd24f5f);}else{let _0x4d5d71=_0x33888d?a(_0x46e727,_0x22903a):o(_0x46e727,_0x22903a);if(!_0x4d5d71)return!0x1;_0x221a5a=t[_0x461065(0xc2)]['getInstance']()[_0x461065(0xd1)](_0x4d5d71[_0x461065(0x9b)],_0x39926a),_0x5b3b65=_0x4d5d71[_0x461065(0xbd)];}let _0x49d36b=_0x33888d?f['id']:p['id'];return!!await _0x2c3bbd[_0x461065(0x113)](t[_0x461065(0x123)])[_0x461065(0x164)](n['RichTextEditingMutation']['id'],{'unitId':_0x5cd770[_0x461065(0x177)](),'historyAction':_0x49d36b,'actions':_0x221a5a,'textRanges':[{'startOffset':_0x5b3b65,'endOffset':_0x5b3b65,'collapsed':!0x0,'segmentId':_0x3fb474['segmentId']}],'debounce':!0x1,'trigger':_0x49d36b});}const f={'id':_0x4bc094(0xbe),'type':t[_0x4bc094(0x151)][_0x4bc094(0xa9)],'handler':(_0x9c6d0,_0x3d8614)=>_0x3d8614!=null&&_0x3d8614[_0x4bc094(0x14f)]?d(_0x9c6d0,_0x3d8614,!0x0):!0x1},p={'id':_0x4bc094(0x143),'type':t[_0x4bc094(0x151)][_0x4bc094(0xa9)],'handler':(_0x30b9bb,_0x458226)=>_0x458226!=null&&_0x458226[_0x4bc094(0x14f)]?d(_0x30b9bb,_0x458226,!0x1):!0x1},m=_0x4bc094(0xbb);function h(_0x17b781,_0x521dd4){const _0x49ca55=_0x4bc094;var _0x5b2b17;return _0x17b781==null||(_0x5b2b17=_0x17b781['customRanges'])==null?void 0x0:_0x5b2b17['filter'](_0x2a855d=>_0x2a855d[_0x49ca55(0xc4)]===t[_0x49ca55(0xdb)]['SDT']&&_0x2a855d[_0x49ca55(0xf8)]<=_0x521dd4&&_0x521dd4<=_0x2a855d['endIndex'])[_0x49ca55(0xad)]((_0x4d38be,_0x84bbce)=>_0x4d38be[_0x49ca55(0x172)]-_0x4d38be[_0x49ca55(0xf8)]-(_0x84bbce[_0x49ca55(0x172)]-_0x84bbce[_0x49ca55(0xf8)]))[0x0];}function g(_0x2345c6){const _0x394973=_0x4bc094;var _0x449869,_0x754788;return((_0x449869=_0x2345c6[_0x394973(0xe1)])==null?void 0x0:_0x449869[_0x394973(0xd3)])===_0x394973(0xf1)||((_0x754788=_0x2345c6[_0x394973(0xe1)])==null?void 0x0:_0x754788[_0x394973(0xd3)])===_0x394973(0xc0);}function _(_0x3e4f1b){const _0x47b46e=_0x4bc094;var _0x460a72,_0x3e6a2c;return((_0x460a72=_0x3e4f1b['properties'])==null?void 0x0:_0x460a72['lock'])===_0x47b46e(0x132)||((_0x3e6a2c=_0x3e4f1b['properties'])==null?void 0x0:_0x3e6a2c['lock'])===_0x47b46e(0xc0);}function v(_0x4fbb36,_0x5eccd0){const _0x57c72a=_0x4bc094;let _0x5ec85f=Number[_0x57c72a(0xa7)](_0x4fbb36??'',0x10);return!/^[\da-f]+$/i['test'](_0x4fbb36??'')||_0x5ec85f<=0x0||_0x5ec85f>0x10ffff||_0x5ec85f>=0xd800&&_0x5ec85f<=0xdfff?_0x5eccd0:String[_0x57c72a(0xe0)](_0x5ec85f);}function y(_0x562fe5,_0x41a0c8=_0x4bc094(0x174),_0xd1f8b){const _0xf6e39d=_0x4bc094;let _0x5cdf97=new Date(_0x562fe5);if(Number['isNaN'](_0x5cdf97[_0xf6e39d(0x127)]()))return _0x562fe5[_0xf6e39d(0xce)](0x0,0xa);let _0x4fddf7=_0x598559=>{const _0x3f418e=_0xf6e39d;try{return new Intl[(_0x3f418e(0x161))](_0xd1f8b||void 0x0,{..._0x598559,'timeZone':_0x3f418e(0xaf)})[_0x3f418e(0xfe)](_0x5cdf97);}catch{return new Intl[(_0x3f418e(0x161))](void 0x0,{..._0x598559,'timeZone':'UTC'})[_0x3f418e(0xfe)](_0x5cdf97);}},_0x2c290d=_0x5cdf97[_0xf6e39d(0x102)](),_0x3da03b=_0x5cdf97[_0xf6e39d(0xa6)]()+0x1,_0x4b683b=_0x5cdf97[_0xf6e39d(0xd7)](),_0x124ff6=!_0xd1f8b||_0xd1f8b[_0xf6e39d(0x155)]()[_0xf6e39d(0xff)]('en'),_0xb52692={'dddd':_0x4fddf7({'weekday':'long'}),'ddd':_0x124ff6?[_0xf6e39d(0xf9),'Mon','Tue','Wed',_0xf6e39d(0xb7),_0xf6e39d(0x12f),'Sat'][_0x5cdf97[_0xf6e39d(0xdf)]()]:_0x4fddf7({'weekday':_0xf6e39d(0x121)}),'MMMM':_0x4fddf7({'month':_0xf6e39d(0x176)}),'MMM':_0x124ff6?[_0xf6e39d(0xaa),_0xf6e39d(0xf7),_0xf6e39d(0x135),_0xf6e39d(0x16a),_0xf6e39d(0x10c),_0xf6e39d(0x128),_0xf6e39d(0xd2),_0xf6e39d(0x146),_0xf6e39d(0x114),_0xf6e39d(0xae),_0xf6e39d(0x13d),_0xf6e39d(0xcc)][_0x3da03b-0x1]:_0x4fddf7({'month':_0xf6e39d(0x121)}),'yyyy':String(_0x2c290d)[_0xf6e39d(0xba)](0x4,'0'),'yy':String(_0x2c290d%0x64)[_0xf6e39d(0xba)](0x2,'0'),'MM':String(_0x3da03b)['padStart'](0x2,'0'),'M':String(_0x3da03b),'dd':String(_0x4b683b)['padStart'](0x2,'0'),'d':String(_0x4b683b)};return _0x41a0c8[_0xf6e39d(0xb4)](/dddd|ddd|MMMM|MMM|yyyy|yy|MM|M|dd|d/g,_0x8cf5b=>_0xb52692[_0x8cf5b]);}function b(_0x3b3435,_0x4cf4c9){const _0x28e398=_0x4bc094;let _0x3c3c2c=_0x3b3435['properties'];if(_0x4cf4c9[_0x28e398(0x147)])return _0x4cf4c9['value'];if(_0x3c3c2c[_0x28e398(0x118)]===_0x28e398(0x10e)){var _0x12b249,_0x54e71f,_0x19ff1d;let _0x45b14e=_0x4cf4c9[_0x28e398(0xe3)]??!((_0x12b249=_0x3c3c2c[_0x28e398(0x10e)])!=null&&_0x12b249[_0x28e398(0xe3)]),_0x1b8227={..._0x3c3c2c['checkbox'],..._0x4cf4c9['checkboxStyle']};return _0x45b14e?v((_0x54e71f=_0x1b8227[_0x28e398(0x10a)])==null?void 0x0:_0x54e71f['value'],'☒'):v((_0x19ff1d=_0x1b8227[_0x28e398(0xb9)])==null?void 0x0:_0x19ff1d[_0x28e398(0xdd)],'☐');}if(_0x3c3c2c[_0x28e398(0x118)]===_0x28e398(0x15e)||_0x3c3c2c['kind']==='comboBox'){var _0x24083d;let _0x5e484b=_0x4cf4c9['value'];return _0x5e484b==null?void 0x0:((_0x24083d=_0x3c3c2c[_0x28e398(0xc1)])==null||(_0x24083d=_0x24083d['find'](_0x37c534=>_0x37c534[_0x28e398(0xdd)]===_0x5e484b))==null?void 0x0:_0x24083d[_0x28e398(0x12d)])??_0x5e484b;}if(_0x3c3c2c['kind']===_0x28e398(0xe2)){var _0x4fd9ca,_0x5b9807;let _0x2f1346=_0x4cf4c9[_0x28e398(0x168)]??_0x4cf4c9[_0x28e398(0xdd)];return _0x2f1346==null?void 0x0:y(_0x2f1346,(_0x4fd9ca=_0x3c3c2c[_0x28e398(0xe2)])==null?void 0x0:_0x4fd9ca[_0x28e398(0xfe)],(_0x5b9807=_0x3c3c2c['date'])==null?void 0x0:_0x5b9807[_0x28e398(0x100)]);}return _0x4cf4c9['value'];}function x(_0x3bf131,_0x4e4267){const _0x3c0788=_0x4bc094;var _0x39f811;let _0x176d36=(0x0,t['merge'])({},t[_0x3c0788(0xc6)][_0x3c0788(0x99)](_0x3bf131[_0x3c0788(0xe1)]),t['Tools'][_0x3c0788(0x99)](_0x4e4267[_0x3c0788(0xe1)]??{}));if((_0x39f811=_0x4e4267[_0x3c0788(0xe1)])!=null&&_0x39f811[_0x3c0788(0xc1)]&&(_0x176d36[_0x3c0788(0xc1)]=t[_0x3c0788(0xc6)]['deepClone'](_0x4e4267[_0x3c0788(0xe1)][_0x3c0788(0xc1)])),_0x176d36['kind']===_0x3c0788(0x10e)){var _0x4245e0;_0x176d36[_0x3c0788(0x10e)]={..._0x176d36['checkbox'],...t[_0x3c0788(0xc6)][_0x3c0788(0x99)](_0x4e4267[_0x3c0788(0xde)]),'checked':_0x4e4267[_0x3c0788(0xe3)]??!((_0x4245e0=_0x176d36['checkbox'])!=null&&_0x4245e0[_0x3c0788(0xe3)])};}else{if(_0x176d36[_0x3c0788(0x118)]===_0x3c0788(0xe2)&&!_0x4e4267['showingPlaceholder']){var _0x357f9c;_0x176d36[_0x3c0788(0xe2)]={..._0x176d36[_0x3c0788(0xe2)],'fullDate':_0x4e4267[_0x3c0788(0x168)]??_0x4e4267[_0x3c0788(0xdd)]??((_0x357f9c=_0x176d36[_0x3c0788(0xe2)])==null?void 0x0:_0x357f9c[_0x3c0788(0x168)])};}}return _0x176d36[_0x3c0788(0x147)]=_0x4e4267[_0x3c0788(0x147)]??!0x1,_0x176d36[_0x3c0788(0x108)]&&={..._0x176d36[_0x3c0788(0x108)],'dirty':!0x0},_0x176d36;}function S(_0x5432d0,_0x425bd7,_0x285b70,_0x15bc34,_0x51bfbe,_0xdbe936){const _0x82c3eb=_0x4bc094;var _0x44a1c7,_0x25b6dc,_0x514e77,_0x26aab9;let _0x313fb4=[..._0x285b70][_0x82c3eb(0xc8)]((_0x1242a2,_0x3d5c24)=>_0x1242a2+_0x3d5c24['length'],0x0),_0x5aab47=(_0x44a1c7=_0x5432d0[_0x82c3eb(0x11c)])==null?void 0x0:_0x44a1c7[_0x82c3eb(0xb5)](_0x3f5595=>_0x3f5595['st']<=_0xdbe936&&_0xdbe936<_0x3f5595['ed']),_0x40f147=_0x15bc34['kind']===_0x82c3eb(0x10e)?(_0x25b6dc=_0x15bc34[_0x82c3eb(0x10e)])!=null&&_0x25b6dc[_0x82c3eb(0xe3)]?(_0x514e77=_0x15bc34['checkbox'][_0x82c3eb(0x10a)])==null?void 0x0:_0x514e77[_0x82c3eb(0x153)]:(_0x26aab9=_0x15bc34[_0x82c3eb(0x10e)])==null||(_0x26aab9=_0x26aab9[_0x82c3eb(0xb9)])==null?void 0x0:_0x26aab9[_0x82c3eb(0x153)]:void 0x0,_0x13c1e9=_0x5aab47!=null&&_0x5aab47['ts']?t[_0x82c3eb(0xc6)]['deepClone'](_0x5aab47['ts']):{};return _0x40f147&&!_0x13c1e9['ff']&&(_0x13c1e9['ff']=_0x40f147),{'dataStream':_0x285b70,'textRuns':_0x5aab47!=null&&_0x5aab47['ts']||_0x40f147?[{'st':0x0,'ed':_0x313fb4,'ts':_0x13c1e9}]:void 0x0,'customRanges':_0x51bfbe?[{'startIndex':0x0,'endIndex':Math[_0x82c3eb(0x9a)](0x0,_0x313fb4-0x1),'rangeId':_0x425bd7[_0x82c3eb(0x14f)],'rangeType':t[_0x82c3eb(0xdb)][_0x82c3eb(0x163)],'wholeEntity':!0x1,'properties':_0x15bc34}]:void 0x0};}function C(_0x355254,_0x588905){const _0x1c9583=_0x4bc094;let _0x4048a8=_0x588905['startIndex'],_0x2c897e=_0x588905['endIndex']+0x1;for(_0x355254['dataStream'][_0x4048a8]===t[_0x1c9583(0xed)][_0x1c9583(0x11b)]&&_0x355254[_0x1c9583(0xd0)][_0x2c897e-0x1]===t[_0x1c9583(0xed)][_0x1c9583(0x130)]&&(_0x4048a8++,_0x2c897e--);_0x4048a8<_0x2c897e&&w(_0x355254['dataStream'][_0x1c9583(0xe5)](_0x4048a8));)_0x4048a8++;for(;_0x2c897e>_0x4048a8&&w(_0x355254[_0x1c9583(0xd0)][_0x1c9583(0xe5)](_0x2c897e-0x1));)_0x2c897e--;return{'startOffset':_0x4048a8,'endOffset':_0x2c897e};}function w(_0x47ad38){return _0x47ad38<0x20&&_0x47ad38!==0x9;}function _0x329f(_0xc31794,_0x5bd2eb){_0xc31794=_0xc31794-0x96;const _0x1243c9=_0x1243();let _0x329fbf=_0x1243c9[_0xc31794];return _0x329fbf;}async function T(_0x1af554,_0x475843,_0x4ab55a,_0x3a2e0f,_0x46ca6f,_0x4c9308,_0x5dda31){const _0x4eb75f=_0x4bc094;let _0x1f117f=O(_0x4ab55a,_0x3a2e0f,_0x46ca6f,_0x4c9308);if(!_0x1f117f)return!0x1;let _0xfdc7f={'unitId':_0x475843[_0x4eb75f(0x177)](),'historyAction':m,'actions':t[_0x4eb75f(0xc2)]['getInstance']()[_0x4eb75f(0xd1)](_0x1f117f[_0x4eb75f(0x9b)],(0x0,t[_0x4eb75f(0x98)])(_0x475843,_0x5dda31)),'textRanges':[{'startOffset':_0x1f117f[_0x4eb75f(0xbd)],'endOffset':_0x1f117f[_0x4eb75f(0xbd)],'collapsed':!0x0,'segmentId':_0x5dda31}],'debounce':!0x1,'trigger':m};return E(_0x475843,_0xfdc7f),!!await _0x1af554[_0x4eb75f(0x113)](t[_0x4eb75f(0x123)])[_0x4eb75f(0x164)](n[_0x4eb75f(0xf5)]['id'],_0xfdc7f);}function E(_0x5cdabe,_0x35dc28){const _0x19d444=_0x4bc094;let _0x27286e=_0x5cdabe[_0x19d444(0x141)](),_0x3b678a=['',...Object['keys'](_0x27286e['headers']??{}),...Object['keys'](_0x27286e[_0x19d444(0x96)]??{}),...Object[_0x19d444(0xf3)](_0x27286e[_0x19d444(0x106)]??{})][_0x19d444(0x10d)](_0x2d3f75=>{const _0x2ed89d=_0x19d444;var _0x209119,_0x33c0cc;let _0x271eda=(_0x209119=_0x5cdabe['getSelfOrHeaderFooterModel'](_0x2d3f75))==null?void 0x0:_0x209119[_0x2ed89d(0x105)]();return(_0x271eda==null||(_0x33c0cc=_0x271eda[_0x2ed89d(0xb1)])==null?void 0x0:_0x33c0cc['filter'](_0x5bf851=>_0x5bf851[_0x2ed89d(0xc4)]===t[_0x2ed89d(0xdb)][_0x2ed89d(0x163)]&&!!(0x0,t[_0x2ed89d(0x145)])(_0x5bf851))['map'](_0x3cb955=>({'segmentId':_0x2d3f75,'range':_0x3cb955,'body':_0x271eda})))??[];});if(_0x3b678a[_0x19d444(0xfb)]<0x2)return;let _0x38f253=!0x1,_0x3aa1bc=new Set(),_0x177c4f=t[_0x19d444(0xcb)][_0x19d444(0xbc)][_0x19d444(0x120)](_0x35dc28['actions']);if(_0x177c4f[_0x19d444(0xc3)](null,_0x21dfa4=>{const _0x401633=_0x19d444;if(_0x21dfa4['et']!==t[_0x401633(0x14e)]['id']||!Array[_0x401633(0x14d)](_0x21dfa4['e']))return;let _0x5dc738=_0x177c4f[_0x401633(0xf0)](),_0x87b737=_0x3b678a[_0x401633(0xb8)](({segmentId:_0x1efb6f})=>{const _0xfb6e90=_0x401633;let _0x4b459c=(0x0,t[_0xfb6e90(0x98)])(_0x5cdabe,_0x1efb6f);return _0x5dc738[_0xfb6e90(0xfb)]===_0x4b459c[_0xfb6e90(0xfb)]&&_0x4b459c['every']((_0x4dab4f,_0x5637a7)=>_0x4dab4f===_0x5dc738[_0x5637a7]);}),_0x4c9705=0x0;for(let _0x32e51b of _0x21dfa4['e'])if(_0x32e51b['t']===t[_0x401633(0x14c)][_0x401633(0x136)]){if(_0x38f253||=_0x87b737['some'](({range:_0x47e9a2})=>_0x4c9705>=_0x47e9a2[_0x401633(0xf8)]&&_0x4c9705<=_0x47e9a2[_0x401633(0x172)]+0x1),_0x32e51b['valueRangeId']){for(let {range:_0x2a47ab}of _0x87b737)_0x2a47ab[_0x401633(0x14f)]===_0x32e51b[_0x401633(0x160)]&&_0x3aa1bc[_0x401633(0x142)](_0x2a47ab);}}else _0x32e51b['t']===t[_0x401633(0x14c)][_0x401633(0x109)]&&(_0x38f253||=_0x87b737[_0x401633(0x159)](({range:_0x355105})=>_0x4c9705<=_0x355105[_0x401633(0x172)]&&_0x4c9705+_0x32e51b[_0x401633(0xa5)]>_0x355105[_0x401633(0xf8)])),_0x4c9705+=_0x32e51b[_0x401633(0xa5)];}),!_0x38f253)return;let _0x144b32=t[_0x19d444(0xc2)][_0x19d444(0xd6)](t[_0x19d444(0xc6)][_0x19d444(0x99)](_0x27286e),_0x35dc28[_0x19d444(0x9b)]);if(!_0x144b32)return;let _0x2a0b5e=_0x1bc455=>{const _0x58be0d=_0x19d444;var _0x52d55c,_0x12a3fc,_0x85efe7;return _0x1bc455?((_0x52d55c=_0x144b32[_0x58be0d(0xea)])==null||(_0x52d55c=_0x52d55c[_0x1bc455])==null?void 0x0:_0x52d55c[_0x58be0d(0x140)])??((_0x12a3fc=_0x144b32[_0x58be0d(0x96)])==null||(_0x12a3fc=_0x12a3fc[_0x1bc455])==null?void 0x0:_0x12a3fc['body'])??((_0x85efe7=_0x144b32[_0x58be0d(0x106)])==null||(_0x85efe7=_0x85efe7[_0x1bc455])==null?void 0x0:_0x85efe7[_0x58be0d(0x140)]):_0x144b32[_0x58be0d(0x140)];},_0x419f93=new Map(),_0x3f5182=new Set();for(let {segmentId:_0x4dddec,range:_0x5d1820,body:_0x20f8fb}of _0x3b678a){var _0x24ce09;let _0x59bea9=_0x2a0b5e(_0x4dddec),_0x3ad95c=_0x59bea9==null||(_0x24ce09=_0x59bea9[_0x19d444(0xb1)])==null?void 0x0:_0x24ce09[_0x19d444(0xb5)](_0x4c6efb=>_0x4c6efb[_0x19d444(0x14f)]===_0x5d1820['rangeId']&&_0x4c6efb['rangeType']===t[_0x19d444(0xdb)][_0x19d444(0x163)]);if(!_0x3ad95c||!_0x59bea9||g(_0x5d1820)||(0x0,t[_0x19d444(0x145)])(_0x3ad95c)!==(0x0,t[_0x19d444(0x145)])(_0x5d1820))continue;let _0x3e171d=(0x0,t[_0x19d444(0x166)])(_0x59bea9,_0x3ad95c);if(_0x3e171d!==void 0x0&&(_0x3aa1bc[_0x19d444(0x12a)](_0x5d1820)||_0x3e171d!==(0x0,t[_0x19d444(0x166)])(_0x20f8fb,_0x5d1820))){let _0x4c4704=(0x0,t['getSdtBindingKey'])(_0x3ad95c);_0x419f93['set'](_0x4c4704,_0x3e171d),_0x3aa1bc['has'](_0x5d1820)&&_0x3f5182[_0x19d444(0x142)](_0x4c4704);}}for(let {segmentId:_0x435468,range:_0x5530ce}of _0x3b678a){var _0x1ae690,_0x114a90;let _0x4393b0=_0x2a0b5e(_0x435468),_0x122ab2=_0x4393b0==null||(_0x1ae690=_0x4393b0[_0x19d444(0xb1)])==null?void 0x0:_0x1ae690[_0x19d444(0xb5)](_0x40cc75=>_0x40cc75[_0x19d444(0x14f)]===_0x5530ce['rangeId']&&_0x40cc75[_0x19d444(0xc4)]===t[_0x19d444(0xdb)][_0x19d444(0x163)]),_0x451c6e=_0x122ab2&&_0x419f93[_0x19d444(0x113)]((0x0,t[_0x19d444(0x145)])(_0x122ab2)??''),_0x318698=!!(_0x122ab2&&_0x3f5182[_0x19d444(0x12a)]((0x0,t[_0x19d444(0x145)])(_0x122ab2)??''));if(!_0x122ab2||!_0x4393b0||_0x451c6e===void 0x0||(0x0,t[_0x19d444(0x166)])(_0x4393b0,_0x122ab2)===_0x451c6e&&(!_0x318698||_0x3aa1bc[_0x19d444(0x12a)](_0x5530ce)))continue;let _0x568d07={'rangeId':_0x122ab2[_0x19d444(0x14f)],'value':_0x451c6e};_0x451c6e===''&&['text','richText','date',_0x19d444(0xf6),_0x19d444(0x15e)][_0x19d444(0x165)](_0x122ab2[_0x19d444(0xe1)][_0x19d444(0x118)])&&(_0x568d07[_0x19d444(0x147)]=!0x0,_0x568d07[_0x19d444(0xdd)]=D(_0x122ab2['properties'])),_0x122ab2[_0x19d444(0xe1)][_0x19d444(0x118)]===_0x19d444(0x10e)&&(_0x568d07[_0x19d444(0xe3)]=_0x451c6e==='true'||_0x451c6e==='1');let _0x11e65c=b(_0x122ab2,_0x568d07),_0x297a4e=_0x11e65c==null?void 0x0:O(_0x4393b0,_0x122ab2,_0x11e65c,_0x568d07,_0x318698||void 0x0);if(!_0x297a4e)continue;let _0x2662ab=t[_0x19d444(0xc2)]['getInstance']()[_0x19d444(0xd1)](_0x297a4e[_0x19d444(0x9b)],(0x0,t['getRichTextEditPath'])(_0x5cdabe,_0x435468));_0x35dc28[_0x19d444(0x9b)]=t[_0x19d444(0xc2)][_0x19d444(0x12c)](_0x35dc28['actions'],_0x2662ab),_0x35dc28[_0x19d444(0x13e)]=(_0x114a90=_0x35dc28[_0x19d444(0x13e)])==null?void 0x0:_0x114a90[_0x19d444(0x119)](_0x422f34=>(_0x422f34[_0x19d444(0x9d)]??_0x35dc28[_0x19d444(0x9d)]??'')===_0x435468?{..._0x422f34,'startOffset':t[_0x19d444(0x14e)][_0x19d444(0xe6)](_0x297a4e[_0x19d444(0x9b)],_0x422f34[_0x19d444(0xfd)]),'endOffset':t[_0x19d444(0x14e)][_0x19d444(0xe6)](_0x297a4e[_0x19d444(0x9b)],_0x422f34[_0x19d444(0xb3)])}:_0x422f34),t['TextX'][_0x19d444(0xd6)](_0x4393b0,_0x297a4e['actions']);}}function _0x1243(){const _0x554551=['sdtLocked','Inject','delete','Mar','INSERT','getUnit','8377rCqVLe','updateCustomRanges','symbol','name','clear','Nov','textRanges','dirty','body','getSnapshot','add','doc.command.delete-repeating-sdt-item','push','getSdtBindingKey','Aug','showingPlaceholder','Injector','UNIVER_DOC','getInstance','buildDuplicateRepeatingItemUpdate','TextXActionType','isArray','TextX','rangeId','defineProperty','CommandType','IUniverInstanceService','font','min','toLowerCase','56925dEfvVd','row','text','some','updateCustomRangeProperties','toStringTag','DependentOn','set','dropDownList','getBodySliceForTextXAction','valueRangeId','DateTimeFormat','getSdtPlaceholderText','SDT','executeCommand','includes','getSdtBindingValue','rows','fullDate','isSdtWrapperLocked','Apr','registerPluginResource','UniverInstanceType','doNotAllowInsertDelete','generateSdtOoxmlId','_commandService','unitId','UniverDocsSdtPlugin','endIndex','tables','yyyy-MM-dd','random','long','getUnitId','SliceBodyType','footers','buildRestoredSdtMetadata','getRichTextEditPath','deepClone','max','actions','constructor','segmentId','42XCgvoY','Module','function','string','420zhqmTM','UniverLicensePlugin','disposeWithMe','len','getUTCMonth','parseInt','RETAIN','COMMAND','Jan','826263OSmshY','pluginName','sort','Oct','UTC','DOCS_SDT_PLUGIN','customRanges','toPrimitive','endOffset','replace','find','tableId','Thu','filter','uncheckedState','padStart','doc.command.update-sdt-value','type','caretOffset','doc.command.duplicate-repeating-sdt-item','registerCommand','sdtContentLocked','listItems','JSONX','traverse','rangeType','Plugin','Tools','buildDeleteRepeatingItemUpdate','reduce','ooxmlId','merge','JSON1','Dec','852378oeYzzV','slice','UpdateSdtValueCommand','dataStream','editOp','Jul','lock','getCurrentUnitOfType','version','apply','getUTCDate','repeatingSection','IResourceManagerService','doc.command.remove-sdt','CustomRangeType','charAt','value','checkboxStyle','getUTCDay','fromCodePoint','properties','date','checked','@univerjs-pro/docs-sdt','charCodeAt','transformPosition','1960kVfEHJ','buildSdtValueUpdate','placement','headers','getSelfOrHeaderFooterModel','_config','DataStreamTreeTokenType','selection','DeleteRepeatingSdtItemCommand','getPath','contentLocked','prototype','keys','call','RichTextEditingMutation','comboBox','Feb','startIndex','Sun','isSdtContentLocked','length','UniverDocsPlugin','startOffset','format','startsWith','locale','decorate','getUTCFullYear','iterator','onStarting','getBody','notes','packageName','dataBinding','DELETE','checkedState','generateRandomId','May','flatMap','checkbox','2030mUmBRW','floor','IConfigService','DOC_SDT_CUSTOM_XML_PLUGIN','get','Sep','BuildTextUtils','serialize','forEach','kind','map','1619292DYjTvc','CUSTOM_RANGE_START','textRuns','paragraphs','repeatingSectionItem','retain','readCursor','short','findIndex','ICommandService','1.2.0','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_injector','getTime','Jun','object','has','753292VQCPkY','compose','displayText','5fiNsJH','Fri','CUSTOM_RANGE_END','setConfig'];_0x1243=function(){return _0x554551;};return _0x1243();}function D(_0x277ae1){const _0x1eb68d=_0x4bc094;let {placeholder:_0x23d1b7,placeholderDocPart:_0x5f152b}=_0x277ae1;return(_0x23d1b7===(_0x5f152b==null?void 0x0:_0x5f152b[_0x1eb68d(0x13b)])?void 0x0:_0x23d1b7)??(_0x5f152b==null?void 0x0:_0x5f152b[_0x1eb68d(0x158)])??'​';}function O(_0x548d43,_0x962e52,_0x4f173c,_0x3b35d6,_0x203566){const _0x438349=_0x4bc094;let _0x533c7c=x(_0x962e52,_0x3b35d6),_0x560e3a=C(_0x548d43,_0x962e52),_0x3365b7=_0x560e3a[_0x438349(0xfd)]>_0x962e52[_0x438349(0xf8)]||_0x560e3a['endOffset']<_0x962e52[_0x438349(0x172)]+0x1,_0x17fc84=S(_0x548d43,_0x962e52,_0x4f173c,_0x533c7c,!_0x3365b7,_0x560e3a[_0x438349(0xfd)]),_0x72cdc6={'startOffset':_0x560e3a['startOffset'],'endOffset':_0x560e3a['endOffset'],'collapsed':!0x1},_0x25959e=t[_0x438349(0x115)][_0x438349(0xee)][_0x438349(0x134)]([_0x72cdc6],_0x548d43,0x0,_0x17fc84);if(_0x3365b7){var _0x32dde2,_0x205676;let _0x2a5c10=t[_0x438349(0xc6)][_0x438349(0x99)](_0x548d43);t[_0x438349(0x14e)]['apply'](_0x2a5c10,_0x25959e);let _0x5f1db2=(_0x32dde2=_0x2a5c10[_0x438349(0xb1)])==null?void 0x0:_0x32dde2['find'](_0x589977=>_0x589977[_0x438349(0xc4)]===t['CustomRangeType']['SDT']&&_0x589977[_0x438349(0x14f)]===_0x962e52[_0x438349(0x14f)]);if(!_0x5f1db2)return;let _0xf68250=_0x962e52['startIndex'],_0x4e374c=_0x962e52['endIndex']+_0x17fc84[_0x438349(0xd0)][_0x438349(0xfb)]-(_0x560e3a['endOffset']-_0x560e3a[_0x438349(0xfd)]),_0x292bbf=(_0x205676=_0x2a5c10[_0x438349(0xb1)])==null?void 0x0:_0x205676['filter'](_0x1c8461=>_0xf68250<=_0x1c8461[_0x438349(0xf8)]&&_0x1c8461[_0x438349(0x172)]<=_0x4e374c)[_0x438349(0x119)](_0x53c555=>({...t['Tools']['deepClone'](_0x53c555),'startIndex':_0x53c555[_0x438349(0x14f)]===_0x962e52['rangeId']?0x0:_0x53c555[_0x438349(0xf8)]-_0xf68250,'endIndex':_0x53c555[_0x438349(0x14f)]===_0x962e52[_0x438349(0x14f)]?_0x4e374c-_0xf68250:_0x53c555[_0x438349(0x172)]-_0xf68250,'properties':_0x53c555[_0x438349(0x14f)]===_0x5f1db2[_0x438349(0x14f)]?_0x533c7c:t[_0x438349(0xc6)][_0x438349(0x99)](_0x53c555['properties'])})),_0x4c8556=new t[(_0x438349(0x14e))]()[_0x438349(0x11f)](_0xf68250)[_0x438349(0x11f)](_0x4e374c-_0xf68250+0x1,{'dataStream':'','customRanges':_0x292bbf});_0x25959e=t[_0x438349(0x14e)][_0x438349(0x12c)](_0x25959e,_0x4c8556[_0x438349(0x116)]());}if((_0x203566??[_0x438349(0x10e),_0x438349(0xe2),_0x438349(0x15e),_0x438349(0xf6)]['includes'](_0x533c7c[_0x438349(0x118)]))&&(_0x25959e=_0x25959e[_0x438349(0x119)](_0x508633=>_0x508633['t']===t[_0x438349(0x14c)][_0x438349(0xa8)]?_0x508633:{..._0x508633,'valueRangeId':_0x962e52[_0x438349(0x14f)]})),_0x3b35d6['properties']){let _0x1413a7=(0x0,t[_0x438349(0xca)])({},t['Tools'][_0x438349(0x99)](_0x962e52[_0x438349(0xe1)]),t[_0x438349(0xc6)][_0x438349(0x99)](_0x3b35d6[_0x438349(0xe1)]));_0x3b35d6[_0x438349(0xe1)][_0x438349(0xc1)]&&(_0x1413a7['listItems']=t[_0x438349(0xc6)][_0x438349(0x99)](_0x3b35d6[_0x438349(0xe1)]['listItems']));let _0x542db5={..._0x962e52,'endIndex':_0x962e52[_0x438349(0x172)]+_0x17fc84[_0x438349(0xd0)][_0x438349(0xfb)]-(_0x560e3a['endOffset']-_0x560e3a[_0x438349(0xfd)])};_0x25959e[_0x438349(0x144)](...new t[(_0x438349(0x14e))]()[_0x438349(0x15a)](_0x542db5,_0x1413a7)[_0x438349(0x116)]());}return{'actions':_0x25959e,'caretOffset':_0x560e3a['startOffset']+_0x17fc84[_0x438349(0xd0)][_0x438349(0xfb)]};}const k={'id':m,'type':t[_0x4bc094(0x151)]['COMMAND'],async 'handler'(_0x5a15ce,_0x5b4eaf){const _0x5aec99=_0x4bc094;var _0x5afed9,_0x41e0b2;if(!(_0x5b4eaf!=null&&_0x5b4eaf['rangeId']))return!0x1;let _0x5f3fe1=_0x5a15ce[_0x5aec99(0x113)](t[_0x5aec99(0x152)]),_0x553996=_0x5b4eaf[_0x5aec99(0x170)]?_0x5f3fe1[_0x5aec99(0x137)](_0x5b4eaf[_0x5aec99(0x170)],t[_0x5aec99(0x16c)][_0x5aec99(0x149)]):_0x5f3fe1[_0x5aec99(0xd4)](t[_0x5aec99(0x16c)][_0x5aec99(0x149)]),_0x3d9d33=_0x553996==null||(_0x5afed9=_0x553996[_0x5aec99(0xeb)](_0x5b4eaf[_0x5aec99(0x9d)]))==null?void 0x0:_0x5afed9[_0x5aec99(0x105)](),_0x557a4b=_0x3d9d33==null||(_0x41e0b2=_0x3d9d33[_0x5aec99(0xb1)])==null?void 0x0:_0x41e0b2[_0x5aec99(0xb5)](_0x1c3734=>_0x1c3734[_0x5aec99(0xc4)]===t[_0x5aec99(0xdb)][_0x5aec99(0x163)]&&_0x1c3734[_0x5aec99(0x14f)]===_0x5b4eaf['rangeId']);if(!_0x553996||!_0x3d9d33||!_0x557a4b||g(_0x557a4b))return!0x1;let _0x2b10d1=b(_0x557a4b,_0x5b4eaf);return _0x2b10d1!=null&&T(_0x5a15ce,_0x553996,_0x3d9d33,_0x557a4b,_0x2b10d1,_0x5b4eaf,_0x5b4eaf[_0x5aec99(0x9d)]);}};function A(_0x3c67ab,_0xa6402c){const _0x2639bb=_0x4bc094;if(_0xa6402c<=_0x3c67ab[_0x2639bb(0xf8)])return;let _0xcdfaa=t[_0x2639bb(0xc6)][_0x2639bb(0x99)](_0x3c67ab);return _0xcdfaa[_0x2639bb(0xf8)]=0x0,_0xcdfaa['endIndex']=_0xa6402c-_0x3c67ab[_0x2639bb(0xf8)]-0x1,_0xcdfaa[_0x2639bb(0xe1)]['showingPlaceholder']=!0x1,_0xcdfaa[_0x2639bb(0xe1)][_0x2639bb(0x108)]&&(_0xcdfaa[_0x2639bb(0xe1)]['dataBinding'][_0x2639bb(0x13f)]=!0x0),new t[(_0x2639bb(0x14e))]()[_0x2639bb(0x11f)](_0x3c67ab[_0x2639bb(0xf8)])[_0x2639bb(0x11f)](_0xa6402c-_0x3c67ab[_0x2639bb(0xf8)],{'dataStream':'','customRanges':[_0xcdfaa]})[_0x2639bb(0x116)]();}function j(_0x3c0a18,_0x3f0ef0,_0x2bde6c,_0x39ef86=!0x1){const _0x8cf476=_0x4bc094;var _0x31f261;let _0xc51bbd=_0x2bde6c?(0x0,t[_0x8cf476(0xca)])({},t[_0x8cf476(0xc6)][_0x8cf476(0x99)](_0x3f0ef0[_0x8cf476(0xe1)]),t[_0x8cf476(0xc6)][_0x8cf476(0x99)](_0x2bde6c)):_0x3f0ef0[_0x8cf476(0xe1)];_0x2bde6c!=null&&_0x2bde6c[_0x8cf476(0xc1)]&&(_0xc51bbd[_0x8cf476(0xc1)]=t[_0x8cf476(0xc6)]['deepClone'](_0x2bde6c[_0x8cf476(0xc1)]));let _0x3c2da2=new t['TextX']();return _0x39ef86&&_0x3c0a18[_0x8cf476(0xd0)][_0x3f0ef0[_0x8cf476(0xf8)]]===t['DataStreamTreeTokenType']['CUSTOM_RANGE_START']&&_0x3c0a18[_0x8cf476(0xd0)][_0x3f0ef0[_0x8cf476(0x172)]]===t[_0x8cf476(0xed)][_0x8cf476(0x130)]&&!((_0x31f261=_0x3c0a18['customRanges'])!=null&&_0x31f261['some'](_0x3a5bf3=>_0x3a5bf3[_0x8cf476(0x14f)]!==_0x3f0ef0[_0x8cf476(0x14f)]&&_0x3a5bf3[_0x8cf476(0xf8)]===_0x3f0ef0['startIndex']&&_0x3a5bf3[_0x8cf476(0x172)]===_0x3f0ef0[_0x8cf476(0x172)]))&&_0x3c2da2[_0x8cf476(0x11f)](_0x3f0ef0[_0x8cf476(0xf8)])[_0x8cf476(0x134)](0x1)[_0x8cf476(0x11f)](_0x3f0ef0['endIndex']-_0x3f0ef0[_0x8cf476(0xf8)]-0x1)[_0x8cf476(0x134)](0x1),_0x39ef86?_0x3c2da2['updateCustomRanges']([{'rangeId':_0x3f0ef0[_0x8cf476(0x14f)],'range':null}]):_0x3c2da2['updateCustomRangeProperties'](_0x3f0ef0,_0xc51bbd),{'actions':_0x3c2da2[_0x8cf476(0x116)](),'caretOffset':_0x3f0ef0[_0x8cf476(0xf8)]};}async function M(_0x543e33,_0x111723,_0x2dbfc1){const _0xc25448=_0x4bc094;var _0x3b914c,_0x2c970c;let _0x8eaa3c=_0x543e33[_0xc25448(0x113)](t[_0xc25448(0x152)]),_0x3a62fc=_0x111723[_0xc25448(0x170)]?_0x8eaa3c['getUnit'](_0x111723[_0xc25448(0x170)],t['UniverInstanceType'][_0xc25448(0x149)]):_0x8eaa3c[_0xc25448(0xd4)](t[_0xc25448(0x16c)][_0xc25448(0x149)]),_0x25c09e=_0x3a62fc==null||(_0x3b914c=_0x3a62fc[_0xc25448(0xeb)](_0x111723['segmentId']))==null?void 0x0:_0x3b914c[_0xc25448(0x105)](),_0x4155de=_0x25c09e==null||(_0x2c970c=_0x25c09e[_0xc25448(0xb1)])==null?void 0x0:_0x2c970c['find'](_0x15e65e=>_0x15e65e['rangeType']===t[_0xc25448(0xdb)]['SDT']&&_0x15e65e[_0xc25448(0x14f)]===_0x111723['rangeId']);if(!_0x3a62fc||!_0x25c09e||!_0x4155de||_0x2dbfc1&&_(_0x4155de))return!0x1;let _0xfe2569=j(_0x25c09e,_0x4155de,_0xc25448(0xe1)in _0x111723?_0x111723[_0xc25448(0xe1)]:void 0x0,_0x2dbfc1);return!_0xfe2569[_0xc25448(0x9b)][_0xc25448(0xfb)]||!!await _0x543e33[_0xc25448(0x113)](t[_0xc25448(0x123)])['executeCommand'](n[_0xc25448(0xf5)]['id'],{'unitId':_0x3a62fc['getUnitId'](),'historyAction':_0x2dbfc1?P['id']:N['id'],'actions':t[_0xc25448(0xc2)][_0xc25448(0x14a)]()[_0xc25448(0xd1)](_0xfe2569[_0xc25448(0x9b)],(0x0,t[_0xc25448(0x98)])(_0x3a62fc,_0x111723[_0xc25448(0x9d)])),'textRanges':[{'startOffset':_0xfe2569[_0xc25448(0xbd)],'endOffset':_0xfe2569[_0xc25448(0xbd)],'collapsed':!0x0,'segmentId':_0x111723['segmentId']}],'debounce':!0x1,'trigger':_0x2dbfc1?P['id']:N['id']});}const N={'id':'doc.command.update-sdt-properties','type':t[_0x4bc094(0x151)][_0x4bc094(0xa9)],'handler':(_0x55af55,_0x8badc5)=>_0x8badc5!=null&&_0x8badc5[_0x4bc094(0x14f)]&&_0x8badc5[_0x4bc094(0xe1)]?M(_0x55af55,_0x8badc5,!0x1):!0x1},P={'id':_0x4bc094(0xda),'type':t[_0x4bc094(0x151)][_0x4bc094(0xa9)],'handler':(_0x45b07c,_0x4e3d61)=>_0x4e3d61!=null&&_0x4e3d61[_0x4bc094(0x14f)]?M(_0x45b07c,_0x4e3d61,!0x0):!0x1};var F=_0x4bc094(0xe4),I=_0x4bc094(0x124);const L={};function R(_0x3feee2,_0x57f98c){return function(_0x56d23c,_0x415837){_0x57f98c(_0x56d23c,_0x415837,_0x3feee2);};}function z(_0x2a627c,_0x3ea526,_0x2954f7,_0x4e4b53){const _0x4ae27f=_0x4bc094;var _0x27acd0=arguments[_0x4ae27f(0xfb)],_0x1271af=_0x27acd0<0x3?_0x3ea526:_0x4e4b53===null?_0x4e4b53=Object['getOwnPropertyDescriptor'](_0x3ea526,_0x2954f7):_0x4e4b53,_0x367b81;if(typeof Reflect==_0x4ae27f(0x129)&&typeof Reflect[_0x4ae27f(0x101)]==_0x4ae27f(0xa0))_0x1271af=Reflect[_0x4ae27f(0x101)](_0x2a627c,_0x3ea526,_0x2954f7,_0x4e4b53);else{for(var _0x355094=_0x2a627c[_0x4ae27f(0xfb)]-0x1;_0x355094>=0x0;_0x355094--)(_0x367b81=_0x2a627c[_0x355094])&&(_0x1271af=(_0x27acd0<0x3?_0x367b81(_0x1271af):_0x27acd0>0x3?_0x367b81(_0x3ea526,_0x2954f7,_0x1271af):_0x367b81(_0x3ea526,_0x2954f7))||_0x1271af);}return _0x27acd0>0x3&&_0x1271af&&Object[_0x4ae27f(0x150)](_0x3ea526,_0x2954f7,_0x1271af),_0x1271af;}function B(_0x1dada8){'@babel/helpers - typeof';const _0x36b26b=_0x4bc094;return B=typeof Symbol==_0x36b26b(0xa0)&&typeof Symbol[_0x36b26b(0x103)]==_0x36b26b(0x13a)?function(_0x42b71b){return typeof _0x42b71b;}:function(_0x397d6e){const _0x36ec5e=_0x36b26b;return _0x397d6e&&typeof Symbol=='function'&&_0x397d6e[_0x36ec5e(0x9c)]===Symbol&&_0x397d6e!==Symbol[_0x36ec5e(0xf2)]?_0x36ec5e(0x13a):typeof _0x397d6e;},B(_0x1dada8);}function V(_0xc44ee0,_0x50bceb){const _0x4c0508=_0x4bc094;if(B(_0xc44ee0)!='object'||!_0xc44ee0)return _0xc44ee0;var _0x45e4=_0xc44ee0[Symbol[_0x4c0508(0xb2)]];if(_0x45e4!==void 0x0){var _0x508faf=_0x45e4[_0x4c0508(0xf4)](_0xc44ee0,_0x50bceb||'default');if(B(_0x508faf)!=_0x4c0508(0x129))return _0x508faf;throw TypeError(_0x4c0508(0x125));}return(_0x50bceb===_0x4c0508(0xa1)?String:Number)(_0xc44ee0);}function H(_0x1cc891){const _0x258069=_0x4bc094;var _0x259cce=V(_0x1cc891,_0x258069(0xa1));return B(_0x259cce)==_0x258069(0x13a)?_0x259cce:_0x259cce+'';}function U(_0x31f1a6,_0x2081ca,_0x37dd36){const _0x10bda7=_0x4bc094;return(_0x2081ca=H(_0x2081ca))in _0x31f1a6?Object[_0x10bda7(0x150)](_0x31f1a6,_0x2081ca,{'value':_0x37dd36,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x31f1a6[_0x2081ca]=_0x37dd36,_0x31f1a6;}let W=class extends t[_0x4bc094(0xc5)]{constructor(_0x18efa0=L,_0x48faed,_0x52c68c,_0x306b51){const _0x3b6e6b=_0x4bc094;super(),this['_config']=_0x18efa0,this[_0x3b6e6b(0x126)]=_0x48faed,this['_configService']=_0x52c68c,this[_0x3b6e6b(0x16f)]=_0x306b51;let {..._0x4d782e}=(0x0,t[_0x3b6e6b(0xca)])({},L,this[_0x3b6e6b(0xec)]);this['_configService'][_0x3b6e6b(0x131)]('docs-sdt.config',_0x4d782e);}[_0x4bc094(0x104)](){const _0x413d81=_0x4bc094;this['disposeWithMe'](this[_0x413d81(0x16f)]['registerCommand'](k)),this[_0x413d81(0xa4)](this[_0x413d81(0x16f)][_0x413d81(0xbf)](N)),this[_0x413d81(0xa4)](this['_commandService'][_0x413d81(0xbf)](P)),this['disposeWithMe'](this[_0x413d81(0x16f)][_0x413d81(0xbf)](f)),this[_0x413d81(0xa4)](this[_0x413d81(0x16f)]['registerCommand'](p));let _0x43b4d0=new Map();this[_0x413d81(0xa4)]({'dispose':()=>_0x43b4d0[_0x413d81(0x13c)]()}),this['disposeWithMe'](this[_0x413d81(0x126)][_0x413d81(0x113)](t[_0x413d81(0xd9)])[_0x413d81(0x16b)]({'pluginName':_0x413d81(0x112),'businesses':[t[_0x413d81(0x16c)][_0x413d81(0x149)]],'parseJson':_0x1f46a5=>_0x1f46a5,'onLoad':(_0x2b5886,_0x436d75)=>{const _0x3d9a02=_0x413d81;_0x43b4d0[_0x3d9a02(0x15d)](_0x2b5886,_0x436d75);},'onUnLoad':_0x462299=>{const _0x1f0b58=_0x413d81;_0x43b4d0[_0x1f0b58(0x134)](_0x462299);},'toJson':_0x2ee13b=>_0x43b4d0[_0x413d81(0x113)](_0x2ee13b)??''}));}};U(W,_0x4bc094(0xac),_0x4bc094(0xb0)),U(W,_0x4bc094(0x107),F),U(W,_0x4bc094(0xd5),I),U(W,_0x4bc094(0xbc),t[_0x4bc094(0x16c)][_0x4bc094(0x149)]),W=z([(0x0,t[_0x4bc094(0x15c)])(r[_0x4bc094(0xa3)],n[_0x4bc094(0xfc)]),R(0x1,(0x0,t[_0x4bc094(0x133)])(t[_0x4bc094(0x148)])),R(0x2,t[_0x4bc094(0x111)]),R(0x3,t[_0x4bc094(0x123)])],W),exports[_0x4bc094(0xef)]=p,exports['DuplicateRepeatingSdtItemCommand']=f,exports['RemoveSdtCommand']=P,Object[_0x4bc094(0x150)](exports,_0x4bc094(0x171),{'enumerable':!0x0,'get':function(){return W;}}),exports['UpdateSdtPropertiesCommand']=N,exports[_0x4bc094(0xcf)]=k,exports[_0x4bc094(0xc7)]=o,exports[_0x4bc094(0x14b)]=a,exports[_0x4bc094(0x97)]=A,exports['buildSdtMetadataUpdate']=j,exports[_0x4bc094(0xe8)]=O,exports['findSdtAtOffset']=h,exports[_0x4bc094(0x16e)]=i,exports['getSdtDisplayValue']=b,exports[_0x4bc094(0x162)]=D,exports['getSdtVisibleContentRange']=C,exports[_0x4bc094(0xfa)]=g,exports[_0x4bc094(0x169)]=_,exports['synchronizeSdtBindings']=E;
1
+ const _0x59c2c2=_0x4ada;(function(_0xfd350,_0x18d17d){const _0x2fb87a=_0x4ada,_0x2ca92a=_0xfd350();while(!![]){try{const _0x42ebab=parseInt(_0x2fb87a(0x19a))/0x1*(parseInt(_0x2fb87a(0x250))/0x2)+parseInt(_0x2fb87a(0x236))/0x3+-parseInt(_0x2fb87a(0x1e6))/0x4*(-parseInt(_0x2fb87a(0x1e1))/0x5)+parseInt(_0x2fb87a(0x248))/0x6+parseInt(_0x2fb87a(0x1d4))/0x7+parseInt(_0x2fb87a(0x1b4))/0x8*(parseInt(_0x2fb87a(0x1e5))/0x9)+-parseInt(_0x2fb87a(0x19b))/0xa;if(_0x42ebab===_0x18d17d)break;else _0x2ca92a['push'](_0x2ca92a['shift']());}catch(_0x24806b){_0x2ca92a['push'](_0x2ca92a['shift']());}}}(_0x3d6a,0x3caa3),Object['defineProperty'](exports,Symbol[_0x59c2c2(0x17b)],{'value':_0x59c2c2(0x18f)}));let e=require('@univerjs-pro/docs-table'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');function i(_0x1ca4d3){const _0x3499c8=_0x59c2c2;let _0x1d23de;do _0x1d23de=String(Math[_0x3499c8(0x1f1)](Math[_0x3499c8(0x19e)]()*0x7fffffff));while(_0x1ca4d3[_0x3499c8(0x205)](_0x1d23de));return _0x1ca4d3[_0x3499c8(0x17c)](_0x1d23de),_0x1d23de;}function a(_0x504182,_0x3c903e){const _0x2f8a1d=_0x59c2c2;var _0x1d66f6,_0x33aeb3,_0x464aed,_0x3d5dd7,_0x86fa31,_0x2d30e6;if(!s(_0x504182,_0x3c903e))return;let _0x2d303b=c(_0x504182,_0x3c903e),_0x1fe41a=new Set(_0x2d303b[_0x2f8a1d(0x1a8)](_0x267549=>_0x267549[_0x2f8a1d(0x191)])),_0x37b9c1=_0x504182[_0x2f8a1d(0x230)]['charAt'](_0x3c903e[_0x2f8a1d(0x1d8)]+0x1)==='\x0d',_0x49eb10=_0x3c903e['endIndex']+0x1+Number(_0x37b9c1),_0x101a72=t[_0x2f8a1d(0x228)][_0x2f8a1d(0x220)]((0x0,t[_0x2f8a1d(0x20b)])(_0x504182,_0x3c903e[_0x2f8a1d(0x1fc)],_0x49eb10,!0x1,t[_0x2f8a1d(0x22b)][_0x2f8a1d(0x240)]));if(!_0x101a72['dataStream'])return;let _0x1b12f3=new Set((_0x1d66f6=_0x504182[_0x2f8a1d(0x204)])==null?void 0x0:_0x1d66f6[_0x2f8a1d(0x20a)](_0xea3c0f=>!_0x1fe41a[_0x2f8a1d(0x205)](_0xea3c0f[_0x2f8a1d(0x191)])&&_0x3c903e['startIndex']<=_0xea3c0f['startIndex']&&_0xea3c0f[_0x2f8a1d(0x1d8)]<=_0x3c903e[_0x2f8a1d(0x1d8)])[_0x2f8a1d(0x1a8)](_0x7c1dcd=>_0x7c1dcd['rangeId'])),_0x5083fa=new Set((_0x33aeb3=_0x504182['customRanges'])==null?void 0x0:_0x33aeb3[_0x2f8a1d(0x20a)](_0x3e6dfd=>_0x3e6dfd[_0x2f8a1d(0x1a7)]===t[_0x2f8a1d(0x1ee)][_0x2f8a1d(0x21c)])[_0x2f8a1d(0x1a8)](_0x4f3ab5=>_0x4f3ab5[_0x2f8a1d(0x17f)]['ooxmlId']));_0x101a72[_0x2f8a1d(0x204)]=(_0x464aed=_0x101a72[_0x2f8a1d(0x204)])==null?void 0x0:_0x464aed[_0x2f8a1d(0x20a)](_0x1c4e32=>_0x1b12f3['has'](_0x1c4e32[_0x2f8a1d(0x191)])),(_0x3d5dd7=_0x101a72[_0x2f8a1d(0x204)])==null||_0x3d5dd7['forEach'](_0x4cd215=>{const _0x3a8f69=_0x2f8a1d;_0x4cd215['rangeId']=(0x0,t[_0x3a8f69(0x219)])(),_0x4cd215[_0x3a8f69(0x1a7)]===t['CustomRangeType'][_0x3a8f69(0x21c)]&&(_0x4cd215[_0x3a8f69(0x17f)][_0x3a8f69(0x1f8)]=i(_0x5083fa));});let _0x2e0d9a=new Set((_0x86fa31=_0x504182[_0x2f8a1d(0x1bd)])==null?void 0x0:_0x86fa31[_0x2f8a1d(0x1a8)](_0x252985=>_0x252985['paragraphId']));(_0x2d30e6=_0x101a72[_0x2f8a1d(0x1bd)])==null||_0x2d30e6[_0x2f8a1d(0x232)](_0x176506=>{const _0x3a30aa=_0x2f8a1d;_0x176506[_0x3a30aa(0x235)]=(0x0,t['createParagraphId'])(_0x2e0d9a);});let _0x4b2941=_0x49eb10,_0x2999d6=new t[(_0x2f8a1d(0x1ae))]()[_0x2f8a1d(0x1e4)](_0x4b2941)[_0x2f8a1d(0x254)](_0x101a72[_0x2f8a1d(0x230)][_0x2f8a1d(0x1ff)],_0x101a72)[_0x2f8a1d(0x1e3)](),_0x44f2c2=t['Tools']['deepClone'](_0x504182);t['TextX'][_0x2f8a1d(0x1f4)](_0x44f2c2,_0x2999d6);for(let _0x408657 of _0x2d303b){var _0x2ab4c0;let _0x56cc37=(_0x2ab4c0=_0x44f2c2[_0x2f8a1d(0x204)])==null?void 0x0:_0x2ab4c0['find'](_0x2ef26a=>_0x2ef26a[_0x2f8a1d(0x191)]===_0x408657[_0x2f8a1d(0x191)]);if(!_0x56cc37)return;_0x56cc37[_0x2f8a1d(0x1fc)]=_0x408657[_0x2f8a1d(0x1fc)],_0x56cc37['endIndex']=_0x408657[_0x2f8a1d(0x1d8)]+_0x101a72[_0x2f8a1d(0x230)][_0x2f8a1d(0x1ff)];}return{'actions':t['TextX'][_0x2f8a1d(0x229)](_0x2999d6,new t[(_0x2f8a1d(0x1ae))]()[_0x2f8a1d(0x1ec)](_0x2d303b[_0x2f8a1d(0x1a8)](_0x38a88e=>({'rangeId':_0x38a88e[_0x2f8a1d(0x191)],'range':_0x44f2c2[_0x2f8a1d(0x204)]['find'](_0x94ca09=>_0x94ca09[_0x2f8a1d(0x191)]===_0x38a88e[_0x2f8a1d(0x191)])})))[_0x2f8a1d(0x1e3)]()),'caretOffset':_0x4b2941+_0x101a72[_0x2f8a1d(0x230)][_0x2f8a1d(0x1ff)]-Number(_0x37b9c1)};}function o(_0x5f1db0,_0x523d74){const _0x9d3176=_0x59c2c2;if(!s(_0x5f1db0,_0x523d74))return;let _0x187479=_0x5f1db0[_0x9d3176(0x230)][_0x9d3176(0x192)](_0x523d74[_0x9d3176(0x1d8)]+0x1)==='\x0d',_0x306baf=_0x523d74[_0x9d3176(0x1d8)]+0x1+Number(_0x187479);return{'actions':t[_0x9d3176(0x1ed)]['selection']['delete']([{'startOffset':_0x523d74[_0x9d3176(0x1fc)],'endOffset':_0x306baf,'collapsed':!0x1}],_0x5f1db0,0x0,null,!0x1),'caretOffset':_0x523d74[_0x9d3176(0x1fc)]};}function s(_0x104bc6,_0x4a6859){const _0xe45cb6=_0x59c2c2;var _0x20f5a8;if(_0x4a6859['properties'][_0xe45cb6(0x225)]!==_0xe45cb6(0x189)||[_0xe45cb6(0x1cc),_0xe45cb6(0x1ca),_0xe45cb6(0x210)][_0xe45cb6(0x198)](_0x4a6859['properties'][_0xe45cb6(0x246)]))return!0x1;let _0x494f03=u(_0x104bc6,_0x4a6859);return!(!_0x494f03||(_0x20f5a8=_0x494f03[_0xe45cb6(0x17f)][_0xe45cb6(0x1d2)])!=null&&_0x20f5a8['doNotAllowInsertDelete']);}function c(_0x12966f,_0x49fb58){const _0x49b44b=_0x59c2c2;let _0x5cc37d=_0x12966f[_0x49b44b(0x204)]??[],_0x3e63b6=_0x5cc37d[_0x49b44b(0x184)](_0x25ee78=>_0x25ee78[_0x49b44b(0x191)]===_0x49fb58[_0x49b44b(0x191)]);return _0x5cc37d['filter']((_0x198dbc,_0x521d41)=>_0x198dbc[_0x49b44b(0x1a7)]===t[_0x49b44b(0x1ee)][_0x49b44b(0x21c)]&&_0x198dbc[_0x49b44b(0x191)]!==_0x49fb58[_0x49b44b(0x191)]&&_0x198dbc['startIndex']<=_0x49fb58[_0x49b44b(0x1fc)]&&_0x49fb58[_0x49b44b(0x1d8)]<=_0x198dbc[_0x49b44b(0x1d8)]&&(_0x198dbc[_0x49b44b(0x1fc)]<_0x49fb58[_0x49b44b(0x1fc)]||_0x49fb58[_0x49b44b(0x1d8)]<_0x198dbc[_0x49b44b(0x1d8)]||_0x521d41>_0x3e63b6));}function l(_0x334b68,_0x5657ca,_0x8e9767=['body']){const _0x4dae52=_0x59c2c2;var _0x54696c;let _0x25f653=_0x334b68['body'];if(!_0x25f653||_0x5657ca['properties']['kind']!==_0x4dae52(0x189)||_0x5657ca[_0x4dae52(0x17f)][_0x4dae52(0x246)]!=='row')return;let _0x341341=u(_0x25f653,_0x5657ca);if(!(!_0x341341||(_0x54696c=_0x341341[_0x4dae52(0x17f)]['repeatingSection'])!=null&&_0x54696c[_0x4dae52(0x1ac)]))for(let _0x2b46e1 of _0x25f653[_0x4dae52(0x1d0)]??[]){if(_0x2b46e1[_0x4dae52(0x1fc)]>_0x5657ca[_0x4dae52(0x1fc)]||_0x2b46e1[_0x4dae52(0x1d8)]<=_0x5657ca[_0x4dae52(0x1d8)])continue;let _0x217e7d=(0x0,e['getTableRangeById'])(_0x334b68,_0x2b46e1[_0x4dae52(0x21f)]);if(!_0x217e7d)continue;let _0x1d940c=_0x217e7d[_0x4dae52(0x238)][_0x4dae52(0x184)](_0x42b195=>_0x42b195[_0x4dae52(0x255)]===_0x5657ca[_0x4dae52(0x1fc)]),_0x109c06=_0x217e7d['rows'][_0x4dae52(0x184)](_0x523a58=>_0x523a58[_0x4dae52(0x22c)]===_0x5657ca[_0x4dae52(0x1d8)]);if(_0x1d940c<0x0||_0x109c06<_0x1d940c)continue;let _0x365c08=(0x0,e[_0x4dae52(0x200)])(_0x334b68,_0x2b46e1[_0x4dae52(0x21f)],_0x1d940c,_0x109c06,_0x8e9767);if(!_0x365c08)return;let _0x205c07=_0x365c08['deleteTable']?_0x217e7d[_0x4dae52(0x22c)]-_0x217e7d['startOffset']:_0x5657ca[_0x4dae52(0x1d8)]-_0x5657ca[_0x4dae52(0x1fc)]+0x1;return{'actions':_0x365c08[_0x4dae52(0x202)],'caretOffset':Math[_0x4dae52(0x227)](0x0,Math['min'](_0x5657ca[_0x4dae52(0x1fc)],_0x25f653[_0x4dae52(0x230)]['length']-_0x205c07-0x2))};}}function u(_0x15e958,_0x381d0f){const _0x43937d=_0x59c2c2;return c(_0x15e958,_0x381d0f)[_0x43937d(0x20a)](_0xc5c0c6=>_0xc5c0c6[_0x43937d(0x17f)][_0x43937d(0x225)]==='repeatingSection')[_0x43937d(0x257)]((_0x5664ca,_0x16222a)=>_0x5664ca[_0x43937d(0x1d8)]-_0x5664ca[_0x43937d(0x1fc)]-(_0x16222a[_0x43937d(0x1d8)]-_0x16222a[_0x43937d(0x1fc)]))[0x0];}async function d(_0x175044,_0x1aee88,_0x55d501){const _0x4165c0=_0x59c2c2;var _0x696644,_0x4cff83;let _0x33143c=_0x175044['get'](t['IUniverInstanceService']),_0x5d21f5=_0x1aee88[_0x4165c0(0x1b8)]?_0x33143c[_0x4165c0(0x22f)](_0x1aee88[_0x4165c0(0x1b8)],t[_0x4165c0(0x1fd)][_0x4165c0(0x1c4)]):_0x33143c[_0x4165c0(0x247)](t[_0x4165c0(0x1fd)][_0x4165c0(0x1c4)]),_0x1c4f91=_0x5d21f5==null||(_0x696644=_0x5d21f5[_0x4165c0(0x1f9)](_0x1aee88[_0x4165c0(0x217)]))==null?void 0x0:_0x696644[_0x4165c0(0x18e)](),_0x3c464f=_0x1c4f91==null||(_0x4cff83=_0x1c4f91['customRanges'])==null?void 0x0:_0x4cff83[_0x4165c0(0x1cf)](_0x138fdb=>_0x138fdb[_0x4165c0(0x1a7)]===t[_0x4165c0(0x1ee)][_0x4165c0(0x21c)]&&_0x138fdb[_0x4165c0(0x191)]===_0x1aee88['rangeId']);if(!_0x5d21f5||!_0x1c4f91||!_0x3c464f)return!0x1;let _0x266e90=(0x0,t[_0x4165c0(0x197)])(_0x5d21f5,_0x1aee88[_0x4165c0(0x217)]),_0x86d871,_0xe2e7b2;if(_0x3c464f['properties']['placement']===_0x4165c0(0x1cc)){let _0x5676d5=!_0x55d501&&l({..._0x5d21f5[_0x4165c0(0x1d9)](),'body':_0x1c4f91},_0x3c464f,_0x266e90);if(!_0x5676d5)return!0x1;({actions:_0x86d871,caretOffset:_0xe2e7b2}=_0x5676d5);}else{let _0x25357d=_0x55d501?a(_0x1c4f91,_0x3c464f):o(_0x1c4f91,_0x3c464f);if(!_0x25357d)return!0x1;_0x86d871=t[_0x4165c0(0x258)][_0x4165c0(0x1fa)]()['editOp'](_0x25357d[_0x4165c0(0x202)],_0x266e90),_0xe2e7b2=_0x25357d[_0x4165c0(0x1b6)];}let _0x4b87fe=_0x55d501?f['id']:p['id'];return!!await _0x175044[_0x4165c0(0x24c)](t[_0x4165c0(0x21e)])['executeCommand'](n[_0x4165c0(0x1c9)]['id'],{'unitId':_0x5d21f5['getUnitId'](),'historyAction':_0x4b87fe,'actions':_0x86d871,'textRanges':[{'startOffset':_0xe2e7b2,'endOffset':_0xe2e7b2,'collapsed':!0x0,'segmentId':_0x1aee88[_0x4165c0(0x217)]}],'debounce':!0x1,'trigger':_0x4b87fe});}const f={'id':_0x59c2c2(0x1ab),'type':t[_0x59c2c2(0x218)]['COMMAND'],'handler':(_0xdd8087,_0x1ac6f1)=>_0x1ac6f1!=null&&_0x1ac6f1[_0x59c2c2(0x191)]?d(_0xdd8087,_0x1ac6f1,!0x0):!0x1},p={'id':_0x59c2c2(0x1c8),'type':t[_0x59c2c2(0x218)][_0x59c2c2(0x180)],'handler':(_0x48f90c,_0x326b14)=>_0x326b14!=null&&_0x326b14['rangeId']?d(_0x48f90c,_0x326b14,!0x1):!0x1},m=_0x59c2c2(0x187);function h(_0x23caaf,_0x5c819b){const _0xcd8ada=_0x59c2c2;var _0x1c02f8;return _0x23caaf==null||(_0x1c02f8=_0x23caaf[_0xcd8ada(0x204)])==null?void 0x0:_0x1c02f8['filter'](_0x31a6c9=>_0x31a6c9[_0xcd8ada(0x1a7)]===t['CustomRangeType'][_0xcd8ada(0x21c)]&&_0x31a6c9[_0xcd8ada(0x1fc)]<=_0x5c819b&&_0x5c819b<=_0x31a6c9['endIndex'])[_0xcd8ada(0x257)]((_0x2005ca,_0x486c37)=>_0x2005ca[_0xcd8ada(0x1d8)]-_0x2005ca[_0xcd8ada(0x1fc)]-(_0x486c37[_0xcd8ada(0x1d8)]-_0x486c37['startIndex']))[0x0];}function g(_0x119a16){const _0x2cab8c=_0x59c2c2;var _0x14363d,_0x4d86e0;return((_0x14363d=_0x119a16[_0x2cab8c(0x17f)])==null?void 0x0:_0x14363d[_0x2cab8c(0x181)])===_0x2cab8c(0x1c0)||((_0x4d86e0=_0x119a16['properties'])==null?void 0x0:_0x4d86e0['lock'])===_0x2cab8c(0x1c5);}function _(_0x77515f){const _0x3d8731=_0x59c2c2;var _0x285a59,_0x50aeef;return((_0x285a59=_0x77515f['properties'])==null?void 0x0:_0x285a59[_0x3d8731(0x181)])===_0x3d8731(0x1b0)||((_0x50aeef=_0x77515f['properties'])==null?void 0x0:_0x50aeef[_0x3d8731(0x181)])===_0x3d8731(0x1c5);}function v(_0x47e89c,_0x1621d0){const _0x18b711=_0x59c2c2;let _0x1b8b25=Number[_0x18b711(0x1be)](_0x47e89c??'',0x10);return!/^[\da-f]+$/i['test'](_0x47e89c??'')||_0x1b8b25<=0x0||_0x1b8b25>0x10ffff||_0x1b8b25>=0xd800&&_0x1b8b25<=0xdfff?_0x1621d0:String[_0x18b711(0x1c2)](_0x1b8b25);}function y(_0x5d4354,_0x305b2e=_0x59c2c2(0x1b7),_0x2fd06f){const _0x4fa2b8=_0x59c2c2;let _0x3640cd=new Date(_0x5d4354);if(Number[_0x4fa2b8(0x1a5)](_0x3640cd[_0x4fa2b8(0x23e)]()))return _0x5d4354[_0x4fa2b8(0x208)](0x0,0xa);let _0x5610be=_0x3bf339=>{const _0x28caea=_0x4fa2b8;try{return new Intl[(_0x28caea(0x194))](_0x2fd06f||void 0x0,{..._0x3bf339,'timeZone':'UTC'})[_0x28caea(0x1c1)](_0x3640cd);}catch{return new Intl[(_0x28caea(0x194))](void 0x0,{..._0x3bf339,'timeZone':_0x28caea(0x1dc)})[_0x28caea(0x1c1)](_0x3640cd);}},_0xd47e68=_0x3640cd['getUTCFullYear'](),_0x3d564c=_0x3640cd[_0x4fa2b8(0x243)]()+0x1,_0x4ee76b=_0x3640cd[_0x4fa2b8(0x1f5)](),_0x557373=!_0x2fd06f||_0x2fd06f[_0x4fa2b8(0x18d)]()[_0x4fa2b8(0x1bc)]('en'),_0x3fe4c5={'dddd':_0x5610be({'weekday':_0x4fa2b8(0x20f)}),'ddd':_0x557373?[_0x4fa2b8(0x1f2),_0x4fa2b8(0x1c6),_0x4fa2b8(0x193),'Wed','Thu','Fri',_0x4fa2b8(0x1ba)][_0x3640cd[_0x4fa2b8(0x24e)]()]:_0x5610be({'weekday':_0x4fa2b8(0x190)}),'MMMM':_0x5610be({'month':'long'}),'MMM':_0x557373?[_0x4fa2b8(0x1c7),_0x4fa2b8(0x1a0),'Mar',_0x4fa2b8(0x24a),_0x4fa2b8(0x216),_0x4fa2b8(0x19c),_0x4fa2b8(0x23f),_0x4fa2b8(0x17e),_0x4fa2b8(0x22e),_0x4fa2b8(0x1eb),'Nov','Dec'][_0x3d564c-0x1]:_0x5610be({'month':_0x4fa2b8(0x190)}),'yyyy':String(_0xd47e68)[_0x4fa2b8(0x1aa)](0x4,'0'),'yy':String(_0xd47e68%0x64)['padStart'](0x2,'0'),'MM':String(_0x3d564c)['padStart'](0x2,'0'),'M':String(_0x3d564c),'dd':String(_0x4ee76b)[_0x4fa2b8(0x1aa)](0x2,'0'),'d':String(_0x4ee76b)};return _0x305b2e['replace'](/dddd|ddd|MMMM|MMM|yyyy|yy|MM|M|dd|d/g,_0x2768a7=>_0x3fe4c5[_0x2768a7]);}function _0x3d6a(){const _0x6dbc53=['buildDuplicateRepeatingItemUpdate','length','buildDeleteTableRowsMutationActions','reduce','actions','transformPosition','customRanges','has','getSdtBindingValue','DeleteRepeatingSdtItemCommand','slice','valueRangeId','filter','getBodySliceForTextXAction','_config','clear','value','long','table','_injector','IUniverInstanceService','getSdtBindingKey','UpdateSdtValueCommand','doc.command.remove-sdt','May','segmentId','CommandType','generateRandomId','every','doc.command.update-sdt-properties','SDT','checked','ICommandService','tableId','deepClone','generateSdtOoxmlId','textRanges','RETAIN','Plugin','kind','keys','max','Tools','compose','version','SliceBodyType','endOffset','DependentOn','Sep','getUnit','dataStream','isSdtContentLocked','forEach','readCursor','checkbox','paragraphId','445512ARVZQX','fullDate','rows','constructor','DOC_SDT_CUSTOM_XML_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','font','getSdtDisplayValue','getTime','Jul','copy','pluginName','symbol','getUTCMonth','_configService','defineProperty','placement','getCurrentUnitOfType','1575846LODOWt','registerPluginResource','Apr','toPrimitive','get','text','getUTCDay','uncheckedState','196oiXUOh','body','Injector','prototype','insert','startOffset','1.3.1','sort','JSONX','getSdtPlaceholderText','findSdtAtOffset','toStringTag','add','headers','Aug','properties','COMMAND','lock','getUnitId','_commandService','findIndex','updateCustomRangeProperties','UpdateSdtPropertiesCommand','doc.command.update-sdt-value','string','repeatingSectionItem','dataBinding','UniverLicensePlugin','call','toLowerCase','getBody','Module','short','rangeId','charAt','Tue','DateTimeFormat','buildSdtMetadataUpdate','textRuns','getRichTextEditPath','includes','onStarting','1186EEZRHj','12046400RIdMdc','Jun','function','random','DataStreamTreeTokenType','Feb','DELETE','delete','RemoveSdtCommand','charCodeAt','isNaN','locale','rangeType','map','editOp','padStart','doc.command.duplicate-repeating-sdt-item','doNotAllowInsertDelete','DuplicateRepeatingSdtItemCommand','TextX','CUSTOM_RANGE_END','sdtLocked','isSdtWrapperLocked','buildDeleteRepeatingItemUpdate','len','8JlAtXo','merge','caretOffset','yyyy-MM-dd','unitId','dirty','Sat','CUSTOM_RANGE_START','startsWith','paragraphs','parseInt','some','contentLocked','format','fromCodePoint','comboBox','UNIVER_DOC','sdtContentLocked','Mon','Jan','doc.command.delete-repeating-sdt-item','RichTextEditingMutation','cell','buildRestoredSdtMetadata','row','JSON1','UniverDocsPlugin','find','tables','iterator','repeatingSection','decorate','2379069VxPbnV','listItems','synchronizeSdtBindings','TextXActionType','endIndex','getSnapshot','getSdtVisibleContentRange','date','UTC','disposeWithMe','traverse','IConfigService','notes','150MqxKEM','dropDownList','serialize','retain','860877tXONvK','65364QtQZZN','registerCommand','getPath','docs-sdt.config','push','Oct','updateCustomRanges','BuildTextUtils','CustomRangeType','object','set','floor','Sun','type','apply','getUTCDate','checkboxStyle','showingPlaceholder','ooxmlId','getSelfOrHeaderFooterModel','getInstance','packageName','startIndex','UniverInstanceType'];_0x3d6a=function(){return _0x6dbc53;};return _0x3d6a();}function b(_0xbf34b3,_0xf439c4){const _0x32b682=_0x59c2c2;let _0x12f14a=_0xbf34b3[_0x32b682(0x17f)];if(_0xf439c4[_0x32b682(0x1f7)])return _0xf439c4['value'];if(_0x12f14a[_0x32b682(0x225)]===_0x32b682(0x234)){var _0x141076,_0x29199e,_0x24a19d;let _0xece117=_0xf439c4[_0x32b682(0x21d)]??!((_0x141076=_0x12f14a[_0x32b682(0x234)])!=null&&_0x141076[_0x32b682(0x21d)]),_0x83b142={..._0x12f14a['checkbox'],..._0xf439c4[_0x32b682(0x1f6)]};return _0xece117?v((_0x29199e=_0x83b142['checkedState'])==null?void 0x0:_0x29199e['value'],'☒'):v((_0x24a19d=_0x83b142[_0x32b682(0x24f)])==null?void 0x0:_0x24a19d[_0x32b682(0x20e)],'☐');}if(_0x12f14a[_0x32b682(0x225)]===_0x32b682(0x1e2)||_0x12f14a['kind']==='comboBox'){var _0x31b6d9;let _0x4da22f=_0xf439c4['value'];return _0x4da22f==null?void 0x0:((_0x31b6d9=_0x12f14a[_0x32b682(0x1d5)])==null||(_0x31b6d9=_0x31b6d9[_0x32b682(0x1cf)](_0x25ccd6=>_0x25ccd6[_0x32b682(0x20e)]===_0x4da22f))==null?void 0x0:_0x31b6d9['displayText'])??_0x4da22f;}if(_0x12f14a[_0x32b682(0x225)]===_0x32b682(0x1db)){var _0x5b2953,_0xb1e5ec;let _0x12cf34=_0xf439c4[_0x32b682(0x237)]??_0xf439c4[_0x32b682(0x20e)];return _0x12cf34==null?void 0x0:y(_0x12cf34,(_0x5b2953=_0x12f14a['date'])==null?void 0x0:_0x5b2953[_0x32b682(0x1c1)],(_0xb1e5ec=_0x12f14a['date'])==null?void 0x0:_0xb1e5ec[_0x32b682(0x1a6)]);}return _0xf439c4['value'];}function x(_0x421cfa,_0x18e8f5){const _0x264165=_0x59c2c2;var _0x4c50f5;let _0x3d063d=(0x0,t[_0x264165(0x1b5)])({},t[_0x264165(0x228)][_0x264165(0x220)](_0x421cfa[_0x264165(0x17f)]),t[_0x264165(0x228)]['deepClone'](_0x18e8f5[_0x264165(0x17f)]??{}));if((_0x4c50f5=_0x18e8f5[_0x264165(0x17f)])!=null&&_0x4c50f5[_0x264165(0x1d5)]&&(_0x3d063d[_0x264165(0x1d5)]=t[_0x264165(0x228)][_0x264165(0x220)](_0x18e8f5['properties']['listItems'])),_0x3d063d['kind']===_0x264165(0x234)){var _0x76ecfd;_0x3d063d[_0x264165(0x234)]={..._0x3d063d['checkbox'],...t[_0x264165(0x228)]['deepClone'](_0x18e8f5['checkboxStyle']),'checked':_0x18e8f5['checked']??!((_0x76ecfd=_0x3d063d[_0x264165(0x234)])!=null&&_0x76ecfd[_0x264165(0x21d)])};}else{if(_0x3d063d[_0x264165(0x225)]===_0x264165(0x1db)&&!_0x18e8f5[_0x264165(0x1f7)]){var _0xf621d3;_0x3d063d[_0x264165(0x1db)]={..._0x3d063d[_0x264165(0x1db)],'fullDate':_0x18e8f5[_0x264165(0x237)]??_0x18e8f5[_0x264165(0x20e)]??((_0xf621d3=_0x3d063d['date'])==null?void 0x0:_0xf621d3[_0x264165(0x237)])};}}return _0x3d063d[_0x264165(0x1f7)]=_0x18e8f5[_0x264165(0x1f7)]??!0x1,_0x3d063d[_0x264165(0x18a)]&&={..._0x3d063d['dataBinding'],'dirty':!0x0},_0x3d063d;}function S(_0x14bae4,_0x52f2bd,_0x24ae54,_0x2c6f3c,_0x28dd34,_0x2bfa8a){const _0x57da0a=_0x59c2c2;var _0x3acbf7,_0x253100,_0x4a5df4,_0xbede4b;let _0x407b16=[..._0x24ae54][_0x57da0a(0x201)]((_0x5428ac,_0xf0535)=>_0x5428ac+_0xf0535[_0x57da0a(0x1ff)],0x0),_0x4300d0=(_0x3acbf7=_0x14bae4[_0x57da0a(0x196)])==null?void 0x0:_0x3acbf7[_0x57da0a(0x1cf)](_0x4c48e1=>_0x4c48e1['st']<=_0x2bfa8a&&_0x2bfa8a<_0x4c48e1['ed']),_0xa9731a=_0x2c6f3c[_0x57da0a(0x225)]===_0x57da0a(0x234)?(_0x253100=_0x2c6f3c['checkbox'])!=null&&_0x253100[_0x57da0a(0x21d)]?(_0x4a5df4=_0x2c6f3c[_0x57da0a(0x234)]['checkedState'])==null?void 0x0:_0x4a5df4[_0x57da0a(0x23c)]:(_0xbede4b=_0x2c6f3c['checkbox'])==null||(_0xbede4b=_0xbede4b[_0x57da0a(0x24f)])==null?void 0x0:_0xbede4b[_0x57da0a(0x23c)]:void 0x0,_0x8f3414=_0x4300d0!=null&&_0x4300d0['ts']?t[_0x57da0a(0x228)]['deepClone'](_0x4300d0['ts']):{};return _0xa9731a&&!_0x8f3414['ff']&&(_0x8f3414['ff']=_0xa9731a),{'dataStream':_0x24ae54,'textRuns':_0x4300d0!=null&&_0x4300d0['ts']||_0xa9731a?[{'st':0x0,'ed':_0x407b16,'ts':_0x8f3414}]:void 0x0,'customRanges':_0x28dd34?[{'startIndex':0x0,'endIndex':Math[_0x57da0a(0x227)](0x0,_0x407b16-0x1),'rangeId':_0x52f2bd[_0x57da0a(0x191)],'rangeType':t['CustomRangeType'][_0x57da0a(0x21c)],'wholeEntity':!0x1,'properties':_0x2c6f3c}]:void 0x0};}function _0x4ada(_0x2be594,_0x671594){_0x2be594=_0x2be594-0x17b;const _0x3d6a90=_0x3d6a();let _0x4ada77=_0x3d6a90[_0x2be594];return _0x4ada77;}function C(_0x44ba35,_0x18c748){const _0x4c9015=_0x59c2c2;let _0x40a8c4=_0x18c748[_0x4c9015(0x1fc)],_0x487009=_0x18c748[_0x4c9015(0x1d8)]+0x1;for(_0x44ba35[_0x4c9015(0x230)][_0x40a8c4]===t['DataStreamTreeTokenType'][_0x4c9015(0x1bb)]&&_0x44ba35['dataStream'][_0x487009-0x1]===t['DataStreamTreeTokenType'][_0x4c9015(0x1af)]&&(_0x40a8c4++,_0x487009--);_0x40a8c4<_0x487009&&w(_0x44ba35[_0x4c9015(0x230)]['charCodeAt'](_0x40a8c4));)_0x40a8c4++;for(;_0x487009>_0x40a8c4&&w(_0x44ba35[_0x4c9015(0x230)][_0x4c9015(0x1a4)](_0x487009-0x1));)_0x487009--;return{'startOffset':_0x40a8c4,'endOffset':_0x487009};}function w(_0x4054af){return _0x4054af<0x20&&_0x4054af!==0x9;}async function T(_0xfa56a2,_0xd2484d,_0x1c13e0,_0x486945,_0x19a2b3,_0x38ad38,_0x4d9155){const _0xeda09=_0x59c2c2;let _0x3fcb80=O(_0x1c13e0,_0x486945,_0x19a2b3,_0x38ad38);if(!_0x3fcb80)return!0x1;let _0x4605c8={'unitId':_0xd2484d[_0xeda09(0x182)](),'historyAction':m,'actions':t['JSONX']['getInstance']()[_0xeda09(0x1a9)](_0x3fcb80[_0xeda09(0x202)],(0x0,t['getRichTextEditPath'])(_0xd2484d,_0x4d9155)),'textRanges':[{'startOffset':_0x3fcb80['caretOffset'],'endOffset':_0x3fcb80['caretOffset'],'collapsed':!0x0,'segmentId':_0x4d9155}],'debounce':!0x1,'trigger':m};return E(_0xd2484d,_0x4605c8),!!await _0xfa56a2[_0xeda09(0x24c)](t['ICommandService'])['executeCommand'](n[_0xeda09(0x1c9)]['id'],_0x4605c8);}function E(_0x38e13e,_0x5aab32){const _0x302811=_0x59c2c2;let _0x158800=_0x38e13e[_0x302811(0x1d9)](),_0x35e7fc=['',...Object[_0x302811(0x226)](_0x158800[_0x302811(0x17d)]??{}),...Object[_0x302811(0x226)](_0x158800['footers']??{}),...Object['keys'](_0x158800[_0x302811(0x1e0)]??{})]['flatMap'](_0x1f4a52=>{const _0x24df79=_0x302811;var _0x1074d8,_0x1d07e0;let _0xbda594=(_0x1074d8=_0x38e13e['getSelfOrHeaderFooterModel'](_0x1f4a52))==null?void 0x0:_0x1074d8['getBody']();return(_0xbda594==null||(_0x1d07e0=_0xbda594[_0x24df79(0x204)])==null?void 0x0:_0x1d07e0[_0x24df79(0x20a)](_0xf58061=>_0xf58061[_0x24df79(0x1a7)]===t[_0x24df79(0x1ee)][_0x24df79(0x21c)]&&!!(0x0,t[_0x24df79(0x213)])(_0xf58061))[_0x24df79(0x1a8)](_0x504b92=>({'segmentId':_0x1f4a52,'range':_0x504b92,'body':_0xbda594})))??[];});if(_0x35e7fc[_0x302811(0x1ff)]<0x2)return;let _0x19b2cb=!0x1,_0x2a80e9=new Set(),_0x3b8521=t[_0x302811(0x1cd)][_0x302811(0x1f3)][_0x302811(0x233)](_0x5aab32['actions']);if(_0x3b8521[_0x302811(0x1de)](null,_0x2b509d=>{const _0xdcbf74=_0x302811;if(_0x2b509d['et']!==t['TextX']['id']||!Array['isArray'](_0x2b509d['e']))return;let _0x91729c=_0x3b8521[_0xdcbf74(0x1e8)](),_0x34967c=_0x35e7fc['filter'](({segmentId:_0x5454f8})=>{const _0x2c19a1=_0xdcbf74;let _0x54b9b0=(0x0,t[_0x2c19a1(0x197)])(_0x38e13e,_0x5454f8);return _0x91729c[_0x2c19a1(0x1ff)]===_0x54b9b0[_0x2c19a1(0x1ff)]&&_0x54b9b0[_0x2c19a1(0x21a)]((_0x123807,_0x11848e)=>_0x123807===_0x91729c[_0x11848e]);}),_0x70a90f=0x0;for(let _0x462264 of _0x2b509d['e'])if(_0x462264['t']===t[_0xdcbf74(0x1d7)]['INSERT']){if(_0x19b2cb||=_0x34967c[_0xdcbf74(0x1bf)](({range:_0x229dc5})=>_0x70a90f>=_0x229dc5[_0xdcbf74(0x1fc)]&&_0x70a90f<=_0x229dc5[_0xdcbf74(0x1d8)]+0x1),_0x462264['valueRangeId']){for(let {range:_0x5cd7f0}of _0x34967c)_0x5cd7f0[_0xdcbf74(0x191)]===_0x462264[_0xdcbf74(0x209)]&&_0x2a80e9[_0xdcbf74(0x17c)](_0x5cd7f0);}}else _0x462264['t']===t[_0xdcbf74(0x1d7)][_0xdcbf74(0x1a1)]&&(_0x19b2cb||=_0x34967c[_0xdcbf74(0x1bf)](({range:_0xf949cd})=>_0x70a90f<=_0xf949cd[_0xdcbf74(0x1d8)]&&_0x70a90f+_0x462264['len']>_0xf949cd['startIndex'])),_0x70a90f+=_0x462264[_0xdcbf74(0x1b3)];}),!_0x19b2cb)return;let _0x12fb75=t[_0x302811(0x258)][_0x302811(0x1f4)](t['Tools'][_0x302811(0x220)](_0x158800),_0x5aab32[_0x302811(0x202)]);if(!_0x12fb75)return;let _0x9f788a=_0x27ee74=>{const _0xa01c3=_0x302811;var _0x3723b0,_0x32000b,_0x30b96e;return _0x27ee74?((_0x3723b0=_0x12fb75[_0xa01c3(0x17d)])==null||(_0x3723b0=_0x3723b0[_0x27ee74])==null?void 0x0:_0x3723b0[_0xa01c3(0x251)])??((_0x32000b=_0x12fb75['footers'])==null||(_0x32000b=_0x32000b[_0x27ee74])==null?void 0x0:_0x32000b[_0xa01c3(0x251)])??((_0x30b96e=_0x12fb75[_0xa01c3(0x1e0)])==null||(_0x30b96e=_0x30b96e[_0x27ee74])==null?void 0x0:_0x30b96e[_0xa01c3(0x251)]):_0x12fb75[_0xa01c3(0x251)];},_0x3d1932=new Map(),_0x30861c=new Set();for(let {segmentId:_0xfde3ed,range:_0x415c3a,body:_0x58cee7}of _0x35e7fc){var _0x18e282;let _0x275406=_0x9f788a(_0xfde3ed),_0x20e63f=_0x275406==null||(_0x18e282=_0x275406[_0x302811(0x204)])==null?void 0x0:_0x18e282['find'](_0x2eca49=>_0x2eca49[_0x302811(0x191)]===_0x415c3a[_0x302811(0x191)]&&_0x2eca49[_0x302811(0x1a7)]===t[_0x302811(0x1ee)][_0x302811(0x21c)]);if(!_0x20e63f||!_0x275406||g(_0x415c3a)||(0x0,t[_0x302811(0x213)])(_0x20e63f)!==(0x0,t[_0x302811(0x213)])(_0x415c3a))continue;let _0x17ca2b=(0x0,t[_0x302811(0x206)])(_0x275406,_0x20e63f);if(_0x17ca2b!==void 0x0&&(_0x2a80e9[_0x302811(0x205)](_0x415c3a)||_0x17ca2b!==(0x0,t['getSdtBindingValue'])(_0x58cee7,_0x415c3a))){let _0x128819=(0x0,t[_0x302811(0x213)])(_0x20e63f);_0x3d1932[_0x302811(0x1f0)](_0x128819,_0x17ca2b),_0x2a80e9['has'](_0x415c3a)&&_0x30861c[_0x302811(0x17c)](_0x128819);}}for(let {segmentId:_0x329396,range:_0x47f0dd}of _0x35e7fc){var _0x18a8a3,_0x402883;let _0x55c22c=_0x9f788a(_0x329396),_0x448b25=_0x55c22c==null||(_0x18a8a3=_0x55c22c[_0x302811(0x204)])==null?void 0x0:_0x18a8a3[_0x302811(0x1cf)](_0x5ac4b7=>_0x5ac4b7[_0x302811(0x191)]===_0x47f0dd['rangeId']&&_0x5ac4b7[_0x302811(0x1a7)]===t[_0x302811(0x1ee)][_0x302811(0x21c)]),_0x458319=_0x448b25&&_0x3d1932['get']((0x0,t['getSdtBindingKey'])(_0x448b25)??''),_0x19e713=!!(_0x448b25&&_0x30861c[_0x302811(0x205)]((0x0,t['getSdtBindingKey'])(_0x448b25)??''));if(!_0x448b25||!_0x55c22c||_0x458319===void 0x0||(0x0,t[_0x302811(0x206)])(_0x55c22c,_0x448b25)===_0x458319&&(!_0x19e713||_0x2a80e9[_0x302811(0x205)](_0x47f0dd)))continue;let _0x6c5189={'rangeId':_0x448b25[_0x302811(0x191)],'value':_0x458319};_0x458319===''&&['text','richText','date',_0x302811(0x1c3),_0x302811(0x1e2)][_0x302811(0x198)](_0x448b25[_0x302811(0x17f)]['kind'])&&(_0x6c5189[_0x302811(0x1f7)]=!0x0,_0x6c5189[_0x302811(0x20e)]=D(_0x448b25[_0x302811(0x17f)])),_0x448b25[_0x302811(0x17f)][_0x302811(0x225)]===_0x302811(0x234)&&(_0x6c5189[_0x302811(0x21d)]=_0x458319==='true'||_0x458319==='1');let _0x1b9975=b(_0x448b25,_0x6c5189),_0x3eb752=_0x1b9975==null?void 0x0:O(_0x55c22c,_0x448b25,_0x1b9975,_0x6c5189,_0x19e713||void 0x0);if(!_0x3eb752)continue;let _0x4b45a1=t[_0x302811(0x258)][_0x302811(0x1fa)]()['editOp'](_0x3eb752[_0x302811(0x202)],(0x0,t[_0x302811(0x197)])(_0x38e13e,_0x329396));_0x5aab32[_0x302811(0x202)]=t['JSONX'][_0x302811(0x229)](_0x5aab32[_0x302811(0x202)],_0x4b45a1),_0x5aab32[_0x302811(0x222)]=(_0x402883=_0x5aab32[_0x302811(0x222)])==null?void 0x0:_0x402883['map'](_0x510b28=>(_0x510b28[_0x302811(0x217)]??_0x5aab32['segmentId']??'')===_0x329396?{..._0x510b28,'startOffset':t['TextX'][_0x302811(0x203)](_0x3eb752[_0x302811(0x202)],_0x510b28[_0x302811(0x255)]),'endOffset':t[_0x302811(0x1ae)][_0x302811(0x203)](_0x3eb752[_0x302811(0x202)],_0x510b28[_0x302811(0x22c)])}:_0x510b28),t[_0x302811(0x1ae)][_0x302811(0x1f4)](_0x55c22c,_0x3eb752['actions']);}}function D(_0x48a1a3){const _0x27b364=_0x59c2c2;let {placeholder:_0x5e878c,placeholderDocPart:_0x5b1779}=_0x48a1a3;return(_0x5e878c===(_0x5b1779==null?void 0x0:_0x5b1779['name'])?void 0x0:_0x5e878c)??(_0x5b1779==null?void 0x0:_0x5b1779[_0x27b364(0x24d)])??'​';}function O(_0x824b95,_0x1e3a60,_0x48555a,_0xcc1a3a,_0x102dd0){const _0x435f7d=_0x59c2c2;let _0x1f632f=x(_0x1e3a60,_0xcc1a3a),_0x2643da=C(_0x824b95,_0x1e3a60),_0x147f41=_0x2643da[_0x435f7d(0x255)]>_0x1e3a60[_0x435f7d(0x1fc)]||_0x2643da['endOffset']<_0x1e3a60[_0x435f7d(0x1d8)]+0x1,_0x325112=S(_0x824b95,_0x1e3a60,_0x48555a,_0x1f632f,!_0x147f41,_0x2643da[_0x435f7d(0x255)]),_0x2a758a={'startOffset':_0x2643da[_0x435f7d(0x255)],'endOffset':_0x2643da[_0x435f7d(0x22c)],'collapsed':!0x1},_0x43be54=t[_0x435f7d(0x1ed)]['selection'][_0x435f7d(0x1a2)]([_0x2a758a],_0x824b95,0x0,_0x325112);if(_0x147f41){var _0x10ad72,_0x49d38c;let _0x1291ba=t[_0x435f7d(0x228)][_0x435f7d(0x220)](_0x824b95);t[_0x435f7d(0x1ae)][_0x435f7d(0x1f4)](_0x1291ba,_0x43be54);let _0x4ccda2=(_0x10ad72=_0x1291ba['customRanges'])==null?void 0x0:_0x10ad72[_0x435f7d(0x1cf)](_0x4e933e=>_0x4e933e[_0x435f7d(0x1a7)]===t[_0x435f7d(0x1ee)][_0x435f7d(0x21c)]&&_0x4e933e[_0x435f7d(0x191)]===_0x1e3a60['rangeId']);if(!_0x4ccda2)return;let _0x3d0fd7=_0x1e3a60['startIndex'],_0x223efb=_0x1e3a60['endIndex']+_0x325112[_0x435f7d(0x230)][_0x435f7d(0x1ff)]-(_0x2643da['endOffset']-_0x2643da[_0x435f7d(0x255)]),_0xbaae4=(_0x49d38c=_0x1291ba['customRanges'])==null?void 0x0:_0x49d38c[_0x435f7d(0x20a)](_0x1f2653=>_0x3d0fd7<=_0x1f2653[_0x435f7d(0x1fc)]&&_0x1f2653[_0x435f7d(0x1d8)]<=_0x223efb)[_0x435f7d(0x1a8)](_0x48f02b=>({...t[_0x435f7d(0x228)]['deepClone'](_0x48f02b),'startIndex':_0x48f02b[_0x435f7d(0x191)]===_0x1e3a60[_0x435f7d(0x191)]?0x0:_0x48f02b[_0x435f7d(0x1fc)]-_0x3d0fd7,'endIndex':_0x48f02b[_0x435f7d(0x191)]===_0x1e3a60[_0x435f7d(0x191)]?_0x223efb-_0x3d0fd7:_0x48f02b[_0x435f7d(0x1d8)]-_0x3d0fd7,'properties':_0x48f02b['rangeId']===_0x4ccda2[_0x435f7d(0x191)]?_0x1f632f:t[_0x435f7d(0x228)]['deepClone'](_0x48f02b[_0x435f7d(0x17f)])})),_0x1183b6=new t[(_0x435f7d(0x1ae))]()[_0x435f7d(0x1e4)](_0x3d0fd7)['retain'](_0x223efb-_0x3d0fd7+0x1,{'dataStream':'','customRanges':_0xbaae4});_0x43be54=t[_0x435f7d(0x1ae)][_0x435f7d(0x229)](_0x43be54,_0x1183b6[_0x435f7d(0x1e3)]());}if((_0x102dd0??[_0x435f7d(0x234),_0x435f7d(0x1db),'dropDownList',_0x435f7d(0x1c3)][_0x435f7d(0x198)](_0x1f632f[_0x435f7d(0x225)]))&&(_0x43be54=_0x43be54[_0x435f7d(0x1a8)](_0x139998=>_0x139998['t']===t['TextXActionType'][_0x435f7d(0x223)]?_0x139998:{..._0x139998,'valueRangeId':_0x1e3a60[_0x435f7d(0x191)]})),_0xcc1a3a[_0x435f7d(0x17f)]){let _0x421c94=(0x0,t[_0x435f7d(0x1b5)])({},t[_0x435f7d(0x228)]['deepClone'](_0x1e3a60['properties']),t[_0x435f7d(0x228)]['deepClone'](_0xcc1a3a[_0x435f7d(0x17f)]));_0xcc1a3a['properties'][_0x435f7d(0x1d5)]&&(_0x421c94[_0x435f7d(0x1d5)]=t['Tools'][_0x435f7d(0x220)](_0xcc1a3a[_0x435f7d(0x17f)][_0x435f7d(0x1d5)]));let _0x515e0f={..._0x1e3a60,'endIndex':_0x1e3a60[_0x435f7d(0x1d8)]+_0x325112[_0x435f7d(0x230)][_0x435f7d(0x1ff)]-(_0x2643da['endOffset']-_0x2643da['startOffset'])};_0x43be54[_0x435f7d(0x1ea)](...new t['TextX']()[_0x435f7d(0x185)](_0x515e0f,_0x421c94)[_0x435f7d(0x1e3)]());}return{'actions':_0x43be54,'caretOffset':_0x2643da[_0x435f7d(0x255)]+_0x325112[_0x435f7d(0x230)][_0x435f7d(0x1ff)]};}const k={'id':m,'type':t[_0x59c2c2(0x218)][_0x59c2c2(0x180)],async 'handler'(_0x3431fb,_0x178838){const _0x285d1f=_0x59c2c2;var _0x173c3b,_0x4bfe62;if(!(_0x178838!=null&&_0x178838['rangeId']))return!0x1;let _0x105b52=_0x3431fb[_0x285d1f(0x24c)](t[_0x285d1f(0x212)]),_0x141231=_0x178838[_0x285d1f(0x1b8)]?_0x105b52['getUnit'](_0x178838[_0x285d1f(0x1b8)],t[_0x285d1f(0x1fd)]['UNIVER_DOC']):_0x105b52[_0x285d1f(0x247)](t[_0x285d1f(0x1fd)][_0x285d1f(0x1c4)]),_0x4bf9f5=_0x141231==null||(_0x173c3b=_0x141231[_0x285d1f(0x1f9)](_0x178838[_0x285d1f(0x217)]))==null?void 0x0:_0x173c3b[_0x285d1f(0x18e)](),_0x2f18fc=_0x4bf9f5==null||(_0x4bfe62=_0x4bf9f5[_0x285d1f(0x204)])==null?void 0x0:_0x4bfe62[_0x285d1f(0x1cf)](_0x3fcf8e=>_0x3fcf8e[_0x285d1f(0x1a7)]===t['CustomRangeType'][_0x285d1f(0x21c)]&&_0x3fcf8e[_0x285d1f(0x191)]===_0x178838[_0x285d1f(0x191)]);if(!_0x141231||!_0x4bf9f5||!_0x2f18fc||g(_0x2f18fc))return!0x1;let _0x3e9753=b(_0x2f18fc,_0x178838);return _0x3e9753!=null&&T(_0x3431fb,_0x141231,_0x4bf9f5,_0x2f18fc,_0x3e9753,_0x178838,_0x178838[_0x285d1f(0x217)]);}};function A(_0x59fa2e,_0x43c6d1){const _0x36b211=_0x59c2c2;if(_0x43c6d1<=_0x59fa2e[_0x36b211(0x1fc)])return;let _0x371e38=t[_0x36b211(0x228)][_0x36b211(0x220)](_0x59fa2e);return _0x371e38[_0x36b211(0x1fc)]=0x0,_0x371e38['endIndex']=_0x43c6d1-_0x59fa2e[_0x36b211(0x1fc)]-0x1,_0x371e38[_0x36b211(0x17f)][_0x36b211(0x1f7)]=!0x1,_0x371e38[_0x36b211(0x17f)][_0x36b211(0x18a)]&&(_0x371e38[_0x36b211(0x17f)][_0x36b211(0x18a)][_0x36b211(0x1b9)]=!0x0),new t['TextX']()['retain'](_0x59fa2e[_0x36b211(0x1fc)])[_0x36b211(0x1e4)](_0x43c6d1-_0x59fa2e[_0x36b211(0x1fc)],{'dataStream':'','customRanges':[_0x371e38]})[_0x36b211(0x1e3)]();}function j(_0x496b80,_0xa627bd,_0x36eb35,_0x1c3c2a=!0x1){const _0x3df13c=_0x59c2c2;var _0xf9b6c;let _0x2a1576=_0x36eb35?(0x0,t['merge'])({},t[_0x3df13c(0x228)]['deepClone'](_0xa627bd['properties']),t[_0x3df13c(0x228)]['deepClone'](_0x36eb35)):_0xa627bd[_0x3df13c(0x17f)];_0x36eb35!=null&&_0x36eb35[_0x3df13c(0x1d5)]&&(_0x2a1576['listItems']=t['Tools']['deepClone'](_0x36eb35[_0x3df13c(0x1d5)]));let _0x310899=new t['TextX']();return _0x1c3c2a&&_0x496b80[_0x3df13c(0x230)][_0xa627bd[_0x3df13c(0x1fc)]]===t[_0x3df13c(0x19f)][_0x3df13c(0x1bb)]&&_0x496b80[_0x3df13c(0x230)][_0xa627bd[_0x3df13c(0x1d8)]]===t[_0x3df13c(0x19f)]['CUSTOM_RANGE_END']&&!((_0xf9b6c=_0x496b80['customRanges'])!=null&&_0xf9b6c[_0x3df13c(0x1bf)](_0x5e1004=>_0x5e1004['rangeId']!==_0xa627bd['rangeId']&&_0x5e1004[_0x3df13c(0x1fc)]===_0xa627bd[_0x3df13c(0x1fc)]&&_0x5e1004[_0x3df13c(0x1d8)]===_0xa627bd['endIndex']))&&_0x310899[_0x3df13c(0x1e4)](_0xa627bd['startIndex'])[_0x3df13c(0x1a2)](0x1)[_0x3df13c(0x1e4)](_0xa627bd[_0x3df13c(0x1d8)]-_0xa627bd['startIndex']-0x1)[_0x3df13c(0x1a2)](0x1),_0x1c3c2a?_0x310899[_0x3df13c(0x1ec)]([{'rangeId':_0xa627bd[_0x3df13c(0x191)],'range':null}]):_0x310899['updateCustomRangeProperties'](_0xa627bd,_0x2a1576),{'actions':_0x310899['serialize'](),'caretOffset':_0xa627bd[_0x3df13c(0x1fc)]};}async function M(_0x28c9be,_0x2cbfbc,_0x154d72){const _0x31a7d8=_0x59c2c2;var _0x72ca60,_0x468bfe;let _0x2e70b6=_0x28c9be[_0x31a7d8(0x24c)](t[_0x31a7d8(0x212)]),_0x55c52c=_0x2cbfbc[_0x31a7d8(0x1b8)]?_0x2e70b6[_0x31a7d8(0x22f)](_0x2cbfbc[_0x31a7d8(0x1b8)],t[_0x31a7d8(0x1fd)][_0x31a7d8(0x1c4)]):_0x2e70b6[_0x31a7d8(0x247)](t[_0x31a7d8(0x1fd)][_0x31a7d8(0x1c4)]),_0x465d27=_0x55c52c==null||(_0x72ca60=_0x55c52c[_0x31a7d8(0x1f9)](_0x2cbfbc[_0x31a7d8(0x217)]))==null?void 0x0:_0x72ca60[_0x31a7d8(0x18e)](),_0x42570f=_0x465d27==null||(_0x468bfe=_0x465d27[_0x31a7d8(0x204)])==null?void 0x0:_0x468bfe[_0x31a7d8(0x1cf)](_0x17c438=>_0x17c438[_0x31a7d8(0x1a7)]===t['CustomRangeType']['SDT']&&_0x17c438[_0x31a7d8(0x191)]===_0x2cbfbc[_0x31a7d8(0x191)]);if(!_0x55c52c||!_0x465d27||!_0x42570f||_0x154d72&&_(_0x42570f))return!0x1;let _0x211039=j(_0x465d27,_0x42570f,_0x31a7d8(0x17f)in _0x2cbfbc?_0x2cbfbc[_0x31a7d8(0x17f)]:void 0x0,_0x154d72);return!_0x211039['actions'][_0x31a7d8(0x1ff)]||!!await _0x28c9be[_0x31a7d8(0x24c)](t['ICommandService'])['executeCommand'](n['RichTextEditingMutation']['id'],{'unitId':_0x55c52c[_0x31a7d8(0x182)](),'historyAction':_0x154d72?P['id']:N['id'],'actions':t[_0x31a7d8(0x258)][_0x31a7d8(0x1fa)]()[_0x31a7d8(0x1a9)](_0x211039['actions'],(0x0,t[_0x31a7d8(0x197)])(_0x55c52c,_0x2cbfbc[_0x31a7d8(0x217)])),'textRanges':[{'startOffset':_0x211039['caretOffset'],'endOffset':_0x211039[_0x31a7d8(0x1b6)],'collapsed':!0x0,'segmentId':_0x2cbfbc[_0x31a7d8(0x217)]}],'debounce':!0x1,'trigger':_0x154d72?P['id']:N['id']});}const N={'id':_0x59c2c2(0x21b),'type':t[_0x59c2c2(0x218)][_0x59c2c2(0x180)],'handler':(_0x2fd252,_0x2f12e4)=>_0x2f12e4!=null&&_0x2f12e4['rangeId']&&_0x2f12e4[_0x59c2c2(0x17f)]?M(_0x2fd252,_0x2f12e4,!0x1):!0x1},P={'id':_0x59c2c2(0x215),'type':t['CommandType'][_0x59c2c2(0x180)],'handler':(_0x100ae2,_0x2d7ae0)=>_0x2d7ae0!=null&&_0x2d7ae0[_0x59c2c2(0x191)]?M(_0x100ae2,_0x2d7ae0,!0x0):!0x1};var F='@univerjs-pro/docs-sdt',I=_0x59c2c2(0x256);const L={};function R(_0x9d77fb,_0x314af9){return function(_0x5430ac,_0x1455b7){_0x314af9(_0x5430ac,_0x1455b7,_0x9d77fb);};}function z(_0x403053,_0x4858f0,_0x46e1c4,_0x2c9236){const _0x196f59=_0x59c2c2;var _0x1cf43d=arguments['length'],_0x17454d=_0x1cf43d<0x3?_0x4858f0:_0x2c9236===null?_0x2c9236=Object['getOwnPropertyDescriptor'](_0x4858f0,_0x46e1c4):_0x2c9236,_0x52aec2;if(typeof Reflect==_0x196f59(0x1ef)&&typeof Reflect[_0x196f59(0x1d3)]==_0x196f59(0x19d))_0x17454d=Reflect[_0x196f59(0x1d3)](_0x403053,_0x4858f0,_0x46e1c4,_0x2c9236);else{for(var _0x2c5fa0=_0x403053[_0x196f59(0x1ff)]-0x1;_0x2c5fa0>=0x0;_0x2c5fa0--)(_0x52aec2=_0x403053[_0x2c5fa0])&&(_0x17454d=(_0x1cf43d<0x3?_0x52aec2(_0x17454d):_0x1cf43d>0x3?_0x52aec2(_0x4858f0,_0x46e1c4,_0x17454d):_0x52aec2(_0x4858f0,_0x46e1c4))||_0x17454d);}return _0x1cf43d>0x3&&_0x17454d&&Object[_0x196f59(0x245)](_0x4858f0,_0x46e1c4,_0x17454d),_0x17454d;}function B(_0x35ed3c){'@babel/helpers - typeof';const _0x139cef=_0x59c2c2;return B=typeof Symbol==_0x139cef(0x19d)&&typeof Symbol[_0x139cef(0x1d1)]==_0x139cef(0x242)?function(_0x5b9625){return typeof _0x5b9625;}:function(_0xac5b58){const _0x2d7416=_0x139cef;return _0xac5b58&&typeof Symbol==_0x2d7416(0x19d)&&_0xac5b58[_0x2d7416(0x239)]===Symbol&&_0xac5b58!==Symbol[_0x2d7416(0x253)]?_0x2d7416(0x242):typeof _0xac5b58;},B(_0x35ed3c);}function V(_0x3c10c4,_0x9979b6){const _0x4c3fef=_0x59c2c2;if(B(_0x3c10c4)!=_0x4c3fef(0x1ef)||!_0x3c10c4)return _0x3c10c4;var _0x269b20=_0x3c10c4[Symbol[_0x4c3fef(0x24b)]];if(_0x269b20!==void 0x0){var _0x4dbaaa=_0x269b20[_0x4c3fef(0x18c)](_0x3c10c4,_0x9979b6||'default');if(B(_0x4dbaaa)!=_0x4c3fef(0x1ef))return _0x4dbaaa;throw TypeError(_0x4c3fef(0x23b));}return(_0x9979b6===_0x4c3fef(0x188)?String:Number)(_0x3c10c4);}function H(_0x393b3c){const _0x5488f2=_0x59c2c2;var _0x10f1c3=V(_0x393b3c,'string');return B(_0x10f1c3)==_0x5488f2(0x242)?_0x10f1c3:_0x10f1c3+'';}function U(_0x1cd35e,_0xc1e478,_0x42f832){const _0x42581e=_0x59c2c2;return(_0xc1e478=H(_0xc1e478))in _0x1cd35e?Object[_0x42581e(0x245)](_0x1cd35e,_0xc1e478,{'value':_0x42f832,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1cd35e[_0xc1e478]=_0x42f832,_0x1cd35e;}let W=class extends t[_0x59c2c2(0x224)]{constructor(_0x435fa5=L,_0x425415,_0x1afc23,_0x3f07e0){const _0x1bc08f=_0x59c2c2;super(),this[_0x1bc08f(0x20c)]=_0x435fa5,this[_0x1bc08f(0x211)]=_0x425415,this[_0x1bc08f(0x244)]=_0x1afc23,this[_0x1bc08f(0x183)]=_0x3f07e0;let {..._0x31a054}=(0x0,t['merge'])({},L,this['_config']);this[_0x1bc08f(0x244)]['setConfig'](_0x1bc08f(0x1e9),_0x31a054);}[_0x59c2c2(0x199)](){const _0x4a1ed0=_0x59c2c2;this['disposeWithMe'](this[_0x4a1ed0(0x183)][_0x4a1ed0(0x1e7)](k)),this[_0x4a1ed0(0x1dd)](this[_0x4a1ed0(0x183)]['registerCommand'](N)),this['disposeWithMe'](this[_0x4a1ed0(0x183)][_0x4a1ed0(0x1e7)](P)),this[_0x4a1ed0(0x1dd)](this[_0x4a1ed0(0x183)][_0x4a1ed0(0x1e7)](f)),this[_0x4a1ed0(0x1dd)](this['_commandService'][_0x4a1ed0(0x1e7)](p));let _0x588164=new Map();this[_0x4a1ed0(0x1dd)]({'dispose':()=>_0x588164[_0x4a1ed0(0x20d)]()}),this[_0x4a1ed0(0x1dd)](this['_injector']['get'](t['IResourceManagerService'])[_0x4a1ed0(0x249)]({'pluginName':_0x4a1ed0(0x23a),'businesses':[t[_0x4a1ed0(0x1fd)]['UNIVER_DOC']],'parseJson':_0x2d24c2=>_0x2d24c2,'onLoad':(_0x176938,_0x49fb49)=>{_0x588164['set'](_0x176938,_0x49fb49);},'onUnLoad':_0x44dc66=>{const _0x9bca5e=_0x4a1ed0;_0x588164[_0x9bca5e(0x1a2)](_0x44dc66);},'toJson':_0x5dd883=>_0x588164[_0x4a1ed0(0x24c)](_0x5dd883)??''}));}};U(W,_0x59c2c2(0x241),'DOCS_SDT_PLUGIN'),U(W,_0x59c2c2(0x1fb),F),U(W,_0x59c2c2(0x22a),I),U(W,'type',t['UniverInstanceType'][_0x59c2c2(0x1c4)]),W=z([(0x0,t[_0x59c2c2(0x22d)])(r[_0x59c2c2(0x18b)],n[_0x59c2c2(0x1ce)]),R(0x1,(0x0,t['Inject'])(t[_0x59c2c2(0x252)])),R(0x2,t[_0x59c2c2(0x1df)]),R(0x3,t[_0x59c2c2(0x21e)])],W),exports[_0x59c2c2(0x207)]=p,exports[_0x59c2c2(0x1ad)]=f,exports[_0x59c2c2(0x1a3)]=P,Object[_0x59c2c2(0x245)](exports,'UniverDocsSdtPlugin',{'enumerable':!0x0,'get':function(){return W;}}),exports[_0x59c2c2(0x186)]=N,exports[_0x59c2c2(0x214)]=k,exports[_0x59c2c2(0x1b2)]=o,exports[_0x59c2c2(0x1fe)]=a,exports[_0x59c2c2(0x1cb)]=A,exports[_0x59c2c2(0x195)]=j,exports['buildSdtValueUpdate']=O,exports[_0x59c2c2(0x25a)]=h,exports[_0x59c2c2(0x221)]=i,exports[_0x59c2c2(0x23d)]=b,exports[_0x59c2c2(0x259)]=D,exports[_0x59c2c2(0x1da)]=C,exports[_0x59c2c2(0x231)]=g,exports[_0x59c2c2(0x1b1)]=_,exports[_0x59c2c2(0x1d6)]=E;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x158b0d=_0x5f5a;(function(_0x868301,_0x27d453){const _0x2fdea1=_0x5f5a,_0x59e64a=_0x868301();while(!![]){try{const _0x386d23=-parseInt(_0x2fdea1(0x19b))/0x1+parseInt(_0x2fdea1(0x21b))/0x2*(-parseInt(_0x2fdea1(0x206))/0x3)+parseInt(_0x2fdea1(0x18c))/0x4*(parseInt(_0x2fdea1(0x1d2))/0x5)+parseInt(_0x2fdea1(0x226))/0x6+-parseInt(_0x2fdea1(0x21e))/0x7+parseInt(_0x2fdea1(0x1cd))/0x8+parseInt(_0x2fdea1(0x232))/0x9;if(_0x386d23===_0x27d453)break;else _0x59e64a['push'](_0x59e64a['shift']());}catch(_0x210aad){_0x59e64a['push'](_0x59e64a['shift']());}}}(_0x1a29,0xa0b00));import{buildDeleteTableRowsMutationActions as _0x4b36b0,getTableRangeById as _0x3600f0}from'@univerjs-pro/docs-table';import{BuildTextUtils as _0x1010df,CommandType as _0x1ca24f,CustomRangeType as _0x4c78f2,DataStreamTreeTokenType as _0x58e487,DependentOn as _0x30d43f,ICommandService as _0x44ee9f,IConfigService as _0x2c0dd6,IResourceManagerService as _0x3dfb9d,IUniverInstanceService as _0x2513b9,Inject as _0xb880a4,Injector as _0x4dc500,JSON1 as _0x2843d8,JSONX as _0x5a8054,Plugin as _0x5e7bfd,SliceBodyType as _0x504940,TextX as _0x548ebb,TextXActionType as _0x5c22f7,Tools as _0x256650,UniverInstanceType as _0x598cde,createParagraphId as _0x386493,generateRandomId as _0x3e49ce,getBodySliceForTextXAction as _0x398055,getRichTextEditPath as _0x3091e6,getSdtBindingKey as _0x4315de,getSdtBindingValue as _0x2382ce,merge as _0x3cd4f9}from'@univerjs/core';import{RichTextEditingMutation as _0x5435eb,UniverDocsPlugin as _0x2af2af}from'@univerjs/docs';import{UniverLicensePlugin as _0x2e35d2}from'@univerjs-pro/license';function E(_0x39fb60){const _0x232989=_0x5f5a;let _0x3d73f9;do _0x3d73f9=String(Math[_0x232989(0x1b2)](Math[_0x232989(0x22f)]()*0x7fffffff));while(_0x39fb60[_0x232989(0x18a)](_0x3d73f9));return _0x39fb60[_0x232989(0x1f2)](_0x3d73f9),_0x3d73f9;}function ae(_0x5bbe5b,_0x248e83){const _0x358069=_0x5f5a;var _0x30748e,_0x39c17b,_0x872d74,_0x23964f,_0x2652d0,_0xe22f8f;if(!O(_0x5bbe5b,_0x248e83))return;let _0x583dae=k(_0x5bbe5b,_0x248e83),_0x103a18=new Set(_0x583dae[_0x358069(0x18b)](_0x43b17b=>_0x43b17b[_0x358069(0x1f5)])),_0x5eee4b=_0x5bbe5b[_0x358069(0x1ad)]['charAt'](_0x248e83[_0x358069(0x21f)]+0x1)==='\x0d',_0x55e09a=_0x248e83[_0x358069(0x21f)]+0x1+Number(_0x5eee4b),_0x1a9cc2=_0x256650[_0x358069(0x1fa)](_0x398055(_0x5bbe5b,_0x248e83[_0x358069(0x1e0)],_0x55e09a,!0x1,_0x504940[_0x358069(0x1f1)]));if(!_0x1a9cc2[_0x358069(0x1ad)])return;let _0x36163c=new Set((_0x30748e=_0x5bbe5b[_0x358069(0x1c6)])==null?void 0x0:_0x30748e['filter'](_0x41c383=>!_0x103a18[_0x358069(0x18a)](_0x41c383[_0x358069(0x1f5)])&&_0x248e83[_0x358069(0x1e0)]<=_0x41c383['startIndex']&&_0x41c383['endIndex']<=_0x248e83[_0x358069(0x21f)])[_0x358069(0x18b)](_0x49ae8f=>_0x49ae8f[_0x358069(0x1f5)])),_0x5760b1=new Set((_0x39c17b=_0x5bbe5b[_0x358069(0x1c6)])==null?void 0x0:_0x39c17b[_0x358069(0x19d)](_0x4c0ab7=>_0x4c0ab7[_0x358069(0x202)]===_0x4c78f2[_0x358069(0x23a)])['map'](_0xc01dd9=>_0xc01dd9[_0x358069(0x224)][_0x358069(0x218)]));_0x1a9cc2[_0x358069(0x1c6)]=(_0x872d74=_0x1a9cc2['customRanges'])==null?void 0x0:_0x872d74[_0x358069(0x19d)](_0x592a1d=>_0x36163c[_0x358069(0x18a)](_0x592a1d['rangeId'])),(_0x23964f=_0x1a9cc2[_0x358069(0x1c6)])==null||_0x23964f[_0x358069(0x234)](_0x42a62b=>{const _0x47bb6d=_0x358069;_0x42a62b[_0x47bb6d(0x1f5)]=_0x3e49ce(),_0x42a62b[_0x47bb6d(0x202)]===_0x4c78f2[_0x47bb6d(0x23a)]&&(_0x42a62b[_0x47bb6d(0x224)]['ooxmlId']=E(_0x5760b1));});let _0x1daca0=new Set((_0x2652d0=_0x5bbe5b[_0x358069(0x1b7)])==null?void 0x0:_0x2652d0['map'](_0x199627=>_0x199627['paragraphId']));(_0xe22f8f=_0x1a9cc2[_0x358069(0x1b7)])==null||_0xe22f8f['forEach'](_0x4041f3=>{const _0xe3f105=_0x358069;_0x4041f3[_0xe3f105(0x1dd)]=_0x386493(_0x1daca0);});let _0x52f7e6=_0x55e09a,_0x49c5a2=new _0x548ebb()[_0x358069(0x22b)](_0x52f7e6)['insert'](_0x1a9cc2[_0x358069(0x1ad)][_0x358069(0x23b)],_0x1a9cc2)['serialize'](),_0xc6094c=_0x256650[_0x358069(0x1fa)](_0x5bbe5b);_0x548ebb['apply'](_0xc6094c,_0x49c5a2);for(let _0x3f72ef of _0x583dae){var _0x35cb60;let _0x15d703=(_0x35cb60=_0xc6094c['customRanges'])==null?void 0x0:_0x35cb60[_0x358069(0x1e7)](_0x120364=>_0x120364[_0x358069(0x1f5)]===_0x3f72ef['rangeId']);if(!_0x15d703)return;_0x15d703['startIndex']=_0x3f72ef[_0x358069(0x1e0)],_0x15d703[_0x358069(0x21f)]=_0x3f72ef['endIndex']+_0x1a9cc2[_0x358069(0x1ad)][_0x358069(0x23b)];}return{'actions':_0x548ebb[_0x358069(0x222)](_0x49c5a2,new _0x548ebb()[_0x358069(0x18d)](_0x583dae['map'](_0x191ef3=>({'rangeId':_0x191ef3['rangeId'],'range':_0xc6094c[_0x358069(0x1c6)][_0x358069(0x1e7)](_0xd7b6c8=>_0xd7b6c8[_0x358069(0x1f5)]===_0x191ef3[_0x358069(0x1f5)])})))['serialize']()),'caretOffset':_0x52f7e6+_0x1a9cc2[_0x358069(0x1ad)][_0x358069(0x23b)]-Number(_0x5eee4b)};}function D(_0x54507c,_0x3e492c){const _0x3b8649=_0x5f5a;if(!O(_0x54507c,_0x3e492c))return;let _0x3cca4b=_0x54507c[_0x3b8649(0x1ad)][_0x3b8649(0x1a4)](_0x3e492c[_0x3b8649(0x21f)]+0x1)==='\x0d',_0x600e1c=_0x3e492c[_0x3b8649(0x21f)]+0x1+Number(_0x3cca4b);return{'actions':_0x1010df['selection']['delete']([{'startOffset':_0x3e492c[_0x3b8649(0x1e0)],'endOffset':_0x600e1c,'collapsed':!0x1}],_0x54507c,0x0,null,!0x1),'caretOffset':_0x3e492c[_0x3b8649(0x1e0)]};}function O(_0x1ed35f,_0x5e7873){const _0x29c5c6=_0x5f5a;var _0x3d29bf;if(_0x5e7873[_0x29c5c6(0x224)][_0x29c5c6(0x1ef)]!==_0x29c5c6(0x1ae)||[_0x29c5c6(0x220),_0x29c5c6(0x197),'table'][_0x29c5c6(0x19a)](_0x5e7873[_0x29c5c6(0x224)][_0x29c5c6(0x1fd)]))return!0x1;let _0x13892a=A(_0x1ed35f,_0x5e7873);return!(!_0x13892a||(_0x3d29bf=_0x13892a[_0x29c5c6(0x224)][_0x29c5c6(0x22e)])!=null&&_0x3d29bf[_0x29c5c6(0x1e3)]);}function k(_0x32e053,_0x38b59c){const _0x154c77=_0x5f5a;let _0x44c858=_0x32e053['customRanges']??[],_0x1b7533=_0x44c858[_0x154c77(0x235)](_0x501704=>_0x501704[_0x154c77(0x1f5)]===_0x38b59c[_0x154c77(0x1f5)]);return _0x44c858[_0x154c77(0x19d)]((_0x47b09c,_0x3ece3e)=>_0x47b09c[_0x154c77(0x202)]===_0x4c78f2['SDT']&&_0x47b09c['rangeId']!==_0x38b59c[_0x154c77(0x1f5)]&&_0x47b09c[_0x154c77(0x1e0)]<=_0x38b59c[_0x154c77(0x1e0)]&&_0x38b59c[_0x154c77(0x21f)]<=_0x47b09c[_0x154c77(0x21f)]&&(_0x47b09c[_0x154c77(0x1e0)]<_0x38b59c[_0x154c77(0x1e0)]||_0x38b59c[_0x154c77(0x21f)]<_0x47b09c['endIndex']||_0x3ece3e>_0x1b7533));}function oe(_0x31aca4,_0x506d1b,_0x1c0b71=[_0x158b0d(0x1c5)]){const _0x39ff5a=_0x158b0d;var _0x4100b0;let _0x3467b0=_0x31aca4['body'];if(!_0x3467b0||_0x506d1b[_0x39ff5a(0x224)]['kind']!==_0x39ff5a(0x1ae)||_0x506d1b[_0x39ff5a(0x224)]['placement']!=='row')return;let _0x12b1a4=A(_0x3467b0,_0x506d1b);if(!(!_0x12b1a4||(_0x4100b0=_0x12b1a4[_0x39ff5a(0x224)][_0x39ff5a(0x22e)])!=null&&_0x4100b0[_0x39ff5a(0x1e3)]))for(let _0x14bcb5 of _0x3467b0[_0x39ff5a(0x1a5)]??[]){if(_0x14bcb5[_0x39ff5a(0x1e0)]>_0x506d1b[_0x39ff5a(0x1e0)]||_0x14bcb5[_0x39ff5a(0x21f)]<=_0x506d1b[_0x39ff5a(0x21f)])continue;let _0x5a03d5=_0x3600f0(_0x31aca4,_0x14bcb5['tableId']);if(!_0x5a03d5)continue;let _0x3cabdd=_0x5a03d5[_0x39ff5a(0x1d3)][_0x39ff5a(0x235)](_0x1ae20c=>_0x1ae20c[_0x39ff5a(0x209)]===_0x506d1b['startIndex']),_0x4ea013=_0x5a03d5[_0x39ff5a(0x1d3)][_0x39ff5a(0x235)](_0x58cafc=>_0x58cafc[_0x39ff5a(0x1db)]===_0x506d1b[_0x39ff5a(0x21f)]);if(_0x3cabdd<0x0||_0x4ea013<_0x3cabdd)continue;let _0x97f82d=_0x4b36b0(_0x31aca4,_0x14bcb5[_0x39ff5a(0x21d)],_0x3cabdd,_0x4ea013,_0x1c0b71);if(!_0x97f82d)return;let _0x4ee035=_0x97f82d['deleteTable']?_0x5a03d5[_0x39ff5a(0x1db)]-_0x5a03d5[_0x39ff5a(0x209)]:_0x506d1b['endIndex']-_0x506d1b[_0x39ff5a(0x1e0)]+0x1;return{'actions':_0x97f82d['actions'],'caretOffset':Math[_0x39ff5a(0x1b1)](0x0,Math[_0x39ff5a(0x1ab)](_0x506d1b['startIndex'],_0x3467b0[_0x39ff5a(0x1ad)][_0x39ff5a(0x23b)]-_0x4ee035-0x2))};}}function A(_0x221796,_0x312ee8){const _0x1edc33=_0x158b0d;return k(_0x221796,_0x312ee8)['filter'](_0xcc4008=>_0xcc4008['properties'][_0x1edc33(0x1ef)]===_0x1edc33(0x22e))[_0x1edc33(0x21c)]((_0x550250,_0x55022f)=>_0x550250[_0x1edc33(0x21f)]-_0x550250[_0x1edc33(0x1e0)]-(_0x55022f[_0x1edc33(0x21f)]-_0x55022f[_0x1edc33(0x1e0)]))[0x0];}async function j(_0x3134c2,_0x553948,_0x2d0c62){const _0xeb56f7=_0x158b0d;var _0x2041b8,_0x14240e;let _0x1249a1=_0x3134c2[_0xeb56f7(0x193)](_0x2513b9),_0xc1b3a3=_0x553948[_0xeb56f7(0x231)]?_0x1249a1[_0xeb56f7(0x205)](_0x553948[_0xeb56f7(0x231)],_0x598cde['UNIVER_DOC']):_0x1249a1[_0xeb56f7(0x1a1)](_0x598cde[_0xeb56f7(0x1e6)]),_0x40d22b=_0xc1b3a3==null||(_0x2041b8=_0xc1b3a3[_0xeb56f7(0x214)](_0x553948[_0xeb56f7(0x1fb)]))==null?void 0x0:_0x2041b8[_0xeb56f7(0x237)](),_0x1c1c67=_0x40d22b==null||(_0x14240e=_0x40d22b[_0xeb56f7(0x1c6)])==null?void 0x0:_0x14240e[_0xeb56f7(0x1e7)](_0x411e35=>_0x411e35[_0xeb56f7(0x202)]===_0x4c78f2[_0xeb56f7(0x23a)]&&_0x411e35[_0xeb56f7(0x1f5)]===_0x553948[_0xeb56f7(0x1f5)]);if(!_0xc1b3a3||!_0x40d22b||!_0x1c1c67)return!0x1;let _0xbdc6b=_0x3091e6(_0xc1b3a3,_0x553948['segmentId']),_0x99439f,_0x3504f5;if(_0x1c1c67[_0xeb56f7(0x224)][_0xeb56f7(0x1fd)]===_0xeb56f7(0x220)){let _0x582aa3=!_0x2d0c62&&oe({..._0xc1b3a3[_0xeb56f7(0x208)](),'body':_0x40d22b},_0x1c1c67,_0xbdc6b);if(!_0x582aa3)return!0x1;({actions:_0x99439f,caretOffset:_0x3504f5}=_0x582aa3);}else{let _0x472a87=_0x2d0c62?ae(_0x40d22b,_0x1c1c67):D(_0x40d22b,_0x1c1c67);if(!_0x472a87)return!0x1;_0x99439f=_0x5a8054[_0xeb56f7(0x211)]()[_0xeb56f7(0x1f8)](_0x472a87['actions'],_0xbdc6b),_0x3504f5=_0x472a87[_0xeb56f7(0x238)];}let _0x13da07=_0x2d0c62?M['id']:N['id'];return!!await _0x3134c2[_0xeb56f7(0x193)](_0x44ee9f)[_0xeb56f7(0x1bb)](_0x5435eb['id'],{'unitId':_0xc1b3a3[_0xeb56f7(0x1a9)](),'historyAction':_0x13da07,'actions':_0x99439f,'textRanges':[{'startOffset':_0x3504f5,'endOffset':_0x3504f5,'collapsed':!0x0,'segmentId':_0x553948[_0xeb56f7(0x1fb)]}],'debounce':!0x1,'trigger':_0x13da07});}const M={'id':'doc.command.duplicate-repeating-sdt-item','type':_0x1ca24f[_0x158b0d(0x191)],'handler':(_0x4c3458,_0x2940a2)=>_0x2940a2!=null&&_0x2940a2[_0x158b0d(0x1f5)]?j(_0x4c3458,_0x2940a2,!0x0):!0x1},N={'id':_0x158b0d(0x1a0),'type':_0x1ca24f[_0x158b0d(0x191)],'handler':(_0x18d38e,_0x5e9a54)=>_0x5e9a54!=null&&_0x5e9a54[_0x158b0d(0x1f5)]?j(_0x18d38e,_0x5e9a54,!0x1):!0x1},P=_0x158b0d(0x1d8);function se(_0x2b60d2,_0x2030e4){const _0x913315=_0x158b0d;var _0x56e372;return _0x2b60d2==null||(_0x56e372=_0x2b60d2[_0x913315(0x1c6)])==null?void 0x0:_0x56e372[_0x913315(0x19d)](_0x5eba17=>_0x5eba17[_0x913315(0x202)]===_0x4c78f2['SDT']&&_0x5eba17[_0x913315(0x1e0)]<=_0x2030e4&&_0x2030e4<=_0x5eba17['endIndex'])[_0x913315(0x21c)]((_0x4ef636,_0x1ffc5e)=>_0x4ef636[_0x913315(0x21f)]-_0x4ef636[_0x913315(0x1e0)]-(_0x1ffc5e[_0x913315(0x21f)]-_0x1ffc5e[_0x913315(0x1e0)]))[0x0];}function F(_0x328644){const _0x5f5187=_0x158b0d;var _0x284645,_0x4b0f75;return((_0x284645=_0x328644['properties'])==null?void 0x0:_0x284645[_0x5f5187(0x1f9)])==='contentLocked'||((_0x4b0f75=_0x328644[_0x5f5187(0x224)])==null?void 0x0:_0x4b0f75[_0x5f5187(0x1f9)])==='sdtContentLocked';}function I(_0x1d7869){const _0xd3c6c4=_0x158b0d;var _0x1efeb5,_0x2c89ea;return((_0x1efeb5=_0x1d7869[_0xd3c6c4(0x224)])==null?void 0x0:_0x1efeb5[_0xd3c6c4(0x1f9)])===_0xd3c6c4(0x19e)||((_0x2c89ea=_0x1d7869['properties'])==null?void 0x0:_0x2c89ea['lock'])==='sdtContentLocked';}function L(_0xa2e85c,_0x4b7430){const _0xdc0c46=_0x158b0d;let _0x1f2260=Number[_0xdc0c46(0x1a7)](_0xa2e85c??'',0x10);return!/^[\da-f]+$/i['test'](_0xa2e85c??'')||_0x1f2260<=0x0||_0x1f2260>0x10ffff||_0x1f2260>=0xd800&&_0x1f2260<=0xdfff?_0x4b7430:String['fromCodePoint'](_0x1f2260);}function ce(_0x5ab8e9,_0x473809=_0x158b0d(0x1f0),_0x1bffe1){const _0x52b611=_0x158b0d;let _0x1ad518=new Date(_0x5ab8e9);if(Number['isNaN'](_0x1ad518[_0x52b611(0x1aa)]()))return _0x5ab8e9[_0x52b611(0x1d7)](0x0,0xa);let _0x571cc2=_0x3573e2=>{const _0x1a9ec9=_0x52b611;try{return new Intl[(_0x1a9ec9(0x1a3))](_0x1bffe1||void 0x0,{..._0x3573e2,'timeZone':_0x1a9ec9(0x1c7)})['format'](_0x1ad518);}catch{return new Intl['DateTimeFormat'](void 0x0,{..._0x3573e2,'timeZone':_0x1a9ec9(0x1c7)})[_0x1a9ec9(0x1ff)](_0x1ad518);}},_0x46ee75=_0x1ad518[_0x52b611(0x1b8)](),_0x39c08a=_0x1ad518[_0x52b611(0x22c)]()+0x1,_0x19894c=_0x1ad518[_0x52b611(0x1de)](),_0x2b20fb=!_0x1bffe1||_0x1bffe1[_0x52b611(0x1f7)]()['startsWith']('en'),_0x538224={'dddd':_0x571cc2({'weekday':_0x52b611(0x221)}),'ddd':_0x2b20fb?[_0x52b611(0x203),_0x52b611(0x20c),_0x52b611(0x1a8),_0x52b611(0x1e5),_0x52b611(0x1da),_0x52b611(0x1bf),_0x52b611(0x1e8)][_0x1ad518[_0x52b611(0x1c1)]()]:_0x571cc2({'weekday':_0x52b611(0x1eb)}),'MMMM':_0x571cc2({'month':'long'}),'MMM':_0x2b20fb?['Jan',_0x52b611(0x198),_0x52b611(0x1b4),_0x52b611(0x239),_0x52b611(0x1a6),'Jun',_0x52b611(0x1c8),_0x52b611(0x1b3),_0x52b611(0x216),'Oct',_0x52b611(0x1fe),_0x52b611(0x1cc)][_0x39c08a-0x1]:_0x571cc2({'month':_0x52b611(0x1eb)}),'yyyy':String(_0x46ee75)[_0x52b611(0x1d6)](0x4,'0'),'yy':String(_0x46ee75%0x64)['padStart'](0x2,'0'),'MM':String(_0x39c08a)['padStart'](0x2,'0'),'M':String(_0x39c08a),'dd':String(_0x19894c)[_0x52b611(0x1d6)](0x2,'0'),'d':String(_0x19894c)};return _0x473809[_0x52b611(0x1ce)](/dddd|ddd|MMMM|MMM|yyyy|yy|MM|M|dd|d/g,_0x5ea24f=>_0x538224[_0x5ea24f]);}function R(_0x356421,_0x6eb815){const _0x376da6=_0x158b0d;let _0x4949ee=_0x356421[_0x376da6(0x224)];if(_0x6eb815[_0x376da6(0x229)])return _0x6eb815[_0x376da6(0x1f4)];if(_0x4949ee[_0x376da6(0x1ef)]==='checkbox'){var _0x4cb4bd,_0x418fe3,_0x4e1d50;let _0x17465f=_0x6eb815[_0x376da6(0x1b9)]??!((_0x4cb4bd=_0x4949ee[_0x376da6(0x227)])!=null&&_0x4cb4bd[_0x376da6(0x1b9)]),_0x25757e={..._0x4949ee[_0x376da6(0x227)],..._0x6eb815[_0x376da6(0x1cb)]};return _0x17465f?L((_0x418fe3=_0x25757e[_0x376da6(0x230)])==null?void 0x0:_0x418fe3[_0x376da6(0x1f4)],'☒'):L((_0x4e1d50=_0x25757e[_0x376da6(0x23d)])==null?void 0x0:_0x4e1d50[_0x376da6(0x1f4)],'☐');}if(_0x4949ee[_0x376da6(0x1ef)]===_0x376da6(0x1a2)||_0x4949ee['kind']===_0x376da6(0x1e1)){var _0x50a67a;let _0x434a7f=_0x6eb815['value'];return _0x434a7f==null?void 0x0:((_0x50a67a=_0x4949ee[_0x376da6(0x18f)])==null||(_0x50a67a=_0x50a67a[_0x376da6(0x1e7)](_0x44badf=>_0x44badf['value']===_0x434a7f))==null?void 0x0:_0x50a67a[_0x376da6(0x194)])??_0x434a7f;}if(_0x4949ee[_0x376da6(0x1ef)]===_0x376da6(0x201)){var _0x98f915,_0x52ea24;let _0x4b2839=_0x6eb815[_0x376da6(0x1ba)]??_0x6eb815[_0x376da6(0x1f4)];return _0x4b2839==null?void 0x0:ce(_0x4b2839,(_0x98f915=_0x4949ee[_0x376da6(0x201)])==null?void 0x0:_0x98f915[_0x376da6(0x1ff)],(_0x52ea24=_0x4949ee[_0x376da6(0x201)])==null?void 0x0:_0x52ea24['locale']);}return _0x6eb815[_0x376da6(0x1f4)];}function le(_0x3fe0e7,_0x41cb99){const _0xe3b602=_0x158b0d;var _0x254c2f;let _0x4e666d=_0x3cd4f9({},_0x256650['deepClone'](_0x3fe0e7[_0xe3b602(0x224)]),_0x256650[_0xe3b602(0x1fa)](_0x41cb99[_0xe3b602(0x224)]??{}));if((_0x254c2f=_0x41cb99[_0xe3b602(0x224)])!=null&&_0x254c2f[_0xe3b602(0x18f)]&&(_0x4e666d[_0xe3b602(0x18f)]=_0x256650[_0xe3b602(0x1fa)](_0x41cb99[_0xe3b602(0x224)][_0xe3b602(0x18f)])),_0x4e666d[_0xe3b602(0x1ef)]===_0xe3b602(0x227)){var _0x26eed5;_0x4e666d[_0xe3b602(0x227)]={..._0x4e666d[_0xe3b602(0x227)],..._0x256650[_0xe3b602(0x1fa)](_0x41cb99['checkboxStyle']),'checked':_0x41cb99[_0xe3b602(0x1b9)]??!((_0x26eed5=_0x4e666d[_0xe3b602(0x227)])!=null&&_0x26eed5[_0xe3b602(0x1b9)])};}else{if(_0x4e666d[_0xe3b602(0x1ef)]===_0xe3b602(0x201)&&!_0x41cb99[_0xe3b602(0x229)]){var _0xcb2eb7;_0x4e666d[_0xe3b602(0x201)]={..._0x4e666d['date'],'fullDate':_0x41cb99[_0xe3b602(0x1ba)]??_0x41cb99[_0xe3b602(0x1f4)]??((_0xcb2eb7=_0x4e666d[_0xe3b602(0x201)])==null?void 0x0:_0xcb2eb7[_0xe3b602(0x1ba)])};}}return _0x4e666d[_0xe3b602(0x229)]=_0x41cb99[_0xe3b602(0x229)]??!0x1,_0x4e666d['dataBinding']&&={..._0x4e666d[_0xe3b602(0x200)],'dirty':!0x0},_0x4e666d;}function ue(_0x1231b4,_0x19df78,_0x1518f8,_0x3478dc,_0x813c4f,_0x2ffea6){const _0x25a711=_0x158b0d;var _0x3de6d1,_0x117bf4,_0x5a112b,_0x29e748;let _0x2d389d=[..._0x1518f8][_0x25a711(0x199)]((_0x8d468c,_0x58117d)=>_0x8d468c+_0x58117d['length'],0x0),_0x269ecf=(_0x3de6d1=_0x1231b4[_0x25a711(0x210)])==null?void 0x0:_0x3de6d1['find'](_0x32afa5=>_0x32afa5['st']<=_0x2ffea6&&_0x2ffea6<_0x32afa5['ed']),_0x3ef00a=_0x3478dc[_0x25a711(0x1ef)]===_0x25a711(0x227)?(_0x117bf4=_0x3478dc[_0x25a711(0x227)])!=null&&_0x117bf4[_0x25a711(0x1b9)]?(_0x5a112b=_0x3478dc['checkbox']['checkedState'])==null?void 0x0:_0x5a112b[_0x25a711(0x1ec)]:(_0x29e748=_0x3478dc[_0x25a711(0x227)])==null||(_0x29e748=_0x29e748[_0x25a711(0x23d)])==null?void 0x0:_0x29e748[_0x25a711(0x1ec)]:void 0x0,_0x3341cb=_0x269ecf!=null&&_0x269ecf['ts']?_0x256650[_0x25a711(0x1fa)](_0x269ecf['ts']):{};return _0x3ef00a&&!_0x3341cb['ff']&&(_0x3341cb['ff']=_0x3ef00a),{'dataStream':_0x1518f8,'textRuns':_0x269ecf!=null&&_0x269ecf['ts']||_0x3ef00a?[{'st':0x0,'ed':_0x2d389d,'ts':_0x3341cb}]:void 0x0,'customRanges':_0x813c4f?[{'startIndex':0x0,'endIndex':Math[_0x25a711(0x1b1)](0x0,_0x2d389d-0x1),'rangeId':_0x19df78[_0x25a711(0x1f5)],'rangeType':_0x4c78f2[_0x25a711(0x23a)],'wholeEntity':!0x1,'properties':_0x3478dc}]:void 0x0};}function z(_0x4346eb,_0xd0ba15){const _0x346ee7=_0x158b0d;let _0x365406=_0xd0ba15[_0x346ee7(0x1e0)],_0x5aa8cc=_0xd0ba15[_0x346ee7(0x21f)]+0x1;for(_0x4346eb[_0x346ee7(0x1ad)][_0x365406]===_0x58e487[_0x346ee7(0x228)]&&_0x4346eb['dataStream'][_0x5aa8cc-0x1]===_0x58e487[_0x346ee7(0x1ea)]&&(_0x365406++,_0x5aa8cc--);_0x365406<_0x5aa8cc&&B(_0x4346eb['dataStream'][_0x346ee7(0x1ee)](_0x365406));)_0x365406++;for(;_0x5aa8cc>_0x365406&&B(_0x4346eb[_0x346ee7(0x1ad)]['charCodeAt'](_0x5aa8cc-0x1));)_0x5aa8cc--;return{'startOffset':_0x365406,'endOffset':_0x5aa8cc};}function B(_0x343641){return _0x343641<0x20&&_0x343641!==0x9;}async function de(_0x1453e8,_0x187e7b,_0x3e5d00,_0x3b51e5,_0x4a2c55,_0x32db96,_0x16718a){const _0x10481c=_0x158b0d;let _0x40c99c=U(_0x3e5d00,_0x3b51e5,_0x4a2c55,_0x32db96);if(!_0x40c99c)return!0x1;let _0x2056af={'unitId':_0x187e7b[_0x10481c(0x1a9)](),'historyAction':P,'actions':_0x5a8054[_0x10481c(0x211)]()[_0x10481c(0x1f8)](_0x40c99c[_0x10481c(0x19c)],_0x3091e6(_0x187e7b,_0x16718a)),'textRanges':[{'startOffset':_0x40c99c[_0x10481c(0x238)],'endOffset':_0x40c99c[_0x10481c(0x238)],'collapsed':!0x0,'segmentId':_0x16718a}],'debounce':!0x1,'trigger':P};return V(_0x187e7b,_0x2056af),!!await _0x1453e8['get'](_0x44ee9f)[_0x10481c(0x1bb)](_0x5435eb['id'],_0x2056af);}function V(_0x409031,_0x4f40f6){const _0x8807ef=_0x158b0d;let _0x398b22=_0x409031[_0x8807ef(0x208)](),_0x2d2b5e=['',...Object[_0x8807ef(0x212)](_0x398b22[_0x8807ef(0x1d1)]??{}),...Object[_0x8807ef(0x212)](_0x398b22[_0x8807ef(0x20a)]??{}),...Object[_0x8807ef(0x212)](_0x398b22[_0x8807ef(0x223)]??{})]['flatMap'](_0x4a37c6=>{const _0x16f674=_0x8807ef;var _0xfadaa,_0x57c655;let _0x1ba67f=(_0xfadaa=_0x409031[_0x16f674(0x214)](_0x4a37c6))==null?void 0x0:_0xfadaa[_0x16f674(0x237)]();return(_0x1ba67f==null||(_0x57c655=_0x1ba67f[_0x16f674(0x1c6)])==null?void 0x0:_0x57c655[_0x16f674(0x19d)](_0x707c65=>_0x707c65[_0x16f674(0x202)]===_0x4c78f2[_0x16f674(0x23a)]&&!!_0x4315de(_0x707c65))[_0x16f674(0x18b)](_0x59a7f6=>({'segmentId':_0x4a37c6,'range':_0x59a7f6,'body':_0x1ba67f})))??[];});if(_0x2d2b5e[_0x8807ef(0x23b)]<0x2)return;let _0xf80c89=!0x1,_0x56b46e=new Set(),_0x3e576a=_0x2843d8['type']['readCursor'](_0x4f40f6['actions']);if(_0x3e576a['traverse'](null,_0x37b39b=>{const _0x1f5cf0=_0x8807ef;if(_0x37b39b['et']!==_0x548ebb['id']||!Array[_0x1f5cf0(0x1df)](_0x37b39b['e']))return;let _0x4c4854=_0x3e576a[_0x1f5cf0(0x1e4)](),_0x14a69f=_0x2d2b5e[_0x1f5cf0(0x19d)](({segmentId:_0x4c407f})=>{const _0x448c82=_0x1f5cf0;let _0x4c5a32=_0x3091e6(_0x409031,_0x4c407f);return _0x4c4854[_0x448c82(0x23b)]===_0x4c5a32['length']&&_0x4c5a32[_0x448c82(0x236)]((_0x56dbed,_0x1b56d9)=>_0x56dbed===_0x4c4854[_0x1b56d9]);}),_0x47725d=0x0;for(let _0x136551 of _0x37b39b['e'])if(_0x136551['t']===_0x5c22f7[_0x1f5cf0(0x22a)]){if(_0xf80c89||=_0x14a69f['some'](({range:_0x390fa5})=>_0x47725d>=_0x390fa5[_0x1f5cf0(0x1e0)]&&_0x47725d<=_0x390fa5['endIndex']+0x1),_0x136551[_0x1f5cf0(0x1d9)]){for(let {range:_0x6f95c}of _0x14a69f)_0x6f95c[_0x1f5cf0(0x1f5)]===_0x136551['valueRangeId']&&_0x56b46e[_0x1f5cf0(0x1f2)](_0x6f95c);}}else _0x136551['t']===_0x5c22f7['DELETE']&&(_0xf80c89||=_0x14a69f[_0x1f5cf0(0x18e)](({range:_0x24415b})=>_0x47725d<=_0x24415b[_0x1f5cf0(0x21f)]&&_0x47725d+_0x136551[_0x1f5cf0(0x1c2)]>_0x24415b[_0x1f5cf0(0x1e0)])),_0x47725d+=_0x136551[_0x1f5cf0(0x1c2)];}),!_0xf80c89)return;let _0x12e171=_0x5a8054['apply'](_0x256650[_0x8807ef(0x1fa)](_0x398b22),_0x4f40f6['actions']);if(!_0x12e171)return;let _0x582958=_0x5bbc47=>{const _0x1a1060=_0x8807ef;var _0x2c2823,_0x12b2f4,_0x10c095;return _0x5bbc47?((_0x2c2823=_0x12e171[_0x1a1060(0x1d1)])==null||(_0x2c2823=_0x2c2823[_0x5bbc47])==null?void 0x0:_0x2c2823['body'])??((_0x12b2f4=_0x12e171[_0x1a1060(0x20a)])==null||(_0x12b2f4=_0x12b2f4[_0x5bbc47])==null?void 0x0:_0x12b2f4[_0x1a1060(0x1c5)])??((_0x10c095=_0x12e171[_0x1a1060(0x223)])==null||(_0x10c095=_0x10c095[_0x5bbc47])==null?void 0x0:_0x10c095['body']):_0x12e171['body'];},_0x5e9676=new Map(),_0x2543b8=new Set();for(let {segmentId:_0x41dd85,range:_0x5b0d43,body:_0x51d10f}of _0x2d2b5e){var _0x40700a;let _0x18db33=_0x582958(_0x41dd85),_0x29db47=_0x18db33==null||(_0x40700a=_0x18db33['customRanges'])==null?void 0x0:_0x40700a['find'](_0x18345b=>_0x18345b[_0x8807ef(0x1f5)]===_0x5b0d43[_0x8807ef(0x1f5)]&&_0x18345b[_0x8807ef(0x202)]===_0x4c78f2[_0x8807ef(0x23a)]);if(!_0x29db47||!_0x18db33||F(_0x5b0d43)||_0x4315de(_0x29db47)!==_0x4315de(_0x5b0d43))continue;let _0x34b4e0=_0x2382ce(_0x18db33,_0x29db47);if(_0x34b4e0!==void 0x0&&(_0x56b46e['has'](_0x5b0d43)||_0x34b4e0!==_0x2382ce(_0x51d10f,_0x5b0d43))){let _0x94074e=_0x4315de(_0x29db47);_0x5e9676[_0x8807ef(0x225)](_0x94074e,_0x34b4e0),_0x56b46e['has'](_0x5b0d43)&&_0x2543b8[_0x8807ef(0x1f2)](_0x94074e);}}for(let {segmentId:_0x3c7d94,range:_0x562052}of _0x2d2b5e){var _0x3bc1da,_0x4c29cf;let _0x501fb=_0x582958(_0x3c7d94),_0x247694=_0x501fb==null||(_0x3bc1da=_0x501fb[_0x8807ef(0x1c6)])==null?void 0x0:_0x3bc1da[_0x8807ef(0x1e7)](_0x1aa562=>_0x1aa562[_0x8807ef(0x1f5)]===_0x562052[_0x8807ef(0x1f5)]&&_0x1aa562[_0x8807ef(0x202)]===_0x4c78f2['SDT']),_0x154f20=_0x247694&&_0x5e9676[_0x8807ef(0x193)](_0x4315de(_0x247694)??''),_0xb4340f=!!(_0x247694&&_0x2543b8[_0x8807ef(0x18a)](_0x4315de(_0x247694)??''));if(!_0x247694||!_0x501fb||_0x154f20===void 0x0||_0x2382ce(_0x501fb,_0x247694)===_0x154f20&&(!_0xb4340f||_0x56b46e[_0x8807ef(0x18a)](_0x562052)))continue;let _0x446bd7={'rangeId':_0x247694[_0x8807ef(0x1f5)],'value':_0x154f20};_0x154f20===''&&[_0x8807ef(0x1c3),_0x8807ef(0x1e9),_0x8807ef(0x201),_0x8807ef(0x1e1),_0x8807ef(0x1a2)][_0x8807ef(0x19a)](_0x247694['properties'][_0x8807ef(0x1ef)])&&(_0x446bd7[_0x8807ef(0x229)]=!0x0,_0x446bd7[_0x8807ef(0x1f4)]=H(_0x247694[_0x8807ef(0x224)])),_0x247694['properties'][_0x8807ef(0x1ef)]===_0x8807ef(0x227)&&(_0x446bd7[_0x8807ef(0x1b9)]=_0x154f20===_0x8807ef(0x1d4)||_0x154f20==='1');let _0xa1cc8f=R(_0x247694,_0x446bd7),_0x23477d=_0xa1cc8f==null?void 0x0:U(_0x501fb,_0x247694,_0xa1cc8f,_0x446bd7,_0xb4340f||void 0x0);if(!_0x23477d)continue;let _0x1711e3=_0x5a8054[_0x8807ef(0x211)]()[_0x8807ef(0x1f8)](_0x23477d[_0x8807ef(0x19c)],_0x3091e6(_0x409031,_0x3c7d94));_0x4f40f6[_0x8807ef(0x19c)]=_0x5a8054[_0x8807ef(0x222)](_0x4f40f6['actions'],_0x1711e3),_0x4f40f6[_0x8807ef(0x1cf)]=(_0x4c29cf=_0x4f40f6[_0x8807ef(0x1cf)])==null?void 0x0:_0x4c29cf[_0x8807ef(0x18b)](_0x15838a=>(_0x15838a['segmentId']??_0x4f40f6[_0x8807ef(0x1fb)]??'')===_0x3c7d94?{..._0x15838a,'startOffset':_0x548ebb[_0x8807ef(0x215)](_0x23477d['actions'],_0x15838a[_0x8807ef(0x209)]),'endOffset':_0x548ebb[_0x8807ef(0x215)](_0x23477d['actions'],_0x15838a[_0x8807ef(0x1db)])}:_0x15838a),_0x548ebb[_0x8807ef(0x207)](_0x501fb,_0x23477d[_0x8807ef(0x19c)]);}}function H(_0x3344f6){const _0x4ae757=_0x158b0d;let {placeholder:_0x254b4b,placeholderDocPart:_0x528c1d}=_0x3344f6;return(_0x254b4b===(_0x528c1d==null?void 0x0:_0x528c1d['name'])?void 0x0:_0x254b4b)??(_0x528c1d==null?void 0x0:_0x528c1d[_0x4ae757(0x1c3)])??'​';}function U(_0xe997b,_0x6ff2,_0x53bab9,_0x2d8b93,_0x32c4f7){const _0x4ce5b5=_0x158b0d;let _0x36a20b=le(_0x6ff2,_0x2d8b93),_0x4dfabd=z(_0xe997b,_0x6ff2),_0x148251=_0x4dfabd['startOffset']>_0x6ff2[_0x4ce5b5(0x1e0)]||_0x4dfabd[_0x4ce5b5(0x1db)]<_0x6ff2[_0x4ce5b5(0x21f)]+0x1,_0x2534cb=ue(_0xe997b,_0x6ff2,_0x53bab9,_0x36a20b,!_0x148251,_0x4dfabd[_0x4ce5b5(0x209)]),_0x5e9c2b={'startOffset':_0x4dfabd[_0x4ce5b5(0x209)],'endOffset':_0x4dfabd[_0x4ce5b5(0x1db)],'collapsed':!0x1},_0x1f9230=_0x1010df[_0x4ce5b5(0x23c)][_0x4ce5b5(0x192)]([_0x5e9c2b],_0xe997b,0x0,_0x2534cb);if(_0x148251){var _0xde2de,_0x34619e;let _0x44a9ee=_0x256650['deepClone'](_0xe997b);_0x548ebb[_0x4ce5b5(0x207)](_0x44a9ee,_0x1f9230);let _0x1f7d24=(_0xde2de=_0x44a9ee[_0x4ce5b5(0x1c6)])==null?void 0x0:_0xde2de['find'](_0x47c0e1=>_0x47c0e1['rangeType']===_0x4c78f2['SDT']&&_0x47c0e1[_0x4ce5b5(0x1f5)]===_0x6ff2[_0x4ce5b5(0x1f5)]);if(!_0x1f7d24)return;let _0x209e09=_0x6ff2[_0x4ce5b5(0x1e0)],_0x2b140c=_0x6ff2[_0x4ce5b5(0x21f)]+_0x2534cb[_0x4ce5b5(0x1ad)][_0x4ce5b5(0x23b)]-(_0x4dfabd[_0x4ce5b5(0x1db)]-_0x4dfabd[_0x4ce5b5(0x209)]),_0xb24487=(_0x34619e=_0x44a9ee[_0x4ce5b5(0x1c6)])==null?void 0x0:_0x34619e['filter'](_0xd4ede=>_0x209e09<=_0xd4ede[_0x4ce5b5(0x1e0)]&&_0xd4ede[_0x4ce5b5(0x21f)]<=_0x2b140c)[_0x4ce5b5(0x18b)](_0x4ab93e=>({..._0x256650['deepClone'](_0x4ab93e),'startIndex':_0x4ab93e[_0x4ce5b5(0x1f5)]===_0x6ff2[_0x4ce5b5(0x1f5)]?0x0:_0x4ab93e[_0x4ce5b5(0x1e0)]-_0x209e09,'endIndex':_0x4ab93e[_0x4ce5b5(0x1f5)]===_0x6ff2[_0x4ce5b5(0x1f5)]?_0x2b140c-_0x209e09:_0x4ab93e[_0x4ce5b5(0x21f)]-_0x209e09,'properties':_0x4ab93e[_0x4ce5b5(0x1f5)]===_0x1f7d24[_0x4ce5b5(0x1f5)]?_0x36a20b:_0x256650[_0x4ce5b5(0x1fa)](_0x4ab93e[_0x4ce5b5(0x224)])})),_0x504464=new _0x548ebb()['retain'](_0x209e09)['retain'](_0x2b140c-_0x209e09+0x1,{'dataStream':'','customRanges':_0xb24487});_0x1f9230=_0x548ebb[_0x4ce5b5(0x222)](_0x1f9230,_0x504464['serialize']());}if((_0x32c4f7??[_0x4ce5b5(0x227),_0x4ce5b5(0x201),'dropDownList',_0x4ce5b5(0x1e1)][_0x4ce5b5(0x19a)](_0x36a20b[_0x4ce5b5(0x1ef)]))&&(_0x1f9230=_0x1f9230[_0x4ce5b5(0x18b)](_0x3e320d=>_0x3e320d['t']===_0x5c22f7[_0x4ce5b5(0x190)]?_0x3e320d:{..._0x3e320d,'valueRangeId':_0x6ff2[_0x4ce5b5(0x1f5)]})),_0x2d8b93[_0x4ce5b5(0x224)]){let _0x1d349c=_0x3cd4f9({},_0x256650[_0x4ce5b5(0x1fa)](_0x6ff2['properties']),_0x256650[_0x4ce5b5(0x1fa)](_0x2d8b93['properties']));_0x2d8b93[_0x4ce5b5(0x224)][_0x4ce5b5(0x18f)]&&(_0x1d349c[_0x4ce5b5(0x18f)]=_0x256650['deepClone'](_0x2d8b93[_0x4ce5b5(0x224)][_0x4ce5b5(0x18f)]));let _0x5cbcb5={..._0x6ff2,'endIndex':_0x6ff2['endIndex']+_0x2534cb[_0x4ce5b5(0x1ad)][_0x4ce5b5(0x23b)]-(_0x4dfabd[_0x4ce5b5(0x1db)]-_0x4dfabd[_0x4ce5b5(0x209)])};_0x1f9230[_0x4ce5b5(0x22d)](...new _0x548ebb()[_0x4ce5b5(0x1ed)](_0x5cbcb5,_0x1d349c)[_0x4ce5b5(0x1c4)]());}return{'actions':_0x1f9230,'caretOffset':_0x4dfabd[_0x4ce5b5(0x209)]+_0x2534cb[_0x4ce5b5(0x1ad)][_0x4ce5b5(0x23b)]};}const W={'id':P,'type':_0x1ca24f['COMMAND'],async 'handler'(_0x510d6c,_0x1d82ee){const _0x413976=_0x158b0d;var _0x16b2cc,_0x37fad6;if(!(_0x1d82ee!=null&&_0x1d82ee['rangeId']))return!0x1;let _0x2f7163=_0x510d6c['get'](_0x2513b9),_0x4476e4=_0x1d82ee['unitId']?_0x2f7163[_0x413976(0x205)](_0x1d82ee['unitId'],_0x598cde[_0x413976(0x1e6)]):_0x2f7163[_0x413976(0x1a1)](_0x598cde['UNIVER_DOC']),_0x37efda=_0x4476e4==null||(_0x16b2cc=_0x4476e4['getSelfOrHeaderFooterModel'](_0x1d82ee[_0x413976(0x1fb)]))==null?void 0x0:_0x16b2cc[_0x413976(0x237)](),_0x440842=_0x37efda==null||(_0x37fad6=_0x37efda[_0x413976(0x1c6)])==null?void 0x0:_0x37fad6[_0x413976(0x1e7)](_0x567a50=>_0x567a50[_0x413976(0x202)]===_0x4c78f2[_0x413976(0x23a)]&&_0x567a50[_0x413976(0x1f5)]===_0x1d82ee['rangeId']);if(!_0x4476e4||!_0x37efda||!_0x440842||F(_0x440842))return!0x1;let _0x2b6e9f=R(_0x440842,_0x1d82ee);return _0x2b6e9f!=null&&de(_0x510d6c,_0x4476e4,_0x37efda,_0x440842,_0x2b6e9f,_0x1d82ee,_0x1d82ee['segmentId']);}};function fe(_0x17d0e4,_0x3ffc27){const _0x4c0099=_0x158b0d;if(_0x3ffc27<=_0x17d0e4['startIndex'])return;let _0x44c1d3=_0x256650[_0x4c0099(0x1fa)](_0x17d0e4);return _0x44c1d3[_0x4c0099(0x1e0)]=0x0,_0x44c1d3[_0x4c0099(0x21f)]=_0x3ffc27-_0x17d0e4[_0x4c0099(0x1e0)]-0x1,_0x44c1d3[_0x4c0099(0x224)][_0x4c0099(0x229)]=!0x1,_0x44c1d3[_0x4c0099(0x224)][_0x4c0099(0x200)]&&(_0x44c1d3[_0x4c0099(0x224)]['dataBinding']['dirty']=!0x0),new _0x548ebb()[_0x4c0099(0x22b)](_0x17d0e4[_0x4c0099(0x1e0)])[_0x4c0099(0x22b)](_0x3ffc27-_0x17d0e4[_0x4c0099(0x1e0)],{'dataStream':'','customRanges':[_0x44c1d3]})[_0x4c0099(0x1c4)]();}function G(_0x5e1d64,_0x1aea8a,_0x335cf7,_0x40ff09=!0x1){const _0xb3e81a=_0x158b0d;var _0x4ccd55;let _0x40ddcd=_0x335cf7?_0x3cd4f9({},_0x256650['deepClone'](_0x1aea8a['properties']),_0x256650[_0xb3e81a(0x1fa)](_0x335cf7)):_0x1aea8a[_0xb3e81a(0x224)];_0x335cf7!=null&&_0x335cf7[_0xb3e81a(0x18f)]&&(_0x40ddcd[_0xb3e81a(0x18f)]=_0x256650[_0xb3e81a(0x1fa)](_0x335cf7[_0xb3e81a(0x18f)]));let _0x25011a=new _0x548ebb();return _0x40ff09&&_0x5e1d64['dataStream'][_0x1aea8a['startIndex']]===_0x58e487['CUSTOM_RANGE_START']&&_0x5e1d64[_0xb3e81a(0x1ad)][_0x1aea8a[_0xb3e81a(0x21f)]]===_0x58e487['CUSTOM_RANGE_END']&&!((_0x4ccd55=_0x5e1d64['customRanges'])!=null&&_0x4ccd55[_0xb3e81a(0x18e)](_0x21a9d4=>_0x21a9d4[_0xb3e81a(0x1f5)]!==_0x1aea8a[_0xb3e81a(0x1f5)]&&_0x21a9d4[_0xb3e81a(0x1e0)]===_0x1aea8a[_0xb3e81a(0x1e0)]&&_0x21a9d4[_0xb3e81a(0x21f)]===_0x1aea8a['endIndex']))&&_0x25011a['retain'](_0x1aea8a['startIndex'])[_0xb3e81a(0x192)](0x1)[_0xb3e81a(0x22b)](_0x1aea8a[_0xb3e81a(0x21f)]-_0x1aea8a['startIndex']-0x1)['delete'](0x1),_0x40ff09?_0x25011a['updateCustomRanges']([{'rangeId':_0x1aea8a['rangeId'],'range':null}]):_0x25011a['updateCustomRangeProperties'](_0x1aea8a,_0x40ddcd),{'actions':_0x25011a[_0xb3e81a(0x1c4)](),'caretOffset':_0x1aea8a['startIndex']};}function _0x1a29(){const _0x403dbf=['toLowerCase','editOp','lock','deepClone','segmentId','registerPluginResource','placement','Nov','format','dataBinding','date','rangeType','Sun','type','getUnit','521319HuzkON','apply','getSnapshot','startOffset','footers','prototype','Mon','onStarting','docs-sdt.config','symbol','textRuns','getInstance','keys','DOC_SDT_CUSTOM_XML_PLUGIN','getSelfOrHeaderFooterModel','transformPosition','Sep','_commandService','ooxmlId','registerCommand','setConfig','2klzGRS','sort','tableId','8201928vusEKD','endIndex','row','long','compose','notes','properties','set','6532158IBLsBY','checkbox','CUSTOM_RANGE_START','showingPlaceholder','INSERT','retain','getUTCMonth','push','repeatingSection','random','checkedState','unitId','7108398DJpNTs','doc.command.update-sdt-properties','forEach','findIndex','every','getBody','caretOffset','Apr','SDT','length','selection','uncheckedState','has','map','93804gBsmxJ','updateCustomRanges','some','listItems','RETAIN','COMMAND','delete','get','displayText','_configService','getOwnPropertyDescriptor','cell','Feb','reduce','includes','853480oEWslY','actions','filter','sdtLocked','_injector','doc.command.delete-repeating-sdt-item','getCurrentUnitOfType','dropDownList','DateTimeFormat','charAt','tables','May','parseInt','Tue','getUnitId','getTime','min','object','dataStream','repeatingSectionItem','constructor','doc.command.remove-sdt','max','floor','Aug','Mar','DOCS_SDT_PLUGIN','packageName','paragraphs','getUTCFullYear','checked','fullDate','executeCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','function','Fri','toPrimitive','getUTCDay','len','text','serialize','body','customRanges','UTC','Jul','disposeWithMe','1.2.0','checkboxStyle','Dec','3513960LNYPkN','replace','textRanges','version','headers','115owfPgG','rows','true','_config','padStart','slice','doc.command.update-sdt-value','valueRangeId','Thu','endOffset','iterator','paragraphId','getUTCDate','isArray','startIndex','comboBox','clear','doNotAllowInsertDelete','getPath','Wed','UNIVER_DOC','find','Sat','richText','CUSTOM_RANGE_END','short','font','updateCustomRangeProperties','charCodeAt','kind','yyyy-MM-dd','copy','add','decorate','value','rangeId','string'];_0x1a29=function(){return _0x403dbf;};return _0x1a29();}async function K(_0x139a51,_0x457b8c,_0x307b28){const _0x2913bf=_0x158b0d;var _0x419168,_0x20a7cf;let _0x3688ce=_0x139a51['get'](_0x2513b9),_0x17cb89=_0x457b8c[_0x2913bf(0x231)]?_0x3688ce['getUnit'](_0x457b8c['unitId'],_0x598cde[_0x2913bf(0x1e6)]):_0x3688ce[_0x2913bf(0x1a1)](_0x598cde[_0x2913bf(0x1e6)]),_0x52aa11=_0x17cb89==null||(_0x419168=_0x17cb89['getSelfOrHeaderFooterModel'](_0x457b8c[_0x2913bf(0x1fb)]))==null?void 0x0:_0x419168['getBody'](),_0x510f2c=_0x52aa11==null||(_0x20a7cf=_0x52aa11[_0x2913bf(0x1c6)])==null?void 0x0:_0x20a7cf[_0x2913bf(0x1e7)](_0x5044dc=>_0x5044dc['rangeType']===_0x4c78f2[_0x2913bf(0x23a)]&&_0x5044dc[_0x2913bf(0x1f5)]===_0x457b8c[_0x2913bf(0x1f5)]);if(!_0x17cb89||!_0x52aa11||!_0x510f2c||_0x307b28&&I(_0x510f2c))return!0x1;let _0x200024=G(_0x52aa11,_0x510f2c,'properties'in _0x457b8c?_0x457b8c[_0x2913bf(0x224)]:void 0x0,_0x307b28);return!_0x200024[_0x2913bf(0x19c)]['length']||!!await _0x139a51[_0x2913bf(0x193)](_0x44ee9f)[_0x2913bf(0x1bb)](_0x5435eb['id'],{'unitId':_0x17cb89[_0x2913bf(0x1a9)](),'historyAction':_0x307b28?J['id']:q['id'],'actions':_0x5a8054[_0x2913bf(0x211)]()['editOp'](_0x200024[_0x2913bf(0x19c)],_0x3091e6(_0x17cb89,_0x457b8c[_0x2913bf(0x1fb)])),'textRanges':[{'startOffset':_0x200024[_0x2913bf(0x238)],'endOffset':_0x200024['caretOffset'],'collapsed':!0x0,'segmentId':_0x457b8c[_0x2913bf(0x1fb)]}],'debounce':!0x1,'trigger':_0x307b28?J['id']:q['id']});}function _0x5f5a(_0x1e41f5,_0x1c135f){_0x1e41f5=_0x1e41f5-0x18a;const _0x1a29f8=_0x1a29();let _0x5f5aca=_0x1a29f8[_0x1e41f5];return _0x5f5aca;}const q={'id':_0x158b0d(0x233),'type':_0x1ca24f[_0x158b0d(0x191)],'handler':(_0x5b35b4,_0x2b60ff)=>_0x2b60ff!=null&&_0x2b60ff[_0x158b0d(0x1f5)]&&_0x2b60ff[_0x158b0d(0x224)]?K(_0x5b35b4,_0x2b60ff,!0x1):!0x1},J={'id':_0x158b0d(0x1b0),'type':_0x1ca24f[_0x158b0d(0x191)],'handler':(_0x21d461,_0x565cca)=>_0x565cca!=null&&_0x565cca[_0x158b0d(0x1f5)]?K(_0x21d461,_0x565cca,!0x0):!0x1};var pe='@univerjs-pro/docs-sdt',me=_0x158b0d(0x1ca);const Y={};function X(_0x27c334,_0x4ef06b){return function(_0x401a42,_0x2029b7){_0x4ef06b(_0x401a42,_0x2029b7,_0x27c334);};}function he(_0x5d23e0,_0x1a4ac9,_0x3d8da1,_0x3dd572){const _0x400c8f=_0x158b0d;var _0x36ebfd=arguments['length'],_0x2e627e=_0x36ebfd<0x3?_0x1a4ac9:_0x3dd572===null?_0x3dd572=Object[_0x400c8f(0x196)](_0x1a4ac9,_0x3d8da1):_0x3dd572,_0x2450be;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x400c8f(0x1be))_0x2e627e=Reflect[_0x400c8f(0x1f3)](_0x5d23e0,_0x1a4ac9,_0x3d8da1,_0x3dd572);else{for(var _0x3adc16=_0x5d23e0[_0x400c8f(0x23b)]-0x1;_0x3adc16>=0x0;_0x3adc16--)(_0x2450be=_0x5d23e0[_0x3adc16])&&(_0x2e627e=(_0x36ebfd<0x3?_0x2450be(_0x2e627e):_0x36ebfd>0x3?_0x2450be(_0x1a4ac9,_0x3d8da1,_0x2e627e):_0x2450be(_0x1a4ac9,_0x3d8da1))||_0x2e627e);}return _0x36ebfd>0x3&&_0x2e627e&&Object[_0x400c8f(0x1bd)](_0x1a4ac9,_0x3d8da1,_0x2e627e),_0x2e627e;}function Z(_0x27fb31){'@babel/helpers - typeof';const _0x407c8b=_0x158b0d;return Z=typeof Symbol=='function'&&typeof Symbol[_0x407c8b(0x1dc)]==_0x407c8b(0x20f)?function(_0x407dfc){return typeof _0x407dfc;}:function(_0x2c400d){const _0x46f51a=_0x407c8b;return _0x2c400d&&typeof Symbol==_0x46f51a(0x1be)&&_0x2c400d[_0x46f51a(0x1af)]===Symbol&&_0x2c400d!==Symbol[_0x46f51a(0x20b)]?_0x46f51a(0x20f):typeof _0x2c400d;},Z(_0x27fb31);}function ge(_0x24888b,_0x1713ed){const _0x466ac0=_0x158b0d;if(Z(_0x24888b)!=_0x466ac0(0x1ac)||!_0x24888b)return _0x24888b;var _0x1d2dc6=_0x24888b[Symbol[_0x466ac0(0x1c0)]];if(_0x1d2dc6!==void 0x0){var _0xf094cf=_0x1d2dc6['call'](_0x24888b,_0x1713ed||'default');if(Z(_0xf094cf)!=_0x466ac0(0x1ac))return _0xf094cf;throw TypeError(_0x466ac0(0x1bc));}return(_0x1713ed===_0x466ac0(0x1f6)?String:Number)(_0x24888b);}function _e(_0x4d1fc0){const _0xe4b35d=_0x158b0d;var _0x1be78b=ge(_0x4d1fc0,_0xe4b35d(0x1f6));return Z(_0x1be78b)==_0xe4b35d(0x20f)?_0x1be78b:_0x1be78b+'';}function Q(_0x4b067b,_0x166f09,_0xd31892){const _0x478a40=_0x158b0d;return(_0x166f09=_e(_0x166f09))in _0x4b067b?Object[_0x478a40(0x1bd)](_0x4b067b,_0x166f09,{'value':_0xd31892,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b067b[_0x166f09]=_0xd31892,_0x4b067b;}let $=class extends _0x5e7bfd{constructor(_0x2c06b8=Y,_0x4d721f,_0x3226d0,_0x3c9da0){const _0x5a29b7=_0x158b0d;super(),this[_0x5a29b7(0x1d5)]=_0x2c06b8,this[_0x5a29b7(0x19f)]=_0x4d721f,this[_0x5a29b7(0x195)]=_0x3226d0,this[_0x5a29b7(0x217)]=_0x3c9da0;let {..._0x45901b}=_0x3cd4f9({},Y,this['_config']);this[_0x5a29b7(0x195)][_0x5a29b7(0x21a)](_0x5a29b7(0x20e),_0x45901b);}[_0x158b0d(0x20d)](){const _0x3fb3c9=_0x158b0d;this[_0x3fb3c9(0x1c9)](this['_commandService'][_0x3fb3c9(0x219)](W)),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x217)][_0x3fb3c9(0x219)](q)),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x217)][_0x3fb3c9(0x219)](J)),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x217)][_0x3fb3c9(0x219)](M)),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x217)][_0x3fb3c9(0x219)](N));let _0xe57019=new Map();this[_0x3fb3c9(0x1c9)]({'dispose':()=>_0xe57019[_0x3fb3c9(0x1e2)]()}),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x19f)][_0x3fb3c9(0x193)](_0x3dfb9d)[_0x3fb3c9(0x1fc)]({'pluginName':_0x3fb3c9(0x213),'businesses':[_0x598cde['UNIVER_DOC']],'parseJson':_0x38679a=>_0x38679a,'onLoad':(_0x1748f7,_0x4c053b)=>{const _0x13bebf=_0x3fb3c9;_0xe57019[_0x13bebf(0x225)](_0x1748f7,_0x4c053b);},'onUnLoad':_0x1ca538=>{_0xe57019['delete'](_0x1ca538);},'toJson':_0x3132b9=>_0xe57019[_0x3fb3c9(0x193)](_0x3132b9)??''}));}};Q($,'pluginName',_0x158b0d(0x1b5)),Q($,_0x158b0d(0x1b6),pe),Q($,_0x158b0d(0x1d0),me),Q($,_0x158b0d(0x204),_0x598cde[_0x158b0d(0x1e6)]),$=he([_0x30d43f(_0x2e35d2,_0x2af2af),X(0x1,_0xb880a4(_0x4dc500)),X(0x2,_0x2c0dd6),X(0x3,_0x44ee9f)],$);export{N as DeleteRepeatingSdtItemCommand,M as DuplicateRepeatingSdtItemCommand,J as RemoveSdtCommand,$ as UniverDocsSdtPlugin,q as UpdateSdtPropertiesCommand,W as UpdateSdtValueCommand,D as buildDeleteRepeatingItemUpdate,ae as buildDuplicateRepeatingItemUpdate,fe as buildRestoredSdtMetadata,G as buildSdtMetadataUpdate,U as buildSdtValueUpdate,se as findSdtAtOffset,E as generateSdtOoxmlId,R as getSdtDisplayValue,H as getSdtPlaceholderText,z as getSdtVisibleContentRange,F as isSdtContentLocked,I as isSdtWrapperLocked,V as synchronizeSdtBindings};
1
+ const _0x33a604=_0x3b28;(function(_0x2f61e1,_0x36162f){const _0x4db3dd=_0x3b28,_0x23a5d9=_0x2f61e1();while(!![]){try{const _0xa2f424=parseInt(_0x4db3dd(0x118))/0x1+parseInt(_0x4db3dd(0x139))/0x2*(parseInt(_0x4db3dd(0x128))/0x3)+parseInt(_0x4db3dd(0x144))/0x4*(-parseInt(_0x4db3dd(0x113))/0x5)+-parseInt(_0x4db3dd(0x10f))/0x6+-parseInt(_0x4db3dd(0x14b))/0x7+-parseInt(_0x4db3dd(0x154))/0x8*(parseInt(_0x4db3dd(0x13b))/0x9)+parseInt(_0x4db3dd(0x10d))/0xa*(parseInt(_0x4db3dd(0xea))/0xb);if(_0xa2f424===_0x36162f)break;else _0x23a5d9['push'](_0x23a5d9['shift']());}catch(_0x2b8521){_0x23a5d9['push'](_0x23a5d9['shift']());}}}(_0x3018,0x9ebe6));import{buildDeleteTableRowsMutationActions as _0x1fc07e,getTableRangeById as _0x21a9f2}from'@univerjs-pro/docs-table';import{BuildTextUtils as _0x48f47d,CommandType as _0x393328,CustomRangeType as _0x27bb75,DataStreamTreeTokenType as _0x419005,DependentOn as _0x4fa5e3,ICommandService as _0x447893,IConfigService as _0x3af909,IResourceManagerService as _0x28ebe2,IUniverInstanceService as _0x28cbea,Inject as _0x5ec263,Injector as _0x520613,JSON1 as _0x39e762,JSONX as _0x34186a,Plugin as _0x2ba91d,SliceBodyType as _0x268fe9,TextX as _0x592230,TextXActionType as _0x23c17d,Tools as _0x5a3600,UniverInstanceType as _0x333dce,createParagraphId as _0x1c344a,generateRandomId as _0x4aeee4,getBodySliceForTextXAction as _0x1238c7,getRichTextEditPath as _0xc57179,getSdtBindingKey as _0x1e6083,getSdtBindingValue as _0x1ca690,merge as _0x1411a4}from'@univerjs/core';import{RichTextEditingMutation as _0x370af1,UniverDocsPlugin as _0x33258a}from'@univerjs/docs';import{UniverLicensePlugin as _0x80e4a4}from'@univerjs-pro/license';function E(_0x7010ca){const _0x157945=_0x3b28;let _0x120df0;do _0x120df0=String(Math[_0x157945(0x160)](Math[_0x157945(0x123)]()*0x7fffffff));while(_0x7010ca[_0x157945(0xe8)](_0x120df0));return _0x7010ca[_0x157945(0xe1)](_0x120df0),_0x120df0;}function ae(_0x11c8e7,_0x30ed71){const _0x218576=_0x3b28;var _0x38864a,_0x5dc59d,_0x4a0937,_0x492b0e,_0x37ad1a,_0x2ea768;if(!O(_0x11c8e7,_0x30ed71))return;let _0x12a17f=k(_0x11c8e7,_0x30ed71),_0x3b8a9c=new Set(_0x12a17f[_0x218576(0x13f)](_0x143220=>_0x143220[_0x218576(0x16b)])),_0x168aa5=_0x11c8e7[_0x218576(0x11a)][_0x218576(0x109)](_0x30ed71['endIndex']+0x1)==='\x0d',_0x113330=_0x30ed71[_0x218576(0xc1)]+0x1+Number(_0x168aa5),_0x29da26=_0x5a3600[_0x218576(0x106)](_0x1238c7(_0x11c8e7,_0x30ed71[_0x218576(0xf6)],_0x113330,!0x1,_0x268fe9[_0x218576(0x13a)]));if(!_0x29da26['dataStream'])return;let _0x468655=new Set((_0x38864a=_0x11c8e7[_0x218576(0x150)])==null?void 0x0:_0x38864a[_0x218576(0xb9)](_0x363769=>!_0x3b8a9c[_0x218576(0xe8)](_0x363769['rangeId'])&&_0x30ed71[_0x218576(0xf6)]<=_0x363769['startIndex']&&_0x363769['endIndex']<=_0x30ed71[_0x218576(0xc1)])[_0x218576(0x13f)](_0x58bddf=>_0x58bddf[_0x218576(0x16b)])),_0x349ad2=new Set((_0x5dc59d=_0x11c8e7[_0x218576(0x150)])==null?void 0x0:_0x5dc59d[_0x218576(0xb9)](_0xbbfcc3=>_0xbbfcc3[_0x218576(0xc5)]===_0x27bb75[_0x218576(0xd8)])[_0x218576(0x13f)](_0x196ddc=>_0x196ddc[_0x218576(0x15d)][_0x218576(0x125)]));_0x29da26[_0x218576(0x150)]=(_0x4a0937=_0x29da26[_0x218576(0x150)])==null?void 0x0:_0x4a0937[_0x218576(0xb9)](_0x413e1f=>_0x468655[_0x218576(0xe8)](_0x413e1f[_0x218576(0x16b)])),(_0x492b0e=_0x29da26[_0x218576(0x150)])==null||_0x492b0e[_0x218576(0xf7)](_0xc3f30d=>{const _0x4eddfa=_0x218576;_0xc3f30d[_0x4eddfa(0x16b)]=_0x4aeee4(),_0xc3f30d[_0x4eddfa(0xc5)]===_0x27bb75['SDT']&&(_0xc3f30d['properties'][_0x4eddfa(0x125)]=E(_0x349ad2));});let _0x44d973=new Set((_0x37ad1a=_0x11c8e7[_0x218576(0xdb)])==null?void 0x0:_0x37ad1a[_0x218576(0x13f)](_0x77ef61=>_0x77ef61['paragraphId']));(_0x2ea768=_0x29da26[_0x218576(0xdb)])==null||_0x2ea768[_0x218576(0xf7)](_0x6a4638=>{_0x6a4638['paragraphId']=_0x1c344a(_0x44d973);});let _0x2bb4a7=_0x113330,_0x3dd355=new _0x592230()[_0x218576(0xf3)](_0x2bb4a7)[_0x218576(0xb5)](_0x29da26['dataStream'][_0x218576(0xfe)],_0x29da26)['serialize'](),_0x5ba90b=_0x5a3600[_0x218576(0x106)](_0x11c8e7);_0x592230[_0x218576(0x108)](_0x5ba90b,_0x3dd355);for(let _0x251edb of _0x12a17f){var _0x3119b7;let _0x22e27b=(_0x3119b7=_0x5ba90b['customRanges'])==null?void 0x0:_0x3119b7['find'](_0x277980=>_0x277980[_0x218576(0x16b)]===_0x251edb['rangeId']);if(!_0x22e27b)return;_0x22e27b[_0x218576(0xf6)]=_0x251edb['startIndex'],_0x22e27b[_0x218576(0xc1)]=_0x251edb[_0x218576(0xc1)]+_0x29da26['dataStream'][_0x218576(0xfe)];}return{'actions':_0x592230[_0x218576(0x137)](_0x3dd355,new _0x592230()['updateCustomRanges'](_0x12a17f[_0x218576(0x13f)](_0x20a32f=>({'rangeId':_0x20a32f[_0x218576(0x16b)],'range':_0x5ba90b[_0x218576(0x150)][_0x218576(0x140)](_0x298c68=>_0x298c68[_0x218576(0x16b)]===_0x20a32f['rangeId'])})))[_0x218576(0x15e)]()),'caretOffset':_0x2bb4a7+_0x29da26['dataStream'][_0x218576(0xfe)]-Number(_0x168aa5)};}function D(_0x2cc76b,_0x395697){const _0x6861a9=_0x3b28;if(!O(_0x2cc76b,_0x395697))return;let _0x396680=_0x2cc76b['dataStream'][_0x6861a9(0x109)](_0x395697[_0x6861a9(0xc1)]+0x1)==='\x0d',_0x4c3b6e=_0x395697['endIndex']+0x1+Number(_0x396680);return{'actions':_0x48f47d['selection']['delete']([{'startOffset':_0x395697[_0x6861a9(0xf6)],'endOffset':_0x4c3b6e,'collapsed':!0x1}],_0x2cc76b,0x0,null,!0x1),'caretOffset':_0x395697['startIndex']};}function O(_0x3a5514,_0x156e26){const _0x417c8b=_0x3b28;var _0x5b7b72;if(_0x156e26['properties']['kind']!=='repeatingSectionItem'||['row',_0x417c8b(0x135),_0x417c8b(0xfb)]['includes'](_0x156e26[_0x417c8b(0x15d)]['placement']))return!0x1;let _0x16b0a0=A(_0x3a5514,_0x156e26);return!(!_0x16b0a0||(_0x5b7b72=_0x16b0a0['properties']['repeatingSection'])!=null&&_0x5b7b72[_0x417c8b(0xbe)]);}function k(_0x27e597,_0x139937){const _0x5760e9=_0x3b28;let _0x17b5a0=_0x27e597['customRanges']??[],_0x2e8747=_0x17b5a0[_0x5760e9(0x101)](_0x1f1ca6=>_0x1f1ca6[_0x5760e9(0x16b)]===_0x139937[_0x5760e9(0x16b)]);return _0x17b5a0[_0x5760e9(0xb9)]((_0x5a3be5,_0x353f5a)=>_0x5a3be5['rangeType']===_0x27bb75[_0x5760e9(0xd8)]&&_0x5a3be5['rangeId']!==_0x139937[_0x5760e9(0x16b)]&&_0x5a3be5[_0x5760e9(0xf6)]<=_0x139937[_0x5760e9(0xf6)]&&_0x139937[_0x5760e9(0xc1)]<=_0x5a3be5[_0x5760e9(0xc1)]&&(_0x5a3be5[_0x5760e9(0xf6)]<_0x139937['startIndex']||_0x139937['endIndex']<_0x5a3be5[_0x5760e9(0xc1)]||_0x353f5a>_0x2e8747));}function oe(_0x4ed688,_0x423c85,_0x4c8f10=[_0x33a604(0xe6)]){const _0x20deef=_0x33a604;var _0x3860ec;let _0x431198=_0x4ed688[_0x20deef(0xe6)];if(!_0x431198||_0x423c85[_0x20deef(0x15d)]['kind']!==_0x20deef(0xd1)||_0x423c85['properties']['placement']!==_0x20deef(0x147))return;let _0x4dff7f=A(_0x431198,_0x423c85);if(!(!_0x4dff7f||(_0x3860ec=_0x4dff7f['properties'][_0x20deef(0x146)])!=null&&_0x3860ec[_0x20deef(0xbe)]))for(let _0x1ffcd8 of _0x431198[_0x20deef(0xd9)]??[]){if(_0x1ffcd8['startIndex']>_0x423c85['startIndex']||_0x1ffcd8[_0x20deef(0xc1)]<=_0x423c85[_0x20deef(0xc1)])continue;let _0x32c18=_0x21a9f2(_0x4ed688,_0x1ffcd8[_0x20deef(0xff)]);if(!_0x32c18)continue;let _0x1f3f56=_0x32c18[_0x20deef(0x130)][_0x20deef(0x101)](_0x4bd332=>_0x4bd332[_0x20deef(0x102)]===_0x423c85[_0x20deef(0xf6)]),_0x26fff0=_0x32c18['rows'][_0x20deef(0x101)](_0x571d7b=>_0x571d7b['endOffset']===_0x423c85['endIndex']);if(_0x1f3f56<0x0||_0x26fff0<_0x1f3f56)continue;let _0x4fbb88=_0x1fc07e(_0x4ed688,_0x1ffcd8[_0x20deef(0xff)],_0x1f3f56,_0x26fff0,_0x4c8f10);if(!_0x4fbb88)return;let _0x423f21=_0x4fbb88[_0x20deef(0xd7)]?_0x32c18[_0x20deef(0x11d)]-_0x32c18[_0x20deef(0x102)]:_0x423c85[_0x20deef(0xc1)]-_0x423c85['startIndex']+0x1;return{'actions':_0x4fbb88[_0x20deef(0xc0)],'caretOffset':Math[_0x20deef(0x116)](0x0,Math[_0x20deef(0xc7)](_0x423c85[_0x20deef(0xf6)],_0x431198[_0x20deef(0x11a)][_0x20deef(0xfe)]-_0x423f21-0x2))};}}function A(_0x550535,_0x35c042){const _0x5a3644=_0x33a604;return k(_0x550535,_0x35c042)[_0x5a3644(0xb9)](_0x145213=>_0x145213['properties'][_0x5a3644(0xed)]===_0x5a3644(0x146))[_0x5a3644(0x14e)]((_0x210f0b,_0x214ace)=>_0x210f0b['endIndex']-_0x210f0b['startIndex']-(_0x214ace[_0x5a3644(0xc1)]-_0x214ace[_0x5a3644(0xf6)]))[0x0];}async function j(_0x3727cc,_0x35cfbe,_0x454a1c){const _0x222e26=_0x33a604;var _0x46e82d,_0x2bcabf;let _0x2563c1=_0x3727cc[_0x222e26(0x151)](_0x28cbea),_0x187c31=_0x35cfbe[_0x222e26(0xe9)]?_0x2563c1[_0x222e26(0x141)](_0x35cfbe[_0x222e26(0xe9)],_0x333dce[_0x222e26(0x169)]):_0x2563c1[_0x222e26(0x152)](_0x333dce[_0x222e26(0x169)]),_0x1659b9=_0x187c31==null||(_0x46e82d=_0x187c31[_0x222e26(0xf4)](_0x35cfbe[_0x222e26(0x15f)]))==null?void 0x0:_0x46e82d[_0x222e26(0xde)](),_0x58534f=_0x1659b9==null||(_0x2bcabf=_0x1659b9[_0x222e26(0x150)])==null?void 0x0:_0x2bcabf[_0x222e26(0x140)](_0x186e40=>_0x186e40[_0x222e26(0xc5)]===_0x27bb75[_0x222e26(0xd8)]&&_0x186e40[_0x222e26(0x16b)]===_0x35cfbe[_0x222e26(0x16b)]);if(!_0x187c31||!_0x1659b9||!_0x58534f)return!0x1;let _0x377e4e=_0xc57179(_0x187c31,_0x35cfbe['segmentId']),_0x4a0bb5,_0x5b743e;if(_0x58534f[_0x222e26(0x15d)][_0x222e26(0xc2)]===_0x222e26(0x147)){let _0x20d44f=!_0x454a1c&&oe({..._0x187c31[_0x222e26(0x104)](),'body':_0x1659b9},_0x58534f,_0x377e4e);if(!_0x20d44f)return!0x1;({actions:_0x4a0bb5,caretOffset:_0x5b743e}=_0x20d44f);}else{let _0xc834b6=_0x454a1c?ae(_0x1659b9,_0x58534f):D(_0x1659b9,_0x58534f);if(!_0xc834b6)return!0x1;_0x4a0bb5=_0x34186a[_0x222e26(0xe3)]()['editOp'](_0xc834b6[_0x222e26(0xc0)],_0x377e4e),_0x5b743e=_0xc834b6[_0x222e26(0x138)];}let _0x23b35a=_0x454a1c?M['id']:N['id'];return!!await _0x3727cc['get'](_0x447893)['executeCommand'](_0x370af1['id'],{'unitId':_0x187c31[_0x222e26(0xfa)](),'historyAction':_0x23b35a,'actions':_0x4a0bb5,'textRanges':[{'startOffset':_0x5b743e,'endOffset':_0x5b743e,'collapsed':!0x0,'segmentId':_0x35cfbe[_0x222e26(0x15f)]}],'debounce':!0x1,'trigger':_0x23b35a});}const M={'id':_0x33a604(0x161),'type':_0x393328['COMMAND'],'handler':(_0x392c1c,_0x3a536e)=>_0x3a536e!=null&&_0x3a536e[_0x33a604(0x16b)]?j(_0x392c1c,_0x3a536e,!0x0):!0x1},N={'id':'doc.command.delete-repeating-sdt-item','type':_0x393328[_0x33a604(0xc9)],'handler':(_0x1a66a3,_0x46979f)=>_0x46979f!=null&&_0x46979f[_0x33a604(0x16b)]?j(_0x1a66a3,_0x46979f,!0x1):!0x1},P=_0x33a604(0x132);function se(_0x18e7f7,_0x12bf27){const _0x289e00=_0x33a604;var _0x4b83c2;return _0x18e7f7==null||(_0x4b83c2=_0x18e7f7[_0x289e00(0x150)])==null?void 0x0:_0x4b83c2[_0x289e00(0xb9)](_0x5a6fcb=>_0x5a6fcb[_0x289e00(0xc5)]===_0x27bb75[_0x289e00(0xd8)]&&_0x5a6fcb[_0x289e00(0xf6)]<=_0x12bf27&&_0x12bf27<=_0x5a6fcb[_0x289e00(0xc1)])['sort']((_0xf04aa8,_0x54b953)=>_0xf04aa8[_0x289e00(0xc1)]-_0xf04aa8['startIndex']-(_0x54b953['endIndex']-_0x54b953[_0x289e00(0xf6)]))[0x0];}function F(_0x4a45dc){const _0x232839=_0x33a604;var _0x4c46e8,_0x182282;return((_0x4c46e8=_0x4a45dc[_0x232839(0x15d)])==null?void 0x0:_0x4c46e8[_0x232839(0x156)])===_0x232839(0xb6)||((_0x182282=_0x4a45dc['properties'])==null?void 0x0:_0x182282[_0x232839(0x156)])===_0x232839(0x119);}function I(_0x24a88f){const _0x39fadf=_0x33a604;var _0x49faaf,_0x9ad67d;return((_0x49faaf=_0x24a88f['properties'])==null?void 0x0:_0x49faaf[_0x39fadf(0x156)])===_0x39fadf(0x165)||((_0x9ad67d=_0x24a88f[_0x39fadf(0x15d)])==null?void 0x0:_0x9ad67d[_0x39fadf(0x156)])==='sdtContentLocked';}function L(_0x59456e,_0x324f6f){const _0x148a6b=_0x33a604;let _0x5617d7=Number[_0x148a6b(0x158)](_0x59456e??'',0x10);return!/^[\da-f]+$/i[_0x148a6b(0xbb)](_0x59456e??'')||_0x5617d7<=0x0||_0x5617d7>0x10ffff||_0x5617d7>=0xd800&&_0x5617d7<=0xdfff?_0x324f6f:String['fromCodePoint'](_0x5617d7);}function ce(_0x2d3db5,_0xdd7597='yyyy-MM-dd',_0x3812b7){const _0x3af797=_0x33a604;let _0x5055ad=new Date(_0x2d3db5);if(Number[_0x3af797(0xd3)](_0x5055ad[_0x3af797(0x10b)]()))return _0x2d3db5[_0x3af797(0xe4)](0x0,0xa);let _0x11b070=_0x31c326=>{const _0x5ecfcb=_0x3af797;try{return new Intl[(_0x5ecfcb(0x16a))](_0x3812b7||void 0x0,{..._0x31c326,'timeZone':_0x5ecfcb(0xf2)})[_0x5ecfcb(0xb7)](_0x5055ad);}catch{return new Intl['DateTimeFormat'](void 0x0,{..._0x31c326,'timeZone':_0x5ecfcb(0xf2)})[_0x5ecfcb(0xb7)](_0x5055ad);}},_0x4d39ab=_0x5055ad['getUTCFullYear'](),_0x32759=_0x5055ad[_0x3af797(0x142)]()+0x1,_0x45b946=_0x5055ad[_0x3af797(0xee)](),_0xd50296=!_0x3812b7||_0x3812b7[_0x3af797(0x14f)]()[_0x3af797(0x14c)]('en'),_0x3a43fa={'dddd':_0x11b070({'weekday':_0x3af797(0x114)}),'ddd':_0xd50296?['Sun',_0x3af797(0xbd),_0x3af797(0xb8),'Wed',_0x3af797(0xfc),'Fri','Sat'][_0x5055ad[_0x3af797(0xce)]()]:_0x11b070({'weekday':_0x3af797(0x168)}),'MMMM':_0x11b070({'month':'long'}),'MMM':_0xd50296?['Jan',_0x3af797(0x129),_0x3af797(0xba),_0x3af797(0x112),'May',_0x3af797(0x127),_0x3af797(0x126),_0x3af797(0xbf),_0x3af797(0x14a),_0x3af797(0x12d),_0x3af797(0x122),_0x3af797(0x134)][_0x32759-0x1]:_0x11b070({'month':_0x3af797(0x168)}),'yyyy':String(_0x4d39ab)['padStart'](0x4,'0'),'yy':String(_0x4d39ab%0x64)[_0x3af797(0x145)](0x2,'0'),'MM':String(_0x32759)[_0x3af797(0x145)](0x2,'0'),'M':String(_0x32759),'dd':String(_0x45b946)[_0x3af797(0x145)](0x2,'0'),'d':String(_0x45b946)};return _0xdd7597[_0x3af797(0xcf)](/dddd|ddd|MMMM|MMM|yyyy|yy|MM|M|dd|d/g,_0x3c9f60=>_0x3a43fa[_0x3c9f60]);}function R(_0x4a647b,_0x5482dc){const _0x50dbd0=_0x33a604;let _0x2b6b7b=_0x4a647b['properties'];if(_0x5482dc['showingPlaceholder'])return _0x5482dc[_0x50dbd0(0x11c)];if(_0x2b6b7b[_0x50dbd0(0xed)]==='checkbox'){var _0x5d947c,_0x1e6d2b,_0x177364;let _0x4274bc=_0x5482dc[_0x50dbd0(0xfd)]??!((_0x5d947c=_0x2b6b7b[_0x50dbd0(0x11b)])!=null&&_0x5d947c[_0x50dbd0(0xfd)]),_0x467b07={..._0x2b6b7b[_0x50dbd0(0x11b)],..._0x5482dc['checkboxStyle']};return _0x4274bc?L((_0x1e6d2b=_0x467b07[_0x50dbd0(0x157)])==null?void 0x0:_0x1e6d2b[_0x50dbd0(0x11c)],'☒'):L((_0x177364=_0x467b07[_0x50dbd0(0x155)])==null?void 0x0:_0x177364[_0x50dbd0(0x11c)],'☐');}if(_0x2b6b7b[_0x50dbd0(0xed)]===_0x50dbd0(0x10e)||_0x2b6b7b[_0x50dbd0(0xed)]===_0x50dbd0(0x159)){var _0x5d64fb;let _0x458c11=_0x5482dc['value'];return _0x458c11==null?void 0x0:((_0x5d64fb=_0x2b6b7b[_0x50dbd0(0xf9)])==null||(_0x5d64fb=_0x5d64fb[_0x50dbd0(0x140)](_0x3976b6=>_0x3976b6[_0x50dbd0(0x11c)]===_0x458c11))==null?void 0x0:_0x5d64fb[_0x50dbd0(0x166)])??_0x458c11;}if(_0x2b6b7b[_0x50dbd0(0xed)]===_0x50dbd0(0x153)){var _0x8e6cff,_0x71ea38;let _0x5023d2=_0x5482dc[_0x50dbd0(0x15a)]??_0x5482dc[_0x50dbd0(0x11c)];return _0x5023d2==null?void 0x0:ce(_0x5023d2,(_0x8e6cff=_0x2b6b7b[_0x50dbd0(0x153)])==null?void 0x0:_0x8e6cff['format'],(_0x71ea38=_0x2b6b7b[_0x50dbd0(0x153)])==null?void 0x0:_0x71ea38['locale']);}return _0x5482dc[_0x50dbd0(0x11c)];}function le(_0x2f21d4,_0x7382fe){const _0x12f137=_0x33a604;var _0x472090;let _0x4c146f=_0x1411a4({},_0x5a3600[_0x12f137(0x106)](_0x2f21d4['properties']),_0x5a3600[_0x12f137(0x106)](_0x7382fe[_0x12f137(0x15d)]??{}));if((_0x472090=_0x7382fe[_0x12f137(0x15d)])!=null&&_0x472090['listItems']&&(_0x4c146f[_0x12f137(0xf9)]=_0x5a3600['deepClone'](_0x7382fe[_0x12f137(0x15d)][_0x12f137(0xf9)])),_0x4c146f[_0x12f137(0xed)]===_0x12f137(0x11b)){var _0x205aec;_0x4c146f['checkbox']={..._0x4c146f['checkbox'],..._0x5a3600[_0x12f137(0x106)](_0x7382fe[_0x12f137(0xca)]),'checked':_0x7382fe['checked']??!((_0x205aec=_0x4c146f[_0x12f137(0x11b)])!=null&&_0x205aec[_0x12f137(0xfd)])};}else{if(_0x4c146f['kind']===_0x12f137(0x153)&&!_0x7382fe['showingPlaceholder']){var _0x37eecb;_0x4c146f[_0x12f137(0x153)]={..._0x4c146f['date'],'fullDate':_0x7382fe[_0x12f137(0x15a)]??_0x7382fe[_0x12f137(0x11c)]??((_0x37eecb=_0x4c146f[_0x12f137(0x153)])==null?void 0x0:_0x37eecb[_0x12f137(0x15a)])};}}return _0x4c146f[_0x12f137(0x143)]=_0x7382fe[_0x12f137(0x143)]??!0x1,_0x4c146f[_0x12f137(0x148)]&&={..._0x4c146f[_0x12f137(0x148)],'dirty':!0x0},_0x4c146f;}function ue(_0x4f6ee3,_0x3aaaf5,_0x49a4ca,_0x585ad5,_0x153299,_0x41c05f){const _0x2e2848=_0x33a604;var _0x37a5b9,_0x54ea99,_0x22ecec,_0x1a672a;let _0x130b7b=[..._0x49a4ca][_0x2e2848(0x136)]((_0x106b66,_0x209134)=>_0x106b66+_0x209134['length'],0x0),_0x12eda9=(_0x37a5b9=_0x4f6ee3[_0x2e2848(0x10c)])==null?void 0x0:_0x37a5b9[_0x2e2848(0x140)](_0xabe70e=>_0xabe70e['st']<=_0x41c05f&&_0x41c05f<_0xabe70e['ed']),_0x3c58b1=_0x585ad5[_0x2e2848(0xed)]==='checkbox'?(_0x54ea99=_0x585ad5['checkbox'])!=null&&_0x54ea99[_0x2e2848(0xfd)]?(_0x22ecec=_0x585ad5[_0x2e2848(0x11b)]['checkedState'])==null?void 0x0:_0x22ecec[_0x2e2848(0xdf)]:(_0x1a672a=_0x585ad5['checkbox'])==null||(_0x1a672a=_0x1a672a[_0x2e2848(0x155)])==null?void 0x0:_0x1a672a['font']:void 0x0,_0x462d4b=_0x12eda9!=null&&_0x12eda9['ts']?_0x5a3600[_0x2e2848(0x106)](_0x12eda9['ts']):{};return _0x3c58b1&&!_0x462d4b['ff']&&(_0x462d4b['ff']=_0x3c58b1),{'dataStream':_0x49a4ca,'textRuns':_0x12eda9!=null&&_0x12eda9['ts']||_0x3c58b1?[{'st':0x0,'ed':_0x130b7b,'ts':_0x462d4b}]:void 0x0,'customRanges':_0x153299?[{'startIndex':0x0,'endIndex':Math[_0x2e2848(0x116)](0x0,_0x130b7b-0x1),'rangeId':_0x3aaaf5['rangeId'],'rangeType':_0x27bb75[_0x2e2848(0xd8)],'wholeEntity':!0x1,'properties':_0x585ad5}]:void 0x0};}function z(_0xa89dda,_0xb98147){const _0x5f39b9=_0x33a604;let _0x3f5b5b=_0xb98147['startIndex'],_0x3dd677=_0xb98147[_0x5f39b9(0xc1)]+0x1;for(_0xa89dda[_0x5f39b9(0x11a)][_0x3f5b5b]===_0x419005[_0x5f39b9(0xf5)]&&_0xa89dda[_0x5f39b9(0x11a)][_0x3dd677-0x1]===_0x419005[_0x5f39b9(0x110)]&&(_0x3f5b5b++,_0x3dd677--);_0x3f5b5b<_0x3dd677&&B(_0xa89dda[_0x5f39b9(0x11a)][_0x5f39b9(0xc4)](_0x3f5b5b));)_0x3f5b5b++;for(;_0x3dd677>_0x3f5b5b&&B(_0xa89dda[_0x5f39b9(0x11a)][_0x5f39b9(0xc4)](_0x3dd677-0x1));)_0x3dd677--;return{'startOffset':_0x3f5b5b,'endOffset':_0x3dd677};}function B(_0x2164ec){return _0x2164ec<0x20&&_0x2164ec!==0x9;}async function de(_0x205b42,_0x50b56f,_0x3beaff,_0x35405d,_0x31c718,_0x4a36d9,_0x4aeea4){const _0x44c19e=_0x33a604;let _0x4f92a1=U(_0x3beaff,_0x35405d,_0x31c718,_0x4a36d9);if(!_0x4f92a1)return!0x1;let _0x3d4902={'unitId':_0x50b56f[_0x44c19e(0xfa)](),'historyAction':P,'actions':_0x34186a[_0x44c19e(0xe3)]()[_0x44c19e(0xec)](_0x4f92a1[_0x44c19e(0xc0)],_0xc57179(_0x50b56f,_0x4aeea4)),'textRanges':[{'startOffset':_0x4f92a1[_0x44c19e(0x138)],'endOffset':_0x4f92a1['caretOffset'],'collapsed':!0x0,'segmentId':_0x4aeea4}],'debounce':!0x1,'trigger':P};return V(_0x50b56f,_0x3d4902),!!await _0x205b42[_0x44c19e(0x151)](_0x447893)[_0x44c19e(0x12f)](_0x370af1['id'],_0x3d4902);}function V(_0x4c6a27,_0x2668a7){const _0x26cd2b=_0x33a604;let _0x451b64=_0x4c6a27[_0x26cd2b(0x104)](),_0xdc819a=['',...Object[_0x26cd2b(0x14d)](_0x451b64[_0x26cd2b(0x167)]??{}),...Object['keys'](_0x451b64['footers']??{}),...Object[_0x26cd2b(0x14d)](_0x451b64[_0x26cd2b(0x121)]??{})][_0x26cd2b(0xd6)](_0x1cd331=>{const _0x11a323=_0x26cd2b;var _0xdb59cf,_0x47cfab;let _0x4b6b3e=(_0xdb59cf=_0x4c6a27[_0x11a323(0xf4)](_0x1cd331))==null?void 0x0:_0xdb59cf[_0x11a323(0xde)]();return(_0x4b6b3e==null||(_0x47cfab=_0x4b6b3e[_0x11a323(0x150)])==null?void 0x0:_0x47cfab[_0x11a323(0xb9)](_0x1791b1=>_0x1791b1[_0x11a323(0xc5)]===_0x27bb75[_0x11a323(0xd8)]&&!!_0x1e6083(_0x1791b1))[_0x11a323(0x13f)](_0x4be6f7=>({'segmentId':_0x1cd331,'range':_0x4be6f7,'body':_0x4b6b3e})))??[];});if(_0xdc819a['length']<0x2)return;let _0x27e0a9=!0x1,_0xbd55cb=new Set(),_0xb5bb37=_0x39e762[_0x26cd2b(0x12a)][_0x26cd2b(0xdd)](_0x2668a7[_0x26cd2b(0xc0)]);if(_0xb5bb37['traverse'](null,_0x50dfa2=>{const _0x4f34cc=_0x26cd2b;if(_0x50dfa2['et']!==_0x592230['id']||!Array[_0x4f34cc(0xdc)](_0x50dfa2['e']))return;let _0x152fcf=_0xb5bb37[_0x4f34cc(0x12b)](),_0x1f0e94=_0xdc819a[_0x4f34cc(0xb9)](({segmentId:_0x1191d7})=>{const _0xd3ea28=_0x4f34cc;let _0x35a312=_0xc57179(_0x4c6a27,_0x1191d7);return _0x152fcf[_0xd3ea28(0xfe)]===_0x35a312[_0xd3ea28(0xfe)]&&_0x35a312[_0xd3ea28(0x15b)]((_0x11246a,_0x388186)=>_0x11246a===_0x152fcf[_0x388186]);}),_0x26e583=0x0;for(let _0x495491 of _0x50dfa2['e'])if(_0x495491['t']===_0x23c17d[_0x4f34cc(0xcb)]){if(_0x27e0a9||=_0x1f0e94[_0x4f34cc(0xcd)](({range:_0xdcf187})=>_0x26e583>=_0xdcf187[_0x4f34cc(0xf6)]&&_0x26e583<=_0xdcf187[_0x4f34cc(0xc1)]+0x1),_0x495491[_0x4f34cc(0xc8)]){for(let {range:_0x35b53a}of _0x1f0e94)_0x35b53a[_0x4f34cc(0x16b)]===_0x495491['valueRangeId']&&_0xbd55cb['add'](_0x35b53a);}}else _0x495491['t']===_0x23c17d[_0x4f34cc(0x163)]&&(_0x27e0a9||=_0x1f0e94['some'](({range:_0x4a09b0})=>_0x26e583<=_0x4a09b0[_0x4f34cc(0xc1)]&&_0x26e583+_0x495491[_0x4f34cc(0x117)]>_0x4a09b0[_0x4f34cc(0xf6)])),_0x26e583+=_0x495491[_0x4f34cc(0x117)];}),!_0x27e0a9)return;let _0x1a0d21=_0x34186a[_0x26cd2b(0x108)](_0x5a3600[_0x26cd2b(0x106)](_0x451b64),_0x2668a7[_0x26cd2b(0xc0)]);if(!_0x1a0d21)return;let _0x150816=_0x7bcfa8=>{const _0x3953e8=_0x26cd2b;var _0x3ab75a,_0x2b4540,_0x174d23;return _0x7bcfa8?((_0x3ab75a=_0x1a0d21[_0x3953e8(0x167)])==null||(_0x3ab75a=_0x3ab75a[_0x7bcfa8])==null?void 0x0:_0x3ab75a[_0x3953e8(0xe6)])??((_0x2b4540=_0x1a0d21['footers'])==null||(_0x2b4540=_0x2b4540[_0x7bcfa8])==null?void 0x0:_0x2b4540['body'])??((_0x174d23=_0x1a0d21[_0x3953e8(0x121)])==null||(_0x174d23=_0x174d23[_0x7bcfa8])==null?void 0x0:_0x174d23[_0x3953e8(0xe6)]):_0x1a0d21['body'];},_0x96bc27=new Map(),_0x4f80af=new Set();for(let {segmentId:_0x1790f4,range:_0x4f5b15,body:_0x4eced4}of _0xdc819a){var _0x2e616b;let _0x81bbc6=_0x150816(_0x1790f4),_0x174e0d=_0x81bbc6==null||(_0x2e616b=_0x81bbc6[_0x26cd2b(0x150)])==null?void 0x0:_0x2e616b[_0x26cd2b(0x140)](_0x237f50=>_0x237f50[_0x26cd2b(0x16b)]===_0x4f5b15[_0x26cd2b(0x16b)]&&_0x237f50['rangeType']===_0x27bb75['SDT']);if(!_0x174e0d||!_0x81bbc6||F(_0x4f5b15)||_0x1e6083(_0x174e0d)!==_0x1e6083(_0x4f5b15))continue;let _0x5ac059=_0x1ca690(_0x81bbc6,_0x174e0d);if(_0x5ac059!==void 0x0&&(_0xbd55cb[_0x26cd2b(0xe8)](_0x4f5b15)||_0x5ac059!==_0x1ca690(_0x4eced4,_0x4f5b15))){let _0x260bdb=_0x1e6083(_0x174e0d);_0x96bc27[_0x26cd2b(0xd4)](_0x260bdb,_0x5ac059),_0xbd55cb[_0x26cd2b(0xe8)](_0x4f5b15)&&_0x4f80af['add'](_0x260bdb);}}for(let {segmentId:_0x22f411,range:_0x11cbdc}of _0xdc819a){var _0x500212,_0x369c21;let _0x27d0e1=_0x150816(_0x22f411),_0x14c8b6=_0x27d0e1==null||(_0x500212=_0x27d0e1[_0x26cd2b(0x150)])==null?void 0x0:_0x500212['find'](_0xfb4564=>_0xfb4564['rangeId']===_0x11cbdc['rangeId']&&_0xfb4564[_0x26cd2b(0xc5)]===_0x27bb75[_0x26cd2b(0xd8)]),_0x310c87=_0x14c8b6&&_0x96bc27[_0x26cd2b(0x151)](_0x1e6083(_0x14c8b6)??''),_0x5603a7=!!(_0x14c8b6&&_0x4f80af[_0x26cd2b(0xe8)](_0x1e6083(_0x14c8b6)??''));if(!_0x14c8b6||!_0x27d0e1||_0x310c87===void 0x0||_0x1ca690(_0x27d0e1,_0x14c8b6)===_0x310c87&&(!_0x5603a7||_0xbd55cb[_0x26cd2b(0xe8)](_0x11cbdc)))continue;let _0x254ac5={'rangeId':_0x14c8b6['rangeId'],'value':_0x310c87};_0x310c87===''&&['text','richText',_0x26cd2b(0x153),'comboBox','dropDownList'][_0x26cd2b(0x12e)](_0x14c8b6['properties'][_0x26cd2b(0xed)])&&(_0x254ac5[_0x26cd2b(0x143)]=!0x0,_0x254ac5[_0x26cd2b(0x11c)]=H(_0x14c8b6[_0x26cd2b(0x15d)])),_0x14c8b6['properties'][_0x26cd2b(0xed)]===_0x26cd2b(0x11b)&&(_0x254ac5['checked']=_0x310c87===_0x26cd2b(0x131)||_0x310c87==='1');let _0x245cb5=R(_0x14c8b6,_0x254ac5),_0x1c6cef=_0x245cb5==null?void 0x0:U(_0x27d0e1,_0x14c8b6,_0x245cb5,_0x254ac5,_0x5603a7||void 0x0);if(!_0x1c6cef)continue;let _0x507a6b=_0x34186a['getInstance']()[_0x26cd2b(0xec)](_0x1c6cef[_0x26cd2b(0xc0)],_0xc57179(_0x4c6a27,_0x22f411));_0x2668a7['actions']=_0x34186a[_0x26cd2b(0x137)](_0x2668a7['actions'],_0x507a6b),_0x2668a7[_0x26cd2b(0xef)]=(_0x369c21=_0x2668a7[_0x26cd2b(0xef)])==null?void 0x0:_0x369c21[_0x26cd2b(0x13f)](_0x49a004=>(_0x49a004[_0x26cd2b(0x15f)]??_0x2668a7[_0x26cd2b(0x15f)]??'')===_0x22f411?{..._0x49a004,'startOffset':_0x592230['transformPosition'](_0x1c6cef[_0x26cd2b(0xc0)],_0x49a004[_0x26cd2b(0x102)]),'endOffset':_0x592230[_0x26cd2b(0x115)](_0x1c6cef[_0x26cd2b(0xc0)],_0x49a004[_0x26cd2b(0x11d)])}:_0x49a004),_0x592230[_0x26cd2b(0x108)](_0x27d0e1,_0x1c6cef[_0x26cd2b(0xc0)]);}}function H(_0x47204f){const _0x1934db=_0x33a604;let {placeholder:_0x7d0662,placeholderDocPart:_0x27c1f0}=_0x47204f;return(_0x7d0662===(_0x27c1f0==null?void 0x0:_0x27c1f0[_0x1934db(0xe0)])?void 0x0:_0x7d0662)??(_0x27c1f0==null?void 0x0:_0x27c1f0['text'])??'​';}function U(_0x4d612b,_0x106828,_0x1cf647,_0x31852c,_0x50479d){const _0x370083=_0x33a604;let _0x4efcf5=le(_0x106828,_0x31852c),_0x4076ae=z(_0x4d612b,_0x106828),_0x1cb3c6=_0x4076ae['startOffset']>_0x106828[_0x370083(0xf6)]||_0x4076ae[_0x370083(0x11d)]<_0x106828['endIndex']+0x1,_0x4c3d2a=ue(_0x4d612b,_0x106828,_0x1cf647,_0x4efcf5,!_0x1cb3c6,_0x4076ae[_0x370083(0x102)]),_0x3ef577={'startOffset':_0x4076ae['startOffset'],'endOffset':_0x4076ae['endOffset'],'collapsed':!0x1},_0x99a806=_0x48f47d[_0x370083(0x13d)][_0x370083(0xbc)]([_0x3ef577],_0x4d612b,0x0,_0x4c3d2a);if(_0x1cb3c6){var _0x419a0b,_0x4c950e;let _0xcb7d87=_0x5a3600[_0x370083(0x106)](_0x4d612b);_0x592230[_0x370083(0x108)](_0xcb7d87,_0x99a806);let _0x530acb=(_0x419a0b=_0xcb7d87[_0x370083(0x150)])==null?void 0x0:_0x419a0b[_0x370083(0x140)](_0x2a3e53=>_0x2a3e53[_0x370083(0xc5)]===_0x27bb75[_0x370083(0xd8)]&&_0x2a3e53[_0x370083(0x16b)]===_0x106828['rangeId']);if(!_0x530acb)return;let _0xbef2af=_0x106828['startIndex'],_0x13beeb=_0x106828['endIndex']+_0x4c3d2a[_0x370083(0x11a)][_0x370083(0xfe)]-(_0x4076ae['endOffset']-_0x4076ae[_0x370083(0x102)]),_0x5ad4e4=(_0x4c950e=_0xcb7d87[_0x370083(0x150)])==null?void 0x0:_0x4c950e['filter'](_0x50274f=>_0xbef2af<=_0x50274f[_0x370083(0xf6)]&&_0x50274f['endIndex']<=_0x13beeb)[_0x370083(0x13f)](_0x5449c4=>({..._0x5a3600[_0x370083(0x106)](_0x5449c4),'startIndex':_0x5449c4['rangeId']===_0x106828[_0x370083(0x16b)]?0x0:_0x5449c4[_0x370083(0xf6)]-_0xbef2af,'endIndex':_0x5449c4[_0x370083(0x16b)]===_0x106828['rangeId']?_0x13beeb-_0xbef2af:_0x5449c4[_0x370083(0xc1)]-_0xbef2af,'properties':_0x5449c4['rangeId']===_0x530acb[_0x370083(0x16b)]?_0x4efcf5:_0x5a3600['deepClone'](_0x5449c4['properties'])})),_0x59ffe9=new _0x592230()[_0x370083(0xf3)](_0xbef2af)[_0x370083(0xf3)](_0x13beeb-_0xbef2af+0x1,{'dataStream':'','customRanges':_0x5ad4e4});_0x99a806=_0x592230[_0x370083(0x137)](_0x99a806,_0x59ffe9[_0x370083(0x15e)]());}if((_0x50479d??['checkbox',_0x370083(0x153),_0x370083(0x10e),_0x370083(0x159)]['includes'](_0x4efcf5[_0x370083(0xed)]))&&(_0x99a806=_0x99a806[_0x370083(0x13f)](_0x1f3f05=>_0x1f3f05['t']===_0x23c17d[_0x370083(0x162)]?_0x1f3f05:{..._0x1f3f05,'valueRangeId':_0x106828[_0x370083(0x16b)]})),_0x31852c[_0x370083(0x15d)]){let _0x46c9d9=_0x1411a4({},_0x5a3600[_0x370083(0x106)](_0x106828[_0x370083(0x15d)]),_0x5a3600[_0x370083(0x106)](_0x31852c['properties']));_0x31852c[_0x370083(0x15d)][_0x370083(0xf9)]&&(_0x46c9d9['listItems']=_0x5a3600[_0x370083(0x106)](_0x31852c[_0x370083(0x15d)][_0x370083(0xf9)]));let _0x103013={..._0x106828,'endIndex':_0x106828[_0x370083(0xc1)]+_0x4c3d2a['dataStream']['length']-(_0x4076ae[_0x370083(0x11d)]-_0x4076ae[_0x370083(0x102)])};_0x99a806[_0x370083(0xeb)](...new _0x592230()['updateCustomRangeProperties'](_0x103013,_0x46c9d9)[_0x370083(0x15e)]());}return{'actions':_0x99a806,'caretOffset':_0x4076ae[_0x370083(0x102)]+_0x4c3d2a[_0x370083(0x11a)][_0x370083(0xfe)]};}const W={'id':P,'type':_0x393328[_0x33a604(0xc9)],async 'handler'(_0x59f405,_0x22a3bb){const _0x1ee5ee=_0x33a604;var _0x3205e0,_0x1d0847;if(!(_0x22a3bb!=null&&_0x22a3bb[_0x1ee5ee(0x16b)]))return!0x1;let _0x3463eb=_0x59f405[_0x1ee5ee(0x151)](_0x28cbea),_0x14164a=_0x22a3bb['unitId']?_0x3463eb[_0x1ee5ee(0x141)](_0x22a3bb[_0x1ee5ee(0xe9)],_0x333dce[_0x1ee5ee(0x169)]):_0x3463eb[_0x1ee5ee(0x152)](_0x333dce[_0x1ee5ee(0x169)]),_0x4a5c72=_0x14164a==null||(_0x3205e0=_0x14164a[_0x1ee5ee(0xf4)](_0x22a3bb['segmentId']))==null?void 0x0:_0x3205e0['getBody'](),_0x9e2d43=_0x4a5c72==null||(_0x1d0847=_0x4a5c72[_0x1ee5ee(0x150)])==null?void 0x0:_0x1d0847['find'](_0x23ce6f=>_0x23ce6f[_0x1ee5ee(0xc5)]===_0x27bb75[_0x1ee5ee(0xd8)]&&_0x23ce6f['rangeId']===_0x22a3bb[_0x1ee5ee(0x16b)]);if(!_0x14164a||!_0x4a5c72||!_0x9e2d43||F(_0x9e2d43))return!0x1;let _0x1364e6=R(_0x9e2d43,_0x22a3bb);return _0x1364e6!=null&&de(_0x59f405,_0x14164a,_0x4a5c72,_0x9e2d43,_0x1364e6,_0x22a3bb,_0x22a3bb[_0x1ee5ee(0x15f)]);}};function fe(_0x36342d,_0x5ddf91){const _0x1d2d5c=_0x33a604;if(_0x5ddf91<=_0x36342d[_0x1d2d5c(0xf6)])return;let _0x538da0=_0x5a3600[_0x1d2d5c(0x106)](_0x36342d);return _0x538da0[_0x1d2d5c(0xf6)]=0x0,_0x538da0[_0x1d2d5c(0xc1)]=_0x5ddf91-_0x36342d[_0x1d2d5c(0xf6)]-0x1,_0x538da0[_0x1d2d5c(0x15d)][_0x1d2d5c(0x143)]=!0x1,_0x538da0[_0x1d2d5c(0x15d)][_0x1d2d5c(0x148)]&&(_0x538da0[_0x1d2d5c(0x15d)][_0x1d2d5c(0x148)][_0x1d2d5c(0x100)]=!0x0),new _0x592230()[_0x1d2d5c(0xf3)](_0x36342d['startIndex'])[_0x1d2d5c(0xf3)](_0x5ddf91-_0x36342d['startIndex'],{'dataStream':'','customRanges':[_0x538da0]})[_0x1d2d5c(0x15e)]();}function G(_0x3c5a03,_0x250fd7,_0x177e30,_0x2152d2=!0x1){const _0x1eda89=_0x33a604;var _0x9f25dd;let _0x1c0eb9=_0x177e30?_0x1411a4({},_0x5a3600[_0x1eda89(0x106)](_0x250fd7['properties']),_0x5a3600['deepClone'](_0x177e30)):_0x250fd7['properties'];_0x177e30!=null&&_0x177e30[_0x1eda89(0xf9)]&&(_0x1c0eb9[_0x1eda89(0xf9)]=_0x5a3600['deepClone'](_0x177e30[_0x1eda89(0xf9)]));let _0x319422=new _0x592230();return _0x2152d2&&_0x3c5a03['dataStream'][_0x250fd7['startIndex']]===_0x419005[_0x1eda89(0xf5)]&&_0x3c5a03[_0x1eda89(0x11a)][_0x250fd7[_0x1eda89(0xc1)]]===_0x419005[_0x1eda89(0x110)]&&!((_0x9f25dd=_0x3c5a03[_0x1eda89(0x150)])!=null&&_0x9f25dd[_0x1eda89(0xcd)](_0x3f0378=>_0x3f0378['rangeId']!==_0x250fd7[_0x1eda89(0x16b)]&&_0x3f0378[_0x1eda89(0xf6)]===_0x250fd7[_0x1eda89(0xf6)]&&_0x3f0378[_0x1eda89(0xc1)]===_0x250fd7[_0x1eda89(0xc1)]))&&_0x319422[_0x1eda89(0xf3)](_0x250fd7[_0x1eda89(0xf6)])['delete'](0x1)[_0x1eda89(0xf3)](_0x250fd7[_0x1eda89(0xc1)]-_0x250fd7[_0x1eda89(0xf6)]-0x1)[_0x1eda89(0xbc)](0x1),_0x2152d2?_0x319422[_0x1eda89(0xd5)]([{'rangeId':_0x250fd7[_0x1eda89(0x16b)],'range':null}]):_0x319422['updateCustomRangeProperties'](_0x250fd7,_0x1c0eb9),{'actions':_0x319422[_0x1eda89(0x15e)](),'caretOffset':_0x250fd7[_0x1eda89(0xf6)]};}async function K(_0x269a3c,_0x4e4ae6,_0x38ac0a){const _0x26b86c=_0x33a604;var _0x596ee5,_0x521236;let _0x1d59de=_0x269a3c[_0x26b86c(0x151)](_0x28cbea),_0x303f41=_0x4e4ae6['unitId']?_0x1d59de[_0x26b86c(0x141)](_0x4e4ae6[_0x26b86c(0xe9)],_0x333dce[_0x26b86c(0x169)]):_0x1d59de[_0x26b86c(0x152)](_0x333dce[_0x26b86c(0x169)]),_0xb91ddd=_0x303f41==null||(_0x596ee5=_0x303f41[_0x26b86c(0xf4)](_0x4e4ae6[_0x26b86c(0x15f)]))==null?void 0x0:_0x596ee5[_0x26b86c(0xde)](),_0x4bab9d=_0xb91ddd==null||(_0x521236=_0xb91ddd[_0x26b86c(0x150)])==null?void 0x0:_0x521236['find'](_0x2c375c=>_0x2c375c[_0x26b86c(0xc5)]===_0x27bb75[_0x26b86c(0xd8)]&&_0x2c375c['rangeId']===_0x4e4ae6[_0x26b86c(0x16b)]);if(!_0x303f41||!_0xb91ddd||!_0x4bab9d||_0x38ac0a&&I(_0x4bab9d))return!0x1;let _0x20d38c=G(_0xb91ddd,_0x4bab9d,_0x26b86c(0x15d)in _0x4e4ae6?_0x4e4ae6[_0x26b86c(0x15d)]:void 0x0,_0x38ac0a);return!_0x20d38c[_0x26b86c(0xc0)][_0x26b86c(0xfe)]||!!await _0x269a3c[_0x26b86c(0x151)](_0x447893)['executeCommand'](_0x370af1['id'],{'unitId':_0x303f41[_0x26b86c(0xfa)](),'historyAction':_0x38ac0a?J['id']:q['id'],'actions':_0x34186a[_0x26b86c(0xe3)]()[_0x26b86c(0xec)](_0x20d38c[_0x26b86c(0xc0)],_0xc57179(_0x303f41,_0x4e4ae6[_0x26b86c(0x15f)])),'textRanges':[{'startOffset':_0x20d38c[_0x26b86c(0x138)],'endOffset':_0x20d38c['caretOffset'],'collapsed':!0x0,'segmentId':_0x4e4ae6[_0x26b86c(0x15f)]}],'debounce':!0x1,'trigger':_0x38ac0a?J['id']:q['id']});}const q={'id':_0x33a604(0x164),'type':_0x393328[_0x33a604(0xc9)],'handler':(_0x19110f,_0x43055e)=>_0x43055e!=null&&_0x43055e['rangeId']&&_0x43055e[_0x33a604(0x15d)]?K(_0x19110f,_0x43055e,!0x1):!0x1},J={'id':_0x33a604(0xe5),'type':_0x393328[_0x33a604(0xc9)],'handler':(_0xfbbafd,_0x109134)=>_0x109134!=null&&_0x109134[_0x33a604(0x16b)]?K(_0xfbbafd,_0x109134,!0x0):!0x1};function _0x3b28(_0x4284f2,_0x516ab5){_0x4284f2=_0x4284f2-0xb5;const _0x3018bf=_0x3018();let _0x3b288a=_0x3018bf[_0x4284f2];return _0x3b288a;}var pe=_0x33a604(0xcc),me='1.3.1';const Y={};function X(_0xe116fb,_0x10ddec){return function(_0x41998d,_0x14cb4c){_0x10ddec(_0x41998d,_0x14cb4c,_0xe116fb);};}function _0x3018(){const _0x51eb29=['pluginName','getInstance','slice','doc.command.remove-sdt','body','docs-sdt.config','has','unitId','3478992pyIztd','push','editOp','kind','getUTCDate','textRanges','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UTC','retain','getSelfOrHeaderFooterModel','CUSTOM_RANGE_START','startIndex','forEach','onStarting','listItems','getUnitId','table','Thu','checked','length','tableId','dirty','findIndex','startOffset','DOC_SDT_CUSTOM_XML_PLUGIN','getSnapshot','decorate','deepClone','packageName','apply','charAt','defineProperty','getTime','textRuns','40ZZFFYX','dropDownList','415218hQfbbG','CUSTOM_RANGE_END','function','Apr','5VFJlOr','long','transformPosition','max','len','695795ngbDFI','sdtContentLocked','dataStream','checkbox','value','endOffset','_configService','default','clear','notes','Nov','random','disposeWithMe','ooxmlId','Jul','Jun','3wyEJcO','Feb','type','getPath','getOwnPropertyDescriptor','Oct','includes','executeCommand','rows','true','doc.command.update-sdt-value','toPrimitive','Dec','cell','reduce','compose','caretOffset','1274420RTxRXA','copy','36ekySke','string','selection','_injector','map','find','getUnit','getUTCMonth','showingPlaceholder','1976284FBTGUB','padStart','repeatingSection','row','dataBinding','constructor','Sep','5781671jfgRXD','startsWith','keys','sort','toLowerCase','customRanges','get','getCurrentUnitOfType','date','1117304DnxAft','uncheckedState','lock','checkedState','parseInt','comboBox','fullDate','every','_config','properties','serialize','segmentId','floor','doc.command.duplicate-repeating-sdt-item','RETAIN','DELETE','doc.command.update-sdt-properties','sdtLocked','displayText','headers','short','UNIVER_DOC','DateTimeFormat','rangeId','insert','contentLocked','format','Tue','filter','Mar','test','delete','Mon','doNotAllowInsertDelete','Aug','actions','endIndex','placement','_commandService','charCodeAt','rangeType','call','min','valueRangeId','COMMAND','checkboxStyle','INSERT','@univerjs-pro/docs-sdt','some','getUTCDay','replace','registerCommand','repeatingSectionItem','symbol','isNaN','set','updateCustomRanges','flatMap','deleteTable','SDT','tables','object','paragraphs','isArray','readCursor','getBody','font','name','add'];_0x3018=function(){return _0x51eb29;};return _0x3018();}function he(_0x3503c8,_0x2bc771,_0x58d0c1,_0x5a31c0){const _0x34e138=_0x33a604;var _0x437bc3=arguments['length'],_0x3be518=_0x437bc3<0x3?_0x2bc771:_0x5a31c0===null?_0x5a31c0=Object[_0x34e138(0x12c)](_0x2bc771,_0x58d0c1):_0x5a31c0,_0x519404;if(typeof Reflect==_0x34e138(0xda)&&typeof Reflect['decorate']==_0x34e138(0x111))_0x3be518=Reflect[_0x34e138(0x105)](_0x3503c8,_0x2bc771,_0x58d0c1,_0x5a31c0);else{for(var _0x31ff19=_0x3503c8[_0x34e138(0xfe)]-0x1;_0x31ff19>=0x0;_0x31ff19--)(_0x519404=_0x3503c8[_0x31ff19])&&(_0x3be518=(_0x437bc3<0x3?_0x519404(_0x3be518):_0x437bc3>0x3?_0x519404(_0x2bc771,_0x58d0c1,_0x3be518):_0x519404(_0x2bc771,_0x58d0c1))||_0x3be518);}return _0x437bc3>0x3&&_0x3be518&&Object[_0x34e138(0x10a)](_0x2bc771,_0x58d0c1,_0x3be518),_0x3be518;}function Z(_0x3e3cf0){'@babel/helpers - typeof';const _0x3637b4=_0x33a604;return Z=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x3637b4(0xd2)?function(_0x48f40d){return typeof _0x48f40d;}:function(_0x19b891){const _0x359bf=_0x3637b4;return _0x19b891&&typeof Symbol=='function'&&_0x19b891[_0x359bf(0x149)]===Symbol&&_0x19b891!==Symbol['prototype']?_0x359bf(0xd2):typeof _0x19b891;},Z(_0x3e3cf0);}function ge(_0x1e3aca,_0x38c91a){const _0x3ccfa8=_0x33a604;if(Z(_0x1e3aca)!=_0x3ccfa8(0xda)||!_0x1e3aca)return _0x1e3aca;var _0x1a77f4=_0x1e3aca[Symbol[_0x3ccfa8(0x133)]];if(_0x1a77f4!==void 0x0){var _0x2733fb=_0x1a77f4[_0x3ccfa8(0xc6)](_0x1e3aca,_0x38c91a||_0x3ccfa8(0x11f));if(Z(_0x2733fb)!=_0x3ccfa8(0xda))return _0x2733fb;throw TypeError(_0x3ccfa8(0xf1));}return(_0x38c91a===_0x3ccfa8(0x13c)?String:Number)(_0x1e3aca);}function _e(_0xc81e42){var _0x4f7f3e=ge(_0xc81e42,'string');return Z(_0x4f7f3e)=='symbol'?_0x4f7f3e:_0x4f7f3e+'';}function Q(_0x4ee11b,_0x342391,_0x2d6d39){const _0x35fb1f=_0x33a604;return(_0x342391=_e(_0x342391))in _0x4ee11b?Object[_0x35fb1f(0x10a)](_0x4ee11b,_0x342391,{'value':_0x2d6d39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ee11b[_0x342391]=_0x2d6d39,_0x4ee11b;}let $=class extends _0x2ba91d{constructor(_0x423439=Y,_0x493e1a,_0x6cde7d,_0x5caae1){const _0x39b6b5=_0x33a604;super(),this[_0x39b6b5(0x15c)]=_0x423439,this[_0x39b6b5(0x13e)]=_0x493e1a,this[_0x39b6b5(0x11e)]=_0x6cde7d,this[_0x39b6b5(0xc3)]=_0x5caae1;let {..._0x32b880}=_0x1411a4({},Y,this[_0x39b6b5(0x15c)]);this['_configService'][_0x39b6b5(0xf0)](_0x39b6b5(0xe7),_0x32b880);}[_0x33a604(0xf8)](){const _0x1febb2=_0x33a604;this['disposeWithMe'](this[_0x1febb2(0xc3)]['registerCommand'](W)),this['disposeWithMe'](this[_0x1febb2(0xc3)][_0x1febb2(0xd0)](q)),this[_0x1febb2(0x124)](this[_0x1febb2(0xc3)][_0x1febb2(0xd0)](J)),this[_0x1febb2(0x124)](this[_0x1febb2(0xc3)][_0x1febb2(0xd0)](M)),this[_0x1febb2(0x124)](this['_commandService'][_0x1febb2(0xd0)](N));let _0x41f824=new Map();this[_0x1febb2(0x124)]({'dispose':()=>_0x41f824[_0x1febb2(0x120)]()}),this[_0x1febb2(0x124)](this[_0x1febb2(0x13e)]['get'](_0x28ebe2)['registerPluginResource']({'pluginName':_0x1febb2(0x103),'businesses':[_0x333dce[_0x1febb2(0x169)]],'parseJson':_0x4adb9b=>_0x4adb9b,'onLoad':(_0x4498ee,_0x2b9ceb)=>{const _0x3f5e69=_0x1febb2;_0x41f824[_0x3f5e69(0xd4)](_0x4498ee,_0x2b9ceb);},'onUnLoad':_0x36850a=>{const _0x5a9fed=_0x1febb2;_0x41f824[_0x5a9fed(0xbc)](_0x36850a);},'toJson':_0x176b38=>_0x41f824[_0x1febb2(0x151)](_0x176b38)??''}));}};Q($,_0x33a604(0xe2),'DOCS_SDT_PLUGIN'),Q($,_0x33a604(0x107),pe),Q($,'version',me),Q($,_0x33a604(0x12a),_0x333dce[_0x33a604(0x169)]),$=he([_0x4fa5e3(_0x80e4a4,_0x33258a),X(0x1,_0x5ec263(_0x520613)),X(0x2,_0x3af909),X(0x3,_0x447893)],$);export{N as DeleteRepeatingSdtItemCommand,M as DuplicateRepeatingSdtItemCommand,J as RemoveSdtCommand,$ as UniverDocsSdtPlugin,q as UpdateSdtPropertiesCommand,W as UpdateSdtValueCommand,D as buildDeleteRepeatingItemUpdate,ae as buildDuplicateRepeatingItemUpdate,fe as buildRestoredSdtMetadata,G as buildSdtMetadataUpdate,U as buildSdtValueUpdate,se as findSdtAtOffset,E as generateSdtOoxmlId,R as getSdtDisplayValue,H as getSdtPlaceholderText,z as getSdtVisibleContentRange,F as isSdtContentLocked,I as isSdtWrapperLocked,V as synchronizeSdtBindings};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x158b0d=_0x5f5a;(function(_0x868301,_0x27d453){const _0x2fdea1=_0x5f5a,_0x59e64a=_0x868301();while(!![]){try{const _0x386d23=-parseInt(_0x2fdea1(0x19b))/0x1+parseInt(_0x2fdea1(0x21b))/0x2*(-parseInt(_0x2fdea1(0x206))/0x3)+parseInt(_0x2fdea1(0x18c))/0x4*(parseInt(_0x2fdea1(0x1d2))/0x5)+parseInt(_0x2fdea1(0x226))/0x6+-parseInt(_0x2fdea1(0x21e))/0x7+parseInt(_0x2fdea1(0x1cd))/0x8+parseInt(_0x2fdea1(0x232))/0x9;if(_0x386d23===_0x27d453)break;else _0x59e64a['push'](_0x59e64a['shift']());}catch(_0x210aad){_0x59e64a['push'](_0x59e64a['shift']());}}}(_0x1a29,0xa0b00));import{buildDeleteTableRowsMutationActions as _0x4b36b0,getTableRangeById as _0x3600f0}from'@univerjs-pro/docs-table';import{BuildTextUtils as _0x1010df,CommandType as _0x1ca24f,CustomRangeType as _0x4c78f2,DataStreamTreeTokenType as _0x58e487,DependentOn as _0x30d43f,ICommandService as _0x44ee9f,IConfigService as _0x2c0dd6,IResourceManagerService as _0x3dfb9d,IUniverInstanceService as _0x2513b9,Inject as _0xb880a4,Injector as _0x4dc500,JSON1 as _0x2843d8,JSONX as _0x5a8054,Plugin as _0x5e7bfd,SliceBodyType as _0x504940,TextX as _0x548ebb,TextXActionType as _0x5c22f7,Tools as _0x256650,UniverInstanceType as _0x598cde,createParagraphId as _0x386493,generateRandomId as _0x3e49ce,getBodySliceForTextXAction as _0x398055,getRichTextEditPath as _0x3091e6,getSdtBindingKey as _0x4315de,getSdtBindingValue as _0x2382ce,merge as _0x3cd4f9}from'@univerjs/core';import{RichTextEditingMutation as _0x5435eb,UniverDocsPlugin as _0x2af2af}from'@univerjs/docs';import{UniverLicensePlugin as _0x2e35d2}from'@univerjs-pro/license';function E(_0x39fb60){const _0x232989=_0x5f5a;let _0x3d73f9;do _0x3d73f9=String(Math[_0x232989(0x1b2)](Math[_0x232989(0x22f)]()*0x7fffffff));while(_0x39fb60[_0x232989(0x18a)](_0x3d73f9));return _0x39fb60[_0x232989(0x1f2)](_0x3d73f9),_0x3d73f9;}function ae(_0x5bbe5b,_0x248e83){const _0x358069=_0x5f5a;var _0x30748e,_0x39c17b,_0x872d74,_0x23964f,_0x2652d0,_0xe22f8f;if(!O(_0x5bbe5b,_0x248e83))return;let _0x583dae=k(_0x5bbe5b,_0x248e83),_0x103a18=new Set(_0x583dae[_0x358069(0x18b)](_0x43b17b=>_0x43b17b[_0x358069(0x1f5)])),_0x5eee4b=_0x5bbe5b[_0x358069(0x1ad)]['charAt'](_0x248e83[_0x358069(0x21f)]+0x1)==='\x0d',_0x55e09a=_0x248e83[_0x358069(0x21f)]+0x1+Number(_0x5eee4b),_0x1a9cc2=_0x256650[_0x358069(0x1fa)](_0x398055(_0x5bbe5b,_0x248e83[_0x358069(0x1e0)],_0x55e09a,!0x1,_0x504940[_0x358069(0x1f1)]));if(!_0x1a9cc2[_0x358069(0x1ad)])return;let _0x36163c=new Set((_0x30748e=_0x5bbe5b[_0x358069(0x1c6)])==null?void 0x0:_0x30748e['filter'](_0x41c383=>!_0x103a18[_0x358069(0x18a)](_0x41c383[_0x358069(0x1f5)])&&_0x248e83[_0x358069(0x1e0)]<=_0x41c383['startIndex']&&_0x41c383['endIndex']<=_0x248e83[_0x358069(0x21f)])[_0x358069(0x18b)](_0x49ae8f=>_0x49ae8f[_0x358069(0x1f5)])),_0x5760b1=new Set((_0x39c17b=_0x5bbe5b[_0x358069(0x1c6)])==null?void 0x0:_0x39c17b[_0x358069(0x19d)](_0x4c0ab7=>_0x4c0ab7[_0x358069(0x202)]===_0x4c78f2[_0x358069(0x23a)])['map'](_0xc01dd9=>_0xc01dd9[_0x358069(0x224)][_0x358069(0x218)]));_0x1a9cc2[_0x358069(0x1c6)]=(_0x872d74=_0x1a9cc2['customRanges'])==null?void 0x0:_0x872d74[_0x358069(0x19d)](_0x592a1d=>_0x36163c[_0x358069(0x18a)](_0x592a1d['rangeId'])),(_0x23964f=_0x1a9cc2[_0x358069(0x1c6)])==null||_0x23964f[_0x358069(0x234)](_0x42a62b=>{const _0x47bb6d=_0x358069;_0x42a62b[_0x47bb6d(0x1f5)]=_0x3e49ce(),_0x42a62b[_0x47bb6d(0x202)]===_0x4c78f2[_0x47bb6d(0x23a)]&&(_0x42a62b[_0x47bb6d(0x224)]['ooxmlId']=E(_0x5760b1));});let _0x1daca0=new Set((_0x2652d0=_0x5bbe5b[_0x358069(0x1b7)])==null?void 0x0:_0x2652d0['map'](_0x199627=>_0x199627['paragraphId']));(_0xe22f8f=_0x1a9cc2[_0x358069(0x1b7)])==null||_0xe22f8f['forEach'](_0x4041f3=>{const _0xe3f105=_0x358069;_0x4041f3[_0xe3f105(0x1dd)]=_0x386493(_0x1daca0);});let _0x52f7e6=_0x55e09a,_0x49c5a2=new _0x548ebb()[_0x358069(0x22b)](_0x52f7e6)['insert'](_0x1a9cc2[_0x358069(0x1ad)][_0x358069(0x23b)],_0x1a9cc2)['serialize'](),_0xc6094c=_0x256650[_0x358069(0x1fa)](_0x5bbe5b);_0x548ebb['apply'](_0xc6094c,_0x49c5a2);for(let _0x3f72ef of _0x583dae){var _0x35cb60;let _0x15d703=(_0x35cb60=_0xc6094c['customRanges'])==null?void 0x0:_0x35cb60[_0x358069(0x1e7)](_0x120364=>_0x120364[_0x358069(0x1f5)]===_0x3f72ef['rangeId']);if(!_0x15d703)return;_0x15d703['startIndex']=_0x3f72ef[_0x358069(0x1e0)],_0x15d703[_0x358069(0x21f)]=_0x3f72ef['endIndex']+_0x1a9cc2[_0x358069(0x1ad)][_0x358069(0x23b)];}return{'actions':_0x548ebb[_0x358069(0x222)](_0x49c5a2,new _0x548ebb()[_0x358069(0x18d)](_0x583dae['map'](_0x191ef3=>({'rangeId':_0x191ef3['rangeId'],'range':_0xc6094c[_0x358069(0x1c6)][_0x358069(0x1e7)](_0xd7b6c8=>_0xd7b6c8[_0x358069(0x1f5)]===_0x191ef3[_0x358069(0x1f5)])})))['serialize']()),'caretOffset':_0x52f7e6+_0x1a9cc2[_0x358069(0x1ad)][_0x358069(0x23b)]-Number(_0x5eee4b)};}function D(_0x54507c,_0x3e492c){const _0x3b8649=_0x5f5a;if(!O(_0x54507c,_0x3e492c))return;let _0x3cca4b=_0x54507c[_0x3b8649(0x1ad)][_0x3b8649(0x1a4)](_0x3e492c[_0x3b8649(0x21f)]+0x1)==='\x0d',_0x600e1c=_0x3e492c[_0x3b8649(0x21f)]+0x1+Number(_0x3cca4b);return{'actions':_0x1010df['selection']['delete']([{'startOffset':_0x3e492c[_0x3b8649(0x1e0)],'endOffset':_0x600e1c,'collapsed':!0x1}],_0x54507c,0x0,null,!0x1),'caretOffset':_0x3e492c[_0x3b8649(0x1e0)]};}function O(_0x1ed35f,_0x5e7873){const _0x29c5c6=_0x5f5a;var _0x3d29bf;if(_0x5e7873[_0x29c5c6(0x224)][_0x29c5c6(0x1ef)]!==_0x29c5c6(0x1ae)||[_0x29c5c6(0x220),_0x29c5c6(0x197),'table'][_0x29c5c6(0x19a)](_0x5e7873[_0x29c5c6(0x224)][_0x29c5c6(0x1fd)]))return!0x1;let _0x13892a=A(_0x1ed35f,_0x5e7873);return!(!_0x13892a||(_0x3d29bf=_0x13892a[_0x29c5c6(0x224)][_0x29c5c6(0x22e)])!=null&&_0x3d29bf[_0x29c5c6(0x1e3)]);}function k(_0x32e053,_0x38b59c){const _0x154c77=_0x5f5a;let _0x44c858=_0x32e053['customRanges']??[],_0x1b7533=_0x44c858[_0x154c77(0x235)](_0x501704=>_0x501704[_0x154c77(0x1f5)]===_0x38b59c[_0x154c77(0x1f5)]);return _0x44c858[_0x154c77(0x19d)]((_0x47b09c,_0x3ece3e)=>_0x47b09c[_0x154c77(0x202)]===_0x4c78f2['SDT']&&_0x47b09c['rangeId']!==_0x38b59c[_0x154c77(0x1f5)]&&_0x47b09c[_0x154c77(0x1e0)]<=_0x38b59c[_0x154c77(0x1e0)]&&_0x38b59c[_0x154c77(0x21f)]<=_0x47b09c[_0x154c77(0x21f)]&&(_0x47b09c[_0x154c77(0x1e0)]<_0x38b59c[_0x154c77(0x1e0)]||_0x38b59c[_0x154c77(0x21f)]<_0x47b09c['endIndex']||_0x3ece3e>_0x1b7533));}function oe(_0x31aca4,_0x506d1b,_0x1c0b71=[_0x158b0d(0x1c5)]){const _0x39ff5a=_0x158b0d;var _0x4100b0;let _0x3467b0=_0x31aca4['body'];if(!_0x3467b0||_0x506d1b[_0x39ff5a(0x224)]['kind']!==_0x39ff5a(0x1ae)||_0x506d1b[_0x39ff5a(0x224)]['placement']!=='row')return;let _0x12b1a4=A(_0x3467b0,_0x506d1b);if(!(!_0x12b1a4||(_0x4100b0=_0x12b1a4[_0x39ff5a(0x224)][_0x39ff5a(0x22e)])!=null&&_0x4100b0[_0x39ff5a(0x1e3)]))for(let _0x14bcb5 of _0x3467b0[_0x39ff5a(0x1a5)]??[]){if(_0x14bcb5[_0x39ff5a(0x1e0)]>_0x506d1b[_0x39ff5a(0x1e0)]||_0x14bcb5[_0x39ff5a(0x21f)]<=_0x506d1b[_0x39ff5a(0x21f)])continue;let _0x5a03d5=_0x3600f0(_0x31aca4,_0x14bcb5['tableId']);if(!_0x5a03d5)continue;let _0x3cabdd=_0x5a03d5[_0x39ff5a(0x1d3)][_0x39ff5a(0x235)](_0x1ae20c=>_0x1ae20c[_0x39ff5a(0x209)]===_0x506d1b['startIndex']),_0x4ea013=_0x5a03d5[_0x39ff5a(0x1d3)][_0x39ff5a(0x235)](_0x58cafc=>_0x58cafc[_0x39ff5a(0x1db)]===_0x506d1b[_0x39ff5a(0x21f)]);if(_0x3cabdd<0x0||_0x4ea013<_0x3cabdd)continue;let _0x97f82d=_0x4b36b0(_0x31aca4,_0x14bcb5[_0x39ff5a(0x21d)],_0x3cabdd,_0x4ea013,_0x1c0b71);if(!_0x97f82d)return;let _0x4ee035=_0x97f82d['deleteTable']?_0x5a03d5[_0x39ff5a(0x1db)]-_0x5a03d5[_0x39ff5a(0x209)]:_0x506d1b['endIndex']-_0x506d1b[_0x39ff5a(0x1e0)]+0x1;return{'actions':_0x97f82d['actions'],'caretOffset':Math[_0x39ff5a(0x1b1)](0x0,Math[_0x39ff5a(0x1ab)](_0x506d1b['startIndex'],_0x3467b0[_0x39ff5a(0x1ad)][_0x39ff5a(0x23b)]-_0x4ee035-0x2))};}}function A(_0x221796,_0x312ee8){const _0x1edc33=_0x158b0d;return k(_0x221796,_0x312ee8)['filter'](_0xcc4008=>_0xcc4008['properties'][_0x1edc33(0x1ef)]===_0x1edc33(0x22e))[_0x1edc33(0x21c)]((_0x550250,_0x55022f)=>_0x550250[_0x1edc33(0x21f)]-_0x550250[_0x1edc33(0x1e0)]-(_0x55022f[_0x1edc33(0x21f)]-_0x55022f[_0x1edc33(0x1e0)]))[0x0];}async function j(_0x3134c2,_0x553948,_0x2d0c62){const _0xeb56f7=_0x158b0d;var _0x2041b8,_0x14240e;let _0x1249a1=_0x3134c2[_0xeb56f7(0x193)](_0x2513b9),_0xc1b3a3=_0x553948[_0xeb56f7(0x231)]?_0x1249a1[_0xeb56f7(0x205)](_0x553948[_0xeb56f7(0x231)],_0x598cde['UNIVER_DOC']):_0x1249a1[_0xeb56f7(0x1a1)](_0x598cde[_0xeb56f7(0x1e6)]),_0x40d22b=_0xc1b3a3==null||(_0x2041b8=_0xc1b3a3[_0xeb56f7(0x214)](_0x553948[_0xeb56f7(0x1fb)]))==null?void 0x0:_0x2041b8[_0xeb56f7(0x237)](),_0x1c1c67=_0x40d22b==null||(_0x14240e=_0x40d22b[_0xeb56f7(0x1c6)])==null?void 0x0:_0x14240e[_0xeb56f7(0x1e7)](_0x411e35=>_0x411e35[_0xeb56f7(0x202)]===_0x4c78f2[_0xeb56f7(0x23a)]&&_0x411e35[_0xeb56f7(0x1f5)]===_0x553948[_0xeb56f7(0x1f5)]);if(!_0xc1b3a3||!_0x40d22b||!_0x1c1c67)return!0x1;let _0xbdc6b=_0x3091e6(_0xc1b3a3,_0x553948['segmentId']),_0x99439f,_0x3504f5;if(_0x1c1c67[_0xeb56f7(0x224)][_0xeb56f7(0x1fd)]===_0xeb56f7(0x220)){let _0x582aa3=!_0x2d0c62&&oe({..._0xc1b3a3[_0xeb56f7(0x208)](),'body':_0x40d22b},_0x1c1c67,_0xbdc6b);if(!_0x582aa3)return!0x1;({actions:_0x99439f,caretOffset:_0x3504f5}=_0x582aa3);}else{let _0x472a87=_0x2d0c62?ae(_0x40d22b,_0x1c1c67):D(_0x40d22b,_0x1c1c67);if(!_0x472a87)return!0x1;_0x99439f=_0x5a8054[_0xeb56f7(0x211)]()[_0xeb56f7(0x1f8)](_0x472a87['actions'],_0xbdc6b),_0x3504f5=_0x472a87[_0xeb56f7(0x238)];}let _0x13da07=_0x2d0c62?M['id']:N['id'];return!!await _0x3134c2[_0xeb56f7(0x193)](_0x44ee9f)[_0xeb56f7(0x1bb)](_0x5435eb['id'],{'unitId':_0xc1b3a3[_0xeb56f7(0x1a9)](),'historyAction':_0x13da07,'actions':_0x99439f,'textRanges':[{'startOffset':_0x3504f5,'endOffset':_0x3504f5,'collapsed':!0x0,'segmentId':_0x553948[_0xeb56f7(0x1fb)]}],'debounce':!0x1,'trigger':_0x13da07});}const M={'id':'doc.command.duplicate-repeating-sdt-item','type':_0x1ca24f[_0x158b0d(0x191)],'handler':(_0x4c3458,_0x2940a2)=>_0x2940a2!=null&&_0x2940a2[_0x158b0d(0x1f5)]?j(_0x4c3458,_0x2940a2,!0x0):!0x1},N={'id':_0x158b0d(0x1a0),'type':_0x1ca24f[_0x158b0d(0x191)],'handler':(_0x18d38e,_0x5e9a54)=>_0x5e9a54!=null&&_0x5e9a54[_0x158b0d(0x1f5)]?j(_0x18d38e,_0x5e9a54,!0x1):!0x1},P=_0x158b0d(0x1d8);function se(_0x2b60d2,_0x2030e4){const _0x913315=_0x158b0d;var _0x56e372;return _0x2b60d2==null||(_0x56e372=_0x2b60d2[_0x913315(0x1c6)])==null?void 0x0:_0x56e372[_0x913315(0x19d)](_0x5eba17=>_0x5eba17[_0x913315(0x202)]===_0x4c78f2['SDT']&&_0x5eba17[_0x913315(0x1e0)]<=_0x2030e4&&_0x2030e4<=_0x5eba17['endIndex'])[_0x913315(0x21c)]((_0x4ef636,_0x1ffc5e)=>_0x4ef636[_0x913315(0x21f)]-_0x4ef636[_0x913315(0x1e0)]-(_0x1ffc5e[_0x913315(0x21f)]-_0x1ffc5e[_0x913315(0x1e0)]))[0x0];}function F(_0x328644){const _0x5f5187=_0x158b0d;var _0x284645,_0x4b0f75;return((_0x284645=_0x328644['properties'])==null?void 0x0:_0x284645[_0x5f5187(0x1f9)])==='contentLocked'||((_0x4b0f75=_0x328644[_0x5f5187(0x224)])==null?void 0x0:_0x4b0f75[_0x5f5187(0x1f9)])==='sdtContentLocked';}function I(_0x1d7869){const _0xd3c6c4=_0x158b0d;var _0x1efeb5,_0x2c89ea;return((_0x1efeb5=_0x1d7869[_0xd3c6c4(0x224)])==null?void 0x0:_0x1efeb5[_0xd3c6c4(0x1f9)])===_0xd3c6c4(0x19e)||((_0x2c89ea=_0x1d7869['properties'])==null?void 0x0:_0x2c89ea['lock'])==='sdtContentLocked';}function L(_0xa2e85c,_0x4b7430){const _0xdc0c46=_0x158b0d;let _0x1f2260=Number[_0xdc0c46(0x1a7)](_0xa2e85c??'',0x10);return!/^[\da-f]+$/i['test'](_0xa2e85c??'')||_0x1f2260<=0x0||_0x1f2260>0x10ffff||_0x1f2260>=0xd800&&_0x1f2260<=0xdfff?_0x4b7430:String['fromCodePoint'](_0x1f2260);}function ce(_0x5ab8e9,_0x473809=_0x158b0d(0x1f0),_0x1bffe1){const _0x52b611=_0x158b0d;let _0x1ad518=new Date(_0x5ab8e9);if(Number['isNaN'](_0x1ad518[_0x52b611(0x1aa)]()))return _0x5ab8e9[_0x52b611(0x1d7)](0x0,0xa);let _0x571cc2=_0x3573e2=>{const _0x1a9ec9=_0x52b611;try{return new Intl[(_0x1a9ec9(0x1a3))](_0x1bffe1||void 0x0,{..._0x3573e2,'timeZone':_0x1a9ec9(0x1c7)})['format'](_0x1ad518);}catch{return new Intl['DateTimeFormat'](void 0x0,{..._0x3573e2,'timeZone':_0x1a9ec9(0x1c7)})[_0x1a9ec9(0x1ff)](_0x1ad518);}},_0x46ee75=_0x1ad518[_0x52b611(0x1b8)](),_0x39c08a=_0x1ad518[_0x52b611(0x22c)]()+0x1,_0x19894c=_0x1ad518[_0x52b611(0x1de)](),_0x2b20fb=!_0x1bffe1||_0x1bffe1[_0x52b611(0x1f7)]()['startsWith']('en'),_0x538224={'dddd':_0x571cc2({'weekday':_0x52b611(0x221)}),'ddd':_0x2b20fb?[_0x52b611(0x203),_0x52b611(0x20c),_0x52b611(0x1a8),_0x52b611(0x1e5),_0x52b611(0x1da),_0x52b611(0x1bf),_0x52b611(0x1e8)][_0x1ad518[_0x52b611(0x1c1)]()]:_0x571cc2({'weekday':_0x52b611(0x1eb)}),'MMMM':_0x571cc2({'month':'long'}),'MMM':_0x2b20fb?['Jan',_0x52b611(0x198),_0x52b611(0x1b4),_0x52b611(0x239),_0x52b611(0x1a6),'Jun',_0x52b611(0x1c8),_0x52b611(0x1b3),_0x52b611(0x216),'Oct',_0x52b611(0x1fe),_0x52b611(0x1cc)][_0x39c08a-0x1]:_0x571cc2({'month':_0x52b611(0x1eb)}),'yyyy':String(_0x46ee75)[_0x52b611(0x1d6)](0x4,'0'),'yy':String(_0x46ee75%0x64)['padStart'](0x2,'0'),'MM':String(_0x39c08a)['padStart'](0x2,'0'),'M':String(_0x39c08a),'dd':String(_0x19894c)[_0x52b611(0x1d6)](0x2,'0'),'d':String(_0x19894c)};return _0x473809[_0x52b611(0x1ce)](/dddd|ddd|MMMM|MMM|yyyy|yy|MM|M|dd|d/g,_0x5ea24f=>_0x538224[_0x5ea24f]);}function R(_0x356421,_0x6eb815){const _0x376da6=_0x158b0d;let _0x4949ee=_0x356421[_0x376da6(0x224)];if(_0x6eb815[_0x376da6(0x229)])return _0x6eb815[_0x376da6(0x1f4)];if(_0x4949ee[_0x376da6(0x1ef)]==='checkbox'){var _0x4cb4bd,_0x418fe3,_0x4e1d50;let _0x17465f=_0x6eb815[_0x376da6(0x1b9)]??!((_0x4cb4bd=_0x4949ee[_0x376da6(0x227)])!=null&&_0x4cb4bd[_0x376da6(0x1b9)]),_0x25757e={..._0x4949ee[_0x376da6(0x227)],..._0x6eb815[_0x376da6(0x1cb)]};return _0x17465f?L((_0x418fe3=_0x25757e[_0x376da6(0x230)])==null?void 0x0:_0x418fe3[_0x376da6(0x1f4)],'☒'):L((_0x4e1d50=_0x25757e[_0x376da6(0x23d)])==null?void 0x0:_0x4e1d50[_0x376da6(0x1f4)],'☐');}if(_0x4949ee[_0x376da6(0x1ef)]===_0x376da6(0x1a2)||_0x4949ee['kind']===_0x376da6(0x1e1)){var _0x50a67a;let _0x434a7f=_0x6eb815['value'];return _0x434a7f==null?void 0x0:((_0x50a67a=_0x4949ee[_0x376da6(0x18f)])==null||(_0x50a67a=_0x50a67a[_0x376da6(0x1e7)](_0x44badf=>_0x44badf['value']===_0x434a7f))==null?void 0x0:_0x50a67a[_0x376da6(0x194)])??_0x434a7f;}if(_0x4949ee[_0x376da6(0x1ef)]===_0x376da6(0x201)){var _0x98f915,_0x52ea24;let _0x4b2839=_0x6eb815[_0x376da6(0x1ba)]??_0x6eb815[_0x376da6(0x1f4)];return _0x4b2839==null?void 0x0:ce(_0x4b2839,(_0x98f915=_0x4949ee[_0x376da6(0x201)])==null?void 0x0:_0x98f915[_0x376da6(0x1ff)],(_0x52ea24=_0x4949ee[_0x376da6(0x201)])==null?void 0x0:_0x52ea24['locale']);}return _0x6eb815[_0x376da6(0x1f4)];}function le(_0x3fe0e7,_0x41cb99){const _0xe3b602=_0x158b0d;var _0x254c2f;let _0x4e666d=_0x3cd4f9({},_0x256650['deepClone'](_0x3fe0e7[_0xe3b602(0x224)]),_0x256650[_0xe3b602(0x1fa)](_0x41cb99[_0xe3b602(0x224)]??{}));if((_0x254c2f=_0x41cb99[_0xe3b602(0x224)])!=null&&_0x254c2f[_0xe3b602(0x18f)]&&(_0x4e666d[_0xe3b602(0x18f)]=_0x256650[_0xe3b602(0x1fa)](_0x41cb99[_0xe3b602(0x224)][_0xe3b602(0x18f)])),_0x4e666d[_0xe3b602(0x1ef)]===_0xe3b602(0x227)){var _0x26eed5;_0x4e666d[_0xe3b602(0x227)]={..._0x4e666d[_0xe3b602(0x227)],..._0x256650[_0xe3b602(0x1fa)](_0x41cb99['checkboxStyle']),'checked':_0x41cb99[_0xe3b602(0x1b9)]??!((_0x26eed5=_0x4e666d[_0xe3b602(0x227)])!=null&&_0x26eed5[_0xe3b602(0x1b9)])};}else{if(_0x4e666d[_0xe3b602(0x1ef)]===_0xe3b602(0x201)&&!_0x41cb99[_0xe3b602(0x229)]){var _0xcb2eb7;_0x4e666d[_0xe3b602(0x201)]={..._0x4e666d['date'],'fullDate':_0x41cb99[_0xe3b602(0x1ba)]??_0x41cb99[_0xe3b602(0x1f4)]??((_0xcb2eb7=_0x4e666d[_0xe3b602(0x201)])==null?void 0x0:_0xcb2eb7[_0xe3b602(0x1ba)])};}}return _0x4e666d[_0xe3b602(0x229)]=_0x41cb99[_0xe3b602(0x229)]??!0x1,_0x4e666d['dataBinding']&&={..._0x4e666d[_0xe3b602(0x200)],'dirty':!0x0},_0x4e666d;}function ue(_0x1231b4,_0x19df78,_0x1518f8,_0x3478dc,_0x813c4f,_0x2ffea6){const _0x25a711=_0x158b0d;var _0x3de6d1,_0x117bf4,_0x5a112b,_0x29e748;let _0x2d389d=[..._0x1518f8][_0x25a711(0x199)]((_0x8d468c,_0x58117d)=>_0x8d468c+_0x58117d['length'],0x0),_0x269ecf=(_0x3de6d1=_0x1231b4[_0x25a711(0x210)])==null?void 0x0:_0x3de6d1['find'](_0x32afa5=>_0x32afa5['st']<=_0x2ffea6&&_0x2ffea6<_0x32afa5['ed']),_0x3ef00a=_0x3478dc[_0x25a711(0x1ef)]===_0x25a711(0x227)?(_0x117bf4=_0x3478dc[_0x25a711(0x227)])!=null&&_0x117bf4[_0x25a711(0x1b9)]?(_0x5a112b=_0x3478dc['checkbox']['checkedState'])==null?void 0x0:_0x5a112b[_0x25a711(0x1ec)]:(_0x29e748=_0x3478dc[_0x25a711(0x227)])==null||(_0x29e748=_0x29e748[_0x25a711(0x23d)])==null?void 0x0:_0x29e748[_0x25a711(0x1ec)]:void 0x0,_0x3341cb=_0x269ecf!=null&&_0x269ecf['ts']?_0x256650[_0x25a711(0x1fa)](_0x269ecf['ts']):{};return _0x3ef00a&&!_0x3341cb['ff']&&(_0x3341cb['ff']=_0x3ef00a),{'dataStream':_0x1518f8,'textRuns':_0x269ecf!=null&&_0x269ecf['ts']||_0x3ef00a?[{'st':0x0,'ed':_0x2d389d,'ts':_0x3341cb}]:void 0x0,'customRanges':_0x813c4f?[{'startIndex':0x0,'endIndex':Math[_0x25a711(0x1b1)](0x0,_0x2d389d-0x1),'rangeId':_0x19df78[_0x25a711(0x1f5)],'rangeType':_0x4c78f2[_0x25a711(0x23a)],'wholeEntity':!0x1,'properties':_0x3478dc}]:void 0x0};}function z(_0x4346eb,_0xd0ba15){const _0x346ee7=_0x158b0d;let _0x365406=_0xd0ba15[_0x346ee7(0x1e0)],_0x5aa8cc=_0xd0ba15[_0x346ee7(0x21f)]+0x1;for(_0x4346eb[_0x346ee7(0x1ad)][_0x365406]===_0x58e487[_0x346ee7(0x228)]&&_0x4346eb['dataStream'][_0x5aa8cc-0x1]===_0x58e487[_0x346ee7(0x1ea)]&&(_0x365406++,_0x5aa8cc--);_0x365406<_0x5aa8cc&&B(_0x4346eb['dataStream'][_0x346ee7(0x1ee)](_0x365406));)_0x365406++;for(;_0x5aa8cc>_0x365406&&B(_0x4346eb[_0x346ee7(0x1ad)]['charCodeAt'](_0x5aa8cc-0x1));)_0x5aa8cc--;return{'startOffset':_0x365406,'endOffset':_0x5aa8cc};}function B(_0x343641){return _0x343641<0x20&&_0x343641!==0x9;}async function de(_0x1453e8,_0x187e7b,_0x3e5d00,_0x3b51e5,_0x4a2c55,_0x32db96,_0x16718a){const _0x10481c=_0x158b0d;let _0x40c99c=U(_0x3e5d00,_0x3b51e5,_0x4a2c55,_0x32db96);if(!_0x40c99c)return!0x1;let _0x2056af={'unitId':_0x187e7b[_0x10481c(0x1a9)](),'historyAction':P,'actions':_0x5a8054[_0x10481c(0x211)]()[_0x10481c(0x1f8)](_0x40c99c[_0x10481c(0x19c)],_0x3091e6(_0x187e7b,_0x16718a)),'textRanges':[{'startOffset':_0x40c99c[_0x10481c(0x238)],'endOffset':_0x40c99c[_0x10481c(0x238)],'collapsed':!0x0,'segmentId':_0x16718a}],'debounce':!0x1,'trigger':P};return V(_0x187e7b,_0x2056af),!!await _0x1453e8['get'](_0x44ee9f)[_0x10481c(0x1bb)](_0x5435eb['id'],_0x2056af);}function V(_0x409031,_0x4f40f6){const _0x8807ef=_0x158b0d;let _0x398b22=_0x409031[_0x8807ef(0x208)](),_0x2d2b5e=['',...Object[_0x8807ef(0x212)](_0x398b22[_0x8807ef(0x1d1)]??{}),...Object[_0x8807ef(0x212)](_0x398b22[_0x8807ef(0x20a)]??{}),...Object[_0x8807ef(0x212)](_0x398b22[_0x8807ef(0x223)]??{})]['flatMap'](_0x4a37c6=>{const _0x16f674=_0x8807ef;var _0xfadaa,_0x57c655;let _0x1ba67f=(_0xfadaa=_0x409031[_0x16f674(0x214)](_0x4a37c6))==null?void 0x0:_0xfadaa[_0x16f674(0x237)]();return(_0x1ba67f==null||(_0x57c655=_0x1ba67f[_0x16f674(0x1c6)])==null?void 0x0:_0x57c655[_0x16f674(0x19d)](_0x707c65=>_0x707c65[_0x16f674(0x202)]===_0x4c78f2[_0x16f674(0x23a)]&&!!_0x4315de(_0x707c65))[_0x16f674(0x18b)](_0x59a7f6=>({'segmentId':_0x4a37c6,'range':_0x59a7f6,'body':_0x1ba67f})))??[];});if(_0x2d2b5e[_0x8807ef(0x23b)]<0x2)return;let _0xf80c89=!0x1,_0x56b46e=new Set(),_0x3e576a=_0x2843d8['type']['readCursor'](_0x4f40f6['actions']);if(_0x3e576a['traverse'](null,_0x37b39b=>{const _0x1f5cf0=_0x8807ef;if(_0x37b39b['et']!==_0x548ebb['id']||!Array[_0x1f5cf0(0x1df)](_0x37b39b['e']))return;let _0x4c4854=_0x3e576a[_0x1f5cf0(0x1e4)](),_0x14a69f=_0x2d2b5e[_0x1f5cf0(0x19d)](({segmentId:_0x4c407f})=>{const _0x448c82=_0x1f5cf0;let _0x4c5a32=_0x3091e6(_0x409031,_0x4c407f);return _0x4c4854[_0x448c82(0x23b)]===_0x4c5a32['length']&&_0x4c5a32[_0x448c82(0x236)]((_0x56dbed,_0x1b56d9)=>_0x56dbed===_0x4c4854[_0x1b56d9]);}),_0x47725d=0x0;for(let _0x136551 of _0x37b39b['e'])if(_0x136551['t']===_0x5c22f7[_0x1f5cf0(0x22a)]){if(_0xf80c89||=_0x14a69f['some'](({range:_0x390fa5})=>_0x47725d>=_0x390fa5[_0x1f5cf0(0x1e0)]&&_0x47725d<=_0x390fa5['endIndex']+0x1),_0x136551[_0x1f5cf0(0x1d9)]){for(let {range:_0x6f95c}of _0x14a69f)_0x6f95c[_0x1f5cf0(0x1f5)]===_0x136551['valueRangeId']&&_0x56b46e[_0x1f5cf0(0x1f2)](_0x6f95c);}}else _0x136551['t']===_0x5c22f7['DELETE']&&(_0xf80c89||=_0x14a69f[_0x1f5cf0(0x18e)](({range:_0x24415b})=>_0x47725d<=_0x24415b[_0x1f5cf0(0x21f)]&&_0x47725d+_0x136551[_0x1f5cf0(0x1c2)]>_0x24415b[_0x1f5cf0(0x1e0)])),_0x47725d+=_0x136551[_0x1f5cf0(0x1c2)];}),!_0xf80c89)return;let _0x12e171=_0x5a8054['apply'](_0x256650[_0x8807ef(0x1fa)](_0x398b22),_0x4f40f6['actions']);if(!_0x12e171)return;let _0x582958=_0x5bbc47=>{const _0x1a1060=_0x8807ef;var _0x2c2823,_0x12b2f4,_0x10c095;return _0x5bbc47?((_0x2c2823=_0x12e171[_0x1a1060(0x1d1)])==null||(_0x2c2823=_0x2c2823[_0x5bbc47])==null?void 0x0:_0x2c2823['body'])??((_0x12b2f4=_0x12e171[_0x1a1060(0x20a)])==null||(_0x12b2f4=_0x12b2f4[_0x5bbc47])==null?void 0x0:_0x12b2f4[_0x1a1060(0x1c5)])??((_0x10c095=_0x12e171[_0x1a1060(0x223)])==null||(_0x10c095=_0x10c095[_0x5bbc47])==null?void 0x0:_0x10c095['body']):_0x12e171['body'];},_0x5e9676=new Map(),_0x2543b8=new Set();for(let {segmentId:_0x41dd85,range:_0x5b0d43,body:_0x51d10f}of _0x2d2b5e){var _0x40700a;let _0x18db33=_0x582958(_0x41dd85),_0x29db47=_0x18db33==null||(_0x40700a=_0x18db33['customRanges'])==null?void 0x0:_0x40700a['find'](_0x18345b=>_0x18345b[_0x8807ef(0x1f5)]===_0x5b0d43[_0x8807ef(0x1f5)]&&_0x18345b[_0x8807ef(0x202)]===_0x4c78f2[_0x8807ef(0x23a)]);if(!_0x29db47||!_0x18db33||F(_0x5b0d43)||_0x4315de(_0x29db47)!==_0x4315de(_0x5b0d43))continue;let _0x34b4e0=_0x2382ce(_0x18db33,_0x29db47);if(_0x34b4e0!==void 0x0&&(_0x56b46e['has'](_0x5b0d43)||_0x34b4e0!==_0x2382ce(_0x51d10f,_0x5b0d43))){let _0x94074e=_0x4315de(_0x29db47);_0x5e9676[_0x8807ef(0x225)](_0x94074e,_0x34b4e0),_0x56b46e['has'](_0x5b0d43)&&_0x2543b8[_0x8807ef(0x1f2)](_0x94074e);}}for(let {segmentId:_0x3c7d94,range:_0x562052}of _0x2d2b5e){var _0x3bc1da,_0x4c29cf;let _0x501fb=_0x582958(_0x3c7d94),_0x247694=_0x501fb==null||(_0x3bc1da=_0x501fb[_0x8807ef(0x1c6)])==null?void 0x0:_0x3bc1da[_0x8807ef(0x1e7)](_0x1aa562=>_0x1aa562[_0x8807ef(0x1f5)]===_0x562052[_0x8807ef(0x1f5)]&&_0x1aa562[_0x8807ef(0x202)]===_0x4c78f2['SDT']),_0x154f20=_0x247694&&_0x5e9676[_0x8807ef(0x193)](_0x4315de(_0x247694)??''),_0xb4340f=!!(_0x247694&&_0x2543b8[_0x8807ef(0x18a)](_0x4315de(_0x247694)??''));if(!_0x247694||!_0x501fb||_0x154f20===void 0x0||_0x2382ce(_0x501fb,_0x247694)===_0x154f20&&(!_0xb4340f||_0x56b46e[_0x8807ef(0x18a)](_0x562052)))continue;let _0x446bd7={'rangeId':_0x247694[_0x8807ef(0x1f5)],'value':_0x154f20};_0x154f20===''&&[_0x8807ef(0x1c3),_0x8807ef(0x1e9),_0x8807ef(0x201),_0x8807ef(0x1e1),_0x8807ef(0x1a2)][_0x8807ef(0x19a)](_0x247694['properties'][_0x8807ef(0x1ef)])&&(_0x446bd7[_0x8807ef(0x229)]=!0x0,_0x446bd7[_0x8807ef(0x1f4)]=H(_0x247694[_0x8807ef(0x224)])),_0x247694['properties'][_0x8807ef(0x1ef)]===_0x8807ef(0x227)&&(_0x446bd7[_0x8807ef(0x1b9)]=_0x154f20===_0x8807ef(0x1d4)||_0x154f20==='1');let _0xa1cc8f=R(_0x247694,_0x446bd7),_0x23477d=_0xa1cc8f==null?void 0x0:U(_0x501fb,_0x247694,_0xa1cc8f,_0x446bd7,_0xb4340f||void 0x0);if(!_0x23477d)continue;let _0x1711e3=_0x5a8054[_0x8807ef(0x211)]()[_0x8807ef(0x1f8)](_0x23477d[_0x8807ef(0x19c)],_0x3091e6(_0x409031,_0x3c7d94));_0x4f40f6[_0x8807ef(0x19c)]=_0x5a8054[_0x8807ef(0x222)](_0x4f40f6['actions'],_0x1711e3),_0x4f40f6[_0x8807ef(0x1cf)]=(_0x4c29cf=_0x4f40f6[_0x8807ef(0x1cf)])==null?void 0x0:_0x4c29cf[_0x8807ef(0x18b)](_0x15838a=>(_0x15838a['segmentId']??_0x4f40f6[_0x8807ef(0x1fb)]??'')===_0x3c7d94?{..._0x15838a,'startOffset':_0x548ebb[_0x8807ef(0x215)](_0x23477d['actions'],_0x15838a[_0x8807ef(0x209)]),'endOffset':_0x548ebb[_0x8807ef(0x215)](_0x23477d['actions'],_0x15838a[_0x8807ef(0x1db)])}:_0x15838a),_0x548ebb[_0x8807ef(0x207)](_0x501fb,_0x23477d[_0x8807ef(0x19c)]);}}function H(_0x3344f6){const _0x4ae757=_0x158b0d;let {placeholder:_0x254b4b,placeholderDocPart:_0x528c1d}=_0x3344f6;return(_0x254b4b===(_0x528c1d==null?void 0x0:_0x528c1d['name'])?void 0x0:_0x254b4b)??(_0x528c1d==null?void 0x0:_0x528c1d[_0x4ae757(0x1c3)])??'​';}function U(_0xe997b,_0x6ff2,_0x53bab9,_0x2d8b93,_0x32c4f7){const _0x4ce5b5=_0x158b0d;let _0x36a20b=le(_0x6ff2,_0x2d8b93),_0x4dfabd=z(_0xe997b,_0x6ff2),_0x148251=_0x4dfabd['startOffset']>_0x6ff2[_0x4ce5b5(0x1e0)]||_0x4dfabd[_0x4ce5b5(0x1db)]<_0x6ff2[_0x4ce5b5(0x21f)]+0x1,_0x2534cb=ue(_0xe997b,_0x6ff2,_0x53bab9,_0x36a20b,!_0x148251,_0x4dfabd[_0x4ce5b5(0x209)]),_0x5e9c2b={'startOffset':_0x4dfabd[_0x4ce5b5(0x209)],'endOffset':_0x4dfabd[_0x4ce5b5(0x1db)],'collapsed':!0x1},_0x1f9230=_0x1010df[_0x4ce5b5(0x23c)][_0x4ce5b5(0x192)]([_0x5e9c2b],_0xe997b,0x0,_0x2534cb);if(_0x148251){var _0xde2de,_0x34619e;let _0x44a9ee=_0x256650['deepClone'](_0xe997b);_0x548ebb[_0x4ce5b5(0x207)](_0x44a9ee,_0x1f9230);let _0x1f7d24=(_0xde2de=_0x44a9ee[_0x4ce5b5(0x1c6)])==null?void 0x0:_0xde2de['find'](_0x47c0e1=>_0x47c0e1['rangeType']===_0x4c78f2['SDT']&&_0x47c0e1[_0x4ce5b5(0x1f5)]===_0x6ff2[_0x4ce5b5(0x1f5)]);if(!_0x1f7d24)return;let _0x209e09=_0x6ff2[_0x4ce5b5(0x1e0)],_0x2b140c=_0x6ff2[_0x4ce5b5(0x21f)]+_0x2534cb[_0x4ce5b5(0x1ad)][_0x4ce5b5(0x23b)]-(_0x4dfabd[_0x4ce5b5(0x1db)]-_0x4dfabd[_0x4ce5b5(0x209)]),_0xb24487=(_0x34619e=_0x44a9ee[_0x4ce5b5(0x1c6)])==null?void 0x0:_0x34619e['filter'](_0xd4ede=>_0x209e09<=_0xd4ede[_0x4ce5b5(0x1e0)]&&_0xd4ede[_0x4ce5b5(0x21f)]<=_0x2b140c)[_0x4ce5b5(0x18b)](_0x4ab93e=>({..._0x256650['deepClone'](_0x4ab93e),'startIndex':_0x4ab93e[_0x4ce5b5(0x1f5)]===_0x6ff2[_0x4ce5b5(0x1f5)]?0x0:_0x4ab93e[_0x4ce5b5(0x1e0)]-_0x209e09,'endIndex':_0x4ab93e[_0x4ce5b5(0x1f5)]===_0x6ff2[_0x4ce5b5(0x1f5)]?_0x2b140c-_0x209e09:_0x4ab93e[_0x4ce5b5(0x21f)]-_0x209e09,'properties':_0x4ab93e[_0x4ce5b5(0x1f5)]===_0x1f7d24[_0x4ce5b5(0x1f5)]?_0x36a20b:_0x256650[_0x4ce5b5(0x1fa)](_0x4ab93e[_0x4ce5b5(0x224)])})),_0x504464=new _0x548ebb()['retain'](_0x209e09)['retain'](_0x2b140c-_0x209e09+0x1,{'dataStream':'','customRanges':_0xb24487});_0x1f9230=_0x548ebb[_0x4ce5b5(0x222)](_0x1f9230,_0x504464['serialize']());}if((_0x32c4f7??[_0x4ce5b5(0x227),_0x4ce5b5(0x201),'dropDownList',_0x4ce5b5(0x1e1)][_0x4ce5b5(0x19a)](_0x36a20b[_0x4ce5b5(0x1ef)]))&&(_0x1f9230=_0x1f9230[_0x4ce5b5(0x18b)](_0x3e320d=>_0x3e320d['t']===_0x5c22f7[_0x4ce5b5(0x190)]?_0x3e320d:{..._0x3e320d,'valueRangeId':_0x6ff2[_0x4ce5b5(0x1f5)]})),_0x2d8b93[_0x4ce5b5(0x224)]){let _0x1d349c=_0x3cd4f9({},_0x256650[_0x4ce5b5(0x1fa)](_0x6ff2['properties']),_0x256650[_0x4ce5b5(0x1fa)](_0x2d8b93['properties']));_0x2d8b93[_0x4ce5b5(0x224)][_0x4ce5b5(0x18f)]&&(_0x1d349c[_0x4ce5b5(0x18f)]=_0x256650['deepClone'](_0x2d8b93[_0x4ce5b5(0x224)][_0x4ce5b5(0x18f)]));let _0x5cbcb5={..._0x6ff2,'endIndex':_0x6ff2['endIndex']+_0x2534cb[_0x4ce5b5(0x1ad)][_0x4ce5b5(0x23b)]-(_0x4dfabd[_0x4ce5b5(0x1db)]-_0x4dfabd[_0x4ce5b5(0x209)])};_0x1f9230[_0x4ce5b5(0x22d)](...new _0x548ebb()[_0x4ce5b5(0x1ed)](_0x5cbcb5,_0x1d349c)[_0x4ce5b5(0x1c4)]());}return{'actions':_0x1f9230,'caretOffset':_0x4dfabd[_0x4ce5b5(0x209)]+_0x2534cb[_0x4ce5b5(0x1ad)][_0x4ce5b5(0x23b)]};}const W={'id':P,'type':_0x1ca24f['COMMAND'],async 'handler'(_0x510d6c,_0x1d82ee){const _0x413976=_0x158b0d;var _0x16b2cc,_0x37fad6;if(!(_0x1d82ee!=null&&_0x1d82ee['rangeId']))return!0x1;let _0x2f7163=_0x510d6c['get'](_0x2513b9),_0x4476e4=_0x1d82ee['unitId']?_0x2f7163[_0x413976(0x205)](_0x1d82ee['unitId'],_0x598cde[_0x413976(0x1e6)]):_0x2f7163[_0x413976(0x1a1)](_0x598cde['UNIVER_DOC']),_0x37efda=_0x4476e4==null||(_0x16b2cc=_0x4476e4['getSelfOrHeaderFooterModel'](_0x1d82ee[_0x413976(0x1fb)]))==null?void 0x0:_0x16b2cc[_0x413976(0x237)](),_0x440842=_0x37efda==null||(_0x37fad6=_0x37efda[_0x413976(0x1c6)])==null?void 0x0:_0x37fad6[_0x413976(0x1e7)](_0x567a50=>_0x567a50[_0x413976(0x202)]===_0x4c78f2[_0x413976(0x23a)]&&_0x567a50[_0x413976(0x1f5)]===_0x1d82ee['rangeId']);if(!_0x4476e4||!_0x37efda||!_0x440842||F(_0x440842))return!0x1;let _0x2b6e9f=R(_0x440842,_0x1d82ee);return _0x2b6e9f!=null&&de(_0x510d6c,_0x4476e4,_0x37efda,_0x440842,_0x2b6e9f,_0x1d82ee,_0x1d82ee['segmentId']);}};function fe(_0x17d0e4,_0x3ffc27){const _0x4c0099=_0x158b0d;if(_0x3ffc27<=_0x17d0e4['startIndex'])return;let _0x44c1d3=_0x256650[_0x4c0099(0x1fa)](_0x17d0e4);return _0x44c1d3[_0x4c0099(0x1e0)]=0x0,_0x44c1d3[_0x4c0099(0x21f)]=_0x3ffc27-_0x17d0e4[_0x4c0099(0x1e0)]-0x1,_0x44c1d3[_0x4c0099(0x224)][_0x4c0099(0x229)]=!0x1,_0x44c1d3[_0x4c0099(0x224)][_0x4c0099(0x200)]&&(_0x44c1d3[_0x4c0099(0x224)]['dataBinding']['dirty']=!0x0),new _0x548ebb()[_0x4c0099(0x22b)](_0x17d0e4[_0x4c0099(0x1e0)])[_0x4c0099(0x22b)](_0x3ffc27-_0x17d0e4[_0x4c0099(0x1e0)],{'dataStream':'','customRanges':[_0x44c1d3]})[_0x4c0099(0x1c4)]();}function G(_0x5e1d64,_0x1aea8a,_0x335cf7,_0x40ff09=!0x1){const _0xb3e81a=_0x158b0d;var _0x4ccd55;let _0x40ddcd=_0x335cf7?_0x3cd4f9({},_0x256650['deepClone'](_0x1aea8a['properties']),_0x256650[_0xb3e81a(0x1fa)](_0x335cf7)):_0x1aea8a[_0xb3e81a(0x224)];_0x335cf7!=null&&_0x335cf7[_0xb3e81a(0x18f)]&&(_0x40ddcd[_0xb3e81a(0x18f)]=_0x256650[_0xb3e81a(0x1fa)](_0x335cf7[_0xb3e81a(0x18f)]));let _0x25011a=new _0x548ebb();return _0x40ff09&&_0x5e1d64['dataStream'][_0x1aea8a['startIndex']]===_0x58e487['CUSTOM_RANGE_START']&&_0x5e1d64[_0xb3e81a(0x1ad)][_0x1aea8a[_0xb3e81a(0x21f)]]===_0x58e487['CUSTOM_RANGE_END']&&!((_0x4ccd55=_0x5e1d64['customRanges'])!=null&&_0x4ccd55[_0xb3e81a(0x18e)](_0x21a9d4=>_0x21a9d4[_0xb3e81a(0x1f5)]!==_0x1aea8a[_0xb3e81a(0x1f5)]&&_0x21a9d4[_0xb3e81a(0x1e0)]===_0x1aea8a[_0xb3e81a(0x1e0)]&&_0x21a9d4[_0xb3e81a(0x21f)]===_0x1aea8a['endIndex']))&&_0x25011a['retain'](_0x1aea8a['startIndex'])[_0xb3e81a(0x192)](0x1)[_0xb3e81a(0x22b)](_0x1aea8a[_0xb3e81a(0x21f)]-_0x1aea8a['startIndex']-0x1)['delete'](0x1),_0x40ff09?_0x25011a['updateCustomRanges']([{'rangeId':_0x1aea8a['rangeId'],'range':null}]):_0x25011a['updateCustomRangeProperties'](_0x1aea8a,_0x40ddcd),{'actions':_0x25011a[_0xb3e81a(0x1c4)](),'caretOffset':_0x1aea8a['startIndex']};}function _0x1a29(){const _0x403dbf=['toLowerCase','editOp','lock','deepClone','segmentId','registerPluginResource','placement','Nov','format','dataBinding','date','rangeType','Sun','type','getUnit','521319HuzkON','apply','getSnapshot','startOffset','footers','prototype','Mon','onStarting','docs-sdt.config','symbol','textRuns','getInstance','keys','DOC_SDT_CUSTOM_XML_PLUGIN','getSelfOrHeaderFooterModel','transformPosition','Sep','_commandService','ooxmlId','registerCommand','setConfig','2klzGRS','sort','tableId','8201928vusEKD','endIndex','row','long','compose','notes','properties','set','6532158IBLsBY','checkbox','CUSTOM_RANGE_START','showingPlaceholder','INSERT','retain','getUTCMonth','push','repeatingSection','random','checkedState','unitId','7108398DJpNTs','doc.command.update-sdt-properties','forEach','findIndex','every','getBody','caretOffset','Apr','SDT','length','selection','uncheckedState','has','map','93804gBsmxJ','updateCustomRanges','some','listItems','RETAIN','COMMAND','delete','get','displayText','_configService','getOwnPropertyDescriptor','cell','Feb','reduce','includes','853480oEWslY','actions','filter','sdtLocked','_injector','doc.command.delete-repeating-sdt-item','getCurrentUnitOfType','dropDownList','DateTimeFormat','charAt','tables','May','parseInt','Tue','getUnitId','getTime','min','object','dataStream','repeatingSectionItem','constructor','doc.command.remove-sdt','max','floor','Aug','Mar','DOCS_SDT_PLUGIN','packageName','paragraphs','getUTCFullYear','checked','fullDate','executeCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','function','Fri','toPrimitive','getUTCDay','len','text','serialize','body','customRanges','UTC','Jul','disposeWithMe','1.2.0','checkboxStyle','Dec','3513960LNYPkN','replace','textRanges','version','headers','115owfPgG','rows','true','_config','padStart','slice','doc.command.update-sdt-value','valueRangeId','Thu','endOffset','iterator','paragraphId','getUTCDate','isArray','startIndex','comboBox','clear','doNotAllowInsertDelete','getPath','Wed','UNIVER_DOC','find','Sat','richText','CUSTOM_RANGE_END','short','font','updateCustomRangeProperties','charCodeAt','kind','yyyy-MM-dd','copy','add','decorate','value','rangeId','string'];_0x1a29=function(){return _0x403dbf;};return _0x1a29();}async function K(_0x139a51,_0x457b8c,_0x307b28){const _0x2913bf=_0x158b0d;var _0x419168,_0x20a7cf;let _0x3688ce=_0x139a51['get'](_0x2513b9),_0x17cb89=_0x457b8c[_0x2913bf(0x231)]?_0x3688ce['getUnit'](_0x457b8c['unitId'],_0x598cde[_0x2913bf(0x1e6)]):_0x3688ce[_0x2913bf(0x1a1)](_0x598cde[_0x2913bf(0x1e6)]),_0x52aa11=_0x17cb89==null||(_0x419168=_0x17cb89['getSelfOrHeaderFooterModel'](_0x457b8c[_0x2913bf(0x1fb)]))==null?void 0x0:_0x419168['getBody'](),_0x510f2c=_0x52aa11==null||(_0x20a7cf=_0x52aa11[_0x2913bf(0x1c6)])==null?void 0x0:_0x20a7cf[_0x2913bf(0x1e7)](_0x5044dc=>_0x5044dc['rangeType']===_0x4c78f2[_0x2913bf(0x23a)]&&_0x5044dc[_0x2913bf(0x1f5)]===_0x457b8c[_0x2913bf(0x1f5)]);if(!_0x17cb89||!_0x52aa11||!_0x510f2c||_0x307b28&&I(_0x510f2c))return!0x1;let _0x200024=G(_0x52aa11,_0x510f2c,'properties'in _0x457b8c?_0x457b8c[_0x2913bf(0x224)]:void 0x0,_0x307b28);return!_0x200024[_0x2913bf(0x19c)]['length']||!!await _0x139a51[_0x2913bf(0x193)](_0x44ee9f)[_0x2913bf(0x1bb)](_0x5435eb['id'],{'unitId':_0x17cb89[_0x2913bf(0x1a9)](),'historyAction':_0x307b28?J['id']:q['id'],'actions':_0x5a8054[_0x2913bf(0x211)]()['editOp'](_0x200024[_0x2913bf(0x19c)],_0x3091e6(_0x17cb89,_0x457b8c[_0x2913bf(0x1fb)])),'textRanges':[{'startOffset':_0x200024[_0x2913bf(0x238)],'endOffset':_0x200024['caretOffset'],'collapsed':!0x0,'segmentId':_0x457b8c[_0x2913bf(0x1fb)]}],'debounce':!0x1,'trigger':_0x307b28?J['id']:q['id']});}function _0x5f5a(_0x1e41f5,_0x1c135f){_0x1e41f5=_0x1e41f5-0x18a;const _0x1a29f8=_0x1a29();let _0x5f5aca=_0x1a29f8[_0x1e41f5];return _0x5f5aca;}const q={'id':_0x158b0d(0x233),'type':_0x1ca24f[_0x158b0d(0x191)],'handler':(_0x5b35b4,_0x2b60ff)=>_0x2b60ff!=null&&_0x2b60ff[_0x158b0d(0x1f5)]&&_0x2b60ff[_0x158b0d(0x224)]?K(_0x5b35b4,_0x2b60ff,!0x1):!0x1},J={'id':_0x158b0d(0x1b0),'type':_0x1ca24f[_0x158b0d(0x191)],'handler':(_0x21d461,_0x565cca)=>_0x565cca!=null&&_0x565cca[_0x158b0d(0x1f5)]?K(_0x21d461,_0x565cca,!0x0):!0x1};var pe='@univerjs-pro/docs-sdt',me=_0x158b0d(0x1ca);const Y={};function X(_0x27c334,_0x4ef06b){return function(_0x401a42,_0x2029b7){_0x4ef06b(_0x401a42,_0x2029b7,_0x27c334);};}function he(_0x5d23e0,_0x1a4ac9,_0x3d8da1,_0x3dd572){const _0x400c8f=_0x158b0d;var _0x36ebfd=arguments['length'],_0x2e627e=_0x36ebfd<0x3?_0x1a4ac9:_0x3dd572===null?_0x3dd572=Object[_0x400c8f(0x196)](_0x1a4ac9,_0x3d8da1):_0x3dd572,_0x2450be;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x400c8f(0x1be))_0x2e627e=Reflect[_0x400c8f(0x1f3)](_0x5d23e0,_0x1a4ac9,_0x3d8da1,_0x3dd572);else{for(var _0x3adc16=_0x5d23e0[_0x400c8f(0x23b)]-0x1;_0x3adc16>=0x0;_0x3adc16--)(_0x2450be=_0x5d23e0[_0x3adc16])&&(_0x2e627e=(_0x36ebfd<0x3?_0x2450be(_0x2e627e):_0x36ebfd>0x3?_0x2450be(_0x1a4ac9,_0x3d8da1,_0x2e627e):_0x2450be(_0x1a4ac9,_0x3d8da1))||_0x2e627e);}return _0x36ebfd>0x3&&_0x2e627e&&Object[_0x400c8f(0x1bd)](_0x1a4ac9,_0x3d8da1,_0x2e627e),_0x2e627e;}function Z(_0x27fb31){'@babel/helpers - typeof';const _0x407c8b=_0x158b0d;return Z=typeof Symbol=='function'&&typeof Symbol[_0x407c8b(0x1dc)]==_0x407c8b(0x20f)?function(_0x407dfc){return typeof _0x407dfc;}:function(_0x2c400d){const _0x46f51a=_0x407c8b;return _0x2c400d&&typeof Symbol==_0x46f51a(0x1be)&&_0x2c400d[_0x46f51a(0x1af)]===Symbol&&_0x2c400d!==Symbol[_0x46f51a(0x20b)]?_0x46f51a(0x20f):typeof _0x2c400d;},Z(_0x27fb31);}function ge(_0x24888b,_0x1713ed){const _0x466ac0=_0x158b0d;if(Z(_0x24888b)!=_0x466ac0(0x1ac)||!_0x24888b)return _0x24888b;var _0x1d2dc6=_0x24888b[Symbol[_0x466ac0(0x1c0)]];if(_0x1d2dc6!==void 0x0){var _0xf094cf=_0x1d2dc6['call'](_0x24888b,_0x1713ed||'default');if(Z(_0xf094cf)!=_0x466ac0(0x1ac))return _0xf094cf;throw TypeError(_0x466ac0(0x1bc));}return(_0x1713ed===_0x466ac0(0x1f6)?String:Number)(_0x24888b);}function _e(_0x4d1fc0){const _0xe4b35d=_0x158b0d;var _0x1be78b=ge(_0x4d1fc0,_0xe4b35d(0x1f6));return Z(_0x1be78b)==_0xe4b35d(0x20f)?_0x1be78b:_0x1be78b+'';}function Q(_0x4b067b,_0x166f09,_0xd31892){const _0x478a40=_0x158b0d;return(_0x166f09=_e(_0x166f09))in _0x4b067b?Object[_0x478a40(0x1bd)](_0x4b067b,_0x166f09,{'value':_0xd31892,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b067b[_0x166f09]=_0xd31892,_0x4b067b;}let $=class extends _0x5e7bfd{constructor(_0x2c06b8=Y,_0x4d721f,_0x3226d0,_0x3c9da0){const _0x5a29b7=_0x158b0d;super(),this[_0x5a29b7(0x1d5)]=_0x2c06b8,this[_0x5a29b7(0x19f)]=_0x4d721f,this[_0x5a29b7(0x195)]=_0x3226d0,this[_0x5a29b7(0x217)]=_0x3c9da0;let {..._0x45901b}=_0x3cd4f9({},Y,this['_config']);this[_0x5a29b7(0x195)][_0x5a29b7(0x21a)](_0x5a29b7(0x20e),_0x45901b);}[_0x158b0d(0x20d)](){const _0x3fb3c9=_0x158b0d;this[_0x3fb3c9(0x1c9)](this['_commandService'][_0x3fb3c9(0x219)](W)),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x217)][_0x3fb3c9(0x219)](q)),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x217)][_0x3fb3c9(0x219)](J)),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x217)][_0x3fb3c9(0x219)](M)),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x217)][_0x3fb3c9(0x219)](N));let _0xe57019=new Map();this[_0x3fb3c9(0x1c9)]({'dispose':()=>_0xe57019[_0x3fb3c9(0x1e2)]()}),this[_0x3fb3c9(0x1c9)](this[_0x3fb3c9(0x19f)][_0x3fb3c9(0x193)](_0x3dfb9d)[_0x3fb3c9(0x1fc)]({'pluginName':_0x3fb3c9(0x213),'businesses':[_0x598cde['UNIVER_DOC']],'parseJson':_0x38679a=>_0x38679a,'onLoad':(_0x1748f7,_0x4c053b)=>{const _0x13bebf=_0x3fb3c9;_0xe57019[_0x13bebf(0x225)](_0x1748f7,_0x4c053b);},'onUnLoad':_0x1ca538=>{_0xe57019['delete'](_0x1ca538);},'toJson':_0x3132b9=>_0xe57019[_0x3fb3c9(0x193)](_0x3132b9)??''}));}};Q($,'pluginName',_0x158b0d(0x1b5)),Q($,_0x158b0d(0x1b6),pe),Q($,_0x158b0d(0x1d0),me),Q($,_0x158b0d(0x204),_0x598cde[_0x158b0d(0x1e6)]),$=he([_0x30d43f(_0x2e35d2,_0x2af2af),X(0x1,_0xb880a4(_0x4dc500)),X(0x2,_0x2c0dd6),X(0x3,_0x44ee9f)],$);export{N as DeleteRepeatingSdtItemCommand,M as DuplicateRepeatingSdtItemCommand,J as RemoveSdtCommand,$ as UniverDocsSdtPlugin,q as UpdateSdtPropertiesCommand,W as UpdateSdtValueCommand,D as buildDeleteRepeatingItemUpdate,ae as buildDuplicateRepeatingItemUpdate,fe as buildRestoredSdtMetadata,G as buildSdtMetadataUpdate,U as buildSdtValueUpdate,se as findSdtAtOffset,E as generateSdtOoxmlId,R as getSdtDisplayValue,H as getSdtPlaceholderText,z as getSdtVisibleContentRange,F as isSdtContentLocked,I as isSdtWrapperLocked,V as synchronizeSdtBindings};
1
+ const _0x33a604=_0x3b28;(function(_0x2f61e1,_0x36162f){const _0x4db3dd=_0x3b28,_0x23a5d9=_0x2f61e1();while(!![]){try{const _0xa2f424=parseInt(_0x4db3dd(0x118))/0x1+parseInt(_0x4db3dd(0x139))/0x2*(parseInt(_0x4db3dd(0x128))/0x3)+parseInt(_0x4db3dd(0x144))/0x4*(-parseInt(_0x4db3dd(0x113))/0x5)+-parseInt(_0x4db3dd(0x10f))/0x6+-parseInt(_0x4db3dd(0x14b))/0x7+-parseInt(_0x4db3dd(0x154))/0x8*(parseInt(_0x4db3dd(0x13b))/0x9)+parseInt(_0x4db3dd(0x10d))/0xa*(parseInt(_0x4db3dd(0xea))/0xb);if(_0xa2f424===_0x36162f)break;else _0x23a5d9['push'](_0x23a5d9['shift']());}catch(_0x2b8521){_0x23a5d9['push'](_0x23a5d9['shift']());}}}(_0x3018,0x9ebe6));import{buildDeleteTableRowsMutationActions as _0x1fc07e,getTableRangeById as _0x21a9f2}from'@univerjs-pro/docs-table';import{BuildTextUtils as _0x48f47d,CommandType as _0x393328,CustomRangeType as _0x27bb75,DataStreamTreeTokenType as _0x419005,DependentOn as _0x4fa5e3,ICommandService as _0x447893,IConfigService as _0x3af909,IResourceManagerService as _0x28ebe2,IUniverInstanceService as _0x28cbea,Inject as _0x5ec263,Injector as _0x520613,JSON1 as _0x39e762,JSONX as _0x34186a,Plugin as _0x2ba91d,SliceBodyType as _0x268fe9,TextX as _0x592230,TextXActionType as _0x23c17d,Tools as _0x5a3600,UniverInstanceType as _0x333dce,createParagraphId as _0x1c344a,generateRandomId as _0x4aeee4,getBodySliceForTextXAction as _0x1238c7,getRichTextEditPath as _0xc57179,getSdtBindingKey as _0x1e6083,getSdtBindingValue as _0x1ca690,merge as _0x1411a4}from'@univerjs/core';import{RichTextEditingMutation as _0x370af1,UniverDocsPlugin as _0x33258a}from'@univerjs/docs';import{UniverLicensePlugin as _0x80e4a4}from'@univerjs-pro/license';function E(_0x7010ca){const _0x157945=_0x3b28;let _0x120df0;do _0x120df0=String(Math[_0x157945(0x160)](Math[_0x157945(0x123)]()*0x7fffffff));while(_0x7010ca[_0x157945(0xe8)](_0x120df0));return _0x7010ca[_0x157945(0xe1)](_0x120df0),_0x120df0;}function ae(_0x11c8e7,_0x30ed71){const _0x218576=_0x3b28;var _0x38864a,_0x5dc59d,_0x4a0937,_0x492b0e,_0x37ad1a,_0x2ea768;if(!O(_0x11c8e7,_0x30ed71))return;let _0x12a17f=k(_0x11c8e7,_0x30ed71),_0x3b8a9c=new Set(_0x12a17f[_0x218576(0x13f)](_0x143220=>_0x143220[_0x218576(0x16b)])),_0x168aa5=_0x11c8e7[_0x218576(0x11a)][_0x218576(0x109)](_0x30ed71['endIndex']+0x1)==='\x0d',_0x113330=_0x30ed71[_0x218576(0xc1)]+0x1+Number(_0x168aa5),_0x29da26=_0x5a3600[_0x218576(0x106)](_0x1238c7(_0x11c8e7,_0x30ed71[_0x218576(0xf6)],_0x113330,!0x1,_0x268fe9[_0x218576(0x13a)]));if(!_0x29da26['dataStream'])return;let _0x468655=new Set((_0x38864a=_0x11c8e7[_0x218576(0x150)])==null?void 0x0:_0x38864a[_0x218576(0xb9)](_0x363769=>!_0x3b8a9c[_0x218576(0xe8)](_0x363769['rangeId'])&&_0x30ed71[_0x218576(0xf6)]<=_0x363769['startIndex']&&_0x363769['endIndex']<=_0x30ed71[_0x218576(0xc1)])[_0x218576(0x13f)](_0x58bddf=>_0x58bddf[_0x218576(0x16b)])),_0x349ad2=new Set((_0x5dc59d=_0x11c8e7[_0x218576(0x150)])==null?void 0x0:_0x5dc59d[_0x218576(0xb9)](_0xbbfcc3=>_0xbbfcc3[_0x218576(0xc5)]===_0x27bb75[_0x218576(0xd8)])[_0x218576(0x13f)](_0x196ddc=>_0x196ddc[_0x218576(0x15d)][_0x218576(0x125)]));_0x29da26[_0x218576(0x150)]=(_0x4a0937=_0x29da26[_0x218576(0x150)])==null?void 0x0:_0x4a0937[_0x218576(0xb9)](_0x413e1f=>_0x468655[_0x218576(0xe8)](_0x413e1f[_0x218576(0x16b)])),(_0x492b0e=_0x29da26[_0x218576(0x150)])==null||_0x492b0e[_0x218576(0xf7)](_0xc3f30d=>{const _0x4eddfa=_0x218576;_0xc3f30d[_0x4eddfa(0x16b)]=_0x4aeee4(),_0xc3f30d[_0x4eddfa(0xc5)]===_0x27bb75['SDT']&&(_0xc3f30d['properties'][_0x4eddfa(0x125)]=E(_0x349ad2));});let _0x44d973=new Set((_0x37ad1a=_0x11c8e7[_0x218576(0xdb)])==null?void 0x0:_0x37ad1a[_0x218576(0x13f)](_0x77ef61=>_0x77ef61['paragraphId']));(_0x2ea768=_0x29da26[_0x218576(0xdb)])==null||_0x2ea768[_0x218576(0xf7)](_0x6a4638=>{_0x6a4638['paragraphId']=_0x1c344a(_0x44d973);});let _0x2bb4a7=_0x113330,_0x3dd355=new _0x592230()[_0x218576(0xf3)](_0x2bb4a7)[_0x218576(0xb5)](_0x29da26['dataStream'][_0x218576(0xfe)],_0x29da26)['serialize'](),_0x5ba90b=_0x5a3600[_0x218576(0x106)](_0x11c8e7);_0x592230[_0x218576(0x108)](_0x5ba90b,_0x3dd355);for(let _0x251edb of _0x12a17f){var _0x3119b7;let _0x22e27b=(_0x3119b7=_0x5ba90b['customRanges'])==null?void 0x0:_0x3119b7['find'](_0x277980=>_0x277980[_0x218576(0x16b)]===_0x251edb['rangeId']);if(!_0x22e27b)return;_0x22e27b[_0x218576(0xf6)]=_0x251edb['startIndex'],_0x22e27b[_0x218576(0xc1)]=_0x251edb[_0x218576(0xc1)]+_0x29da26['dataStream'][_0x218576(0xfe)];}return{'actions':_0x592230[_0x218576(0x137)](_0x3dd355,new _0x592230()['updateCustomRanges'](_0x12a17f[_0x218576(0x13f)](_0x20a32f=>({'rangeId':_0x20a32f[_0x218576(0x16b)],'range':_0x5ba90b[_0x218576(0x150)][_0x218576(0x140)](_0x298c68=>_0x298c68[_0x218576(0x16b)]===_0x20a32f['rangeId'])})))[_0x218576(0x15e)]()),'caretOffset':_0x2bb4a7+_0x29da26['dataStream'][_0x218576(0xfe)]-Number(_0x168aa5)};}function D(_0x2cc76b,_0x395697){const _0x6861a9=_0x3b28;if(!O(_0x2cc76b,_0x395697))return;let _0x396680=_0x2cc76b['dataStream'][_0x6861a9(0x109)](_0x395697[_0x6861a9(0xc1)]+0x1)==='\x0d',_0x4c3b6e=_0x395697['endIndex']+0x1+Number(_0x396680);return{'actions':_0x48f47d['selection']['delete']([{'startOffset':_0x395697[_0x6861a9(0xf6)],'endOffset':_0x4c3b6e,'collapsed':!0x1}],_0x2cc76b,0x0,null,!0x1),'caretOffset':_0x395697['startIndex']};}function O(_0x3a5514,_0x156e26){const _0x417c8b=_0x3b28;var _0x5b7b72;if(_0x156e26['properties']['kind']!=='repeatingSectionItem'||['row',_0x417c8b(0x135),_0x417c8b(0xfb)]['includes'](_0x156e26[_0x417c8b(0x15d)]['placement']))return!0x1;let _0x16b0a0=A(_0x3a5514,_0x156e26);return!(!_0x16b0a0||(_0x5b7b72=_0x16b0a0['properties']['repeatingSection'])!=null&&_0x5b7b72[_0x417c8b(0xbe)]);}function k(_0x27e597,_0x139937){const _0x5760e9=_0x3b28;let _0x17b5a0=_0x27e597['customRanges']??[],_0x2e8747=_0x17b5a0[_0x5760e9(0x101)](_0x1f1ca6=>_0x1f1ca6[_0x5760e9(0x16b)]===_0x139937[_0x5760e9(0x16b)]);return _0x17b5a0[_0x5760e9(0xb9)]((_0x5a3be5,_0x353f5a)=>_0x5a3be5['rangeType']===_0x27bb75[_0x5760e9(0xd8)]&&_0x5a3be5['rangeId']!==_0x139937[_0x5760e9(0x16b)]&&_0x5a3be5[_0x5760e9(0xf6)]<=_0x139937[_0x5760e9(0xf6)]&&_0x139937[_0x5760e9(0xc1)]<=_0x5a3be5[_0x5760e9(0xc1)]&&(_0x5a3be5[_0x5760e9(0xf6)]<_0x139937['startIndex']||_0x139937['endIndex']<_0x5a3be5[_0x5760e9(0xc1)]||_0x353f5a>_0x2e8747));}function oe(_0x4ed688,_0x423c85,_0x4c8f10=[_0x33a604(0xe6)]){const _0x20deef=_0x33a604;var _0x3860ec;let _0x431198=_0x4ed688[_0x20deef(0xe6)];if(!_0x431198||_0x423c85[_0x20deef(0x15d)]['kind']!==_0x20deef(0xd1)||_0x423c85['properties']['placement']!==_0x20deef(0x147))return;let _0x4dff7f=A(_0x431198,_0x423c85);if(!(!_0x4dff7f||(_0x3860ec=_0x4dff7f['properties'][_0x20deef(0x146)])!=null&&_0x3860ec[_0x20deef(0xbe)]))for(let _0x1ffcd8 of _0x431198[_0x20deef(0xd9)]??[]){if(_0x1ffcd8['startIndex']>_0x423c85['startIndex']||_0x1ffcd8[_0x20deef(0xc1)]<=_0x423c85[_0x20deef(0xc1)])continue;let _0x32c18=_0x21a9f2(_0x4ed688,_0x1ffcd8[_0x20deef(0xff)]);if(!_0x32c18)continue;let _0x1f3f56=_0x32c18[_0x20deef(0x130)][_0x20deef(0x101)](_0x4bd332=>_0x4bd332[_0x20deef(0x102)]===_0x423c85[_0x20deef(0xf6)]),_0x26fff0=_0x32c18['rows'][_0x20deef(0x101)](_0x571d7b=>_0x571d7b['endOffset']===_0x423c85['endIndex']);if(_0x1f3f56<0x0||_0x26fff0<_0x1f3f56)continue;let _0x4fbb88=_0x1fc07e(_0x4ed688,_0x1ffcd8[_0x20deef(0xff)],_0x1f3f56,_0x26fff0,_0x4c8f10);if(!_0x4fbb88)return;let _0x423f21=_0x4fbb88[_0x20deef(0xd7)]?_0x32c18[_0x20deef(0x11d)]-_0x32c18[_0x20deef(0x102)]:_0x423c85[_0x20deef(0xc1)]-_0x423c85['startIndex']+0x1;return{'actions':_0x4fbb88[_0x20deef(0xc0)],'caretOffset':Math[_0x20deef(0x116)](0x0,Math[_0x20deef(0xc7)](_0x423c85[_0x20deef(0xf6)],_0x431198[_0x20deef(0x11a)][_0x20deef(0xfe)]-_0x423f21-0x2))};}}function A(_0x550535,_0x35c042){const _0x5a3644=_0x33a604;return k(_0x550535,_0x35c042)[_0x5a3644(0xb9)](_0x145213=>_0x145213['properties'][_0x5a3644(0xed)]===_0x5a3644(0x146))[_0x5a3644(0x14e)]((_0x210f0b,_0x214ace)=>_0x210f0b['endIndex']-_0x210f0b['startIndex']-(_0x214ace[_0x5a3644(0xc1)]-_0x214ace[_0x5a3644(0xf6)]))[0x0];}async function j(_0x3727cc,_0x35cfbe,_0x454a1c){const _0x222e26=_0x33a604;var _0x46e82d,_0x2bcabf;let _0x2563c1=_0x3727cc[_0x222e26(0x151)](_0x28cbea),_0x187c31=_0x35cfbe[_0x222e26(0xe9)]?_0x2563c1[_0x222e26(0x141)](_0x35cfbe[_0x222e26(0xe9)],_0x333dce[_0x222e26(0x169)]):_0x2563c1[_0x222e26(0x152)](_0x333dce[_0x222e26(0x169)]),_0x1659b9=_0x187c31==null||(_0x46e82d=_0x187c31[_0x222e26(0xf4)](_0x35cfbe[_0x222e26(0x15f)]))==null?void 0x0:_0x46e82d[_0x222e26(0xde)](),_0x58534f=_0x1659b9==null||(_0x2bcabf=_0x1659b9[_0x222e26(0x150)])==null?void 0x0:_0x2bcabf[_0x222e26(0x140)](_0x186e40=>_0x186e40[_0x222e26(0xc5)]===_0x27bb75[_0x222e26(0xd8)]&&_0x186e40[_0x222e26(0x16b)]===_0x35cfbe[_0x222e26(0x16b)]);if(!_0x187c31||!_0x1659b9||!_0x58534f)return!0x1;let _0x377e4e=_0xc57179(_0x187c31,_0x35cfbe['segmentId']),_0x4a0bb5,_0x5b743e;if(_0x58534f[_0x222e26(0x15d)][_0x222e26(0xc2)]===_0x222e26(0x147)){let _0x20d44f=!_0x454a1c&&oe({..._0x187c31[_0x222e26(0x104)](),'body':_0x1659b9},_0x58534f,_0x377e4e);if(!_0x20d44f)return!0x1;({actions:_0x4a0bb5,caretOffset:_0x5b743e}=_0x20d44f);}else{let _0xc834b6=_0x454a1c?ae(_0x1659b9,_0x58534f):D(_0x1659b9,_0x58534f);if(!_0xc834b6)return!0x1;_0x4a0bb5=_0x34186a[_0x222e26(0xe3)]()['editOp'](_0xc834b6[_0x222e26(0xc0)],_0x377e4e),_0x5b743e=_0xc834b6[_0x222e26(0x138)];}let _0x23b35a=_0x454a1c?M['id']:N['id'];return!!await _0x3727cc['get'](_0x447893)['executeCommand'](_0x370af1['id'],{'unitId':_0x187c31[_0x222e26(0xfa)](),'historyAction':_0x23b35a,'actions':_0x4a0bb5,'textRanges':[{'startOffset':_0x5b743e,'endOffset':_0x5b743e,'collapsed':!0x0,'segmentId':_0x35cfbe[_0x222e26(0x15f)]}],'debounce':!0x1,'trigger':_0x23b35a});}const M={'id':_0x33a604(0x161),'type':_0x393328['COMMAND'],'handler':(_0x392c1c,_0x3a536e)=>_0x3a536e!=null&&_0x3a536e[_0x33a604(0x16b)]?j(_0x392c1c,_0x3a536e,!0x0):!0x1},N={'id':'doc.command.delete-repeating-sdt-item','type':_0x393328[_0x33a604(0xc9)],'handler':(_0x1a66a3,_0x46979f)=>_0x46979f!=null&&_0x46979f[_0x33a604(0x16b)]?j(_0x1a66a3,_0x46979f,!0x1):!0x1},P=_0x33a604(0x132);function se(_0x18e7f7,_0x12bf27){const _0x289e00=_0x33a604;var _0x4b83c2;return _0x18e7f7==null||(_0x4b83c2=_0x18e7f7[_0x289e00(0x150)])==null?void 0x0:_0x4b83c2[_0x289e00(0xb9)](_0x5a6fcb=>_0x5a6fcb[_0x289e00(0xc5)]===_0x27bb75[_0x289e00(0xd8)]&&_0x5a6fcb[_0x289e00(0xf6)]<=_0x12bf27&&_0x12bf27<=_0x5a6fcb[_0x289e00(0xc1)])['sort']((_0xf04aa8,_0x54b953)=>_0xf04aa8[_0x289e00(0xc1)]-_0xf04aa8['startIndex']-(_0x54b953['endIndex']-_0x54b953[_0x289e00(0xf6)]))[0x0];}function F(_0x4a45dc){const _0x232839=_0x33a604;var _0x4c46e8,_0x182282;return((_0x4c46e8=_0x4a45dc[_0x232839(0x15d)])==null?void 0x0:_0x4c46e8[_0x232839(0x156)])===_0x232839(0xb6)||((_0x182282=_0x4a45dc['properties'])==null?void 0x0:_0x182282[_0x232839(0x156)])===_0x232839(0x119);}function I(_0x24a88f){const _0x39fadf=_0x33a604;var _0x49faaf,_0x9ad67d;return((_0x49faaf=_0x24a88f['properties'])==null?void 0x0:_0x49faaf[_0x39fadf(0x156)])===_0x39fadf(0x165)||((_0x9ad67d=_0x24a88f[_0x39fadf(0x15d)])==null?void 0x0:_0x9ad67d[_0x39fadf(0x156)])==='sdtContentLocked';}function L(_0x59456e,_0x324f6f){const _0x148a6b=_0x33a604;let _0x5617d7=Number[_0x148a6b(0x158)](_0x59456e??'',0x10);return!/^[\da-f]+$/i[_0x148a6b(0xbb)](_0x59456e??'')||_0x5617d7<=0x0||_0x5617d7>0x10ffff||_0x5617d7>=0xd800&&_0x5617d7<=0xdfff?_0x324f6f:String['fromCodePoint'](_0x5617d7);}function ce(_0x2d3db5,_0xdd7597='yyyy-MM-dd',_0x3812b7){const _0x3af797=_0x33a604;let _0x5055ad=new Date(_0x2d3db5);if(Number[_0x3af797(0xd3)](_0x5055ad[_0x3af797(0x10b)]()))return _0x2d3db5[_0x3af797(0xe4)](0x0,0xa);let _0x11b070=_0x31c326=>{const _0x5ecfcb=_0x3af797;try{return new Intl[(_0x5ecfcb(0x16a))](_0x3812b7||void 0x0,{..._0x31c326,'timeZone':_0x5ecfcb(0xf2)})[_0x5ecfcb(0xb7)](_0x5055ad);}catch{return new Intl['DateTimeFormat'](void 0x0,{..._0x31c326,'timeZone':_0x5ecfcb(0xf2)})[_0x5ecfcb(0xb7)](_0x5055ad);}},_0x4d39ab=_0x5055ad['getUTCFullYear'](),_0x32759=_0x5055ad[_0x3af797(0x142)]()+0x1,_0x45b946=_0x5055ad[_0x3af797(0xee)](),_0xd50296=!_0x3812b7||_0x3812b7[_0x3af797(0x14f)]()[_0x3af797(0x14c)]('en'),_0x3a43fa={'dddd':_0x11b070({'weekday':_0x3af797(0x114)}),'ddd':_0xd50296?['Sun',_0x3af797(0xbd),_0x3af797(0xb8),'Wed',_0x3af797(0xfc),'Fri','Sat'][_0x5055ad[_0x3af797(0xce)]()]:_0x11b070({'weekday':_0x3af797(0x168)}),'MMMM':_0x11b070({'month':'long'}),'MMM':_0xd50296?['Jan',_0x3af797(0x129),_0x3af797(0xba),_0x3af797(0x112),'May',_0x3af797(0x127),_0x3af797(0x126),_0x3af797(0xbf),_0x3af797(0x14a),_0x3af797(0x12d),_0x3af797(0x122),_0x3af797(0x134)][_0x32759-0x1]:_0x11b070({'month':_0x3af797(0x168)}),'yyyy':String(_0x4d39ab)['padStart'](0x4,'0'),'yy':String(_0x4d39ab%0x64)[_0x3af797(0x145)](0x2,'0'),'MM':String(_0x32759)[_0x3af797(0x145)](0x2,'0'),'M':String(_0x32759),'dd':String(_0x45b946)[_0x3af797(0x145)](0x2,'0'),'d':String(_0x45b946)};return _0xdd7597[_0x3af797(0xcf)](/dddd|ddd|MMMM|MMM|yyyy|yy|MM|M|dd|d/g,_0x3c9f60=>_0x3a43fa[_0x3c9f60]);}function R(_0x4a647b,_0x5482dc){const _0x50dbd0=_0x33a604;let _0x2b6b7b=_0x4a647b['properties'];if(_0x5482dc['showingPlaceholder'])return _0x5482dc[_0x50dbd0(0x11c)];if(_0x2b6b7b[_0x50dbd0(0xed)]==='checkbox'){var _0x5d947c,_0x1e6d2b,_0x177364;let _0x4274bc=_0x5482dc[_0x50dbd0(0xfd)]??!((_0x5d947c=_0x2b6b7b[_0x50dbd0(0x11b)])!=null&&_0x5d947c[_0x50dbd0(0xfd)]),_0x467b07={..._0x2b6b7b[_0x50dbd0(0x11b)],..._0x5482dc['checkboxStyle']};return _0x4274bc?L((_0x1e6d2b=_0x467b07[_0x50dbd0(0x157)])==null?void 0x0:_0x1e6d2b[_0x50dbd0(0x11c)],'☒'):L((_0x177364=_0x467b07[_0x50dbd0(0x155)])==null?void 0x0:_0x177364[_0x50dbd0(0x11c)],'☐');}if(_0x2b6b7b[_0x50dbd0(0xed)]===_0x50dbd0(0x10e)||_0x2b6b7b[_0x50dbd0(0xed)]===_0x50dbd0(0x159)){var _0x5d64fb;let _0x458c11=_0x5482dc['value'];return _0x458c11==null?void 0x0:((_0x5d64fb=_0x2b6b7b[_0x50dbd0(0xf9)])==null||(_0x5d64fb=_0x5d64fb[_0x50dbd0(0x140)](_0x3976b6=>_0x3976b6[_0x50dbd0(0x11c)]===_0x458c11))==null?void 0x0:_0x5d64fb[_0x50dbd0(0x166)])??_0x458c11;}if(_0x2b6b7b[_0x50dbd0(0xed)]===_0x50dbd0(0x153)){var _0x8e6cff,_0x71ea38;let _0x5023d2=_0x5482dc[_0x50dbd0(0x15a)]??_0x5482dc[_0x50dbd0(0x11c)];return _0x5023d2==null?void 0x0:ce(_0x5023d2,(_0x8e6cff=_0x2b6b7b[_0x50dbd0(0x153)])==null?void 0x0:_0x8e6cff['format'],(_0x71ea38=_0x2b6b7b[_0x50dbd0(0x153)])==null?void 0x0:_0x71ea38['locale']);}return _0x5482dc[_0x50dbd0(0x11c)];}function le(_0x2f21d4,_0x7382fe){const _0x12f137=_0x33a604;var _0x472090;let _0x4c146f=_0x1411a4({},_0x5a3600[_0x12f137(0x106)](_0x2f21d4['properties']),_0x5a3600[_0x12f137(0x106)](_0x7382fe[_0x12f137(0x15d)]??{}));if((_0x472090=_0x7382fe[_0x12f137(0x15d)])!=null&&_0x472090['listItems']&&(_0x4c146f[_0x12f137(0xf9)]=_0x5a3600['deepClone'](_0x7382fe[_0x12f137(0x15d)][_0x12f137(0xf9)])),_0x4c146f[_0x12f137(0xed)]===_0x12f137(0x11b)){var _0x205aec;_0x4c146f['checkbox']={..._0x4c146f['checkbox'],..._0x5a3600[_0x12f137(0x106)](_0x7382fe[_0x12f137(0xca)]),'checked':_0x7382fe['checked']??!((_0x205aec=_0x4c146f[_0x12f137(0x11b)])!=null&&_0x205aec[_0x12f137(0xfd)])};}else{if(_0x4c146f['kind']===_0x12f137(0x153)&&!_0x7382fe['showingPlaceholder']){var _0x37eecb;_0x4c146f[_0x12f137(0x153)]={..._0x4c146f['date'],'fullDate':_0x7382fe[_0x12f137(0x15a)]??_0x7382fe[_0x12f137(0x11c)]??((_0x37eecb=_0x4c146f[_0x12f137(0x153)])==null?void 0x0:_0x37eecb[_0x12f137(0x15a)])};}}return _0x4c146f[_0x12f137(0x143)]=_0x7382fe[_0x12f137(0x143)]??!0x1,_0x4c146f[_0x12f137(0x148)]&&={..._0x4c146f[_0x12f137(0x148)],'dirty':!0x0},_0x4c146f;}function ue(_0x4f6ee3,_0x3aaaf5,_0x49a4ca,_0x585ad5,_0x153299,_0x41c05f){const _0x2e2848=_0x33a604;var _0x37a5b9,_0x54ea99,_0x22ecec,_0x1a672a;let _0x130b7b=[..._0x49a4ca][_0x2e2848(0x136)]((_0x106b66,_0x209134)=>_0x106b66+_0x209134['length'],0x0),_0x12eda9=(_0x37a5b9=_0x4f6ee3[_0x2e2848(0x10c)])==null?void 0x0:_0x37a5b9[_0x2e2848(0x140)](_0xabe70e=>_0xabe70e['st']<=_0x41c05f&&_0x41c05f<_0xabe70e['ed']),_0x3c58b1=_0x585ad5[_0x2e2848(0xed)]==='checkbox'?(_0x54ea99=_0x585ad5['checkbox'])!=null&&_0x54ea99[_0x2e2848(0xfd)]?(_0x22ecec=_0x585ad5[_0x2e2848(0x11b)]['checkedState'])==null?void 0x0:_0x22ecec[_0x2e2848(0xdf)]:(_0x1a672a=_0x585ad5['checkbox'])==null||(_0x1a672a=_0x1a672a[_0x2e2848(0x155)])==null?void 0x0:_0x1a672a['font']:void 0x0,_0x462d4b=_0x12eda9!=null&&_0x12eda9['ts']?_0x5a3600[_0x2e2848(0x106)](_0x12eda9['ts']):{};return _0x3c58b1&&!_0x462d4b['ff']&&(_0x462d4b['ff']=_0x3c58b1),{'dataStream':_0x49a4ca,'textRuns':_0x12eda9!=null&&_0x12eda9['ts']||_0x3c58b1?[{'st':0x0,'ed':_0x130b7b,'ts':_0x462d4b}]:void 0x0,'customRanges':_0x153299?[{'startIndex':0x0,'endIndex':Math[_0x2e2848(0x116)](0x0,_0x130b7b-0x1),'rangeId':_0x3aaaf5['rangeId'],'rangeType':_0x27bb75[_0x2e2848(0xd8)],'wholeEntity':!0x1,'properties':_0x585ad5}]:void 0x0};}function z(_0xa89dda,_0xb98147){const _0x5f39b9=_0x33a604;let _0x3f5b5b=_0xb98147['startIndex'],_0x3dd677=_0xb98147[_0x5f39b9(0xc1)]+0x1;for(_0xa89dda[_0x5f39b9(0x11a)][_0x3f5b5b]===_0x419005[_0x5f39b9(0xf5)]&&_0xa89dda[_0x5f39b9(0x11a)][_0x3dd677-0x1]===_0x419005[_0x5f39b9(0x110)]&&(_0x3f5b5b++,_0x3dd677--);_0x3f5b5b<_0x3dd677&&B(_0xa89dda[_0x5f39b9(0x11a)][_0x5f39b9(0xc4)](_0x3f5b5b));)_0x3f5b5b++;for(;_0x3dd677>_0x3f5b5b&&B(_0xa89dda[_0x5f39b9(0x11a)][_0x5f39b9(0xc4)](_0x3dd677-0x1));)_0x3dd677--;return{'startOffset':_0x3f5b5b,'endOffset':_0x3dd677};}function B(_0x2164ec){return _0x2164ec<0x20&&_0x2164ec!==0x9;}async function de(_0x205b42,_0x50b56f,_0x3beaff,_0x35405d,_0x31c718,_0x4a36d9,_0x4aeea4){const _0x44c19e=_0x33a604;let _0x4f92a1=U(_0x3beaff,_0x35405d,_0x31c718,_0x4a36d9);if(!_0x4f92a1)return!0x1;let _0x3d4902={'unitId':_0x50b56f[_0x44c19e(0xfa)](),'historyAction':P,'actions':_0x34186a[_0x44c19e(0xe3)]()[_0x44c19e(0xec)](_0x4f92a1[_0x44c19e(0xc0)],_0xc57179(_0x50b56f,_0x4aeea4)),'textRanges':[{'startOffset':_0x4f92a1[_0x44c19e(0x138)],'endOffset':_0x4f92a1['caretOffset'],'collapsed':!0x0,'segmentId':_0x4aeea4}],'debounce':!0x1,'trigger':P};return V(_0x50b56f,_0x3d4902),!!await _0x205b42[_0x44c19e(0x151)](_0x447893)[_0x44c19e(0x12f)](_0x370af1['id'],_0x3d4902);}function V(_0x4c6a27,_0x2668a7){const _0x26cd2b=_0x33a604;let _0x451b64=_0x4c6a27[_0x26cd2b(0x104)](),_0xdc819a=['',...Object[_0x26cd2b(0x14d)](_0x451b64[_0x26cd2b(0x167)]??{}),...Object['keys'](_0x451b64['footers']??{}),...Object[_0x26cd2b(0x14d)](_0x451b64[_0x26cd2b(0x121)]??{})][_0x26cd2b(0xd6)](_0x1cd331=>{const _0x11a323=_0x26cd2b;var _0xdb59cf,_0x47cfab;let _0x4b6b3e=(_0xdb59cf=_0x4c6a27[_0x11a323(0xf4)](_0x1cd331))==null?void 0x0:_0xdb59cf[_0x11a323(0xde)]();return(_0x4b6b3e==null||(_0x47cfab=_0x4b6b3e[_0x11a323(0x150)])==null?void 0x0:_0x47cfab[_0x11a323(0xb9)](_0x1791b1=>_0x1791b1[_0x11a323(0xc5)]===_0x27bb75[_0x11a323(0xd8)]&&!!_0x1e6083(_0x1791b1))[_0x11a323(0x13f)](_0x4be6f7=>({'segmentId':_0x1cd331,'range':_0x4be6f7,'body':_0x4b6b3e})))??[];});if(_0xdc819a['length']<0x2)return;let _0x27e0a9=!0x1,_0xbd55cb=new Set(),_0xb5bb37=_0x39e762[_0x26cd2b(0x12a)][_0x26cd2b(0xdd)](_0x2668a7[_0x26cd2b(0xc0)]);if(_0xb5bb37['traverse'](null,_0x50dfa2=>{const _0x4f34cc=_0x26cd2b;if(_0x50dfa2['et']!==_0x592230['id']||!Array[_0x4f34cc(0xdc)](_0x50dfa2['e']))return;let _0x152fcf=_0xb5bb37[_0x4f34cc(0x12b)](),_0x1f0e94=_0xdc819a[_0x4f34cc(0xb9)](({segmentId:_0x1191d7})=>{const _0xd3ea28=_0x4f34cc;let _0x35a312=_0xc57179(_0x4c6a27,_0x1191d7);return _0x152fcf[_0xd3ea28(0xfe)]===_0x35a312[_0xd3ea28(0xfe)]&&_0x35a312[_0xd3ea28(0x15b)]((_0x11246a,_0x388186)=>_0x11246a===_0x152fcf[_0x388186]);}),_0x26e583=0x0;for(let _0x495491 of _0x50dfa2['e'])if(_0x495491['t']===_0x23c17d[_0x4f34cc(0xcb)]){if(_0x27e0a9||=_0x1f0e94[_0x4f34cc(0xcd)](({range:_0xdcf187})=>_0x26e583>=_0xdcf187[_0x4f34cc(0xf6)]&&_0x26e583<=_0xdcf187[_0x4f34cc(0xc1)]+0x1),_0x495491[_0x4f34cc(0xc8)]){for(let {range:_0x35b53a}of _0x1f0e94)_0x35b53a[_0x4f34cc(0x16b)]===_0x495491['valueRangeId']&&_0xbd55cb['add'](_0x35b53a);}}else _0x495491['t']===_0x23c17d[_0x4f34cc(0x163)]&&(_0x27e0a9||=_0x1f0e94['some'](({range:_0x4a09b0})=>_0x26e583<=_0x4a09b0[_0x4f34cc(0xc1)]&&_0x26e583+_0x495491[_0x4f34cc(0x117)]>_0x4a09b0[_0x4f34cc(0xf6)])),_0x26e583+=_0x495491[_0x4f34cc(0x117)];}),!_0x27e0a9)return;let _0x1a0d21=_0x34186a[_0x26cd2b(0x108)](_0x5a3600[_0x26cd2b(0x106)](_0x451b64),_0x2668a7[_0x26cd2b(0xc0)]);if(!_0x1a0d21)return;let _0x150816=_0x7bcfa8=>{const _0x3953e8=_0x26cd2b;var _0x3ab75a,_0x2b4540,_0x174d23;return _0x7bcfa8?((_0x3ab75a=_0x1a0d21[_0x3953e8(0x167)])==null||(_0x3ab75a=_0x3ab75a[_0x7bcfa8])==null?void 0x0:_0x3ab75a[_0x3953e8(0xe6)])??((_0x2b4540=_0x1a0d21['footers'])==null||(_0x2b4540=_0x2b4540[_0x7bcfa8])==null?void 0x0:_0x2b4540['body'])??((_0x174d23=_0x1a0d21[_0x3953e8(0x121)])==null||(_0x174d23=_0x174d23[_0x7bcfa8])==null?void 0x0:_0x174d23[_0x3953e8(0xe6)]):_0x1a0d21['body'];},_0x96bc27=new Map(),_0x4f80af=new Set();for(let {segmentId:_0x1790f4,range:_0x4f5b15,body:_0x4eced4}of _0xdc819a){var _0x2e616b;let _0x81bbc6=_0x150816(_0x1790f4),_0x174e0d=_0x81bbc6==null||(_0x2e616b=_0x81bbc6[_0x26cd2b(0x150)])==null?void 0x0:_0x2e616b[_0x26cd2b(0x140)](_0x237f50=>_0x237f50[_0x26cd2b(0x16b)]===_0x4f5b15[_0x26cd2b(0x16b)]&&_0x237f50['rangeType']===_0x27bb75['SDT']);if(!_0x174e0d||!_0x81bbc6||F(_0x4f5b15)||_0x1e6083(_0x174e0d)!==_0x1e6083(_0x4f5b15))continue;let _0x5ac059=_0x1ca690(_0x81bbc6,_0x174e0d);if(_0x5ac059!==void 0x0&&(_0xbd55cb[_0x26cd2b(0xe8)](_0x4f5b15)||_0x5ac059!==_0x1ca690(_0x4eced4,_0x4f5b15))){let _0x260bdb=_0x1e6083(_0x174e0d);_0x96bc27[_0x26cd2b(0xd4)](_0x260bdb,_0x5ac059),_0xbd55cb[_0x26cd2b(0xe8)](_0x4f5b15)&&_0x4f80af['add'](_0x260bdb);}}for(let {segmentId:_0x22f411,range:_0x11cbdc}of _0xdc819a){var _0x500212,_0x369c21;let _0x27d0e1=_0x150816(_0x22f411),_0x14c8b6=_0x27d0e1==null||(_0x500212=_0x27d0e1[_0x26cd2b(0x150)])==null?void 0x0:_0x500212['find'](_0xfb4564=>_0xfb4564['rangeId']===_0x11cbdc['rangeId']&&_0xfb4564[_0x26cd2b(0xc5)]===_0x27bb75[_0x26cd2b(0xd8)]),_0x310c87=_0x14c8b6&&_0x96bc27[_0x26cd2b(0x151)](_0x1e6083(_0x14c8b6)??''),_0x5603a7=!!(_0x14c8b6&&_0x4f80af[_0x26cd2b(0xe8)](_0x1e6083(_0x14c8b6)??''));if(!_0x14c8b6||!_0x27d0e1||_0x310c87===void 0x0||_0x1ca690(_0x27d0e1,_0x14c8b6)===_0x310c87&&(!_0x5603a7||_0xbd55cb[_0x26cd2b(0xe8)](_0x11cbdc)))continue;let _0x254ac5={'rangeId':_0x14c8b6['rangeId'],'value':_0x310c87};_0x310c87===''&&['text','richText',_0x26cd2b(0x153),'comboBox','dropDownList'][_0x26cd2b(0x12e)](_0x14c8b6['properties'][_0x26cd2b(0xed)])&&(_0x254ac5[_0x26cd2b(0x143)]=!0x0,_0x254ac5[_0x26cd2b(0x11c)]=H(_0x14c8b6[_0x26cd2b(0x15d)])),_0x14c8b6['properties'][_0x26cd2b(0xed)]===_0x26cd2b(0x11b)&&(_0x254ac5['checked']=_0x310c87===_0x26cd2b(0x131)||_0x310c87==='1');let _0x245cb5=R(_0x14c8b6,_0x254ac5),_0x1c6cef=_0x245cb5==null?void 0x0:U(_0x27d0e1,_0x14c8b6,_0x245cb5,_0x254ac5,_0x5603a7||void 0x0);if(!_0x1c6cef)continue;let _0x507a6b=_0x34186a['getInstance']()[_0x26cd2b(0xec)](_0x1c6cef[_0x26cd2b(0xc0)],_0xc57179(_0x4c6a27,_0x22f411));_0x2668a7['actions']=_0x34186a[_0x26cd2b(0x137)](_0x2668a7['actions'],_0x507a6b),_0x2668a7[_0x26cd2b(0xef)]=(_0x369c21=_0x2668a7[_0x26cd2b(0xef)])==null?void 0x0:_0x369c21[_0x26cd2b(0x13f)](_0x49a004=>(_0x49a004[_0x26cd2b(0x15f)]??_0x2668a7[_0x26cd2b(0x15f)]??'')===_0x22f411?{..._0x49a004,'startOffset':_0x592230['transformPosition'](_0x1c6cef[_0x26cd2b(0xc0)],_0x49a004[_0x26cd2b(0x102)]),'endOffset':_0x592230[_0x26cd2b(0x115)](_0x1c6cef[_0x26cd2b(0xc0)],_0x49a004[_0x26cd2b(0x11d)])}:_0x49a004),_0x592230[_0x26cd2b(0x108)](_0x27d0e1,_0x1c6cef[_0x26cd2b(0xc0)]);}}function H(_0x47204f){const _0x1934db=_0x33a604;let {placeholder:_0x7d0662,placeholderDocPart:_0x27c1f0}=_0x47204f;return(_0x7d0662===(_0x27c1f0==null?void 0x0:_0x27c1f0[_0x1934db(0xe0)])?void 0x0:_0x7d0662)??(_0x27c1f0==null?void 0x0:_0x27c1f0['text'])??'​';}function U(_0x4d612b,_0x106828,_0x1cf647,_0x31852c,_0x50479d){const _0x370083=_0x33a604;let _0x4efcf5=le(_0x106828,_0x31852c),_0x4076ae=z(_0x4d612b,_0x106828),_0x1cb3c6=_0x4076ae['startOffset']>_0x106828[_0x370083(0xf6)]||_0x4076ae[_0x370083(0x11d)]<_0x106828['endIndex']+0x1,_0x4c3d2a=ue(_0x4d612b,_0x106828,_0x1cf647,_0x4efcf5,!_0x1cb3c6,_0x4076ae[_0x370083(0x102)]),_0x3ef577={'startOffset':_0x4076ae['startOffset'],'endOffset':_0x4076ae['endOffset'],'collapsed':!0x1},_0x99a806=_0x48f47d[_0x370083(0x13d)][_0x370083(0xbc)]([_0x3ef577],_0x4d612b,0x0,_0x4c3d2a);if(_0x1cb3c6){var _0x419a0b,_0x4c950e;let _0xcb7d87=_0x5a3600[_0x370083(0x106)](_0x4d612b);_0x592230[_0x370083(0x108)](_0xcb7d87,_0x99a806);let _0x530acb=(_0x419a0b=_0xcb7d87[_0x370083(0x150)])==null?void 0x0:_0x419a0b[_0x370083(0x140)](_0x2a3e53=>_0x2a3e53[_0x370083(0xc5)]===_0x27bb75[_0x370083(0xd8)]&&_0x2a3e53[_0x370083(0x16b)]===_0x106828['rangeId']);if(!_0x530acb)return;let _0xbef2af=_0x106828['startIndex'],_0x13beeb=_0x106828['endIndex']+_0x4c3d2a[_0x370083(0x11a)][_0x370083(0xfe)]-(_0x4076ae['endOffset']-_0x4076ae[_0x370083(0x102)]),_0x5ad4e4=(_0x4c950e=_0xcb7d87[_0x370083(0x150)])==null?void 0x0:_0x4c950e['filter'](_0x50274f=>_0xbef2af<=_0x50274f[_0x370083(0xf6)]&&_0x50274f['endIndex']<=_0x13beeb)[_0x370083(0x13f)](_0x5449c4=>({..._0x5a3600[_0x370083(0x106)](_0x5449c4),'startIndex':_0x5449c4['rangeId']===_0x106828[_0x370083(0x16b)]?0x0:_0x5449c4[_0x370083(0xf6)]-_0xbef2af,'endIndex':_0x5449c4[_0x370083(0x16b)]===_0x106828['rangeId']?_0x13beeb-_0xbef2af:_0x5449c4[_0x370083(0xc1)]-_0xbef2af,'properties':_0x5449c4['rangeId']===_0x530acb[_0x370083(0x16b)]?_0x4efcf5:_0x5a3600['deepClone'](_0x5449c4['properties'])})),_0x59ffe9=new _0x592230()[_0x370083(0xf3)](_0xbef2af)[_0x370083(0xf3)](_0x13beeb-_0xbef2af+0x1,{'dataStream':'','customRanges':_0x5ad4e4});_0x99a806=_0x592230[_0x370083(0x137)](_0x99a806,_0x59ffe9[_0x370083(0x15e)]());}if((_0x50479d??['checkbox',_0x370083(0x153),_0x370083(0x10e),_0x370083(0x159)]['includes'](_0x4efcf5[_0x370083(0xed)]))&&(_0x99a806=_0x99a806[_0x370083(0x13f)](_0x1f3f05=>_0x1f3f05['t']===_0x23c17d[_0x370083(0x162)]?_0x1f3f05:{..._0x1f3f05,'valueRangeId':_0x106828[_0x370083(0x16b)]})),_0x31852c[_0x370083(0x15d)]){let _0x46c9d9=_0x1411a4({},_0x5a3600[_0x370083(0x106)](_0x106828[_0x370083(0x15d)]),_0x5a3600[_0x370083(0x106)](_0x31852c['properties']));_0x31852c[_0x370083(0x15d)][_0x370083(0xf9)]&&(_0x46c9d9['listItems']=_0x5a3600[_0x370083(0x106)](_0x31852c[_0x370083(0x15d)][_0x370083(0xf9)]));let _0x103013={..._0x106828,'endIndex':_0x106828[_0x370083(0xc1)]+_0x4c3d2a['dataStream']['length']-(_0x4076ae[_0x370083(0x11d)]-_0x4076ae[_0x370083(0x102)])};_0x99a806[_0x370083(0xeb)](...new _0x592230()['updateCustomRangeProperties'](_0x103013,_0x46c9d9)[_0x370083(0x15e)]());}return{'actions':_0x99a806,'caretOffset':_0x4076ae[_0x370083(0x102)]+_0x4c3d2a[_0x370083(0x11a)][_0x370083(0xfe)]};}const W={'id':P,'type':_0x393328[_0x33a604(0xc9)],async 'handler'(_0x59f405,_0x22a3bb){const _0x1ee5ee=_0x33a604;var _0x3205e0,_0x1d0847;if(!(_0x22a3bb!=null&&_0x22a3bb[_0x1ee5ee(0x16b)]))return!0x1;let _0x3463eb=_0x59f405[_0x1ee5ee(0x151)](_0x28cbea),_0x14164a=_0x22a3bb['unitId']?_0x3463eb[_0x1ee5ee(0x141)](_0x22a3bb[_0x1ee5ee(0xe9)],_0x333dce[_0x1ee5ee(0x169)]):_0x3463eb[_0x1ee5ee(0x152)](_0x333dce[_0x1ee5ee(0x169)]),_0x4a5c72=_0x14164a==null||(_0x3205e0=_0x14164a[_0x1ee5ee(0xf4)](_0x22a3bb['segmentId']))==null?void 0x0:_0x3205e0['getBody'](),_0x9e2d43=_0x4a5c72==null||(_0x1d0847=_0x4a5c72[_0x1ee5ee(0x150)])==null?void 0x0:_0x1d0847['find'](_0x23ce6f=>_0x23ce6f[_0x1ee5ee(0xc5)]===_0x27bb75[_0x1ee5ee(0xd8)]&&_0x23ce6f['rangeId']===_0x22a3bb[_0x1ee5ee(0x16b)]);if(!_0x14164a||!_0x4a5c72||!_0x9e2d43||F(_0x9e2d43))return!0x1;let _0x1364e6=R(_0x9e2d43,_0x22a3bb);return _0x1364e6!=null&&de(_0x59f405,_0x14164a,_0x4a5c72,_0x9e2d43,_0x1364e6,_0x22a3bb,_0x22a3bb[_0x1ee5ee(0x15f)]);}};function fe(_0x36342d,_0x5ddf91){const _0x1d2d5c=_0x33a604;if(_0x5ddf91<=_0x36342d[_0x1d2d5c(0xf6)])return;let _0x538da0=_0x5a3600[_0x1d2d5c(0x106)](_0x36342d);return _0x538da0[_0x1d2d5c(0xf6)]=0x0,_0x538da0[_0x1d2d5c(0xc1)]=_0x5ddf91-_0x36342d[_0x1d2d5c(0xf6)]-0x1,_0x538da0[_0x1d2d5c(0x15d)][_0x1d2d5c(0x143)]=!0x1,_0x538da0[_0x1d2d5c(0x15d)][_0x1d2d5c(0x148)]&&(_0x538da0[_0x1d2d5c(0x15d)][_0x1d2d5c(0x148)][_0x1d2d5c(0x100)]=!0x0),new _0x592230()[_0x1d2d5c(0xf3)](_0x36342d['startIndex'])[_0x1d2d5c(0xf3)](_0x5ddf91-_0x36342d['startIndex'],{'dataStream':'','customRanges':[_0x538da0]})[_0x1d2d5c(0x15e)]();}function G(_0x3c5a03,_0x250fd7,_0x177e30,_0x2152d2=!0x1){const _0x1eda89=_0x33a604;var _0x9f25dd;let _0x1c0eb9=_0x177e30?_0x1411a4({},_0x5a3600[_0x1eda89(0x106)](_0x250fd7['properties']),_0x5a3600['deepClone'](_0x177e30)):_0x250fd7['properties'];_0x177e30!=null&&_0x177e30[_0x1eda89(0xf9)]&&(_0x1c0eb9[_0x1eda89(0xf9)]=_0x5a3600['deepClone'](_0x177e30[_0x1eda89(0xf9)]));let _0x319422=new _0x592230();return _0x2152d2&&_0x3c5a03['dataStream'][_0x250fd7['startIndex']]===_0x419005[_0x1eda89(0xf5)]&&_0x3c5a03[_0x1eda89(0x11a)][_0x250fd7[_0x1eda89(0xc1)]]===_0x419005[_0x1eda89(0x110)]&&!((_0x9f25dd=_0x3c5a03[_0x1eda89(0x150)])!=null&&_0x9f25dd[_0x1eda89(0xcd)](_0x3f0378=>_0x3f0378['rangeId']!==_0x250fd7[_0x1eda89(0x16b)]&&_0x3f0378[_0x1eda89(0xf6)]===_0x250fd7[_0x1eda89(0xf6)]&&_0x3f0378[_0x1eda89(0xc1)]===_0x250fd7[_0x1eda89(0xc1)]))&&_0x319422[_0x1eda89(0xf3)](_0x250fd7[_0x1eda89(0xf6)])['delete'](0x1)[_0x1eda89(0xf3)](_0x250fd7[_0x1eda89(0xc1)]-_0x250fd7[_0x1eda89(0xf6)]-0x1)[_0x1eda89(0xbc)](0x1),_0x2152d2?_0x319422[_0x1eda89(0xd5)]([{'rangeId':_0x250fd7[_0x1eda89(0x16b)],'range':null}]):_0x319422['updateCustomRangeProperties'](_0x250fd7,_0x1c0eb9),{'actions':_0x319422[_0x1eda89(0x15e)](),'caretOffset':_0x250fd7[_0x1eda89(0xf6)]};}async function K(_0x269a3c,_0x4e4ae6,_0x38ac0a){const _0x26b86c=_0x33a604;var _0x596ee5,_0x521236;let _0x1d59de=_0x269a3c[_0x26b86c(0x151)](_0x28cbea),_0x303f41=_0x4e4ae6['unitId']?_0x1d59de[_0x26b86c(0x141)](_0x4e4ae6[_0x26b86c(0xe9)],_0x333dce[_0x26b86c(0x169)]):_0x1d59de[_0x26b86c(0x152)](_0x333dce[_0x26b86c(0x169)]),_0xb91ddd=_0x303f41==null||(_0x596ee5=_0x303f41[_0x26b86c(0xf4)](_0x4e4ae6[_0x26b86c(0x15f)]))==null?void 0x0:_0x596ee5[_0x26b86c(0xde)](),_0x4bab9d=_0xb91ddd==null||(_0x521236=_0xb91ddd[_0x26b86c(0x150)])==null?void 0x0:_0x521236['find'](_0x2c375c=>_0x2c375c[_0x26b86c(0xc5)]===_0x27bb75[_0x26b86c(0xd8)]&&_0x2c375c['rangeId']===_0x4e4ae6[_0x26b86c(0x16b)]);if(!_0x303f41||!_0xb91ddd||!_0x4bab9d||_0x38ac0a&&I(_0x4bab9d))return!0x1;let _0x20d38c=G(_0xb91ddd,_0x4bab9d,_0x26b86c(0x15d)in _0x4e4ae6?_0x4e4ae6[_0x26b86c(0x15d)]:void 0x0,_0x38ac0a);return!_0x20d38c[_0x26b86c(0xc0)][_0x26b86c(0xfe)]||!!await _0x269a3c[_0x26b86c(0x151)](_0x447893)['executeCommand'](_0x370af1['id'],{'unitId':_0x303f41[_0x26b86c(0xfa)](),'historyAction':_0x38ac0a?J['id']:q['id'],'actions':_0x34186a[_0x26b86c(0xe3)]()[_0x26b86c(0xec)](_0x20d38c[_0x26b86c(0xc0)],_0xc57179(_0x303f41,_0x4e4ae6[_0x26b86c(0x15f)])),'textRanges':[{'startOffset':_0x20d38c[_0x26b86c(0x138)],'endOffset':_0x20d38c['caretOffset'],'collapsed':!0x0,'segmentId':_0x4e4ae6[_0x26b86c(0x15f)]}],'debounce':!0x1,'trigger':_0x38ac0a?J['id']:q['id']});}const q={'id':_0x33a604(0x164),'type':_0x393328[_0x33a604(0xc9)],'handler':(_0x19110f,_0x43055e)=>_0x43055e!=null&&_0x43055e['rangeId']&&_0x43055e[_0x33a604(0x15d)]?K(_0x19110f,_0x43055e,!0x1):!0x1},J={'id':_0x33a604(0xe5),'type':_0x393328[_0x33a604(0xc9)],'handler':(_0xfbbafd,_0x109134)=>_0x109134!=null&&_0x109134[_0x33a604(0x16b)]?K(_0xfbbafd,_0x109134,!0x0):!0x1};function _0x3b28(_0x4284f2,_0x516ab5){_0x4284f2=_0x4284f2-0xb5;const _0x3018bf=_0x3018();let _0x3b288a=_0x3018bf[_0x4284f2];return _0x3b288a;}var pe=_0x33a604(0xcc),me='1.3.1';const Y={};function X(_0xe116fb,_0x10ddec){return function(_0x41998d,_0x14cb4c){_0x10ddec(_0x41998d,_0x14cb4c,_0xe116fb);};}function _0x3018(){const _0x51eb29=['pluginName','getInstance','slice','doc.command.remove-sdt','body','docs-sdt.config','has','unitId','3478992pyIztd','push','editOp','kind','getUTCDate','textRanges','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UTC','retain','getSelfOrHeaderFooterModel','CUSTOM_RANGE_START','startIndex','forEach','onStarting','listItems','getUnitId','table','Thu','checked','length','tableId','dirty','findIndex','startOffset','DOC_SDT_CUSTOM_XML_PLUGIN','getSnapshot','decorate','deepClone','packageName','apply','charAt','defineProperty','getTime','textRuns','40ZZFFYX','dropDownList','415218hQfbbG','CUSTOM_RANGE_END','function','Apr','5VFJlOr','long','transformPosition','max','len','695795ngbDFI','sdtContentLocked','dataStream','checkbox','value','endOffset','_configService','default','clear','notes','Nov','random','disposeWithMe','ooxmlId','Jul','Jun','3wyEJcO','Feb','type','getPath','getOwnPropertyDescriptor','Oct','includes','executeCommand','rows','true','doc.command.update-sdt-value','toPrimitive','Dec','cell','reduce','compose','caretOffset','1274420RTxRXA','copy','36ekySke','string','selection','_injector','map','find','getUnit','getUTCMonth','showingPlaceholder','1976284FBTGUB','padStart','repeatingSection','row','dataBinding','constructor','Sep','5781671jfgRXD','startsWith','keys','sort','toLowerCase','customRanges','get','getCurrentUnitOfType','date','1117304DnxAft','uncheckedState','lock','checkedState','parseInt','comboBox','fullDate','every','_config','properties','serialize','segmentId','floor','doc.command.duplicate-repeating-sdt-item','RETAIN','DELETE','doc.command.update-sdt-properties','sdtLocked','displayText','headers','short','UNIVER_DOC','DateTimeFormat','rangeId','insert','contentLocked','format','Tue','filter','Mar','test','delete','Mon','doNotAllowInsertDelete','Aug','actions','endIndex','placement','_commandService','charCodeAt','rangeType','call','min','valueRangeId','COMMAND','checkboxStyle','INSERT','@univerjs-pro/docs-sdt','some','getUTCDay','replace','registerCommand','repeatingSectionItem','symbol','isNaN','set','updateCustomRanges','flatMap','deleteTable','SDT','tables','object','paragraphs','isArray','readCursor','getBody','font','name','add'];_0x3018=function(){return _0x51eb29;};return _0x3018();}function he(_0x3503c8,_0x2bc771,_0x58d0c1,_0x5a31c0){const _0x34e138=_0x33a604;var _0x437bc3=arguments['length'],_0x3be518=_0x437bc3<0x3?_0x2bc771:_0x5a31c0===null?_0x5a31c0=Object[_0x34e138(0x12c)](_0x2bc771,_0x58d0c1):_0x5a31c0,_0x519404;if(typeof Reflect==_0x34e138(0xda)&&typeof Reflect['decorate']==_0x34e138(0x111))_0x3be518=Reflect[_0x34e138(0x105)](_0x3503c8,_0x2bc771,_0x58d0c1,_0x5a31c0);else{for(var _0x31ff19=_0x3503c8[_0x34e138(0xfe)]-0x1;_0x31ff19>=0x0;_0x31ff19--)(_0x519404=_0x3503c8[_0x31ff19])&&(_0x3be518=(_0x437bc3<0x3?_0x519404(_0x3be518):_0x437bc3>0x3?_0x519404(_0x2bc771,_0x58d0c1,_0x3be518):_0x519404(_0x2bc771,_0x58d0c1))||_0x3be518);}return _0x437bc3>0x3&&_0x3be518&&Object[_0x34e138(0x10a)](_0x2bc771,_0x58d0c1,_0x3be518),_0x3be518;}function Z(_0x3e3cf0){'@babel/helpers - typeof';const _0x3637b4=_0x33a604;return Z=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x3637b4(0xd2)?function(_0x48f40d){return typeof _0x48f40d;}:function(_0x19b891){const _0x359bf=_0x3637b4;return _0x19b891&&typeof Symbol=='function'&&_0x19b891[_0x359bf(0x149)]===Symbol&&_0x19b891!==Symbol['prototype']?_0x359bf(0xd2):typeof _0x19b891;},Z(_0x3e3cf0);}function ge(_0x1e3aca,_0x38c91a){const _0x3ccfa8=_0x33a604;if(Z(_0x1e3aca)!=_0x3ccfa8(0xda)||!_0x1e3aca)return _0x1e3aca;var _0x1a77f4=_0x1e3aca[Symbol[_0x3ccfa8(0x133)]];if(_0x1a77f4!==void 0x0){var _0x2733fb=_0x1a77f4[_0x3ccfa8(0xc6)](_0x1e3aca,_0x38c91a||_0x3ccfa8(0x11f));if(Z(_0x2733fb)!=_0x3ccfa8(0xda))return _0x2733fb;throw TypeError(_0x3ccfa8(0xf1));}return(_0x38c91a===_0x3ccfa8(0x13c)?String:Number)(_0x1e3aca);}function _e(_0xc81e42){var _0x4f7f3e=ge(_0xc81e42,'string');return Z(_0x4f7f3e)=='symbol'?_0x4f7f3e:_0x4f7f3e+'';}function Q(_0x4ee11b,_0x342391,_0x2d6d39){const _0x35fb1f=_0x33a604;return(_0x342391=_e(_0x342391))in _0x4ee11b?Object[_0x35fb1f(0x10a)](_0x4ee11b,_0x342391,{'value':_0x2d6d39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ee11b[_0x342391]=_0x2d6d39,_0x4ee11b;}let $=class extends _0x2ba91d{constructor(_0x423439=Y,_0x493e1a,_0x6cde7d,_0x5caae1){const _0x39b6b5=_0x33a604;super(),this[_0x39b6b5(0x15c)]=_0x423439,this[_0x39b6b5(0x13e)]=_0x493e1a,this[_0x39b6b5(0x11e)]=_0x6cde7d,this[_0x39b6b5(0xc3)]=_0x5caae1;let {..._0x32b880}=_0x1411a4({},Y,this[_0x39b6b5(0x15c)]);this['_configService'][_0x39b6b5(0xf0)](_0x39b6b5(0xe7),_0x32b880);}[_0x33a604(0xf8)](){const _0x1febb2=_0x33a604;this['disposeWithMe'](this[_0x1febb2(0xc3)]['registerCommand'](W)),this['disposeWithMe'](this[_0x1febb2(0xc3)][_0x1febb2(0xd0)](q)),this[_0x1febb2(0x124)](this[_0x1febb2(0xc3)][_0x1febb2(0xd0)](J)),this[_0x1febb2(0x124)](this[_0x1febb2(0xc3)][_0x1febb2(0xd0)](M)),this[_0x1febb2(0x124)](this['_commandService'][_0x1febb2(0xd0)](N));let _0x41f824=new Map();this[_0x1febb2(0x124)]({'dispose':()=>_0x41f824[_0x1febb2(0x120)]()}),this[_0x1febb2(0x124)](this[_0x1febb2(0x13e)]['get'](_0x28ebe2)['registerPluginResource']({'pluginName':_0x1febb2(0x103),'businesses':[_0x333dce[_0x1febb2(0x169)]],'parseJson':_0x4adb9b=>_0x4adb9b,'onLoad':(_0x4498ee,_0x2b9ceb)=>{const _0x3f5e69=_0x1febb2;_0x41f824[_0x3f5e69(0xd4)](_0x4498ee,_0x2b9ceb);},'onUnLoad':_0x36850a=>{const _0x5a9fed=_0x1febb2;_0x41f824[_0x5a9fed(0xbc)](_0x36850a);},'toJson':_0x176b38=>_0x41f824[_0x1febb2(0x151)](_0x176b38)??''}));}};Q($,_0x33a604(0xe2),'DOCS_SDT_PLUGIN'),Q($,_0x33a604(0x107),pe),Q($,'version',me),Q($,_0x33a604(0x12a),_0x333dce[_0x33a604(0x169)]),$=he([_0x4fa5e3(_0x80e4a4,_0x33258a),X(0x1,_0x5ec263(_0x520613)),X(0x2,_0x3af909),X(0x3,_0x447893)],$);export{N as DeleteRepeatingSdtItemCommand,M as DuplicateRepeatingSdtItemCommand,J as RemoveSdtCommand,$ as UniverDocsSdtPlugin,q as UpdateSdtPropertiesCommand,W as UpdateSdtValueCommand,D as buildDeleteRepeatingItemUpdate,ae as buildDuplicateRepeatingItemUpdate,fe as buildRestoredSdtMetadata,G as buildSdtMetadataUpdate,U as buildSdtValueUpdate,se as findSdtAtOffset,E as generateSdtOoxmlId,R as getSdtDisplayValue,H as getSdtPlaceholderText,z as getSdtVisibleContentRange,F as isSdtContentLocked,I as isSdtWrapperLocked,V as synchronizeSdtBindings};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x59c9(_0x16f1b7,_0x3c7032){_0x16f1b7=_0x16f1b7-0x1ec;const _0x539696=_0x5396();let _0x59c9ca=_0x539696[_0x16f1b7];return _0x59c9ca;}function _0x5396(){const _0x46f9c5=['row','apply','756710hTlrLw','Sun','constructor','doc.command.update-sdt-properties','generateRandomId','DateTimeFormat','Sat','376dCNuUi','paragraphs','811834IbpqXM','fullDate','toPrimitive','selection','rangeType','every','disposeWithMe','padStart','findSdtAtOffset','Wed','unitId','rangeId','textRanges','lock','checked','string','UniverDocs','UpdateSdtPropertiesCommand','TextX','copy','exports','findIndex','May','repeatingSection','sdtLocked','toStringTag','RichTextEditingMutation','checkbox','startIndex','floor','date','endOffset','replace','prototype','Tue','includes','registerCommand','doc.command.update-sdt-value','comboBox','default','buildDuplicateRepeatingItemUpdate','DuplicateRepeatingSdtItemCommand','getPath','listItems','getUTCDate','paragraphId','true','segmentId','ICommandService','insert','buildSdtMetadataUpdate','checkboxStyle','sort','buildSdtValueUpdate','map','getSnapshot','CommandType','COMMAND','len','some','set','has','DOCS_SDT_PLUGIN','Inject','4012554vUeQZq','buildDeleteTableRowsMutationActions','startOffset','format','reduce','deepClone','name','updateCustomRanges','sdtContentLocked','function','90GFNUjh','random','get','UniverInstanceType','1.2.0','Mon','fromCodePoint','Aug','isNaN','delete','readCursor','doc.command.duplicate-repeating-sdt-item','headers','version','_config','executeCommand','amd','UNIVER_DOC','endIndex','getUnitId','DeleteRepeatingSdtItemCommand','actions','RETAIN','onStarting','getSdtPlaceholderText','getUTCFullYear','246caNFMM','Jun','merge','notes','add','docs-sdt.config','CustomRangeType','getInstance','Feb','213353BwfBvR','ooxmlId','compose','dataStream','symbol','TextXActionType','JSONX','SDT','table','buildRestoredSdtMetadata','properties','type','iterator','UniverProDocsTable','29381143xKmywg','isArray','editOp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','kind','Injector','decorate','contentLocked','rows','doc.command.remove-sdt','SliceBodyType','RemoveSdtCommand','Jul','_configService','long','IUniverInstanceService','filter','Sep','getUnit','Oct','charCodeAt','test','12nyyKJN','repeatingSectionItem','pluginName','IConfigService','@univerjs-pro/docs-sdt','getUTCMonth','yyyy-MM-dd','UniverDocsSdtPlugin','customRanges','DataStreamTreeTokenType','cell','UpdateSdtValueCommand','keys','deleteTable','UniverDocsPlugin','registerPluginResource','getTableRangeById','font','short','BuildTextUtils','getUTCDay','UniverProLicense','startsWith','body','max','CUSTOM_RANGE_START','Tools','getSdtBindingKey','Jan','defineProperty','3035376KJmKKG','tableId','Mar','getSdtDisplayValue','clear','dataBinding','doc.command.delete-repeating-sdt-item','5eENJcc','find','8498vTlajA','isSdtWrapperLocked','locale','placement','showingPlaceholder','retain','DependentOn','updateCustomRangeProperties','traverse','doNotAllowInsertDelete','Dec','JSON1','getCurrentUnitOfType','text','dirty','serialize','Thu','object','getRichTextEditPath','synchronizeSdtBindings','length','dropDownList','getSdtBindingValue','footers','packageName','Apr','_commandService','getOwnPropertyDescriptor','caretOffset','transformPosition','CUSTOM_RANGE_END','call','buildDeleteRepeatingItemUpdate','UTC','getSelfOrHeaderFooterModel','forEach','getBody','value','charAt','Module','push','flatMap','checkedState','min'];_0x5396=function(){return _0x46f9c5;};return _0x5396();}(function(_0x341607,_0x531ec9){const _0x30ce3c=_0x59c9,_0x474bdf=_0x341607();while(!![]){try{const _0x243c1d=-parseInt(_0x30ce3c(0x27c))/0x1+-parseInt(_0x30ce3c(0x245))/0x2*(parseInt(_0x30ce3c(0x1f1))/0x3)+parseInt(_0x30ce3c(0x23c))/0x4+parseInt(_0x30ce3c(0x243))/0x5*(-parseInt(_0x30ce3c(0x2bc))/0x6)+parseInt(_0x30ce3c(0x1fa))/0x7*(-parseInt(_0x30ce3c(0x27a))/0x8)+-parseInt(_0x30ce3c(0x2c6))/0x9*(-parseInt(_0x30ce3c(0x273))/0xa)+-parseInt(_0x30ce3c(0x208))/0xb*(-parseInt(_0x30ce3c(0x21e))/0xc);if(_0x243c1d===_0x531ec9)break;else _0x474bdf['push'](_0x474bdf['shift']());}catch(_0x539866){_0x474bdf['push'](_0x474bdf['shift']());}}}(_0x5396,0xe1d73),function(_0x2c60aa,_0x275c8e){const _0x4dc48f=_0x59c9;typeof exports=='object'&&typeof module<'u'?_0x275c8e(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x4dc48f(0x2c5)&&define[_0x4dc48f(0x2d6)]?define([_0x4dc48f(0x290),'@univerjs-pro/docs-table','@univerjs/core','@univerjs/docs','@univerjs-pro/license'],_0x275c8e):(_0x2c60aa=typeof globalThis<'u'?globalThis:_0x2c60aa||self,_0x275c8e(_0x2c60aa['UniverProDocsSdt']={},_0x2c60aa[_0x4dc48f(0x207)],_0x2c60aa['UniverCore'],_0x2c60aa[_0x4dc48f(0x28c)],_0x2c60aa[_0x4dc48f(0x233)]));}(this,function(_0x26566c,_0x458b8c,_0x337c84,_0x1759a6,_0x1eb9ae){const _0x474339=_0x59c9;Object[_0x474339(0x23b)](_0x26566c,Symbol[_0x474339(0x295)],{'value':_0x474339(0x26c)});function _0x4d7c69(_0x4cf0a6){const _0x346e02=_0x474339;let _0x1aa260;do _0x1aa260=String(Math[_0x346e02(0x299)](Math[_0x346e02(0x2c7)]()*0x7fffffff));while(_0x4cf0a6[_0x346e02(0x2b9)](_0x1aa260));return _0x4cf0a6['add'](_0x1aa260),_0x1aa260;}function _0x1145b4(_0x30ece3,_0x14246d){const _0xff0ff3=_0x474339;var _0x354a5e,_0x40780d,_0x1a44a4,_0x2f983c,_0x48f30b,_0x2ad83e;if(!_0x36de8b(_0x30ece3,_0x14246d))return;let _0x7e434e=_0x592c52(_0x30ece3,_0x14246d),_0x56a3c5=new Set(_0x7e434e[_0xff0ff3(0x2b2)](_0x5278cd=>_0x5278cd[_0xff0ff3(0x287)])),_0x290d7d=_0x30ece3[_0xff0ff3(0x1fd)][_0xff0ff3(0x26b)](_0x14246d[_0xff0ff3(0x2d8)]+0x1)==='\x0d',_0x3daac9=_0x14246d[_0xff0ff3(0x2d8)]+0x1+Number(_0x290d7d),_0x4c75b4=_0x337c84[_0xff0ff3(0x238)][_0xff0ff3(0x2c1)]((0x0,_0x337c84['getBodySliceForTextXAction'])(_0x30ece3,_0x14246d[_0xff0ff3(0x298)],_0x3daac9,!0x1,_0x337c84[_0xff0ff3(0x212)][_0xff0ff3(0x28f)]));if(!_0x4c75b4[_0xff0ff3(0x1fd)])return;let _0xd0be4a=new Set((_0x354a5e=_0x30ece3[_0xff0ff3(0x226)])==null?void 0x0:_0x354a5e[_0xff0ff3(0x218)](_0x1e9bfb=>!_0x56a3c5[_0xff0ff3(0x2b9)](_0x1e9bfb[_0xff0ff3(0x287)])&&_0x14246d[_0xff0ff3(0x298)]<=_0x1e9bfb[_0xff0ff3(0x298)]&&_0x1e9bfb[_0xff0ff3(0x2d8)]<=_0x14246d[_0xff0ff3(0x2d8)])[_0xff0ff3(0x2b2)](_0x4a870e=>_0x4a870e['rangeId'])),_0x484d4e=new Set((_0x40780d=_0x30ece3[_0xff0ff3(0x226)])==null?void 0x0:_0x40780d[_0xff0ff3(0x218)](_0x386f5b=>_0x386f5b['rangeType']===_0x337c84[_0xff0ff3(0x1f7)][_0xff0ff3(0x201)])[_0xff0ff3(0x2b2)](_0x1e341e=>_0x1e341e[_0xff0ff3(0x204)][_0xff0ff3(0x1fb)]));_0x4c75b4['customRanges']=(_0x1a44a4=_0x4c75b4['customRanges'])==null?void 0x0:_0x1a44a4['filter'](_0x2127ab=>_0xd0be4a[_0xff0ff3(0x2b9)](_0x2127ab[_0xff0ff3(0x287)])),(_0x2f983c=_0x4c75b4['customRanges'])==null||_0x2f983c[_0xff0ff3(0x268)](_0x3118f4=>{const _0x4dcaa6=_0xff0ff3;_0x3118f4[_0x4dcaa6(0x287)]=(0x0,_0x337c84[_0x4dcaa6(0x277)])(),_0x3118f4[_0x4dcaa6(0x280)]===_0x337c84[_0x4dcaa6(0x1f7)][_0x4dcaa6(0x201)]&&(_0x3118f4[_0x4dcaa6(0x204)][_0x4dcaa6(0x1fb)]=_0x4d7c69(_0x484d4e));});let _0x2dd876=new Set((_0x48f30b=_0x30ece3[_0xff0ff3(0x27b)])==null?void 0x0:_0x48f30b[_0xff0ff3(0x2b2)](_0x259090=>_0x259090['paragraphId']));(_0x2ad83e=_0x4c75b4[_0xff0ff3(0x27b)])==null||_0x2ad83e[_0xff0ff3(0x268)](_0x2a8fee=>{const _0x2f5065=_0xff0ff3;_0x2a8fee[_0x2f5065(0x2a9)]=(0x0,_0x337c84['createParagraphId'])(_0x2dd876);});let _0x800899=_0x3daac9,_0x2df0e0=new _0x337c84[(_0xff0ff3(0x28e))]()[_0xff0ff3(0x24a)](_0x800899)[_0xff0ff3(0x2ad)](_0x4c75b4['dataStream']['length'],_0x4c75b4)[_0xff0ff3(0x254)](),_0x504fe1=_0x337c84[_0xff0ff3(0x238)][_0xff0ff3(0x2c1)](_0x30ece3);_0x337c84[_0xff0ff3(0x28e)][_0xff0ff3(0x272)](_0x504fe1,_0x2df0e0);for(let _0x41d0d6 of _0x7e434e){var _0x32b340;let _0x2ca1a7=(_0x32b340=_0x504fe1[_0xff0ff3(0x226)])==null?void 0x0:_0x32b340[_0xff0ff3(0x244)](_0x420635=>_0x420635[_0xff0ff3(0x287)]===_0x41d0d6[_0xff0ff3(0x287)]);if(!_0x2ca1a7)return;_0x2ca1a7[_0xff0ff3(0x298)]=_0x41d0d6[_0xff0ff3(0x298)],_0x2ca1a7[_0xff0ff3(0x2d8)]=_0x41d0d6[_0xff0ff3(0x2d8)]+_0x4c75b4[_0xff0ff3(0x1fd)][_0xff0ff3(0x259)];}return{'actions':_0x337c84['TextX'][_0xff0ff3(0x1fc)](_0x2df0e0,new _0x337c84[(_0xff0ff3(0x28e))]()[_0xff0ff3(0x2c3)](_0x7e434e[_0xff0ff3(0x2b2)](_0x3ca930=>({'rangeId':_0x3ca930[_0xff0ff3(0x287)],'range':_0x504fe1[_0xff0ff3(0x226)][_0xff0ff3(0x244)](_0x486f9b=>_0x486f9b[_0xff0ff3(0x287)]===_0x3ca930['rangeId'])})))['serialize']()),'caretOffset':_0x800899+_0x4c75b4[_0xff0ff3(0x1fd)]['length']-Number(_0x290d7d)};}function _0x2f33cc(_0x168b91,_0x5cf919){const _0x198817=_0x474339;if(!_0x36de8b(_0x168b91,_0x5cf919))return;let _0x416faf=_0x168b91['dataStream'][_0x198817(0x26b)](_0x5cf919[_0x198817(0x2d8)]+0x1)==='\x0d',_0x10c3d6=_0x5cf919['endIndex']+0x1+Number(_0x416faf);return{'actions':_0x337c84[_0x198817(0x231)][_0x198817(0x27f)][_0x198817(0x2cf)]([{'startOffset':_0x5cf919[_0x198817(0x298)],'endOffset':_0x10c3d6,'collapsed':!0x1}],_0x168b91,0x0,null,!0x1),'caretOffset':_0x5cf919[_0x198817(0x298)]};}function _0x36de8b(_0x54fb8c,_0x1f5d25){const _0xb6044f=_0x474339;var _0xcde258;if(_0x1f5d25[_0xb6044f(0x204)][_0xb6044f(0x20c)]!==_0xb6044f(0x21f)||[_0xb6044f(0x271),_0xb6044f(0x228),_0xb6044f(0x202)][_0xb6044f(0x29f)](_0x1f5d25['properties'][_0xb6044f(0x248)]))return!0x1;let _0x9a0812=_0x22e6f0(_0x54fb8c,_0x1f5d25);return!(!_0x9a0812||(_0xcde258=_0x9a0812[_0xb6044f(0x204)][_0xb6044f(0x293)])!=null&&_0xcde258[_0xb6044f(0x24e)]);}function _0x592c52(_0x43cfa2,_0x434c49){const _0xc793cb=_0x474339;let _0x188e7b=_0x43cfa2['customRanges']??[],_0x8bb2e0=_0x188e7b['findIndex'](_0x5b91cd=>_0x5b91cd[_0xc793cb(0x287)]===_0x434c49[_0xc793cb(0x287)]);return _0x188e7b[_0xc793cb(0x218)]((_0x423608,_0x4d5b0e)=>_0x423608[_0xc793cb(0x280)]===_0x337c84[_0xc793cb(0x1f7)][_0xc793cb(0x201)]&&_0x423608['rangeId']!==_0x434c49[_0xc793cb(0x287)]&&_0x423608[_0xc793cb(0x298)]<=_0x434c49[_0xc793cb(0x298)]&&_0x434c49[_0xc793cb(0x2d8)]<=_0x423608['endIndex']&&(_0x423608[_0xc793cb(0x298)]<_0x434c49['startIndex']||_0x434c49[_0xc793cb(0x2d8)]<_0x423608['endIndex']||_0x4d5b0e>_0x8bb2e0));}function _0x501e4c(_0x33663d,_0x5c904c,_0x21ae52=[_0x474339(0x235)]){const _0x1c10e3=_0x474339;var _0x316a8f;let _0x3e32dd=_0x33663d[_0x1c10e3(0x235)];if(!_0x3e32dd||_0x5c904c[_0x1c10e3(0x204)][_0x1c10e3(0x20c)]!==_0x1c10e3(0x21f)||_0x5c904c[_0x1c10e3(0x204)][_0x1c10e3(0x248)]!==_0x1c10e3(0x271))return;let _0x567a25=_0x22e6f0(_0x3e32dd,_0x5c904c);if(!(!_0x567a25||(_0x316a8f=_0x567a25[_0x1c10e3(0x204)][_0x1c10e3(0x293)])!=null&&_0x316a8f['doNotAllowInsertDelete']))for(let _0x31339e of _0x3e32dd['tables']??[]){if(_0x31339e[_0x1c10e3(0x298)]>_0x5c904c[_0x1c10e3(0x298)]||_0x31339e[_0x1c10e3(0x2d8)]<=_0x5c904c[_0x1c10e3(0x2d8)])continue;let _0x2af743=(0x0,_0x458b8c[_0x1c10e3(0x22e)])(_0x33663d,_0x31339e[_0x1c10e3(0x23d)]);if(!_0x2af743)continue;let _0x5e937b=_0x2af743[_0x1c10e3(0x210)][_0x1c10e3(0x291)](_0x2e8563=>_0x2e8563[_0x1c10e3(0x2be)]===_0x5c904c['startIndex']),_0x532dc1=_0x2af743[_0x1c10e3(0x210)][_0x1c10e3(0x291)](_0x1c1a6d=>_0x1c1a6d['endOffset']===_0x5c904c[_0x1c10e3(0x2d8)]);if(_0x5e937b<0x0||_0x532dc1<_0x5e937b)continue;let _0x5c8d8a=(0x0,_0x458b8c[_0x1c10e3(0x2bd)])(_0x33663d,_0x31339e[_0x1c10e3(0x23d)],_0x5e937b,_0x532dc1,_0x21ae52);if(!_0x5c8d8a)return;let _0x11f0f2=_0x5c8d8a[_0x1c10e3(0x22b)]?_0x2af743[_0x1c10e3(0x29b)]-_0x2af743[_0x1c10e3(0x2be)]:_0x5c904c[_0x1c10e3(0x2d8)]-_0x5c904c[_0x1c10e3(0x298)]+0x1;return{'actions':_0x5c8d8a['actions'],'caretOffset':Math[_0x1c10e3(0x236)](0x0,Math[_0x1c10e3(0x270)](_0x5c904c[_0x1c10e3(0x298)],_0x3e32dd[_0x1c10e3(0x1fd)][_0x1c10e3(0x259)]-_0x11f0f2-0x2))};}}function _0x22e6f0(_0x3f335f,_0x235ede){const _0x140f4c=_0x474339;return _0x592c52(_0x3f335f,_0x235ede)[_0x140f4c(0x218)](_0x524d91=>_0x524d91[_0x140f4c(0x204)][_0x140f4c(0x20c)]===_0x140f4c(0x293))[_0x140f4c(0x2b0)]((_0x36b23f,_0x1a246f)=>_0x36b23f['endIndex']-_0x36b23f[_0x140f4c(0x298)]-(_0x1a246f[_0x140f4c(0x2d8)]-_0x1a246f[_0x140f4c(0x298)]))[0x0];}async function _0x52460f(_0xc899c2,_0x26227c,_0x150ad2){const _0x236e13=_0x474339;var _0x43cc0e,_0x469913;let _0x61c25e=_0xc899c2[_0x236e13(0x2c8)](_0x337c84[_0x236e13(0x217)]),_0x4129d8=_0x26227c[_0x236e13(0x286)]?_0x61c25e[_0x236e13(0x21a)](_0x26227c[_0x236e13(0x286)],_0x337c84['UniverInstanceType']['UNIVER_DOC']):_0x61c25e[_0x236e13(0x251)](_0x337c84['UniverInstanceType'][_0x236e13(0x2d7)]),_0x1ffd9f=_0x4129d8==null||(_0x43cc0e=_0x4129d8[_0x236e13(0x267)](_0x26227c['segmentId']))==null?void 0x0:_0x43cc0e[_0x236e13(0x269)](),_0x2f0a4c=_0x1ffd9f==null||(_0x469913=_0x1ffd9f[_0x236e13(0x226)])==null?void 0x0:_0x469913[_0x236e13(0x244)](_0x2289f6=>_0x2289f6['rangeType']===_0x337c84[_0x236e13(0x1f7)][_0x236e13(0x201)]&&_0x2289f6[_0x236e13(0x287)]===_0x26227c[_0x236e13(0x287)]);if(!_0x4129d8||!_0x1ffd9f||!_0x2f0a4c)return!0x1;let _0x15d3b5=(0x0,_0x337c84[_0x236e13(0x257)])(_0x4129d8,_0x26227c[_0x236e13(0x2ab)]),_0x229b08,_0xcf8d2e;if(_0x2f0a4c[_0x236e13(0x204)][_0x236e13(0x248)]===_0x236e13(0x271)){let _0x423511=!_0x150ad2&&_0x501e4c({..._0x4129d8[_0x236e13(0x2b3)](),'body':_0x1ffd9f},_0x2f0a4c,_0x15d3b5);if(!_0x423511)return!0x1;({actions:_0x229b08,caretOffset:_0xcf8d2e}=_0x423511);}else{let _0x21f578=_0x150ad2?_0x1145b4(_0x1ffd9f,_0x2f0a4c):_0x2f33cc(_0x1ffd9f,_0x2f0a4c);if(!_0x21f578)return!0x1;_0x229b08=_0x337c84[_0x236e13(0x200)]['getInstance']()['editOp'](_0x21f578[_0x236e13(0x1ec)],_0x15d3b5),_0xcf8d2e=_0x21f578['caretOffset'];}let _0xa432d7=_0x150ad2?_0x18fdf8['id']:_0x50445c['id'];return!!await _0xc899c2[_0x236e13(0x2c8)](_0x337c84[_0x236e13(0x2ac)])[_0x236e13(0x2d5)](_0x1759a6[_0x236e13(0x296)]['id'],{'unitId':_0x4129d8[_0x236e13(0x2d9)](),'historyAction':_0xa432d7,'actions':_0x229b08,'textRanges':[{'startOffset':_0xcf8d2e,'endOffset':_0xcf8d2e,'collapsed':!0x0,'segmentId':_0x26227c[_0x236e13(0x2ab)]}],'debounce':!0x1,'trigger':_0xa432d7});}let _0x18fdf8={'id':_0x474339(0x2d1),'type':_0x337c84[_0x474339(0x2b4)][_0x474339(0x2b5)],'handler':(_0x104717,_0x3e16aa)=>_0x3e16aa!=null&&_0x3e16aa[_0x474339(0x287)]?_0x52460f(_0x104717,_0x3e16aa,!0x0):!0x1},_0x50445c={'id':_0x474339(0x242),'type':_0x337c84[_0x474339(0x2b4)][_0x474339(0x2b5)],'handler':(_0x5d5cd8,_0x4cbdf7)=>_0x4cbdf7!=null&&_0x4cbdf7['rangeId']?_0x52460f(_0x5d5cd8,_0x4cbdf7,!0x1):!0x1},_0x106c11=_0x474339(0x2a1);function _0x3c2f9c(_0x1776fe,_0x3dd933){const _0x59d1de=_0x474339;var _0x5c4b27;return _0x1776fe==null||(_0x5c4b27=_0x1776fe[_0x59d1de(0x226)])==null?void 0x0:_0x5c4b27[_0x59d1de(0x218)](_0x300825=>_0x300825['rangeType']===_0x337c84['CustomRangeType'][_0x59d1de(0x201)]&&_0x300825[_0x59d1de(0x298)]<=_0x3dd933&&_0x3dd933<=_0x300825[_0x59d1de(0x2d8)])[_0x59d1de(0x2b0)]((_0x50223c,_0x282cbf)=>_0x50223c[_0x59d1de(0x2d8)]-_0x50223c[_0x59d1de(0x298)]-(_0x282cbf['endIndex']-_0x282cbf['startIndex']))[0x0];}function _0x35a3f2(_0x2c6500){const _0x553dfb=_0x474339;var _0x65518f,_0x1579c0;return((_0x65518f=_0x2c6500[_0x553dfb(0x204)])==null?void 0x0:_0x65518f['lock'])===_0x553dfb(0x20f)||((_0x1579c0=_0x2c6500[_0x553dfb(0x204)])==null?void 0x0:_0x1579c0[_0x553dfb(0x289)])===_0x553dfb(0x2c4);}function _0x47e6d3(_0x22245c){const _0x33431c=_0x474339;var _0x1470bf,_0x1cdc94;return((_0x1470bf=_0x22245c[_0x33431c(0x204)])==null?void 0x0:_0x1470bf[_0x33431c(0x289)])===_0x33431c(0x294)||((_0x1cdc94=_0x22245c[_0x33431c(0x204)])==null?void 0x0:_0x1cdc94[_0x33431c(0x289)])==='sdtContentLocked';}function _0x12c595(_0x39c45c,_0x3fbfdb){const _0x2c6fc4=_0x474339;let _0x2a7643=Number['parseInt'](_0x39c45c??'',0x10);return!/^[\da-f]+$/i[_0x2c6fc4(0x21d)](_0x39c45c??'')||_0x2a7643<=0x0||_0x2a7643>0x10ffff||_0x2a7643>=0xd800&&_0x2a7643<=0xdfff?_0x3fbfdb:String[_0x2c6fc4(0x2cc)](_0x2a7643);}function _0x3d527d(_0x55cdd0,_0x146445=_0x474339(0x224),_0x4242cf){const _0x52b50d=_0x474339;let _0x5d4c55=new Date(_0x55cdd0);if(Number[_0x52b50d(0x2ce)](_0x5d4c55['getTime']()))return _0x55cdd0['slice'](0x0,0xa);let _0x4d1ea1=_0x114568=>{const _0x5c6283=_0x52b50d;try{return new Intl[(_0x5c6283(0x278))](_0x4242cf||void 0x0,{..._0x114568,'timeZone':_0x5c6283(0x266)})[_0x5c6283(0x2bf)](_0x5d4c55);}catch{return new Intl[(_0x5c6283(0x278))](void 0x0,{..._0x114568,'timeZone':_0x5c6283(0x266)})['format'](_0x5d4c55);}},_0x1dcbba=_0x5d4c55[_0x52b50d(0x1f0)](),_0x5af612=_0x5d4c55[_0x52b50d(0x223)]()+0x1,_0x1f0c3c=_0x5d4c55[_0x52b50d(0x2a8)](),_0x206364=!_0x4242cf||_0x4242cf['toLowerCase']()[_0x52b50d(0x234)]('en'),_0x47b9cf={'dddd':_0x4d1ea1({'weekday':_0x52b50d(0x216)}),'ddd':_0x206364?[_0x52b50d(0x274),_0x52b50d(0x2cb),_0x52b50d(0x29e),_0x52b50d(0x285),_0x52b50d(0x255),'Fri',_0x52b50d(0x279)][_0x5d4c55[_0x52b50d(0x232)]()]:_0x4d1ea1({'weekday':_0x52b50d(0x230)}),'MMMM':_0x4d1ea1({'month':_0x52b50d(0x216)}),'MMM':_0x206364?[_0x52b50d(0x23a),_0x52b50d(0x1f9),_0x52b50d(0x23e),_0x52b50d(0x25e),_0x52b50d(0x292),_0x52b50d(0x1f2),_0x52b50d(0x214),_0x52b50d(0x2cd),_0x52b50d(0x219),_0x52b50d(0x21b),'Nov',_0x52b50d(0x24f)][_0x5af612-0x1]:_0x4d1ea1({'month':_0x52b50d(0x230)}),'yyyy':String(_0x1dcbba)[_0x52b50d(0x283)](0x4,'0'),'yy':String(_0x1dcbba%0x64)[_0x52b50d(0x283)](0x2,'0'),'MM':String(_0x5af612)[_0x52b50d(0x283)](0x2,'0'),'M':String(_0x5af612),'dd':String(_0x1f0c3c)[_0x52b50d(0x283)](0x2,'0'),'d':String(_0x1f0c3c)};return _0x146445[_0x52b50d(0x29c)](/dddd|ddd|MMMM|MMM|yyyy|yy|MM|M|dd|d/g,_0x126be0=>_0x47b9cf[_0x126be0]);}function _0x4f34b0(_0x447f28,_0x13bfa6){const _0x4859c4=_0x474339;let _0xf4e4b1=_0x447f28['properties'];if(_0x13bfa6['showingPlaceholder'])return _0x13bfa6['value'];if(_0xf4e4b1['kind']===_0x4859c4(0x297)){var _0x3fc49d,_0x1943a5,_0x469f44;let _0x2cb56d=_0x13bfa6['checked']??!((_0x3fc49d=_0xf4e4b1[_0x4859c4(0x297)])!=null&&_0x3fc49d[_0x4859c4(0x28a)]),_0x235643={..._0xf4e4b1[_0x4859c4(0x297)],..._0x13bfa6[_0x4859c4(0x2af)]};return _0x2cb56d?_0x12c595((_0x1943a5=_0x235643[_0x4859c4(0x26f)])==null?void 0x0:_0x1943a5[_0x4859c4(0x26a)],'☒'):_0x12c595((_0x469f44=_0x235643['uncheckedState'])==null?void 0x0:_0x469f44['value'],'☐');}if(_0xf4e4b1[_0x4859c4(0x20c)]==='dropDownList'||_0xf4e4b1['kind']===_0x4859c4(0x2a2)){var _0x4618b9;let _0x45766f=_0x13bfa6[_0x4859c4(0x26a)];return _0x45766f==null?void 0x0:((_0x4618b9=_0xf4e4b1[_0x4859c4(0x2a7)])==null||(_0x4618b9=_0x4618b9[_0x4859c4(0x244)](_0x23bcf3=>_0x23bcf3[_0x4859c4(0x26a)]===_0x45766f))==null?void 0x0:_0x4618b9['displayText'])??_0x45766f;}if(_0xf4e4b1['kind']===_0x4859c4(0x29a)){var _0x95f326,_0x72967;let _0x2bfa9c=_0x13bfa6[_0x4859c4(0x27d)]??_0x13bfa6['value'];return _0x2bfa9c==null?void 0x0:_0x3d527d(_0x2bfa9c,(_0x95f326=_0xf4e4b1[_0x4859c4(0x29a)])==null?void 0x0:_0x95f326[_0x4859c4(0x2bf)],(_0x72967=_0xf4e4b1[_0x4859c4(0x29a)])==null?void 0x0:_0x72967[_0x4859c4(0x247)]);}return _0x13bfa6[_0x4859c4(0x26a)];}function _0x37297c(_0x54b48b,_0x339996){const _0x39d493=_0x474339;var _0x14b65d;let _0x50d939=(0x0,_0x337c84[_0x39d493(0x1f3)])({},_0x337c84['Tools'][_0x39d493(0x2c1)](_0x54b48b['properties']),_0x337c84[_0x39d493(0x238)]['deepClone'](_0x339996[_0x39d493(0x204)]??{}));if((_0x14b65d=_0x339996[_0x39d493(0x204)])!=null&&_0x14b65d['listItems']&&(_0x50d939[_0x39d493(0x2a7)]=_0x337c84['Tools'][_0x39d493(0x2c1)](_0x339996[_0x39d493(0x204)][_0x39d493(0x2a7)])),_0x50d939[_0x39d493(0x20c)]==='checkbox'){var _0x2cd332;_0x50d939[_0x39d493(0x297)]={..._0x50d939['checkbox'],..._0x337c84[_0x39d493(0x238)]['deepClone'](_0x339996[_0x39d493(0x2af)]),'checked':_0x339996[_0x39d493(0x28a)]??!((_0x2cd332=_0x50d939[_0x39d493(0x297)])!=null&&_0x2cd332[_0x39d493(0x28a)])};}else{if(_0x50d939[_0x39d493(0x20c)]===_0x39d493(0x29a)&&!_0x339996[_0x39d493(0x249)]){var _0x61a269;_0x50d939['date']={..._0x50d939[_0x39d493(0x29a)],'fullDate':_0x339996[_0x39d493(0x27d)]??_0x339996[_0x39d493(0x26a)]??((_0x61a269=_0x50d939[_0x39d493(0x29a)])==null?void 0x0:_0x61a269[_0x39d493(0x27d)])};}}return _0x50d939['showingPlaceholder']=_0x339996['showingPlaceholder']??!0x1,_0x50d939['dataBinding']&&={..._0x50d939[_0x39d493(0x241)],'dirty':!0x0},_0x50d939;}function _0x2cddf5(_0x2e779f,_0x1fdd42,_0x2669b1,_0x4c6d30,_0x103e5c,_0x29629c){const _0x5a9046=_0x474339;var _0x5d07f0,_0x150b41,_0x6200bd,_0x19ece2;let _0x232ca4=[..._0x2669b1][_0x5a9046(0x2c0)]((_0x4e4a50,_0x1a6da7)=>_0x4e4a50+_0x1a6da7['length'],0x0),_0x4b38c3=(_0x5d07f0=_0x2e779f['textRuns'])==null?void 0x0:_0x5d07f0[_0x5a9046(0x244)](_0x4dc63a=>_0x4dc63a['st']<=_0x29629c&&_0x29629c<_0x4dc63a['ed']),_0x1ea3b2=_0x4c6d30['kind']===_0x5a9046(0x297)?(_0x150b41=_0x4c6d30[_0x5a9046(0x297)])!=null&&_0x150b41[_0x5a9046(0x28a)]?(_0x6200bd=_0x4c6d30[_0x5a9046(0x297)]['checkedState'])==null?void 0x0:_0x6200bd[_0x5a9046(0x22f)]:(_0x19ece2=_0x4c6d30['checkbox'])==null||(_0x19ece2=_0x19ece2['uncheckedState'])==null?void 0x0:_0x19ece2['font']:void 0x0,_0x4e01e1=_0x4b38c3!=null&&_0x4b38c3['ts']?_0x337c84[_0x5a9046(0x238)][_0x5a9046(0x2c1)](_0x4b38c3['ts']):{};return _0x1ea3b2&&!_0x4e01e1['ff']&&(_0x4e01e1['ff']=_0x1ea3b2),{'dataStream':_0x2669b1,'textRuns':_0x4b38c3!=null&&_0x4b38c3['ts']||_0x1ea3b2?[{'st':0x0,'ed':_0x232ca4,'ts':_0x4e01e1}]:void 0x0,'customRanges':_0x103e5c?[{'startIndex':0x0,'endIndex':Math[_0x5a9046(0x236)](0x0,_0x232ca4-0x1),'rangeId':_0x1fdd42[_0x5a9046(0x287)],'rangeType':_0x337c84[_0x5a9046(0x1f7)][_0x5a9046(0x201)],'wholeEntity':!0x1,'properties':_0x4c6d30}]:void 0x0};}function _0x2bf26c(_0x274d90,_0xf25e36){const _0x23fd31=_0x474339;let _0x5e8b72=_0xf25e36[_0x23fd31(0x298)],_0xb7f47c=_0xf25e36[_0x23fd31(0x2d8)]+0x1;for(_0x274d90[_0x23fd31(0x1fd)][_0x5e8b72]===_0x337c84['DataStreamTreeTokenType'][_0x23fd31(0x237)]&&_0x274d90[_0x23fd31(0x1fd)][_0xb7f47c-0x1]===_0x337c84[_0x23fd31(0x227)][_0x23fd31(0x263)]&&(_0x5e8b72++,_0xb7f47c--);_0x5e8b72<_0xb7f47c&&_0x194d21(_0x274d90[_0x23fd31(0x1fd)][_0x23fd31(0x21c)](_0x5e8b72));)_0x5e8b72++;for(;_0xb7f47c>_0x5e8b72&&_0x194d21(_0x274d90[_0x23fd31(0x1fd)]['charCodeAt'](_0xb7f47c-0x1));)_0xb7f47c--;return{'startOffset':_0x5e8b72,'endOffset':_0xb7f47c};}function _0x194d21(_0x108604){return _0x108604<0x20&&_0x108604!==0x9;}async function _0x50fc7f(_0x3e7ab0,_0x41c977,_0x137275,_0x1dbe49,_0x8c233b,_0x1bbf40,_0x3af1cd){const _0x4fb4b1=_0x474339;let _0x635756=_0x2fc2bd(_0x137275,_0x1dbe49,_0x8c233b,_0x1bbf40);if(!_0x635756)return!0x1;let _0x508522={'unitId':_0x41c977[_0x4fb4b1(0x2d9)](),'historyAction':_0x106c11,'actions':_0x337c84[_0x4fb4b1(0x200)][_0x4fb4b1(0x1f8)]()['editOp'](_0x635756[_0x4fb4b1(0x1ec)],(0x0,_0x337c84[_0x4fb4b1(0x257)])(_0x41c977,_0x3af1cd)),'textRanges':[{'startOffset':_0x635756[_0x4fb4b1(0x261)],'endOffset':_0x635756[_0x4fb4b1(0x261)],'collapsed':!0x0,'segmentId':_0x3af1cd}],'debounce':!0x1,'trigger':_0x106c11};return _0x3f8915(_0x41c977,_0x508522),!!await _0x3e7ab0[_0x4fb4b1(0x2c8)](_0x337c84[_0x4fb4b1(0x2ac)])[_0x4fb4b1(0x2d5)](_0x1759a6[_0x4fb4b1(0x296)]['id'],_0x508522);}function _0x3f8915(_0x259387,_0x3ed244){const _0x48e7a6=_0x474339;let _0x59364e=_0x259387[_0x48e7a6(0x2b3)](),_0x187a0d=['',...Object[_0x48e7a6(0x22a)](_0x59364e[_0x48e7a6(0x2d2)]??{}),...Object['keys'](_0x59364e[_0x48e7a6(0x25c)]??{}),...Object['keys'](_0x59364e[_0x48e7a6(0x1f4)]??{})][_0x48e7a6(0x26e)](_0x41a86a=>{const _0x2422ac=_0x48e7a6;var _0x58c9ae,_0x4abac3;let _0x1a2137=(_0x58c9ae=_0x259387[_0x2422ac(0x267)](_0x41a86a))==null?void 0x0:_0x58c9ae['getBody']();return(_0x1a2137==null||(_0x4abac3=_0x1a2137[_0x2422ac(0x226)])==null?void 0x0:_0x4abac3[_0x2422ac(0x218)](_0x430daf=>_0x430daf['rangeType']===_0x337c84[_0x2422ac(0x1f7)]['SDT']&&!!(0x0,_0x337c84[_0x2422ac(0x239)])(_0x430daf))[_0x2422ac(0x2b2)](_0x37ed42=>({'segmentId':_0x41a86a,'range':_0x37ed42,'body':_0x1a2137})))??[];});if(_0x187a0d[_0x48e7a6(0x259)]<0x2)return;let _0x48e7c6=!0x1,_0x13933e=new Set(),_0x32acbe=_0x337c84[_0x48e7a6(0x250)][_0x48e7a6(0x205)][_0x48e7a6(0x2d0)](_0x3ed244[_0x48e7a6(0x1ec)]);if(_0x32acbe[_0x48e7a6(0x24d)](null,_0x300007=>{const _0x5d4f97=_0x48e7a6;if(_0x300007['et']!==_0x337c84[_0x5d4f97(0x28e)]['id']||!Array[_0x5d4f97(0x209)](_0x300007['e']))return;let _0x2e582f=_0x32acbe[_0x5d4f97(0x2a6)](),_0x3767cb=_0x187a0d[_0x5d4f97(0x218)](({segmentId:_0x19d503})=>{const _0x414c6b=_0x5d4f97;let _0x342517=(0x0,_0x337c84[_0x414c6b(0x257)])(_0x259387,_0x19d503);return _0x2e582f[_0x414c6b(0x259)]===_0x342517['length']&&_0x342517[_0x414c6b(0x281)]((_0x193c98,_0x4a5c92)=>_0x193c98===_0x2e582f[_0x4a5c92]);}),_0xfe1af0=0x0;for(let _0x39ab3d of _0x300007['e'])if(_0x39ab3d['t']===_0x337c84[_0x5d4f97(0x1ff)]['INSERT']){if(_0x48e7c6||=_0x3767cb[_0x5d4f97(0x2b7)](({range:_0x477633})=>_0xfe1af0>=_0x477633[_0x5d4f97(0x298)]&&_0xfe1af0<=_0x477633[_0x5d4f97(0x2d8)]+0x1),_0x39ab3d['valueRangeId']){for(let {range:_0x11a060}of _0x3767cb)_0x11a060['rangeId']===_0x39ab3d['valueRangeId']&&_0x13933e['add'](_0x11a060);}}else _0x39ab3d['t']===_0x337c84[_0x5d4f97(0x1ff)]['DELETE']&&(_0x48e7c6||=_0x3767cb[_0x5d4f97(0x2b7)](({range:_0x1d938c})=>_0xfe1af0<=_0x1d938c[_0x5d4f97(0x2d8)]&&_0xfe1af0+_0x39ab3d[_0x5d4f97(0x2b6)]>_0x1d938c['startIndex'])),_0xfe1af0+=_0x39ab3d[_0x5d4f97(0x2b6)];}),!_0x48e7c6)return;let _0x141604=_0x337c84[_0x48e7a6(0x200)][_0x48e7a6(0x272)](_0x337c84[_0x48e7a6(0x238)][_0x48e7a6(0x2c1)](_0x59364e),_0x3ed244[_0x48e7a6(0x1ec)]);if(!_0x141604)return;let _0x1ead4=_0x5a3fa0=>{const _0x37e396=_0x48e7a6;var _0x2fe14b,_0x1ac567,_0x2f4fc8;return _0x5a3fa0?((_0x2fe14b=_0x141604[_0x37e396(0x2d2)])==null||(_0x2fe14b=_0x2fe14b[_0x5a3fa0])==null?void 0x0:_0x2fe14b[_0x37e396(0x235)])??((_0x1ac567=_0x141604[_0x37e396(0x25c)])==null||(_0x1ac567=_0x1ac567[_0x5a3fa0])==null?void 0x0:_0x1ac567[_0x37e396(0x235)])??((_0x2f4fc8=_0x141604[_0x37e396(0x1f4)])==null||(_0x2f4fc8=_0x2f4fc8[_0x5a3fa0])==null?void 0x0:_0x2f4fc8['body']):_0x141604[_0x37e396(0x235)];},_0x4d5a9e=new Map(),_0x34ef1a=new Set();for(let {segmentId:_0x17b93a,range:_0x288767,body:_0xb34e15}of _0x187a0d){var _0x220b14;let _0x3c677d=_0x1ead4(_0x17b93a),_0xf3fe05=_0x3c677d==null||(_0x220b14=_0x3c677d['customRanges'])==null?void 0x0:_0x220b14[_0x48e7a6(0x244)](_0x100a4e=>_0x100a4e[_0x48e7a6(0x287)]===_0x288767[_0x48e7a6(0x287)]&&_0x100a4e[_0x48e7a6(0x280)]===_0x337c84['CustomRangeType'][_0x48e7a6(0x201)]);if(!_0xf3fe05||!_0x3c677d||_0x35a3f2(_0x288767)||(0x0,_0x337c84['getSdtBindingKey'])(_0xf3fe05)!==(0x0,_0x337c84[_0x48e7a6(0x239)])(_0x288767))continue;let _0x11c204=(0x0,_0x337c84[_0x48e7a6(0x25b)])(_0x3c677d,_0xf3fe05);if(_0x11c204!==void 0x0&&(_0x13933e[_0x48e7a6(0x2b9)](_0x288767)||_0x11c204!==(0x0,_0x337c84[_0x48e7a6(0x25b)])(_0xb34e15,_0x288767))){let _0xa51f00=(0x0,_0x337c84[_0x48e7a6(0x239)])(_0xf3fe05);_0x4d5a9e['set'](_0xa51f00,_0x11c204),_0x13933e[_0x48e7a6(0x2b9)](_0x288767)&&_0x34ef1a[_0x48e7a6(0x1f5)](_0xa51f00);}}for(let {segmentId:_0x3dbe58,range:_0x39db76}of _0x187a0d){var _0x5e0e9b,_0x85393a;let _0x238690=_0x1ead4(_0x3dbe58),_0x6ab9c8=_0x238690==null||(_0x5e0e9b=_0x238690['customRanges'])==null?void 0x0:_0x5e0e9b['find'](_0x2050db=>_0x2050db[_0x48e7a6(0x287)]===_0x39db76[_0x48e7a6(0x287)]&&_0x2050db[_0x48e7a6(0x280)]===_0x337c84[_0x48e7a6(0x1f7)][_0x48e7a6(0x201)]),_0x3380bd=_0x6ab9c8&&_0x4d5a9e[_0x48e7a6(0x2c8)]((0x0,_0x337c84[_0x48e7a6(0x239)])(_0x6ab9c8)??''),_0x47c15c=!!(_0x6ab9c8&&_0x34ef1a[_0x48e7a6(0x2b9)]((0x0,_0x337c84[_0x48e7a6(0x239)])(_0x6ab9c8)??''));if(!_0x6ab9c8||!_0x238690||_0x3380bd===void 0x0||(0x0,_0x337c84[_0x48e7a6(0x25b)])(_0x238690,_0x6ab9c8)===_0x3380bd&&(!_0x47c15c||_0x13933e['has'](_0x39db76)))continue;let _0x57cb51={'rangeId':_0x6ab9c8[_0x48e7a6(0x287)],'value':_0x3380bd};_0x3380bd===''&&['text','richText','date','comboBox',_0x48e7a6(0x25a)][_0x48e7a6(0x29f)](_0x6ab9c8[_0x48e7a6(0x204)][_0x48e7a6(0x20c)])&&(_0x57cb51[_0x48e7a6(0x249)]=!0x0,_0x57cb51['value']=_0x12575f(_0x6ab9c8[_0x48e7a6(0x204)])),_0x6ab9c8[_0x48e7a6(0x204)]['kind']===_0x48e7a6(0x297)&&(_0x57cb51[_0x48e7a6(0x28a)]=_0x3380bd===_0x48e7a6(0x2aa)||_0x3380bd==='1');let _0x9e3e3b=_0x4f34b0(_0x6ab9c8,_0x57cb51),_0x470200=_0x9e3e3b==null?void 0x0:_0x2fc2bd(_0x238690,_0x6ab9c8,_0x9e3e3b,_0x57cb51,_0x47c15c||void 0x0);if(!_0x470200)continue;let _0x36fd7a=_0x337c84['JSONX'][_0x48e7a6(0x1f8)]()[_0x48e7a6(0x20a)](_0x470200['actions'],(0x0,_0x337c84[_0x48e7a6(0x257)])(_0x259387,_0x3dbe58));_0x3ed244[_0x48e7a6(0x1ec)]=_0x337c84['JSONX'][_0x48e7a6(0x1fc)](_0x3ed244[_0x48e7a6(0x1ec)],_0x36fd7a),_0x3ed244[_0x48e7a6(0x288)]=(_0x85393a=_0x3ed244['textRanges'])==null?void 0x0:_0x85393a[_0x48e7a6(0x2b2)](_0x270b9d=>(_0x270b9d['segmentId']??_0x3ed244[_0x48e7a6(0x2ab)]??'')===_0x3dbe58?{..._0x270b9d,'startOffset':_0x337c84[_0x48e7a6(0x28e)]['transformPosition'](_0x470200[_0x48e7a6(0x1ec)],_0x270b9d[_0x48e7a6(0x2be)]),'endOffset':_0x337c84[_0x48e7a6(0x28e)][_0x48e7a6(0x262)](_0x470200[_0x48e7a6(0x1ec)],_0x270b9d['endOffset'])}:_0x270b9d),_0x337c84[_0x48e7a6(0x28e)][_0x48e7a6(0x272)](_0x238690,_0x470200['actions']);}}function _0x12575f(_0x332b1a){const _0x29738c=_0x474339;let {placeholder:_0x47102f,placeholderDocPart:_0x138afb}=_0x332b1a;return(_0x47102f===(_0x138afb==null?void 0x0:_0x138afb[_0x29738c(0x2c2)])?void 0x0:_0x47102f)??(_0x138afb==null?void 0x0:_0x138afb[_0x29738c(0x252)])??'​';}function _0x2fc2bd(_0x2ff598,_0x369149,_0x10d522,_0x20c72e,_0x235325){const _0x423c90=_0x474339;let _0x4a692e=_0x37297c(_0x369149,_0x20c72e),_0x1a43d4=_0x2bf26c(_0x2ff598,_0x369149),_0x3fc7af=_0x1a43d4[_0x423c90(0x2be)]>_0x369149['startIndex']||_0x1a43d4[_0x423c90(0x29b)]<_0x369149[_0x423c90(0x2d8)]+0x1,_0x21adb0=_0x2cddf5(_0x2ff598,_0x369149,_0x10d522,_0x4a692e,!_0x3fc7af,_0x1a43d4[_0x423c90(0x2be)]),_0x3dd9a8={'startOffset':_0x1a43d4[_0x423c90(0x2be)],'endOffset':_0x1a43d4['endOffset'],'collapsed':!0x1},_0x5274c7=_0x337c84[_0x423c90(0x231)][_0x423c90(0x27f)]['delete']([_0x3dd9a8],_0x2ff598,0x0,_0x21adb0);if(_0x3fc7af){var _0x35c9e1,_0xb9da47;let _0x58fb41=_0x337c84[_0x423c90(0x238)][_0x423c90(0x2c1)](_0x2ff598);_0x337c84[_0x423c90(0x28e)]['apply'](_0x58fb41,_0x5274c7);let _0x46517a=(_0x35c9e1=_0x58fb41[_0x423c90(0x226)])==null?void 0x0:_0x35c9e1[_0x423c90(0x244)](_0x4efb1c=>_0x4efb1c[_0x423c90(0x280)]===_0x337c84['CustomRangeType']['SDT']&&_0x4efb1c[_0x423c90(0x287)]===_0x369149[_0x423c90(0x287)]);if(!_0x46517a)return;let _0xf2ffab=_0x369149[_0x423c90(0x298)],_0x3b2d55=_0x369149[_0x423c90(0x2d8)]+_0x21adb0[_0x423c90(0x1fd)][_0x423c90(0x259)]-(_0x1a43d4[_0x423c90(0x29b)]-_0x1a43d4[_0x423c90(0x2be)]),_0x48583c=(_0xb9da47=_0x58fb41[_0x423c90(0x226)])==null?void 0x0:_0xb9da47[_0x423c90(0x218)](_0x5617ba=>_0xf2ffab<=_0x5617ba[_0x423c90(0x298)]&&_0x5617ba[_0x423c90(0x2d8)]<=_0x3b2d55)[_0x423c90(0x2b2)](_0x5c5653=>({..._0x337c84[_0x423c90(0x238)][_0x423c90(0x2c1)](_0x5c5653),'startIndex':_0x5c5653[_0x423c90(0x287)]===_0x369149[_0x423c90(0x287)]?0x0:_0x5c5653[_0x423c90(0x298)]-_0xf2ffab,'endIndex':_0x5c5653[_0x423c90(0x287)]===_0x369149['rangeId']?_0x3b2d55-_0xf2ffab:_0x5c5653[_0x423c90(0x2d8)]-_0xf2ffab,'properties':_0x5c5653[_0x423c90(0x287)]===_0x46517a['rangeId']?_0x4a692e:_0x337c84[_0x423c90(0x238)]['deepClone'](_0x5c5653['properties'])})),_0x3419d1=new _0x337c84[(_0x423c90(0x28e))]()[_0x423c90(0x24a)](_0xf2ffab)[_0x423c90(0x24a)](_0x3b2d55-_0xf2ffab+0x1,{'dataStream':'','customRanges':_0x48583c});_0x5274c7=_0x337c84[_0x423c90(0x28e)]['compose'](_0x5274c7,_0x3419d1[_0x423c90(0x254)]());}if((_0x235325??['checkbox',_0x423c90(0x29a),_0x423c90(0x25a),_0x423c90(0x2a2)]['includes'](_0x4a692e[_0x423c90(0x20c)]))&&(_0x5274c7=_0x5274c7[_0x423c90(0x2b2)](_0x459271=>_0x459271['t']===_0x337c84[_0x423c90(0x1ff)][_0x423c90(0x1ed)]?_0x459271:{..._0x459271,'valueRangeId':_0x369149['rangeId']})),_0x20c72e['properties']){let _0x4dc873=(0x0,_0x337c84[_0x423c90(0x1f3)])({},_0x337c84[_0x423c90(0x238)][_0x423c90(0x2c1)](_0x369149['properties']),_0x337c84['Tools'][_0x423c90(0x2c1)](_0x20c72e[_0x423c90(0x204)]));_0x20c72e[_0x423c90(0x204)][_0x423c90(0x2a7)]&&(_0x4dc873[_0x423c90(0x2a7)]=_0x337c84[_0x423c90(0x238)][_0x423c90(0x2c1)](_0x20c72e[_0x423c90(0x204)][_0x423c90(0x2a7)]));let _0x49339e={..._0x369149,'endIndex':_0x369149[_0x423c90(0x2d8)]+_0x21adb0[_0x423c90(0x1fd)]['length']-(_0x1a43d4[_0x423c90(0x29b)]-_0x1a43d4['startOffset'])};_0x5274c7[_0x423c90(0x26d)](...new _0x337c84['TextX']()['updateCustomRangeProperties'](_0x49339e,_0x4dc873)[_0x423c90(0x254)]());}return{'actions':_0x5274c7,'caretOffset':_0x1a43d4[_0x423c90(0x2be)]+_0x21adb0[_0x423c90(0x1fd)][_0x423c90(0x259)]};}let _0x3d0294={'id':_0x106c11,'type':_0x337c84['CommandType']['COMMAND'],async 'handler'(_0x4460ed,_0x371087){const _0x197a05=_0x474339;var _0x32ee84,_0x56decf;if(!(_0x371087!=null&&_0x371087[_0x197a05(0x287)]))return!0x1;let _0x226a82=_0x4460ed[_0x197a05(0x2c8)](_0x337c84[_0x197a05(0x217)]),_0x37a364=_0x371087[_0x197a05(0x286)]?_0x226a82[_0x197a05(0x21a)](_0x371087['unitId'],_0x337c84[_0x197a05(0x2c9)]['UNIVER_DOC']):_0x226a82[_0x197a05(0x251)](_0x337c84[_0x197a05(0x2c9)][_0x197a05(0x2d7)]),_0x42c0e5=_0x37a364==null||(_0x32ee84=_0x37a364[_0x197a05(0x267)](_0x371087[_0x197a05(0x2ab)]))==null?void 0x0:_0x32ee84['getBody'](),_0x12a214=_0x42c0e5==null||(_0x56decf=_0x42c0e5[_0x197a05(0x226)])==null?void 0x0:_0x56decf[_0x197a05(0x244)](_0x1db411=>_0x1db411['rangeType']===_0x337c84[_0x197a05(0x1f7)][_0x197a05(0x201)]&&_0x1db411[_0x197a05(0x287)]===_0x371087[_0x197a05(0x287)]);if(!_0x37a364||!_0x42c0e5||!_0x12a214||_0x35a3f2(_0x12a214))return!0x1;let _0x17e31a=_0x4f34b0(_0x12a214,_0x371087);return _0x17e31a!=null&&_0x50fc7f(_0x4460ed,_0x37a364,_0x42c0e5,_0x12a214,_0x17e31a,_0x371087,_0x371087[_0x197a05(0x2ab)]);}};function _0x4eaa0e(_0x1613ef,_0x291d96){const _0x2a8794=_0x474339;if(_0x291d96<=_0x1613ef[_0x2a8794(0x298)])return;let _0x444df9=_0x337c84[_0x2a8794(0x238)][_0x2a8794(0x2c1)](_0x1613ef);return _0x444df9['startIndex']=0x0,_0x444df9[_0x2a8794(0x2d8)]=_0x291d96-_0x1613ef[_0x2a8794(0x298)]-0x1,_0x444df9[_0x2a8794(0x204)][_0x2a8794(0x249)]=!0x1,_0x444df9[_0x2a8794(0x204)][_0x2a8794(0x241)]&&(_0x444df9[_0x2a8794(0x204)][_0x2a8794(0x241)][_0x2a8794(0x253)]=!0x0),new _0x337c84[(_0x2a8794(0x28e))]()[_0x2a8794(0x24a)](_0x1613ef['startIndex'])[_0x2a8794(0x24a)](_0x291d96-_0x1613ef[_0x2a8794(0x298)],{'dataStream':'','customRanges':[_0x444df9]})['serialize']();}function _0x1808d4(_0x426905,_0x13d194,_0x498d18,_0x4b6bf6=!0x1){const _0x5139d0=_0x474339;var _0x4ebf0d;let _0x568c49=_0x498d18?(0x0,_0x337c84[_0x5139d0(0x1f3)])({},_0x337c84[_0x5139d0(0x238)]['deepClone'](_0x13d194[_0x5139d0(0x204)]),_0x337c84['Tools'][_0x5139d0(0x2c1)](_0x498d18)):_0x13d194[_0x5139d0(0x204)];_0x498d18!=null&&_0x498d18[_0x5139d0(0x2a7)]&&(_0x568c49['listItems']=_0x337c84['Tools'][_0x5139d0(0x2c1)](_0x498d18['listItems']));let _0x2c8707=new _0x337c84[(_0x5139d0(0x28e))]();return _0x4b6bf6&&_0x426905['dataStream'][_0x13d194['startIndex']]===_0x337c84[_0x5139d0(0x227)][_0x5139d0(0x237)]&&_0x426905[_0x5139d0(0x1fd)][_0x13d194['endIndex']]===_0x337c84[_0x5139d0(0x227)][_0x5139d0(0x263)]&&!((_0x4ebf0d=_0x426905[_0x5139d0(0x226)])!=null&&_0x4ebf0d[_0x5139d0(0x2b7)](_0x36ba72=>_0x36ba72[_0x5139d0(0x287)]!==_0x13d194[_0x5139d0(0x287)]&&_0x36ba72['startIndex']===_0x13d194[_0x5139d0(0x298)]&&_0x36ba72[_0x5139d0(0x2d8)]===_0x13d194[_0x5139d0(0x2d8)]))&&_0x2c8707[_0x5139d0(0x24a)](_0x13d194['startIndex'])[_0x5139d0(0x2cf)](0x1)['retain'](_0x13d194[_0x5139d0(0x2d8)]-_0x13d194[_0x5139d0(0x298)]-0x1)[_0x5139d0(0x2cf)](0x1),_0x4b6bf6?_0x2c8707[_0x5139d0(0x2c3)]([{'rangeId':_0x13d194['rangeId'],'range':null}]):_0x2c8707[_0x5139d0(0x24c)](_0x13d194,_0x568c49),{'actions':_0x2c8707['serialize'](),'caretOffset':_0x13d194['startIndex']};}async function _0x19134d(_0x4b3edd,_0x39060d,_0x59f107){const _0x56cccd=_0x474339;var _0x550924,_0x55990c;let _0x2fb111=_0x4b3edd[_0x56cccd(0x2c8)](_0x337c84[_0x56cccd(0x217)]),_0x23b7c0=_0x39060d[_0x56cccd(0x286)]?_0x2fb111[_0x56cccd(0x21a)](_0x39060d[_0x56cccd(0x286)],_0x337c84[_0x56cccd(0x2c9)][_0x56cccd(0x2d7)]):_0x2fb111['getCurrentUnitOfType'](_0x337c84[_0x56cccd(0x2c9)]['UNIVER_DOC']),_0x4b2f8c=_0x23b7c0==null||(_0x550924=_0x23b7c0[_0x56cccd(0x267)](_0x39060d[_0x56cccd(0x2ab)]))==null?void 0x0:_0x550924[_0x56cccd(0x269)](),_0x553b51=_0x4b2f8c==null||(_0x55990c=_0x4b2f8c[_0x56cccd(0x226)])==null?void 0x0:_0x55990c[_0x56cccd(0x244)](_0x5c0c84=>_0x5c0c84[_0x56cccd(0x280)]===_0x337c84[_0x56cccd(0x1f7)][_0x56cccd(0x201)]&&_0x5c0c84[_0x56cccd(0x287)]===_0x39060d[_0x56cccd(0x287)]);if(!_0x23b7c0||!_0x4b2f8c||!_0x553b51||_0x59f107&&_0x47e6d3(_0x553b51))return!0x1;let _0x47af4a=_0x1808d4(_0x4b2f8c,_0x553b51,_0x56cccd(0x204)in _0x39060d?_0x39060d[_0x56cccd(0x204)]:void 0x0,_0x59f107);return!_0x47af4a[_0x56cccd(0x1ec)][_0x56cccd(0x259)]||!!await _0x4b3edd['get'](_0x337c84[_0x56cccd(0x2ac)])['executeCommand'](_0x1759a6[_0x56cccd(0x296)]['id'],{'unitId':_0x23b7c0[_0x56cccd(0x2d9)](),'historyAction':_0x59f107?_0xd65de4['id']:_0x3a9150['id'],'actions':_0x337c84[_0x56cccd(0x200)][_0x56cccd(0x1f8)]()['editOp'](_0x47af4a[_0x56cccd(0x1ec)],(0x0,_0x337c84['getRichTextEditPath'])(_0x23b7c0,_0x39060d[_0x56cccd(0x2ab)])),'textRanges':[{'startOffset':_0x47af4a[_0x56cccd(0x261)],'endOffset':_0x47af4a[_0x56cccd(0x261)],'collapsed':!0x0,'segmentId':_0x39060d[_0x56cccd(0x2ab)]}],'debounce':!0x1,'trigger':_0x59f107?_0xd65de4['id']:_0x3a9150['id']});}let _0x3a9150={'id':_0x474339(0x276),'type':_0x337c84[_0x474339(0x2b4)][_0x474339(0x2b5)],'handler':(_0x2a7b1b,_0x3c1e99)=>_0x3c1e99!=null&&_0x3c1e99['rangeId']&&_0x3c1e99[_0x474339(0x204)]?_0x19134d(_0x2a7b1b,_0x3c1e99,!0x1):!0x1},_0xd65de4={'id':_0x474339(0x211),'type':_0x337c84[_0x474339(0x2b4)]['COMMAND'],'handler':(_0x43f79f,_0x36c0f0)=>_0x36c0f0!=null&&_0x36c0f0[_0x474339(0x287)]?_0x19134d(_0x43f79f,_0x36c0f0,!0x0):!0x1};var _0xbe7364=_0x474339(0x222),_0x4f1284=_0x474339(0x2ca);let _0x3ddef1={};function _0x2cdfeb(_0x93e673,_0x1b3c4c){return function(_0x10a714,_0x99a264){_0x1b3c4c(_0x10a714,_0x99a264,_0x93e673);};}function _0x208e3b(_0x3788ea,_0x2800f6,_0x2a6d24,_0x571bde){const _0x4ef70d=_0x474339;var _0x37798a=arguments[_0x4ef70d(0x259)],_0x3f10a1=_0x37798a<0x3?_0x2800f6:_0x571bde===null?_0x571bde=Object[_0x4ef70d(0x260)](_0x2800f6,_0x2a6d24):_0x571bde,_0x38d319;if(typeof Reflect=='object'&&typeof Reflect[_0x4ef70d(0x20e)]==_0x4ef70d(0x2c5))_0x3f10a1=Reflect[_0x4ef70d(0x20e)](_0x3788ea,_0x2800f6,_0x2a6d24,_0x571bde);else{for(var _0x2d8c54=_0x3788ea['length']-0x1;_0x2d8c54>=0x0;_0x2d8c54--)(_0x38d319=_0x3788ea[_0x2d8c54])&&(_0x3f10a1=(_0x37798a<0x3?_0x38d319(_0x3f10a1):_0x37798a>0x3?_0x38d319(_0x2800f6,_0x2a6d24,_0x3f10a1):_0x38d319(_0x2800f6,_0x2a6d24))||_0x3f10a1);}return _0x37798a>0x3&&_0x3f10a1&&Object[_0x4ef70d(0x23b)](_0x2800f6,_0x2a6d24,_0x3f10a1),_0x3f10a1;}function _0x4ff898(_0x5d2914){'@babel/helpers - typeof';const _0x5ece26=_0x474339;return _0x4ff898=typeof Symbol==_0x5ece26(0x2c5)&&typeof Symbol[_0x5ece26(0x206)]==_0x5ece26(0x1fe)?function(_0x19fd34){return typeof _0x19fd34;}:function(_0x3064b0){const _0x6c5f31=_0x5ece26;return _0x3064b0&&typeof Symbol==_0x6c5f31(0x2c5)&&_0x3064b0[_0x6c5f31(0x275)]===Symbol&&_0x3064b0!==Symbol[_0x6c5f31(0x29d)]?'symbol':typeof _0x3064b0;},_0x4ff898(_0x5d2914);}function _0x5a67b0(_0x5e6da5,_0x29de2d){const _0x418f54=_0x474339;if(_0x4ff898(_0x5e6da5)!='object'||!_0x5e6da5)return _0x5e6da5;var _0x1ecbee=_0x5e6da5[Symbol[_0x418f54(0x27e)]];if(_0x1ecbee!==void 0x0){var _0x3a7547=_0x1ecbee[_0x418f54(0x264)](_0x5e6da5,_0x29de2d||_0x418f54(0x2a3));if(_0x4ff898(_0x3a7547)!=_0x418f54(0x256))return _0x3a7547;throw TypeError(_0x418f54(0x20b));}return(_0x29de2d==='string'?String:Number)(_0x5e6da5);}function _0x515406(_0x18ce95){const _0x506143=_0x474339;var _0x5c22dc=_0x5a67b0(_0x18ce95,_0x506143(0x28b));return _0x4ff898(_0x5c22dc)==_0x506143(0x1fe)?_0x5c22dc:_0x5c22dc+'';}function _0x2a6cb3(_0x30d545,_0x388c0c,_0x5e5506){return(_0x388c0c=_0x515406(_0x388c0c))in _0x30d545?Object['defineProperty'](_0x30d545,_0x388c0c,{'value':_0x5e5506,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30d545[_0x388c0c]=_0x5e5506,_0x30d545;}let _0xb3e8d8=class extends _0x337c84['Plugin']{constructor(_0x5aab98=_0x3ddef1,_0x19b216,_0x208135,_0x5bb9b0){const _0x4a5732=_0x474339;super(),this[_0x4a5732(0x2d4)]=_0x5aab98,this['_injector']=_0x19b216,this['_configService']=_0x208135,this[_0x4a5732(0x25f)]=_0x5bb9b0;let {..._0x5455f3}=(0x0,_0x337c84['merge'])({},_0x3ddef1,this['_config']);this[_0x4a5732(0x215)]['setConfig'](_0x4a5732(0x1f6),_0x5455f3);}[_0x474339(0x1ee)](){const _0x2403d1=_0x474339;this['disposeWithMe'](this[_0x2403d1(0x25f)]['registerCommand'](_0x3d0294)),this['disposeWithMe'](this[_0x2403d1(0x25f)][_0x2403d1(0x2a0)](_0x3a9150)),this['disposeWithMe'](this[_0x2403d1(0x25f)][_0x2403d1(0x2a0)](_0xd65de4)),this[_0x2403d1(0x282)](this[_0x2403d1(0x25f)][_0x2403d1(0x2a0)](_0x18fdf8)),this['disposeWithMe'](this[_0x2403d1(0x25f)][_0x2403d1(0x2a0)](_0x50445c));let _0x1cbc5e=new Map();this[_0x2403d1(0x282)]({'dispose':()=>_0x1cbc5e[_0x2403d1(0x240)]()}),this[_0x2403d1(0x282)](this['_injector']['get'](_0x337c84['IResourceManagerService'])[_0x2403d1(0x22d)]({'pluginName':'DOC_SDT_CUSTOM_XML_PLUGIN','businesses':[_0x337c84[_0x2403d1(0x2c9)][_0x2403d1(0x2d7)]],'parseJson':_0x1347f8=>_0x1347f8,'onLoad':(_0x2286b7,_0xc123ed)=>{const _0x885c4a=_0x2403d1;_0x1cbc5e[_0x885c4a(0x2b8)](_0x2286b7,_0xc123ed);},'onUnLoad':_0x428dfb=>{const _0x10dad5=_0x2403d1;_0x1cbc5e[_0x10dad5(0x2cf)](_0x428dfb);},'toJson':_0x4b080f=>_0x1cbc5e[_0x2403d1(0x2c8)](_0x4b080f)??''}));}};_0x2a6cb3(_0xb3e8d8,_0x474339(0x220),_0x474339(0x2ba)),_0x2a6cb3(_0xb3e8d8,_0x474339(0x25d),_0xbe7364),_0x2a6cb3(_0xb3e8d8,_0x474339(0x2d3),_0x4f1284),_0x2a6cb3(_0xb3e8d8,_0x474339(0x205),_0x337c84['UniverInstanceType'][_0x474339(0x2d7)]),_0xb3e8d8=_0x208e3b([(0x0,_0x337c84[_0x474339(0x24b)])(_0x1eb9ae['UniverLicensePlugin'],_0x1759a6[_0x474339(0x22c)]),_0x2cdfeb(0x1,(0x0,_0x337c84[_0x474339(0x2bb)])(_0x337c84[_0x474339(0x20d)])),_0x2cdfeb(0x2,_0x337c84[_0x474339(0x221)]),_0x2cdfeb(0x3,_0x337c84[_0x474339(0x2ac)])],_0xb3e8d8),_0x26566c[_0x474339(0x2da)]=_0x50445c,_0x26566c[_0x474339(0x2a5)]=_0x18fdf8,_0x26566c[_0x474339(0x213)]=_0xd65de4,Object['defineProperty'](_0x26566c,_0x474339(0x225),{'enumerable':!0x0,'get':function(){return _0xb3e8d8;}}),_0x26566c[_0x474339(0x28d)]=_0x3a9150,_0x26566c[_0x474339(0x229)]=_0x3d0294,_0x26566c[_0x474339(0x265)]=_0x2f33cc,_0x26566c[_0x474339(0x2a4)]=_0x1145b4,_0x26566c[_0x474339(0x203)]=_0x4eaa0e,_0x26566c[_0x474339(0x2ae)]=_0x1808d4,_0x26566c[_0x474339(0x2b1)]=_0x2fc2bd,_0x26566c[_0x474339(0x284)]=_0x3c2f9c,_0x26566c['generateSdtOoxmlId']=_0x4d7c69,_0x26566c[_0x474339(0x23f)]=_0x4f34b0,_0x26566c[_0x474339(0x1ef)]=_0x12575f,_0x26566c['getSdtVisibleContentRange']=_0x2bf26c,_0x26566c['isSdtContentLocked']=_0x35a3f2,_0x26566c[_0x474339(0x246)]=_0x47e6d3,_0x26566c[_0x474339(0x258)]=_0x3f8915;}));
1
+ function _0x5400(_0x1410f0,_0x5f4a96){_0x1410f0=_0x1410f0-0xc8;const _0x42d411=_0x42d4();let _0x540067=_0x42d411[_0x1410f0];return _0x540067;}(function(_0x15e6d3,_0xdc581d){const _0x39d3ea=_0x5400,_0xa695c9=_0x15e6d3();while(!![]){try{const _0x188d12=-parseInt(_0x39d3ea(0x16a))/0x1*(-parseInt(_0x39d3ea(0x151))/0x2)+-parseInt(_0x39d3ea(0x170))/0x3+parseInt(_0x39d3ea(0x131))/0x4*(parseInt(_0x39d3ea(0x144))/0x5)+parseInt(_0x39d3ea(0xd8))/0x6+-parseInt(_0x39d3ea(0x12f))/0x7*(-parseInt(_0x39d3ea(0x108))/0x8)+-parseInt(_0x39d3ea(0x12e))/0x9+-parseInt(_0x39d3ea(0x17f))/0xa;if(_0x188d12===_0xdc581d)break;else _0xa695c9['push'](_0xa695c9['shift']());}catch(_0x111195){_0xa695c9['push'](_0xa695c9['shift']());}}}(_0x42d4,0x9aefa),function(_0x232d7b,_0x3fc39c){const _0x18275b=_0x5400;typeof exports=='object'&&typeof module<'u'?_0x3fc39c(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x18275b(0x17b)]?define([_0x18275b(0xe3),_0x18275b(0x158),_0x18275b(0x102),_0x18275b(0x1ae),_0x18275b(0x134)],_0x3fc39c):(_0x232d7b=typeof globalThis<'u'?globalThis:_0x232d7b||self,_0x3fc39c(_0x232d7b[_0x18275b(0xf0)]={},_0x232d7b[_0x18275b(0x15d)],_0x232d7b[_0x18275b(0x1a3)],_0x232d7b[_0x18275b(0x126)],_0x232d7b[_0x18275b(0xdb)]));}(this,function(_0x5c68ef,_0x38c0c0,_0x44cea5,_0x2758a2,_0xca122e){const _0x1f3a6d=_0x5400;Object['defineProperty'](_0x5c68ef,Symbol[_0x1f3a6d(0x157)],{'value':_0x1f3a6d(0x179)});function _0x1b3405(_0x38ecdf){const _0x1fa33a=_0x1f3a6d;let _0x195614;do _0x195614=String(Math[_0x1fa33a(0x1b2)](Math[_0x1fa33a(0xd2)]()*0x7fffffff));while(_0x38ecdf[_0x1fa33a(0x103)](_0x195614));return _0x38ecdf['add'](_0x195614),_0x195614;}function _0x1c94cd(_0x252dd5,_0x25cf1a){const _0x47d7c9=_0x1f3a6d;var _0x47e9da,_0x30197f,_0x35fdfe,_0x48c3fc,_0x50cd7a,_0x221ada;if(!_0x146414(_0x252dd5,_0x25cf1a))return;let _0x369957=_0x59910a(_0x252dd5,_0x25cf1a),_0x23537e=new Set(_0x369957[_0x47d7c9(0xff)](_0x33581e=>_0x33581e[_0x47d7c9(0x168)])),_0xfe6131=_0x252dd5[_0x47d7c9(0x133)][_0x47d7c9(0xf4)](_0x25cf1a[_0x47d7c9(0x188)]+0x1)==='\x0d',_0x2fb42c=_0x25cf1a[_0x47d7c9(0x188)]+0x1+Number(_0xfe6131),_0x23f7a4=_0x44cea5[_0x47d7c9(0x14c)][_0x47d7c9(0x13c)]((0x0,_0x44cea5[_0x47d7c9(0x11d)])(_0x252dd5,_0x25cf1a[_0x47d7c9(0x1ad)],_0x2fb42c,!0x1,_0x44cea5[_0x47d7c9(0x195)][_0x47d7c9(0x184)]));if(!_0x23f7a4[_0x47d7c9(0x133)])return;let _0x30c309=new Set((_0x47e9da=_0x252dd5[_0x47d7c9(0x112)])==null?void 0x0:_0x47e9da[_0x47d7c9(0x198)](_0xa41ee9=>!_0x23537e['has'](_0xa41ee9[_0x47d7c9(0x168)])&&_0x25cf1a[_0x47d7c9(0x1ad)]<=_0xa41ee9[_0x47d7c9(0x1ad)]&&_0xa41ee9[_0x47d7c9(0x188)]<=_0x25cf1a[_0x47d7c9(0x188)])[_0x47d7c9(0xff)](_0xf806b8=>_0xf806b8[_0x47d7c9(0x168)])),_0x40ccc8=new Set((_0x30197f=_0x252dd5[_0x47d7c9(0x112)])==null?void 0x0:_0x30197f[_0x47d7c9(0x198)](_0x1c7f3a=>_0x1c7f3a[_0x47d7c9(0x14d)]===_0x44cea5['CustomRangeType']['SDT'])['map'](_0x1407a1=>_0x1407a1['properties'][_0x47d7c9(0x1a2)]));_0x23f7a4[_0x47d7c9(0x112)]=(_0x35fdfe=_0x23f7a4[_0x47d7c9(0x112)])==null?void 0x0:_0x35fdfe['filter'](_0x471f9e=>_0x30c309[_0x47d7c9(0x103)](_0x471f9e[_0x47d7c9(0x168)])),(_0x48c3fc=_0x23f7a4[_0x47d7c9(0x112)])==null||_0x48c3fc[_0x47d7c9(0x192)](_0x23ae0b=>{const _0x347733=_0x47d7c9;_0x23ae0b[_0x347733(0x168)]=(0x0,_0x44cea5[_0x347733(0x105)])(),_0x23ae0b[_0x347733(0x14d)]===_0x44cea5[_0x347733(0xdf)][_0x347733(0x16c)]&&(_0x23ae0b['properties'][_0x347733(0x1a2)]=_0x1b3405(_0x40ccc8));});let _0x4356d9=new Set((_0x50cd7a=_0x252dd5['paragraphs'])==null?void 0x0:_0x50cd7a[_0x47d7c9(0xff)](_0x550ab1=>_0x550ab1[_0x47d7c9(0xe6)]));(_0x221ada=_0x23f7a4[_0x47d7c9(0x118)])==null||_0x221ada['forEach'](_0x30b2a7=>{const _0x3497dc=_0x47d7c9;_0x30b2a7[_0x3497dc(0xe6)]=(0x0,_0x44cea5['createParagraphId'])(_0x4356d9);});let _0x3bbc2e=_0x2fb42c,_0x2be001=new _0x44cea5[(_0x47d7c9(0x19f))]()[_0x47d7c9(0x13f)](_0x3bbc2e)[_0x47d7c9(0x10d)](_0x23f7a4[_0x47d7c9(0x133)][_0x47d7c9(0xee)],_0x23f7a4)[_0x47d7c9(0x153)](),_0x1f0059=_0x44cea5[_0x47d7c9(0x14c)][_0x47d7c9(0x13c)](_0x252dd5);_0x44cea5[_0x47d7c9(0x19f)][_0x47d7c9(0x127)](_0x1f0059,_0x2be001);for(let _0x206802 of _0x369957){var _0x4a638c;let _0x2c487c=(_0x4a638c=_0x1f0059[_0x47d7c9(0x112)])==null?void 0x0:_0x4a638c[_0x47d7c9(0x1a8)](_0x27fd32=>_0x27fd32['rangeId']===_0x206802[_0x47d7c9(0x168)]);if(!_0x2c487c)return;_0x2c487c[_0x47d7c9(0x1ad)]=_0x206802[_0x47d7c9(0x1ad)],_0x2c487c[_0x47d7c9(0x188)]=_0x206802['endIndex']+_0x23f7a4[_0x47d7c9(0x133)]['length'];}return{'actions':_0x44cea5['TextX'][_0x47d7c9(0xf9)](_0x2be001,new _0x44cea5[(_0x47d7c9(0x19f))]()[_0x47d7c9(0x180)](_0x369957['map'](_0x537eac=>({'rangeId':_0x537eac[_0x47d7c9(0x168)],'range':_0x1f0059[_0x47d7c9(0x112)][_0x47d7c9(0x1a8)](_0x1a084f=>_0x1a084f[_0x47d7c9(0x168)]===_0x537eac[_0x47d7c9(0x168)])})))[_0x47d7c9(0x153)]()),'caretOffset':_0x3bbc2e+_0x23f7a4[_0x47d7c9(0x133)][_0x47d7c9(0xee)]-Number(_0xfe6131)};}function _0xd68cdd(_0x308924,_0x4d240b){const _0x5e5a01=_0x1f3a6d;if(!_0x146414(_0x308924,_0x4d240b))return;let _0x5dd3cb=_0x308924[_0x5e5a01(0x133)]['charAt'](_0x4d240b['endIndex']+0x1)==='\x0d',_0x3dbba0=_0x4d240b['endIndex']+0x1+Number(_0x5dd3cb);return{'actions':_0x44cea5[_0x5e5a01(0xd0)][_0x5e5a01(0x19d)][_0x5e5a01(0x156)]([{'startOffset':_0x4d240b[_0x5e5a01(0x1ad)],'endOffset':_0x3dbba0,'collapsed':!0x1}],_0x308924,0x0,null,!0x1),'caretOffset':_0x4d240b[_0x5e5a01(0x1ad)]};}function _0x146414(_0x5221f3,_0x19044b){const _0x5f2cd5=_0x1f3a6d;var _0x51f81c;if(_0x19044b[_0x5f2cd5(0x14b)][_0x5f2cd5(0xfb)]!==_0x5f2cd5(0x140)||[_0x5f2cd5(0x16e),_0x5f2cd5(0x161),_0x5f2cd5(0x159)][_0x5f2cd5(0x14f)](_0x19044b[_0x5f2cd5(0x14b)]['placement']))return!0x1;let _0x1717c0=_0x28b154(_0x5221f3,_0x19044b);return!(!_0x1717c0||(_0x51f81c=_0x1717c0['properties'][_0x5f2cd5(0x12c)])!=null&&_0x51f81c[_0x5f2cd5(0x196)]);}function _0x59910a(_0x3bc83b,_0x103c2e){const _0x54f161=_0x1f3a6d;let _0x23bd0b=_0x3bc83b['customRanges']??[],_0x320095=_0x23bd0b[_0x54f161(0xe2)](_0x3bf402=>_0x3bf402[_0x54f161(0x168)]===_0x103c2e[_0x54f161(0x168)]);return _0x23bd0b[_0x54f161(0x198)]((_0x2d6cb9,_0x2bce48)=>_0x2d6cb9['rangeType']===_0x44cea5[_0x54f161(0xdf)][_0x54f161(0x16c)]&&_0x2d6cb9[_0x54f161(0x168)]!==_0x103c2e[_0x54f161(0x168)]&&_0x2d6cb9['startIndex']<=_0x103c2e[_0x54f161(0x1ad)]&&_0x103c2e['endIndex']<=_0x2d6cb9[_0x54f161(0x188)]&&(_0x2d6cb9[_0x54f161(0x1ad)]<_0x103c2e[_0x54f161(0x1ad)]||_0x103c2e['endIndex']<_0x2d6cb9[_0x54f161(0x188)]||_0x2bce48>_0x320095));}function _0x527419(_0x205d68,_0x505405,_0x193a03=['body']){const _0x277f6b=_0x1f3a6d;var _0x30dca6;let _0xe3e9ed=_0x205d68[_0x277f6b(0x114)];if(!_0xe3e9ed||_0x505405[_0x277f6b(0x14b)][_0x277f6b(0xfb)]!==_0x277f6b(0x140)||_0x505405[_0x277f6b(0x14b)][_0x277f6b(0x174)]!==_0x277f6b(0x16e))return;let _0x1a2dec=_0x28b154(_0xe3e9ed,_0x505405);if(!(!_0x1a2dec||(_0x30dca6=_0x1a2dec['properties'][_0x277f6b(0x12c)])!=null&&_0x30dca6['doNotAllowInsertDelete']))for(let _0x2534e1 of _0xe3e9ed[_0x277f6b(0xcc)]??[]){if(_0x2534e1['startIndex']>_0x505405['startIndex']||_0x2534e1[_0x277f6b(0x188)]<=_0x505405['endIndex'])continue;let _0x5387db=(0x0,_0x38c0c0[_0x277f6b(0x130)])(_0x205d68,_0x2534e1[_0x277f6b(0xeb)]);if(!_0x5387db)continue;let _0x1c8f32=_0x5387db['rows'][_0x277f6b(0xe2)](_0x1112c0=>_0x1112c0['startOffset']===_0x505405['startIndex']),_0x1cbb43=_0x5387db['rows'][_0x277f6b(0xe2)](_0x3e48bc=>_0x3e48bc[_0x277f6b(0x15e)]===_0x505405[_0x277f6b(0x188)]);if(_0x1c8f32<0x0||_0x1cbb43<_0x1c8f32)continue;let _0x42f014=(0x0,_0x38c0c0[_0x277f6b(0xe5)])(_0x205d68,_0x2534e1[_0x277f6b(0xeb)],_0x1c8f32,_0x1cbb43,_0x193a03);if(!_0x42f014)return;let _0x223098=_0x42f014[_0x277f6b(0x18d)]?_0x5387db['endOffset']-_0x5387db[_0x277f6b(0x19e)]:_0x505405[_0x277f6b(0x188)]-_0x505405[_0x277f6b(0x1ad)]+0x1;return{'actions':_0x42f014[_0x277f6b(0x16f)],'caretOffset':Math[_0x277f6b(0x141)](0x0,Math[_0x277f6b(0x17e)](_0x505405['startIndex'],_0xe3e9ed[_0x277f6b(0x133)]['length']-_0x223098-0x2))};}}function _0x28b154(_0x1a6ba1,_0x5caddf){const _0x36cd95=_0x1f3a6d;return _0x59910a(_0x1a6ba1,_0x5caddf)[_0x36cd95(0x198)](_0x523e13=>_0x523e13[_0x36cd95(0x14b)]['kind']===_0x36cd95(0x12c))[_0x36cd95(0x1a6)]((_0x142be2,_0x5c473f)=>_0x142be2[_0x36cd95(0x188)]-_0x142be2[_0x36cd95(0x1ad)]-(_0x5c473f[_0x36cd95(0x188)]-_0x5c473f['startIndex']))[0x0];}async function _0x31e059(_0x15f103,_0x358607,_0x57fd82){const _0x24d909=_0x1f3a6d;var _0x24e913,_0x105e80;let _0x233272=_0x15f103[_0x24d909(0x1b5)](_0x44cea5['IUniverInstanceService']),_0x1056b4=_0x358607[_0x24d909(0x15f)]?_0x233272[_0x24d909(0x123)](_0x358607[_0x24d909(0x15f)],_0x44cea5[_0x24d909(0xc8)][_0x24d909(0x109)]):_0x233272[_0x24d909(0x1ac)](_0x44cea5[_0x24d909(0xc8)][_0x24d909(0x109)]),_0x39efe7=_0x1056b4==null||(_0x24e913=_0x1056b4['getSelfOrHeaderFooterModel'](_0x358607['segmentId']))==null?void 0x0:_0x24e913[_0x24d909(0x197)](),_0x3154dc=_0x39efe7==null||(_0x105e80=_0x39efe7['customRanges'])==null?void 0x0:_0x105e80[_0x24d909(0x1a8)](_0xcd8966=>_0xcd8966[_0x24d909(0x14d)]===_0x44cea5['CustomRangeType'][_0x24d909(0x16c)]&&_0xcd8966[_0x24d909(0x168)]===_0x358607[_0x24d909(0x168)]);if(!_0x1056b4||!_0x39efe7||!_0x3154dc)return!0x1;let _0x1c4690=(0x0,_0x44cea5[_0x24d909(0x13d)])(_0x1056b4,_0x358607[_0x24d909(0xde)]),_0x12dffe,_0xdcb5db;if(_0x3154dc[_0x24d909(0x14b)][_0x24d909(0x174)]==='row'){let _0x1411d1=!_0x57fd82&&_0x527419({..._0x1056b4['getSnapshot'](),'body':_0x39efe7},_0x3154dc,_0x1c4690);if(!_0x1411d1)return!0x1;({actions:_0x12dffe,caretOffset:_0xdcb5db}=_0x1411d1);}else{let _0x143f6f=_0x57fd82?_0x1c94cd(_0x39efe7,_0x3154dc):_0xd68cdd(_0x39efe7,_0x3154dc);if(!_0x143f6f)return!0x1;_0x12dffe=_0x44cea5[_0x24d909(0xe8)][_0x24d909(0xea)]()[_0x24d909(0xd7)](_0x143f6f['actions'],_0x1c4690),_0xdcb5db=_0x143f6f[_0x24d909(0x182)];}let _0x13b3d1=_0x57fd82?_0x13d6f5['id']:_0xf651f3['id'];return!!await _0x15f103[_0x24d909(0x1b5)](_0x44cea5[_0x24d909(0x18e)])[_0x24d909(0x13b)](_0x2758a2[_0x24d909(0x12a)]['id'],{'unitId':_0x1056b4[_0x24d909(0x1aa)](),'historyAction':_0x13b3d1,'actions':_0x12dffe,'textRanges':[{'startOffset':_0xdcb5db,'endOffset':_0xdcb5db,'collapsed':!0x0,'segmentId':_0x358607[_0x24d909(0xde)]}],'debounce':!0x1,'trigger':_0x13b3d1});}let _0x13d6f5={'id':'doc.command.duplicate-repeating-sdt-item','type':_0x44cea5[_0x1f3a6d(0xcd)][_0x1f3a6d(0xca)],'handler':(_0x3000a5,_0x413edb)=>_0x413edb!=null&&_0x413edb['rangeId']?_0x31e059(_0x3000a5,_0x413edb,!0x0):!0x1},_0xf651f3={'id':_0x1f3a6d(0x169),'type':_0x44cea5[_0x1f3a6d(0xcd)]['COMMAND'],'handler':(_0x379710,_0x11bb3b)=>_0x11bb3b!=null&&_0x11bb3b['rangeId']?_0x31e059(_0x379710,_0x11bb3b,!0x1):!0x1},_0x2ac7c5=_0x1f3a6d(0x1af);function _0x2a8dff(_0x413597,_0x37b607){const _0x7bfed=_0x1f3a6d;var _0x573bac;return _0x413597==null||(_0x573bac=_0x413597[_0x7bfed(0x112)])==null?void 0x0:_0x573bac[_0x7bfed(0x198)](_0x47048f=>_0x47048f[_0x7bfed(0x14d)]===_0x44cea5[_0x7bfed(0xdf)]['SDT']&&_0x47048f[_0x7bfed(0x1ad)]<=_0x37b607&&_0x37b607<=_0x47048f['endIndex'])[_0x7bfed(0x1a6)]((_0x3932f5,_0x263904)=>_0x3932f5[_0x7bfed(0x188)]-_0x3932f5[_0x7bfed(0x1ad)]-(_0x263904['endIndex']-_0x263904[_0x7bfed(0x1ad)]))[0x0];}function _0x40d020(_0x4fbfa7){const _0x53f777=_0x1f3a6d;var _0x3b9aa0,_0x431a46;return((_0x3b9aa0=_0x4fbfa7[_0x53f777(0x14b)])==null?void 0x0:_0x3b9aa0[_0x53f777(0x166)])===_0x53f777(0x125)||((_0x431a46=_0x4fbfa7['properties'])==null?void 0x0:_0x431a46[_0x53f777(0x166)])===_0x53f777(0x191);}function _0x2a2c46(_0x6b8d85){const _0x4179bf=_0x1f3a6d;var _0x494dbb,_0x16184e;return((_0x494dbb=_0x6b8d85[_0x4179bf(0x14b)])==null?void 0x0:_0x494dbb[_0x4179bf(0x166)])==='sdtLocked'||((_0x16184e=_0x6b8d85['properties'])==null?void 0x0:_0x16184e[_0x4179bf(0x166)])===_0x4179bf(0x191);}function _0x3f6bb2(_0x58b2a1,_0x1e72da){const _0x51d3f6=_0x1f3a6d;let _0x2ab87e=Number[_0x51d3f6(0x1b0)](_0x58b2a1??'',0x10);return!/^[\da-f]+$/i[_0x51d3f6(0x104)](_0x58b2a1??'')||_0x2ab87e<=0x0||_0x2ab87e>0x10ffff||_0x2ab87e>=0xd800&&_0x2ab87e<=0xdfff?_0x1e72da:String['fromCodePoint'](_0x2ab87e);}function _0x588d51(_0x2c2a0e,_0x1af886=_0x1f3a6d(0x177),_0x3861e6){const _0xbcf414=_0x1f3a6d;let _0x44c42c=new Date(_0x2c2a0e);if(Number[_0xbcf414(0x167)](_0x44c42c[_0xbcf414(0xe9)]()))return _0x2c2a0e[_0xbcf414(0x176)](0x0,0xa);let _0x2c9478=_0x4cd391=>{const _0x463ff4=_0xbcf414;try{return new Intl[(_0x463ff4(0x148))](_0x3861e6||void 0x0,{..._0x4cd391,'timeZone':_0x463ff4(0xef)})[_0x463ff4(0x10f)](_0x44c42c);}catch{return new Intl[(_0x463ff4(0x148))](void 0x0,{..._0x4cd391,'timeZone':_0x463ff4(0xef)})[_0x463ff4(0x10f)](_0x44c42c);}},_0x20de3f=_0x44c42c[_0xbcf414(0x14e)](),_0x339a17=_0x44c42c[_0xbcf414(0xdc)]()+0x1,_0x15a2f8=_0x44c42c['getUTCDate'](),_0x5c2fe5=!_0x3861e6||_0x3861e6['toLowerCase']()[_0xbcf414(0xd6)]('en'),_0x24abe0={'dddd':_0x2c9478({'weekday':'long'}),'ddd':_0x5c2fe5?[_0xbcf414(0x154),_0xbcf414(0x124),_0xbcf414(0xcf),'Wed',_0xbcf414(0x145),_0xbcf414(0x1ab),_0xbcf414(0x1a1)][_0x44c42c[_0xbcf414(0xd9)]()]:_0x2c9478({'weekday':_0xbcf414(0x121)}),'MMMM':_0x2c9478({'month':'long'}),'MMM':_0x5c2fe5?[_0xbcf414(0x16b),_0xbcf414(0xcb),_0xbcf414(0x10b),'Apr',_0xbcf414(0x189),_0xbcf414(0x13a),_0xbcf414(0x1a7),'Aug',_0xbcf414(0x18f),_0xbcf414(0x113),'Nov',_0xbcf414(0x18b)][_0x339a17-0x1]:_0x2c9478({'month':_0xbcf414(0x121)}),'yyyy':String(_0x20de3f)['padStart'](0x4,'0'),'yy':String(_0x20de3f%0x64)[_0xbcf414(0x152)](0x2,'0'),'MM':String(_0x339a17)[_0xbcf414(0x152)](0x2,'0'),'M':String(_0x339a17),'dd':String(_0x15a2f8)[_0xbcf414(0x152)](0x2,'0'),'d':String(_0x15a2f8)};return _0x1af886[_0xbcf414(0x150)](/dddd|ddd|MMMM|MMM|yyyy|yy|MM|M|dd|d/g,_0x2c7faf=>_0x24abe0[_0x2c7faf]);}function _0x25c24e(_0x13038a,_0x26b1db){const _0x19d097=_0x1f3a6d;let _0x6a4553=_0x13038a[_0x19d097(0x14b)];if(_0x26b1db[_0x19d097(0xf8)])return _0x26b1db[_0x19d097(0x187)];if(_0x6a4553[_0x19d097(0xfb)]===_0x19d097(0x10c)){var _0x34de3d,_0x40a8e0,_0x155c29;let _0x132b8a=_0x26b1db[_0x19d097(0x12b)]??!((_0x34de3d=_0x6a4553['checkbox'])!=null&&_0x34de3d[_0x19d097(0x12b)]),_0x439b4d={..._0x6a4553['checkbox'],..._0x26b1db[_0x19d097(0x181)]};return _0x132b8a?_0x3f6bb2((_0x40a8e0=_0x439b4d[_0x19d097(0x173)])==null?void 0x0:_0x40a8e0[_0x19d097(0x187)],'☒'):_0x3f6bb2((_0x155c29=_0x439b4d[_0x19d097(0x171)])==null?void 0x0:_0x155c29[_0x19d097(0x187)],'☐');}if(_0x6a4553[_0x19d097(0xfb)]==='dropDownList'||_0x6a4553[_0x19d097(0xfb)]===_0x19d097(0xd1)){var _0x298c4b;let _0x24d38b=_0x26b1db[_0x19d097(0x187)];return _0x24d38b==null?void 0x0:((_0x298c4b=_0x6a4553[_0x19d097(0x119)])==null||(_0x298c4b=_0x298c4b[_0x19d097(0x1a8)](_0x82e948=>_0x82e948['value']===_0x24d38b))==null?void 0x0:_0x298c4b['displayText'])??_0x24d38b;}if(_0x6a4553[_0x19d097(0xfb)]==='date'){var _0x3849bd,_0x19c726;let _0x23fed6=_0x26b1db[_0x19d097(0x190)]??_0x26b1db[_0x19d097(0x187)];return _0x23fed6==null?void 0x0:_0x588d51(_0x23fed6,(_0x3849bd=_0x6a4553[_0x19d097(0x155)])==null?void 0x0:_0x3849bd[_0x19d097(0x10f)],(_0x19c726=_0x6a4553[_0x19d097(0x155)])==null?void 0x0:_0x19c726[_0x19d097(0x146)]);}return _0x26b1db['value'];}function _0x15ec2b(_0x52d8a9,_0x2c6459){const _0x1d2948=_0x1f3a6d;var _0x24b11f;let _0x5f3fe4=(0x0,_0x44cea5['merge'])({},_0x44cea5[_0x1d2948(0x14c)][_0x1d2948(0x13c)](_0x52d8a9['properties']),_0x44cea5['Tools'][_0x1d2948(0x13c)](_0x2c6459[_0x1d2948(0x14b)]??{}));if((_0x24b11f=_0x2c6459['properties'])!=null&&_0x24b11f[_0x1d2948(0x119)]&&(_0x5f3fe4[_0x1d2948(0x119)]=_0x44cea5[_0x1d2948(0x14c)][_0x1d2948(0x13c)](_0x2c6459[_0x1d2948(0x14b)][_0x1d2948(0x119)])),_0x5f3fe4['kind']==='checkbox'){var _0x145278;_0x5f3fe4['checkbox']={..._0x5f3fe4[_0x1d2948(0x10c)],..._0x44cea5[_0x1d2948(0x14c)]['deepClone'](_0x2c6459[_0x1d2948(0x181)]),'checked':_0x2c6459[_0x1d2948(0x12b)]??!((_0x145278=_0x5f3fe4[_0x1d2948(0x10c)])!=null&&_0x145278[_0x1d2948(0x12b)])};}else{if(_0x5f3fe4[_0x1d2948(0xfb)]===_0x1d2948(0x155)&&!_0x2c6459[_0x1d2948(0xf8)]){var _0x3f9664;_0x5f3fe4[_0x1d2948(0x155)]={..._0x5f3fe4[_0x1d2948(0x155)],'fullDate':_0x2c6459[_0x1d2948(0x190)]??_0x2c6459['value']??((_0x3f9664=_0x5f3fe4['date'])==null?void 0x0:_0x3f9664[_0x1d2948(0x190)])};}}return _0x5f3fe4[_0x1d2948(0xf8)]=_0x2c6459[_0x1d2948(0xf8)]??!0x1,_0x5f3fe4[_0x1d2948(0xfd)]&&={..._0x5f3fe4[_0x1d2948(0xfd)],'dirty':!0x0},_0x5f3fe4;}function _0x375a40(_0x4a042f,_0x3dca12,_0x584705,_0x116b6a,_0x4d1fae,_0x50de76){const _0xda1cfc=_0x1f3a6d;var _0xc07cd1,_0x5cfc63,_0x36c2fc,_0x9e31cc;let _0x349dd6=[..._0x584705]['reduce']((_0x1aa53a,_0x484e36)=>_0x1aa53a+_0x484e36['length'],0x0),_0x4c5daf=(_0xc07cd1=_0x4a042f[_0xda1cfc(0x19b)])==null?void 0x0:_0xc07cd1['find'](_0x3b35a7=>_0x3b35a7['st']<=_0x50de76&&_0x50de76<_0x3b35a7['ed']),_0x41c240=_0x116b6a[_0xda1cfc(0xfb)]===_0xda1cfc(0x10c)?(_0x5cfc63=_0x116b6a[_0xda1cfc(0x10c)])!=null&&_0x5cfc63['checked']?(_0x36c2fc=_0x116b6a['checkbox'][_0xda1cfc(0x173)])==null?void 0x0:_0x36c2fc[_0xda1cfc(0x1b1)]:(_0x9e31cc=_0x116b6a[_0xda1cfc(0x10c)])==null||(_0x9e31cc=_0x9e31cc[_0xda1cfc(0x171)])==null?void 0x0:_0x9e31cc[_0xda1cfc(0x1b1)]:void 0x0,_0x379690=_0x4c5daf!=null&&_0x4c5daf['ts']?_0x44cea5[_0xda1cfc(0x14c)]['deepClone'](_0x4c5daf['ts']):{};return _0x41c240&&!_0x379690['ff']&&(_0x379690['ff']=_0x41c240),{'dataStream':_0x584705,'textRuns':_0x4c5daf!=null&&_0x4c5daf['ts']||_0x41c240?[{'st':0x0,'ed':_0x349dd6,'ts':_0x379690}]:void 0x0,'customRanges':_0x4d1fae?[{'startIndex':0x0,'endIndex':Math[_0xda1cfc(0x141)](0x0,_0x349dd6-0x1),'rangeId':_0x3dca12['rangeId'],'rangeType':_0x44cea5['CustomRangeType'][_0xda1cfc(0x16c)],'wholeEntity':!0x1,'properties':_0x116b6a}]:void 0x0};}function _0x3e97c3(_0x54c0f7,_0x5bc25a){const _0x272cae=_0x1f3a6d;let _0x1aae69=_0x5bc25a[_0x272cae(0x1ad)],_0xfe2831=_0x5bc25a['endIndex']+0x1;for(_0x54c0f7[_0x272cae(0x133)][_0x1aae69]===_0x44cea5[_0x272cae(0x107)][_0x272cae(0x15c)]&&_0x54c0f7[_0x272cae(0x133)][_0xfe2831-0x1]===_0x44cea5['DataStreamTreeTokenType'][_0x272cae(0xf5)]&&(_0x1aae69++,_0xfe2831--);_0x1aae69<_0xfe2831&&_0x56fe85(_0x54c0f7['dataStream'][_0x272cae(0xfa)](_0x1aae69));)_0x1aae69++;for(;_0xfe2831>_0x1aae69&&_0x56fe85(_0x54c0f7[_0x272cae(0x133)][_0x272cae(0xfa)](_0xfe2831-0x1));)_0xfe2831--;return{'startOffset':_0x1aae69,'endOffset':_0xfe2831};}function _0x56fe85(_0x1d56d4){return _0x1d56d4<0x20&&_0x1d56d4!==0x9;}async function _0x17cd3c(_0x25d0a7,_0x2feefe,_0xc1bcaa,_0x2a002f,_0x268cb3,_0x37e023,_0xcfab12){const _0x3ab65f=_0x1f3a6d;let _0x2731d6=_0x483c14(_0xc1bcaa,_0x2a002f,_0x268cb3,_0x37e023);if(!_0x2731d6)return!0x1;let _0x5c1831={'unitId':_0x2feefe[_0x3ab65f(0x1aa)](),'historyAction':_0x2ac7c5,'actions':_0x44cea5['JSONX'][_0x3ab65f(0xea)]()[_0x3ab65f(0xd7)](_0x2731d6[_0x3ab65f(0x16f)],(0x0,_0x44cea5[_0x3ab65f(0x13d)])(_0x2feefe,_0xcfab12)),'textRanges':[{'startOffset':_0x2731d6[_0x3ab65f(0x182)],'endOffset':_0x2731d6[_0x3ab65f(0x182)],'collapsed':!0x0,'segmentId':_0xcfab12}],'debounce':!0x1,'trigger':_0x2ac7c5};return _0x514bc6(_0x2feefe,_0x5c1831),!!await _0x25d0a7[_0x3ab65f(0x1b5)](_0x44cea5['ICommandService'])[_0x3ab65f(0x13b)](_0x2758a2[_0x3ab65f(0x12a)]['id'],_0x5c1831);}function _0x514bc6(_0x405270,_0x18fb40){const _0x4f466d=_0x1f3a6d;let _0x473482=_0x405270[_0x4f466d(0x13e)](),_0x431e30=['',...Object[_0x4f466d(0xe1)](_0x473482[_0x4f466d(0xe4)]??{}),...Object[_0x4f466d(0xe1)](_0x473482[_0x4f466d(0x120)]??{}),...Object[_0x4f466d(0xe1)](_0x473482['notes']??{})]['flatMap'](_0x339f1e=>{const _0x1bf57b=_0x4f466d;var _0x11087d,_0x47758b;let _0x2fad5a=(_0x11087d=_0x405270['getSelfOrHeaderFooterModel'](_0x339f1e))==null?void 0x0:_0x11087d[_0x1bf57b(0x197)]();return(_0x2fad5a==null||(_0x47758b=_0x2fad5a[_0x1bf57b(0x112)])==null?void 0x0:_0x47758b[_0x1bf57b(0x198)](_0x7ab54d=>_0x7ab54d['rangeType']===_0x44cea5[_0x1bf57b(0xdf)][_0x1bf57b(0x16c)]&&!!(0x0,_0x44cea5[_0x1bf57b(0x185)])(_0x7ab54d))[_0x1bf57b(0xff)](_0x25589a=>({'segmentId':_0x339f1e,'range':_0x25589a,'body':_0x2fad5a})))??[];});if(_0x431e30[_0x4f466d(0xee)]<0x2)return;let _0x37951f=!0x1,_0x40139c=new Set(),_0x5c2107=_0x44cea5[_0x4f466d(0x163)][_0x4f466d(0x101)][_0x4f466d(0x162)](_0x18fb40[_0x4f466d(0x16f)]);if(_0x5c2107[_0x4f466d(0x15b)](null,_0x46bb3b=>{const _0x4f9773=_0x4f466d;if(_0x46bb3b['et']!==_0x44cea5[_0x4f9773(0x19f)]['id']||!Array['isArray'](_0x46bb3b['e']))return;let _0x4ef9fd=_0x5c2107[_0x4f9773(0x10a)](),_0x1ff31d=_0x431e30['filter'](({segmentId:_0x46139a})=>{const _0x19f6a6=_0x4f9773;let _0x3834a7=(0x0,_0x44cea5[_0x19f6a6(0x13d)])(_0x405270,_0x46139a);return _0x4ef9fd[_0x19f6a6(0xee)]===_0x3834a7[_0x19f6a6(0xee)]&&_0x3834a7[_0x19f6a6(0x1a0)]((_0x892434,_0x259fa8)=>_0x892434===_0x4ef9fd[_0x259fa8]);}),_0x235a89=0x0;for(let _0x7dd455 of _0x46bb3b['e'])if(_0x7dd455['t']===_0x44cea5['TextXActionType'][_0x4f9773(0x137)]){if(_0x37951f||=_0x1ff31d[_0x4f9773(0x1b4)](({range:_0x51d58e})=>_0x235a89>=_0x51d58e['startIndex']&&_0x235a89<=_0x51d58e[_0x4f9773(0x188)]+0x1),_0x7dd455[_0x4f9773(0x147)]){for(let {range:_0x5d2f53}of _0x1ff31d)_0x5d2f53[_0x4f9773(0x168)]===_0x7dd455[_0x4f9773(0x147)]&&_0x40139c[_0x4f9773(0x139)](_0x5d2f53);}}else _0x7dd455['t']===_0x44cea5[_0x4f9773(0x1a9)][_0x4f9773(0xe7)]&&(_0x37951f||=_0x1ff31d[_0x4f9773(0x1b4)](({range:_0x490003})=>_0x235a89<=_0x490003[_0x4f9773(0x188)]&&_0x235a89+_0x7dd455[_0x4f9773(0x18c)]>_0x490003[_0x4f9773(0x1ad)])),_0x235a89+=_0x7dd455[_0x4f9773(0x18c)];}),!_0x37951f)return;let _0x3c6621=_0x44cea5[_0x4f466d(0xe8)][_0x4f466d(0x127)](_0x44cea5[_0x4f466d(0x14c)][_0x4f466d(0x13c)](_0x473482),_0x18fb40[_0x4f466d(0x16f)]);if(!_0x3c6621)return;let _0x26eee3=_0x1a7e58=>{const _0x56c482=_0x4f466d;var _0x466c17,_0x2118d7,_0x1ffb7c;return _0x1a7e58?((_0x466c17=_0x3c6621['headers'])==null||(_0x466c17=_0x466c17[_0x1a7e58])==null?void 0x0:_0x466c17[_0x56c482(0x114)])??((_0x2118d7=_0x3c6621[_0x56c482(0x120)])==null||(_0x2118d7=_0x2118d7[_0x1a7e58])==null?void 0x0:_0x2118d7[_0x56c482(0x114)])??((_0x1ffb7c=_0x3c6621[_0x56c482(0x17c)])==null||(_0x1ffb7c=_0x1ffb7c[_0x1a7e58])==null?void 0x0:_0x1ffb7c[_0x56c482(0x114)]):_0x3c6621[_0x56c482(0x114)];},_0x49244b=new Map(),_0x4b5f46=new Set();for(let {segmentId:_0x2fb952,range:_0x3579a5,body:_0x45c6c5}of _0x431e30){var _0xca065e;let _0x373900=_0x26eee3(_0x2fb952),_0x497150=_0x373900==null||(_0xca065e=_0x373900[_0x4f466d(0x112)])==null?void 0x0:_0xca065e[_0x4f466d(0x1a8)](_0x5cf7ff=>_0x5cf7ff[_0x4f466d(0x168)]===_0x3579a5[_0x4f466d(0x168)]&&_0x5cf7ff[_0x4f466d(0x14d)]===_0x44cea5[_0x4f466d(0xdf)]['SDT']);if(!_0x497150||!_0x373900||_0x40d020(_0x3579a5)||(0x0,_0x44cea5['getSdtBindingKey'])(_0x497150)!==(0x0,_0x44cea5[_0x4f466d(0x185)])(_0x3579a5))continue;let _0x21a610=(0x0,_0x44cea5[_0x4f466d(0x136)])(_0x373900,_0x497150);if(_0x21a610!==void 0x0&&(_0x40139c[_0x4f466d(0x103)](_0x3579a5)||_0x21a610!==(0x0,_0x44cea5[_0x4f466d(0x136)])(_0x45c6c5,_0x3579a5))){let _0xce6aa7=(0x0,_0x44cea5[_0x4f466d(0x185)])(_0x497150);_0x49244b[_0x4f466d(0x143)](_0xce6aa7,_0x21a610),_0x40139c[_0x4f466d(0x103)](_0x3579a5)&&_0x4b5f46['add'](_0xce6aa7);}}for(let {segmentId:_0x21116f,range:_0x131c3e}of _0x431e30){var _0x81f75a,_0x2e18ea;let _0x28b7ea=_0x26eee3(_0x21116f),_0x38144b=_0x28b7ea==null||(_0x81f75a=_0x28b7ea[_0x4f466d(0x112)])==null?void 0x0:_0x81f75a[_0x4f466d(0x1a8)](_0x328a0e=>_0x328a0e[_0x4f466d(0x168)]===_0x131c3e[_0x4f466d(0x168)]&&_0x328a0e[_0x4f466d(0x14d)]===_0x44cea5[_0x4f466d(0xdf)]['SDT']),_0x2a16cb=_0x38144b&&_0x49244b[_0x4f466d(0x1b5)]((0x0,_0x44cea5['getSdtBindingKey'])(_0x38144b)??''),_0x25ab32=!!(_0x38144b&&_0x4b5f46[_0x4f466d(0x103)]((0x0,_0x44cea5[_0x4f466d(0x185)])(_0x38144b)??''));if(!_0x38144b||!_0x28b7ea||_0x2a16cb===void 0x0||(0x0,_0x44cea5[_0x4f466d(0x136)])(_0x28b7ea,_0x38144b)===_0x2a16cb&&(!_0x25ab32||_0x40139c['has'](_0x131c3e)))continue;let _0x3dd4f1={'rangeId':_0x38144b['rangeId'],'value':_0x2a16cb};_0x2a16cb===''&&[_0x4f466d(0x18a),_0x4f466d(0x1a4),'date',_0x4f466d(0xd1),_0x4f466d(0xfc)][_0x4f466d(0x14f)](_0x38144b[_0x4f466d(0x14b)][_0x4f466d(0xfb)])&&(_0x3dd4f1[_0x4f466d(0xf8)]=!0x0,_0x3dd4f1[_0x4f466d(0x187)]=_0x541ef6(_0x38144b['properties'])),_0x38144b[_0x4f466d(0x14b)][_0x4f466d(0xfb)]===_0x4f466d(0x10c)&&(_0x3dd4f1[_0x4f466d(0x12b)]=_0x2a16cb===_0x4f466d(0x17d)||_0x2a16cb==='1');let _0x39f043=_0x25c24e(_0x38144b,_0x3dd4f1),_0x3b49a4=_0x39f043==null?void 0x0:_0x483c14(_0x28b7ea,_0x38144b,_0x39f043,_0x3dd4f1,_0x25ab32||void 0x0);if(!_0x3b49a4)continue;let _0x427228=_0x44cea5[_0x4f466d(0xe8)][_0x4f466d(0xea)]()[_0x4f466d(0xd7)](_0x3b49a4[_0x4f466d(0x16f)],(0x0,_0x44cea5[_0x4f466d(0x13d)])(_0x405270,_0x21116f));_0x18fb40['actions']=_0x44cea5[_0x4f466d(0xe8)][_0x4f466d(0xf9)](_0x18fb40[_0x4f466d(0x16f)],_0x427228),_0x18fb40['textRanges']=(_0x2e18ea=_0x18fb40[_0x4f466d(0x11b)])==null?void 0x0:_0x2e18ea['map'](_0x74eb6c=>(_0x74eb6c[_0x4f466d(0xde)]??_0x18fb40[_0x4f466d(0xde)]??'')===_0x21116f?{..._0x74eb6c,'startOffset':_0x44cea5['TextX'][_0x4f466d(0x128)](_0x3b49a4[_0x4f466d(0x16f)],_0x74eb6c[_0x4f466d(0x19e)]),'endOffset':_0x44cea5[_0x4f466d(0x19f)][_0x4f466d(0x128)](_0x3b49a4[_0x4f466d(0x16f)],_0x74eb6c[_0x4f466d(0x15e)])}:_0x74eb6c),_0x44cea5[_0x4f466d(0x19f)][_0x4f466d(0x127)](_0x28b7ea,_0x3b49a4[_0x4f466d(0x16f)]);}}function _0x541ef6(_0x3c269e){let {placeholder:_0x3603e8,placeholderDocPart:_0x4722e9}=_0x3c269e;return(_0x3603e8===(_0x4722e9==null?void 0x0:_0x4722e9['name'])?void 0x0:_0x3603e8)??(_0x4722e9==null?void 0x0:_0x4722e9['text'])??'​';}function _0x483c14(_0x2291db,_0x3da30d,_0x31495a,_0x36ee22,_0x2cb18d){const _0x5792a1=_0x1f3a6d;let _0x636629=_0x15ec2b(_0x3da30d,_0x36ee22),_0x12583e=_0x3e97c3(_0x2291db,_0x3da30d),_0xf3986d=_0x12583e['startOffset']>_0x3da30d[_0x5792a1(0x1ad)]||_0x12583e[_0x5792a1(0x15e)]<_0x3da30d[_0x5792a1(0x188)]+0x1,_0x5c84c4=_0x375a40(_0x2291db,_0x3da30d,_0x31495a,_0x636629,!_0xf3986d,_0x12583e[_0x5792a1(0x19e)]),_0x2a5d0e={'startOffset':_0x12583e[_0x5792a1(0x19e)],'endOffset':_0x12583e[_0x5792a1(0x15e)],'collapsed':!0x1},_0x4c5eda=_0x44cea5[_0x5792a1(0xd0)][_0x5792a1(0x19d)][_0x5792a1(0x156)]([_0x2a5d0e],_0x2291db,0x0,_0x5c84c4);if(_0xf3986d){var _0x588f12,_0xc00b5;let _0x2f933f=_0x44cea5[_0x5792a1(0x14c)]['deepClone'](_0x2291db);_0x44cea5['TextX'][_0x5792a1(0x127)](_0x2f933f,_0x4c5eda);let _0x3708a1=(_0x588f12=_0x2f933f[_0x5792a1(0x112)])==null?void 0x0:_0x588f12[_0x5792a1(0x1a8)](_0x23b770=>_0x23b770['rangeType']===_0x44cea5[_0x5792a1(0xdf)][_0x5792a1(0x16c)]&&_0x23b770[_0x5792a1(0x168)]===_0x3da30d[_0x5792a1(0x168)]);if(!_0x3708a1)return;let _0x394e02=_0x3da30d[_0x5792a1(0x1ad)],_0x3a5a98=_0x3da30d[_0x5792a1(0x188)]+_0x5c84c4['dataStream'][_0x5792a1(0xee)]-(_0x12583e[_0x5792a1(0x15e)]-_0x12583e[_0x5792a1(0x19e)]),_0x260b0e=(_0xc00b5=_0x2f933f[_0x5792a1(0x112)])==null?void 0x0:_0xc00b5[_0x5792a1(0x198)](_0x5118ca=>_0x394e02<=_0x5118ca[_0x5792a1(0x1ad)]&&_0x5118ca[_0x5792a1(0x188)]<=_0x3a5a98)[_0x5792a1(0xff)](_0x2f57e1=>({..._0x44cea5[_0x5792a1(0x14c)]['deepClone'](_0x2f57e1),'startIndex':_0x2f57e1[_0x5792a1(0x168)]===_0x3da30d[_0x5792a1(0x168)]?0x0:_0x2f57e1[_0x5792a1(0x1ad)]-_0x394e02,'endIndex':_0x2f57e1['rangeId']===_0x3da30d[_0x5792a1(0x168)]?_0x3a5a98-_0x394e02:_0x2f57e1[_0x5792a1(0x188)]-_0x394e02,'properties':_0x2f57e1['rangeId']===_0x3708a1[_0x5792a1(0x168)]?_0x636629:_0x44cea5[_0x5792a1(0x14c)][_0x5792a1(0x13c)](_0x2f57e1['properties'])})),_0x37d3e2=new _0x44cea5[(_0x5792a1(0x19f))]()[_0x5792a1(0x13f)](_0x394e02)[_0x5792a1(0x13f)](_0x3a5a98-_0x394e02+0x1,{'dataStream':'','customRanges':_0x260b0e});_0x4c5eda=_0x44cea5['TextX'][_0x5792a1(0xf9)](_0x4c5eda,_0x37d3e2[_0x5792a1(0x153)]());}if((_0x2cb18d??[_0x5792a1(0x10c),'date','dropDownList',_0x5792a1(0xd1)][_0x5792a1(0x14f)](_0x636629[_0x5792a1(0xfb)]))&&(_0x4c5eda=_0x4c5eda['map'](_0x2950ed=>_0x2950ed['t']===_0x44cea5[_0x5792a1(0x1a9)][_0x5792a1(0x138)]?_0x2950ed:{..._0x2950ed,'valueRangeId':_0x3da30d['rangeId']})),_0x36ee22[_0x5792a1(0x14b)]){let _0xd82f91=(0x0,_0x44cea5[_0x5792a1(0x10e)])({},_0x44cea5[_0x5792a1(0x14c)][_0x5792a1(0x13c)](_0x3da30d[_0x5792a1(0x14b)]),_0x44cea5[_0x5792a1(0x14c)][_0x5792a1(0x13c)](_0x36ee22[_0x5792a1(0x14b)]));_0x36ee22[_0x5792a1(0x14b)][_0x5792a1(0x119)]&&(_0xd82f91['listItems']=_0x44cea5[_0x5792a1(0x14c)][_0x5792a1(0x13c)](_0x36ee22[_0x5792a1(0x14b)][_0x5792a1(0x119)]));let _0x53c6d7={..._0x3da30d,'endIndex':_0x3da30d[_0x5792a1(0x188)]+_0x5c84c4['dataStream'][_0x5792a1(0xee)]-(_0x12583e['endOffset']-_0x12583e[_0x5792a1(0x19e)])};_0x4c5eda['push'](...new _0x44cea5[(_0x5792a1(0x19f))]()['updateCustomRangeProperties'](_0x53c6d7,_0xd82f91)[_0x5792a1(0x153)]());}return{'actions':_0x4c5eda,'caretOffset':_0x12583e['startOffset']+_0x5c84c4[_0x5792a1(0x133)]['length']};}let _0x5cdcda={'id':_0x2ac7c5,'type':_0x44cea5['CommandType'][_0x1f3a6d(0xca)],async 'handler'(_0x393667,_0x371833){const _0x479042=_0x1f3a6d;var _0x17ee68,_0x2daed5;if(!(_0x371833!=null&&_0x371833[_0x479042(0x168)]))return!0x1;let _0x4db40b=_0x393667[_0x479042(0x1b5)](_0x44cea5['IUniverInstanceService']),_0x1a0ba6=_0x371833[_0x479042(0x15f)]?_0x4db40b[_0x479042(0x123)](_0x371833[_0x479042(0x15f)],_0x44cea5[_0x479042(0xc8)]['UNIVER_DOC']):_0x4db40b[_0x479042(0x1ac)](_0x44cea5[_0x479042(0xc8)][_0x479042(0x109)]),_0x5159b4=_0x1a0ba6==null||(_0x17ee68=_0x1a0ba6[_0x479042(0xc9)](_0x371833[_0x479042(0xde)]))==null?void 0x0:_0x17ee68['getBody'](),_0xfea595=_0x5159b4==null||(_0x2daed5=_0x5159b4[_0x479042(0x112)])==null?void 0x0:_0x2daed5[_0x479042(0x1a8)](_0x19a72f=>_0x19a72f[_0x479042(0x14d)]===_0x44cea5[_0x479042(0xdf)][_0x479042(0x16c)]&&_0x19a72f[_0x479042(0x168)]===_0x371833['rangeId']);if(!_0x1a0ba6||!_0x5159b4||!_0xfea595||_0x40d020(_0xfea595))return!0x1;let _0x5a1c05=_0x25c24e(_0xfea595,_0x371833);return _0x5a1c05!=null&&_0x17cd3c(_0x393667,_0x1a0ba6,_0x5159b4,_0xfea595,_0x5a1c05,_0x371833,_0x371833[_0x479042(0xde)]);}};function _0xf1f2b8(_0x41c90b,_0x5a2f7b){const _0x1d0e5c=_0x1f3a6d;if(_0x5a2f7b<=_0x41c90b['startIndex'])return;let _0x243f30=_0x44cea5[_0x1d0e5c(0x14c)][_0x1d0e5c(0x13c)](_0x41c90b);return _0x243f30[_0x1d0e5c(0x1ad)]=0x0,_0x243f30['endIndex']=_0x5a2f7b-_0x41c90b[_0x1d0e5c(0x1ad)]-0x1,_0x243f30['properties'][_0x1d0e5c(0xf8)]=!0x1,_0x243f30['properties']['dataBinding']&&(_0x243f30[_0x1d0e5c(0x14b)][_0x1d0e5c(0xfd)]['dirty']=!0x0),new _0x44cea5['TextX']()[_0x1d0e5c(0x13f)](_0x41c90b['startIndex'])[_0x1d0e5c(0x13f)](_0x5a2f7b-_0x41c90b[_0x1d0e5c(0x1ad)],{'dataStream':'','customRanges':[_0x243f30]})[_0x1d0e5c(0x153)]();}function _0x150115(_0x21c178,_0x1937ed,_0x6e0828,_0x143064=!0x1){const _0xabc2e2=_0x1f3a6d;var _0x1925d4;let _0x272a70=_0x6e0828?(0x0,_0x44cea5['merge'])({},_0x44cea5[_0xabc2e2(0x14c)][_0xabc2e2(0x13c)](_0x1937ed[_0xabc2e2(0x14b)]),_0x44cea5[_0xabc2e2(0x14c)][_0xabc2e2(0x13c)](_0x6e0828)):_0x1937ed[_0xabc2e2(0x14b)];_0x6e0828!=null&&_0x6e0828[_0xabc2e2(0x119)]&&(_0x272a70[_0xabc2e2(0x119)]=_0x44cea5['Tools'][_0xabc2e2(0x13c)](_0x6e0828[_0xabc2e2(0x119)]));let _0x168e27=new _0x44cea5[(_0xabc2e2(0x19f))]();return _0x143064&&_0x21c178[_0xabc2e2(0x133)][_0x1937ed[_0xabc2e2(0x1ad)]]===_0x44cea5['DataStreamTreeTokenType']['CUSTOM_RANGE_START']&&_0x21c178[_0xabc2e2(0x133)][_0x1937ed[_0xabc2e2(0x188)]]===_0x44cea5['DataStreamTreeTokenType']['CUSTOM_RANGE_END']&&!((_0x1925d4=_0x21c178[_0xabc2e2(0x112)])!=null&&_0x1925d4[_0xabc2e2(0x1b4)](_0x2fbc9d=>_0x2fbc9d[_0xabc2e2(0x168)]!==_0x1937ed[_0xabc2e2(0x168)]&&_0x2fbc9d[_0xabc2e2(0x1ad)]===_0x1937ed[_0xabc2e2(0x1ad)]&&_0x2fbc9d[_0xabc2e2(0x188)]===_0x1937ed[_0xabc2e2(0x188)]))&&_0x168e27[_0xabc2e2(0x13f)](_0x1937ed[_0xabc2e2(0x1ad)])[_0xabc2e2(0x156)](0x1)[_0xabc2e2(0x13f)](_0x1937ed[_0xabc2e2(0x188)]-_0x1937ed[_0xabc2e2(0x1ad)]-0x1)[_0xabc2e2(0x156)](0x1),_0x143064?_0x168e27[_0xabc2e2(0x180)]([{'rangeId':_0x1937ed[_0xabc2e2(0x168)],'range':null}]):_0x168e27[_0xabc2e2(0x199)](_0x1937ed,_0x272a70),{'actions':_0x168e27[_0xabc2e2(0x153)](),'caretOffset':_0x1937ed[_0xabc2e2(0x1ad)]};}async function _0x362efe(_0x1945a4,_0x2df55d,_0x4232d1){const _0x20584d=_0x1f3a6d;var _0x3ea83e,_0x2d8794;let _0x1c3082=_0x1945a4[_0x20584d(0x1b5)](_0x44cea5[_0x20584d(0xe0)]),_0xb3bfaa=_0x2df55d[_0x20584d(0x15f)]?_0x1c3082['getUnit'](_0x2df55d['unitId'],_0x44cea5['UniverInstanceType'][_0x20584d(0x109)]):_0x1c3082[_0x20584d(0x1ac)](_0x44cea5[_0x20584d(0xc8)]['UNIVER_DOC']),_0x1f44dd=_0xb3bfaa==null||(_0x3ea83e=_0xb3bfaa[_0x20584d(0xc9)](_0x2df55d[_0x20584d(0xde)]))==null?void 0x0:_0x3ea83e[_0x20584d(0x197)](),_0x40ece0=_0x1f44dd==null||(_0x2d8794=_0x1f44dd['customRanges'])==null?void 0x0:_0x2d8794['find'](_0x50973a=>_0x50973a[_0x20584d(0x14d)]===_0x44cea5[_0x20584d(0xdf)][_0x20584d(0x16c)]&&_0x50973a[_0x20584d(0x168)]===_0x2df55d[_0x20584d(0x168)]);if(!_0xb3bfaa||!_0x1f44dd||!_0x40ece0||_0x4232d1&&_0x2a2c46(_0x40ece0))return!0x1;let _0x4347bc=_0x150115(_0x1f44dd,_0x40ece0,_0x20584d(0x14b)in _0x2df55d?_0x2df55d[_0x20584d(0x14b)]:void 0x0,_0x4232d1);return!_0x4347bc[_0x20584d(0x16f)][_0x20584d(0xee)]||!!await _0x1945a4[_0x20584d(0x1b5)](_0x44cea5[_0x20584d(0x18e)])['executeCommand'](_0x2758a2[_0x20584d(0x12a)]['id'],{'unitId':_0xb3bfaa[_0x20584d(0x1aa)](),'historyAction':_0x4232d1?_0x5bebc1['id']:_0x199103['id'],'actions':_0x44cea5[_0x20584d(0xe8)]['getInstance']()[_0x20584d(0xd7)](_0x4347bc[_0x20584d(0x16f)],(0x0,_0x44cea5[_0x20584d(0x13d)])(_0xb3bfaa,_0x2df55d[_0x20584d(0xde)])),'textRanges':[{'startOffset':_0x4347bc['caretOffset'],'endOffset':_0x4347bc[_0x20584d(0x182)],'collapsed':!0x0,'segmentId':_0x2df55d[_0x20584d(0xde)]}],'debounce':!0x1,'trigger':_0x4232d1?_0x5bebc1['id']:_0x199103['id']});}let _0x199103={'id':'doc.command.update-sdt-properties','type':_0x44cea5['CommandType']['COMMAND'],'handler':(_0x5380d3,_0x3d25cb)=>_0x3d25cb!=null&&_0x3d25cb[_0x1f3a6d(0x168)]&&_0x3d25cb['properties']?_0x362efe(_0x5380d3,_0x3d25cb,!0x1):!0x1},_0x5bebc1={'id':_0x1f3a6d(0xdd),'type':_0x44cea5[_0x1f3a6d(0xcd)][_0x1f3a6d(0xca)],'handler':(_0x4a65a5,_0x1133fe)=>_0x1133fe!=null&&_0x1133fe[_0x1f3a6d(0x168)]?_0x362efe(_0x4a65a5,_0x1133fe,!0x0):!0x1};var _0x478da3=_0x1f3a6d(0x149),_0x348bc6=_0x1f3a6d(0x160);let _0xecd699={};function _0x21103d(_0x2fa974,_0x2fbe38){return function(_0x53c876,_0x5f0253){_0x2fbe38(_0x53c876,_0x5f0253,_0x2fa974);};}function _0x250914(_0x51aa2b,_0x54c7c1,_0x49be3b,_0x186bb2){const _0x35a6da=_0x1f3a6d;var _0x15e4b3=arguments[_0x35a6da(0xee)],_0x1ae4b5=_0x15e4b3<0x3?_0x54c7c1:_0x186bb2===null?_0x186bb2=Object['getOwnPropertyDescriptor'](_0x54c7c1,_0x49be3b):_0x186bb2,_0x52fdcd;if(typeof Reflect==_0x35a6da(0xd5)&&typeof Reflect[_0x35a6da(0x172)]==_0x35a6da(0x11a))_0x1ae4b5=Reflect[_0x35a6da(0x172)](_0x51aa2b,_0x54c7c1,_0x49be3b,_0x186bb2);else{for(var _0x23afd1=_0x51aa2b[_0x35a6da(0xee)]-0x1;_0x23afd1>=0x0;_0x23afd1--)(_0x52fdcd=_0x51aa2b[_0x23afd1])&&(_0x1ae4b5=(_0x15e4b3<0x3?_0x52fdcd(_0x1ae4b5):_0x15e4b3>0x3?_0x52fdcd(_0x54c7c1,_0x49be3b,_0x1ae4b5):_0x52fdcd(_0x54c7c1,_0x49be3b))||_0x1ae4b5);}return _0x15e4b3>0x3&&_0x1ae4b5&&Object[_0x35a6da(0xf7)](_0x54c7c1,_0x49be3b,_0x1ae4b5),_0x1ae4b5;}function _0x39f3a2(_0x555948){'@babel/helpers - typeof';const _0x51882f=_0x1f3a6d;return _0x39f3a2=typeof Symbol==_0x51882f(0x11a)&&typeof Symbol['iterator']==_0x51882f(0x129)?function(_0x1e2f3e){return typeof _0x1e2f3e;}:function(_0x3f917d){const _0x52854e=_0x51882f;return _0x3f917d&&typeof Symbol==_0x52854e(0x11a)&&_0x3f917d[_0x52854e(0xce)]===Symbol&&_0x3f917d!==Symbol[_0x52854e(0x194)]?'symbol':typeof _0x3f917d;},_0x39f3a2(_0x555948);}function _0x2f7dc9(_0x30b8e7,_0x344dbf){const _0x3352dc=_0x1f3a6d;if(_0x39f3a2(_0x30b8e7)!=_0x3352dc(0xd5)||!_0x30b8e7)return _0x30b8e7;var _0x221bb5=_0x30b8e7[Symbol[_0x3352dc(0x132)]];if(_0x221bb5!==void 0x0){var _0x47a76a=_0x221bb5[_0x3352dc(0x110)](_0x30b8e7,_0x344dbf||_0x3352dc(0x16d));if(_0x39f3a2(_0x47a76a)!=_0x3352dc(0xd5))return _0x47a76a;throw TypeError(_0x3352dc(0x135));}return(_0x344dbf==='string'?String:Number)(_0x30b8e7);}function _0x382c7f(_0x46cef3){const _0x42af3c=_0x1f3a6d;var _0x1d7ec4=_0x2f7dc9(_0x46cef3,_0x42af3c(0xf2));return _0x39f3a2(_0x1d7ec4)=='symbol'?_0x1d7ec4:_0x1d7ec4+'';}function _0x2f4d02(_0x5cbdb8,_0x128fb1,_0x3e112f){const _0xf533fe=_0x1f3a6d;return(_0x128fb1=_0x382c7f(_0x128fb1))in _0x5cbdb8?Object[_0xf533fe(0xf7)](_0x5cbdb8,_0x128fb1,{'value':_0x3e112f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cbdb8[_0x128fb1]=_0x3e112f,_0x5cbdb8;}let _0x4a7a0f=class extends _0x44cea5[_0x1f3a6d(0x183)]{constructor(_0x5a78fa=_0xecd699,_0x590941,_0x2da67e,_0x1d8d02){const _0x3660d8=_0x1f3a6d;super(),this[_0x3660d8(0x100)]=_0x5a78fa,this[_0x3660d8(0x14a)]=_0x590941,this[_0x3660d8(0x142)]=_0x2da67e,this['_commandService']=_0x1d8d02;let {..._0x1f5e65}=(0x0,_0x44cea5[_0x3660d8(0x10e)])({},_0xecd699,this[_0x3660d8(0x100)]);this[_0x3660d8(0x142)][_0x3660d8(0x122)](_0x3660d8(0x11f),_0x1f5e65);}[_0x1f3a6d(0x178)](){const _0x5535d2=_0x1f3a6d;this[_0x5535d2(0xec)](this[_0x5535d2(0x111)][_0x5535d2(0xed)](_0x5cdcda)),this[_0x5535d2(0xec)](this[_0x5535d2(0x111)]['registerCommand'](_0x199103)),this[_0x5535d2(0xec)](this[_0x5535d2(0x111)][_0x5535d2(0xed)](_0x5bebc1)),this[_0x5535d2(0xec)](this[_0x5535d2(0x111)][_0x5535d2(0xed)](_0x13d6f5)),this[_0x5535d2(0xec)](this[_0x5535d2(0x111)][_0x5535d2(0xed)](_0xf651f3));let _0x319bf5=new Map();this[_0x5535d2(0xec)]({'dispose':()=>_0x319bf5[_0x5535d2(0xd4)]()}),this[_0x5535d2(0xec)](this[_0x5535d2(0x14a)]['get'](_0x44cea5['IResourceManagerService'])[_0x5535d2(0x12d)]({'pluginName':_0x5535d2(0x15a),'businesses':[_0x44cea5['UniverInstanceType']['UNIVER_DOC']],'parseJson':_0x25161a=>_0x25161a,'onLoad':(_0x2482e8,_0x36ced2)=>{_0x319bf5['set'](_0x2482e8,_0x36ced2);},'onUnLoad':_0x5b7394=>{_0x319bf5['delete'](_0x5b7394);},'toJson':_0x5ac754=>_0x319bf5[_0x5535d2(0x1b5)](_0x5ac754)??''}));}};_0x2f4d02(_0x4a7a0f,_0x1f3a6d(0xf1),_0x1f3a6d(0x117)),_0x2f4d02(_0x4a7a0f,_0x1f3a6d(0x19a),_0x478da3),_0x2f4d02(_0x4a7a0f,_0x1f3a6d(0x17a),_0x348bc6),_0x2f4d02(_0x4a7a0f,'type',_0x44cea5['UniverInstanceType']['UNIVER_DOC']),_0x4a7a0f=_0x250914([(0x0,_0x44cea5['DependentOn'])(_0xca122e[_0x1f3a6d(0x164)],_0x2758a2[_0x1f3a6d(0x19c)]),_0x21103d(0x1,(0x0,_0x44cea5[_0x1f3a6d(0xda)])(_0x44cea5[_0x1f3a6d(0x115)])),_0x21103d(0x2,_0x44cea5[_0x1f3a6d(0xf3)]),_0x21103d(0x3,_0x44cea5[_0x1f3a6d(0x18e)])],_0x4a7a0f),_0x5c68ef[_0x1f3a6d(0x116)]=_0xf651f3,_0x5c68ef['DuplicateRepeatingSdtItemCommand']=_0x13d6f5,_0x5c68ef[_0x1f3a6d(0x1a5)]=_0x5bebc1,Object[_0x1f3a6d(0xf7)](_0x5c68ef,'UniverDocsSdtPlugin',{'enumerable':!0x0,'get':function(){return _0x4a7a0f;}}),_0x5c68ef[_0x1f3a6d(0x186)]=_0x199103,_0x5c68ef[_0x1f3a6d(0xf6)]=_0x5cdcda,_0x5c68ef[_0x1f3a6d(0x1b3)]=_0xd68cdd,_0x5c68ef[_0x1f3a6d(0x11e)]=_0x1c94cd,_0x5c68ef['buildRestoredSdtMetadata']=_0xf1f2b8,_0x5c68ef['buildSdtMetadataUpdate']=_0x150115,_0x5c68ef[_0x1f3a6d(0x175)]=_0x483c14,_0x5c68ef['findSdtAtOffset']=_0x2a8dff,_0x5c68ef['generateSdtOoxmlId']=_0x1b3405,_0x5c68ef[_0x1f3a6d(0xd3)]=_0x25c24e,_0x5c68ef[_0x1f3a6d(0xfe)]=_0x541ef6,_0x5c68ef[_0x1f3a6d(0x11c)]=_0x3e97c3,_0x5c68ef[_0x1f3a6d(0x193)]=_0x40d020,_0x5c68ef[_0x1f3a6d(0x106)]=_0x2a2c46,_0x5c68ef[_0x1f3a6d(0x165)]=_0x514bc6;}));function _0x42d4(){const _0x27a5ad=['has','test','generateRandomId','isSdtWrapperLocked','DataStreamTreeTokenType','152AQYEBK','UNIVER_DOC','getPath','Mar','checkbox','insert','merge','format','call','_commandService','customRanges','Oct','body','Injector','DeleteRepeatingSdtItemCommand','DOCS_SDT_PLUGIN','paragraphs','listItems','function','textRanges','getSdtVisibleContentRange','getBodySliceForTextXAction','buildDuplicateRepeatingItemUpdate','docs-sdt.config','footers','short','setConfig','getUnit','Mon','contentLocked','UniverDocs','apply','transformPosition','symbol','RichTextEditingMutation','checked','repeatingSection','registerPluginResource','775287DrEUzp','409486tHOegm','getTableRangeById','172ZWybom','toPrimitive','dataStream','@univerjs-pro/license','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSdtBindingValue','INSERT','RETAIN','add','Jun','executeCommand','deepClone','getRichTextEditPath','getSnapshot','retain','repeatingSectionItem','max','_configService','set','16705JnuXvK','Thu','locale','valueRangeId','DateTimeFormat','@univerjs-pro/docs-sdt','_injector','properties','Tools','rangeType','getUTCFullYear','includes','replace','5914SjkvfM','padStart','serialize','Sun','date','delete','toStringTag','@univerjs-pro/docs-table','table','DOC_SDT_CUSTOM_XML_PLUGIN','traverse','CUSTOM_RANGE_START','UniverProDocsTable','endOffset','unitId','1.3.1','cell','readCursor','JSON1','UniverLicensePlugin','synchronizeSdtBindings','lock','isNaN','rangeId','doc.command.delete-repeating-sdt-item','401LfqOXT','Jan','SDT','default','row','actions','3134337FfSlAI','uncheckedState','decorate','checkedState','placement','buildSdtValueUpdate','slice','yyyy-MM-dd','onStarting','Module','version','amd','notes','true','min','9731590uIIREM','updateCustomRanges','checkboxStyle','caretOffset','Plugin','copy','getSdtBindingKey','UpdateSdtPropertiesCommand','value','endIndex','May','text','Dec','len','deleteTable','ICommandService','Sep','fullDate','sdtContentLocked','forEach','isSdtContentLocked','prototype','SliceBodyType','doNotAllowInsertDelete','getBody','filter','updateCustomRangeProperties','packageName','textRuns','UniverDocsPlugin','selection','startOffset','TextX','every','Sat','ooxmlId','UniverCore','richText','RemoveSdtCommand','sort','Jul','find','TextXActionType','getUnitId','Fri','getCurrentUnitOfType','startIndex','@univerjs/docs','doc.command.update-sdt-value','parseInt','font','floor','buildDeleteRepeatingItemUpdate','some','get','UniverInstanceType','getSelfOrHeaderFooterModel','COMMAND','Feb','tables','CommandType','constructor','Tue','BuildTextUtils','comboBox','random','getSdtDisplayValue','clear','object','startsWith','editOp','1786902vOmULh','getUTCDay','Inject','UniverProLicense','getUTCMonth','doc.command.remove-sdt','segmentId','CustomRangeType','IUniverInstanceService','keys','findIndex','exports','headers','buildDeleteTableRowsMutationActions','paragraphId','DELETE','JSONX','getTime','getInstance','tableId','disposeWithMe','registerCommand','length','UTC','UniverProDocsSdt','pluginName','string','IConfigService','charAt','CUSTOM_RANGE_END','UpdateSdtValueCommand','defineProperty','showingPlaceholder','compose','charCodeAt','kind','dropDownList','dataBinding','getSdtPlaceholderText','map','_config','type','@univerjs/core'];_0x42d4=function(){return _0x27a5ad;};return _0x42d4();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-sdt",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "private": false,
5
5
  "description": "Structured document tag support for Univer Pro Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -32,13 +32,13 @@
32
32
  "lib"
33
33
  ],
34
34
  "dependencies": {
35
- "@univerjs-pro/docs-table": "1.2.0",
36
- "@univerjs-pro/license": "1.2.0",
37
- "@univerjs/core": "1.2.0",
38
- "@univerjs/docs": "1.2.0"
35
+ "@univerjs-pro/docs-table": "1.3.1",
36
+ "@univerjs-pro/license": "1.3.1",
37
+ "@univerjs/core": "1.3.1",
38
+ "@univerjs/docs": "1.3.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@univerjs-infra/shared": "1.2.0",
41
+ "@univerjs-infra/shared": "1.3.1",
42
42
  "rxjs": "7.8.2",
43
43
  "typescript": "^6.0.3",
44
44
  "vitest": "^5.0.4"