@univerjs-pro/docs-reference 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x33d7fe=_0x20b6;(function(_0x22860c,_0x269e9e){const _0x30fe5d=_0x20b6,_0x1ffe5f=_0x22860c();while(!![]){try{const _0x589338=-parseInt(_0x30fe5d(0x1df))/0x1*(parseInt(_0x30fe5d(0x209))/0x2)+parseInt(_0x30fe5d(0x207))/0x3+-parseInt(_0x30fe5d(0x1f8))/0x4*(parseInt(_0x30fe5d(0x1d6))/0x5)+parseInt(_0x30fe5d(0x1ea))/0x6+parseInt(_0x30fe5d(0x1f5))/0x7*(parseInt(_0x30fe5d(0x1fc))/0x8)+parseInt(_0x30fe5d(0x1d9))/0x9*(parseInt(_0x30fe5d(0x1e9))/0xa)+-parseInt(_0x30fe5d(0x1fb))/0xb;if(_0x589338===_0x269e9e)break;else _0x1ffe5f['push'](_0x1ffe5f['shift']());}catch(_0x117678){_0x1ffe5f['push'](_0x1ffe5f['shift']());}}}(_0x13e6,0x92a14));function _0x20b6(_0x31d441,_0x3a638b){_0x31d441=_0x31d441-0x1d6;const _0x13e625=_0x13e6();let _0x20b667=_0x13e625[_0x31d441];return _0x20b667;}let e=require('@univerjs-pro/docs-reference'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function _0x13e6(){const _0x1fc1b9=['body','get','getEndnotes','7gCjOvU','FDocument','flatMap','DeleteDocumentFootnoteCommand','startIndex','properties','setFootnoteSettings','sort','customRanges','insertEndnote','175810dGJYaa','6500190DTQRMG','noteSettings','ICommandService','endnote','deepClone','notes','DeleteDocumentEndnoteCommand','getEndnoteSettings','getFootnotes','generateRandomId','string','6074747VYkZMq','sectionBreaks','find','628dhzNUE','_injector','SetDocumentEndnoteSettingsCommand','20338307ltDsaT','8hlpLNx','sectionId','insertFootnote','rangeType','InsertDocumentFootnoteCommand','InsertDocumentEndnoteCommand','syncExecuteCommand','deleteFootnote','extend','getSnapshot','FOOTNOTE','3108978eGBpXL','deleteEndnote','278878RCQdZx','filter','noteProperties','3405OpPohk','getDocumentDataModel','Tools','279XnEXmv','footnote','noteId'];_0x13e6=function(){return _0x1fc1b9;};return _0x13e6();}var r=class extends n[_0x33d7fe(0x1e0)]{[_0x33d7fe(0x1fe)](_0x2ed8b6,_0x5410bd={}){const _0x1382af=_0x33d7fe;let _0x28c0a0=(0x0,t[_0x1382af(0x1f3)])(0xc);return this[_0x1382af(0x1f9)][_0x1382af(0x1dd)](t[_0x1382af(0x1ec)])['syncExecuteCommand'](e[_0x1382af(0x200)]['id'],{..._0x5410bd,'unitId':this['id'],'offset':_0x2ed8b6,'noteId':_0x28c0a0})?_0x28c0a0:null;}[_0x33d7fe(0x1f2)](){const _0xbbd29=_0x33d7fe;var _0x32ac31;let _0x3e77ae=this[_0xbbd29(0x1d7)]()[_0xbbd29(0x205)]();return(((_0x32ac31=_0x3e77ae[_0xbbd29(0x1dc)])==null?void 0x0:_0x32ac31[_0xbbd29(0x1e7)])??[])[_0xbbd29(0x20a)](_0x247dd7=>_0x247dd7[_0xbbd29(0x1ff)]===t['CustomRangeType'][_0xbbd29(0x206)])[_0xbbd29(0x1e6)]((_0xbc8e65,_0x806394)=>_0xbc8e65[_0xbbd29(0x1e3)]-_0x806394['startIndex'])[_0xbbd29(0x1e1)](_0x48cfb0=>{const _0x4f1261=_0xbbd29;var _0x2e8b2c,_0x35fe1a;let _0x43ca7b=(_0x2e8b2c=_0x48cfb0[_0x4f1261(0x1e4)])==null?void 0x0:_0x2e8b2c[_0x4f1261(0x1db)],_0x710efc=typeof _0x43ca7b==_0x4f1261(0x1f4)?(_0x35fe1a=_0x3e77ae[_0x4f1261(0x1ef)])==null?void 0x0:_0x35fe1a[_0x43ca7b]:void 0x0;return _0x710efc?[t[_0x4f1261(0x1d8)][_0x4f1261(0x1ee)](_0x710efc)]:[];});}[_0x33d7fe(0x203)](_0x391df8){const _0x374f0a=_0x33d7fe;return this[_0x374f0a(0x1f9)][_0x374f0a(0x1dd)](t['ICommandService'])[_0x374f0a(0x202)](e[_0x374f0a(0x1e2)]['id'],{'unitId':this['id'],'noteId':_0x391df8});}['getFootnoteSettings'](_0x18aabf){const _0x3d142d=_0x33d7fe;var _0x228974,_0x19c606;let _0x1f1a76=this[_0x3d142d(0x1d7)]()[_0x3d142d(0x205)](),_0x1fa7b6=_0x18aabf==null?(_0x228974=_0x1f1a76['noteSettings'])==null?void 0x0:_0x228974[_0x3d142d(0x1da)]:(_0x19c606=_0x1f1a76[_0x3d142d(0x1dc)])==null||(_0x19c606=_0x19c606['sectionBreaks'])==null||(_0x19c606=_0x19c606['find'](_0xa3a9b5=>_0xa3a9b5['sectionId']===_0x18aabf))==null||(_0x19c606=_0x19c606[_0x3d142d(0x20b)])==null?void 0x0:_0x19c606['footnote'];return _0x1fa7b6==null?void 0x0:t['Tools']['deepClone'](_0x1fa7b6);}[_0x33d7fe(0x1e5)](_0x19aa4d,_0x9f173e){const _0xef3a10=_0x33d7fe;return this[_0xef3a10(0x1f9)][_0xef3a10(0x1dd)](t[_0xef3a10(0x1ec)])[_0xef3a10(0x202)](e['SetDocumentFootnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x19aa4d,'sectionId':_0x9f173e});}[_0x33d7fe(0x1e8)](_0x56d3fd,_0x836c3={}){const _0x243005=_0x33d7fe;let _0x4b4ae0=(0x0,t['generateRandomId'])(0xc);return this['_injector'][_0x243005(0x1dd)](t[_0x243005(0x1ec)])['syncExecuteCommand'](e[_0x243005(0x201)]['id'],{..._0x836c3,'unitId':this['id'],'offset':_0x56d3fd,'noteId':_0x4b4ae0})?_0x4b4ae0:null;}[_0x33d7fe(0x1de)](){const _0x7c6dec=_0x33d7fe;var _0x4bdb30;let _0x1f8575=this[_0x7c6dec(0x1d7)]()['getSnapshot']();return(((_0x4bdb30=_0x1f8575[_0x7c6dec(0x1dc)])==null?void 0x0:_0x4bdb30[_0x7c6dec(0x1e7)])??[])[_0x7c6dec(0x20a)](_0x1ed74b=>_0x1ed74b['rangeType']===t['CustomRangeType']['ENDNOTE'])[_0x7c6dec(0x1e6)]((_0x20d6d8,_0x5d5dea)=>_0x20d6d8[_0x7c6dec(0x1e3)]-_0x5d5dea[_0x7c6dec(0x1e3)])[_0x7c6dec(0x1e1)](_0x48e0a4=>{const _0x3beaf4=_0x7c6dec;var _0x375664,_0x2f8a68;let _0x434a2a=(_0x375664=_0x48e0a4['properties'])==null?void 0x0:_0x375664[_0x3beaf4(0x1db)],_0x387ea5=typeof _0x434a2a=='string'?(_0x2f8a68=_0x1f8575[_0x3beaf4(0x1ef)])==null?void 0x0:_0x2f8a68[_0x434a2a]:void 0x0;return _0x387ea5?[t['Tools'][_0x3beaf4(0x1ee)](_0x387ea5)]:[];});}[_0x33d7fe(0x208)](_0x4c27e9){const _0x684b77=_0x33d7fe;return this['_injector']['get'](t[_0x684b77(0x1ec)])[_0x684b77(0x202)](e[_0x684b77(0x1f0)]['id'],{'unitId':this['id'],'noteId':_0x4c27e9});}[_0x33d7fe(0x1f1)](_0x28ade0){const _0x2a397b=_0x33d7fe;var _0x51900d,_0x46537b;let _0x529f7b=this[_0x2a397b(0x1d7)]()[_0x2a397b(0x205)](),_0x2ee0df=_0x28ade0==null?(_0x51900d=_0x529f7b[_0x2a397b(0x1eb)])==null?void 0x0:_0x51900d[_0x2a397b(0x1ed)]:(_0x46537b=_0x529f7b[_0x2a397b(0x1dc)])==null||(_0x46537b=_0x46537b[_0x2a397b(0x1f6)])==null||(_0x46537b=_0x46537b[_0x2a397b(0x1f7)](_0x1003f9=>_0x1003f9[_0x2a397b(0x1fd)]===_0x28ade0))==null||(_0x46537b=_0x46537b[_0x2a397b(0x20b)])==null?void 0x0:_0x46537b['endnote'];return _0x2ee0df==null?void 0x0:t['Tools'][_0x2a397b(0x1ee)](_0x2ee0df);}['setEndnoteSettings'](_0x574946,_0x55683c){const _0x4e0429=_0x33d7fe;return this[_0x4e0429(0x1f9)]['get'](t['ICommandService'])[_0x4e0429(0x202)](e[_0x4e0429(0x1fa)]['id'],{'unitId':this['id'],'settings':_0x574946,'sectionId':_0x55683c});}};n[_0x33d7fe(0x1e0)][_0x33d7fe(0x204)](r);
1
+ const _0x27adaf=_0x1e61;function _0x41e4(){const _0x4dbe38=['467694hKqdLD','303626kcSzXk','DeleteDocumentFootnoteCommand','noteId','sectionId','ENDNOTE','FDocument','518768JDHccj','endnote','Tools','DeleteDocumentEndnoteCommand','CustomRangeType','find','_injector','SetDocumentEndnoteSettingsCommand','setFootnoteSettings','rangeType','notes','insertEndnote','9SoGORr','2184885daWOgI','properties','3236490NwhnEe','noteSettings','sort','ICommandService','syncExecuteCommand','deleteEndnote','filter','string','footnote','deepClone','noteProperties','getDocumentDataModel','getFootnotes','18389240XbXLKo','body','extend','getEndnoteSettings','22erfieF','20yRhXHO','startIndex','119tUcFtC','get','getSnapshot','customRanges','FOOTNOTE','InsertDocumentEndnoteCommand','flatMap','deleteFootnote','1384974QTesvU','generateRandomId'];_0x41e4=function(){return _0x4dbe38;};return _0x41e4();}(function(_0x4fabf3,_0x4c76d9){const _0x183ccb=_0x1e61,_0x3bfbe9=_0x4fabf3();while(!![]){try{const _0x3aaf28=-parseInt(_0x183ccb(0xee))/0x1*(parseInt(_0x183ccb(0xdc))/0x2)+-parseInt(_0x183ccb(0x10f))/0x3*(-parseInt(_0x183ccb(0x103))/0x4)+-parseInt(_0x183ccb(0xf1))/0x5+-parseInt(_0x183ccb(0x10d))/0x6+-parseInt(_0x183ccb(0x105))/0x7*(parseInt(_0x183ccb(0xe2))/0x8)+-parseInt(_0x183ccb(0xef))/0x9+parseInt(_0x183ccb(0xfe))/0xa*(parseInt(_0x183ccb(0x102))/0xb);if(_0x3aaf28===_0x4c76d9)break;else _0x3bfbe9['push'](_0x3bfbe9['shift']());}catch(_0x5951be){_0x3bfbe9['push'](_0x3bfbe9['shift']());}}}(_0x41e4,0xd3da3));let e=require('@univerjs-pro/docs-reference'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function _0x1e61(_0x1e37ca,_0x4108fc){_0x1e37ca=_0x1e37ca-0xdc;const _0x41e498=_0x41e4();let _0x1e612d=_0x41e498[_0x1e37ca];return _0x1e612d;}var r=class extends n[_0x27adaf(0xe1)]{['insertFootnote'](_0x33dc68,_0x5cec35={}){const _0xe38d7=_0x27adaf;let _0x1c5397=(0x0,t[_0xe38d7(0x10e)])(0xc);return this[_0xe38d7(0xe8)][_0xe38d7(0x106)](t[_0xe38d7(0xf4)])[_0xe38d7(0xf5)](e['InsertDocumentFootnoteCommand']['id'],{..._0x5cec35,'unitId':this['id'],'offset':_0x33dc68,'noteId':_0x1c5397})?_0x1c5397:null;}[_0x27adaf(0xfd)](){const _0x3a9bfa=_0x27adaf;var _0x13fe0b;let _0x1b8192=this[_0x3a9bfa(0xfc)]()['getSnapshot']();return(((_0x13fe0b=_0x1b8192['body'])==null?void 0x0:_0x13fe0b[_0x3a9bfa(0x108)])??[])[_0x3a9bfa(0xf7)](_0x526f88=>_0x526f88[_0x3a9bfa(0xeb)]===t[_0x3a9bfa(0xe6)][_0x3a9bfa(0x109)])[_0x3a9bfa(0xf3)]((_0x5f7543,_0x1b4979)=>_0x5f7543[_0x3a9bfa(0x104)]-_0x1b4979['startIndex'])['flatMap'](_0x327872=>{const _0x2ddbfd=_0x3a9bfa;var _0x36776c,_0x5f314a;let _0x577640=(_0x36776c=_0x327872[_0x2ddbfd(0xf0)])==null?void 0x0:_0x36776c[_0x2ddbfd(0xde)],_0x126704=typeof _0x577640==_0x2ddbfd(0xf8)?(_0x5f314a=_0x1b8192[_0x2ddbfd(0xec)])==null?void 0x0:_0x5f314a[_0x577640]:void 0x0;return _0x126704?[t[_0x2ddbfd(0xe4)][_0x2ddbfd(0xfa)](_0x126704)]:[];});}[_0x27adaf(0x10c)](_0x56af0d){const _0x96841b=_0x27adaf;return this[_0x96841b(0xe8)][_0x96841b(0x106)](t[_0x96841b(0xf4)])[_0x96841b(0xf5)](e[_0x96841b(0xdd)]['id'],{'unitId':this['id'],'noteId':_0x56af0d});}['getFootnoteSettings'](_0x64efca){const _0x51f3b1=_0x27adaf;var _0x3aa677,_0x522366;let _0x12da59=this[_0x51f3b1(0xfc)]()[_0x51f3b1(0x107)](),_0xf6a64d=_0x64efca==null?(_0x3aa677=_0x12da59[_0x51f3b1(0xf2)])==null?void 0x0:_0x3aa677[_0x51f3b1(0xf9)]:(_0x522366=_0x12da59['body'])==null||(_0x522366=_0x522366['sectionBreaks'])==null||(_0x522366=_0x522366[_0x51f3b1(0xe7)](_0x13a085=>_0x13a085[_0x51f3b1(0xdf)]===_0x64efca))==null||(_0x522366=_0x522366[_0x51f3b1(0xfb)])==null?void 0x0:_0x522366[_0x51f3b1(0xf9)];return _0xf6a64d==null?void 0x0:t[_0x51f3b1(0xe4)][_0x51f3b1(0xfa)](_0xf6a64d);}[_0x27adaf(0xea)](_0x4e480f,_0x39aafb){const _0x5ba455=_0x27adaf;return this[_0x5ba455(0xe8)][_0x5ba455(0x106)](t['ICommandService'])['syncExecuteCommand'](e['SetDocumentFootnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x4e480f,'sectionId':_0x39aafb});}[_0x27adaf(0xed)](_0x32e378,_0x5cfa53={}){const _0x3a02c4=_0x27adaf;let _0x1511e6=(0x0,t[_0x3a02c4(0x10e)])(0xc);return this[_0x3a02c4(0xe8)][_0x3a02c4(0x106)](t[_0x3a02c4(0xf4)])['syncExecuteCommand'](e[_0x3a02c4(0x10a)]['id'],{..._0x5cfa53,'unitId':this['id'],'offset':_0x32e378,'noteId':_0x1511e6})?_0x1511e6:null;}['getEndnotes'](){const _0x58e8fd=_0x27adaf;var _0x181d3b;let _0x115bf3=this[_0x58e8fd(0xfc)]()[_0x58e8fd(0x107)]();return(((_0x181d3b=_0x115bf3[_0x58e8fd(0xff)])==null?void 0x0:_0x181d3b['customRanges'])??[])[_0x58e8fd(0xf7)](_0x292a6a=>_0x292a6a[_0x58e8fd(0xeb)]===t[_0x58e8fd(0xe6)][_0x58e8fd(0xe0)])[_0x58e8fd(0xf3)]((_0x567040,_0x905db3)=>_0x567040[_0x58e8fd(0x104)]-_0x905db3[_0x58e8fd(0x104)])[_0x58e8fd(0x10b)](_0x54fb43=>{const _0xc98aff=_0x58e8fd;var _0x3122c5,_0x4a941f;let _0x15cb72=(_0x3122c5=_0x54fb43[_0xc98aff(0xf0)])==null?void 0x0:_0x3122c5[_0xc98aff(0xde)],_0x336bd6=typeof _0x15cb72=='string'?(_0x4a941f=_0x115bf3[_0xc98aff(0xec)])==null?void 0x0:_0x4a941f[_0x15cb72]:void 0x0;return _0x336bd6?[t['Tools'][_0xc98aff(0xfa)](_0x336bd6)]:[];});}[_0x27adaf(0xf6)](_0x52f04a){const _0x231900=_0x27adaf;return this['_injector']['get'](t[_0x231900(0xf4)])[_0x231900(0xf5)](e[_0x231900(0xe5)]['id'],{'unitId':this['id'],'noteId':_0x52f04a});}[_0x27adaf(0x101)](_0x2df1d4){const _0x2c0285=_0x27adaf;var _0x9e7b69,_0x5a4ed2;let _0x2f83e6=this['getDocumentDataModel']()[_0x2c0285(0x107)](),_0xe66346=_0x2df1d4==null?(_0x9e7b69=_0x2f83e6['noteSettings'])==null?void 0x0:_0x9e7b69['endnote']:(_0x5a4ed2=_0x2f83e6[_0x2c0285(0xff)])==null||(_0x5a4ed2=_0x5a4ed2['sectionBreaks'])==null||(_0x5a4ed2=_0x5a4ed2[_0x2c0285(0xe7)](_0x268399=>_0x268399[_0x2c0285(0xdf)]===_0x2df1d4))==null||(_0x5a4ed2=_0x5a4ed2[_0x2c0285(0xfb)])==null?void 0x0:_0x5a4ed2[_0x2c0285(0xe3)];return _0xe66346==null?void 0x0:t[_0x2c0285(0xe4)]['deepClone'](_0xe66346);}['setEndnoteSettings'](_0x2d4a24,_0x1743dc){const _0x3c1ede=_0x27adaf;return this[_0x3c1ede(0xe8)]['get'](t[_0x3c1ede(0xf4)])[_0x3c1ede(0xf5)](e[_0x3c1ede(0xe9)]['id'],{'unitId':this['id'],'settings':_0x2d4a24,'sectionId':_0x1743dc});}};n[_0x27adaf(0xe1)][_0x27adaf(0x100)](r);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5887f8=_0x145e;(function(_0x57669e,_0x4f10bb){const _0x4cf500=_0x145e,_0x33dd35=_0x57669e();while(!![]){try{const _0x87835e=-parseInt(_0x4cf500(0x161))/0x1*(parseInt(_0x4cf500(0x16e))/0x2)+-parseInt(_0x4cf500(0x177))/0x3+-parseInt(_0x4cf500(0x140))/0x4*(-parseInt(_0x4cf500(0x102))/0x5)+-parseInt(_0x4cf500(0x158))/0x6+parseInt(_0x4cf500(0xfe))/0x7*(-parseInt(_0x4cf500(0x12c))/0x8)+-parseInt(_0x4cf500(0x139))/0x9*(parseInt(_0x4cf500(0x111))/0xa)+parseInt(_0x4cf500(0x10c))/0xb;if(_0x87835e===_0x4f10bb)break;else _0x33dd35['push'](_0x33dd35['shift']());}catch(_0x2ef009){_0x33dd35['push'](_0x33dd35['shift']());}}}(_0x2e00,0x1aeb1),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5887f8(0x175)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x1e5e97,_0xf5549d,_0x511420){const _0x38304c=_0x5887f8;if(_0x1e5e97[_0x38304c(0x10f)]!=null&&!(_0xf5549d==='footnote'?[_0x38304c(0x14e),_0x38304c(0x101)]:[_0x38304c(0x151),'sectEnd'])[_0x38304c(0x128)](_0x1e5e97[_0x38304c(0x10f)])||_0x1e5e97[_0x38304c(0xff)]!=null&&!(_0xf5549d===_0x38304c(0x132)?[_0x38304c(0x113),'eachSect',_0x38304c(0x15b)]:[_0x38304c(0x113),_0x38304c(0x10e)])[_0x38304c(0x128)](_0x1e5e97[_0x38304c(0xff)])||_0x1e5e97['startNumber']!=null&&(!Number['isInteger'](_0x1e5e97[_0x38304c(0x16a)])||_0x1e5e97['startNumber']<0x1)||_0x38304c(0x14b)in _0x1e5e97&&_0x1e5e97[_0x38304c(0x14b)]!=null&&(_0xf5549d!==_0x38304c(0x132)||!Number['isInteger'](_0x1e5e97['columnCount'])||_0x1e5e97[_0x38304c(0x14b)]<0x0||_0x1e5e97['columnCount']>0x4)||_0x1e5e97[_0x38304c(0x10a)]!=null&&(typeof _0x1e5e97[_0x38304c(0x10a)]!=_0x38304c(0x13a)||_0x1e5e97[_0x38304c(0x10a)][_0x38304c(0x15a)]===0x0))return!0x1;for(let _0x1af2d8 of[_0x1e5e97[_0x38304c(0x152)],_0x1e5e97[_0x38304c(0x146)],_0x1e5e97[_0x38304c(0x135)]])if(_0x1af2d8!=null&&(_0x511420!=null||(0x0,e[_0x38304c(0x112)])(_0x1af2d8)[_0x38304c(0x15a)]>0x0))return!0x1;return!0x0;}function i(_0x50c61a,_0x45e047,_0x2444de){const _0x1120fd=_0x5887f8;var _0xdc762c,_0x569256;if(_0x45e047[_0x1120fd(0x13d)]!=null&&!r(_0x45e047['settings'],_0x2444de,_0x45e047['sectionId']))return!0x1;let _0x3d0ac3=((_0xdc762c=_0x50c61a[_0x1120fd(0x104)])==null||(_0xdc762c=_0xdc762c[_0x1120fd(0x14d)])==null?void 0x0:_0xdc762c[_0x1120fd(0x125)](_0x5bd142=>_0x5bd142[_0x1120fd(0x115)]===_0x45e047['sectionId']))??-0x1;if(_0x45e047[_0x1120fd(0x115)]!=null&&_0x3d0ac3<0x0)return!0x1;let _0x3fd813=_0x45e047['sectionId']==null?_0x50c61a['noteSettings']:(_0x569256=_0x50c61a[_0x1120fd(0x104)])==null||(_0x569256=_0x569256[_0x1120fd(0x14d)])==null?void 0x0:_0x569256[_0x3d0ac3][_0x1120fd(0x107)],_0x467579=_0x45e047[_0x1120fd(0x13d)]==null?void 0x0:e['Tools'][_0x1120fd(0x144)](_0x45e047['settings']),_0x25e1df=_0x45e047[_0x1120fd(0x115)]==null?[_0x1120fd(0x167)]:[_0x1120fd(0x104),_0x1120fd(0x14d),_0x3d0ac3,'noteProperties'],_0x8ac647=e[_0x1120fd(0x168)][_0x1120fd(0x157)](),_0x42feff=null;if(e[_0x1120fd(0x110)][_0x1120fd(0x14c)](_0x3fd813==null?void 0x0:_0x3fd813[_0x2444de],_0x467579)||(_0x42feff=_0x3fd813==null?_0x8ac647[_0x1120fd(0xfc)](_0x25e1df,{[_0x2444de]:_0x467579}):_0x45e047[_0x1120fd(0x115)]!=null&&_0x467579==null&&Object[_0x1120fd(0x172)](_0x3fd813)['every'](_0x17d7e4=>_0x17d7e4===_0x2444de)?_0x8ac647[_0x1120fd(0x150)](_0x25e1df,_0x3fd813):_0x8ac647[_0x1120fd(0x147)]([..._0x25e1df,_0x2444de],_0x3fd813[_0x2444de],_0x467579)),_0x45e047[_0x1120fd(0x179)]!=null){var _0x238b19;if(_0x2444de!==_0x1120fd(0x12e)||_0x45e047['sectionId']==null||typeof _0x45e047[_0x1120fd(0x179)]!=_0x1120fd(0x13c))return!0x1;let _0x203f2e=(_0x238b19=_0x50c61a[_0x1120fd(0x104)])==null||(_0x238b19=_0x238b19[_0x1120fd(0x14d)])==null?void 0x0:_0x238b19[_0x3d0ac3]['suppressEndnotes'];_0x203f2e!==_0x45e047[_0x1120fd(0x179)]&&(_0x42feff=e['JSONX'][_0x1120fd(0x17a)](_0x42feff,_0x8ac647[_0x1120fd(0x147)]([_0x1120fd(0x104),_0x1120fd(0x14d),_0x3d0ac3,_0x1120fd(0x179)],_0x203f2e,_0x45e047[_0x1120fd(0x179)])));}return _0x42feff;}function a(_0x397ee5,_0x125ef3,_0x5ddf68){const _0x2a5215=_0x5887f8;if(!_0x125ef3)return!0x1;let _0x1eca33=_0x397ee5[_0x2a5215(0x13b)](e[_0x2a5215(0x153)])['getUnit'](_0x125ef3[_0x2a5215(0x12b)],e[_0x2a5215(0x148)][_0x2a5215(0x106)]),_0x869fcf=_0x1eca33==null?void 0x0:_0x1eca33[_0x2a5215(0x114)]();if(!_0x869fcf||_0x869fcf[_0x2a5215(0x127)][_0x2a5215(0x117)]!==e['DocumentFlavor'][_0x2a5215(0x120)])return!0x1;let _0x5d23c1=i(_0x869fcf,_0x125ef3,_0x5ddf68);return _0x5d23c1===!0x1||e['JSONX']['isNoop'](_0x5d23c1)?!0x1:!!_0x397ee5[_0x2a5215(0x13b)](e[_0x2a5215(0x11d)])[_0x2a5215(0x11b)](t['RichTextEditingMutation']['id'],{'unitId':_0x125ef3[_0x2a5215(0x12b)],'segmentId':'','historyAction':_0x2a5215(0x162)+_0x5ddf68+_0x2a5215(0x11f),'actions':_0x5d23c1,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':'doc.command.set-footnote-settings','type':e[_0x5887f8(0xfd)][_0x5887f8(0x118)],'handler':(_0x5040cc,_0x3280b4)=>a(_0x5040cc,_0x3280b4,_0x5887f8(0x132))},s={'id':_0x5887f8(0x134),'type':e[_0x5887f8(0xfd)][_0x5887f8(0x118)],'handler':(_0x33b394,_0x73841a)=>a(_0x33b394,_0x73841a,'endnote')};function c(_0x4a5c17,_0x2fdb3f){const _0x52c7ce=_0x5887f8;return(_0x4a5c17==null?void 0x0:_0x4a5c17['documentStyle'][_0x52c7ce(0x117)])===e['DocumentFlavor'][_0x52c7ce(0x120)]&&!!_0x4a5c17[_0x52c7ce(0x104)]&&Number[_0x52c7ce(0x133)](_0x2fdb3f)&&_0x2fdb3f>=0x0&&_0x2fdb3f<_0x4a5c17[_0x52c7ce(0x104)][_0x52c7ce(0x136)][_0x52c7ce(0x15a)]-0x1;}function l(_0x1ca9dc,_0x4a2f05,_0x886b12){const _0x1e16e2=_0x5887f8;var _0x23ad40,_0x9a1fda;if(_0x4a2f05[_0x1e16e2(0x13d)]===void 0x0&&_0x4a2f05[_0x1e16e2(0x179)]===void 0x0)return null;let _0x463bb2=_0x4a2f05[_0x1e16e2(0x115)]==null?(_0x23ad40=_0x1ca9dc[_0x1e16e2(0x167)])==null?void 0x0:_0x23ad40[_0x886b12]:(_0x9a1fda=_0x1ca9dc['body'])==null||(_0x9a1fda=_0x9a1fda[_0x1e16e2(0x14d)])==null||(_0x9a1fda=_0x9a1fda[_0x1e16e2(0x15f)](_0x5dffaf=>_0x5dffaf[_0x1e16e2(0x115)]===_0x4a2f05[_0x1e16e2(0x115)]))==null||(_0x9a1fda=_0x9a1fda[_0x1e16e2(0x107)])==null?void 0x0:_0x9a1fda[_0x886b12];return i(_0x1ca9dc,{'settings':_0x4a2f05[_0x1e16e2(0x13d)]===void 0x0?_0x463bb2??null:_0x4a2f05[_0x1e16e2(0x13d)],'sectionId':_0x4a2f05['sectionId'],'suppressEndnotes':_0x4a2f05[_0x1e16e2(0x179)]},_0x886b12);}function u(_0x4a811a,_0x57d446,_0x494945){const _0x2229df=_0x5887f8;var _0x1f3022,_0x4707de,_0xff499b;if(!_0x57d446||_0x57d446['segmentId'])return!0x1;let _0x2ffa54=_0x4a811a[_0x2229df(0x13b)](e[_0x2229df(0x153)])['getUnit'](_0x57d446['unitId'],e['UniverInstanceType'][_0x2229df(0x106)]),_0x5407f4=_0x2ffa54==null?void 0x0:_0x2ffa54[_0x2229df(0x114)](),{offset:_0x4efb72}=_0x57d446;if(!c(_0x5407f4,_0x4efb72))return!0x1;let _0x49b4a9=l(_0x5407f4,_0x57d446,_0x494945);if(_0x49b4a9===!0x1)return!0x1;let _0x11e8cd=_0x57d446[_0x2229df(0x149)]??(0x0,e[_0x2229df(0x122)])(0xc);if((_0x1f3022=_0x5407f4[_0x2229df(0x141)])!=null&&_0x1f3022[_0x11e8cd]||(_0x4707de=_0x5407f4['headers'])!=null&&_0x4707de[_0x11e8cd]||(_0xff499b=_0x5407f4['footers'])!=null&&_0xff499b[_0x11e8cd])return!0x1;let _0xca2b3c=e[_0x2229df(0x110)][_0x2229df(0x144)]({'type':_0x494945,'noteId':_0x11e8cd,'body':_0x57d446[_0x2229df(0x104)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e['createParagraphId'])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x57d446[_0x2229df(0x142)],'referenceTextStyle':_0x57d446[_0x2229df(0x165)],'tableSource':_0x57d446[_0x2229df(0x11a)],'drawings':_0x57d446['drawings'],'drawingsOrder':_0x57d446[_0x2229df(0x166)],'lists':_0x57d446['lists']});if((0x0,e[_0x2229df(0x131)])({'notes':{[_0x11e8cd]:_0xca2b3c}})[_0x2229df(0x15a)]>0x0)return!0x1;let _0x22faa8=new e[(_0x2229df(0x15d))]();_0x4efb72>0x0&&_0x22faa8[_0x2229df(0x15e)](_0x4efb72),_0x22faa8[_0x2229df(0x159)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x494945===_0x2229df(0x132)?e[_0x2229df(0x156)][_0x2229df(0x11e)]:e[_0x2229df(0x156)][_0x2229df(0x10b)],'rangeId':(0x0,e[_0x2229df(0x122)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x11e8cd}}]});let _0x41cb73=e['JSONX'][_0x2229df(0x157)](),_0x5ab2e5=_0x5407f4[_0x2229df(0x141)]==null?_0x41cb73[_0x2229df(0xfc)]([_0x2229df(0x141)],{[_0x11e8cd]:_0xca2b3c}):_0x41cb73['insertOp']([_0x2229df(0x141),_0x11e8cd],_0xca2b3c);return!!_0x4a811a[_0x2229df(0x13b)](e[_0x2229df(0x11d)])[_0x2229df(0x11b)](t[_0x2229df(0x10d)]['id'],{'unitId':_0x57d446[_0x2229df(0x12b)],'segmentId':'','historyAction':_0x2229df(0x12d)+_0x494945,'actions':e['JSONX'][_0x2229df(0x17a)](e[_0x2229df(0x168)]['compose'](_0x49b4a9,_0x5ab2e5),_0x41cb73[_0x2229df(0x121)](_0x22faa8[_0x2229df(0x123)](),[_0x2229df(0x104)])),'textRanges':[{'segmentId':_0x11e8cd,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x145e(_0x5d968c,_0xc48715){_0x5d968c=_0x5d968c-0xfa;const _0x2e001b=_0x2e00();let _0x145ec1=_0x2e001b[_0x5d968c];return _0x145ec1;}function d(_0x131b67,_0x4cbda1,_0x49777d){const _0x32809e=_0x5887f8;var _0x5bd28b,_0x13d32e;if(!_0x4cbda1)return!0x1;let _0x4ebdec=_0x131b67[_0x32809e(0x13b)](e[_0x32809e(0x153)])['getUnit'](_0x4cbda1['unitId'],e[_0x32809e(0x148)][_0x32809e(0x106)]),_0x449ae1=_0x4ebdec==null?void 0x0:_0x4ebdec[_0x32809e(0x114)](),_0x42787d=_0x449ae1==null||(_0x5bd28b=_0x449ae1[_0x32809e(0x141)])==null?void 0x0:_0x5bd28b[_0x4cbda1['noteId']],_0x4b0e7d=_0x449ae1==null||(_0x13d32e=_0x449ae1['body'])==null||(_0x13d32e=_0x13d32e[_0x32809e(0x138)])==null?void 0x0:_0x13d32e[_0x32809e(0x15f)](_0x1b8abc=>{const _0x2f6add=_0x32809e;var _0x520022;return(_0x1b8abc['rangeType']===e[_0x2f6add(0x156)][_0x2f6add(0x11e)]||_0x1b8abc['rangeType']===e['CustomRangeType'][_0x2f6add(0x10b)])&&((_0x520022=_0x1b8abc['properties'])==null?void 0x0:_0x520022[_0x2f6add(0x149)])===_0x4cbda1[_0x2f6add(0x149)];});if(!_0x449ae1||_0x449ae1[_0x32809e(0x127)][_0x32809e(0x117)]!==e['DocumentFlavor'][_0x32809e(0x120)]||!_0x42787d||_0x42787d[_0x32809e(0x16b)]!==_0x49777d||!_0x4b0e7d)return!0x1;let _0x448fa3=new e['TextX']();_0x4b0e7d[_0x32809e(0x119)]>0x0&&_0x448fa3[_0x32809e(0x15e)](_0x4b0e7d[_0x32809e(0x119)]),_0x448fa3['delete'](0x1);let _0x21aef0=e[_0x32809e(0x168)][_0x32809e(0x157)]();return!!_0x131b67['get'](e[_0x32809e(0x11d)])[_0x32809e(0x11b)](t[_0x32809e(0x10d)]['id'],{'unitId':_0x4cbda1[_0x32809e(0x12b)],'segmentId':'','historyAction':_0x32809e(0x12a)+_0x49777d,'actions':e['JSONX']['compose'](_0x21aef0[_0x32809e(0x121)](_0x448fa3[_0x32809e(0x123)](),[_0x32809e(0x104)]),_0x21aef0[_0x32809e(0x150)](['notes',_0x4cbda1['noteId']],_0x42787d)),'textRanges':[{'startOffset':_0x4b0e7d[_0x32809e(0x119)],'endOffset':_0x4b0e7d[_0x32809e(0x119)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x5887f8(0x130),'type':e[_0x5887f8(0xfd)]['COMMAND'],'handler':(_0x4fe2dc,_0x1ca2d3)=>u(_0x4fe2dc,_0x1ca2d3,'footnote')},p={'id':_0x5887f8(0x170),'type':e[_0x5887f8(0xfd)]['COMMAND'],'handler':(_0x1cb46a,_0x27d502)=>d(_0x1cb46a,_0x27d502,'footnote')},m={'id':_0x5887f8(0x143),'type':e[_0x5887f8(0xfd)]['COMMAND'],'handler':(_0x12ebf0,_0x4b5909)=>u(_0x12ebf0,_0x4b5909,'endnote')},h={'id':_0x5887f8(0x176),'type':e[_0x5887f8(0xfd)]['COMMAND'],'handler':(_0x50e52d,_0x2fc3f7)=>d(_0x50e52d,_0x2fc3f7,_0x5887f8(0x12e))};var g=_0x5887f8(0x13f),_=_0x5887f8(0x145);const v={};function y(_0x47ad01,_0x490a1e){return function(_0x5adebf,_0x2a9b2d){_0x490a1e(_0x5adebf,_0x2a9b2d,_0x47ad01);};}function b(_0x5fa8b4,_0x1698ee,_0x109604,_0x5d020a){const _0x15d5db=_0x5887f8;var _0x4eb657=arguments[_0x15d5db(0x15a)],_0x3437b9=_0x4eb657<0x3?_0x1698ee:_0x5d020a===null?_0x5d020a=Object[_0x15d5db(0x129)](_0x1698ee,_0x109604):_0x5d020a,_0xec8160;if(typeof Reflect==_0x15d5db(0x16c)&&typeof Reflect[_0x15d5db(0x103)]==_0x15d5db(0x174))_0x3437b9=Reflect['decorate'](_0x5fa8b4,_0x1698ee,_0x109604,_0x5d020a);else{for(var _0x3b47f1=_0x5fa8b4[_0x15d5db(0x15a)]-0x1;_0x3b47f1>=0x0;_0x3b47f1--)(_0xec8160=_0x5fa8b4[_0x3b47f1])&&(_0x3437b9=(_0x4eb657<0x3?_0xec8160(_0x3437b9):_0x4eb657>0x3?_0xec8160(_0x1698ee,_0x109604,_0x3437b9):_0xec8160(_0x1698ee,_0x109604))||_0x3437b9);}return _0x4eb657>0x3&&_0x3437b9&&Object[_0x15d5db(0x171)](_0x1698ee,_0x109604,_0x3437b9),_0x3437b9;}function x(_0x2a0218){'@babel/helpers - typeof';const _0x1892d3=_0x5887f8;return x=typeof Symbol==_0x1892d3(0x174)&&typeof Symbol[_0x1892d3(0x154)]=='symbol'?function(_0x41baad){return typeof _0x41baad;}:function(_0x2e8a13){const _0x3e7b30=_0x1892d3;return _0x2e8a13&&typeof Symbol==_0x3e7b30(0x174)&&_0x2e8a13[_0x3e7b30(0xfb)]===Symbol&&_0x2e8a13!==Symbol[_0x3e7b30(0x13e)]?_0x3e7b30(0x126):typeof _0x2e8a13;},x(_0x2a0218);}function S(_0x2016f9,_0x2526e0){const _0x27b05e=_0x5887f8;if(x(_0x2016f9)!=_0x27b05e(0x16c)||!_0x2016f9)return _0x2016f9;var _0x33d15e=_0x2016f9[Symbol[_0x27b05e(0xfa)]];if(_0x33d15e!==void 0x0){var _0x25f25b=_0x33d15e[_0x27b05e(0x100)](_0x2016f9,_0x2526e0||_0x27b05e(0x14a));if(x(_0x25f25b)!=_0x27b05e(0x16c))return _0x25f25b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2526e0==='string'?String:Number)(_0x2016f9);}function C(_0x4faafb){const _0x59f818=_0x5887f8;var _0x2cff4f=S(_0x4faafb,_0x59f818(0x13a));return x(_0x2cff4f)==_0x59f818(0x126)?_0x2cff4f:_0x2cff4f+'';}function w(_0xef2dcb,_0x348abd,_0x546a68){return(_0x348abd=C(_0x348abd))in _0xef2dcb?Object['defineProperty'](_0xef2dcb,_0x348abd,{'value':_0x546a68,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xef2dcb[_0x348abd]=_0x546a68,_0xef2dcb;}let T=class extends e[_0x5887f8(0x108)]{constructor(_0x4683cd=v,_0x1d7c25,_0x5571db,_0x23b793){const _0x5cf389=_0x5887f8;super(),this[_0x5cf389(0x12f)]=_0x4683cd,this['_injector']=_0x1d7c25,this[_0x5cf389(0x164)]=_0x5571db,this[_0x5cf389(0x137)]=_0x23b793;let {..._0x52454f}=(0x0,e[_0x5cf389(0x11c)])({},v,this['_config']);this[_0x5cf389(0x164)]['setConfig'](_0x5cf389(0x173),_0x52454f);}['onStarting'](){const _0x104880=_0x5887f8;[f,p,o,m,h,s]['forEach'](_0x597bf2=>this[_0x104880(0x15c)](this[_0x104880(0x137)][_0x104880(0x16f)](_0x597bf2)));}};w(T,_0x5887f8(0x155),'UNIVER_DOCS_REFERENCE_PLUGIN'),w(T,_0x5887f8(0x105),g),w(T,_0x5887f8(0x16d),_),w(T,_0x5887f8(0x16b),e[_0x5887f8(0x148)]['UNIVER_DOC']),T=b([(0x0,e[_0x5887f8(0x109)])(n[_0x5887f8(0x116)],t['UniverDocsPlugin']),y(0x1,(0x0,e[_0x5887f8(0x14f)])(e['Injector'])),y(0x2,e[_0x5887f8(0x163)]),y(0x3,e[_0x5887f8(0x11d)])],T),exports[_0x5887f8(0x124)]=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x5887f8(0x160)]=m,exports['InsertDocumentFootnoteCommand']=f,exports[_0x5887f8(0x178)]=s,exports[_0x5887f8(0x169)]=o,Object['defineProperty'](exports,'UniverDocsReferencePlugin',{'enumerable':!0x0,'get':function(){return T;}});function _0x2e00(){const _0x1a730a=['startIndex','tableSource','syncExecuteCommand','merge','ICommandService','FOOTNOTE','-settings','TRADITIONAL','editOp','generateRandomId','serialize','DeleteDocumentEndnoteCommand','findIndex','symbol','documentStyle','includes','getOwnPropertyDescriptor','delete-','unitId','56FlIbAc','insert-','endnote','_config','doc.command.insert-footnote','validateDocumentStructure','footnote','isInteger','doc.command.set-endnote-settings','continuationNotice','dataStream','_commandService','customRanges','234rftFsz','string','get','boolean','settings','prototype','@univerjs-pro/docs-reference','1076mwDbFU','notes','customMark','doc.command.insert-endnote','deepClone','1.0.2','continuationSeparator','replaceOp','UniverInstanceType','noteId','default','columnCount','diffValue','sectionBreaks','pageBottom','Inject','removeOp','docEnd','separator','IUniverInstanceService','iterator','pluginName','CustomRangeType','getInstance','329352KXvCnz','insert','length','eachPage','disposeWithMe','TextX','retain','find','InsertDocumentEndnoteCommand','4wlXKNH','set-','IConfigService','_configService','referenceTextStyle','drawingsOrder','noteSettings','JSONX','SetDocumentFootnoteSettingsCommand','startNumber','type','object','version','55340YXziBB','registerCommand','doc.command.delete-footnote','defineProperty','keys','docs-reference.config','function','Module','doc.command.delete-endnote','179607hsnXxH','SetDocumentEndnoteSettingsCommand','suppressEndnotes','compose','toPrimitive','constructor','insertOp','CommandType','46641UDSLNA','restart','call','beneathText','145BTuNlx','decorate','body','packageName','UNIVER_DOC','noteProperties','Plugin','DependentOn','numberFormat','ENDNOTE','4879820LgFuXQ','RichTextEditingMutation','eachSect','position','Tools','26570dgxNCp','validateDocBodyStructure','continuous','getSnapshot','sectionId','UniverLicensePlugin','documentFlavor','COMMAND'];_0x2e00=function(){return _0x1a730a;};return _0x2e00();}
1
+ const _0x31b473=_0x4601;(function(_0x43997b,_0x5eeb1d){const _0x4bf2a1=_0x4601,_0x1a675c=_0x43997b();while(!![]){try{const _0xd79ab7=-parseInt(_0x4bf2a1(0x220))/0x1+parseInt(_0x4bf2a1(0x1c7))/0x2+-parseInt(_0x4bf2a1(0x1d9))/0x3+parseInt(_0x4bf2a1(0x1d8))/0x4+parseInt(_0x4bf2a1(0x203))/0x5*(-parseInt(_0x4bf2a1(0x22d))/0x6)+-parseInt(_0x4bf2a1(0x224))/0x7*(-parseInt(_0x4bf2a1(0x1e0))/0x8)+-parseInt(_0x4bf2a1(0x1e8))/0x9*(-parseInt(_0x4bf2a1(0x225))/0xa);if(_0xd79ab7===_0x5eeb1d)break;else _0x1a675c['push'](_0x1a675c['shift']());}catch(_0x2c2924){_0x1a675c['push'](_0x1a675c['shift']());}}}(_0x3296,0xeb116),Object[_0x31b473(0x1ed)](exports,Symbol[_0x31b473(0x207)],{'value':'Module'}));function _0x3296(){const _0x184295=['rangeType','merge','validateDocumentStructure','replaceOp','includes','_config','FOOTNOTE','7396376KnYsea','1115301eBaYmB','createSectionId','docs-reference.config','endnote','onStarting','footers','1.0.4','151760pdBZXG','IConfigService','_configService','properties','doc.command.set-endnote-settings','find','insertOp','startIndex','11285883HYtnqj','disposeWithMe','dataStream','SetDocumentEndnoteSettingsCommand','getSnapshot','defineProperty','ENDNOTE','sectionBreaks','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','tableSource','UNIVER_DOC','DependentOn','drawings','noteProperties','doc.command.delete-endnote','restart','isInteger','deepClone','IUniverInstanceService','retain','customRanges','serialize','boolean','getOwnPropertyDescriptor','set-','version','10CuijvR','sectEnd','DeleteDocumentEndnoteCommand','columnCount','toStringTag','TRADITIONAL','startNumber','doc.command.set-footnote-settings','COMMAND','eachSect','Injector','compose','-settings','notes','docEnd','referenceTextStyle','doc.command.delete-footnote','decorate','ICommandService','body','continuationNotice','prototype','Tools','every','documentFlavor','CommandType','getUnit','settings','_commandService','1055753bbLZWD','insert','continuationSeparator','numberFormat','7rBHzkT','10asZklN','default','separator','doc.command.insert-footnote','suppressEndnotes','lists','sectionId','removeOp','2491182RRbTvj','noteId','UniverLicensePlugin','eachPage','syncExecuteCommand','diffValue','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','footnote','position','documentStyle','UniverInstanceType','string','DocumentFlavor','CustomRangeType','get','toPrimitive','pageBottom','length','InsertDocumentFootnoteCommand','continuous','function','delete','InsertDocumentEndnoteCommand','_injector','editOp','findIndex','doc.command.insert-endnote','JSONX','customMark','UniverDocsPlugin','SetDocumentFootnoteSettingsCommand','TextX','unitId','197402fZOuvg','RichTextEditingMutation','object','constructor','keys','createParagraphId','beneathText','noteSettings','symbol','generateRandomId'];_0x3296=function(){return _0x184295;};return _0x3296();}let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x2cbc69,_0x12cb3e,_0x5b0048){const _0x2b8c5c=_0x31b473;if(_0x2cbc69['position']!=null&&!(_0x12cb3e===_0x2b8c5c(0x235)?[_0x2b8c5c(0x23e),_0x2b8c5c(0x1cd)]:[_0x2b8c5c(0x211),_0x2b8c5c(0x204)])[_0x2b8c5c(0x1d5)](_0x2cbc69[_0x2b8c5c(0x236)])||_0x2cbc69[_0x2b8c5c(0x1f8)]!=null&&!(_0x12cb3e===_0x2b8c5c(0x235)?['continuous','eachSect',_0x2b8c5c(0x230)]:[_0x2b8c5c(0x241),_0x2b8c5c(0x20c)])[_0x2b8c5c(0x1d5)](_0x2cbc69[_0x2b8c5c(0x1f8)])||_0x2cbc69[_0x2b8c5c(0x209)]!=null&&(!Number['isInteger'](_0x2cbc69[_0x2b8c5c(0x209)])||_0x2cbc69['startNumber']<0x1)||_0x2b8c5c(0x206)in _0x2cbc69&&_0x2cbc69[_0x2b8c5c(0x206)]!=null&&(_0x12cb3e!==_0x2b8c5c(0x235)||!Number[_0x2b8c5c(0x1f9)](_0x2cbc69[_0x2b8c5c(0x206)])||_0x2cbc69[_0x2b8c5c(0x206)]<0x0||_0x2cbc69[_0x2b8c5c(0x206)]>0x4)||_0x2cbc69['numberFormat']!=null&&(typeof _0x2cbc69[_0x2b8c5c(0x223)]!=_0x2b8c5c(0x239)||_0x2cbc69[_0x2b8c5c(0x223)]['length']===0x0))return!0x1;for(let _0x1e9ad7 of[_0x2cbc69[_0x2b8c5c(0x227)],_0x2cbc69[_0x2b8c5c(0x222)],_0x2cbc69[_0x2b8c5c(0x217)]])if(_0x1e9ad7!=null&&(_0x5b0048!=null||(0x0,e['validateDocBodyStructure'])(_0x1e9ad7)[_0x2b8c5c(0x23f)]>0x0))return!0x1;return!0x0;}function i(_0xdbfb36,_0x57080e,_0x3eccc5){const _0x1e1d0f=_0x31b473;var _0xbaf892,_0x51cd15;if(_0x57080e[_0x1e1d0f(0x21e)]!=null&&!r(_0x57080e['settings'],_0x3eccc5,_0x57080e[_0x1e1d0f(0x22b)]))return!0x1;let _0x340bef=((_0xbaf892=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0xbaf892=_0xbaf892[_0x1e1d0f(0x1ef)])==null?void 0x0:_0xbaf892[_0x1e1d0f(0x1bf)](_0x2f2240=>_0x2f2240[_0x1e1d0f(0x22b)]===_0x57080e[_0x1e1d0f(0x22b)]))??-0x1;if(_0x57080e['sectionId']!=null&&_0x340bef<0x0)return!0x1;let _0x1c1265=_0x57080e[_0x1e1d0f(0x22b)]==null?_0xdbfb36[_0x1e1d0f(0x1ce)]:(_0x51cd15=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0x51cd15=_0x51cd15[_0x1e1d0f(0x1ef)])==null?void 0x0:_0x51cd15[_0x340bef][_0x1e1d0f(0x1f6)],_0xdab602=_0x57080e[_0x1e1d0f(0x21e)]==null?void 0x0:e[_0x1e1d0f(0x219)][_0x1e1d0f(0x1fa)](_0x57080e[_0x1e1d0f(0x21e)]),_0xfbf8fb=_0x57080e[_0x1e1d0f(0x22b)]==null?[_0x1e1d0f(0x1ce)]:[_0x1e1d0f(0x216),_0x1e1d0f(0x1ef),_0x340bef,_0x1e1d0f(0x1f6)],_0xee6d0b=e[_0x1e1d0f(0x1c1)]['getInstance'](),_0x2bd7b4=null;if(e[_0x1e1d0f(0x219)][_0x1e1d0f(0x232)](_0x1c1265==null?void 0x0:_0x1c1265[_0x3eccc5],_0xdab602)||(_0x2bd7b4=_0x1c1265==null?_0xee6d0b[_0x1e1d0f(0x1e6)](_0xfbf8fb,{[_0x3eccc5]:_0xdab602}):_0x57080e['sectionId']!=null&&_0xdab602==null&&Object[_0x1e1d0f(0x1cb)](_0x1c1265)[_0x1e1d0f(0x21a)](_0x2ca741=>_0x2ca741===_0x3eccc5)?_0xee6d0b['removeOp'](_0xfbf8fb,_0x1c1265):_0xee6d0b[_0x1e1d0f(0x1d4)]([..._0xfbf8fb,_0x3eccc5],_0x1c1265[_0x3eccc5],_0xdab602)),_0x57080e[_0x1e1d0f(0x229)]!=null){var _0xc0b97c;if(_0x3eccc5!==_0x1e1d0f(0x1dc)||_0x57080e[_0x1e1d0f(0x22b)]==null||typeof _0x57080e[_0x1e1d0f(0x229)]!=_0x1e1d0f(0x1ff))return!0x1;let _0x3d672a=(_0xc0b97c=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0xc0b97c=_0xc0b97c[_0x1e1d0f(0x1ef)])==null?void 0x0:_0xc0b97c[_0x340bef][_0x1e1d0f(0x229)];_0x3d672a!==_0x57080e[_0x1e1d0f(0x229)]&&(_0x2bd7b4=e[_0x1e1d0f(0x1c1)]['compose'](_0x2bd7b4,_0xee6d0b[_0x1e1d0f(0x1d4)](['body','sectionBreaks',_0x340bef,_0x1e1d0f(0x229)],_0x3d672a,_0x57080e[_0x1e1d0f(0x229)])));}return _0x2bd7b4;}function a(_0x3555d2,_0xed7e35,_0x1bff70){const _0x1c160e=_0x31b473;if(!_0xed7e35)return!0x1;let _0x2fc5c0=_0x3555d2[_0x1c160e(0x23c)](e[_0x1c160e(0x1fb)])[_0x1c160e(0x21d)](_0xed7e35[_0x1c160e(0x1c6)],e['UniverInstanceType'][_0x1c160e(0x1f3)]),_0x31d6e9=_0x2fc5c0==null?void 0x0:_0x2fc5c0[_0x1c160e(0x1ec)]();if(!_0x31d6e9||_0x31d6e9['documentStyle'][_0x1c160e(0x21b)]!==e[_0x1c160e(0x23a)][_0x1c160e(0x208)])return!0x1;let _0x14ba7a=i(_0x31d6e9,_0xed7e35,_0x1bff70);return _0x14ba7a===!0x1||e[_0x1c160e(0x1c1)]['isNoop'](_0x14ba7a)?!0x1:!!_0x3555d2[_0x1c160e(0x23c)](e[_0x1c160e(0x215)])[_0x1c160e(0x231)](t['RichTextEditingMutation']['id'],{'unitId':_0xed7e35[_0x1c160e(0x1c6)],'segmentId':'','historyAction':_0x1c160e(0x201)+_0x1bff70+_0x1c160e(0x20f),'actions':_0x14ba7a,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x31b473(0x20a),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x48b8dc,_0x377b56)=>a(_0x48b8dc,_0x377b56,'footnote')},s={'id':_0x31b473(0x1e4),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x2839f3,_0xc9de31)=>a(_0x2839f3,_0xc9de31,_0x31b473(0x1dc))};function c(_0xd4311f,_0xc75d5b){const _0x569391=_0x31b473;return(_0xd4311f==null?void 0x0:_0xd4311f[_0x569391(0x237)][_0x569391(0x21b)])===e[_0x569391(0x23a)][_0x569391(0x208)]&&!!_0xd4311f[_0x569391(0x216)]&&Number[_0x569391(0x1f9)](_0xc75d5b)&&_0xc75d5b>=0x0&&_0xc75d5b<_0xd4311f[_0x569391(0x216)][_0x569391(0x1ea)][_0x569391(0x23f)]-0x1;}function l(_0x1b9d73,_0x5ce521,_0x40a492){const _0x184ce9=_0x31b473;var _0xc0f74a,_0x1452f3;if(_0x5ce521['settings']===void 0x0&&_0x5ce521[_0x184ce9(0x229)]===void 0x0)return null;let _0x35797c=_0x5ce521[_0x184ce9(0x22b)]==null?(_0xc0f74a=_0x1b9d73[_0x184ce9(0x1ce)])==null?void 0x0:_0xc0f74a[_0x40a492]:(_0x1452f3=_0x1b9d73[_0x184ce9(0x216)])==null||(_0x1452f3=_0x1452f3[_0x184ce9(0x1ef)])==null||(_0x1452f3=_0x1452f3[_0x184ce9(0x1e5)](_0x2331ac=>_0x2331ac[_0x184ce9(0x22b)]===_0x5ce521[_0x184ce9(0x22b)]))==null||(_0x1452f3=_0x1452f3['noteProperties'])==null?void 0x0:_0x1452f3[_0x40a492];return i(_0x1b9d73,{'settings':_0x5ce521[_0x184ce9(0x21e)]===void 0x0?_0x35797c??null:_0x5ce521[_0x184ce9(0x21e)],'sectionId':_0x5ce521[_0x184ce9(0x22b)],'suppressEndnotes':_0x5ce521['suppressEndnotes']},_0x40a492);}function u(_0x27b079,_0x4a9154,_0x41c2aa){const _0x42633a=_0x31b473;var _0x4b1ded,_0x1dd945,_0x5aa939;if(!_0x4a9154||_0x4a9154['segmentId'])return!0x1;let _0x488019=_0x27b079['get'](e[_0x42633a(0x1fb)])[_0x42633a(0x21d)](_0x4a9154[_0x42633a(0x1c6)],e['UniverInstanceType'][_0x42633a(0x1f3)]),_0x25f468=_0x488019==null?void 0x0:_0x488019[_0x42633a(0x1ec)](),{offset:_0x455d9b}=_0x4a9154;if(!c(_0x25f468,_0x455d9b))return!0x1;let _0x530974=l(_0x25f468,_0x4a9154,_0x41c2aa);if(_0x530974===!0x1)return!0x1;let _0x4b662d=_0x4a9154[_0x42633a(0x22e)]??(0x0,e[_0x42633a(0x1d0)])(0xc);if((_0x4b1ded=_0x25f468[_0x42633a(0x210)])!=null&&_0x4b1ded[_0x4b662d]||(_0x1dd945=_0x25f468['headers'])!=null&&_0x1dd945[_0x4b662d]||(_0x5aa939=_0x25f468[_0x42633a(0x1de)])!=null&&_0x5aa939[_0x4b662d])return!0x1;let _0x711bab=e['Tools'][_0x42633a(0x1fa)]({'type':_0x41c2aa,'noteId':_0x4b662d,'body':_0x4a9154[_0x42633a(0x216)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x42633a(0x1cc)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e[_0x42633a(0x1da)])(new Set()),'startIndex':0x1}]},'customMark':_0x4a9154[_0x42633a(0x1c2)],'referenceTextStyle':_0x4a9154[_0x42633a(0x212)],'tableSource':_0x4a9154[_0x42633a(0x1f2)],'drawings':_0x4a9154[_0x42633a(0x1f5)],'drawingsOrder':_0x4a9154['drawingsOrder'],'lists':_0x4a9154[_0x42633a(0x22a)]});if((0x0,e[_0x42633a(0x1d3)])({'notes':{[_0x4b662d]:_0x711bab}})['length']>0x0)return!0x1;let _0x556929=new e[(_0x42633a(0x1c5))]();_0x455d9b>0x0&&_0x556929[_0x42633a(0x1fc)](_0x455d9b),_0x556929[_0x42633a(0x221)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x41c2aa===_0x42633a(0x235)?e[_0x42633a(0x23b)][_0x42633a(0x1d7)]:e[_0x42633a(0x23b)]['ENDNOTE'],'rangeId':(0x0,e[_0x42633a(0x1d0)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4b662d}}]});let _0x34abdc=e[_0x42633a(0x1c1)][_0x42633a(0x233)](),_0x2ebe0b=_0x25f468[_0x42633a(0x210)]==null?_0x34abdc['insertOp'](['notes'],{[_0x4b662d]:_0x711bab}):_0x34abdc[_0x42633a(0x1e6)](['notes',_0x4b662d],_0x711bab);return!!_0x27b079[_0x42633a(0x23c)](e[_0x42633a(0x215)])[_0x42633a(0x231)](t[_0x42633a(0x1c8)]['id'],{'unitId':_0x4a9154[_0x42633a(0x1c6)],'segmentId':'','historyAction':'insert-'+_0x41c2aa,'actions':e[_0x42633a(0x1c1)][_0x42633a(0x20e)](e[_0x42633a(0x1c1)]['compose'](_0x530974,_0x2ebe0b),_0x34abdc[_0x42633a(0x1be)](_0x556929[_0x42633a(0x1fe)](),[_0x42633a(0x216)])),'textRanges':[{'segmentId':_0x4b662d,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x4abd3b,_0x40cc29,_0x17ed55){const _0x33b9f6=_0x31b473;var _0x18e134,_0x12203d;if(!_0x40cc29)return!0x1;let _0x7f6588=_0x4abd3b[_0x33b9f6(0x23c)](e[_0x33b9f6(0x1fb)])['getUnit'](_0x40cc29[_0x33b9f6(0x1c6)],e[_0x33b9f6(0x238)]['UNIVER_DOC']),_0xabe10e=_0x7f6588==null?void 0x0:_0x7f6588[_0x33b9f6(0x1ec)](),_0x5241a4=_0xabe10e==null||(_0x18e134=_0xabe10e['notes'])==null?void 0x0:_0x18e134[_0x40cc29[_0x33b9f6(0x22e)]],_0x488a6b=_0xabe10e==null||(_0x12203d=_0xabe10e[_0x33b9f6(0x216)])==null||(_0x12203d=_0x12203d[_0x33b9f6(0x1fd)])==null?void 0x0:_0x12203d[_0x33b9f6(0x1e5)](_0x2227a3=>{const _0x56e5ca=_0x33b9f6;var _0x1522f9;return(_0x2227a3[_0x56e5ca(0x1d1)]===e[_0x56e5ca(0x23b)][_0x56e5ca(0x1d7)]||_0x2227a3[_0x56e5ca(0x1d1)]===e['CustomRangeType'][_0x56e5ca(0x1ee)])&&((_0x1522f9=_0x2227a3[_0x56e5ca(0x1e3)])==null?void 0x0:_0x1522f9[_0x56e5ca(0x22e)])===_0x40cc29[_0x56e5ca(0x22e)];});if(!_0xabe10e||_0xabe10e['documentStyle'][_0x33b9f6(0x21b)]!==e[_0x33b9f6(0x23a)]['TRADITIONAL']||!_0x5241a4||_0x5241a4[_0x33b9f6(0x1f0)]!==_0x17ed55||!_0x488a6b)return!0x1;let _0x3925a5=new e[(_0x33b9f6(0x1c5))]();_0x488a6b['startIndex']>0x0&&_0x3925a5[_0x33b9f6(0x1fc)](_0x488a6b['startIndex']),_0x3925a5[_0x33b9f6(0x1bb)](0x1);let _0x38e818=e[_0x33b9f6(0x1c1)][_0x33b9f6(0x233)]();return!!_0x4abd3b[_0x33b9f6(0x23c)](e[_0x33b9f6(0x215)])[_0x33b9f6(0x231)](t[_0x33b9f6(0x1c8)]['id'],{'unitId':_0x40cc29[_0x33b9f6(0x1c6)],'segmentId':'','historyAction':'delete-'+_0x17ed55,'actions':e[_0x33b9f6(0x1c1)]['compose'](_0x38e818[_0x33b9f6(0x1be)](_0x3925a5[_0x33b9f6(0x1fe)](),['body']),_0x38e818[_0x33b9f6(0x22c)](['notes',_0x40cc29[_0x33b9f6(0x22e)]],_0x5241a4)),'textRanges':[{'startOffset':_0x488a6b[_0x33b9f6(0x1e7)],'endOffset':_0x488a6b['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x31b473(0x228),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x16c7b3,_0x5cdb07)=>u(_0x16c7b3,_0x5cdb07,_0x31b473(0x235))},p={'id':_0x31b473(0x213),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x1f8334,_0x49c47c)=>d(_0x1f8334,_0x49c47c,_0x31b473(0x235))},m={'id':_0x31b473(0x1c0),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x52c261,_0x238d2c)=>u(_0x52c261,_0x238d2c,_0x31b473(0x1dc))},h={'id':_0x31b473(0x1f7),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x50b16a,_0x5c4fdb)=>d(_0x50b16a,_0x5c4fdb,_0x31b473(0x1dc))};var g='@univerjs-pro/docs-reference',_=_0x31b473(0x1df);function _0x4601(_0x44ccc1,_0x43aa67){_0x44ccc1=_0x44ccc1-0x1bb;const _0x329649=_0x3296();let _0x46017a=_0x329649[_0x44ccc1];return _0x46017a;}const v={};function y(_0x1eac12,_0x1ba99c){return function(_0x5719e6,_0x2c5460){_0x1ba99c(_0x5719e6,_0x2c5460,_0x1eac12);};}function b(_0x5c39ce,_0x2d0d8d,_0xe4d44a,_0x4635d0){const _0x36a55f=_0x31b473;var _0x99c3a5=arguments[_0x36a55f(0x23f)],_0x163214=_0x99c3a5<0x3?_0x2d0d8d:_0x4635d0===null?_0x4635d0=Object[_0x36a55f(0x200)](_0x2d0d8d,_0xe4d44a):_0x4635d0,_0xf9ae2c;if(typeof Reflect==_0x36a55f(0x1c9)&&typeof Reflect[_0x36a55f(0x214)]==_0x36a55f(0x242))_0x163214=Reflect[_0x36a55f(0x214)](_0x5c39ce,_0x2d0d8d,_0xe4d44a,_0x4635d0);else{for(var _0x45f65d=_0x5c39ce[_0x36a55f(0x23f)]-0x1;_0x45f65d>=0x0;_0x45f65d--)(_0xf9ae2c=_0x5c39ce[_0x45f65d])&&(_0x163214=(_0x99c3a5<0x3?_0xf9ae2c(_0x163214):_0x99c3a5>0x3?_0xf9ae2c(_0x2d0d8d,_0xe4d44a,_0x163214):_0xf9ae2c(_0x2d0d8d,_0xe4d44a))||_0x163214);}return _0x99c3a5>0x3&&_0x163214&&Object[_0x36a55f(0x1ed)](_0x2d0d8d,_0xe4d44a,_0x163214),_0x163214;}function x(_0x5de9f8){'@babel/helpers - typeof';const _0x1d99a0=_0x31b473;return x=typeof Symbol==_0x1d99a0(0x242)&&typeof Symbol['iterator']==_0x1d99a0(0x1cf)?function(_0xceb492){return typeof _0xceb492;}:function(_0x2353b8){const _0x5ccfc4=_0x1d99a0;return _0x2353b8&&typeof Symbol=='function'&&_0x2353b8[_0x5ccfc4(0x1ca)]===Symbol&&_0x2353b8!==Symbol[_0x5ccfc4(0x218)]?'symbol':typeof _0x2353b8;},x(_0x5de9f8);}function S(_0x5591b1,_0xb64901){const _0x5de3de=_0x31b473;if(x(_0x5591b1)!=_0x5de3de(0x1c9)||!_0x5591b1)return _0x5591b1;var _0x331f82=_0x5591b1[Symbol[_0x5de3de(0x23d)]];if(_0x331f82!==void 0x0){var _0x21c8e7=_0x331f82['call'](_0x5591b1,_0xb64901||_0x5de3de(0x226));if(x(_0x21c8e7)!=_0x5de3de(0x1c9))return _0x21c8e7;throw TypeError(_0x5de3de(0x1f1));}return(_0xb64901===_0x5de3de(0x239)?String:Number)(_0x5591b1);}function C(_0x31da72){const _0x5d0714=_0x31b473;var _0x5d337d=S(_0x31da72,_0x5d0714(0x239));return x(_0x5d337d)==_0x5d0714(0x1cf)?_0x5d337d:_0x5d337d+'';}function w(_0x558851,_0x185e30,_0x4814a7){const _0x555922=_0x31b473;return(_0x185e30=C(_0x185e30))in _0x558851?Object[_0x555922(0x1ed)](_0x558851,_0x185e30,{'value':_0x4814a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x558851[_0x185e30]=_0x4814a7,_0x558851;}let T=class extends e['Plugin']{constructor(_0x2198cf=v,_0x2f4879,_0x3a3732,_0x27a56c){const _0x4b8eb4=_0x31b473;super(),this[_0x4b8eb4(0x1d6)]=_0x2198cf,this[_0x4b8eb4(0x1bd)]=_0x2f4879,this['_configService']=_0x3a3732,this[_0x4b8eb4(0x21f)]=_0x27a56c;let {..._0x21ced5}=(0x0,e[_0x4b8eb4(0x1d2)])({},v,this['_config']);this[_0x4b8eb4(0x1e2)]['setConfig'](_0x4b8eb4(0x1db),_0x21ced5);}[_0x31b473(0x1dd)](){const _0x2ed407=_0x31b473;[f,p,o,m,h,s]['forEach'](_0x12952a=>this[_0x2ed407(0x1e9)](this['_commandService']['registerCommand'](_0x12952a)));}};w(T,'pluginName',_0x31b473(0x234)),w(T,'packageName',g),w(T,_0x31b473(0x202),_),w(T,_0x31b473(0x1f0),e[_0x31b473(0x238)][_0x31b473(0x1f3)]),T=b([(0x0,e[_0x31b473(0x1f4)])(n[_0x31b473(0x22f)],t[_0x31b473(0x1c3)]),y(0x1,(0x0,e['Inject'])(e[_0x31b473(0x20d)])),y(0x2,e[_0x31b473(0x1e1)]),y(0x3,e[_0x31b473(0x215)])],T),exports[_0x31b473(0x205)]=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x31b473(0x1bc)]=m,exports[_0x31b473(0x240)]=f,exports[_0x31b473(0x1eb)]=s,exports[_0x31b473(0x1c4)]=o,Object['defineProperty'](exports,'UniverDocsReferencePlugin',{'enumerable':!0x0,'get':function(){return T;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5c07(_0x173a84,_0x46cc7d){_0x173a84=_0x173a84-0x10a;const _0x165d51=_0x165d();let _0x5c075d=_0x165d51[_0x173a84];return _0x5c075d;}const _0x3e9fe7=_0x5c07;function _0x165d(){const _0x360d15=['insertFootnote','footnote','3288123AfRmYg','find','body','notes','noteSettings','noteProperties','1271565IzOIfL','endnote','32eaBhba','get','startIndex','setEndnoteSettings','_injector','flatMap','deleteFootnote','609061HBuNAw','40WyqReJ','syncExecuteCommand','string','534PTBJpA','sectionBreaks','185601YvuqDZ','sort','customRanges','rangeType','noteId','17857gnzoaf','properties','1711765SaVHSN','getSnapshot','988566XQqKyg','8mUXjAU','deleteEndnote','insertEndnote','deepClone','getEndnoteSettings','getFootnoteSettings','ENDNOTE','FOOTNOTE','setFootnoteSettings'];_0x165d=function(){return _0x360d15;};return _0x165d();}(function(_0x17f0d8,_0xce750b){const _0x59a14e=_0x5c07,_0x5b06ce=_0x17f0d8();while(!![]){try{const _0x4a16bd=-parseInt(_0x59a14e(0x11d))/0x1+-parseInt(_0x59a14e(0x12c))/0x2+-parseInt(_0x59a14e(0x123))/0x3*(-parseInt(_0x59a14e(0x116))/0x4)+-parseInt(_0x59a14e(0x114))/0x5+parseInt(_0x59a14e(0x121))/0x6*(parseInt(_0x59a14e(0x128))/0x7)+parseInt(_0x59a14e(0x12d))/0x8*(parseInt(_0x59a14e(0x10e))/0x9)+parseInt(_0x59a14e(0x11e))/0xa*(parseInt(_0x59a14e(0x12a))/0xb);if(_0x4a16bd===_0xce750b)break;else _0x5b06ce['push'](_0x5b06ce['shift']());}catch(_0x1eb96d){_0x5b06ce['push'](_0x5b06ce['shift']());}}}(_0x165d,0x55f7d));import{DeleteDocumentEndnoteCommand as _0x20f549,DeleteDocumentFootnoteCommand as _0x414b2,InsertDocumentEndnoteCommand as _0x57be98,InsertDocumentFootnoteCommand as _0xcd3aa8,SetDocumentEndnoteSettingsCommand as _0x2d211c,SetDocumentFootnoteSettingsCommand as _0x2cf00a}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x20f530,ICommandService as _0x2986de,Tools as _0x4f4c96,generateRandomId as _0x2083af}from'@univerjs/core';import{FDocument as _0x3f6f3f}from'@univerjs/docs/facade';var d=class extends _0x3f6f3f{[_0x3e9fe7(0x10c)](_0x4008d0,_0x2a49e9={}){const _0x4a35fe=_0x3e9fe7;let _0x15320b=_0x2083af(0xc);return this['_injector'][_0x4a35fe(0x117)](_0x2986de)[_0x4a35fe(0x11f)](_0xcd3aa8['id'],{..._0x2a49e9,'unitId':this['id'],'offset':_0x4008d0,'noteId':_0x15320b})?_0x15320b:null;}['getFootnotes'](){const _0x24432d=_0x3e9fe7;var _0x192a7e;let _0x13a822=this['getDocumentDataModel']()['getSnapshot']();return(((_0x192a7e=_0x13a822[_0x24432d(0x110)])==null?void 0x0:_0x192a7e[_0x24432d(0x125)])??[])['filter'](_0x3f5382=>_0x3f5382[_0x24432d(0x126)]===_0x20f530[_0x24432d(0x10a)])[_0x24432d(0x124)]((_0xaafa50,_0x496337)=>_0xaafa50[_0x24432d(0x118)]-_0x496337[_0x24432d(0x118)])[_0x24432d(0x11b)](_0x3a66a9=>{const _0x411af5=_0x24432d;var _0x2a027b,_0x5c779c;let _0xe16551=(_0x2a027b=_0x3a66a9[_0x411af5(0x129)])==null?void 0x0:_0x2a027b[_0x411af5(0x127)],_0xae4908=typeof _0xe16551==_0x411af5(0x120)?(_0x5c779c=_0x13a822['notes'])==null?void 0x0:_0x5c779c[_0xe16551]:void 0x0;return _0xae4908?[_0x4f4c96[_0x411af5(0x130)](_0xae4908)]:[];});}[_0x3e9fe7(0x11c)](_0x3aaacb){const _0x1e6a83=_0x3e9fe7;return this[_0x1e6a83(0x11a)][_0x1e6a83(0x117)](_0x2986de)[_0x1e6a83(0x11f)](_0x414b2['id'],{'unitId':this['id'],'noteId':_0x3aaacb});}[_0x3e9fe7(0x132)](_0x1a55b4){const _0x47789a=_0x3e9fe7;var _0x2bbc34,_0x15ef65;let _0x240be5=this['getDocumentDataModel']()[_0x47789a(0x12b)](),_0x164671=_0x1a55b4==null?(_0x2bbc34=_0x240be5[_0x47789a(0x112)])==null?void 0x0:_0x2bbc34[_0x47789a(0x10d)]:(_0x15ef65=_0x240be5[_0x47789a(0x110)])==null||(_0x15ef65=_0x15ef65[_0x47789a(0x122)])==null||(_0x15ef65=_0x15ef65[_0x47789a(0x10f)](_0x52a240=>_0x52a240['sectionId']===_0x1a55b4))==null||(_0x15ef65=_0x15ef65['noteProperties'])==null?void 0x0:_0x15ef65['footnote'];return _0x164671==null?void 0x0:_0x4f4c96[_0x47789a(0x130)](_0x164671);}[_0x3e9fe7(0x10b)](_0x20a59f,_0x3be077){const _0x3a04c4=_0x3e9fe7;return this['_injector'][_0x3a04c4(0x117)](_0x2986de)[_0x3a04c4(0x11f)](_0x2cf00a['id'],{'unitId':this['id'],'settings':_0x20a59f,'sectionId':_0x3be077});}[_0x3e9fe7(0x12f)](_0x27b8b2,_0x2f3224={}){const _0x44036c=_0x3e9fe7;let _0xb67386=_0x2083af(0xc);return this[_0x44036c(0x11a)][_0x44036c(0x117)](_0x2986de)[_0x44036c(0x11f)](_0x57be98['id'],{..._0x2f3224,'unitId':this['id'],'offset':_0x27b8b2,'noteId':_0xb67386})?_0xb67386:null;}['getEndnotes'](){const _0x1d6700=_0x3e9fe7;var _0x49e0d3;let _0x361372=this['getDocumentDataModel']()[_0x1d6700(0x12b)]();return(((_0x49e0d3=_0x361372[_0x1d6700(0x110)])==null?void 0x0:_0x49e0d3['customRanges'])??[])['filter'](_0x489f4c=>_0x489f4c[_0x1d6700(0x126)]===_0x20f530[_0x1d6700(0x133)])[_0x1d6700(0x124)]((_0x14d5c3,_0x212bba)=>_0x14d5c3[_0x1d6700(0x118)]-_0x212bba[_0x1d6700(0x118)])[_0x1d6700(0x11b)](_0x2d0abd=>{const _0x4acc38=_0x1d6700;var _0x2b0562,_0x32540f;let _0x460b90=(_0x2b0562=_0x2d0abd['properties'])==null?void 0x0:_0x2b0562[_0x4acc38(0x127)],_0x69f695=typeof _0x460b90==_0x4acc38(0x120)?(_0x32540f=_0x361372[_0x4acc38(0x111)])==null?void 0x0:_0x32540f[_0x460b90]:void 0x0;return _0x69f695?[_0x4f4c96['deepClone'](_0x69f695)]:[];});}[_0x3e9fe7(0x12e)](_0x136e25){const _0x10119d=_0x3e9fe7;return this[_0x10119d(0x11a)]['get'](_0x2986de)[_0x10119d(0x11f)](_0x20f549['id'],{'unitId':this['id'],'noteId':_0x136e25});}[_0x3e9fe7(0x131)](_0x3ba12f){const _0x9b75ca=_0x3e9fe7;var _0x498f9a,_0x56a58d;let _0x1d09c5=this['getDocumentDataModel']()[_0x9b75ca(0x12b)](),_0x2cc1b5=_0x3ba12f==null?(_0x498f9a=_0x1d09c5[_0x9b75ca(0x112)])==null?void 0x0:_0x498f9a[_0x9b75ca(0x115)]:(_0x56a58d=_0x1d09c5[_0x9b75ca(0x110)])==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x122)])==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x10f)](_0x1edeb0=>_0x1edeb0['sectionId']===_0x3ba12f))==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x113)])==null?void 0x0:_0x56a58d[_0x9b75ca(0x115)];return _0x2cc1b5==null?void 0x0:_0x4f4c96[_0x9b75ca(0x130)](_0x2cc1b5);}[_0x3e9fe7(0x119)](_0x195d73,_0x1f6786){const _0x2bb0eb=_0x3e9fe7;return this['_injector'][_0x2bb0eb(0x117)](_0x2986de)[_0x2bb0eb(0x11f)](_0x2d211c['id'],{'unitId':this['id'],'settings':_0x195d73,'sectionId':_0x1f6786});}};_0x3f6f3f['extend'](d);export{};
1
+ const _0x1d2878=_0x3b8a;(function(_0x1a453d,_0x2ea472){const _0x4cf73d=_0x3b8a,_0x502bfe=_0x1a453d();while(!![]){try{const _0x2862cb=parseInt(_0x4cf73d(0xd0))/0x1+parseInt(_0x4cf73d(0xcc))/0x2*(-parseInt(_0x4cf73d(0xcb))/0x3)+parseInt(_0x4cf73d(0xe3))/0x4*(-parseInt(_0x4cf73d(0xe1))/0x5)+-parseInt(_0x4cf73d(0xca))/0x6*(parseInt(_0x4cf73d(0xc7))/0x7)+-parseInt(_0x4cf73d(0xe4))/0x8+-parseInt(_0x4cf73d(0xc3))/0x9*(parseInt(_0x4cf73d(0xea))/0xa)+parseInt(_0x4cf73d(0xe2))/0xb;if(_0x2862cb===_0x2ea472)break;else _0x502bfe['push'](_0x502bfe['shift']());}catch(_0x215617){_0x502bfe['push'](_0x502bfe['shift']());}}}(_0xa1af,0xb5794));import{DeleteDocumentEndnoteCommand as _0x211c67,DeleteDocumentFootnoteCommand as _0x5785b7,InsertDocumentEndnoteCommand as _0x2530bf,InsertDocumentFootnoteCommand as _0x25ee27,SetDocumentEndnoteSettingsCommand as _0x4211e1,SetDocumentFootnoteSettingsCommand as _0xed7692}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x252077,ICommandService as _0x46bda6,Tools as _0x452626,generateRandomId as _0x331e7d}from'@univerjs/core';function _0x3b8a(_0x40e9f0,_0x3a21d8){_0x40e9f0=_0x40e9f0-0xbd;const _0xa1af2b=_0xa1af();let _0x3b8ae7=_0xa1af2b[_0x40e9f0];return _0x3b8ae7;}function _0xa1af(){const _0x360b74=['ENDNOTE','301507ANOoiR','getDocumentDataModel','rangeType','startIndex','noteId','find','sort','getSnapshot','notes','endnote','FOOTNOTE','getEndnotes','syncExecuteCommand','_injector','noteSettings','setEndnoteSettings','body','151745xxFnAc','47214948oqpKYC','92MzBJRD','11126896hKFAEp','filter','insertEndnote','sectionId','noteProperties','get','1280dvzkmG','flatMap','deleteFootnote','getEndnoteSettings','deepClone','string','properties','77472zgexOU','getFootnoteSettings','customRanges','deleteEndnote','4509925JCdmZd','footnote','sectionBreaks','6bYtdpB','5157BctCPJ','18kktjZu','getFootnotes','setFootnoteSettings'];_0xa1af=function(){return _0x360b74;};return _0xa1af();}import{FDocument as _0x1c301a}from'@univerjs/docs/facade';var d=class extends _0x1c301a{['insertFootnote'](_0x546510,_0x383eac={}){const _0x521ab2=_0x3b8a;let _0x366cb0=_0x331e7d(0xc);return this[_0x521ab2(0xdd)][_0x521ab2(0xe9)](_0x46bda6)[_0x521ab2(0xdc)](_0x25ee27['id'],{..._0x383eac,'unitId':this['id'],'offset':_0x546510,'noteId':_0x366cb0})?_0x366cb0:null;}[_0x1d2878(0xcd)](){const _0x535ec3=_0x1d2878;var _0x148161;let _0x491d30=this[_0x535ec3(0xd1)]()[_0x535ec3(0xd7)]();return(((_0x148161=_0x491d30['body'])==null?void 0x0:_0x148161[_0x535ec3(0xc5)])??[])[_0x535ec3(0xe5)](_0x3aabca=>_0x3aabca[_0x535ec3(0xd2)]===_0x252077[_0x535ec3(0xda)])[_0x535ec3(0xd6)]((_0x5aa6de,_0x204641)=>_0x5aa6de[_0x535ec3(0xd3)]-_0x204641[_0x535ec3(0xd3)])[_0x535ec3(0xbd)](_0x234680=>{const _0x288e55=_0x535ec3;var _0x3d4471,_0x3b5494;let _0x3d893f=(_0x3d4471=_0x234680[_0x288e55(0xc2)])==null?void 0x0:_0x3d4471[_0x288e55(0xd4)],_0x37f03e=typeof _0x3d893f==_0x288e55(0xc1)?(_0x3b5494=_0x491d30['notes'])==null?void 0x0:_0x3b5494[_0x3d893f]:void 0x0;return _0x37f03e?[_0x452626['deepClone'](_0x37f03e)]:[];});}[_0x1d2878(0xbe)](_0x4202a8){const _0x4f1e04=_0x1d2878;return this[_0x4f1e04(0xdd)][_0x4f1e04(0xe9)](_0x46bda6)[_0x4f1e04(0xdc)](_0x5785b7['id'],{'unitId':this['id'],'noteId':_0x4202a8});}[_0x1d2878(0xc4)](_0x434da4){const _0x140cc2=_0x1d2878;var _0x5f284a,_0x2adc89;let _0x25fd55=this[_0x140cc2(0xd1)]()[_0x140cc2(0xd7)](),_0x3053e3=_0x434da4==null?(_0x5f284a=_0x25fd55[_0x140cc2(0xde)])==null?void 0x0:_0x5f284a[_0x140cc2(0xc8)]:(_0x2adc89=_0x25fd55[_0x140cc2(0xe0)])==null||(_0x2adc89=_0x2adc89['sectionBreaks'])==null||(_0x2adc89=_0x2adc89[_0x140cc2(0xd5)](_0x2a9970=>_0x2a9970[_0x140cc2(0xe7)]===_0x434da4))==null||(_0x2adc89=_0x2adc89[_0x140cc2(0xe8)])==null?void 0x0:_0x2adc89['footnote'];return _0x3053e3==null?void 0x0:_0x452626[_0x140cc2(0xc0)](_0x3053e3);}[_0x1d2878(0xce)](_0x305227,_0x32f28b){const _0x2d51e2=_0x1d2878;return this[_0x2d51e2(0xdd)][_0x2d51e2(0xe9)](_0x46bda6)[_0x2d51e2(0xdc)](_0xed7692['id'],{'unitId':this['id'],'settings':_0x305227,'sectionId':_0x32f28b});}[_0x1d2878(0xe6)](_0x447fb9,_0x5c8df1={}){const _0xde97e2=_0x1d2878;let _0x289b08=_0x331e7d(0xc);return this[_0xde97e2(0xdd)][_0xde97e2(0xe9)](_0x46bda6)[_0xde97e2(0xdc)](_0x2530bf['id'],{..._0x5c8df1,'unitId':this['id'],'offset':_0x447fb9,'noteId':_0x289b08})?_0x289b08:null;}[_0x1d2878(0xdb)](){const _0x367581=_0x1d2878;var _0x1cd864;let _0x21ec4b=this[_0x367581(0xd1)]()[_0x367581(0xd7)]();return(((_0x1cd864=_0x21ec4b[_0x367581(0xe0)])==null?void 0x0:_0x1cd864[_0x367581(0xc5)])??[])[_0x367581(0xe5)](_0x260237=>_0x260237['rangeType']===_0x252077[_0x367581(0xcf)])[_0x367581(0xd6)]((_0x55cdae,_0x4a9e6f)=>_0x55cdae['startIndex']-_0x4a9e6f['startIndex'])[_0x367581(0xbd)](_0x51e9e5=>{const _0x1e9a6f=_0x367581;var _0x3143b8,_0x2d8bb5;let _0x1a0cb5=(_0x3143b8=_0x51e9e5[_0x1e9a6f(0xc2)])==null?void 0x0:_0x3143b8[_0x1e9a6f(0xd4)],_0x1fabde=typeof _0x1a0cb5==_0x1e9a6f(0xc1)?(_0x2d8bb5=_0x21ec4b[_0x1e9a6f(0xd8)])==null?void 0x0:_0x2d8bb5[_0x1a0cb5]:void 0x0;return _0x1fabde?[_0x452626[_0x1e9a6f(0xc0)](_0x1fabde)]:[];});}[_0x1d2878(0xc6)](_0x3d10b7){const _0x42806c=_0x1d2878;return this[_0x42806c(0xdd)][_0x42806c(0xe9)](_0x46bda6)['syncExecuteCommand'](_0x211c67['id'],{'unitId':this['id'],'noteId':_0x3d10b7});}[_0x1d2878(0xbf)](_0x49c0aa){const _0x3302d8=_0x1d2878;var _0x4b9eee,_0x111302;let _0x5ce1cf=this[_0x3302d8(0xd1)]()[_0x3302d8(0xd7)](),_0x331bfa=_0x49c0aa==null?(_0x4b9eee=_0x5ce1cf[_0x3302d8(0xde)])==null?void 0x0:_0x4b9eee[_0x3302d8(0xd9)]:(_0x111302=_0x5ce1cf['body'])==null||(_0x111302=_0x111302[_0x3302d8(0xc9)])==null||(_0x111302=_0x111302['find'](_0x432865=>_0x432865['sectionId']===_0x49c0aa))==null||(_0x111302=_0x111302[_0x3302d8(0xe8)])==null?void 0x0:_0x111302[_0x3302d8(0xd9)];return _0x331bfa==null?void 0x0:_0x452626['deepClone'](_0x331bfa);}[_0x1d2878(0xdf)](_0xdb883b,_0xe0e636){const _0x24da11=_0x1d2878;return this[_0x24da11(0xdd)][_0x24da11(0xe9)](_0x46bda6)[_0x24da11(0xdc)](_0x4211e1['id'],{'unitId':this['id'],'settings':_0xdb883b,'sectionId':_0xe0e636});}};_0x1c301a['extend'](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3daf98=_0x32ce;function _0x51c2(){const _0xf19e97=['endnote','getInstance','@univerjs-pro/docs-reference','2175397kMeVnG','includes','671200IcOIaC','decorate','eachPage','numberFormat','getUnit','noteProperties','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','16nDTGPo','doc.command.set-footnote-settings','pageBottom','restart','TRADITIONAL','defineProperty','doc.command.insert-footnote','11703370TgOsby','customMark','1.0.2','settings','setConfig','boolean','string','suppressEndnotes','lists','editOp','headers','properties','body','doc.command.delete-footnote','201mbnoZp','-settings','isNoop','length','1878395Tyrdme','noteSettings','findIndex','continuationSeparator','1051263ZmsQkd','function','doc.command.set-endnote-settings','replaceOp','columnCount','onStarting','_commandService','retain','sectEnd','pluginName','dataStream','syncExecuteCommand','deepClone','diffValue','eachSect','docs-reference.config','position','noteId','drawings','drawingsOrder','ENDNOTE','serialize','removeOp','get','symbol','documentStyle','37424fbPskr','footnote','getSnapshot','startIndex','_configService','6nNdmeK','compose','COMMAND','startNumber','_config','sectionId','keys','insert-','delete','UNIVER_DOCS_REFERENCE_PLUGIN','toPrimitive','isInteger','constructor','insert','object','265078xpuDjf','UNIVER_DOC','segmentId','documentFlavor','type','default','notes','separator','call','doc.command.insert-endnote','customRanges','insertOp','unitId','delete-','sectionBreaks','forEach','tableSource','version','rangeType','disposeWithMe'];_0x51c2=function(){return _0xf19e97;};return _0x51c2();}(function(_0x2f3a92,_0x5dbd94){const _0x26e7e3=_0x32ce,_0x53e712=_0x2f3a92();while(!![]){try{const _0x42d287=-parseInt(_0x26e7e3(0xb3))/0x1+-parseInt(_0x26e7e3(0xcc))/0x2+-parseInt(_0x26e7e3(0xe8))/0x3*(-parseInt(_0x26e7e3(0x9f))/0x4)+parseInt(_0x26e7e3(0xec))/0x5*(-parseInt(_0x26e7e3(0xa4))/0x6)+-parseInt(_0x26e7e3(0xca))/0x7*(parseInt(_0x26e7e3(0xd3))/0x8)+parseInt(_0x26e7e3(0xf0))/0x9+parseInt(_0x26e7e3(0xda))/0xa;if(_0x42d287===_0x5dbd94)break;else _0x53e712['push'](_0x53e712['shift']());}catch(_0x2d5d6b){_0x53e712['push'](_0x53e712['shift']());}}}(_0x51c2,0x4d2c1));function _0x32ce(_0x22fa91,_0x56e465){_0x22fa91=_0x22fa91-0x90;const _0x51c2d4=_0x51c2();let _0x32ce89=_0x51c2d4[_0x22fa91];return _0x32ce89;}import{CommandType as _0x15545a,CustomRangeType as _0x45f257,DependentOn as _0x33e7c2,DocumentFlavor as _0x5c0d70,ICommandService as _0x19a995,IConfigService as _0x2afe4e,IUniverInstanceService as _0xc0ec08,Inject as _0x2dd80e,Injector as _0x348363,JSONX as _0x184147,Plugin as _0x1b8fd4,TextX as _0x4cd513,Tools as _0x4724ad,UniverInstanceType as _0x2699ed,createParagraphId as _0x513e99,createSectionId as _0x51287d,generateRandomId as _0xcecbd4,merge as _0x185aa9,validateDocBodyStructure as _0x14da4d,validateDocumentStructure as _0x2e2495}from'@univerjs/core';import{RichTextEditingMutation as _0x25e0c1,UniverDocsPlugin as _0x1056a6}from'@univerjs/docs';import{UniverLicensePlugin as _0x3f86ff}from'@univerjs-pro/license';function C(_0x451956,_0x111183,_0x309dbc){const _0x1bfb8b=_0x32ce;if(_0x451956[_0x1bfb8b(0x95)]!=null&&!(_0x111183===_0x1bfb8b(0xa0)?[_0x1bfb8b(0xd5),'beneathText']:['docEnd',_0x1bfb8b(0xf8)])['includes'](_0x451956['position'])||_0x451956[_0x1bfb8b(0xd6)]!=null&&!(_0x111183==='footnote'?['continuous',_0x1bfb8b(0x93),_0x1bfb8b(0xce)]:['continuous',_0x1bfb8b(0x93)])[_0x1bfb8b(0xcb)](_0x451956[_0x1bfb8b(0xd6)])||_0x451956[_0x1bfb8b(0xa7)]!=null&&(!Number[_0x1bfb8b(0xaf)](_0x451956[_0x1bfb8b(0xa7)])||_0x451956['startNumber']<0x1)||_0x1bfb8b(0xf4)in _0x451956&&_0x451956[_0x1bfb8b(0xf4)]!=null&&(_0x111183!==_0x1bfb8b(0xa0)||!Number[_0x1bfb8b(0xaf)](_0x451956[_0x1bfb8b(0xf4)])||_0x451956[_0x1bfb8b(0xf4)]<0x0||_0x451956[_0x1bfb8b(0xf4)]>0x4)||_0x451956['numberFormat']!=null&&(typeof _0x451956[_0x1bfb8b(0xcf)]!=_0x1bfb8b(0xe0)||_0x451956[_0x1bfb8b(0xcf)][_0x1bfb8b(0xeb)]===0x0))return!0x1;for(let _0x5982e7 of[_0x451956[_0x1bfb8b(0xba)],_0x451956[_0x1bfb8b(0xef)],_0x451956['continuationNotice']])if(_0x5982e7!=null&&(_0x309dbc!=null||_0x14da4d(_0x5982e7)[_0x1bfb8b(0xeb)]>0x0))return!0x1;return!0x0;}function w(_0xb610d4,_0x38a8ac,_0x353c32){const _0x320c4e=_0x32ce;var _0x43bce1,_0x2681f8;if(_0x38a8ac[_0x320c4e(0xdd)]!=null&&!C(_0x38a8ac[_0x320c4e(0xdd)],_0x353c32,_0x38a8ac[_0x320c4e(0xa9)]))return!0x1;let _0x1717c2=((_0x43bce1=_0xb610d4[_0x320c4e(0xe6)])==null||(_0x43bce1=_0x43bce1[_0x320c4e(0xc1)])==null?void 0x0:_0x43bce1[_0x320c4e(0xee)](_0x5e9ed2=>_0x5e9ed2[_0x320c4e(0xa9)]===_0x38a8ac[_0x320c4e(0xa9)]))??-0x1;if(_0x38a8ac['sectionId']!=null&&_0x1717c2<0x0)return!0x1;let _0x18fa85=_0x38a8ac['sectionId']==null?_0xb610d4[_0x320c4e(0xed)]:(_0x2681f8=_0xb610d4['body'])==null||(_0x2681f8=_0x2681f8[_0x320c4e(0xc1)])==null?void 0x0:_0x2681f8[_0x1717c2][_0x320c4e(0xd1)],_0x11a2ff=_0x38a8ac[_0x320c4e(0xdd)]==null?void 0x0:_0x4724ad[_0x320c4e(0x91)](_0x38a8ac[_0x320c4e(0xdd)]),_0x5d7086=_0x38a8ac['sectionId']==null?[_0x320c4e(0xed)]:[_0x320c4e(0xe6),_0x320c4e(0xc1),_0x1717c2,_0x320c4e(0xd1)],_0x22667f=_0x184147['getInstance'](),_0x372736=null;if(_0x4724ad[_0x320c4e(0x92)](_0x18fa85==null?void 0x0:_0x18fa85[_0x353c32],_0x11a2ff)||(_0x372736=_0x18fa85==null?_0x22667f['insertOp'](_0x5d7086,{[_0x353c32]:_0x11a2ff}):_0x38a8ac['sectionId']!=null&&_0x11a2ff==null&&Object[_0x320c4e(0xaa)](_0x18fa85)['every'](_0x234a95=>_0x234a95===_0x353c32)?_0x22667f[_0x320c4e(0x9b)](_0x5d7086,_0x18fa85):_0x22667f[_0x320c4e(0xf3)]([..._0x5d7086,_0x353c32],_0x18fa85[_0x353c32],_0x11a2ff)),_0x38a8ac[_0x320c4e(0xe1)]!=null){var _0x1869a6;if(_0x353c32!=='endnote'||_0x38a8ac[_0x320c4e(0xa9)]==null||typeof _0x38a8ac[_0x320c4e(0xe1)]!=_0x320c4e(0xdf))return!0x1;let _0x1deb12=(_0x1869a6=_0xb610d4[_0x320c4e(0xe6)])==null||(_0x1869a6=_0x1869a6[_0x320c4e(0xc1)])==null?void 0x0:_0x1869a6[_0x1717c2][_0x320c4e(0xe1)];_0x1deb12!==_0x38a8ac[_0x320c4e(0xe1)]&&(_0x372736=_0x184147['compose'](_0x372736,_0x22667f[_0x320c4e(0xf3)]([_0x320c4e(0xe6),_0x320c4e(0xc1),_0x1717c2,_0x320c4e(0xe1)],_0x1deb12,_0x38a8ac[_0x320c4e(0xe1)])));}return _0x372736;}function T(_0x40672d,_0x4812b3,_0x44e288){const _0x534a09=_0x32ce;if(!_0x4812b3)return!0x1;let _0x28caea=_0x40672d[_0x534a09(0x9c)](_0xc0ec08)[_0x534a09(0xd0)](_0x4812b3[_0x534a09(0xbf)],_0x2699ed[_0x534a09(0xb4)]),_0x41bcb8=_0x28caea==null?void 0x0:_0x28caea[_0x534a09(0xa1)]();if(!_0x41bcb8||_0x41bcb8['documentStyle'][_0x534a09(0xb6)]!==_0x5c0d70['TRADITIONAL'])return!0x1;let _0x214774=w(_0x41bcb8,_0x4812b3,_0x44e288);return _0x214774===!0x1||_0x184147[_0x534a09(0xea)](_0x214774)?!0x1:!!_0x40672d[_0x534a09(0x9c)](_0x19a995)[_0x534a09(0x90)](_0x25e0c1['id'],{'unitId':_0x4812b3['unitId'],'segmentId':'','historyAction':'set-'+_0x44e288+_0x534a09(0xe9),'actions':_0x214774,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x3daf98(0xd4),'type':_0x15545a['COMMAND'],'handler':(_0x454f7b,_0x4991da)=>T(_0x454f7b,_0x4991da,_0x3daf98(0xa0))},D={'id':_0x3daf98(0xf2),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x5c1a8d,_0x34115a)=>T(_0x5c1a8d,_0x34115a,_0x3daf98(0xc7))};function O(_0x124424,_0x5e258f){const _0xe97b3f=_0x3daf98;return(_0x124424==null?void 0x0:_0x124424['documentStyle'][_0xe97b3f(0xb6)])===_0x5c0d70[_0xe97b3f(0xd7)]&&!!_0x124424[_0xe97b3f(0xe6)]&&Number[_0xe97b3f(0xaf)](_0x5e258f)&&_0x5e258f>=0x0&&_0x5e258f<_0x124424[_0xe97b3f(0xe6)][_0xe97b3f(0xfa)][_0xe97b3f(0xeb)]-0x1;}function k(_0x1e4038,_0x1219f6,_0x45582f){const _0x259e8d=_0x3daf98;var _0x6b0f10,_0x3e73cb;if(_0x1219f6[_0x259e8d(0xdd)]===void 0x0&&_0x1219f6[_0x259e8d(0xe1)]===void 0x0)return null;let _0x4b160d=_0x1219f6[_0x259e8d(0xa9)]==null?(_0x6b0f10=_0x1e4038[_0x259e8d(0xed)])==null?void 0x0:_0x6b0f10[_0x45582f]:(_0x3e73cb=_0x1e4038[_0x259e8d(0xe6)])==null||(_0x3e73cb=_0x3e73cb[_0x259e8d(0xc1)])==null||(_0x3e73cb=_0x3e73cb['find'](_0x21c732=>_0x21c732[_0x259e8d(0xa9)]===_0x1219f6[_0x259e8d(0xa9)]))==null||(_0x3e73cb=_0x3e73cb[_0x259e8d(0xd1)])==null?void 0x0:_0x3e73cb[_0x45582f];return w(_0x1e4038,{'settings':_0x1219f6[_0x259e8d(0xdd)]===void 0x0?_0x4b160d??null:_0x1219f6[_0x259e8d(0xdd)],'sectionId':_0x1219f6[_0x259e8d(0xa9)],'suppressEndnotes':_0x1219f6[_0x259e8d(0xe1)]},_0x45582f);}function A(_0x336695,_0x5eecd2,_0x599fb5){const _0x3640c1=_0x3daf98;var _0x494d8b,_0x2c4e48,_0x4a9a09;if(!_0x5eecd2||_0x5eecd2[_0x3640c1(0xb5)])return!0x1;let _0x1ae203=_0x336695['get'](_0xc0ec08)[_0x3640c1(0xd0)](_0x5eecd2[_0x3640c1(0xbf)],_0x2699ed['UNIVER_DOC']),_0x69c894=_0x1ae203==null?void 0x0:_0x1ae203[_0x3640c1(0xa1)](),{offset:_0x1cb5c0}=_0x5eecd2;if(!O(_0x69c894,_0x1cb5c0))return!0x1;let _0x4aa026=k(_0x69c894,_0x5eecd2,_0x599fb5);if(_0x4aa026===!0x1)return!0x1;let _0x4952e0=_0x5eecd2[_0x3640c1(0x96)]??_0xcecbd4(0xc);if((_0x494d8b=_0x69c894[_0x3640c1(0xb9)])!=null&&_0x494d8b[_0x4952e0]||(_0x2c4e48=_0x69c894[_0x3640c1(0xe4)])!=null&&_0x2c4e48[_0x4952e0]||(_0x4a9a09=_0x69c894['footers'])!=null&&_0x4a9a09[_0x4952e0])return!0x1;let _0xdcd31e=_0x4724ad[_0x3640c1(0x91)]({'type':_0x599fb5,'noteId':_0x4952e0,'body':_0x5eecd2[_0x3640c1(0xe6)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x513e99(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x51287d(new Set()),'startIndex':0x1}]},'customMark':_0x5eecd2[_0x3640c1(0xdb)],'referenceTextStyle':_0x5eecd2['referenceTextStyle'],'tableSource':_0x5eecd2[_0x3640c1(0xc3)],'drawings':_0x5eecd2[_0x3640c1(0x97)],'drawingsOrder':_0x5eecd2[_0x3640c1(0x98)],'lists':_0x5eecd2[_0x3640c1(0xe2)]});if(_0x2e2495({'notes':{[_0x4952e0]:_0xdcd31e}})['length']>0x0)return!0x1;let _0x4d1214=new _0x4cd513();_0x1cb5c0>0x0&&_0x4d1214[_0x3640c1(0xf7)](_0x1cb5c0),_0x4d1214[_0x3640c1(0xb1)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x599fb5===_0x3640c1(0xa0)?_0x45f257['FOOTNOTE']:_0x45f257[_0x3640c1(0x99)],'rangeId':_0xcecbd4(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4952e0}}]});let _0x2cf56a=_0x184147[_0x3640c1(0xc8)](),_0x4261f4=_0x69c894[_0x3640c1(0xb9)]==null?_0x2cf56a[_0x3640c1(0xbe)](['notes'],{[_0x4952e0]:_0xdcd31e}):_0x2cf56a['insertOp']([_0x3640c1(0xb9),_0x4952e0],_0xdcd31e);return!!_0x336695[_0x3640c1(0x9c)](_0x19a995)['syncExecuteCommand'](_0x25e0c1['id'],{'unitId':_0x5eecd2['unitId'],'segmentId':'','historyAction':_0x3640c1(0xab)+_0x599fb5,'actions':_0x184147[_0x3640c1(0xa5)](_0x184147['compose'](_0x4aa026,_0x4261f4),_0x2cf56a[_0x3640c1(0xe3)](_0x4d1214[_0x3640c1(0x9a)](),[_0x3640c1(0xe6)])),'textRanges':[{'segmentId':_0x4952e0,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x5a3ed7,_0xce13f7,_0x101a07){const _0x1bce43=_0x3daf98;var _0x591bf9,_0x227140;if(!_0xce13f7)return!0x1;let _0x1b5a3f=_0x5a3ed7['get'](_0xc0ec08)[_0x1bce43(0xd0)](_0xce13f7['unitId'],_0x2699ed[_0x1bce43(0xb4)]),_0x3b79c8=_0x1b5a3f==null?void 0x0:_0x1b5a3f[_0x1bce43(0xa1)](),_0x1db5e0=_0x3b79c8==null||(_0x591bf9=_0x3b79c8[_0x1bce43(0xb9)])==null?void 0x0:_0x591bf9[_0xce13f7[_0x1bce43(0x96)]],_0x1f4219=_0x3b79c8==null||(_0x227140=_0x3b79c8[_0x1bce43(0xe6)])==null||(_0x227140=_0x227140[_0x1bce43(0xbd)])==null?void 0x0:_0x227140['find'](_0x1dacc8=>{const _0x16c580=_0x1bce43;var _0x32052f;return(_0x1dacc8['rangeType']===_0x45f257['FOOTNOTE']||_0x1dacc8[_0x16c580(0xc5)]===_0x45f257[_0x16c580(0x99)])&&((_0x32052f=_0x1dacc8[_0x16c580(0xe5)])==null?void 0x0:_0x32052f['noteId'])===_0xce13f7[_0x16c580(0x96)];});if(!_0x3b79c8||_0x3b79c8[_0x1bce43(0x9e)][_0x1bce43(0xb6)]!==_0x5c0d70[_0x1bce43(0xd7)]||!_0x1db5e0||_0x1db5e0[_0x1bce43(0xb7)]!==_0x101a07||!_0x1f4219)return!0x1;let _0x4a65bc=new _0x4cd513();_0x1f4219[_0x1bce43(0xa2)]>0x0&&_0x4a65bc[_0x1bce43(0xf7)](_0x1f4219[_0x1bce43(0xa2)]),_0x4a65bc[_0x1bce43(0xac)](0x1);let _0x3da97e=_0x184147[_0x1bce43(0xc8)]();return!!_0x5a3ed7[_0x1bce43(0x9c)](_0x19a995)[_0x1bce43(0x90)](_0x25e0c1['id'],{'unitId':_0xce13f7[_0x1bce43(0xbf)],'segmentId':'','historyAction':_0x1bce43(0xc0)+_0x101a07,'actions':_0x184147['compose'](_0x3da97e[_0x1bce43(0xe3)](_0x4a65bc['serialize'](),[_0x1bce43(0xe6)]),_0x3da97e[_0x1bce43(0x9b)](['notes',_0xce13f7[_0x1bce43(0x96)]],_0x1db5e0)),'textRanges':[{'startOffset':_0x1f4219[_0x1bce43(0xa2)],'endOffset':_0x1f4219[_0x1bce43(0xa2)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x3daf98(0xd9),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0xfa3d92,_0x3be213)=>A(_0xfa3d92,_0x3be213,_0x3daf98(0xa0))},N={'id':_0x3daf98(0xe7),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x12ceb6,_0x361470)=>j(_0x12ceb6,_0x361470,_0x3daf98(0xa0))},P={'id':_0x3daf98(0xbc),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x2878be,_0xdb2cc)=>A(_0x2878be,_0xdb2cc,'endnote')},F={'id':'doc.command.delete-endnote','type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x46e3ec,_0x28069a)=>j(_0x46e3ec,_0x28069a,'endnote')};var I=_0x3daf98(0xc9),L=_0x3daf98(0xdc);const R={};function z(_0x3fd14b,_0x3e0a16){return function(_0x482c38,_0x471061){_0x3e0a16(_0x482c38,_0x471061,_0x3fd14b);};}function B(_0x2116b0,_0x41c026,_0x44cd19,_0x358839){const _0x4326c1=_0x3daf98;var _0x18a35f=arguments['length'],_0x4a10a1=_0x18a35f<0x3?_0x41c026:_0x358839===null?_0x358839=Object['getOwnPropertyDescriptor'](_0x41c026,_0x44cd19):_0x358839,_0x25ee78;if(typeof Reflect=='object'&&typeof Reflect[_0x4326c1(0xcd)]==_0x4326c1(0xf1))_0x4a10a1=Reflect[_0x4326c1(0xcd)](_0x2116b0,_0x41c026,_0x44cd19,_0x358839);else{for(var _0x2ea153=_0x2116b0[_0x4326c1(0xeb)]-0x1;_0x2ea153>=0x0;_0x2ea153--)(_0x25ee78=_0x2116b0[_0x2ea153])&&(_0x4a10a1=(_0x18a35f<0x3?_0x25ee78(_0x4a10a1):_0x18a35f>0x3?_0x25ee78(_0x41c026,_0x44cd19,_0x4a10a1):_0x25ee78(_0x41c026,_0x44cd19))||_0x4a10a1);}return _0x18a35f>0x3&&_0x4a10a1&&Object[_0x4326c1(0xd8)](_0x41c026,_0x44cd19,_0x4a10a1),_0x4a10a1;}function V(_0x391a59){'@babel/helpers - typeof';const _0x4d5e3a=_0x3daf98;return V=typeof Symbol==_0x4d5e3a(0xf1)&&typeof Symbol['iterator']=='symbol'?function(_0x4c20e3){return typeof _0x4c20e3;}:function(_0x54a9a3){const _0x464cb5=_0x4d5e3a;return _0x54a9a3&&typeof Symbol==_0x464cb5(0xf1)&&_0x54a9a3[_0x464cb5(0xb0)]===Symbol&&_0x54a9a3!==Symbol['prototype']?_0x464cb5(0x9d):typeof _0x54a9a3;},V(_0x391a59);}function H(_0x935248,_0x237de1){const _0x2b13b7=_0x3daf98;if(V(_0x935248)!=_0x2b13b7(0xb2)||!_0x935248)return _0x935248;var _0x3caecc=_0x935248[Symbol[_0x2b13b7(0xae)]];if(_0x3caecc!==void 0x0){var _0x33178d=_0x3caecc[_0x2b13b7(0xbb)](_0x935248,_0x237de1||_0x2b13b7(0xb8));if(V(_0x33178d)!=_0x2b13b7(0xb2))return _0x33178d;throw TypeError(_0x2b13b7(0xd2));}return(_0x237de1===_0x2b13b7(0xe0)?String:Number)(_0x935248);}function U(_0xc87a6b){var _0x4e454d=H(_0xc87a6b,'string');return V(_0x4e454d)=='symbol'?_0x4e454d:_0x4e454d+'';}function W(_0x199859,_0x525e94,_0x3f93cb){return(_0x525e94=U(_0x525e94))in _0x199859?Object['defineProperty'](_0x199859,_0x525e94,{'value':_0x3f93cb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x199859[_0x525e94]=_0x3f93cb,_0x199859;}let G=class extends _0x1b8fd4{constructor(_0xe796b6=R,_0x307d65,_0x295269,_0x3596e3){const _0x2925a6=_0x3daf98;super(),this[_0x2925a6(0xa8)]=_0xe796b6,this['_injector']=_0x307d65,this['_configService']=_0x295269,this[_0x2925a6(0xf6)]=_0x3596e3;let {..._0x38fc00}=_0x185aa9({},R,this[_0x2925a6(0xa8)]);this[_0x2925a6(0xa3)][_0x2925a6(0xde)](_0x2925a6(0x94),_0x38fc00);}[_0x3daf98(0xf5)](){const _0x1ed817=_0x3daf98;[M,N,E,P,F,D][_0x1ed817(0xc2)](_0x2e4289=>this[_0x1ed817(0xc6)](this[_0x1ed817(0xf6)]['registerCommand'](_0x2e4289)));}};W(G,_0x3daf98(0xf9),_0x3daf98(0xad)),W(G,'packageName',I),W(G,_0x3daf98(0xc4),L),W(G,'type',_0x2699ed[_0x3daf98(0xb4)]),G=B([_0x33e7c2(_0x3f86ff,_0x1056a6),z(0x1,_0x2dd80e(_0x348363)),z(0x2,_0x2afe4e),z(0x3,_0x19a995)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
1
+ const _0x354455=_0x2ad7;(function(_0x243805,_0x5c00f2){const _0x4de663=_0x2ad7,_0x259b48=_0x243805();while(!![]){try{const _0x51c828=parseInt(_0x4de663(0x131))/0x1*(-parseInt(_0x4de663(0x13c))/0x2)+parseInt(_0x4de663(0x119))/0x3+-parseInt(_0x4de663(0x120))/0x4*(-parseInt(_0x4de663(0xfe))/0x5)+-parseInt(_0x4de663(0x118))/0x6*(-parseInt(_0x4de663(0xf9))/0x7)+parseInt(_0x4de663(0x114))/0x8*(parseInt(_0x4de663(0xfd))/0x9)+-parseInt(_0x4de663(0x109))/0xa+-parseInt(_0x4de663(0x127))/0xb;if(_0x51c828===_0x5c00f2)break;else _0x259b48['push'](_0x259b48['shift']());}catch(_0x736753){_0x259b48['push'](_0x259b48['shift']());}}}(_0x1570,0x3798a));import{CommandType as _0x2dea21,CustomRangeType as _0x18c808,DependentOn as _0x25103f,DocumentFlavor as _0x1c338d,ICommandService as _0x96e9cf,IConfigService as _0x31856b,IUniverInstanceService as _0x3749d4,Inject as _0x481bb7,Injector as _0x20836d,JSONX as _0x27e466,Plugin as _0x24f424,TextX as _0x4e06e4,Tools as _0x223dfc,UniverInstanceType as _0x2a21bc,createParagraphId as _0x20e6fe,createSectionId as _0x17cab0,generateRandomId as _0x324573,merge as _0x3dfa1e,validateDocBodyStructure as _0x4b5823,validateDocumentStructure as _0x158a70}from'@univerjs/core';import{RichTextEditingMutation as _0x3c3a8a,UniverDocsPlugin as _0x280ea7}from'@univerjs/docs';import{UniverLicensePlugin as _0x99429e}from'@univerjs-pro/license';function C(_0x2f5685,_0x4e3080,_0x1ea806){const _0x18500f=_0x2ad7;if(_0x2f5685[_0x18500f(0x144)]!=null&&!(_0x4e3080===_0x18500f(0xf1)?['pageBottom',_0x18500f(0x12e)]:['docEnd','sectEnd'])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0x144)])||_0x2f5685['restart']!=null&&!(_0x4e3080===_0x18500f(0xf1)?[_0x18500f(0x10e),_0x18500f(0x108),_0x18500f(0x130)]:[_0x18500f(0x10e),_0x18500f(0x108)])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0xf5)])||_0x2f5685[_0x18500f(0x101)]!=null&&(!Number[_0x18500f(0x145)](_0x2f5685[_0x18500f(0x101)])||_0x2f5685['startNumber']<0x1)||_0x18500f(0xee)in _0x2f5685&&_0x2f5685[_0x18500f(0xee)]!=null&&(_0x4e3080!==_0x18500f(0xf1)||!Number['isInteger'](_0x2f5685['columnCount'])||_0x2f5685[_0x18500f(0xee)]<0x0||_0x2f5685['columnCount']>0x4)||_0x2f5685[_0x18500f(0x112)]!=null&&(typeof _0x2f5685[_0x18500f(0x112)]!=_0x18500f(0x149)||_0x2f5685[_0x18500f(0x112)][_0x18500f(0x11a)]===0x0))return!0x1;for(let _0x3b6638 of[_0x2f5685['separator'],_0x2f5685[_0x18500f(0x139)],_0x2f5685['continuationNotice']])if(_0x3b6638!=null&&(_0x1ea806!=null||_0x4b5823(_0x3b6638)[_0x18500f(0x11a)]>0x0))return!0x1;return!0x0;}function w(_0x5a001c,_0x3e27db,_0x274b4e){const _0x1c0acb=_0x2ad7;var _0x196da4,_0x40c5f6;if(_0x3e27db[_0x1c0acb(0x14d)]!=null&&!C(_0x3e27db[_0x1c0acb(0x14d)],_0x274b4e,_0x3e27db['sectionId']))return!0x1;let _0x30a694=((_0x196da4=_0x5a001c['body'])==null||(_0x196da4=_0x196da4[_0x1c0acb(0x10c)])==null?void 0x0:_0x196da4[_0x1c0acb(0x14c)](_0x5993f8=>_0x5993f8[_0x1c0acb(0x117)]===_0x3e27db['sectionId']))??-0x1;if(_0x3e27db['sectionId']!=null&&_0x30a694<0x0)return!0x1;let _0x5ce190=_0x3e27db['sectionId']==null?_0x5a001c[_0x1c0acb(0x116)]:(_0x40c5f6=_0x5a001c[_0x1c0acb(0x113)])==null||(_0x40c5f6=_0x40c5f6[_0x1c0acb(0x10c)])==null?void 0x0:_0x40c5f6[_0x30a694]['noteProperties'],_0x4276ba=_0x3e27db['settings']==null?void 0x0:_0x223dfc[_0x1c0acb(0x121)](_0x3e27db[_0x1c0acb(0x14d)]),_0x33dd5b=_0x3e27db[_0x1c0acb(0x117)]==null?['noteSettings']:[_0x1c0acb(0x113),_0x1c0acb(0x10c),_0x30a694,_0x1c0acb(0x140)],_0x5ce864=_0x27e466[_0x1c0acb(0x11d)](),_0x2b52f5=null;if(_0x223dfc[_0x1c0acb(0x141)](_0x5ce190==null?void 0x0:_0x5ce190[_0x274b4e],_0x4276ba)||(_0x2b52f5=_0x5ce190==null?_0x5ce864[_0x1c0acb(0x115)](_0x33dd5b,{[_0x274b4e]:_0x4276ba}):_0x3e27db['sectionId']!=null&&_0x4276ba==null&&Object[_0x1c0acb(0x12b)](_0x5ce190)[_0x1c0acb(0x105)](_0x5b0ea4=>_0x5b0ea4===_0x274b4e)?_0x5ce864[_0x1c0acb(0xf0)](_0x33dd5b,_0x5ce190):_0x5ce864['replaceOp']([..._0x33dd5b,_0x274b4e],_0x5ce190[_0x274b4e],_0x4276ba)),_0x3e27db[_0x1c0acb(0x135)]!=null){var _0x404016;if(_0x274b4e!==_0x1c0acb(0x125)||_0x3e27db[_0x1c0acb(0x117)]==null||typeof _0x3e27db[_0x1c0acb(0x135)]!=_0x1c0acb(0x111))return!0x1;let _0x294e40=(_0x404016=_0x5a001c['body'])==null||(_0x404016=_0x404016[_0x1c0acb(0x10c)])==null?void 0x0:_0x404016[_0x30a694][_0x1c0acb(0x135)];_0x294e40!==_0x3e27db['suppressEndnotes']&&(_0x2b52f5=_0x27e466[_0x1c0acb(0xf3)](_0x2b52f5,_0x5ce864[_0x1c0acb(0x11c)]([_0x1c0acb(0x113),'sectionBreaks',_0x30a694,'suppressEndnotes'],_0x294e40,_0x3e27db[_0x1c0acb(0x135)])));}return _0x2b52f5;}function T(_0x9b2920,_0x41e12d,_0x11fdb8){const _0x51999a=_0x2ad7;if(!_0x41e12d)return!0x1;let _0xc9dded=_0x9b2920[_0x51999a(0x11b)](_0x3749d4)['getUnit'](_0x41e12d[_0x51999a(0x13f)],_0x2a21bc[_0x51999a(0x13e)]),_0x58508b=_0xc9dded==null?void 0x0:_0xc9dded[_0x51999a(0x147)]();if(!_0x58508b||_0x58508b['documentStyle'][_0x51999a(0x13d)]!==_0x1c338d[_0x51999a(0xf8)])return!0x1;let _0x34f091=w(_0x58508b,_0x41e12d,_0x11fdb8);return _0x34f091===!0x1||_0x27e466[_0x51999a(0x106)](_0x34f091)?!0x1:!!_0x9b2920[_0x51999a(0x11b)](_0x96e9cf)[_0x51999a(0x110)](_0x3c3a8a['id'],{'unitId':_0x41e12d['unitId'],'segmentId':'','historyAction':_0x51999a(0x107)+_0x11fdb8+_0x51999a(0x122),'actions':_0x34f091,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x149d55,_0x4464dd)=>T(_0x149d55,_0x4464dd,_0x354455(0xf1))},D={'id':_0x354455(0x102),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x580a51,_0x46d6bf)=>T(_0x580a51,_0x46d6bf,_0x354455(0x125))};function O(_0x1d4bb9,_0x15aa09){const _0x4c5320=_0x354455;return(_0x1d4bb9==null?void 0x0:_0x1d4bb9[_0x4c5320(0x12d)][_0x4c5320(0x13d)])===_0x1c338d[_0x4c5320(0xf8)]&&!!_0x1d4bb9[_0x4c5320(0x113)]&&Number['isInteger'](_0x15aa09)&&_0x15aa09>=0x0&&_0x15aa09<_0x1d4bb9[_0x4c5320(0x113)]['dataStream'][_0x4c5320(0x11a)]-0x1;}function k(_0x3626a5,_0x2511c2,_0x356066){const _0x4d1bcb=_0x354455;var _0x1dd9a9,_0xaa62a3;if(_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0&&_0x2511c2[_0x4d1bcb(0x135)]===void 0x0)return null;let _0x575270=_0x2511c2['sectionId']==null?(_0x1dd9a9=_0x3626a5[_0x4d1bcb(0x116)])==null?void 0x0:_0x1dd9a9[_0x356066]:(_0xaa62a3=_0x3626a5[_0x4d1bcb(0x113)])==null||(_0xaa62a3=_0xaa62a3['sectionBreaks'])==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x133)](_0x354b47=>_0x354b47[_0x4d1bcb(0x117)]===_0x2511c2[_0x4d1bcb(0x117)]))==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x140)])==null?void 0x0:_0xaa62a3[_0x356066];return w(_0x3626a5,{'settings':_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0?_0x575270??null:_0x2511c2['settings'],'sectionId':_0x2511c2[_0x4d1bcb(0x117)],'suppressEndnotes':_0x2511c2[_0x4d1bcb(0x135)]},_0x356066);}function A(_0x40d02b,_0xef7492,_0x23a2e4){const _0x4b7d94=_0x354455;var _0x46fd1c,_0xd987d6,_0x2b9b94;if(!_0xef7492||_0xef7492[_0x4b7d94(0x123)])return!0x1;let _0x36c04b=_0x40d02b['get'](_0x3749d4)[_0x4b7d94(0xfc)](_0xef7492['unitId'],_0x2a21bc[_0x4b7d94(0x13e)]),_0x645dce=_0x36c04b==null?void 0x0:_0x36c04b[_0x4b7d94(0x147)](),{offset:_0x39a975}=_0xef7492;if(!O(_0x645dce,_0x39a975))return!0x1;let _0x411a47=k(_0x645dce,_0xef7492,_0x23a2e4);if(_0x411a47===!0x1)return!0x1;let _0x27b863=_0xef7492['noteId']??_0x324573(0xc);if((_0x46fd1c=_0x645dce[_0x4b7d94(0xfb)])!=null&&_0x46fd1c[_0x27b863]||(_0xd987d6=_0x645dce[_0x4b7d94(0x143)])!=null&&_0xd987d6[_0x27b863]||(_0x2b9b94=_0x645dce[_0x4b7d94(0x10a)])!=null&&_0x2b9b94[_0x27b863])return!0x1;let _0x2b0820=_0x223dfc[_0x4b7d94(0x121)]({'type':_0x23a2e4,'noteId':_0x27b863,'body':_0xef7492[_0x4b7d94(0x113)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x20e6fe(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x17cab0(new Set()),'startIndex':0x1}]},'customMark':_0xef7492['customMark'],'referenceTextStyle':_0xef7492[_0x4b7d94(0x14a)],'tableSource':_0xef7492[_0x4b7d94(0x136)],'drawings':_0xef7492[_0x4b7d94(0x13a)],'drawingsOrder':_0xef7492[_0x4b7d94(0x142)],'lists':_0xef7492['lists']});if(_0x158a70({'notes':{[_0x27b863]:_0x2b0820}})[_0x4b7d94(0x11a)]>0x0)return!0x1;let _0x22c30b=new _0x4e06e4();_0x39a975>0x0&&_0x22c30b[_0x4b7d94(0xf4)](_0x39a975),_0x22c30b['insert'](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x23a2e4===_0x4b7d94(0xf1)?_0x18c808[_0x4b7d94(0x150)]:_0x18c808[_0x4b7d94(0x11e)],'rangeId':_0x324573(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27b863}}]});let _0x5798d5=_0x27e466['getInstance'](),_0x9fbb4a=_0x645dce['notes']==null?_0x5798d5[_0x4b7d94(0x115)]([_0x4b7d94(0xfb)],{[_0x27b863]:_0x2b0820}):_0x5798d5['insertOp'](['notes',_0x27b863],_0x2b0820);return!!_0x40d02b[_0x4b7d94(0x11b)](_0x96e9cf)[_0x4b7d94(0x110)](_0x3c3a8a['id'],{'unitId':_0xef7492[_0x4b7d94(0x13f)],'segmentId':'','historyAction':'insert-'+_0x23a2e4,'actions':_0x27e466['compose'](_0x27e466[_0x4b7d94(0xf3)](_0x411a47,_0x9fbb4a),_0x5798d5[_0x4b7d94(0xfa)](_0x22c30b[_0x4b7d94(0x103)](),[_0x4b7d94(0x113)])),'textRanges':[{'segmentId':_0x27b863,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x50de60,_0x2ec0bb,_0x2acfd5){const _0x391281=_0x354455;var _0x5efb76,_0x292ddc;if(!_0x2ec0bb)return!0x1;let _0x484d3e=_0x50de60[_0x391281(0x11b)](_0x3749d4)[_0x391281(0xfc)](_0x2ec0bb[_0x391281(0x13f)],_0x2a21bc[_0x391281(0x13e)]),_0x1f8c8d=_0x484d3e==null?void 0x0:_0x484d3e[_0x391281(0x147)](),_0x10b90d=_0x1f8c8d==null||(_0x5efb76=_0x1f8c8d[_0x391281(0xfb)])==null?void 0x0:_0x5efb76[_0x2ec0bb[_0x391281(0xff)]],_0x2a2be6=_0x1f8c8d==null||(_0x292ddc=_0x1f8c8d['body'])==null||(_0x292ddc=_0x292ddc['customRanges'])==null?void 0x0:_0x292ddc['find'](_0x3fb58b=>{const _0x2da165=_0x391281;var _0x3454f1;return(_0x3fb58b[_0x2da165(0x12a)]===_0x18c808['FOOTNOTE']||_0x3fb58b['rangeType']===_0x18c808['ENDNOTE'])&&((_0x3454f1=_0x3fb58b[_0x2da165(0x10b)])==null?void 0x0:_0x3454f1['noteId'])===_0x2ec0bb[_0x2da165(0xff)];});if(!_0x1f8c8d||_0x1f8c8d['documentStyle'][_0x391281(0x13d)]!==_0x1c338d[_0x391281(0xf8)]||!_0x10b90d||_0x10b90d['type']!==_0x2acfd5||!_0x2a2be6)return!0x1;let _0x4a773d=new _0x4e06e4();_0x2a2be6[_0x391281(0x104)]>0x0&&_0x4a773d[_0x391281(0xf4)](_0x2a2be6[_0x391281(0x104)]),_0x4a773d[_0x391281(0x137)](0x1);let _0xaebca4=_0x27e466['getInstance']();return!!_0x50de60['get'](_0x96e9cf)[_0x391281(0x110)](_0x3c3a8a['id'],{'unitId':_0x2ec0bb[_0x391281(0x13f)],'segmentId':'','historyAction':'delete-'+_0x2acfd5,'actions':_0x27e466[_0x391281(0xf3)](_0xaebca4[_0x391281(0xfa)](_0x4a773d[_0x391281(0x103)](),[_0x391281(0x113)]),_0xaebca4['removeOp']([_0x391281(0xfb),_0x2ec0bb[_0x391281(0xff)]],_0x10b90d)),'textRanges':[{'startOffset':_0x2a2be6[_0x391281(0x104)],'endOffset':_0x2a2be6['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x354455(0xf7),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x24ee12,_0x2ea241)=>A(_0x24ee12,_0x2ea241,_0x354455(0xf1))},N={'id':'doc.command.delete-footnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x2157ab,_0x1e5999)=>j(_0x2157ab,_0x1e5999,_0x354455(0xf1))},P={'id':'doc.command.insert-endnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x393aff,_0x1d38d8)=>A(_0x393aff,_0x1d38d8,_0x354455(0x125))},F={'id':_0x354455(0x13b),'type':_0x2dea21['COMMAND'],'handler':(_0x1ce22a,_0x3a4e0e)=>j(_0x1ce22a,_0x3a4e0e,'endnote')};var I='@univerjs-pro/docs-reference',L=_0x354455(0x128);const R={};function z(_0xec09fb,_0x22029b){return function(_0x155a81,_0x4ed450){_0x22029b(_0x155a81,_0x4ed450,_0xec09fb);};}function B(_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4){const _0x714d30=_0x354455;var _0x447146=arguments[_0x714d30(0x11a)],_0x493ede=_0x447146<0x3?_0x207d95:_0x1a80e4===null?_0x1a80e4=Object[_0x714d30(0x100)](_0x207d95,_0x1d3f79):_0x1a80e4,_0x46f2af;if(typeof Reflect=='object'&&typeof Reflect[_0x714d30(0x148)]=='function')_0x493ede=Reflect[_0x714d30(0x148)](_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4);else{for(var _0x470fa0=_0x26397f[_0x714d30(0x11a)]-0x1;_0x470fa0>=0x0;_0x470fa0--)(_0x46f2af=_0x26397f[_0x470fa0])&&(_0x493ede=(_0x447146<0x3?_0x46f2af(_0x493ede):_0x447146>0x3?_0x46f2af(_0x207d95,_0x1d3f79,_0x493ede):_0x46f2af(_0x207d95,_0x1d3f79))||_0x493ede);}return _0x447146>0x3&&_0x493ede&&Object[_0x714d30(0x138)](_0x207d95,_0x1d3f79,_0x493ede),_0x493ede;}function V(_0x139767){'@babel/helpers - typeof';const _0xcd2fda=_0x354455;return V=typeof Symbol==_0xcd2fda(0x14b)&&typeof Symbol['iterator']==_0xcd2fda(0xf6)?function(_0x3a7d99){return typeof _0x3a7d99;}:function(_0x2c39d5){const _0x22227e=_0xcd2fda;return _0x2c39d5&&typeof Symbol==_0x22227e(0x14b)&&_0x2c39d5[_0x22227e(0xf2)]===Symbol&&_0x2c39d5!==Symbol['prototype']?_0x22227e(0xf6):typeof _0x2c39d5;},V(_0x139767);}function H(_0x2acbd6,_0x40c98a){const _0xadaed4=_0x354455;if(V(_0x2acbd6)!='object'||!_0x2acbd6)return _0x2acbd6;var _0x13eb0d=_0x2acbd6[Symbol[_0xadaed4(0x146)]];if(_0x13eb0d!==void 0x0){var _0xbbba85=_0x13eb0d[_0xadaed4(0x10d)](_0x2acbd6,_0x40c98a||_0xadaed4(0x10f));if(V(_0xbbba85)!=_0xadaed4(0x151))return _0xbbba85;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x40c98a===_0xadaed4(0x149)?String:Number)(_0x2acbd6);}function U(_0x1c3a68){const _0x21d6dc=_0x354455;var _0x39560d=H(_0x1c3a68,_0x21d6dc(0x149));return V(_0x39560d)=='symbol'?_0x39560d:_0x39560d+'';}function W(_0x4380d9,_0x11a578,_0x4a35d5){const _0x376e7f=_0x354455;return(_0x11a578=U(_0x11a578))in _0x4380d9?Object[_0x376e7f(0x138)](_0x4380d9,_0x11a578,{'value':_0x4a35d5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4380d9[_0x11a578]=_0x4a35d5,_0x4380d9;}let G=class extends _0x24f424{constructor(_0x3a806e=R,_0x4ae6c4,_0x673061,_0x495376){const _0x7f4525=_0x354455;super(),this['_config']=_0x3a806e,this['_injector']=_0x4ae6c4,this[_0x7f4525(0x14f)]=_0x673061,this['_commandService']=_0x495376;let {..._0x5ef51c}=_0x3dfa1e({},R,this['_config']);this[_0x7f4525(0x14f)][_0x7f4525(0x126)](_0x7f4525(0x12f),_0x5ef51c);}['onStarting'](){const _0x1d589=_0x354455;[M,N,E,P,F,D]['forEach'](_0x51ca67=>this['disposeWithMe'](this[_0x1d589(0x12c)]['registerCommand'](_0x51ca67)));}};W(G,_0x354455(0x132),_0x354455(0x134)),W(G,_0x354455(0xef),I),W(G,_0x354455(0x129),L),W(G,_0x354455(0x124),_0x2a21bc['UNIVER_DOC']),G=B([_0x25103f(_0x99429e,_0x280ea7),z(0x1,_0x481bb7(_0x20836d)),z(0x2,_0x31856b),z(0x3,_0x96e9cf)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};function _0x2ad7(_0x2ad720,_0x16e2dd){_0x2ad720=_0x2ad720-0xee;const _0x15704d=_0x1570();let _0x2ad7ce=_0x15704d[_0x2ad720];return _0x2ad7ce;}function _0x1570(){const _0xb51c48=['sectionId','5454IQXbGF','1364799hUQTWe','length','get','replaceOp','getInstance','ENDNOTE','includes','474236nYugCh','deepClone','-settings','segmentId','type','endnote','setConfig','8943066IiFtIm','1.0.4','version','rangeType','keys','_commandService','documentStyle','beneathText','docs-reference.config','eachPage','2571bnZPaC','pluginName','find','UNIVER_DOCS_REFERENCE_PLUGIN','suppressEndnotes','tableSource','delete','defineProperty','continuationSeparator','drawings','doc.command.delete-endnote','236wrFKvG','documentFlavor','UNIVER_DOC','unitId','noteProperties','diffValue','drawingsOrder','headers','position','isInteger','toPrimitive','getSnapshot','decorate','string','referenceTextStyle','function','findIndex','settings','COMMAND','_configService','FOOTNOTE','object','columnCount','packageName','removeOp','footnote','constructor','compose','retain','restart','symbol','doc.command.insert-footnote','TRADITIONAL','2541UZVYCI','editOp','notes','getUnit','9837hppaeA','15ERRpTo','noteId','getOwnPropertyDescriptor','startNumber','doc.command.set-endnote-settings','serialize','startIndex','every','isNoop','set-','eachSect','1320220nHhEnf','footers','properties','sectionBreaks','call','continuous','default','syncExecuteCommand','boolean','numberFormat','body','2456qllCIh','insertOp','noteSettings'];_0x1570=function(){return _0xb51c48;};return _0x1570();}
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5c07(_0x173a84,_0x46cc7d){_0x173a84=_0x173a84-0x10a;const _0x165d51=_0x165d();let _0x5c075d=_0x165d51[_0x173a84];return _0x5c075d;}const _0x3e9fe7=_0x5c07;function _0x165d(){const _0x360d15=['insertFootnote','footnote','3288123AfRmYg','find','body','notes','noteSettings','noteProperties','1271565IzOIfL','endnote','32eaBhba','get','startIndex','setEndnoteSettings','_injector','flatMap','deleteFootnote','609061HBuNAw','40WyqReJ','syncExecuteCommand','string','534PTBJpA','sectionBreaks','185601YvuqDZ','sort','customRanges','rangeType','noteId','17857gnzoaf','properties','1711765SaVHSN','getSnapshot','988566XQqKyg','8mUXjAU','deleteEndnote','insertEndnote','deepClone','getEndnoteSettings','getFootnoteSettings','ENDNOTE','FOOTNOTE','setFootnoteSettings'];_0x165d=function(){return _0x360d15;};return _0x165d();}(function(_0x17f0d8,_0xce750b){const _0x59a14e=_0x5c07,_0x5b06ce=_0x17f0d8();while(!![]){try{const _0x4a16bd=-parseInt(_0x59a14e(0x11d))/0x1+-parseInt(_0x59a14e(0x12c))/0x2+-parseInt(_0x59a14e(0x123))/0x3*(-parseInt(_0x59a14e(0x116))/0x4)+-parseInt(_0x59a14e(0x114))/0x5+parseInt(_0x59a14e(0x121))/0x6*(parseInt(_0x59a14e(0x128))/0x7)+parseInt(_0x59a14e(0x12d))/0x8*(parseInt(_0x59a14e(0x10e))/0x9)+parseInt(_0x59a14e(0x11e))/0xa*(parseInt(_0x59a14e(0x12a))/0xb);if(_0x4a16bd===_0xce750b)break;else _0x5b06ce['push'](_0x5b06ce['shift']());}catch(_0x1eb96d){_0x5b06ce['push'](_0x5b06ce['shift']());}}}(_0x165d,0x55f7d));import{DeleteDocumentEndnoteCommand as _0x20f549,DeleteDocumentFootnoteCommand as _0x414b2,InsertDocumentEndnoteCommand as _0x57be98,InsertDocumentFootnoteCommand as _0xcd3aa8,SetDocumentEndnoteSettingsCommand as _0x2d211c,SetDocumentFootnoteSettingsCommand as _0x2cf00a}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x20f530,ICommandService as _0x2986de,Tools as _0x4f4c96,generateRandomId as _0x2083af}from'@univerjs/core';import{FDocument as _0x3f6f3f}from'@univerjs/docs/facade';var d=class extends _0x3f6f3f{[_0x3e9fe7(0x10c)](_0x4008d0,_0x2a49e9={}){const _0x4a35fe=_0x3e9fe7;let _0x15320b=_0x2083af(0xc);return this['_injector'][_0x4a35fe(0x117)](_0x2986de)[_0x4a35fe(0x11f)](_0xcd3aa8['id'],{..._0x2a49e9,'unitId':this['id'],'offset':_0x4008d0,'noteId':_0x15320b})?_0x15320b:null;}['getFootnotes'](){const _0x24432d=_0x3e9fe7;var _0x192a7e;let _0x13a822=this['getDocumentDataModel']()['getSnapshot']();return(((_0x192a7e=_0x13a822[_0x24432d(0x110)])==null?void 0x0:_0x192a7e[_0x24432d(0x125)])??[])['filter'](_0x3f5382=>_0x3f5382[_0x24432d(0x126)]===_0x20f530[_0x24432d(0x10a)])[_0x24432d(0x124)]((_0xaafa50,_0x496337)=>_0xaafa50[_0x24432d(0x118)]-_0x496337[_0x24432d(0x118)])[_0x24432d(0x11b)](_0x3a66a9=>{const _0x411af5=_0x24432d;var _0x2a027b,_0x5c779c;let _0xe16551=(_0x2a027b=_0x3a66a9[_0x411af5(0x129)])==null?void 0x0:_0x2a027b[_0x411af5(0x127)],_0xae4908=typeof _0xe16551==_0x411af5(0x120)?(_0x5c779c=_0x13a822['notes'])==null?void 0x0:_0x5c779c[_0xe16551]:void 0x0;return _0xae4908?[_0x4f4c96[_0x411af5(0x130)](_0xae4908)]:[];});}[_0x3e9fe7(0x11c)](_0x3aaacb){const _0x1e6a83=_0x3e9fe7;return this[_0x1e6a83(0x11a)][_0x1e6a83(0x117)](_0x2986de)[_0x1e6a83(0x11f)](_0x414b2['id'],{'unitId':this['id'],'noteId':_0x3aaacb});}[_0x3e9fe7(0x132)](_0x1a55b4){const _0x47789a=_0x3e9fe7;var _0x2bbc34,_0x15ef65;let _0x240be5=this['getDocumentDataModel']()[_0x47789a(0x12b)](),_0x164671=_0x1a55b4==null?(_0x2bbc34=_0x240be5[_0x47789a(0x112)])==null?void 0x0:_0x2bbc34[_0x47789a(0x10d)]:(_0x15ef65=_0x240be5[_0x47789a(0x110)])==null||(_0x15ef65=_0x15ef65[_0x47789a(0x122)])==null||(_0x15ef65=_0x15ef65[_0x47789a(0x10f)](_0x52a240=>_0x52a240['sectionId']===_0x1a55b4))==null||(_0x15ef65=_0x15ef65['noteProperties'])==null?void 0x0:_0x15ef65['footnote'];return _0x164671==null?void 0x0:_0x4f4c96[_0x47789a(0x130)](_0x164671);}[_0x3e9fe7(0x10b)](_0x20a59f,_0x3be077){const _0x3a04c4=_0x3e9fe7;return this['_injector'][_0x3a04c4(0x117)](_0x2986de)[_0x3a04c4(0x11f)](_0x2cf00a['id'],{'unitId':this['id'],'settings':_0x20a59f,'sectionId':_0x3be077});}[_0x3e9fe7(0x12f)](_0x27b8b2,_0x2f3224={}){const _0x44036c=_0x3e9fe7;let _0xb67386=_0x2083af(0xc);return this[_0x44036c(0x11a)][_0x44036c(0x117)](_0x2986de)[_0x44036c(0x11f)](_0x57be98['id'],{..._0x2f3224,'unitId':this['id'],'offset':_0x27b8b2,'noteId':_0xb67386})?_0xb67386:null;}['getEndnotes'](){const _0x1d6700=_0x3e9fe7;var _0x49e0d3;let _0x361372=this['getDocumentDataModel']()[_0x1d6700(0x12b)]();return(((_0x49e0d3=_0x361372[_0x1d6700(0x110)])==null?void 0x0:_0x49e0d3['customRanges'])??[])['filter'](_0x489f4c=>_0x489f4c[_0x1d6700(0x126)]===_0x20f530[_0x1d6700(0x133)])[_0x1d6700(0x124)]((_0x14d5c3,_0x212bba)=>_0x14d5c3[_0x1d6700(0x118)]-_0x212bba[_0x1d6700(0x118)])[_0x1d6700(0x11b)](_0x2d0abd=>{const _0x4acc38=_0x1d6700;var _0x2b0562,_0x32540f;let _0x460b90=(_0x2b0562=_0x2d0abd['properties'])==null?void 0x0:_0x2b0562[_0x4acc38(0x127)],_0x69f695=typeof _0x460b90==_0x4acc38(0x120)?(_0x32540f=_0x361372[_0x4acc38(0x111)])==null?void 0x0:_0x32540f[_0x460b90]:void 0x0;return _0x69f695?[_0x4f4c96['deepClone'](_0x69f695)]:[];});}[_0x3e9fe7(0x12e)](_0x136e25){const _0x10119d=_0x3e9fe7;return this[_0x10119d(0x11a)]['get'](_0x2986de)[_0x10119d(0x11f)](_0x20f549['id'],{'unitId':this['id'],'noteId':_0x136e25});}[_0x3e9fe7(0x131)](_0x3ba12f){const _0x9b75ca=_0x3e9fe7;var _0x498f9a,_0x56a58d;let _0x1d09c5=this['getDocumentDataModel']()[_0x9b75ca(0x12b)](),_0x2cc1b5=_0x3ba12f==null?(_0x498f9a=_0x1d09c5[_0x9b75ca(0x112)])==null?void 0x0:_0x498f9a[_0x9b75ca(0x115)]:(_0x56a58d=_0x1d09c5[_0x9b75ca(0x110)])==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x122)])==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x10f)](_0x1edeb0=>_0x1edeb0['sectionId']===_0x3ba12f))==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x113)])==null?void 0x0:_0x56a58d[_0x9b75ca(0x115)];return _0x2cc1b5==null?void 0x0:_0x4f4c96[_0x9b75ca(0x130)](_0x2cc1b5);}[_0x3e9fe7(0x119)](_0x195d73,_0x1f6786){const _0x2bb0eb=_0x3e9fe7;return this['_injector'][_0x2bb0eb(0x117)](_0x2986de)[_0x2bb0eb(0x11f)](_0x2d211c['id'],{'unitId':this['id'],'settings':_0x195d73,'sectionId':_0x1f6786});}};_0x3f6f3f['extend'](d);export{};
1
+ const _0x1d2878=_0x3b8a;(function(_0x1a453d,_0x2ea472){const _0x4cf73d=_0x3b8a,_0x502bfe=_0x1a453d();while(!![]){try{const _0x2862cb=parseInt(_0x4cf73d(0xd0))/0x1+parseInt(_0x4cf73d(0xcc))/0x2*(-parseInt(_0x4cf73d(0xcb))/0x3)+parseInt(_0x4cf73d(0xe3))/0x4*(-parseInt(_0x4cf73d(0xe1))/0x5)+-parseInt(_0x4cf73d(0xca))/0x6*(parseInt(_0x4cf73d(0xc7))/0x7)+-parseInt(_0x4cf73d(0xe4))/0x8+-parseInt(_0x4cf73d(0xc3))/0x9*(parseInt(_0x4cf73d(0xea))/0xa)+parseInt(_0x4cf73d(0xe2))/0xb;if(_0x2862cb===_0x2ea472)break;else _0x502bfe['push'](_0x502bfe['shift']());}catch(_0x215617){_0x502bfe['push'](_0x502bfe['shift']());}}}(_0xa1af,0xb5794));import{DeleteDocumentEndnoteCommand as _0x211c67,DeleteDocumentFootnoteCommand as _0x5785b7,InsertDocumentEndnoteCommand as _0x2530bf,InsertDocumentFootnoteCommand as _0x25ee27,SetDocumentEndnoteSettingsCommand as _0x4211e1,SetDocumentFootnoteSettingsCommand as _0xed7692}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x252077,ICommandService as _0x46bda6,Tools as _0x452626,generateRandomId as _0x331e7d}from'@univerjs/core';function _0x3b8a(_0x40e9f0,_0x3a21d8){_0x40e9f0=_0x40e9f0-0xbd;const _0xa1af2b=_0xa1af();let _0x3b8ae7=_0xa1af2b[_0x40e9f0];return _0x3b8ae7;}function _0xa1af(){const _0x360b74=['ENDNOTE','301507ANOoiR','getDocumentDataModel','rangeType','startIndex','noteId','find','sort','getSnapshot','notes','endnote','FOOTNOTE','getEndnotes','syncExecuteCommand','_injector','noteSettings','setEndnoteSettings','body','151745xxFnAc','47214948oqpKYC','92MzBJRD','11126896hKFAEp','filter','insertEndnote','sectionId','noteProperties','get','1280dvzkmG','flatMap','deleteFootnote','getEndnoteSettings','deepClone','string','properties','77472zgexOU','getFootnoteSettings','customRanges','deleteEndnote','4509925JCdmZd','footnote','sectionBreaks','6bYtdpB','5157BctCPJ','18kktjZu','getFootnotes','setFootnoteSettings'];_0xa1af=function(){return _0x360b74;};return _0xa1af();}import{FDocument as _0x1c301a}from'@univerjs/docs/facade';var d=class extends _0x1c301a{['insertFootnote'](_0x546510,_0x383eac={}){const _0x521ab2=_0x3b8a;let _0x366cb0=_0x331e7d(0xc);return this[_0x521ab2(0xdd)][_0x521ab2(0xe9)](_0x46bda6)[_0x521ab2(0xdc)](_0x25ee27['id'],{..._0x383eac,'unitId':this['id'],'offset':_0x546510,'noteId':_0x366cb0})?_0x366cb0:null;}[_0x1d2878(0xcd)](){const _0x535ec3=_0x1d2878;var _0x148161;let _0x491d30=this[_0x535ec3(0xd1)]()[_0x535ec3(0xd7)]();return(((_0x148161=_0x491d30['body'])==null?void 0x0:_0x148161[_0x535ec3(0xc5)])??[])[_0x535ec3(0xe5)](_0x3aabca=>_0x3aabca[_0x535ec3(0xd2)]===_0x252077[_0x535ec3(0xda)])[_0x535ec3(0xd6)]((_0x5aa6de,_0x204641)=>_0x5aa6de[_0x535ec3(0xd3)]-_0x204641[_0x535ec3(0xd3)])[_0x535ec3(0xbd)](_0x234680=>{const _0x288e55=_0x535ec3;var _0x3d4471,_0x3b5494;let _0x3d893f=(_0x3d4471=_0x234680[_0x288e55(0xc2)])==null?void 0x0:_0x3d4471[_0x288e55(0xd4)],_0x37f03e=typeof _0x3d893f==_0x288e55(0xc1)?(_0x3b5494=_0x491d30['notes'])==null?void 0x0:_0x3b5494[_0x3d893f]:void 0x0;return _0x37f03e?[_0x452626['deepClone'](_0x37f03e)]:[];});}[_0x1d2878(0xbe)](_0x4202a8){const _0x4f1e04=_0x1d2878;return this[_0x4f1e04(0xdd)][_0x4f1e04(0xe9)](_0x46bda6)[_0x4f1e04(0xdc)](_0x5785b7['id'],{'unitId':this['id'],'noteId':_0x4202a8});}[_0x1d2878(0xc4)](_0x434da4){const _0x140cc2=_0x1d2878;var _0x5f284a,_0x2adc89;let _0x25fd55=this[_0x140cc2(0xd1)]()[_0x140cc2(0xd7)](),_0x3053e3=_0x434da4==null?(_0x5f284a=_0x25fd55[_0x140cc2(0xde)])==null?void 0x0:_0x5f284a[_0x140cc2(0xc8)]:(_0x2adc89=_0x25fd55[_0x140cc2(0xe0)])==null||(_0x2adc89=_0x2adc89['sectionBreaks'])==null||(_0x2adc89=_0x2adc89[_0x140cc2(0xd5)](_0x2a9970=>_0x2a9970[_0x140cc2(0xe7)]===_0x434da4))==null||(_0x2adc89=_0x2adc89[_0x140cc2(0xe8)])==null?void 0x0:_0x2adc89['footnote'];return _0x3053e3==null?void 0x0:_0x452626[_0x140cc2(0xc0)](_0x3053e3);}[_0x1d2878(0xce)](_0x305227,_0x32f28b){const _0x2d51e2=_0x1d2878;return this[_0x2d51e2(0xdd)][_0x2d51e2(0xe9)](_0x46bda6)[_0x2d51e2(0xdc)](_0xed7692['id'],{'unitId':this['id'],'settings':_0x305227,'sectionId':_0x32f28b});}[_0x1d2878(0xe6)](_0x447fb9,_0x5c8df1={}){const _0xde97e2=_0x1d2878;let _0x289b08=_0x331e7d(0xc);return this[_0xde97e2(0xdd)][_0xde97e2(0xe9)](_0x46bda6)[_0xde97e2(0xdc)](_0x2530bf['id'],{..._0x5c8df1,'unitId':this['id'],'offset':_0x447fb9,'noteId':_0x289b08})?_0x289b08:null;}[_0x1d2878(0xdb)](){const _0x367581=_0x1d2878;var _0x1cd864;let _0x21ec4b=this[_0x367581(0xd1)]()[_0x367581(0xd7)]();return(((_0x1cd864=_0x21ec4b[_0x367581(0xe0)])==null?void 0x0:_0x1cd864[_0x367581(0xc5)])??[])[_0x367581(0xe5)](_0x260237=>_0x260237['rangeType']===_0x252077[_0x367581(0xcf)])[_0x367581(0xd6)]((_0x55cdae,_0x4a9e6f)=>_0x55cdae['startIndex']-_0x4a9e6f['startIndex'])[_0x367581(0xbd)](_0x51e9e5=>{const _0x1e9a6f=_0x367581;var _0x3143b8,_0x2d8bb5;let _0x1a0cb5=(_0x3143b8=_0x51e9e5[_0x1e9a6f(0xc2)])==null?void 0x0:_0x3143b8[_0x1e9a6f(0xd4)],_0x1fabde=typeof _0x1a0cb5==_0x1e9a6f(0xc1)?(_0x2d8bb5=_0x21ec4b[_0x1e9a6f(0xd8)])==null?void 0x0:_0x2d8bb5[_0x1a0cb5]:void 0x0;return _0x1fabde?[_0x452626[_0x1e9a6f(0xc0)](_0x1fabde)]:[];});}[_0x1d2878(0xc6)](_0x3d10b7){const _0x42806c=_0x1d2878;return this[_0x42806c(0xdd)][_0x42806c(0xe9)](_0x46bda6)['syncExecuteCommand'](_0x211c67['id'],{'unitId':this['id'],'noteId':_0x3d10b7});}[_0x1d2878(0xbf)](_0x49c0aa){const _0x3302d8=_0x1d2878;var _0x4b9eee,_0x111302;let _0x5ce1cf=this[_0x3302d8(0xd1)]()[_0x3302d8(0xd7)](),_0x331bfa=_0x49c0aa==null?(_0x4b9eee=_0x5ce1cf[_0x3302d8(0xde)])==null?void 0x0:_0x4b9eee[_0x3302d8(0xd9)]:(_0x111302=_0x5ce1cf['body'])==null||(_0x111302=_0x111302[_0x3302d8(0xc9)])==null||(_0x111302=_0x111302['find'](_0x432865=>_0x432865['sectionId']===_0x49c0aa))==null||(_0x111302=_0x111302[_0x3302d8(0xe8)])==null?void 0x0:_0x111302[_0x3302d8(0xd9)];return _0x331bfa==null?void 0x0:_0x452626['deepClone'](_0x331bfa);}[_0x1d2878(0xdf)](_0xdb883b,_0xe0e636){const _0x24da11=_0x1d2878;return this[_0x24da11(0xdd)][_0x24da11(0xe9)](_0x46bda6)[_0x24da11(0xdc)](_0x4211e1['id'],{'unitId':this['id'],'settings':_0xdb883b,'sectionId':_0xe0e636});}};_0x1c301a['extend'](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3daf98=_0x32ce;function _0x51c2(){const _0xf19e97=['endnote','getInstance','@univerjs-pro/docs-reference','2175397kMeVnG','includes','671200IcOIaC','decorate','eachPage','numberFormat','getUnit','noteProperties','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','16nDTGPo','doc.command.set-footnote-settings','pageBottom','restart','TRADITIONAL','defineProperty','doc.command.insert-footnote','11703370TgOsby','customMark','1.0.2','settings','setConfig','boolean','string','suppressEndnotes','lists','editOp','headers','properties','body','doc.command.delete-footnote','201mbnoZp','-settings','isNoop','length','1878395Tyrdme','noteSettings','findIndex','continuationSeparator','1051263ZmsQkd','function','doc.command.set-endnote-settings','replaceOp','columnCount','onStarting','_commandService','retain','sectEnd','pluginName','dataStream','syncExecuteCommand','deepClone','diffValue','eachSect','docs-reference.config','position','noteId','drawings','drawingsOrder','ENDNOTE','serialize','removeOp','get','symbol','documentStyle','37424fbPskr','footnote','getSnapshot','startIndex','_configService','6nNdmeK','compose','COMMAND','startNumber','_config','sectionId','keys','insert-','delete','UNIVER_DOCS_REFERENCE_PLUGIN','toPrimitive','isInteger','constructor','insert','object','265078xpuDjf','UNIVER_DOC','segmentId','documentFlavor','type','default','notes','separator','call','doc.command.insert-endnote','customRanges','insertOp','unitId','delete-','sectionBreaks','forEach','tableSource','version','rangeType','disposeWithMe'];_0x51c2=function(){return _0xf19e97;};return _0x51c2();}(function(_0x2f3a92,_0x5dbd94){const _0x26e7e3=_0x32ce,_0x53e712=_0x2f3a92();while(!![]){try{const _0x42d287=-parseInt(_0x26e7e3(0xb3))/0x1+-parseInt(_0x26e7e3(0xcc))/0x2+-parseInt(_0x26e7e3(0xe8))/0x3*(-parseInt(_0x26e7e3(0x9f))/0x4)+parseInt(_0x26e7e3(0xec))/0x5*(-parseInt(_0x26e7e3(0xa4))/0x6)+-parseInt(_0x26e7e3(0xca))/0x7*(parseInt(_0x26e7e3(0xd3))/0x8)+parseInt(_0x26e7e3(0xf0))/0x9+parseInt(_0x26e7e3(0xda))/0xa;if(_0x42d287===_0x5dbd94)break;else _0x53e712['push'](_0x53e712['shift']());}catch(_0x2d5d6b){_0x53e712['push'](_0x53e712['shift']());}}}(_0x51c2,0x4d2c1));function _0x32ce(_0x22fa91,_0x56e465){_0x22fa91=_0x22fa91-0x90;const _0x51c2d4=_0x51c2();let _0x32ce89=_0x51c2d4[_0x22fa91];return _0x32ce89;}import{CommandType as _0x15545a,CustomRangeType as _0x45f257,DependentOn as _0x33e7c2,DocumentFlavor as _0x5c0d70,ICommandService as _0x19a995,IConfigService as _0x2afe4e,IUniverInstanceService as _0xc0ec08,Inject as _0x2dd80e,Injector as _0x348363,JSONX as _0x184147,Plugin as _0x1b8fd4,TextX as _0x4cd513,Tools as _0x4724ad,UniverInstanceType as _0x2699ed,createParagraphId as _0x513e99,createSectionId as _0x51287d,generateRandomId as _0xcecbd4,merge as _0x185aa9,validateDocBodyStructure as _0x14da4d,validateDocumentStructure as _0x2e2495}from'@univerjs/core';import{RichTextEditingMutation as _0x25e0c1,UniverDocsPlugin as _0x1056a6}from'@univerjs/docs';import{UniverLicensePlugin as _0x3f86ff}from'@univerjs-pro/license';function C(_0x451956,_0x111183,_0x309dbc){const _0x1bfb8b=_0x32ce;if(_0x451956[_0x1bfb8b(0x95)]!=null&&!(_0x111183===_0x1bfb8b(0xa0)?[_0x1bfb8b(0xd5),'beneathText']:['docEnd',_0x1bfb8b(0xf8)])['includes'](_0x451956['position'])||_0x451956[_0x1bfb8b(0xd6)]!=null&&!(_0x111183==='footnote'?['continuous',_0x1bfb8b(0x93),_0x1bfb8b(0xce)]:['continuous',_0x1bfb8b(0x93)])[_0x1bfb8b(0xcb)](_0x451956[_0x1bfb8b(0xd6)])||_0x451956[_0x1bfb8b(0xa7)]!=null&&(!Number[_0x1bfb8b(0xaf)](_0x451956[_0x1bfb8b(0xa7)])||_0x451956['startNumber']<0x1)||_0x1bfb8b(0xf4)in _0x451956&&_0x451956[_0x1bfb8b(0xf4)]!=null&&(_0x111183!==_0x1bfb8b(0xa0)||!Number[_0x1bfb8b(0xaf)](_0x451956[_0x1bfb8b(0xf4)])||_0x451956[_0x1bfb8b(0xf4)]<0x0||_0x451956[_0x1bfb8b(0xf4)]>0x4)||_0x451956['numberFormat']!=null&&(typeof _0x451956[_0x1bfb8b(0xcf)]!=_0x1bfb8b(0xe0)||_0x451956[_0x1bfb8b(0xcf)][_0x1bfb8b(0xeb)]===0x0))return!0x1;for(let _0x5982e7 of[_0x451956[_0x1bfb8b(0xba)],_0x451956[_0x1bfb8b(0xef)],_0x451956['continuationNotice']])if(_0x5982e7!=null&&(_0x309dbc!=null||_0x14da4d(_0x5982e7)[_0x1bfb8b(0xeb)]>0x0))return!0x1;return!0x0;}function w(_0xb610d4,_0x38a8ac,_0x353c32){const _0x320c4e=_0x32ce;var _0x43bce1,_0x2681f8;if(_0x38a8ac[_0x320c4e(0xdd)]!=null&&!C(_0x38a8ac[_0x320c4e(0xdd)],_0x353c32,_0x38a8ac[_0x320c4e(0xa9)]))return!0x1;let _0x1717c2=((_0x43bce1=_0xb610d4[_0x320c4e(0xe6)])==null||(_0x43bce1=_0x43bce1[_0x320c4e(0xc1)])==null?void 0x0:_0x43bce1[_0x320c4e(0xee)](_0x5e9ed2=>_0x5e9ed2[_0x320c4e(0xa9)]===_0x38a8ac[_0x320c4e(0xa9)]))??-0x1;if(_0x38a8ac['sectionId']!=null&&_0x1717c2<0x0)return!0x1;let _0x18fa85=_0x38a8ac['sectionId']==null?_0xb610d4[_0x320c4e(0xed)]:(_0x2681f8=_0xb610d4['body'])==null||(_0x2681f8=_0x2681f8[_0x320c4e(0xc1)])==null?void 0x0:_0x2681f8[_0x1717c2][_0x320c4e(0xd1)],_0x11a2ff=_0x38a8ac[_0x320c4e(0xdd)]==null?void 0x0:_0x4724ad[_0x320c4e(0x91)](_0x38a8ac[_0x320c4e(0xdd)]),_0x5d7086=_0x38a8ac['sectionId']==null?[_0x320c4e(0xed)]:[_0x320c4e(0xe6),_0x320c4e(0xc1),_0x1717c2,_0x320c4e(0xd1)],_0x22667f=_0x184147['getInstance'](),_0x372736=null;if(_0x4724ad[_0x320c4e(0x92)](_0x18fa85==null?void 0x0:_0x18fa85[_0x353c32],_0x11a2ff)||(_0x372736=_0x18fa85==null?_0x22667f['insertOp'](_0x5d7086,{[_0x353c32]:_0x11a2ff}):_0x38a8ac['sectionId']!=null&&_0x11a2ff==null&&Object[_0x320c4e(0xaa)](_0x18fa85)['every'](_0x234a95=>_0x234a95===_0x353c32)?_0x22667f[_0x320c4e(0x9b)](_0x5d7086,_0x18fa85):_0x22667f[_0x320c4e(0xf3)]([..._0x5d7086,_0x353c32],_0x18fa85[_0x353c32],_0x11a2ff)),_0x38a8ac[_0x320c4e(0xe1)]!=null){var _0x1869a6;if(_0x353c32!=='endnote'||_0x38a8ac[_0x320c4e(0xa9)]==null||typeof _0x38a8ac[_0x320c4e(0xe1)]!=_0x320c4e(0xdf))return!0x1;let _0x1deb12=(_0x1869a6=_0xb610d4[_0x320c4e(0xe6)])==null||(_0x1869a6=_0x1869a6[_0x320c4e(0xc1)])==null?void 0x0:_0x1869a6[_0x1717c2][_0x320c4e(0xe1)];_0x1deb12!==_0x38a8ac[_0x320c4e(0xe1)]&&(_0x372736=_0x184147['compose'](_0x372736,_0x22667f[_0x320c4e(0xf3)]([_0x320c4e(0xe6),_0x320c4e(0xc1),_0x1717c2,_0x320c4e(0xe1)],_0x1deb12,_0x38a8ac[_0x320c4e(0xe1)])));}return _0x372736;}function T(_0x40672d,_0x4812b3,_0x44e288){const _0x534a09=_0x32ce;if(!_0x4812b3)return!0x1;let _0x28caea=_0x40672d[_0x534a09(0x9c)](_0xc0ec08)[_0x534a09(0xd0)](_0x4812b3[_0x534a09(0xbf)],_0x2699ed[_0x534a09(0xb4)]),_0x41bcb8=_0x28caea==null?void 0x0:_0x28caea[_0x534a09(0xa1)]();if(!_0x41bcb8||_0x41bcb8['documentStyle'][_0x534a09(0xb6)]!==_0x5c0d70['TRADITIONAL'])return!0x1;let _0x214774=w(_0x41bcb8,_0x4812b3,_0x44e288);return _0x214774===!0x1||_0x184147[_0x534a09(0xea)](_0x214774)?!0x1:!!_0x40672d[_0x534a09(0x9c)](_0x19a995)[_0x534a09(0x90)](_0x25e0c1['id'],{'unitId':_0x4812b3['unitId'],'segmentId':'','historyAction':'set-'+_0x44e288+_0x534a09(0xe9),'actions':_0x214774,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x3daf98(0xd4),'type':_0x15545a['COMMAND'],'handler':(_0x454f7b,_0x4991da)=>T(_0x454f7b,_0x4991da,_0x3daf98(0xa0))},D={'id':_0x3daf98(0xf2),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x5c1a8d,_0x34115a)=>T(_0x5c1a8d,_0x34115a,_0x3daf98(0xc7))};function O(_0x124424,_0x5e258f){const _0xe97b3f=_0x3daf98;return(_0x124424==null?void 0x0:_0x124424['documentStyle'][_0xe97b3f(0xb6)])===_0x5c0d70[_0xe97b3f(0xd7)]&&!!_0x124424[_0xe97b3f(0xe6)]&&Number[_0xe97b3f(0xaf)](_0x5e258f)&&_0x5e258f>=0x0&&_0x5e258f<_0x124424[_0xe97b3f(0xe6)][_0xe97b3f(0xfa)][_0xe97b3f(0xeb)]-0x1;}function k(_0x1e4038,_0x1219f6,_0x45582f){const _0x259e8d=_0x3daf98;var _0x6b0f10,_0x3e73cb;if(_0x1219f6[_0x259e8d(0xdd)]===void 0x0&&_0x1219f6[_0x259e8d(0xe1)]===void 0x0)return null;let _0x4b160d=_0x1219f6[_0x259e8d(0xa9)]==null?(_0x6b0f10=_0x1e4038[_0x259e8d(0xed)])==null?void 0x0:_0x6b0f10[_0x45582f]:(_0x3e73cb=_0x1e4038[_0x259e8d(0xe6)])==null||(_0x3e73cb=_0x3e73cb[_0x259e8d(0xc1)])==null||(_0x3e73cb=_0x3e73cb['find'](_0x21c732=>_0x21c732[_0x259e8d(0xa9)]===_0x1219f6[_0x259e8d(0xa9)]))==null||(_0x3e73cb=_0x3e73cb[_0x259e8d(0xd1)])==null?void 0x0:_0x3e73cb[_0x45582f];return w(_0x1e4038,{'settings':_0x1219f6[_0x259e8d(0xdd)]===void 0x0?_0x4b160d??null:_0x1219f6[_0x259e8d(0xdd)],'sectionId':_0x1219f6[_0x259e8d(0xa9)],'suppressEndnotes':_0x1219f6[_0x259e8d(0xe1)]},_0x45582f);}function A(_0x336695,_0x5eecd2,_0x599fb5){const _0x3640c1=_0x3daf98;var _0x494d8b,_0x2c4e48,_0x4a9a09;if(!_0x5eecd2||_0x5eecd2[_0x3640c1(0xb5)])return!0x1;let _0x1ae203=_0x336695['get'](_0xc0ec08)[_0x3640c1(0xd0)](_0x5eecd2[_0x3640c1(0xbf)],_0x2699ed['UNIVER_DOC']),_0x69c894=_0x1ae203==null?void 0x0:_0x1ae203[_0x3640c1(0xa1)](),{offset:_0x1cb5c0}=_0x5eecd2;if(!O(_0x69c894,_0x1cb5c0))return!0x1;let _0x4aa026=k(_0x69c894,_0x5eecd2,_0x599fb5);if(_0x4aa026===!0x1)return!0x1;let _0x4952e0=_0x5eecd2[_0x3640c1(0x96)]??_0xcecbd4(0xc);if((_0x494d8b=_0x69c894[_0x3640c1(0xb9)])!=null&&_0x494d8b[_0x4952e0]||(_0x2c4e48=_0x69c894[_0x3640c1(0xe4)])!=null&&_0x2c4e48[_0x4952e0]||(_0x4a9a09=_0x69c894['footers'])!=null&&_0x4a9a09[_0x4952e0])return!0x1;let _0xdcd31e=_0x4724ad[_0x3640c1(0x91)]({'type':_0x599fb5,'noteId':_0x4952e0,'body':_0x5eecd2[_0x3640c1(0xe6)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x513e99(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x51287d(new Set()),'startIndex':0x1}]},'customMark':_0x5eecd2[_0x3640c1(0xdb)],'referenceTextStyle':_0x5eecd2['referenceTextStyle'],'tableSource':_0x5eecd2[_0x3640c1(0xc3)],'drawings':_0x5eecd2[_0x3640c1(0x97)],'drawingsOrder':_0x5eecd2[_0x3640c1(0x98)],'lists':_0x5eecd2[_0x3640c1(0xe2)]});if(_0x2e2495({'notes':{[_0x4952e0]:_0xdcd31e}})['length']>0x0)return!0x1;let _0x4d1214=new _0x4cd513();_0x1cb5c0>0x0&&_0x4d1214[_0x3640c1(0xf7)](_0x1cb5c0),_0x4d1214[_0x3640c1(0xb1)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x599fb5===_0x3640c1(0xa0)?_0x45f257['FOOTNOTE']:_0x45f257[_0x3640c1(0x99)],'rangeId':_0xcecbd4(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4952e0}}]});let _0x2cf56a=_0x184147[_0x3640c1(0xc8)](),_0x4261f4=_0x69c894[_0x3640c1(0xb9)]==null?_0x2cf56a[_0x3640c1(0xbe)](['notes'],{[_0x4952e0]:_0xdcd31e}):_0x2cf56a['insertOp']([_0x3640c1(0xb9),_0x4952e0],_0xdcd31e);return!!_0x336695[_0x3640c1(0x9c)](_0x19a995)['syncExecuteCommand'](_0x25e0c1['id'],{'unitId':_0x5eecd2['unitId'],'segmentId':'','historyAction':_0x3640c1(0xab)+_0x599fb5,'actions':_0x184147[_0x3640c1(0xa5)](_0x184147['compose'](_0x4aa026,_0x4261f4),_0x2cf56a[_0x3640c1(0xe3)](_0x4d1214[_0x3640c1(0x9a)](),[_0x3640c1(0xe6)])),'textRanges':[{'segmentId':_0x4952e0,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x5a3ed7,_0xce13f7,_0x101a07){const _0x1bce43=_0x3daf98;var _0x591bf9,_0x227140;if(!_0xce13f7)return!0x1;let _0x1b5a3f=_0x5a3ed7['get'](_0xc0ec08)[_0x1bce43(0xd0)](_0xce13f7['unitId'],_0x2699ed[_0x1bce43(0xb4)]),_0x3b79c8=_0x1b5a3f==null?void 0x0:_0x1b5a3f[_0x1bce43(0xa1)](),_0x1db5e0=_0x3b79c8==null||(_0x591bf9=_0x3b79c8[_0x1bce43(0xb9)])==null?void 0x0:_0x591bf9[_0xce13f7[_0x1bce43(0x96)]],_0x1f4219=_0x3b79c8==null||(_0x227140=_0x3b79c8[_0x1bce43(0xe6)])==null||(_0x227140=_0x227140[_0x1bce43(0xbd)])==null?void 0x0:_0x227140['find'](_0x1dacc8=>{const _0x16c580=_0x1bce43;var _0x32052f;return(_0x1dacc8['rangeType']===_0x45f257['FOOTNOTE']||_0x1dacc8[_0x16c580(0xc5)]===_0x45f257[_0x16c580(0x99)])&&((_0x32052f=_0x1dacc8[_0x16c580(0xe5)])==null?void 0x0:_0x32052f['noteId'])===_0xce13f7[_0x16c580(0x96)];});if(!_0x3b79c8||_0x3b79c8[_0x1bce43(0x9e)][_0x1bce43(0xb6)]!==_0x5c0d70[_0x1bce43(0xd7)]||!_0x1db5e0||_0x1db5e0[_0x1bce43(0xb7)]!==_0x101a07||!_0x1f4219)return!0x1;let _0x4a65bc=new _0x4cd513();_0x1f4219[_0x1bce43(0xa2)]>0x0&&_0x4a65bc[_0x1bce43(0xf7)](_0x1f4219[_0x1bce43(0xa2)]),_0x4a65bc[_0x1bce43(0xac)](0x1);let _0x3da97e=_0x184147[_0x1bce43(0xc8)]();return!!_0x5a3ed7[_0x1bce43(0x9c)](_0x19a995)[_0x1bce43(0x90)](_0x25e0c1['id'],{'unitId':_0xce13f7[_0x1bce43(0xbf)],'segmentId':'','historyAction':_0x1bce43(0xc0)+_0x101a07,'actions':_0x184147['compose'](_0x3da97e[_0x1bce43(0xe3)](_0x4a65bc['serialize'](),[_0x1bce43(0xe6)]),_0x3da97e[_0x1bce43(0x9b)](['notes',_0xce13f7[_0x1bce43(0x96)]],_0x1db5e0)),'textRanges':[{'startOffset':_0x1f4219[_0x1bce43(0xa2)],'endOffset':_0x1f4219[_0x1bce43(0xa2)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x3daf98(0xd9),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0xfa3d92,_0x3be213)=>A(_0xfa3d92,_0x3be213,_0x3daf98(0xa0))},N={'id':_0x3daf98(0xe7),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x12ceb6,_0x361470)=>j(_0x12ceb6,_0x361470,_0x3daf98(0xa0))},P={'id':_0x3daf98(0xbc),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x2878be,_0xdb2cc)=>A(_0x2878be,_0xdb2cc,'endnote')},F={'id':'doc.command.delete-endnote','type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x46e3ec,_0x28069a)=>j(_0x46e3ec,_0x28069a,'endnote')};var I=_0x3daf98(0xc9),L=_0x3daf98(0xdc);const R={};function z(_0x3fd14b,_0x3e0a16){return function(_0x482c38,_0x471061){_0x3e0a16(_0x482c38,_0x471061,_0x3fd14b);};}function B(_0x2116b0,_0x41c026,_0x44cd19,_0x358839){const _0x4326c1=_0x3daf98;var _0x18a35f=arguments['length'],_0x4a10a1=_0x18a35f<0x3?_0x41c026:_0x358839===null?_0x358839=Object['getOwnPropertyDescriptor'](_0x41c026,_0x44cd19):_0x358839,_0x25ee78;if(typeof Reflect=='object'&&typeof Reflect[_0x4326c1(0xcd)]==_0x4326c1(0xf1))_0x4a10a1=Reflect[_0x4326c1(0xcd)](_0x2116b0,_0x41c026,_0x44cd19,_0x358839);else{for(var _0x2ea153=_0x2116b0[_0x4326c1(0xeb)]-0x1;_0x2ea153>=0x0;_0x2ea153--)(_0x25ee78=_0x2116b0[_0x2ea153])&&(_0x4a10a1=(_0x18a35f<0x3?_0x25ee78(_0x4a10a1):_0x18a35f>0x3?_0x25ee78(_0x41c026,_0x44cd19,_0x4a10a1):_0x25ee78(_0x41c026,_0x44cd19))||_0x4a10a1);}return _0x18a35f>0x3&&_0x4a10a1&&Object[_0x4326c1(0xd8)](_0x41c026,_0x44cd19,_0x4a10a1),_0x4a10a1;}function V(_0x391a59){'@babel/helpers - typeof';const _0x4d5e3a=_0x3daf98;return V=typeof Symbol==_0x4d5e3a(0xf1)&&typeof Symbol['iterator']=='symbol'?function(_0x4c20e3){return typeof _0x4c20e3;}:function(_0x54a9a3){const _0x464cb5=_0x4d5e3a;return _0x54a9a3&&typeof Symbol==_0x464cb5(0xf1)&&_0x54a9a3[_0x464cb5(0xb0)]===Symbol&&_0x54a9a3!==Symbol['prototype']?_0x464cb5(0x9d):typeof _0x54a9a3;},V(_0x391a59);}function H(_0x935248,_0x237de1){const _0x2b13b7=_0x3daf98;if(V(_0x935248)!=_0x2b13b7(0xb2)||!_0x935248)return _0x935248;var _0x3caecc=_0x935248[Symbol[_0x2b13b7(0xae)]];if(_0x3caecc!==void 0x0){var _0x33178d=_0x3caecc[_0x2b13b7(0xbb)](_0x935248,_0x237de1||_0x2b13b7(0xb8));if(V(_0x33178d)!=_0x2b13b7(0xb2))return _0x33178d;throw TypeError(_0x2b13b7(0xd2));}return(_0x237de1===_0x2b13b7(0xe0)?String:Number)(_0x935248);}function U(_0xc87a6b){var _0x4e454d=H(_0xc87a6b,'string');return V(_0x4e454d)=='symbol'?_0x4e454d:_0x4e454d+'';}function W(_0x199859,_0x525e94,_0x3f93cb){return(_0x525e94=U(_0x525e94))in _0x199859?Object['defineProperty'](_0x199859,_0x525e94,{'value':_0x3f93cb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x199859[_0x525e94]=_0x3f93cb,_0x199859;}let G=class extends _0x1b8fd4{constructor(_0xe796b6=R,_0x307d65,_0x295269,_0x3596e3){const _0x2925a6=_0x3daf98;super(),this[_0x2925a6(0xa8)]=_0xe796b6,this['_injector']=_0x307d65,this['_configService']=_0x295269,this[_0x2925a6(0xf6)]=_0x3596e3;let {..._0x38fc00}=_0x185aa9({},R,this[_0x2925a6(0xa8)]);this[_0x2925a6(0xa3)][_0x2925a6(0xde)](_0x2925a6(0x94),_0x38fc00);}[_0x3daf98(0xf5)](){const _0x1ed817=_0x3daf98;[M,N,E,P,F,D][_0x1ed817(0xc2)](_0x2e4289=>this[_0x1ed817(0xc6)](this[_0x1ed817(0xf6)]['registerCommand'](_0x2e4289)));}};W(G,_0x3daf98(0xf9),_0x3daf98(0xad)),W(G,'packageName',I),W(G,_0x3daf98(0xc4),L),W(G,'type',_0x2699ed[_0x3daf98(0xb4)]),G=B([_0x33e7c2(_0x3f86ff,_0x1056a6),z(0x1,_0x2dd80e(_0x348363)),z(0x2,_0x2afe4e),z(0x3,_0x19a995)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
1
+ const _0x354455=_0x2ad7;(function(_0x243805,_0x5c00f2){const _0x4de663=_0x2ad7,_0x259b48=_0x243805();while(!![]){try{const _0x51c828=parseInt(_0x4de663(0x131))/0x1*(-parseInt(_0x4de663(0x13c))/0x2)+parseInt(_0x4de663(0x119))/0x3+-parseInt(_0x4de663(0x120))/0x4*(-parseInt(_0x4de663(0xfe))/0x5)+-parseInt(_0x4de663(0x118))/0x6*(-parseInt(_0x4de663(0xf9))/0x7)+parseInt(_0x4de663(0x114))/0x8*(parseInt(_0x4de663(0xfd))/0x9)+-parseInt(_0x4de663(0x109))/0xa+-parseInt(_0x4de663(0x127))/0xb;if(_0x51c828===_0x5c00f2)break;else _0x259b48['push'](_0x259b48['shift']());}catch(_0x736753){_0x259b48['push'](_0x259b48['shift']());}}}(_0x1570,0x3798a));import{CommandType as _0x2dea21,CustomRangeType as _0x18c808,DependentOn as _0x25103f,DocumentFlavor as _0x1c338d,ICommandService as _0x96e9cf,IConfigService as _0x31856b,IUniverInstanceService as _0x3749d4,Inject as _0x481bb7,Injector as _0x20836d,JSONX as _0x27e466,Plugin as _0x24f424,TextX as _0x4e06e4,Tools as _0x223dfc,UniverInstanceType as _0x2a21bc,createParagraphId as _0x20e6fe,createSectionId as _0x17cab0,generateRandomId as _0x324573,merge as _0x3dfa1e,validateDocBodyStructure as _0x4b5823,validateDocumentStructure as _0x158a70}from'@univerjs/core';import{RichTextEditingMutation as _0x3c3a8a,UniverDocsPlugin as _0x280ea7}from'@univerjs/docs';import{UniverLicensePlugin as _0x99429e}from'@univerjs-pro/license';function C(_0x2f5685,_0x4e3080,_0x1ea806){const _0x18500f=_0x2ad7;if(_0x2f5685[_0x18500f(0x144)]!=null&&!(_0x4e3080===_0x18500f(0xf1)?['pageBottom',_0x18500f(0x12e)]:['docEnd','sectEnd'])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0x144)])||_0x2f5685['restart']!=null&&!(_0x4e3080===_0x18500f(0xf1)?[_0x18500f(0x10e),_0x18500f(0x108),_0x18500f(0x130)]:[_0x18500f(0x10e),_0x18500f(0x108)])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0xf5)])||_0x2f5685[_0x18500f(0x101)]!=null&&(!Number[_0x18500f(0x145)](_0x2f5685[_0x18500f(0x101)])||_0x2f5685['startNumber']<0x1)||_0x18500f(0xee)in _0x2f5685&&_0x2f5685[_0x18500f(0xee)]!=null&&(_0x4e3080!==_0x18500f(0xf1)||!Number['isInteger'](_0x2f5685['columnCount'])||_0x2f5685[_0x18500f(0xee)]<0x0||_0x2f5685['columnCount']>0x4)||_0x2f5685[_0x18500f(0x112)]!=null&&(typeof _0x2f5685[_0x18500f(0x112)]!=_0x18500f(0x149)||_0x2f5685[_0x18500f(0x112)][_0x18500f(0x11a)]===0x0))return!0x1;for(let _0x3b6638 of[_0x2f5685['separator'],_0x2f5685[_0x18500f(0x139)],_0x2f5685['continuationNotice']])if(_0x3b6638!=null&&(_0x1ea806!=null||_0x4b5823(_0x3b6638)[_0x18500f(0x11a)]>0x0))return!0x1;return!0x0;}function w(_0x5a001c,_0x3e27db,_0x274b4e){const _0x1c0acb=_0x2ad7;var _0x196da4,_0x40c5f6;if(_0x3e27db[_0x1c0acb(0x14d)]!=null&&!C(_0x3e27db[_0x1c0acb(0x14d)],_0x274b4e,_0x3e27db['sectionId']))return!0x1;let _0x30a694=((_0x196da4=_0x5a001c['body'])==null||(_0x196da4=_0x196da4[_0x1c0acb(0x10c)])==null?void 0x0:_0x196da4[_0x1c0acb(0x14c)](_0x5993f8=>_0x5993f8[_0x1c0acb(0x117)]===_0x3e27db['sectionId']))??-0x1;if(_0x3e27db['sectionId']!=null&&_0x30a694<0x0)return!0x1;let _0x5ce190=_0x3e27db['sectionId']==null?_0x5a001c[_0x1c0acb(0x116)]:(_0x40c5f6=_0x5a001c[_0x1c0acb(0x113)])==null||(_0x40c5f6=_0x40c5f6[_0x1c0acb(0x10c)])==null?void 0x0:_0x40c5f6[_0x30a694]['noteProperties'],_0x4276ba=_0x3e27db['settings']==null?void 0x0:_0x223dfc[_0x1c0acb(0x121)](_0x3e27db[_0x1c0acb(0x14d)]),_0x33dd5b=_0x3e27db[_0x1c0acb(0x117)]==null?['noteSettings']:[_0x1c0acb(0x113),_0x1c0acb(0x10c),_0x30a694,_0x1c0acb(0x140)],_0x5ce864=_0x27e466[_0x1c0acb(0x11d)](),_0x2b52f5=null;if(_0x223dfc[_0x1c0acb(0x141)](_0x5ce190==null?void 0x0:_0x5ce190[_0x274b4e],_0x4276ba)||(_0x2b52f5=_0x5ce190==null?_0x5ce864[_0x1c0acb(0x115)](_0x33dd5b,{[_0x274b4e]:_0x4276ba}):_0x3e27db['sectionId']!=null&&_0x4276ba==null&&Object[_0x1c0acb(0x12b)](_0x5ce190)[_0x1c0acb(0x105)](_0x5b0ea4=>_0x5b0ea4===_0x274b4e)?_0x5ce864[_0x1c0acb(0xf0)](_0x33dd5b,_0x5ce190):_0x5ce864['replaceOp']([..._0x33dd5b,_0x274b4e],_0x5ce190[_0x274b4e],_0x4276ba)),_0x3e27db[_0x1c0acb(0x135)]!=null){var _0x404016;if(_0x274b4e!==_0x1c0acb(0x125)||_0x3e27db[_0x1c0acb(0x117)]==null||typeof _0x3e27db[_0x1c0acb(0x135)]!=_0x1c0acb(0x111))return!0x1;let _0x294e40=(_0x404016=_0x5a001c['body'])==null||(_0x404016=_0x404016[_0x1c0acb(0x10c)])==null?void 0x0:_0x404016[_0x30a694][_0x1c0acb(0x135)];_0x294e40!==_0x3e27db['suppressEndnotes']&&(_0x2b52f5=_0x27e466[_0x1c0acb(0xf3)](_0x2b52f5,_0x5ce864[_0x1c0acb(0x11c)]([_0x1c0acb(0x113),'sectionBreaks',_0x30a694,'suppressEndnotes'],_0x294e40,_0x3e27db[_0x1c0acb(0x135)])));}return _0x2b52f5;}function T(_0x9b2920,_0x41e12d,_0x11fdb8){const _0x51999a=_0x2ad7;if(!_0x41e12d)return!0x1;let _0xc9dded=_0x9b2920[_0x51999a(0x11b)](_0x3749d4)['getUnit'](_0x41e12d[_0x51999a(0x13f)],_0x2a21bc[_0x51999a(0x13e)]),_0x58508b=_0xc9dded==null?void 0x0:_0xc9dded[_0x51999a(0x147)]();if(!_0x58508b||_0x58508b['documentStyle'][_0x51999a(0x13d)]!==_0x1c338d[_0x51999a(0xf8)])return!0x1;let _0x34f091=w(_0x58508b,_0x41e12d,_0x11fdb8);return _0x34f091===!0x1||_0x27e466[_0x51999a(0x106)](_0x34f091)?!0x1:!!_0x9b2920[_0x51999a(0x11b)](_0x96e9cf)[_0x51999a(0x110)](_0x3c3a8a['id'],{'unitId':_0x41e12d['unitId'],'segmentId':'','historyAction':_0x51999a(0x107)+_0x11fdb8+_0x51999a(0x122),'actions':_0x34f091,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x149d55,_0x4464dd)=>T(_0x149d55,_0x4464dd,_0x354455(0xf1))},D={'id':_0x354455(0x102),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x580a51,_0x46d6bf)=>T(_0x580a51,_0x46d6bf,_0x354455(0x125))};function O(_0x1d4bb9,_0x15aa09){const _0x4c5320=_0x354455;return(_0x1d4bb9==null?void 0x0:_0x1d4bb9[_0x4c5320(0x12d)][_0x4c5320(0x13d)])===_0x1c338d[_0x4c5320(0xf8)]&&!!_0x1d4bb9[_0x4c5320(0x113)]&&Number['isInteger'](_0x15aa09)&&_0x15aa09>=0x0&&_0x15aa09<_0x1d4bb9[_0x4c5320(0x113)]['dataStream'][_0x4c5320(0x11a)]-0x1;}function k(_0x3626a5,_0x2511c2,_0x356066){const _0x4d1bcb=_0x354455;var _0x1dd9a9,_0xaa62a3;if(_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0&&_0x2511c2[_0x4d1bcb(0x135)]===void 0x0)return null;let _0x575270=_0x2511c2['sectionId']==null?(_0x1dd9a9=_0x3626a5[_0x4d1bcb(0x116)])==null?void 0x0:_0x1dd9a9[_0x356066]:(_0xaa62a3=_0x3626a5[_0x4d1bcb(0x113)])==null||(_0xaa62a3=_0xaa62a3['sectionBreaks'])==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x133)](_0x354b47=>_0x354b47[_0x4d1bcb(0x117)]===_0x2511c2[_0x4d1bcb(0x117)]))==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x140)])==null?void 0x0:_0xaa62a3[_0x356066];return w(_0x3626a5,{'settings':_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0?_0x575270??null:_0x2511c2['settings'],'sectionId':_0x2511c2[_0x4d1bcb(0x117)],'suppressEndnotes':_0x2511c2[_0x4d1bcb(0x135)]},_0x356066);}function A(_0x40d02b,_0xef7492,_0x23a2e4){const _0x4b7d94=_0x354455;var _0x46fd1c,_0xd987d6,_0x2b9b94;if(!_0xef7492||_0xef7492[_0x4b7d94(0x123)])return!0x1;let _0x36c04b=_0x40d02b['get'](_0x3749d4)[_0x4b7d94(0xfc)](_0xef7492['unitId'],_0x2a21bc[_0x4b7d94(0x13e)]),_0x645dce=_0x36c04b==null?void 0x0:_0x36c04b[_0x4b7d94(0x147)](),{offset:_0x39a975}=_0xef7492;if(!O(_0x645dce,_0x39a975))return!0x1;let _0x411a47=k(_0x645dce,_0xef7492,_0x23a2e4);if(_0x411a47===!0x1)return!0x1;let _0x27b863=_0xef7492['noteId']??_0x324573(0xc);if((_0x46fd1c=_0x645dce[_0x4b7d94(0xfb)])!=null&&_0x46fd1c[_0x27b863]||(_0xd987d6=_0x645dce[_0x4b7d94(0x143)])!=null&&_0xd987d6[_0x27b863]||(_0x2b9b94=_0x645dce[_0x4b7d94(0x10a)])!=null&&_0x2b9b94[_0x27b863])return!0x1;let _0x2b0820=_0x223dfc[_0x4b7d94(0x121)]({'type':_0x23a2e4,'noteId':_0x27b863,'body':_0xef7492[_0x4b7d94(0x113)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x20e6fe(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x17cab0(new Set()),'startIndex':0x1}]},'customMark':_0xef7492['customMark'],'referenceTextStyle':_0xef7492[_0x4b7d94(0x14a)],'tableSource':_0xef7492[_0x4b7d94(0x136)],'drawings':_0xef7492[_0x4b7d94(0x13a)],'drawingsOrder':_0xef7492[_0x4b7d94(0x142)],'lists':_0xef7492['lists']});if(_0x158a70({'notes':{[_0x27b863]:_0x2b0820}})[_0x4b7d94(0x11a)]>0x0)return!0x1;let _0x22c30b=new _0x4e06e4();_0x39a975>0x0&&_0x22c30b[_0x4b7d94(0xf4)](_0x39a975),_0x22c30b['insert'](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x23a2e4===_0x4b7d94(0xf1)?_0x18c808[_0x4b7d94(0x150)]:_0x18c808[_0x4b7d94(0x11e)],'rangeId':_0x324573(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27b863}}]});let _0x5798d5=_0x27e466['getInstance'](),_0x9fbb4a=_0x645dce['notes']==null?_0x5798d5[_0x4b7d94(0x115)]([_0x4b7d94(0xfb)],{[_0x27b863]:_0x2b0820}):_0x5798d5['insertOp'](['notes',_0x27b863],_0x2b0820);return!!_0x40d02b[_0x4b7d94(0x11b)](_0x96e9cf)[_0x4b7d94(0x110)](_0x3c3a8a['id'],{'unitId':_0xef7492[_0x4b7d94(0x13f)],'segmentId':'','historyAction':'insert-'+_0x23a2e4,'actions':_0x27e466['compose'](_0x27e466[_0x4b7d94(0xf3)](_0x411a47,_0x9fbb4a),_0x5798d5[_0x4b7d94(0xfa)](_0x22c30b[_0x4b7d94(0x103)](),[_0x4b7d94(0x113)])),'textRanges':[{'segmentId':_0x27b863,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x50de60,_0x2ec0bb,_0x2acfd5){const _0x391281=_0x354455;var _0x5efb76,_0x292ddc;if(!_0x2ec0bb)return!0x1;let _0x484d3e=_0x50de60[_0x391281(0x11b)](_0x3749d4)[_0x391281(0xfc)](_0x2ec0bb[_0x391281(0x13f)],_0x2a21bc[_0x391281(0x13e)]),_0x1f8c8d=_0x484d3e==null?void 0x0:_0x484d3e[_0x391281(0x147)](),_0x10b90d=_0x1f8c8d==null||(_0x5efb76=_0x1f8c8d[_0x391281(0xfb)])==null?void 0x0:_0x5efb76[_0x2ec0bb[_0x391281(0xff)]],_0x2a2be6=_0x1f8c8d==null||(_0x292ddc=_0x1f8c8d['body'])==null||(_0x292ddc=_0x292ddc['customRanges'])==null?void 0x0:_0x292ddc['find'](_0x3fb58b=>{const _0x2da165=_0x391281;var _0x3454f1;return(_0x3fb58b[_0x2da165(0x12a)]===_0x18c808['FOOTNOTE']||_0x3fb58b['rangeType']===_0x18c808['ENDNOTE'])&&((_0x3454f1=_0x3fb58b[_0x2da165(0x10b)])==null?void 0x0:_0x3454f1['noteId'])===_0x2ec0bb[_0x2da165(0xff)];});if(!_0x1f8c8d||_0x1f8c8d['documentStyle'][_0x391281(0x13d)]!==_0x1c338d[_0x391281(0xf8)]||!_0x10b90d||_0x10b90d['type']!==_0x2acfd5||!_0x2a2be6)return!0x1;let _0x4a773d=new _0x4e06e4();_0x2a2be6[_0x391281(0x104)]>0x0&&_0x4a773d[_0x391281(0xf4)](_0x2a2be6[_0x391281(0x104)]),_0x4a773d[_0x391281(0x137)](0x1);let _0xaebca4=_0x27e466['getInstance']();return!!_0x50de60['get'](_0x96e9cf)[_0x391281(0x110)](_0x3c3a8a['id'],{'unitId':_0x2ec0bb[_0x391281(0x13f)],'segmentId':'','historyAction':'delete-'+_0x2acfd5,'actions':_0x27e466[_0x391281(0xf3)](_0xaebca4[_0x391281(0xfa)](_0x4a773d[_0x391281(0x103)](),[_0x391281(0x113)]),_0xaebca4['removeOp']([_0x391281(0xfb),_0x2ec0bb[_0x391281(0xff)]],_0x10b90d)),'textRanges':[{'startOffset':_0x2a2be6[_0x391281(0x104)],'endOffset':_0x2a2be6['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x354455(0xf7),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x24ee12,_0x2ea241)=>A(_0x24ee12,_0x2ea241,_0x354455(0xf1))},N={'id':'doc.command.delete-footnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x2157ab,_0x1e5999)=>j(_0x2157ab,_0x1e5999,_0x354455(0xf1))},P={'id':'doc.command.insert-endnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x393aff,_0x1d38d8)=>A(_0x393aff,_0x1d38d8,_0x354455(0x125))},F={'id':_0x354455(0x13b),'type':_0x2dea21['COMMAND'],'handler':(_0x1ce22a,_0x3a4e0e)=>j(_0x1ce22a,_0x3a4e0e,'endnote')};var I='@univerjs-pro/docs-reference',L=_0x354455(0x128);const R={};function z(_0xec09fb,_0x22029b){return function(_0x155a81,_0x4ed450){_0x22029b(_0x155a81,_0x4ed450,_0xec09fb);};}function B(_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4){const _0x714d30=_0x354455;var _0x447146=arguments[_0x714d30(0x11a)],_0x493ede=_0x447146<0x3?_0x207d95:_0x1a80e4===null?_0x1a80e4=Object[_0x714d30(0x100)](_0x207d95,_0x1d3f79):_0x1a80e4,_0x46f2af;if(typeof Reflect=='object'&&typeof Reflect[_0x714d30(0x148)]=='function')_0x493ede=Reflect[_0x714d30(0x148)](_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4);else{for(var _0x470fa0=_0x26397f[_0x714d30(0x11a)]-0x1;_0x470fa0>=0x0;_0x470fa0--)(_0x46f2af=_0x26397f[_0x470fa0])&&(_0x493ede=(_0x447146<0x3?_0x46f2af(_0x493ede):_0x447146>0x3?_0x46f2af(_0x207d95,_0x1d3f79,_0x493ede):_0x46f2af(_0x207d95,_0x1d3f79))||_0x493ede);}return _0x447146>0x3&&_0x493ede&&Object[_0x714d30(0x138)](_0x207d95,_0x1d3f79,_0x493ede),_0x493ede;}function V(_0x139767){'@babel/helpers - typeof';const _0xcd2fda=_0x354455;return V=typeof Symbol==_0xcd2fda(0x14b)&&typeof Symbol['iterator']==_0xcd2fda(0xf6)?function(_0x3a7d99){return typeof _0x3a7d99;}:function(_0x2c39d5){const _0x22227e=_0xcd2fda;return _0x2c39d5&&typeof Symbol==_0x22227e(0x14b)&&_0x2c39d5[_0x22227e(0xf2)]===Symbol&&_0x2c39d5!==Symbol['prototype']?_0x22227e(0xf6):typeof _0x2c39d5;},V(_0x139767);}function H(_0x2acbd6,_0x40c98a){const _0xadaed4=_0x354455;if(V(_0x2acbd6)!='object'||!_0x2acbd6)return _0x2acbd6;var _0x13eb0d=_0x2acbd6[Symbol[_0xadaed4(0x146)]];if(_0x13eb0d!==void 0x0){var _0xbbba85=_0x13eb0d[_0xadaed4(0x10d)](_0x2acbd6,_0x40c98a||_0xadaed4(0x10f));if(V(_0xbbba85)!=_0xadaed4(0x151))return _0xbbba85;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x40c98a===_0xadaed4(0x149)?String:Number)(_0x2acbd6);}function U(_0x1c3a68){const _0x21d6dc=_0x354455;var _0x39560d=H(_0x1c3a68,_0x21d6dc(0x149));return V(_0x39560d)=='symbol'?_0x39560d:_0x39560d+'';}function W(_0x4380d9,_0x11a578,_0x4a35d5){const _0x376e7f=_0x354455;return(_0x11a578=U(_0x11a578))in _0x4380d9?Object[_0x376e7f(0x138)](_0x4380d9,_0x11a578,{'value':_0x4a35d5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4380d9[_0x11a578]=_0x4a35d5,_0x4380d9;}let G=class extends _0x24f424{constructor(_0x3a806e=R,_0x4ae6c4,_0x673061,_0x495376){const _0x7f4525=_0x354455;super(),this['_config']=_0x3a806e,this['_injector']=_0x4ae6c4,this[_0x7f4525(0x14f)]=_0x673061,this['_commandService']=_0x495376;let {..._0x5ef51c}=_0x3dfa1e({},R,this['_config']);this[_0x7f4525(0x14f)][_0x7f4525(0x126)](_0x7f4525(0x12f),_0x5ef51c);}['onStarting'](){const _0x1d589=_0x354455;[M,N,E,P,F,D]['forEach'](_0x51ca67=>this['disposeWithMe'](this[_0x1d589(0x12c)]['registerCommand'](_0x51ca67)));}};W(G,_0x354455(0x132),_0x354455(0x134)),W(G,_0x354455(0xef),I),W(G,_0x354455(0x129),L),W(G,_0x354455(0x124),_0x2a21bc['UNIVER_DOC']),G=B([_0x25103f(_0x99429e,_0x280ea7),z(0x1,_0x481bb7(_0x20836d)),z(0x2,_0x31856b),z(0x3,_0x96e9cf)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};function _0x2ad7(_0x2ad720,_0x16e2dd){_0x2ad720=_0x2ad720-0xee;const _0x15704d=_0x1570();let _0x2ad7ce=_0x15704d[_0x2ad720];return _0x2ad7ce;}function _0x1570(){const _0xb51c48=['sectionId','5454IQXbGF','1364799hUQTWe','length','get','replaceOp','getInstance','ENDNOTE','includes','474236nYugCh','deepClone','-settings','segmentId','type','endnote','setConfig','8943066IiFtIm','1.0.4','version','rangeType','keys','_commandService','documentStyle','beneathText','docs-reference.config','eachPage','2571bnZPaC','pluginName','find','UNIVER_DOCS_REFERENCE_PLUGIN','suppressEndnotes','tableSource','delete','defineProperty','continuationSeparator','drawings','doc.command.delete-endnote','236wrFKvG','documentFlavor','UNIVER_DOC','unitId','noteProperties','diffValue','drawingsOrder','headers','position','isInteger','toPrimitive','getSnapshot','decorate','string','referenceTextStyle','function','findIndex','settings','COMMAND','_configService','FOOTNOTE','object','columnCount','packageName','removeOp','footnote','constructor','compose','retain','restart','symbol','doc.command.insert-footnote','TRADITIONAL','2541UZVYCI','editOp','notes','getUnit','9837hppaeA','15ERRpTo','noteId','getOwnPropertyDescriptor','startNumber','doc.command.set-endnote-settings','serialize','startIndex','every','isNoop','set-','eachSect','1320220nHhEnf','footers','properties','sectionBreaks','call','continuous','default','syncExecuteCommand','boolean','numberFormat','body','2456qllCIh','insertOp','noteSettings'];_0x1570=function(){return _0xb51c48;};return _0x1570();}
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x56cf62,_0x1ea2dc){const _0x2249b8=_0x4196,_0x3b23e7=_0x56cf62();while(!![]){try{const _0x511d44=parseInt(_0x2249b8(0x14c))/0x1*(-parseInt(_0x2249b8(0x147))/0x2)+-parseInt(_0x2249b8(0x14d))/0x3+-parseInt(_0x2249b8(0x133))/0x4+parseInt(_0x2249b8(0x16d))/0x5+-parseInt(_0x2249b8(0x164))/0x6*(-parseInt(_0x2249b8(0x161))/0x7)+parseInt(_0x2249b8(0x165))/0x8+-parseInt(_0x2249b8(0x169))/0x9*(-parseInt(_0x2249b8(0x152))/0xa);if(_0x511d44===_0x1ea2dc)break;else _0x3b23e7['push'](_0x3b23e7['shift']());}catch(_0x29aba8){_0x3b23e7['push'](_0x3b23e7['shift']());}}}(_0xc98f,0xeebf5),function(_0x189a1c,_0x30f1b8){const _0x1978dd=_0x4196;typeof exports==_0x1978dd(0x12f)&&typeof module<'u'?_0x30f1b8(require('@univerjs-pro/docs-reference'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x1978dd(0x146)&&define[_0x1978dd(0x163)]?define([_0x1978dd(0x13f),'@univerjs/core',_0x1978dd(0x132)],_0x30f1b8):(_0x189a1c=typeof globalThis<'u'?globalThis:_0x189a1c||self,_0x30f1b8(_0x189a1c[_0x1978dd(0x136)],_0x189a1c[_0x1978dd(0x150)],_0x189a1c[_0x1978dd(0x144)]));}(this,function(_0x5d46d4,_0x13f39f,_0x5dd4ac){const _0xe569d5=_0x4196;var _0xc73eea=class extends _0x5dd4ac[_0xe569d5(0x14b)]{[_0xe569d5(0x13d)](_0x468c0c,_0x3f1cb4={}){const _0x13b39b=_0xe569d5;let _0xcbd70e=(0x0,_0x13f39f[_0x13b39b(0x157)])(0xc);return this['_injector'][_0x13b39b(0x155)](_0x13f39f[_0x13b39b(0x134)])[_0x13b39b(0x168)](_0x5d46d4[_0x13b39b(0x142)]['id'],{..._0x3f1cb4,'unitId':this['id'],'offset':_0x468c0c,'noteId':_0xcbd70e})?_0xcbd70e:null;}[_0xe569d5(0x15c)](){const _0x10b50b=_0xe569d5;var _0x2b5810;let _0x538b81=this[_0x10b50b(0x13a)]()[_0x10b50b(0x140)]();return(((_0x2b5810=_0x538b81['body'])==null?void 0x0:_0x2b5810[_0x10b50b(0x137)])??[])['filter'](_0x1016c6=>_0x1016c6[_0x10b50b(0x138)]===_0x13f39f[_0x10b50b(0x151)][_0x10b50b(0x162)])['sort']((_0x170503,_0x4d6fac)=>_0x170503['startIndex']-_0x4d6fac[_0x10b50b(0x158)])[_0x10b50b(0x141)](_0x5cce06=>{const _0x1a1bba=_0x10b50b;var _0x447b42,_0x2e4025;let _0x5be7a0=(_0x447b42=_0x5cce06[_0x1a1bba(0x143)])==null?void 0x0:_0x447b42[_0x1a1bba(0x167)],_0xd31b90=typeof _0x5be7a0==_0x1a1bba(0x154)?(_0x2e4025=_0x538b81[_0x1a1bba(0x14a)])==null?void 0x0:_0x2e4025[_0x5be7a0]:void 0x0;return _0xd31b90?[_0x13f39f[_0x1a1bba(0x14e)][_0x1a1bba(0x13c)](_0xd31b90)]:[];});}[_0xe569d5(0x135)](_0x17781e){const _0x3c8c6d=_0xe569d5;return this['_injector'][_0x3c8c6d(0x155)](_0x13f39f[_0x3c8c6d(0x134)])['syncExecuteCommand'](_0x5d46d4[_0x3c8c6d(0x166)]['id'],{'unitId':this['id'],'noteId':_0x17781e});}['getFootnoteSettings'](_0x1a19c6){const _0x43895e=_0xe569d5;var _0x5d229f,_0x5b7365;let _0x389f1e=this[_0x43895e(0x13a)]()[_0x43895e(0x140)](),_0x23caad=_0x1a19c6==null?(_0x5d229f=_0x389f1e[_0x43895e(0x16a)])==null?void 0x0:_0x5d229f[_0x43895e(0x15d)]:(_0x5b7365=_0x389f1e[_0x43895e(0x130)])==null||(_0x5b7365=_0x5b7365[_0x43895e(0x14f)])==null||(_0x5b7365=_0x5b7365['find'](_0x52da6f=>_0x52da6f[_0x43895e(0x160)]===_0x1a19c6))==null||(_0x5b7365=_0x5b7365[_0x43895e(0x131)])==null?void 0x0:_0x5b7365[_0x43895e(0x15d)];return _0x23caad==null?void 0x0:_0x13f39f[_0x43895e(0x14e)]['deepClone'](_0x23caad);}['setFootnoteSettings'](_0x53c040,_0x577f32){const _0x285b3f=_0xe569d5;return this['_injector'][_0x285b3f(0x155)](_0x13f39f[_0x285b3f(0x134)])[_0x285b3f(0x168)](_0x5d46d4[_0x285b3f(0x13e)]['id'],{'unitId':this['id'],'settings':_0x53c040,'sectionId':_0x577f32});}['insertEndnote'](_0x113fb9,_0x5e0d88={}){const _0x3acbc3=_0xe569d5;let _0x396d8b=(0x0,_0x13f39f[_0x3acbc3(0x157)])(0xc);return this[_0x3acbc3(0x159)][_0x3acbc3(0x155)](_0x13f39f['ICommandService'])[_0x3acbc3(0x168)](_0x5d46d4[_0x3acbc3(0x15a)]['id'],{..._0x5e0d88,'unitId':this['id'],'offset':_0x113fb9,'noteId':_0x396d8b})?_0x396d8b:null;}[_0xe569d5(0x148)](){const _0x5a5a14=_0xe569d5;var _0x186411;let _0x4b412e=this[_0x5a5a14(0x13a)]()['getSnapshot']();return(((_0x186411=_0x4b412e[_0x5a5a14(0x130)])==null?void 0x0:_0x186411[_0x5a5a14(0x137)])??[])[_0x5a5a14(0x145)](_0x234f04=>_0x234f04[_0x5a5a14(0x138)]===_0x13f39f[_0x5a5a14(0x151)][_0x5a5a14(0x156)])[_0x5a5a14(0x15b)]((_0x5b0690,_0x3c5462)=>_0x5b0690[_0x5a5a14(0x158)]-_0x3c5462[_0x5a5a14(0x158)])[_0x5a5a14(0x141)](_0x101b0b=>{const _0x35425d=_0x5a5a14;var _0x44f1a0,_0x244e92;let _0x3e0f00=(_0x44f1a0=_0x101b0b[_0x35425d(0x143)])==null?void 0x0:_0x44f1a0[_0x35425d(0x167)],_0x33b221=typeof _0x3e0f00==_0x35425d(0x154)?(_0x244e92=_0x4b412e['notes'])==null?void 0x0:_0x244e92[_0x3e0f00]:void 0x0;return _0x33b221?[_0x13f39f[_0x35425d(0x14e)]['deepClone'](_0x33b221)]:[];});}[_0xe569d5(0x15f)](_0x1b61a6){const _0x31a0f4=_0xe569d5;return this[_0x31a0f4(0x159)][_0x31a0f4(0x155)](_0x13f39f[_0x31a0f4(0x134)])[_0x31a0f4(0x168)](_0x5d46d4[_0x31a0f4(0x139)]['id'],{'unitId':this['id'],'noteId':_0x1b61a6});}[_0xe569d5(0x13b)](_0x385177){const _0x51a912=_0xe569d5;var _0x2b21b5,_0x3ec4e5;let _0x2fb14c=this['getDocumentDataModel']()[_0x51a912(0x140)](),_0x1dd14c=_0x385177==null?(_0x2b21b5=_0x2fb14c[_0x51a912(0x16a)])==null?void 0x0:_0x2b21b5[_0x51a912(0x15e)]:(_0x3ec4e5=_0x2fb14c[_0x51a912(0x130)])==null||(_0x3ec4e5=_0x3ec4e5[_0x51a912(0x14f)])==null||(_0x3ec4e5=_0x3ec4e5[_0x51a912(0x16c)](_0x41df7f=>_0x41df7f[_0x51a912(0x160)]===_0x385177))==null||(_0x3ec4e5=_0x3ec4e5[_0x51a912(0x131)])==null?void 0x0:_0x3ec4e5['endnote'];return _0x1dd14c==null?void 0x0:_0x13f39f['Tools'][_0x51a912(0x13c)](_0x1dd14c);}[_0xe569d5(0x153)](_0x5e78a6,_0x532bbe){const _0x48e2d3=_0xe569d5;return this[_0x48e2d3(0x159)][_0x48e2d3(0x155)](_0x13f39f[_0x48e2d3(0x134)])[_0x48e2d3(0x168)](_0x5d46d4[_0x48e2d3(0x16b)]['id'],{'unitId':this['id'],'settings':_0x5e78a6,'sectionId':_0x532bbe});}};_0x5dd4ac[_0xe569d5(0x14b)][_0xe569d5(0x149)](_0xc73eea);}));function _0x4196(_0x27fcd3,_0x455b60){_0x27fcd3=_0x27fcd3-0x12f;const _0xc98f19=_0xc98f();let _0x4196c6=_0xc98f19[_0x27fcd3];return _0x4196c6;}function _0xc98f(){const _0x1fa785=['getSnapshot','flatMap','InsertDocumentFootnoteCommand','properties','UniverDocsFacade','filter','function','5014SdAIlA','getEndnotes','extend','notes','FDocument','5dmlLkN','4537458OvfeVm','Tools','sectionBreaks','UniverCore','CustomRangeType','50YHDsJY','setEndnoteSettings','string','get','ENDNOTE','generateRandomId','startIndex','_injector','InsertDocumentEndnoteCommand','sort','getFootnotes','footnote','endnote','deleteEndnote','sectionId','1169MRYbYL','FOOTNOTE','amd','28758hIQEZk','11235064oTmnzS','DeleteDocumentFootnoteCommand','noteId','syncExecuteCommand','431901oSPMjE','noteSettings','SetDocumentEndnoteSettingsCommand','find','9680560QmFFkr','object','body','noteProperties','@univerjs/docs/facade','7511764uvTiAL','ICommandService','deleteFootnote','UniverProDocsReference','customRanges','rangeType','DeleteDocumentEndnoteCommand','getDocumentDataModel','getEndnoteSettings','deepClone','insertFootnote','SetDocumentFootnoteSettingsCommand','@univerjs-pro/docs-reference'];_0xc98f=function(){return _0x1fa785;};return _0xc98f();}
1
+ function _0x213c(_0x1a3614,_0x1ae030){_0x1a3614=_0x1a3614-0xf1;const _0x575b93=_0x575b();let _0x213c88=_0x575b93[_0x1a3614];return _0x213c88;}function _0x575b(){const _0x35349d=['DeleteDocumentFootnoteCommand','6914952YPnSCi','insertEndnote','find','@univerjs/docs/facade','rangeType','InsertDocumentEndnoteCommand','CustomRangeType','getSnapshot','footnote','3353478Vdjknj','getEndnotes','syncExecuteCommand','deepClone','_injector','noteSettings','extend','4lJpwAl','generateRandomId','object','noteId','ICommandService','@univerjs-pro/docs-reference','getFootnoteSettings','body','SetDocumentFootnoteSettingsCommand','getDocumentDataModel','setEndnoteSettings','sort','UniverCore','notes','2497440UcYiJz','8UHRdmV','sectionId','endnote','properties','setFootnoteSettings','596095OxonFg','amd','sectionBreaks','deleteFootnote','InsertDocumentFootnoteCommand','DeleteDocumentEndnoteCommand','startIndex','getEndnoteSettings','UniverProDocsReference','filter','insertFootnote','noteProperties','Tools','52607097OiaHpg','UniverDocsFacade','flatMap','customRanges','1152863lWctPA','470050gbDrWc','string','get','getFootnotes'];_0x575b=function(){return _0x35349d;};return _0x575b();}(function(_0x4d9c5d,_0x30a890){const _0x9fe0bc=_0x213c,_0x4aa690=_0x4d9c5d();while(!![]){try{const _0x3ab7e8=-parseInt(_0x9fe0bc(0x11f))/0x1+-parseInt(_0x9fe0bc(0xf3))/0x2+parseInt(_0x9fe0bc(0x108))/0x3*(-parseInt(_0x9fe0bc(0xfa))/0x4)+-parseInt(_0x9fe0bc(0x10e))/0x5+-parseInt(_0x9fe0bc(0x125))/0x6+-parseInt(_0x9fe0bc(0x120))/0x7+-parseInt(_0x9fe0bc(0x109))/0x8*(-parseInt(_0x9fe0bc(0x11b))/0x9);if(_0x3ab7e8===_0x30a890)break;else _0x4aa690['push'](_0x4aa690['shift']());}catch(_0x1b02b7){_0x4aa690['push'](_0x4aa690['shift']());}}}(_0x575b,0xce202),function(_0x2af70b,_0x39e6a7){const _0x1485d5=_0x213c;typeof exports==_0x1485d5(0xfc)&&typeof module<'u'?_0x39e6a7(require('@univerjs-pro/docs-reference'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x1485d5(0x10f)]?define([_0x1485d5(0xff),'@univerjs/core',_0x1485d5(0x128)],_0x39e6a7):(_0x2af70b=typeof globalThis<'u'?globalThis:_0x2af70b||self,_0x39e6a7(_0x2af70b[_0x1485d5(0x116)],_0x2af70b[_0x1485d5(0x106)],_0x2af70b[_0x1485d5(0x11c)]));}(this,function(_0x280d7a,_0x24aa1d,_0x48738c){const _0x117337=_0x213c;var _0x7e27c0=class extends _0x48738c['FDocument']{[_0x117337(0x118)](_0x4b3fb2,_0x34334c={}){const _0x571d2a=_0x117337;let _0x23fc02=(0x0,_0x24aa1d[_0x571d2a(0xfb)])(0xc);return this[_0x571d2a(0xf7)]['get'](_0x24aa1d[_0x571d2a(0xfe)])['syncExecuteCommand'](_0x280d7a[_0x571d2a(0x112)]['id'],{..._0x34334c,'unitId':this['id'],'offset':_0x4b3fb2,'noteId':_0x23fc02})?_0x23fc02:null;}[_0x117337(0x123)](){const _0x35610e=_0x117337;var _0x421e01;let _0x307185=this[_0x35610e(0x103)]()['getSnapshot']();return(((_0x421e01=_0x307185[_0x35610e(0x101)])==null?void 0x0:_0x421e01[_0x35610e(0x11e)])??[])[_0x35610e(0x117)](_0x34a951=>_0x34a951[_0x35610e(0x129)]===_0x24aa1d[_0x35610e(0x12b)]['FOOTNOTE'])[_0x35610e(0x105)]((_0xf7d187,_0x3872a6)=>_0xf7d187['startIndex']-_0x3872a6[_0x35610e(0x114)])[_0x35610e(0x11d)](_0x4ec550=>{const _0x53ee51=_0x35610e;var _0x1ad35a,_0x334dd6;let _0x3b7041=(_0x1ad35a=_0x4ec550[_0x53ee51(0x10c)])==null?void 0x0:_0x1ad35a['noteId'],_0x345205=typeof _0x3b7041==_0x53ee51(0x121)?(_0x334dd6=_0x307185[_0x53ee51(0x107)])==null?void 0x0:_0x334dd6[_0x3b7041]:void 0x0;return _0x345205?[_0x24aa1d[_0x53ee51(0x11a)][_0x53ee51(0xf6)](_0x345205)]:[];});}[_0x117337(0x111)](_0x2d4a2b){const _0x2715ff=_0x117337;return this[_0x2715ff(0xf7)][_0x2715ff(0x122)](_0x24aa1d[_0x2715ff(0xfe)])['syncExecuteCommand'](_0x280d7a[_0x2715ff(0x124)]['id'],{'unitId':this['id'],'noteId':_0x2d4a2b});}[_0x117337(0x100)](_0x65d565){const _0x404253=_0x117337;var _0xae62a3,_0x4b3130;let _0x497c00=this['getDocumentDataModel']()['getSnapshot'](),_0x1da6d3=_0x65d565==null?(_0xae62a3=_0x497c00[_0x404253(0xf8)])==null?void 0x0:_0xae62a3[_0x404253(0xf2)]:(_0x4b3130=_0x497c00['body'])==null||(_0x4b3130=_0x4b3130[_0x404253(0x110)])==null||(_0x4b3130=_0x4b3130[_0x404253(0x127)](_0x5595a4=>_0x5595a4[_0x404253(0x10a)]===_0x65d565))==null||(_0x4b3130=_0x4b3130[_0x404253(0x119)])==null?void 0x0:_0x4b3130[_0x404253(0xf2)];return _0x1da6d3==null?void 0x0:_0x24aa1d['Tools']['deepClone'](_0x1da6d3);}[_0x117337(0x10d)](_0x339129,_0x41316a){const _0x11e7e4=_0x117337;return this[_0x11e7e4(0xf7)]['get'](_0x24aa1d[_0x11e7e4(0xfe)])['syncExecuteCommand'](_0x280d7a[_0x11e7e4(0x102)]['id'],{'unitId':this['id'],'settings':_0x339129,'sectionId':_0x41316a});}[_0x117337(0x126)](_0x4eb07d,_0x338e23={}){const _0x3eeca0=_0x117337;let _0x3c38ec=(0x0,_0x24aa1d[_0x3eeca0(0xfb)])(0xc);return this[_0x3eeca0(0xf7)]['get'](_0x24aa1d['ICommandService'])['syncExecuteCommand'](_0x280d7a[_0x3eeca0(0x12a)]['id'],{..._0x338e23,'unitId':this['id'],'offset':_0x4eb07d,'noteId':_0x3c38ec})?_0x3c38ec:null;}[_0x117337(0xf4)](){const _0x39bb85=_0x117337;var _0x528d57;let _0x1366b8=this[_0x39bb85(0x103)]()[_0x39bb85(0xf1)]();return(((_0x528d57=_0x1366b8['body'])==null?void 0x0:_0x528d57[_0x39bb85(0x11e)])??[])[_0x39bb85(0x117)](_0x5a4fa7=>_0x5a4fa7['rangeType']===_0x24aa1d['CustomRangeType']['ENDNOTE'])[_0x39bb85(0x105)]((_0x11ffa2,_0x49ba45)=>_0x11ffa2[_0x39bb85(0x114)]-_0x49ba45['startIndex'])[_0x39bb85(0x11d)](_0x38ceac=>{const _0x5e8cfd=_0x39bb85;var _0x5e6890,_0x2c4b94;let _0x326245=(_0x5e6890=_0x38ceac[_0x5e8cfd(0x10c)])==null?void 0x0:_0x5e6890[_0x5e8cfd(0xfd)],_0x2f43ce=typeof _0x326245==_0x5e8cfd(0x121)?(_0x2c4b94=_0x1366b8[_0x5e8cfd(0x107)])==null?void 0x0:_0x2c4b94[_0x326245]:void 0x0;return _0x2f43ce?[_0x24aa1d[_0x5e8cfd(0x11a)]['deepClone'](_0x2f43ce)]:[];});}['deleteEndnote'](_0x311217){const _0x3012a4=_0x117337;return this[_0x3012a4(0xf7)][_0x3012a4(0x122)](_0x24aa1d['ICommandService'])[_0x3012a4(0xf5)](_0x280d7a[_0x3012a4(0x113)]['id'],{'unitId':this['id'],'noteId':_0x311217});}[_0x117337(0x115)](_0x5396e8){const _0x260bbb=_0x117337;var _0x2ae3f5,_0x4d5ed8;let _0x23a004=this['getDocumentDataModel']()['getSnapshot'](),_0x624c3=_0x5396e8==null?(_0x2ae3f5=_0x23a004[_0x260bbb(0xf8)])==null?void 0x0:_0x2ae3f5[_0x260bbb(0x10b)]:(_0x4d5ed8=_0x23a004['body'])==null||(_0x4d5ed8=_0x4d5ed8[_0x260bbb(0x110)])==null||(_0x4d5ed8=_0x4d5ed8['find'](_0x44c538=>_0x44c538[_0x260bbb(0x10a)]===_0x5396e8))==null||(_0x4d5ed8=_0x4d5ed8[_0x260bbb(0x119)])==null?void 0x0:_0x4d5ed8[_0x260bbb(0x10b)];return _0x624c3==null?void 0x0:_0x24aa1d[_0x260bbb(0x11a)][_0x260bbb(0xf6)](_0x624c3);}[_0x117337(0x104)](_0x39cecd,_0x23c5bc){const _0x2da52c=_0x117337;return this[_0x2da52c(0xf7)]['get'](_0x24aa1d[_0x2da52c(0xfe)])[_0x2da52c(0xf5)](_0x280d7a['SetDocumentEndnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x39cecd,'sectionId':_0x23c5bc});}};_0x48738c['FDocument'][_0x117337(0xf9)](_0x7e27c0);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x13e8e4,_0x12185d){const _0x383bf3=_0x597d,_0x8e34a0=_0x13e8e4();while(!![]){try{const _0x332cd1=parseInt(_0x383bf3(0xdf))/0x1*(parseInt(_0x383bf3(0x94))/0x2)+-parseInt(_0x383bf3(0x70))/0x3*(parseInt(_0x383bf3(0xca))/0x4)+-parseInt(_0x383bf3(0xa5))/0x5+parseInt(_0x383bf3(0xd7))/0x6*(parseInt(_0x383bf3(0xb6))/0x7)+parseInt(_0x383bf3(0xce))/0x8*(parseInt(_0x383bf3(0x90))/0x9)+parseInt(_0x383bf3(0x92))/0xa+-parseInt(_0x383bf3(0xd6))/0xb;if(_0x332cd1===_0x12185d)break;else _0x8e34a0['push'](_0x8e34a0['shift']());}catch(_0x52e940){_0x8e34a0['push'](_0x8e34a0['shift']());}}}(_0x3d58,0xb4fae),function(_0x1fb883,_0x346cd0){const _0x101992=_0x597d;typeof exports==_0x101992(0x6b)&&typeof module<'u'?_0x346cd0(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x101992(0x7f)&&define[_0x101992(0xdc)]?define([_0x101992(0x81),_0x101992(0x8d),_0x101992(0x76),'@univerjs-pro/license'],_0x346cd0):(_0x1fb883=typeof globalThis<'u'?globalThis:_0x1fb883||self,_0x346cd0(_0x1fb883[_0x101992(0xac)]={},_0x1fb883['UniverCore'],_0x1fb883['UniverDocs'],_0x1fb883['UniverProLicense']));}(this,function(_0x40c64f,_0x5d8c03,_0x2d6a04,_0x5a89e6){const _0x3d57a9=_0x597d;Object[_0x3d57a9(0xb2)](_0x40c64f,Symbol['toStringTag'],{'value':'Module'});function _0xfedf09(_0x4bd591,_0x570d5d,_0x4dfec6){const _0x12bea3=_0x3d57a9;if(_0x4bd591[_0x12bea3(0x9b)]!=null&&!(_0x570d5d===_0x12bea3(0xbb)?['pageBottom',_0x12bea3(0xe0)]:[_0x12bea3(0xd0),_0x12bea3(0xda)])[_0x12bea3(0x78)](_0x4bd591[_0x12bea3(0x9b)])||_0x4bd591[_0x12bea3(0x71)]!=null&&!(_0x570d5d==='footnote'?[_0x12bea3(0xa3),'eachSect','eachPage']:['continuous',_0x12bea3(0x82)])[_0x12bea3(0x78)](_0x4bd591[_0x12bea3(0x71)])||_0x4bd591[_0x12bea3(0x8e)]!=null&&(!Number[_0x12bea3(0x8b)](_0x4bd591[_0x12bea3(0x8e)])||_0x4bd591[_0x12bea3(0x8e)]<0x1)||_0x12bea3(0xaa)in _0x4bd591&&_0x4bd591[_0x12bea3(0xaa)]!=null&&(_0x570d5d!=='footnote'||!Number[_0x12bea3(0x8b)](_0x4bd591[_0x12bea3(0xaa)])||_0x4bd591[_0x12bea3(0xaa)]<0x0||_0x4bd591[_0x12bea3(0xaa)]>0x4)||_0x4bd591[_0x12bea3(0x9a)]!=null&&(typeof _0x4bd591[_0x12bea3(0x9a)]!='string'||_0x4bd591[_0x12bea3(0x9a)]['length']===0x0))return!0x1;for(let _0x2fcec6 of[_0x4bd591[_0x12bea3(0x67)],_0x4bd591[_0x12bea3(0x8c)],_0x4bd591['continuationNotice']])if(_0x2fcec6!=null&&(_0x4dfec6!=null||(0x0,_0x5d8c03[_0x12bea3(0xb9)])(_0x2fcec6)[_0x12bea3(0xa0)]>0x0))return!0x1;return!0x0;}function _0x2a94dc(_0x3f0c24,_0x37d097,_0x257fb0){const _0x3c7359=_0x3d57a9;var _0x453aa8,_0x2668a5;if(_0x37d097['settings']!=null&&!_0xfedf09(_0x37d097[_0x3c7359(0x89)],_0x257fb0,_0x37d097[_0x3c7359(0x9c)]))return!0x1;let _0x3636eb=((_0x453aa8=_0x3f0c24['body'])==null||(_0x453aa8=_0x453aa8['sectionBreaks'])==null?void 0x0:_0x453aa8['findIndex'](_0x52e00e=>_0x52e00e[_0x3c7359(0x9c)]===_0x37d097[_0x3c7359(0x9c)]))??-0x1;if(_0x37d097['sectionId']!=null&&_0x3636eb<0x0)return!0x1;let _0x2bec91=_0x37d097[_0x3c7359(0x9c)]==null?_0x3f0c24[_0x3c7359(0xa4)]:(_0x2668a5=_0x3f0c24[_0x3c7359(0x97)])==null||(_0x2668a5=_0x2668a5[_0x3c7359(0x6c)])==null?void 0x0:_0x2668a5[_0x3636eb][_0x3c7359(0x72)],_0x4bf9b2=_0x37d097['settings']==null?void 0x0:_0x5d8c03['Tools'][_0x3c7359(0x86)](_0x37d097[_0x3c7359(0x89)]),_0x3bec4a=_0x37d097[_0x3c7359(0x9c)]==null?['noteSettings']:[_0x3c7359(0x97),'sectionBreaks',_0x3636eb,_0x3c7359(0x72)],_0x4e5053=_0x5d8c03[_0x3c7359(0x6d)][_0x3c7359(0x73)](),_0x53f00f=null;if(_0x5d8c03['Tools']['diffValue'](_0x2bec91==null?void 0x0:_0x2bec91[_0x257fb0],_0x4bf9b2)||(_0x53f00f=_0x2bec91==null?_0x4e5053[_0x3c7359(0x85)](_0x3bec4a,{[_0x257fb0]:_0x4bf9b2}):_0x37d097[_0x3c7359(0x9c)]!=null&&_0x4bf9b2==null&&Object[_0x3c7359(0x68)](_0x2bec91)[_0x3c7359(0x96)](_0x188f66=>_0x188f66===_0x257fb0)?_0x4e5053['removeOp'](_0x3bec4a,_0x2bec91):_0x4e5053[_0x3c7359(0xc8)]([..._0x3bec4a,_0x257fb0],_0x2bec91[_0x257fb0],_0x4bf9b2)),_0x37d097[_0x3c7359(0x66)]!=null){var _0x76187d;if(_0x257fb0!==_0x3c7359(0x7b)||_0x37d097[_0x3c7359(0x9c)]==null||typeof _0x37d097[_0x3c7359(0x66)]!=_0x3c7359(0xa8))return!0x1;let _0x1998f0=(_0x76187d=_0x3f0c24[_0x3c7359(0x97)])==null||(_0x76187d=_0x76187d['sectionBreaks'])==null?void 0x0:_0x76187d[_0x3636eb][_0x3c7359(0x66)];_0x1998f0!==_0x37d097[_0x3c7359(0x66)]&&(_0x53f00f=_0x5d8c03[_0x3c7359(0x6d)][_0x3c7359(0xb1)](_0x53f00f,_0x4e5053[_0x3c7359(0xc8)](['body',_0x3c7359(0x6c),_0x3636eb,_0x3c7359(0x66)],_0x1998f0,_0x37d097[_0x3c7359(0x66)])));}return _0x53f00f;}function _0x521f42(_0x205f5d,_0x28dee2,_0x305463){const _0x15a44a=_0x3d57a9;if(!_0x28dee2)return!0x1;let _0x16cd81=_0x205f5d['get'](_0x5d8c03[_0x15a44a(0xdd)])[_0x15a44a(0x98)](_0x28dee2[_0x15a44a(0xa2)],_0x5d8c03[_0x15a44a(0x7c)][_0x15a44a(0xc3)]),_0x3d6f22=_0x16cd81==null?void 0x0:_0x16cd81[_0x15a44a(0x7e)]();if(!_0x3d6f22||_0x3d6f22[_0x15a44a(0xc9)][_0x15a44a(0x9d)]!==_0x5d8c03[_0x15a44a(0xb4)]['TRADITIONAL'])return!0x1;let _0x2bc405=_0x2a94dc(_0x3d6f22,_0x28dee2,_0x305463);return _0x2bc405===!0x1||_0x5d8c03[_0x15a44a(0x6d)][_0x15a44a(0xd3)](_0x2bc405)?!0x1:!!_0x205f5d['get'](_0x5d8c03['ICommandService'])['syncExecuteCommand'](_0x2d6a04[_0x15a44a(0xa6)]['id'],{'unitId':_0x28dee2[_0x15a44a(0xa2)],'segmentId':'','historyAction':_0x15a44a(0xc0)+_0x305463+_0x15a44a(0xc6),'actions':_0x2bc405,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x4aeec9={'id':_0x3d57a9(0x87),'type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x4431a3,_0x28ee0d)=>_0x521f42(_0x4431a3,_0x28ee0d,'footnote')},_0x47f9e3={'id':'doc.command.set-endnote-settings','type':_0x5d8c03['CommandType'][_0x3d57a9(0x88)],'handler':(_0x5133b5,_0x49140d)=>_0x521f42(_0x5133b5,_0x49140d,_0x3d57a9(0x7b))};function _0x4008e4(_0x442d2d,_0x55a40d){const _0xd67273=_0x3d57a9;return(_0x442d2d==null?void 0x0:_0x442d2d[_0xd67273(0xc9)][_0xd67273(0x9d)])===_0x5d8c03['DocumentFlavor']['TRADITIONAL']&&!!_0x442d2d['body']&&Number[_0xd67273(0x8b)](_0x55a40d)&&_0x55a40d>=0x0&&_0x55a40d<_0x442d2d[_0xd67273(0x97)][_0xd67273(0x6a)]['length']-0x1;}function _0x41595e(_0x44bc69,_0x33f73e,_0x2b9f4f){const _0x5d8df8=_0x3d57a9;var _0x12fb1b,_0x1f8e42;if(_0x33f73e[_0x5d8df8(0x89)]===void 0x0&&_0x33f73e[_0x5d8df8(0x66)]===void 0x0)return null;let _0x3108e4=_0x33f73e['sectionId']==null?(_0x12fb1b=_0x44bc69['noteSettings'])==null?void 0x0:_0x12fb1b[_0x2b9f4f]:(_0x1f8e42=_0x44bc69[_0x5d8df8(0x97)])==null||(_0x1f8e42=_0x1f8e42[_0x5d8df8(0x6c)])==null||(_0x1f8e42=_0x1f8e42['find'](_0x6f88c1=>_0x6f88c1[_0x5d8df8(0x9c)]===_0x33f73e['sectionId']))==null||(_0x1f8e42=_0x1f8e42[_0x5d8df8(0x72)])==null?void 0x0:_0x1f8e42[_0x2b9f4f];return _0x2a94dc(_0x44bc69,{'settings':_0x33f73e[_0x5d8df8(0x89)]===void 0x0?_0x3108e4??null:_0x33f73e['settings'],'sectionId':_0x33f73e[_0x5d8df8(0x9c)],'suppressEndnotes':_0x33f73e[_0x5d8df8(0x66)]},_0x2b9f4f);}function _0x310836(_0x6c936a,_0x1e7b50,_0x41b544){const _0x125a96=_0x3d57a9;var _0x59e09c,_0x73ce45,_0x58f8db;if(!_0x1e7b50||_0x1e7b50['segmentId'])return!0x1;let _0x1f593c=_0x6c936a[_0x125a96(0x65)](_0x5d8c03['IUniverInstanceService'])[_0x125a96(0x98)](_0x1e7b50[_0x125a96(0xa2)],_0x5d8c03[_0x125a96(0x7c)][_0x125a96(0xc3)]),_0x500ff0=_0x1f593c==null?void 0x0:_0x1f593c[_0x125a96(0x7e)](),{offset:_0x54a036}=_0x1e7b50;if(!_0x4008e4(_0x500ff0,_0x54a036))return!0x1;let _0x43be11=_0x41595e(_0x500ff0,_0x1e7b50,_0x41b544);if(_0x43be11===!0x1)return!0x1;let _0x4c42a3=_0x1e7b50[_0x125a96(0xaf)]??(0x0,_0x5d8c03['generateRandomId'])(0xc);if((_0x59e09c=_0x500ff0[_0x125a96(0x8a)])!=null&&_0x59e09c[_0x4c42a3]||(_0x73ce45=_0x500ff0['headers'])!=null&&_0x73ce45[_0x4c42a3]||(_0x58f8db=_0x500ff0[_0x125a96(0xcf)])!=null&&_0x58f8db[_0x4c42a3])return!0x1;let _0x2b9d7d=_0x5d8c03['Tools']['deepClone']({'type':_0x41b544,'noteId':_0x4c42a3,'body':_0x1e7b50[_0x125a96(0x97)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x5d8c03['createParagraphId'])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x5d8c03[_0x125a96(0x6e)])(new Set()),'startIndex':0x1}]},'customMark':_0x1e7b50[_0x125a96(0xd2)],'referenceTextStyle':_0x1e7b50[_0x125a96(0x77)],'tableSource':_0x1e7b50['tableSource'],'drawings':_0x1e7b50[_0x125a96(0xc5)],'drawingsOrder':_0x1e7b50[_0x125a96(0xa9)],'lists':_0x1e7b50[_0x125a96(0xbf)]});if((0x0,_0x5d8c03['validateDocumentStructure'])({'notes':{[_0x4c42a3]:_0x2b9d7d}})['length']>0x0)return!0x1;let _0x68c8fc=new _0x5d8c03['TextX']();_0x54a036>0x0&&_0x68c8fc['retain'](_0x54a036),_0x68c8fc[_0x125a96(0x80)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x41b544===_0x125a96(0xbb)?_0x5d8c03['CustomRangeType'][_0x125a96(0xb8)]:_0x5d8c03[_0x125a96(0xe2)][_0x125a96(0xc1)],'rangeId':(0x0,_0x5d8c03['generateRandomId'])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4c42a3}}]});let _0xe12c0d=_0x5d8c03['JSONX'][_0x125a96(0x73)](),_0x538b54=_0x500ff0[_0x125a96(0x8a)]==null?_0xe12c0d[_0x125a96(0x85)](['notes'],{[_0x4c42a3]:_0x2b9d7d}):_0xe12c0d[_0x125a96(0x85)]([_0x125a96(0x8a),_0x4c42a3],_0x2b9d7d);return!!_0x6c936a['get'](_0x5d8c03[_0x125a96(0xd5)])[_0x125a96(0xe5)](_0x2d6a04['RichTextEditingMutation']['id'],{'unitId':_0x1e7b50['unitId'],'segmentId':'','historyAction':_0x125a96(0xb3)+_0x41b544,'actions':_0x5d8c03[_0x125a96(0x6d)][_0x125a96(0xb1)](_0x5d8c03[_0x125a96(0x6d)][_0x125a96(0xb1)](_0x43be11,_0x538b54),_0xe12c0d['editOp'](_0x68c8fc[_0x125a96(0xe6)](),[_0x125a96(0x97)])),'textRanges':[{'segmentId':_0x4c42a3,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x2f41d3(_0x49a1ee,_0x44b612,_0x551327){const _0x5e1854=_0x3d57a9;var _0x53b885,_0x30571d;if(!_0x44b612)return!0x1;let _0x530f40=_0x49a1ee[_0x5e1854(0x65)](_0x5d8c03[_0x5e1854(0xdd)])[_0x5e1854(0x98)](_0x44b612[_0x5e1854(0xa2)],_0x5d8c03[_0x5e1854(0x7c)][_0x5e1854(0xc3)]),_0x52c0d3=_0x530f40==null?void 0x0:_0x530f40['getSnapshot'](),_0x22710c=_0x52c0d3==null||(_0x53b885=_0x52c0d3[_0x5e1854(0x8a)])==null?void 0x0:_0x53b885[_0x44b612[_0x5e1854(0xaf)]],_0x1e991f=_0x52c0d3==null||(_0x30571d=_0x52c0d3['body'])==null||(_0x30571d=_0x30571d[_0x5e1854(0x95)])==null?void 0x0:_0x30571d['find'](_0x4fec14=>{const _0x3e308b=_0x5e1854;var _0x4f9421;return(_0x4fec14['rangeType']===_0x5d8c03[_0x3e308b(0xe2)][_0x3e308b(0xb8)]||_0x4fec14[_0x3e308b(0x7d)]===_0x5d8c03[_0x3e308b(0xe2)][_0x3e308b(0xc1)])&&((_0x4f9421=_0x4fec14[_0x3e308b(0x75)])==null?void 0x0:_0x4f9421[_0x3e308b(0xaf)])===_0x44b612[_0x3e308b(0xaf)];});if(!_0x52c0d3||_0x52c0d3[_0x5e1854(0xc9)]['documentFlavor']!==_0x5d8c03[_0x5e1854(0xb4)][_0x5e1854(0xba)]||!_0x22710c||_0x22710c['type']!==_0x551327||!_0x1e991f)return!0x1;let _0x5ac75f=new _0x5d8c03['TextX']();_0x1e991f['startIndex']>0x0&&_0x5ac75f[_0x5e1854(0x9e)](_0x1e991f[_0x5e1854(0xcc)]),_0x5ac75f[_0x5e1854(0xcb)](0x1);let _0x1c4ca8=_0x5d8c03['JSONX'][_0x5e1854(0x73)]();return!!_0x49a1ee[_0x5e1854(0x65)](_0x5d8c03[_0x5e1854(0xd5)])[_0x5e1854(0xe5)](_0x2d6a04[_0x5e1854(0xa6)]['id'],{'unitId':_0x44b612[_0x5e1854(0xa2)],'segmentId':'','historyAction':'delete-'+_0x551327,'actions':_0x5d8c03[_0x5e1854(0x6d)][_0x5e1854(0xb1)](_0x1c4ca8[_0x5e1854(0x91)](_0x5ac75f[_0x5e1854(0xe6)](),[_0x5e1854(0x97)]),_0x1c4ca8[_0x5e1854(0xe1)]([_0x5e1854(0x8a),_0x44b612[_0x5e1854(0xaf)]],_0x22710c)),'textRanges':[{'startOffset':_0x1e991f[_0x5e1854(0xcc)],'endOffset':_0x1e991f[_0x5e1854(0xcc)],'collapsed':!0x0}],'debounce':!0x1});}let _0x2cfaa5={'id':_0x3d57a9(0x7a),'type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x304222,_0x1a0a68)=>_0x310836(_0x304222,_0x1a0a68,'footnote')},_0x39c13c={'id':'doc.command.delete-footnote','type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x10c3f2,_0xcf0e78)=>_0x2f41d3(_0x10c3f2,_0xcf0e78,_0x3d57a9(0xbb))},_0x312d39={'id':_0x3d57a9(0xd1),'type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x24e882,_0x52d16f)=>_0x310836(_0x24e882,_0x52d16f,_0x3d57a9(0x7b))},_0x2c383e={'id':_0x3d57a9(0xc4),'type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x190a14,_0x1494cd)=>_0x2f41d3(_0x190a14,_0x1494cd,_0x3d57a9(0x7b))};var _0x3ef343='@univerjs-pro/docs-reference',_0x3c126c=_0x3d57a9(0x9f);let _0x2874c8={};function _0x4d7536(_0x425f9a,_0x11dd02){return function(_0x2ff2df,_0x1034b7){_0x11dd02(_0x2ff2df,_0x1034b7,_0x425f9a);};}function _0x4e6b5a(_0x3bbb5e,_0x22b94c,_0xdea5ca,_0xa1daca){const _0x581963=_0x3d57a9;var _0x3c09d0=arguments[_0x581963(0xa0)],_0x7c2aa8=_0x3c09d0<0x3?_0x22b94c:_0xa1daca===null?_0xa1daca=Object[_0x581963(0xbe)](_0x22b94c,_0xdea5ca):_0xa1daca,_0x4ca338;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x581963(0x7f))_0x7c2aa8=Reflect[_0x581963(0xae)](_0x3bbb5e,_0x22b94c,_0xdea5ca,_0xa1daca);else{for(var _0x559780=_0x3bbb5e[_0x581963(0xa0)]-0x1;_0x559780>=0x0;_0x559780--)(_0x4ca338=_0x3bbb5e[_0x559780])&&(_0x7c2aa8=(_0x3c09d0<0x3?_0x4ca338(_0x7c2aa8):_0x3c09d0>0x3?_0x4ca338(_0x22b94c,_0xdea5ca,_0x7c2aa8):_0x4ca338(_0x22b94c,_0xdea5ca))||_0x7c2aa8);}return _0x3c09d0>0x3&&_0x7c2aa8&&Object['defineProperty'](_0x22b94c,_0xdea5ca,_0x7c2aa8),_0x7c2aa8;}function _0x3bf735(_0x3673aa){'@babel/helpers - typeof';const _0xf45748=_0x3d57a9;return _0x3bf735=typeof Symbol==_0xf45748(0x7f)&&typeof Symbol['iterator']==_0xf45748(0xc7)?function(_0x2dfa96){return typeof _0x2dfa96;}:function(_0xa04e01){const _0x3a096b=_0xf45748;return _0xa04e01&&typeof Symbol==_0x3a096b(0x7f)&&_0xa04e01['constructor']===Symbol&&_0xa04e01!==Symbol['prototype']?_0x3a096b(0xc7):typeof _0xa04e01;},_0x3bf735(_0x3673aa);}function _0x42dd3a(_0x17acaa,_0x45559a){const _0x4fcc95=_0x3d57a9;if(_0x3bf735(_0x17acaa)!=_0x4fcc95(0x6b)||!_0x17acaa)return _0x17acaa;var _0x3f694b=_0x17acaa[Symbol['toPrimitive']];if(_0x3f694b!==void 0x0){var _0xa3a76d=_0x3f694b[_0x4fcc95(0x93)](_0x17acaa,_0x45559a||'default');if(_0x3bf735(_0xa3a76d)!=_0x4fcc95(0x6b))return _0xa3a76d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x45559a===_0x4fcc95(0x6f)?String:Number)(_0x17acaa);}function _0x380668(_0x13befa){const _0x34b455=_0x3d57a9;var _0x10b1a8=_0x42dd3a(_0x13befa,_0x34b455(0x6f));return _0x3bf735(_0x10b1a8)==_0x34b455(0xc7)?_0x10b1a8:_0x10b1a8+'';}function _0xa4440b(_0x365482,_0x30702e,_0x1b91b2){const _0x45d5b3=_0x3d57a9;return(_0x30702e=_0x380668(_0x30702e))in _0x365482?Object[_0x45d5b3(0xb2)](_0x365482,_0x30702e,{'value':_0x1b91b2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x365482[_0x30702e]=_0x1b91b2,_0x365482;}let _0x3d8801=class extends _0x5d8c03[_0x3d57a9(0xa7)]{constructor(_0x570f98=_0x2874c8,_0x47d346,_0xc5425c,_0x5ad5a3){const _0x33b4a9=_0x3d57a9;super(),this[_0x33b4a9(0xa1)]=_0x570f98,this[_0x33b4a9(0xbd)]=_0x47d346,this[_0x33b4a9(0x79)]=_0xc5425c,this[_0x33b4a9(0x84)]=_0x5ad5a3;let {..._0x2706e7}=(0x0,_0x5d8c03[_0x33b4a9(0x69)])({},_0x2874c8,this[_0x33b4a9(0xa1)]);this['_configService']['setConfig'](_0x33b4a9(0x8f),_0x2706e7);}[_0x3d57a9(0x99)](){const _0x1caaed=_0x3d57a9;[_0x2cfaa5,_0x39c13c,_0x4aeec9,_0x312d39,_0x2c383e,_0x47f9e3][_0x1caaed(0xc2)](_0x5b8f0c=>this[_0x1caaed(0xab)](this[_0x1caaed(0x84)][_0x1caaed(0xd8)](_0x5b8f0c)));}};_0xa4440b(_0x3d8801,_0x3d57a9(0xe3),_0x3d57a9(0x74)),_0xa4440b(_0x3d8801,'packageName',_0x3ef343),_0xa4440b(_0x3d8801,_0x3d57a9(0xd4),_0x3c126c),_0xa4440b(_0x3d8801,'type',_0x5d8c03[_0x3d57a9(0x7c)][_0x3d57a9(0xc3)]),_0x3d8801=_0x4e6b5a([(0x0,_0x5d8c03[_0x3d57a9(0xe4)])(_0x5a89e6['UniverLicensePlugin'],_0x2d6a04[_0x3d57a9(0xb5)]),_0x4d7536(0x1,(0x0,_0x5d8c03['Inject'])(_0x5d8c03[_0x3d57a9(0xd9)])),_0x4d7536(0x2,_0x5d8c03[_0x3d57a9(0xdb)]),_0x4d7536(0x3,_0x5d8c03[_0x3d57a9(0xd5)])],_0x3d8801),_0x40c64f[_0x3d57a9(0xad)]=_0x2c383e,_0x40c64f[_0x3d57a9(0xb0)]=_0x39c13c,_0x40c64f[_0x3d57a9(0xb7)]=_0x312d39,_0x40c64f[_0x3d57a9(0x83)]=_0x2cfaa5,_0x40c64f['SetDocumentEndnoteSettingsCommand']=_0x47f9e3,_0x40c64f[_0x3d57a9(0xcd)]=_0x4aeec9,Object[_0x3d57a9(0xb2)](_0x40c64f,_0x3d57a9(0xde),{'enumerable':!0x0,'get':function(){return _0x3d8801;}});}));function _0x597d(_0x3139ae,_0xcfce5f){_0x3139ae=_0x3139ae-0x65;const _0x3d58fe=_0x3d58();let _0x597dc0=_0x3d58fe[_0x3139ae];return _0x597dc0;}function _0x3d58(){const _0x9051a7=['notes','isInteger','continuationSeparator','@univerjs/core','startNumber','docs-reference.config','8730bmqzgQ','editOp','4396520duFubs','call','2306fbZEBa','customRanges','every','body','getUnit','onStarting','numberFormat','position','sectionId','documentFlavor','retain','1.0.2','length','_config','unitId','continuous','noteSettings','4829185uZeRai','RichTextEditingMutation','Plugin','boolean','drawingsOrder','columnCount','disposeWithMe','UniverProDocsReference','DeleteDocumentEndnoteCommand','decorate','noteId','DeleteDocumentFootnoteCommand','compose','defineProperty','insert-','DocumentFlavor','UniverDocsPlugin','42uglypf','InsertDocumentEndnoteCommand','FOOTNOTE','validateDocBodyStructure','TRADITIONAL','footnote','CommandType','_injector','getOwnPropertyDescriptor','lists','set-','ENDNOTE','forEach','UNIVER_DOC','doc.command.delete-endnote','drawings','-settings','symbol','replaceOp','documentStyle','23324MYnijM','delete','startIndex','SetDocumentFootnoteSettingsCommand','1472YKWzab','footers','docEnd','doc.command.insert-endnote','customMark','isNoop','version','ICommandService','5801048yeuCFv','708036heEeCB','registerCommand','Injector','sectEnd','IConfigService','amd','IUniverInstanceService','UniverDocsReferencePlugin','894wtKorM','beneathText','removeOp','CustomRangeType','pluginName','DependentOn','syncExecuteCommand','serialize','get','suppressEndnotes','separator','keys','merge','dataStream','object','sectionBreaks','JSONX','createSectionId','string','63odfXJk','restart','noteProperties','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','properties','@univerjs/docs','referenceTextStyle','includes','_configService','doc.command.insert-footnote','endnote','UniverInstanceType','rangeType','getSnapshot','function','insert','exports','eachSect','InsertDocumentFootnoteCommand','_commandService','insertOp','deepClone','doc.command.set-footnote-settings','COMMAND','settings'];_0x3d58=function(){return _0x9051a7;};return _0x3d58();}
1
+ function _0x1dd0(_0x27efe3,_0x2dced6){_0x27efe3=_0x27efe3-0x6d;const _0x18e67e=_0x18e6();let _0x1dd06d=_0x18e67e[_0x27efe3];return _0x1dd06d;}(function(_0x536dda,_0x5e1c53){const _0x16cbf9=_0x1dd0,_0x4d7000=_0x536dda();while(!![]){try{const _0x29e911=parseInt(_0x16cbf9(0xb4))/0x1*(parseInt(_0x16cbf9(0xe0))/0x2)+-parseInt(_0x16cbf9(0xf8))/0x3*(parseInt(_0x16cbf9(0xc4))/0x4)+parseInt(_0x16cbf9(0x75))/0x5*(-parseInt(_0x16cbf9(0xfb))/0x6)+-parseInt(_0x16cbf9(0xca))/0x7*(-parseInt(_0x16cbf9(0xfe))/0x8)+parseInt(_0x16cbf9(0xc1))/0x9*(parseInt(_0x16cbf9(0x89))/0xa)+parseInt(_0x16cbf9(0x8a))/0xb*(-parseInt(_0x16cbf9(0x81))/0xc)+-parseInt(_0x16cbf9(0x9d))/0xd;if(_0x29e911===_0x5e1c53)break;else _0x4d7000['push'](_0x4d7000['shift']());}catch(_0x666d87){_0x4d7000['push'](_0x4d7000['shift']());}}}(_0x18e6,0x262df),function(_0x74167f,_0x45401d){const _0xe4fbf9=_0x1dd0;typeof exports==_0xe4fbf9(0xe1)&&typeof module<'u'?_0x45401d(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0xe4fbf9(0x7b)&&define['amd']?define([_0xe4fbf9(0xa5),_0xe4fbf9(0xb2),_0xe4fbf9(0xa8),_0xe4fbf9(0xf0)],_0x45401d):(_0x74167f=typeof globalThis<'u'?globalThis:_0x74167f||self,_0x45401d(_0x74167f['UniverProDocsReference']={},_0x74167f['UniverCore'],_0x74167f[_0xe4fbf9(0xef)],_0x74167f[_0xe4fbf9(0x78)]));}(this,function(_0x12639a,_0x4c90e0,_0x4b7b07,_0x3f1e82){const _0x42cf90=_0x1dd0;Object[_0x42cf90(0xdb)](_0x12639a,Symbol[_0x42cf90(0xc2)],{'value':'Module'});function _0x20506f(_0x4549cb,_0x4cb9c4,_0x2412cb){const _0x4b294d=_0x42cf90;if(_0x4549cb[_0x4b294d(0xf5)]!=null&&!(_0x4cb9c4==='footnote'?['pageBottom','beneathText']:[_0x4b294d(0x99),_0x4b294d(0xd7)])[_0x4b294d(0xe5)](_0x4549cb[_0x4b294d(0xf5)])||_0x4549cb[_0x4b294d(0x80)]!=null&&!(_0x4cb9c4===_0x4b294d(0x6f)?[_0x4b294d(0x79),_0x4b294d(0xae),_0x4b294d(0x8c)]:[_0x4b294d(0x79),'eachSect'])[_0x4b294d(0xe5)](_0x4549cb[_0x4b294d(0x80)])||_0x4549cb[_0x4b294d(0x85)]!=null&&(!Number[_0x4b294d(0xd9)](_0x4549cb[_0x4b294d(0x85)])||_0x4549cb['startNumber']<0x1)||_0x4b294d(0xe2)in _0x4549cb&&_0x4549cb[_0x4b294d(0xe2)]!=null&&(_0x4cb9c4!=='footnote'||!Number[_0x4b294d(0xd9)](_0x4549cb[_0x4b294d(0xe2)])||_0x4549cb[_0x4b294d(0xe2)]<0x0||_0x4549cb[_0x4b294d(0xe2)]>0x4)||_0x4549cb['numberFormat']!=null&&(typeof _0x4549cb[_0x4b294d(0xe3)]!='string'||_0x4549cb['numberFormat'][_0x4b294d(0xb0)]===0x0))return!0x1;for(let _0x168e4d of[_0x4549cb[_0x4b294d(0xfc)],_0x4549cb[_0x4b294d(0xce)],_0x4549cb[_0x4b294d(0x6e)]])if(_0x168e4d!=null&&(_0x2412cb!=null||(0x0,_0x4c90e0[_0x4b294d(0x73)])(_0x168e4d)[_0x4b294d(0xb0)]>0x0))return!0x1;return!0x0;}function _0x426eff(_0x259ec8,_0x1df81b,_0x1aa1cf){const _0x33ab09=_0x42cf90;var _0x38c8ab,_0x4a6b29;if(_0x1df81b[_0x33ab09(0x76)]!=null&&!_0x20506f(_0x1df81b[_0x33ab09(0x76)],_0x1aa1cf,_0x1df81b[_0x33ab09(0xbc)]))return!0x1;let _0x94beec=((_0x38c8ab=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x38c8ab=_0x38c8ab[_0x33ab09(0xf1)])==null?void 0x0:_0x38c8ab['findIndex'](_0x50dfe8=>_0x50dfe8['sectionId']===_0x1df81b[_0x33ab09(0xbc)]))??-0x1;if(_0x1df81b['sectionId']!=null&&_0x94beec<0x0)return!0x1;let _0x571c62=_0x1df81b[_0x33ab09(0xbc)]==null?_0x259ec8[_0x33ab09(0x93)]:(_0x4a6b29=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x4a6b29=_0x4a6b29['sectionBreaks'])==null?void 0x0:_0x4a6b29[_0x94beec][_0x33ab09(0xee)],_0x42e690=_0x1df81b[_0x33ab09(0x76)]==null?void 0x0:_0x4c90e0[_0x33ab09(0xa0)][_0x33ab09(0x77)](_0x1df81b[_0x33ab09(0x76)]),_0x4d9c85=_0x1df81b['sectionId']==null?['noteSettings']:[_0x33ab09(0xb5),_0x33ab09(0xf1),_0x94beec,_0x33ab09(0xee)],_0x44c176=_0x4c90e0[_0x33ab09(0xf7)][_0x33ab09(0xac)](),_0x641f8c=null;if(_0x4c90e0[_0x33ab09(0xa0)][_0x33ab09(0x97)](_0x571c62==null?void 0x0:_0x571c62[_0x1aa1cf],_0x42e690)||(_0x641f8c=_0x571c62==null?_0x44c176[_0x33ab09(0xd5)](_0x4d9c85,{[_0x1aa1cf]:_0x42e690}):_0x1df81b[_0x33ab09(0xbc)]!=null&&_0x42e690==null&&Object['keys'](_0x571c62)[_0x33ab09(0xf2)](_0xda0997=>_0xda0997===_0x1aa1cf)?_0x44c176[_0x33ab09(0x6d)](_0x4d9c85,_0x571c62):_0x44c176[_0x33ab09(0xa3)]([..._0x4d9c85,_0x1aa1cf],_0x571c62[_0x1aa1cf],_0x42e690)),_0x1df81b[_0x33ab09(0x92)]!=null){var _0x14ffaf;if(_0x1aa1cf!==_0x33ab09(0x74)||_0x1df81b[_0x33ab09(0xbc)]==null||typeof _0x1df81b[_0x33ab09(0x92)]!='boolean')return!0x1;let _0x393d1f=(_0x14ffaf=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x14ffaf=_0x14ffaf[_0x33ab09(0xf1)])==null?void 0x0:_0x14ffaf[_0x94beec][_0x33ab09(0x92)];_0x393d1f!==_0x1df81b['suppressEndnotes']&&(_0x641f8c=_0x4c90e0[_0x33ab09(0xf7)]['compose'](_0x641f8c,_0x44c176[_0x33ab09(0xa3)](['body','sectionBreaks',_0x94beec,_0x33ab09(0x92)],_0x393d1f,_0x1df81b[_0x33ab09(0x92)])));}return _0x641f8c;}function _0x36f59d(_0xe2b999,_0x2f60ef,_0x5b93c0){const _0x583da7=_0x42cf90;if(!_0x2f60ef)return!0x1;let _0x3e8a3e=_0xe2b999[_0x583da7(0xcd)](_0x4c90e0[_0x583da7(0xec)])[_0x583da7(0xc5)](_0x2f60ef['unitId'],_0x4c90e0['UniverInstanceType'][_0x583da7(0x95)]),_0x1e114=_0x3e8a3e==null?void 0x0:_0x3e8a3e[_0x583da7(0x86)]();if(!_0x1e114||_0x1e114['documentStyle'][_0x583da7(0xed)]!==_0x4c90e0[_0x583da7(0x7a)][_0x583da7(0xb3)])return!0x1;let _0x251e36=_0x426eff(_0x1e114,_0x2f60ef,_0x5b93c0);return _0x251e36===!0x1||_0x4c90e0[_0x583da7(0xf7)][_0x583da7(0x90)](_0x251e36)?!0x1:!!_0xe2b999[_0x583da7(0xcd)](_0x4c90e0['ICommandService'])[_0x583da7(0xe4)](_0x4b7b07[_0x583da7(0x7f)]['id'],{'unitId':_0x2f60ef['unitId'],'segmentId':'','historyAction':_0x583da7(0x8d)+_0x5b93c0+_0x583da7(0xe9),'actions':_0x251e36,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x3ebf59={'id':'doc.command.set-footnote-settings','type':_0x4c90e0[_0x42cf90(0xc7)][_0x42cf90(0xfd)],'handler':(_0x3cae66,_0x103cc0)=>_0x36f59d(_0x3cae66,_0x103cc0,_0x42cf90(0x6f))},_0x2684ed={'id':_0x42cf90(0x82),'type':_0x4c90e0['CommandType'][_0x42cf90(0xfd)],'handler':(_0x1fb934,_0x2f28c8)=>_0x36f59d(_0x1fb934,_0x2f28c8,_0x42cf90(0x74))};function _0x45d47e(_0x256ab0,_0x53a4b9){const _0x25a082=_0x42cf90;return(_0x256ab0==null?void 0x0:_0x256ab0[_0x25a082(0xde)][_0x25a082(0xed)])===_0x4c90e0[_0x25a082(0x7a)]['TRADITIONAL']&&!!_0x256ab0['body']&&Number['isInteger'](_0x53a4b9)&&_0x53a4b9>=0x0&&_0x53a4b9<_0x256ab0[_0x25a082(0xb5)][_0x25a082(0xea)][_0x25a082(0xb0)]-0x1;}function _0x2526cd(_0xae4c7f,_0x50390c,_0x352c3e){const _0x5d4f3f=_0x42cf90;var _0x553960,_0x392333;if(_0x50390c[_0x5d4f3f(0x76)]===void 0x0&&_0x50390c[_0x5d4f3f(0x92)]===void 0x0)return null;let _0x3188d9=_0x50390c[_0x5d4f3f(0xbc)]==null?(_0x553960=_0xae4c7f[_0x5d4f3f(0x93)])==null?void 0x0:_0x553960[_0x352c3e]:(_0x392333=_0xae4c7f[_0x5d4f3f(0xb5)])==null||(_0x392333=_0x392333['sectionBreaks'])==null||(_0x392333=_0x392333[_0x5d4f3f(0xe6)](_0x2b4ff1=>_0x2b4ff1[_0x5d4f3f(0xbc)]===_0x50390c[_0x5d4f3f(0xbc)]))==null||(_0x392333=_0x392333['noteProperties'])==null?void 0x0:_0x392333[_0x352c3e];return _0x426eff(_0xae4c7f,{'settings':_0x50390c[_0x5d4f3f(0x76)]===void 0x0?_0x3188d9??null:_0x50390c[_0x5d4f3f(0x76)],'sectionId':_0x50390c[_0x5d4f3f(0xbc)],'suppressEndnotes':_0x50390c['suppressEndnotes']},_0x352c3e);}function _0x269270(_0x19c8b8,_0x61994,_0x406527){const _0x248e87=_0x42cf90;var _0x42c5df,_0x13da31,_0x275a27;if(!_0x61994||_0x61994[_0x248e87(0xbd)])return!0x1;let _0x369198=_0x19c8b8[_0x248e87(0xcd)](_0x4c90e0[_0x248e87(0xec)])[_0x248e87(0xc5)](_0x61994[_0x248e87(0x7c)],_0x4c90e0[_0x248e87(0xdc)][_0x248e87(0x95)]),_0x286c8a=_0x369198==null?void 0x0:_0x369198[_0x248e87(0x86)](),{offset:_0x5e240f}=_0x61994;if(!_0x45d47e(_0x286c8a,_0x5e240f))return!0x1;let _0x5ce5bc=_0x2526cd(_0x286c8a,_0x61994,_0x406527);if(_0x5ce5bc===!0x1)return!0x1;let _0x27e91a=_0x61994[_0x248e87(0xaf)]??(0x0,_0x4c90e0[_0x248e87(0x9a)])(0xc);if((_0x42c5df=_0x286c8a[_0x248e87(0xd4)])!=null&&_0x42c5df[_0x27e91a]||(_0x13da31=_0x286c8a[_0x248e87(0x8f)])!=null&&_0x13da31[_0x27e91a]||(_0x275a27=_0x286c8a[_0x248e87(0x71)])!=null&&_0x275a27[_0x27e91a])return!0x1;let _0x500a59=_0x4c90e0['Tools']['deepClone']({'type':_0x406527,'noteId':_0x27e91a,'body':_0x61994[_0x248e87(0xb5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x4c90e0[_0x248e87(0xbe)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x4c90e0[_0x248e87(0x9c)])(new Set()),'startIndex':0x1}]},'customMark':_0x61994[_0x248e87(0xc8)],'referenceTextStyle':_0x61994[_0x248e87(0xab)],'tableSource':_0x61994[_0x248e87(0x84)],'drawings':_0x61994[_0x248e87(0xa4)],'drawingsOrder':_0x61994[_0x248e87(0xd1)],'lists':_0x61994[_0x248e87(0xb7)]});if((0x0,_0x4c90e0['validateDocumentStructure'])({'notes':{[_0x27e91a]:_0x500a59}})['length']>0x0)return!0x1;let _0x1703bc=new _0x4c90e0[(_0x248e87(0xc9))]();_0x5e240f>0x0&&_0x1703bc[_0x248e87(0x9e)](_0x5e240f),_0x1703bc[_0x248e87(0xbf)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x406527==='footnote'?_0x4c90e0[_0x248e87(0x8b)][_0x248e87(0xcb)]:_0x4c90e0['CustomRangeType'][_0x248e87(0xb1)],'rangeId':(0x0,_0x4c90e0[_0x248e87(0x9a)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27e91a}}]});let _0x600cbc=_0x4c90e0[_0x248e87(0xf7)][_0x248e87(0xac)](),_0x6f816e=_0x286c8a[_0x248e87(0xd4)]==null?_0x600cbc[_0x248e87(0xd5)](['notes'],{[_0x27e91a]:_0x500a59}):_0x600cbc[_0x248e87(0xd5)]([_0x248e87(0xd4),_0x27e91a],_0x500a59);return!!_0x19c8b8[_0x248e87(0xcd)](_0x4c90e0[_0x248e87(0xb8)])['syncExecuteCommand'](_0x4b7b07['RichTextEditingMutation']['id'],{'unitId':_0x61994['unitId'],'segmentId':'','historyAction':_0x248e87(0xc6)+_0x406527,'actions':_0x4c90e0[_0x248e87(0xf7)][_0x248e87(0xda)](_0x4c90e0[_0x248e87(0xf7)]['compose'](_0x5ce5bc,_0x6f816e),_0x600cbc[_0x248e87(0x94)](_0x1703bc[_0x248e87(0xa1)](),[_0x248e87(0xb5)])),'textRanges':[{'segmentId':_0x27e91a,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x3c88b6(_0x10c0ca,_0x41a9e7,_0x39e63b){const _0x28c1e3=_0x42cf90;var _0x3f7fbf,_0x48e40b;if(!_0x41a9e7)return!0x1;let _0x1cef95=_0x10c0ca[_0x28c1e3(0xcd)](_0x4c90e0[_0x28c1e3(0xec)])[_0x28c1e3(0xc5)](_0x41a9e7[_0x28c1e3(0x7c)],_0x4c90e0[_0x28c1e3(0xdc)][_0x28c1e3(0x95)]),_0x340589=_0x1cef95==null?void 0x0:_0x1cef95[_0x28c1e3(0x86)](),_0x4e56f2=_0x340589==null||(_0x3f7fbf=_0x340589[_0x28c1e3(0xd4)])==null?void 0x0:_0x3f7fbf[_0x41a9e7[_0x28c1e3(0xaf)]],_0x30741c=_0x340589==null||(_0x48e40b=_0x340589[_0x28c1e3(0xb5)])==null||(_0x48e40b=_0x48e40b[_0x28c1e3(0xf6)])==null?void 0x0:_0x48e40b['find'](_0x28fc86=>{const _0x4809b5=_0x28c1e3;var _0x4a8522;return(_0x28fc86[_0x4809b5(0x7d)]===_0x4c90e0[_0x4809b5(0x8b)][_0x4809b5(0xcb)]||_0x28fc86[_0x4809b5(0x7d)]===_0x4c90e0[_0x4809b5(0x8b)][_0x4809b5(0xb1)])&&((_0x4a8522=_0x28fc86['properties'])==null?void 0x0:_0x4a8522[_0x4809b5(0xaf)])===_0x41a9e7[_0x4809b5(0xaf)];});if(!_0x340589||_0x340589[_0x28c1e3(0xde)][_0x28c1e3(0xed)]!==_0x4c90e0['DocumentFlavor'][_0x28c1e3(0xb3)]||!_0x4e56f2||_0x4e56f2['type']!==_0x39e63b||!_0x30741c)return!0x1;let _0x322d0d=new _0x4c90e0['TextX']();_0x30741c[_0x28c1e3(0xa6)]>0x0&&_0x322d0d[_0x28c1e3(0x9e)](_0x30741c[_0x28c1e3(0xa6)]),_0x322d0d[_0x28c1e3(0xa2)](0x1);let _0x40ffbc=_0x4c90e0['JSONX'][_0x28c1e3(0xac)]();return!!_0x10c0ca[_0x28c1e3(0xcd)](_0x4c90e0[_0x28c1e3(0xb8)])[_0x28c1e3(0xe4)](_0x4b7b07['RichTextEditingMutation']['id'],{'unitId':_0x41a9e7[_0x28c1e3(0x7c)],'segmentId':'','historyAction':_0x28c1e3(0xf9)+_0x39e63b,'actions':_0x4c90e0['JSONX']['compose'](_0x40ffbc['editOp'](_0x322d0d[_0x28c1e3(0xa1)](),[_0x28c1e3(0xb5)]),_0x40ffbc[_0x28c1e3(0x6d)]([_0x28c1e3(0xd4),_0x41a9e7[_0x28c1e3(0xaf)]],_0x4e56f2)),'textRanges':[{'startOffset':_0x30741c[_0x28c1e3(0xa6)],'endOffset':_0x30741c[_0x28c1e3(0xa6)],'collapsed':!0x0}],'debounce':!0x1});}let _0x5e87d8={'id':_0x42cf90(0xba),'type':_0x4c90e0[_0x42cf90(0xc7)]['COMMAND'],'handler':(_0x1d84ad,_0x430c1c)=>_0x269270(_0x1d84ad,_0x430c1c,_0x42cf90(0x6f))},_0x2f487c={'id':_0x42cf90(0xc3),'type':_0x4c90e0['CommandType'][_0x42cf90(0xfd)],'handler':(_0x170854,_0x51b93a)=>_0x3c88b6(_0x170854,_0x51b93a,_0x42cf90(0x6f))},_0xecc2bc={'id':_0x42cf90(0xeb),'type':_0x4c90e0[_0x42cf90(0xc7)]['COMMAND'],'handler':(_0x25866a,_0x53c975)=>_0x269270(_0x25866a,_0x53c975,_0x42cf90(0x74))},_0xdcf53b={'id':_0x42cf90(0x8e),'type':_0x4c90e0[_0x42cf90(0xc7)][_0x42cf90(0xfd)],'handler':(_0xbab5ce,_0x5a1040)=>_0x3c88b6(_0xbab5ce,_0x5a1040,_0x42cf90(0x74))};var _0x4761e2=_0x42cf90(0xe8),_0x8570c0=_0x42cf90(0x9f);let _0x49bd17={};function _0x27bd0c(_0x3a062c,_0x15555e){return function(_0x45ccad,_0x24a8fe){_0x15555e(_0x45ccad,_0x24a8fe,_0x3a062c);};}function _0x58d9ea(_0x55f46a,_0x13f0fb,_0x3d5d89,_0x1b36e3){const _0x4c51e1=_0x42cf90;var _0x164efc=arguments[_0x4c51e1(0xb0)],_0x5c1b8b=_0x164efc<0x3?_0x13f0fb:_0x1b36e3===null?_0x1b36e3=Object['getOwnPropertyDescriptor'](_0x13f0fb,_0x3d5d89):_0x1b36e3,_0x5ce3fc;if(typeof Reflect==_0x4c51e1(0xe1)&&typeof Reflect[_0x4c51e1(0xfa)]==_0x4c51e1(0x7b))_0x5c1b8b=Reflect[_0x4c51e1(0xfa)](_0x55f46a,_0x13f0fb,_0x3d5d89,_0x1b36e3);else{for(var _0x52c75d=_0x55f46a[_0x4c51e1(0xb0)]-0x1;_0x52c75d>=0x0;_0x52c75d--)(_0x5ce3fc=_0x55f46a[_0x52c75d])&&(_0x5c1b8b=(_0x164efc<0x3?_0x5ce3fc(_0x5c1b8b):_0x164efc>0x3?_0x5ce3fc(_0x13f0fb,_0x3d5d89,_0x5c1b8b):_0x5ce3fc(_0x13f0fb,_0x3d5d89))||_0x5c1b8b);}return _0x164efc>0x3&&_0x5c1b8b&&Object[_0x4c51e1(0xdb)](_0x13f0fb,_0x3d5d89,_0x5c1b8b),_0x5c1b8b;}function _0x2c7feb(_0x4b37c1){'@babel/helpers - typeof';const _0x370000=_0x42cf90;return _0x2c7feb=typeof Symbol==_0x370000(0x7b)&&typeof Symbol[_0x370000(0x96)]==_0x370000(0x7e)?function(_0x211e47){return typeof _0x211e47;}:function(_0x5d1f14){const _0xc83f21=_0x370000;return _0x5d1f14&&typeof Symbol=='function'&&_0x5d1f14[_0xc83f21(0x88)]===Symbol&&_0x5d1f14!==Symbol[_0xc83f21(0x98)]?_0xc83f21(0x7e):typeof _0x5d1f14;},_0x2c7feb(_0x4b37c1);}function _0x4a50db(_0x16e99c,_0x90e5d9){const _0x350fe7=_0x42cf90;if(_0x2c7feb(_0x16e99c)!='object'||!_0x16e99c)return _0x16e99c;var _0x4af580=_0x16e99c[Symbol[_0x350fe7(0xf3)]];if(_0x4af580!==void 0x0){var _0x511cbf=_0x4af580['call'](_0x16e99c,_0x90e5d9||_0x350fe7(0xa9));if(_0x2c7feb(_0x511cbf)!=_0x350fe7(0xe1))return _0x511cbf;throw TypeError(_0x350fe7(0x72));}return(_0x90e5d9===_0x350fe7(0xb9)?String:Number)(_0x16e99c);}function _0x390b6b(_0x4fdcb4){const _0x3184ae=_0x42cf90;var _0x401216=_0x4a50db(_0x4fdcb4,_0x3184ae(0xb9));return _0x2c7feb(_0x401216)==_0x3184ae(0x7e)?_0x401216:_0x401216+'';}function _0x31368a(_0x3a475e,_0x2095bd,_0x1fd209){return(_0x2095bd=_0x390b6b(_0x2095bd))in _0x3a475e?Object['defineProperty'](_0x3a475e,_0x2095bd,{'value':_0x1fd209,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a475e[_0x2095bd]=_0x1fd209,_0x3a475e;}let _0x321418=class extends _0x4c90e0[_0x42cf90(0xdf)]{constructor(_0x3d5b5f=_0x49bd17,_0x1ae7fc,_0x55a7e6,_0x48bbe3){const _0x5ab171=_0x42cf90;super(),this[_0x5ab171(0xaa)]=_0x3d5b5f,this['_injector']=_0x1ae7fc,this['_configService']=_0x55a7e6,this['_commandService']=_0x48bbe3;let {..._0xe6eda5}=(0x0,_0x4c90e0['merge'])({},_0x49bd17,this[_0x5ab171(0xaa)]);this[_0x5ab171(0xa7)][_0x5ab171(0x9b)]('docs-reference.config',_0xe6eda5);}['onStarting'](){const _0x5e9936=_0x42cf90;[_0x5e87d8,_0x2f487c,_0x3ebf59,_0xecc2bc,_0xdcf53b,_0x2684ed]['forEach'](_0xadea0b=>this[_0x5e9936(0xdd)](this['_commandService'][_0x5e9936(0xd8)](_0xadea0b)));}};_0x31368a(_0x321418,_0x42cf90(0xad),'UNIVER_DOCS_REFERENCE_PLUGIN'),_0x31368a(_0x321418,_0x42cf90(0xd0),_0x4761e2),_0x31368a(_0x321418,_0x42cf90(0xd2),_0x8570c0),_0x31368a(_0x321418,_0x42cf90(0x87),_0x4c90e0[_0x42cf90(0xdc)][_0x42cf90(0x95)]),_0x321418=_0x58d9ea([(0x0,_0x4c90e0[_0x42cf90(0xe7)])(_0x3f1e82[_0x42cf90(0xcf)],_0x4b7b07[_0x42cf90(0xc0)]),_0x27bd0c(0x1,(0x0,_0x4c90e0[_0x42cf90(0x91)])(_0x4c90e0[_0x42cf90(0xbb)])),_0x27bd0c(0x2,_0x4c90e0[_0x42cf90(0xd3)]),_0x27bd0c(0x3,_0x4c90e0['ICommandService'])],_0x321418),_0x12639a[_0x42cf90(0xb6)]=_0xdcf53b,_0x12639a['DeleteDocumentFootnoteCommand']=_0x2f487c,_0x12639a[_0x42cf90(0x70)]=_0xecc2bc,_0x12639a[_0x42cf90(0xd6)]=_0x5e87d8,_0x12639a[_0x42cf90(0x83)]=_0x2684ed,_0x12639a[_0x42cf90(0xcc)]=_0x3ebf59,Object[_0x42cf90(0xdb)](_0x12639a,_0x42cf90(0xf4),{'enumerable':!0x0,'get':function(){return _0x321418;}});}));function _0x18e6(){const _0xdc6c35=['toStringTag','doc.command.delete-footnote','8592PIJyJD','getUnit','insert-','CommandType','customMark','TextX','315CjACXx','FOOTNOTE','SetDocumentFootnoteSettingsCommand','get','continuationSeparator','UniverLicensePlugin','packageName','drawingsOrder','version','IConfigService','notes','insertOp','InsertDocumentFootnoteCommand','sectEnd','registerCommand','isInteger','compose','defineProperty','UniverInstanceType','disposeWithMe','documentStyle','Plugin','312082uXkzBi','object','columnCount','numberFormat','syncExecuteCommand','includes','find','DependentOn','@univerjs-pro/docs-reference','-settings','dataStream','doc.command.insert-endnote','IUniverInstanceService','documentFlavor','noteProperties','UniverDocs','@univerjs-pro/license','sectionBreaks','every','toPrimitive','UniverDocsReferencePlugin','position','customRanges','JSONX','51mWHYyY','delete-','decorate','21396GEhIzA','separator','COMMAND','50088seIEeI','removeOp','continuationNotice','footnote','InsertDocumentEndnoteCommand','footers','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','validateDocBodyStructure','endnote','120xqUeNo','settings','deepClone','UniverProLicense','continuous','DocumentFlavor','function','unitId','rangeType','symbol','RichTextEditingMutation','restart','12SHmGSD','doc.command.set-endnote-settings','SetDocumentEndnoteSettingsCommand','tableSource','startNumber','getSnapshot','type','constructor','30iaieeZ','519277diVWPT','CustomRangeType','eachPage','set-','doc.command.delete-endnote','headers','isNoop','Inject','suppressEndnotes','noteSettings','editOp','UNIVER_DOC','iterator','diffValue','prototype','docEnd','generateRandomId','setConfig','createSectionId','4182139UEjKcZ','retain','1.0.4','Tools','serialize','delete','replaceOp','drawings','exports','startIndex','_configService','@univerjs/docs','default','_config','referenceTextStyle','getInstance','pluginName','eachSect','noteId','length','ENDNOTE','@univerjs/core','TRADITIONAL','1hMGieg','body','DeleteDocumentEndnoteCommand','lists','ICommandService','string','doc.command.insert-footnote','Injector','sectionId','segmentId','createParagraphId','insert','UniverDocsPlugin','628821NFEJxQ'];_0x18e6=function(){return _0xdc6c35;};return _0x18e6();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-reference",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "description": "Document references commands and Facade integration.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -59,13 +59,13 @@
59
59
  "lib"
60
60
  ],
61
61
  "dependencies": {
62
- "@univerjs-pro/license": "1.0.2",
63
- "@univerjs/core": "1.0.2",
64
- "@univerjs/docs": "1.0.2"
62
+ "@univerjs-pro/license": "1.0.4",
63
+ "@univerjs/core": "1.0.4",
64
+ "@univerjs/docs": "1.0.4"
65
65
  },
66
66
  "devDependencies": {
67
- "@univerjs-infra/shared": "1.0.2",
68
- "@univerjs/engine-render": "1.0.2",
67
+ "@univerjs-infra/shared": "1.0.4",
68
+ "@univerjs/engine-render": "1.0.4",
69
69
  "rxjs": "7.8.2",
70
70
  "typescript": "^6.0.3",
71
71
  "vitest": "^5.0.0"