@univerjs-pro/docs-reference 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x393dea=_0x2a73;function _0x2a73(_0x430339,_0x404fcf){_0x430339=_0x430339-0x1c9;const _0x3267ec=_0x3267();let _0x2a733a=_0x3267ec[_0x430339];return _0x2a733a;}(function(_0x453037,_0x37277f){const _0xb0c47a=_0x2a73,_0x5b213e=_0x453037();while(!![]){try{const _0x52ee55=-parseInt(_0xb0c47a(0x1ce))/0x1+-parseInt(_0xb0c47a(0x1d1))/0x2+-parseInt(_0xb0c47a(0x1e6))/0x3+-parseInt(_0xb0c47a(0x1d6))/0x4*(parseInt(_0xb0c47a(0x1eb))/0x5)+parseInt(_0xb0c47a(0x1f3))/0x6*(parseInt(_0xb0c47a(0x1da))/0x7)+-parseInt(_0xb0c47a(0x1de))/0x8*(parseInt(_0xb0c47a(0x1ef))/0x9)+parseInt(_0xb0c47a(0x1fb))/0xa;if(_0x52ee55===_0x37277f)break;else _0x5b213e['push'](_0x5b213e['shift']());}catch(_0x5318fb){_0x5b213e['push'](_0x5b213e['shift']());}}}(_0x3267,0x63280));let e=require('@univerjs-pro/docs-reference'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');var r=class extends n[_0x393dea(0x1d3)]{[_0x393dea(0x1fc)](_0x4d5a56,_0x932c1b={}){const _0x60d0c7=_0x393dea;let _0x5c4996=(0x0,t[_0x60d0c7(0x1f6)])(0xc);return this[_0x60d0c7(0x1d9)][_0x60d0c7(0x1dc)](t[_0x60d0c7(0x1ec)])[_0x60d0c7(0x1e1)](e['InsertDocumentFootnoteCommand']['id'],{..._0x932c1b,'unitId':this['id'],'offset':_0x4d5a56,'noteId':_0x5c4996})?_0x5c4996:null;}[_0x393dea(0x1df)](){const _0x5a3dd9=_0x393dea;var _0x11c474;let _0x16f91e=this['getDocumentDataModel']()[_0x5a3dd9(0x1f7)]();return(((_0x11c474=_0x16f91e[_0x5a3dd9(0x1d0)])==null?void 0x0:_0x11c474[_0x5a3dd9(0x1dd)])??[])[_0x5a3dd9(0x1cc)](_0x492712=>_0x492712[_0x5a3dd9(0x1d5)]===t[_0x5a3dd9(0x1ed)]['FOOTNOTE'])[_0x5a3dd9(0x1e0)]((_0x90b33f,_0x299e40)=>_0x90b33f[_0x5a3dd9(0x1cb)]-_0x299e40[_0x5a3dd9(0x1cb)])[_0x5a3dd9(0x1ca)](_0x37ef36=>{const _0x599e7b=_0x5a3dd9;var _0x33856b,_0x3886a8;let _0x302648=(_0x33856b=_0x37ef36[_0x599e7b(0x1d8)])==null?void 0x0:_0x33856b['noteId'],_0x365691=typeof _0x302648==_0x599e7b(0x1e7)?(_0x3886a8=_0x16f91e[_0x599e7b(0x1f5)])==null?void 0x0:_0x3886a8[_0x302648]:void 0x0;return _0x365691?[t[_0x599e7b(0x1cf)][_0x599e7b(0x1e5)](_0x365691)]:[];});}[_0x393dea(0x1cd)](_0x446a9c){const _0x595178=_0x393dea;return this['_injector'][_0x595178(0x1dc)](t[_0x595178(0x1ec)])[_0x595178(0x1e1)](e['DeleteDocumentFootnoteCommand']['id'],{'unitId':this['id'],'noteId':_0x446a9c});}[_0x393dea(0x1ea)](_0x34af06){const _0x4727e2=_0x393dea;var _0x5748cf,_0x536234;let _0x12f316=this['getDocumentDataModel']()[_0x4727e2(0x1f7)](),_0x2d1ea4=_0x34af06==null?(_0x5748cf=_0x12f316[_0x4727e2(0x1db)])==null?void 0x0:_0x5748cf[_0x4727e2(0x1e8)]:(_0x536234=_0x12f316[_0x4727e2(0x1d0)])==null||(_0x536234=_0x536234['sectionBreaks'])==null||(_0x536234=_0x536234[_0x4727e2(0x1e2)](_0x24f8ae=>_0x24f8ae[_0x4727e2(0x1e3)]===_0x34af06))==null||(_0x536234=_0x536234[_0x4727e2(0x1c9)])==null?void 0x0:_0x536234[_0x4727e2(0x1e8)];return _0x2d1ea4==null?void 0x0:t['Tools']['deepClone'](_0x2d1ea4);}[_0x393dea(0x1f0)](_0xc50068,_0x3aebb6){const _0x42f961=_0x393dea;return this[_0x42f961(0x1d9)][_0x42f961(0x1dc)](t[_0x42f961(0x1ec)])[_0x42f961(0x1e1)](e[_0x42f961(0x1d4)]['id'],{'unitId':this['id'],'settings':_0xc50068,'sectionId':_0x3aebb6});}[_0x393dea(0x1d7)](_0x5272f9,_0x466f32={}){const _0x22a536=_0x393dea;let _0x18bf0c=(0x0,t['generateRandomId'])(0xc);return this[_0x22a536(0x1d9)][_0x22a536(0x1dc)](t[_0x22a536(0x1ec)])['syncExecuteCommand'](e['InsertDocumentEndnoteCommand']['id'],{..._0x466f32,'unitId':this['id'],'offset':_0x5272f9,'noteId':_0x18bf0c})?_0x18bf0c:null;}[_0x393dea(0x1fa)](){const _0x4ed05f=_0x393dea;var _0x50b986;let _0x2874d1=this[_0x4ed05f(0x1f8)]()[_0x4ed05f(0x1f7)]();return(((_0x50b986=_0x2874d1['body'])==null?void 0x0:_0x50b986[_0x4ed05f(0x1dd)])??[])[_0x4ed05f(0x1cc)](_0x5a8832=>_0x5a8832['rangeType']===t[_0x4ed05f(0x1ed)][_0x4ed05f(0x1ee)])['sort']((_0x3d5952,_0x1fdbfd)=>_0x3d5952[_0x4ed05f(0x1cb)]-_0x1fdbfd[_0x4ed05f(0x1cb)])['flatMap'](_0x43c307=>{const _0x18210a=_0x4ed05f;var _0x3bd3a3,_0x9e9174;let _0x332ce3=(_0x3bd3a3=_0x43c307[_0x18210a(0x1d8)])==null?void 0x0:_0x3bd3a3[_0x18210a(0x1f1)],_0x3142c8=typeof _0x332ce3==_0x18210a(0x1e7)?(_0x9e9174=_0x2874d1['notes'])==null?void 0x0:_0x9e9174[_0x332ce3]:void 0x0;return _0x3142c8?[t[_0x18210a(0x1cf)][_0x18210a(0x1e5)](_0x3142c8)]:[];});}[_0x393dea(0x1d2)](_0x51767b){const _0x11d4f9=_0x393dea;return this[_0x11d4f9(0x1d9)][_0x11d4f9(0x1dc)](t[_0x11d4f9(0x1ec)])['syncExecuteCommand'](e[_0x11d4f9(0x1f9)]['id'],{'unitId':this['id'],'noteId':_0x51767b});}[_0x393dea(0x1f2)](_0x2e4856){const _0x183e27=_0x393dea;var _0x4e7664,_0x3d25d1;let _0x183cc7=this[_0x183e27(0x1f8)]()['getSnapshot'](),_0x54736b=_0x2e4856==null?(_0x4e7664=_0x183cc7[_0x183e27(0x1db)])==null?void 0x0:_0x4e7664[_0x183e27(0x1e4)]:(_0x3d25d1=_0x183cc7[_0x183e27(0x1d0)])==null||(_0x3d25d1=_0x3d25d1['sectionBreaks'])==null||(_0x3d25d1=_0x3d25d1[_0x183e27(0x1e2)](_0x52bd15=>_0x52bd15[_0x183e27(0x1e3)]===_0x2e4856))==null||(_0x3d25d1=_0x3d25d1['noteProperties'])==null?void 0x0:_0x3d25d1['endnote'];return _0x54736b==null?void 0x0:t[_0x183e27(0x1cf)][_0x183e27(0x1e5)](_0x54736b);}['setEndnoteSettings'](_0x590cd6,_0xd47b03){const _0x2c61aa=_0x393dea;return this['_injector'][_0x2c61aa(0x1dc)](t['ICommandService'])['syncExecuteCommand'](e[_0x2c61aa(0x1f4)]['id'],{'unitId':this['id'],'settings':_0x590cd6,'sectionId':_0xd47b03});}};n['FDocument'][_0x393dea(0x1e9)](r);function _0x3267(){const _0x66fd1a=['get','customRanges','8XOfNBd','getFootnotes','sort','syncExecuteCommand','find','sectionId','endnote','deepClone','2382879uZTaLH','string','footnote','extend','getFootnoteSettings','15JddkIP','ICommandService','CustomRangeType','ENDNOTE','5991309WlIgoi','setFootnoteSettings','noteId','getEndnoteSettings','41700otSYNb','SetDocumentEndnoteSettingsCommand','notes','generateRandomId','getSnapshot','getDocumentDataModel','DeleteDocumentEndnoteCommand','getEndnotes','23109600uhOymm','insertFootnote','noteProperties','flatMap','startIndex','filter','deleteFootnote','785764FNAegE','Tools','body','109972FxOoEO','deleteEndnote','FDocument','SetDocumentFootnoteSettingsCommand','rangeType','296UBikya','insertEndnote','properties','_injector','399IJRmKi','noteSettings'];_0x3267=function(){return _0x66fd1a;};return _0x3267();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x189c7a=_0x5cf5;(function(_0x8c0aa4,_0xe86b33){const _0x214f6c=_0x5cf5,_0x4eacf9=_0x8c0aa4();while(!![]){try{const _0x260d3b=-parseInt(_0x214f6c(0xfc))/0x1+parseInt(_0x214f6c(0xb3))/0x2*(-parseInt(_0x214f6c(0xc4))/0x3)+parseInt(_0x214f6c(0xc6))/0x4+parseInt(_0x214f6c(0xf7))/0x5+-parseInt(_0x214f6c(0xca))/0x6+parseInt(_0x214f6c(0x10a))/0x7*(parseInt(_0x214f6c(0x9b))/0x8)+-parseInt(_0x214f6c(0x10b))/0x9*(-parseInt(_0x214f6c(0xe4))/0xa);if(_0x260d3b===_0xe86b33)break;else _0x4eacf9['push'](_0x4eacf9['shift']());}catch(_0x10224c){_0x4eacf9['push'](_0x4eacf9['shift']());}}}(_0xb524,0xd19ce),Object['defineProperty'](exports,Symbol[_0x189c7a(0xa6)],{'value':_0x189c7a(0xc8)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x26d5a4,_0x5472ac,_0xadc989){const _0x4c3ab0=_0x189c7a;if(_0x26d5a4[_0x4c3ab0(0xe0)]!=null&&!(_0x5472ac==='footnote'?['pageBottom',_0x4c3ab0(0xce)]:[_0x4c3ab0(0xeb),_0x4c3ab0(0xd4)])['includes'](_0x26d5a4[_0x4c3ab0(0xe0)])||_0x26d5a4[_0x4c3ab0(0xfa)]!=null&&!(_0x5472ac===_0x4c3ab0(0xa8)?[_0x4c3ab0(0x99),_0x4c3ab0(0xe5),'eachPage']:[_0x4c3ab0(0x99),_0x4c3ab0(0xe5)])['includes'](_0x26d5a4['restart'])||_0x26d5a4[_0x4c3ab0(0xfd)]!=null&&(!Number[_0x4c3ab0(0xdf)](_0x26d5a4['startNumber'])||_0x26d5a4['startNumber']<0x1)||_0x4c3ab0(0xe1)in _0x26d5a4&&_0x26d5a4['columnCount']!=null&&(_0x5472ac!=='footnote'||!Number[_0x4c3ab0(0xdf)](_0x26d5a4[_0x4c3ab0(0xe1)])||_0x26d5a4[_0x4c3ab0(0xe1)]<0x0||_0x26d5a4[_0x4c3ab0(0xe1)]>0x4)||_0x26d5a4[_0x4c3ab0(0xe8)]!=null&&(typeof _0x26d5a4['numberFormat']!=_0x4c3ab0(0x110)||_0x26d5a4[_0x4c3ab0(0xe8)][_0x4c3ab0(0xa5)]===0x0))return!0x1;for(let _0x3a50cc of[_0x26d5a4[_0x4c3ab0(0xc3)],_0x26d5a4['continuationSeparator'],_0x26d5a4[_0x4c3ab0(0x105)]])if(_0x3a50cc!=null&&(_0xadc989!=null||(0x0,e['validateDocBodyStructure'])(_0x3a50cc)['length']>0x0))return!0x1;return!0x0;}function _0x5cf5(_0x20d275,_0x312a5b){_0x20d275=_0x20d275-0x92;const _0xb52451=_0xb524();let _0x5cf5ee=_0xb52451[_0x20d275];return _0x5cf5ee;}function i(_0x374a12,_0x228ec3,_0x357cfc){const _0x5f169d=_0x189c7a;var _0x43f319,_0x3d2328;if(_0x228ec3[_0x5f169d(0xc1)]!=null&&!r(_0x228ec3[_0x5f169d(0xc1)],_0x357cfc,_0x228ec3[_0x5f169d(0x96)]))return!0x1;let _0x45e4a4=((_0x43f319=_0x374a12[_0x5f169d(0xdb)])==null||(_0x43f319=_0x43f319['sectionBreaks'])==null?void 0x0:_0x43f319[_0x5f169d(0xaa)](_0x41d232=>_0x41d232[_0x5f169d(0x96)]===_0x228ec3[_0x5f169d(0x96)]))??-0x1;if(_0x228ec3['sectionId']!=null&&_0x45e4a4<0x0)return!0x1;let _0x77a118=_0x228ec3[_0x5f169d(0x96)]==null?_0x374a12['noteSettings']:(_0x3d2328=_0x374a12['body'])==null||(_0x3d2328=_0x3d2328[_0x5f169d(0xae)])==null?void 0x0:_0x3d2328[_0x45e4a4]['noteProperties'],_0x55b770=_0x228ec3['settings']==null?void 0x0:e['Tools']['deepClone'](_0x228ec3[_0x5f169d(0xc1)]),_0x65c2cc=_0x228ec3['sectionId']==null?[_0x5f169d(0xbc)]:[_0x5f169d(0xdb),_0x5f169d(0xae),_0x45e4a4,'noteProperties'],_0xbcdef0=e[_0x5f169d(0xc2)][_0x5f169d(0xc5)](),_0x4d368a=null;if(e[_0x5f169d(0xd8)][_0x5f169d(0x111)](_0x77a118==null?void 0x0:_0x77a118[_0x357cfc],_0x55b770)||(_0x4d368a=_0x77a118==null?_0xbcdef0['insertOp'](_0x65c2cc,{[_0x357cfc]:_0x55b770}):_0x228ec3[_0x5f169d(0x96)]!=null&&_0x55b770==null&&Object[_0x5f169d(0xa7)](_0x77a118)[_0x5f169d(0xf8)](_0x116638=>_0x116638===_0x357cfc)?_0xbcdef0[_0x5f169d(0xbb)](_0x65c2cc,_0x77a118):_0xbcdef0[_0x5f169d(0xdc)]([..._0x65c2cc,_0x357cfc],_0x77a118[_0x357cfc],_0x55b770)),_0x228ec3[_0x5f169d(0xd7)]!=null){var _0x4c53af;if(_0x357cfc!==_0x5f169d(0xa9)||_0x228ec3[_0x5f169d(0x96)]==null||typeof _0x228ec3[_0x5f169d(0xd7)]!='boolean')return!0x1;let _0x590b3a=(_0x4c53af=_0x374a12[_0x5f169d(0xdb)])==null||(_0x4c53af=_0x4c53af[_0x5f169d(0xae)])==null?void 0x0:_0x4c53af[_0x45e4a4]['suppressEndnotes'];_0x590b3a!==_0x228ec3[_0x5f169d(0xd7)]&&(_0x4d368a=e[_0x5f169d(0xc2)]['compose'](_0x4d368a,_0xbcdef0[_0x5f169d(0xdc)]([_0x5f169d(0xdb),_0x5f169d(0xae),_0x45e4a4,_0x5f169d(0xd7)],_0x590b3a,_0x228ec3['suppressEndnotes'])));}return _0x4d368a;}function a(_0x287ee5,_0x504dae,_0x3c993f){const _0x4f6cb9=_0x189c7a;if(!_0x504dae)return!0x1;let _0x593e6f=_0x287ee5[_0x4f6cb9(0xcd)](e[_0x4f6cb9(0x10f)])[_0x4f6cb9(0xe9)](_0x504dae['unitId'],e[_0x4f6cb9(0xde)][_0x4f6cb9(0xb2)]),_0x3c955f=_0x593e6f==null?void 0x0:_0x593e6f[_0x4f6cb9(0x10c)]();if(!_0x3c955f||_0x3c955f[_0x4f6cb9(0xad)][_0x4f6cb9(0xb0)]!==e['DocumentFlavor'][_0x4f6cb9(0xb5)])return!0x1;let _0x1b1a1e=i(_0x3c955f,_0x504dae,_0x3c993f);return _0x1b1a1e===!0x1||e[_0x4f6cb9(0xc2)][_0x4f6cb9(0x93)](_0x1b1a1e)?!0x1:!!_0x287ee5['get'](e['ICommandService'])[_0x4f6cb9(0xf3)](t[_0x4f6cb9(0xa1)]['id'],{'unitId':_0x504dae['unitId'],'segmentId':'','historyAction':_0x4f6cb9(0x104)+_0x3c993f+_0x4f6cb9(0x9d),'actions':_0x1b1a1e,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x189c7a(0x92),'type':e[_0x189c7a(0xa0)]['COMMAND'],'handler':(_0x697411,_0x5f54cc)=>a(_0x697411,_0x5f54cc,_0x189c7a(0xa8))},s={'id':'doc.command.set-endnote-settings','type':e[_0x189c7a(0xa0)]['COMMAND'],'handler':(_0x7247e5,_0x4130d0)=>a(_0x7247e5,_0x4130d0,_0x189c7a(0xa9))};function c(_0x32bc06,_0x3a256f){const _0x2ac420=_0x189c7a;return(_0x32bc06==null?void 0x0:_0x32bc06[_0x2ac420(0xad)][_0x2ac420(0xb0)])===e[_0x2ac420(0x107)]['TRADITIONAL']&&!!_0x32bc06[_0x2ac420(0xdb)]&&Number[_0x2ac420(0xdf)](_0x3a256f)&&_0x3a256f>=0x0&&_0x3a256f<_0x32bc06[_0x2ac420(0xdb)][_0x2ac420(0xd6)][_0x2ac420(0xa5)]-0x1;}function l(_0x7d13bc,_0x55e9c5,_0x41d324){const _0x25e12e=_0x189c7a;var _0x4001fc,_0x4809a4;if(_0x55e9c5[_0x25e12e(0xc1)]===void 0x0&&_0x55e9c5[_0x25e12e(0xd7)]===void 0x0)return null;let _0x790de0=_0x55e9c5[_0x25e12e(0x96)]==null?(_0x4001fc=_0x7d13bc['noteSettings'])==null?void 0x0:_0x4001fc[_0x41d324]:(_0x4809a4=_0x7d13bc[_0x25e12e(0xdb)])==null||(_0x4809a4=_0x4809a4[_0x25e12e(0xae)])==null||(_0x4809a4=_0x4809a4[_0x25e12e(0x114)](_0x290b22=>_0x290b22[_0x25e12e(0x96)]===_0x55e9c5[_0x25e12e(0x96)]))==null||(_0x4809a4=_0x4809a4[_0x25e12e(0xcb)])==null?void 0x0:_0x4809a4[_0x41d324];return i(_0x7d13bc,{'settings':_0x55e9c5[_0x25e12e(0xc1)]===void 0x0?_0x790de0??null:_0x55e9c5[_0x25e12e(0xc1)],'sectionId':_0x55e9c5[_0x25e12e(0x96)],'suppressEndnotes':_0x55e9c5[_0x25e12e(0xd7)]},_0x41d324);}function u(_0x8fca47,_0x4c5126,_0xc6b06d){const _0x330c51=_0x189c7a;var _0x171c69,_0x895856,_0x464d83;if(!_0x4c5126||_0x4c5126[_0x330c51(0xa4)])return!0x1;let _0x81385a=_0x8fca47[_0x330c51(0xcd)](e[_0x330c51(0x10f)])['getUnit'](_0x4c5126[_0x330c51(0x95)],e[_0x330c51(0xde)][_0x330c51(0xb2)]),_0x2a6a77=_0x81385a==null?void 0x0:_0x81385a['getSnapshot'](),{offset:_0x597030}=_0x4c5126;if(!c(_0x2a6a77,_0x597030))return!0x1;let _0xd97b4=l(_0x2a6a77,_0x4c5126,_0xc6b06d);if(_0xd97b4===!0x1)return!0x1;let _0x2bbff7=_0x4c5126[_0x330c51(0xc9)]??(0x0,e[_0x330c51(0xbe)])(0xc);if((_0x171c69=_0x2a6a77[_0x330c51(0xf9)])!=null&&_0x171c69[_0x2bbff7]||(_0x895856=_0x2a6a77[_0x330c51(0xd2)])!=null&&_0x895856[_0x2bbff7]||(_0x464d83=_0x2a6a77['footers'])!=null&&_0x464d83[_0x2bbff7])return!0x1;let _0x46543f=e[_0x330c51(0xd8)][_0x330c51(0xe6)]({'type':_0xc6b06d,'noteId':_0x2bbff7,'body':_0x4c5126[_0x330c51(0xdb)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x330c51(0x10e)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x4c5126[_0x330c51(0xb1)],'referenceTextStyle':_0x4c5126[_0x330c51(0x9e)],'tableSource':_0x4c5126[_0x330c51(0xdd)],'drawings':_0x4c5126['drawings'],'drawingsOrder':_0x4c5126[_0x330c51(0xc7)],'lists':_0x4c5126[_0x330c51(0xf4)]});if((0x0,e[_0x330c51(0x112)])({'notes':{[_0x2bbff7]:_0x46543f}})['length']>0x0)return!0x1;let _0x5c099b=new e['TextX']();_0x597030>0x0&&_0x5c099b[_0x330c51(0xd0)](_0x597030),_0x5c099b[_0x330c51(0x101)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0xc6b06d==='footnote'?e[_0x330c51(0xcc)][_0x330c51(0xb4)]:e[_0x330c51(0xcc)]['ENDNOTE'],'rangeId':(0x0,e[_0x330c51(0xbe)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x2bbff7}}]});let _0x170a87=e['JSONX'][_0x330c51(0xc5)](),_0x454bbc=_0x2a6a77['notes']==null?_0x170a87[_0x330c51(0xc0)]([_0x330c51(0xf9)],{[_0x2bbff7]:_0x46543f}):_0x170a87[_0x330c51(0xc0)]([_0x330c51(0xf9),_0x2bbff7],_0x46543f);return!!_0x8fca47[_0x330c51(0xcd)](e[_0x330c51(0xb8)])['syncExecuteCommand'](t[_0x330c51(0xa1)]['id'],{'unitId':_0x4c5126[_0x330c51(0x95)],'segmentId':'','historyAction':_0x330c51(0xe3)+_0xc6b06d,'actions':e[_0x330c51(0xc2)][_0x330c51(0xb9)](e[_0x330c51(0xc2)][_0x330c51(0xb9)](_0xd97b4,_0x454bbc),_0x170a87[_0x330c51(0xd1)](_0x5c099b[_0x330c51(0xfe)](),['body'])),'textRanges':[{'segmentId':_0x2bbff7,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x3795f3,_0x1698d9,_0x25659b){const _0x46c869=_0x189c7a;var _0x28d174,_0x194340;if(!_0x1698d9)return!0x1;let _0x2f2428=_0x3795f3[_0x46c869(0xcd)](e[_0x46c869(0x10f)])[_0x46c869(0xe9)](_0x1698d9['unitId'],e[_0x46c869(0xde)]['UNIVER_DOC']),_0x1a0ebc=_0x2f2428==null?void 0x0:_0x2f2428['getSnapshot'](),_0x3b0d17=_0x1a0ebc==null||(_0x28d174=_0x1a0ebc[_0x46c869(0xf9)])==null?void 0x0:_0x28d174[_0x1698d9[_0x46c869(0xc9)]],_0x204da3=_0x1a0ebc==null||(_0x194340=_0x1a0ebc['body'])==null||(_0x194340=_0x194340[_0x46c869(0x98)])==null?void 0x0:_0x194340[_0x46c869(0x114)](_0x4d4a68=>{const _0x404536=_0x46c869;var _0x43315b;return(_0x4d4a68['rangeType']===e[_0x404536(0xcc)][_0x404536(0xb4)]||_0x4d4a68[_0x404536(0xcf)]===e['CustomRangeType'][_0x404536(0x9f)])&&((_0x43315b=_0x4d4a68['properties'])==null?void 0x0:_0x43315b[_0x404536(0xc9)])===_0x1698d9[_0x404536(0xc9)];});if(!_0x1a0ebc||_0x1a0ebc[_0x46c869(0xad)][_0x46c869(0xb0)]!==e[_0x46c869(0x107)][_0x46c869(0xb5)]||!_0x3b0d17||_0x3b0d17[_0x46c869(0x113)]!==_0x25659b||!_0x204da3)return!0x1;let _0x496cad=new e[(_0x46c869(0xef))]();_0x204da3[_0x46c869(0xaf)]>0x0&&_0x496cad['retain'](_0x204da3[_0x46c869(0xaf)]),_0x496cad[_0x46c869(0xbf)](0x1);let _0x153ab7=e[_0x46c869(0xc2)][_0x46c869(0xc5)]();return!!_0x3795f3[_0x46c869(0xcd)](e[_0x46c869(0xb8)])[_0x46c869(0xf3)](t['RichTextEditingMutation']['id'],{'unitId':_0x1698d9['unitId'],'segmentId':'','historyAction':'delete-'+_0x25659b,'actions':e[_0x46c869(0xc2)]['compose'](_0x153ab7[_0x46c869(0xd1)](_0x496cad[_0x46c869(0xfe)](),[_0x46c869(0xdb)]),_0x153ab7[_0x46c869(0xbb)]([_0x46c869(0xf9),_0x1698d9[_0x46c869(0xc9)]],_0x3b0d17)),'textRanges':[{'startOffset':_0x204da3[_0x46c869(0xaf)],'endOffset':_0x204da3[_0x46c869(0xaf)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x189c7a(0xff),'type':e[_0x189c7a(0xa0)][_0x189c7a(0xac)],'handler':(_0xe1681b,_0x1d1754)=>u(_0xe1681b,_0x1d1754,_0x189c7a(0xa8))},p={'id':'doc.command.delete-footnote','type':e['CommandType'][_0x189c7a(0xac)],'handler':(_0x2a1b04,_0x505497)=>d(_0x2a1b04,_0x505497,'footnote')},m={'id':_0x189c7a(0xf1),'type':e['CommandType'][_0x189c7a(0xac)],'handler':(_0x4444eb,_0x316fa1)=>u(_0x4444eb,_0x316fa1,_0x189c7a(0xa9))},h={'id':'doc.command.delete-endnote','type':e['CommandType']['COMMAND'],'handler':(_0x314bee,_0x51068d)=>d(_0x314bee,_0x51068d,_0x189c7a(0xa9))};var g=_0x189c7a(0xfb),_='1.0.1';const v={};function y(_0x58b4fb,_0x1a572c){return function(_0x1b9e6c,_0x1ecc30){_0x1a572c(_0x1b9e6c,_0x1ecc30,_0x58b4fb);};}function b(_0x2acf69,_0x4c6cc0,_0xb122eb,_0x154f9f){const _0x5b4ba9=_0x189c7a;var _0x3e2b9f=arguments['length'],_0x506135=_0x3e2b9f<0x3?_0x4c6cc0:_0x154f9f===null?_0x154f9f=Object[_0x5b4ba9(0x94)](_0x4c6cc0,_0xb122eb):_0x154f9f,_0x5b24cc;if(typeof Reflect==_0x5b4ba9(0xf2)&&typeof Reflect[_0x5b4ba9(0x106)]==_0x5b4ba9(0xe2))_0x506135=Reflect[_0x5b4ba9(0x106)](_0x2acf69,_0x4c6cc0,_0xb122eb,_0x154f9f);else{for(var _0x308332=_0x2acf69[_0x5b4ba9(0xa5)]-0x1;_0x308332>=0x0;_0x308332--)(_0x5b24cc=_0x2acf69[_0x308332])&&(_0x506135=(_0x3e2b9f<0x3?_0x5b24cc(_0x506135):_0x3e2b9f>0x3?_0x5b24cc(_0x4c6cc0,_0xb122eb,_0x506135):_0x5b24cc(_0x4c6cc0,_0xb122eb))||_0x506135);}return _0x3e2b9f>0x3&&_0x506135&&Object['defineProperty'](_0x4c6cc0,_0xb122eb,_0x506135),_0x506135;}function x(_0x3f8463){'@babel/helpers - typeof';const _0x1c0628=_0x189c7a;return x=typeof Symbol=='function'&&typeof Symbol[_0x1c0628(0xbd)]==_0x1c0628(0xe7)?function(_0x5e6bc7){return typeof _0x5e6bc7;}:function(_0x38bea){const _0x540896=_0x1c0628;return _0x38bea&&typeof Symbol==_0x540896(0xe2)&&_0x38bea[_0x540896(0x109)]===Symbol&&_0x38bea!==Symbol['prototype']?'symbol':typeof _0x38bea;},x(_0x3f8463);}function S(_0x44f8a8,_0x235178){const _0x5a5d7a=_0x189c7a;if(x(_0x44f8a8)!=_0x5a5d7a(0xf2)||!_0x44f8a8)return _0x44f8a8;var _0xba2b08=_0x44f8a8[Symbol[_0x5a5d7a(0xf6)]];if(_0xba2b08!==void 0x0){var _0x1bffb6=_0xba2b08['call'](_0x44f8a8,_0x235178||'default');if(x(_0x1bffb6)!=_0x5a5d7a(0xf2))return _0x1bffb6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x235178==='string'?String:Number)(_0x44f8a8);}function C(_0x72c1cf){const _0x5cd8cb=_0x189c7a;var _0x4d38fa=S(_0x72c1cf,_0x5cd8cb(0x110));return x(_0x4d38fa)==_0x5cd8cb(0xe7)?_0x4d38fa:_0x4d38fa+'';}function _0xb524(){const _0x188ad5=['ENDNOTE','CommandType','RichTextEditingMutation','IConfigService','_config','segmentId','length','toStringTag','keys','footnote','endnote','findIndex','forEach','COMMAND','documentStyle','sectionBreaks','startIndex','documentFlavor','customMark','UNIVER_DOC','2639738QRxnoQ','FOOTNOTE','TRADITIONAL','pluginName','InsertDocumentFootnoteCommand','ICommandService','compose','InsertDocumentEndnoteCommand','removeOp','noteSettings','iterator','generateRandomId','delete','insertOp','settings','JSONX','separator','3Ooqxfs','getInstance','6707376baFfIi','drawingsOrder','Module','noteId','3466836FitNQE','noteProperties','CustomRangeType','get','beneathText','rangeType','retain','editOp','headers','registerCommand','sectEnd','UniverDocsReferencePlugin','dataStream','suppressEndnotes','Tools','packageName','disposeWithMe','body','replaceOp','tableSource','UniverInstanceType','isInteger','position','columnCount','function','insert-','20iXyYOY','eachSect','deepClone','symbol','numberFormat','getUnit','UniverDocsPlugin','docEnd','docs-reference.config','version','onStarting','TextX','_commandService','doc.command.insert-endnote','object','syncExecuteCommand','lists','UniverLicensePlugin','toPrimitive','3142370AHRNzY','every','notes','restart','@univerjs-pro/docs-reference','1157219xNngOW','startNumber','serialize','doc.command.insert-footnote','merge','insert','defineProperty','Plugin','set-','continuationNotice','decorate','DocumentFlavor','SetDocumentFootnoteSettingsCommand','constructor','1253hhnQVw','871614TiqYea','getSnapshot','SetDocumentEndnoteSettingsCommand','createParagraphId','IUniverInstanceService','string','diffValue','validateDocumentStructure','type','find','doc.command.set-footnote-settings','isNoop','getOwnPropertyDescriptor','unitId','sectionId','UNIVER_DOCS_REFERENCE_PLUGIN','customRanges','continuous','Injector','63216IBTMPi','Inject','-settings','referenceTextStyle'];_0xb524=function(){return _0x188ad5;};return _0xb524();}function w(_0x4ac661,_0x440dca,_0x5e45fb){const _0x46e32a=_0x189c7a;return(_0x440dca=C(_0x440dca))in _0x4ac661?Object[_0x46e32a(0x102)](_0x4ac661,_0x440dca,{'value':_0x5e45fb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ac661[_0x440dca]=_0x5e45fb,_0x4ac661;}let T=class extends e[_0x189c7a(0x103)]{constructor(_0x4a861f=v,_0x3db2a6,_0x1277ce,_0x4bc25a){const _0x31720e=_0x189c7a;super(),this[_0x31720e(0xa3)]=_0x4a861f,this['_injector']=_0x3db2a6,this['_configService']=_0x1277ce,this['_commandService']=_0x4bc25a;let {..._0x232987}=(0x0,e[_0x31720e(0x100)])({},v,this[_0x31720e(0xa3)]);this['_configService']['setConfig'](_0x31720e(0xec),_0x232987);}[_0x189c7a(0xee)](){const _0x499f95=_0x189c7a;[f,p,o,m,h,s][_0x499f95(0xab)](_0x9a9907=>this[_0x499f95(0xda)](this[_0x499f95(0xf0)][_0x499f95(0xd3)](_0x9a9907)));}};w(T,_0x189c7a(0xb6),_0x189c7a(0x97)),w(T,_0x189c7a(0xd9),g),w(T,_0x189c7a(0xed),_),w(T,_0x189c7a(0x113),e[_0x189c7a(0xde)]['UNIVER_DOC']),T=b([(0x0,e['DependentOn'])(n[_0x189c7a(0xf5)],t[_0x189c7a(0xea)]),y(0x1,(0x0,e[_0x189c7a(0x9c)])(e[_0x189c7a(0x9a)])),y(0x2,e[_0x189c7a(0xa2)]),y(0x3,e[_0x189c7a(0xb8)])],T),exports['DeleteDocumentEndnoteCommand']=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x189c7a(0xba)]=m,exports[_0x189c7a(0xb7)]=f,exports[_0x189c7a(0x10d)]=s,exports[_0x189c7a(0x108)]=o,Object[_0x189c7a(0x102)](exports,_0x189c7a(0xd5),{'enumerable':!0x0,'get':function(){return T;}});
|
|
1
|
+
const _0x3e18de=_0x55a9;(function(_0x568e21,_0x1f9861){const _0x155582=_0x55a9,_0x45e19c=_0x568e21();while(!![]){try{const _0x21230d=parseInt(_0x155582(0x22f))/0x1+-parseInt(_0x155582(0x21c))/0x2+-parseInt(_0x155582(0x21e))/0x3*(-parseInt(_0x155582(0x22e))/0x4)+parseInt(_0x155582(0x1ca))/0x5+parseInt(_0x155582(0x210))/0x6*(parseInt(_0x155582(0x1ef))/0x7)+-parseInt(_0x155582(0x1ff))/0x8+parseInt(_0x155582(0x201))/0x9*(-parseInt(_0x155582(0x1ed))/0xa);if(_0x21230d===_0x1f9861)break;else _0x45e19c['push'](_0x45e19c['shift']());}catch(_0x51d013){_0x45e19c['push'](_0x45e19c['shift']());}}}(_0x1418,0x3b5d3),Object[_0x3e18de(0x200)](exports,Symbol[_0x3e18de(0x222)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x20e869,_0xb134e3,_0x304cfe){const _0x4ec61e=_0x3e18de;if(_0x20e869[_0x4ec61e(0x1f4)]!=null&&!(_0xb134e3===_0x4ec61e(0x1fb)?['pageBottom',_0x4ec61e(0x1b7)]:[_0x4ec61e(0x1ce),_0x4ec61e(0x219)])[_0x4ec61e(0x217)](_0x20e869['position'])||_0x20e869[_0x4ec61e(0x213)]!=null&&!(_0xb134e3===_0x4ec61e(0x1fb)?['continuous',_0x4ec61e(0x1c0),_0x4ec61e(0x1c6)]:[_0x4ec61e(0x1e4),_0x4ec61e(0x1c0)])[_0x4ec61e(0x217)](_0x20e869[_0x4ec61e(0x213)])||_0x20e869[_0x4ec61e(0x1e7)]!=null&&(!Number[_0x4ec61e(0x21a)](_0x20e869[_0x4ec61e(0x1e7)])||_0x20e869['startNumber']<0x1)||_0x4ec61e(0x215)in _0x20e869&&_0x20e869[_0x4ec61e(0x215)]!=null&&(_0xb134e3!=='footnote'||!Number['isInteger'](_0x20e869['columnCount'])||_0x20e869['columnCount']<0x0||_0x20e869['columnCount']>0x4)||_0x20e869['numberFormat']!=null&&(typeof _0x20e869[_0x4ec61e(0x1f8)]!='string'||_0x20e869[_0x4ec61e(0x1f8)][_0x4ec61e(0x230)]===0x0))return!0x1;for(let _0xc0f21b of[_0x20e869[_0x4ec61e(0x20e)],_0x20e869[_0x4ec61e(0x1f2)],_0x20e869[_0x4ec61e(0x229)]])if(_0xc0f21b!=null&&(_0x304cfe!=null||(0x0,e[_0x4ec61e(0x1eb)])(_0xc0f21b)[_0x4ec61e(0x230)]>0x0))return!0x1;return!0x0;}function _0x1418(){const _0x40f5fc=['startNumber','replaceOp','Injector','1.0.3','validateDocBodyStructure','documentFlavor','710cmqFog','getSnapshot','21RfGlKA','set-','Plugin','continuationSeparator','JSONX','position','tableSource','COMMAND','suppressEndnotes','numberFormat','IConfigService','forEach','footnote','packageName','insertOp','isNoop','2199000ZRdfXA','defineProperty','32211MpSQgW','noteProperties','dataStream','doc.command.insert-endnote','doc.command.set-footnote-settings','default','version','prototype','compose','TRADITIONAL','lists','body','string','separator','serialize','954612igrTLS','SetDocumentFootnoteSettingsCommand','UNIVER_DOC','restart','getOwnPropertyDescriptor','columnCount','Inject','includes','DependentOn','sectEnd','isInteger','ICommandService','322968pXdTci','createParagraphId','29661AGQxAW','get','referenceTextStyle','InsertDocumentFootnoteCommand','toStringTag','footers','_configService','doc.command.set-endnote-settings','drawings','sectionBreaks','CustomRangeType','continuationNotice','startIndex','function','endnote','TextX','24vWEUSF','281178nHkJyi','length','type','CommandType','UNIVER_DOCS_REFERENCE_PLUGIN','docs-reference.config','DocumentFlavor','getUnit','UniverInstanceType','UniverDocsReferencePlugin','SetDocumentEndnoteSettingsCommand','find','headers','IUniverInstanceService','constructor','diffValue','_config','beneathText','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','generateRandomId','insert-','RichTextEditingMutation','doc.command.delete-footnote','ENDNOTE','insert','decorate','eachSect','editOp','unitId','noteId','sectionId','keys','eachPage','registerCommand','notes','InsertDocumentEndnoteCommand','579085peVBup','object','delete-','disposeWithMe','docEnd','getInstance','settings','FOOTNOTE','-settings','documentStyle','onStarting','deepClone','UniverLicensePlugin','customMark','rangeType','segmentId','removeOp','validateDocumentStructure','noteSettings','retain','symbol','drawingsOrder','_commandService','Tools','properties','setConfig','continuous','findIndex','syncExecuteCommand'];_0x1418=function(){return _0x40f5fc;};return _0x1418();}function i(_0x4846cc,_0x40f51b,_0x494e96){const _0x492e59=_0x3e18de;var _0x5ca6d7,_0x269f8b;if(_0x40f51b[_0x492e59(0x1d0)]!=null&&!r(_0x40f51b[_0x492e59(0x1d0)],_0x494e96,_0x40f51b['sectionId']))return!0x1;let _0x344276=((_0x5ca6d7=_0x4846cc['body'])==null||(_0x5ca6d7=_0x5ca6d7[_0x492e59(0x227)])==null?void 0x0:_0x5ca6d7[_0x492e59(0x1e5)](_0x1c75e2=>_0x1c75e2[_0x492e59(0x1c4)]===_0x40f51b[_0x492e59(0x1c4)]))??-0x1;if(_0x40f51b['sectionId']!=null&&_0x344276<0x0)return!0x1;let _0x3539bc=_0x40f51b[_0x492e59(0x1c4)]==null?_0x4846cc[_0x492e59(0x1dc)]:(_0x269f8b=_0x4846cc['body'])==null||(_0x269f8b=_0x269f8b['sectionBreaks'])==null?void 0x0:_0x269f8b[_0x344276][_0x492e59(0x202)],_0x5d5678=_0x40f51b[_0x492e59(0x1d0)]==null?void 0x0:e[_0x492e59(0x1e1)][_0x492e59(0x1d5)](_0x40f51b[_0x492e59(0x1d0)]),_0x495802=_0x40f51b[_0x492e59(0x1c4)]==null?[_0x492e59(0x1dc)]:['body',_0x492e59(0x227),_0x344276,_0x492e59(0x202)],_0x4fc294=e[_0x492e59(0x1f3)][_0x492e59(0x1cf)](),_0xedcf3d=null;if(e[_0x492e59(0x1e1)][_0x492e59(0x1b5)](_0x3539bc==null?void 0x0:_0x3539bc[_0x494e96],_0x5d5678)||(_0xedcf3d=_0x3539bc==null?_0x4fc294[_0x492e59(0x1fd)](_0x495802,{[_0x494e96]:_0x5d5678}):_0x40f51b[_0x492e59(0x1c4)]!=null&&_0x5d5678==null&&Object[_0x492e59(0x1c5)](_0x3539bc)['every'](_0x393d80=>_0x393d80===_0x494e96)?_0x4fc294[_0x492e59(0x1da)](_0x495802,_0x3539bc):_0x4fc294[_0x492e59(0x1e8)]([..._0x495802,_0x494e96],_0x3539bc[_0x494e96],_0x5d5678)),_0x40f51b[_0x492e59(0x1f7)]!=null){var _0x1a7692;if(_0x494e96!=='endnote'||_0x40f51b[_0x492e59(0x1c4)]==null||typeof _0x40f51b[_0x492e59(0x1f7)]!='boolean')return!0x1;let _0x330339=(_0x1a7692=_0x4846cc[_0x492e59(0x20c)])==null||(_0x1a7692=_0x1a7692[_0x492e59(0x227)])==null?void 0x0:_0x1a7692[_0x344276][_0x492e59(0x1f7)];_0x330339!==_0x40f51b[_0x492e59(0x1f7)]&&(_0xedcf3d=e[_0x492e59(0x1f3)][_0x492e59(0x209)](_0xedcf3d,_0x4fc294[_0x492e59(0x1e8)]([_0x492e59(0x20c),_0x492e59(0x227),_0x344276,_0x492e59(0x1f7)],_0x330339,_0x40f51b[_0x492e59(0x1f7)])));}return _0xedcf3d;}function a(_0x5bd04c,_0x534087,_0xabca65){const _0x59b9a0=_0x3e18de;if(!_0x534087)return!0x1;let _0x2c82bd=_0x5bd04c[_0x59b9a0(0x21f)](e[_0x59b9a0(0x1b3)])['getUnit'](_0x534087['unitId'],e[_0x59b9a0(0x237)]['UNIVER_DOC']),_0x5ae47d=_0x2c82bd==null?void 0x0:_0x2c82bd['getSnapshot']();if(!_0x5ae47d||_0x5ae47d[_0x59b9a0(0x1d3)][_0x59b9a0(0x1ec)]!==e[_0x59b9a0(0x235)][_0x59b9a0(0x20a)])return!0x1;let _0x425816=i(_0x5ae47d,_0x534087,_0xabca65);return _0x425816===!0x1||e[_0x59b9a0(0x1f3)][_0x59b9a0(0x1fe)](_0x425816)?!0x1:!!_0x5bd04c[_0x59b9a0(0x21f)](e[_0x59b9a0(0x21b)])[_0x59b9a0(0x1e6)](t[_0x59b9a0(0x1bb)]['id'],{'unitId':_0x534087[_0x59b9a0(0x1c2)],'segmentId':'','historyAction':_0x59b9a0(0x1f0)+_0xabca65+_0x59b9a0(0x1d2),'actions':_0x425816,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x3e18de(0x205),'type':e[_0x3e18de(0x232)]['COMMAND'],'handler':(_0x40bb41,_0x48a756)=>a(_0x40bb41,_0x48a756,_0x3e18de(0x1fb))},s={'id':_0x3e18de(0x225),'type':e[_0x3e18de(0x232)]['COMMAND'],'handler':(_0x476078,_0x37864d)=>a(_0x476078,_0x37864d,_0x3e18de(0x22c))};function _0x55a9(_0x294a9b,_0xf22223){_0x294a9b=_0x294a9b-0x1b0;const _0x141896=_0x1418();let _0x55a9f8=_0x141896[_0x294a9b];return _0x55a9f8;}function c(_0x2850c2,_0xc60167){const _0x426a01=_0x3e18de;return(_0x2850c2==null?void 0x0:_0x2850c2['documentStyle'][_0x426a01(0x1ec)])===e[_0x426a01(0x235)][_0x426a01(0x20a)]&&!!_0x2850c2[_0x426a01(0x20c)]&&Number[_0x426a01(0x21a)](_0xc60167)&&_0xc60167>=0x0&&_0xc60167<_0x2850c2[_0x426a01(0x20c)][_0x426a01(0x203)][_0x426a01(0x230)]-0x1;}function l(_0x153c8f,_0x5837bb,_0x2a0d5c){const _0x56edff=_0x3e18de;var _0x3e93d6,_0x4be49a;if(_0x5837bb['settings']===void 0x0&&_0x5837bb[_0x56edff(0x1f7)]===void 0x0)return null;let _0x452589=_0x5837bb[_0x56edff(0x1c4)]==null?(_0x3e93d6=_0x153c8f['noteSettings'])==null?void 0x0:_0x3e93d6[_0x2a0d5c]:(_0x4be49a=_0x153c8f[_0x56edff(0x20c)])==null||(_0x4be49a=_0x4be49a[_0x56edff(0x227)])==null||(_0x4be49a=_0x4be49a[_0x56edff(0x1b1)](_0x553e75=>_0x553e75[_0x56edff(0x1c4)]===_0x5837bb[_0x56edff(0x1c4)]))==null||(_0x4be49a=_0x4be49a[_0x56edff(0x202)])==null?void 0x0:_0x4be49a[_0x2a0d5c];return i(_0x153c8f,{'settings':_0x5837bb['settings']===void 0x0?_0x452589??null:_0x5837bb[_0x56edff(0x1d0)],'sectionId':_0x5837bb[_0x56edff(0x1c4)],'suppressEndnotes':_0x5837bb['suppressEndnotes']},_0x2a0d5c);}function u(_0x32cd00,_0x4ff6a0,_0xe1618c){const _0x363043=_0x3e18de;var _0x57cf48,_0x4651f3,_0x1e47db;if(!_0x4ff6a0||_0x4ff6a0[_0x363043(0x1d9)])return!0x1;let _0x58346b=_0x32cd00[_0x363043(0x21f)](e[_0x363043(0x1b3)])[_0x363043(0x236)](_0x4ff6a0['unitId'],e[_0x363043(0x237)][_0x363043(0x212)]),_0x447727=_0x58346b==null?void 0x0:_0x58346b[_0x363043(0x1ee)](),{offset:_0x4a48e6}=_0x4ff6a0;if(!c(_0x447727,_0x4a48e6))return!0x1;let _0x397785=l(_0x447727,_0x4ff6a0,_0xe1618c);if(_0x397785===!0x1)return!0x1;let _0x242572=_0x4ff6a0['noteId']??(0x0,e[_0x363043(0x1b9)])(0xc);if((_0x57cf48=_0x447727[_0x363043(0x1c8)])!=null&&_0x57cf48[_0x242572]||(_0x4651f3=_0x447727[_0x363043(0x1b2)])!=null&&_0x4651f3[_0x242572]||(_0x1e47db=_0x447727[_0x363043(0x223)])!=null&&_0x1e47db[_0x242572])return!0x1;let _0x17b4f1=e[_0x363043(0x1e1)]['deepClone']({'type':_0xe1618c,'noteId':_0x242572,'body':_0x4ff6a0[_0x363043(0x20c)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x363043(0x21d)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x4ff6a0[_0x363043(0x1d7)],'referenceTextStyle':_0x4ff6a0[_0x363043(0x220)],'tableSource':_0x4ff6a0[_0x363043(0x1f5)],'drawings':_0x4ff6a0[_0x363043(0x226)],'drawingsOrder':_0x4ff6a0[_0x363043(0x1df)],'lists':_0x4ff6a0[_0x363043(0x20b)]});if((0x0,e[_0x363043(0x1db)])({'notes':{[_0x242572]:_0x17b4f1}})['length']>0x0)return!0x1;let _0x29df8a=new e[(_0x363043(0x22d))]();_0x4a48e6>0x0&&_0x29df8a[_0x363043(0x1dd)](_0x4a48e6),_0x29df8a[_0x363043(0x1be)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0xe1618c==='footnote'?e[_0x363043(0x228)][_0x363043(0x1d1)]:e[_0x363043(0x228)][_0x363043(0x1bd)],'rangeId':(0x0,e[_0x363043(0x1b9)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x242572}}]});let _0x1d6366=e[_0x363043(0x1f3)][_0x363043(0x1cf)](),_0x1228d4=_0x447727[_0x363043(0x1c8)]==null?_0x1d6366[_0x363043(0x1fd)](['notes'],{[_0x242572]:_0x17b4f1}):_0x1d6366[_0x363043(0x1fd)]([_0x363043(0x1c8),_0x242572],_0x17b4f1);return!!_0x32cd00[_0x363043(0x21f)](e[_0x363043(0x21b)])['syncExecuteCommand'](t['RichTextEditingMutation']['id'],{'unitId':_0x4ff6a0[_0x363043(0x1c2)],'segmentId':'','historyAction':_0x363043(0x1ba)+_0xe1618c,'actions':e[_0x363043(0x1f3)][_0x363043(0x209)](e['JSONX'][_0x363043(0x209)](_0x397785,_0x1228d4),_0x1d6366['editOp'](_0x29df8a[_0x363043(0x20f)](),[_0x363043(0x20c)])),'textRanges':[{'segmentId':_0x242572,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x5b5bf5,_0x53b4fe,_0x1cae73){const _0x732a43=_0x3e18de;var _0x2d0d4b,_0x49d9bd;if(!_0x53b4fe)return!0x1;let _0x2c1698=_0x5b5bf5[_0x732a43(0x21f)](e['IUniverInstanceService'])['getUnit'](_0x53b4fe[_0x732a43(0x1c2)],e[_0x732a43(0x237)][_0x732a43(0x212)]),_0x366121=_0x2c1698==null?void 0x0:_0x2c1698[_0x732a43(0x1ee)](),_0x17cc4c=_0x366121==null||(_0x2d0d4b=_0x366121['notes'])==null?void 0x0:_0x2d0d4b[_0x53b4fe['noteId']],_0x572783=_0x366121==null||(_0x49d9bd=_0x366121[_0x732a43(0x20c)])==null||(_0x49d9bd=_0x49d9bd['customRanges'])==null?void 0x0:_0x49d9bd[_0x732a43(0x1b1)](_0x490b51=>{const _0x454a3d=_0x732a43;var _0x145c5e;return(_0x490b51[_0x454a3d(0x1d8)]===e['CustomRangeType'][_0x454a3d(0x1d1)]||_0x490b51[_0x454a3d(0x1d8)]===e[_0x454a3d(0x228)][_0x454a3d(0x1bd)])&&((_0x145c5e=_0x490b51[_0x454a3d(0x1e2)])==null?void 0x0:_0x145c5e[_0x454a3d(0x1c3)])===_0x53b4fe[_0x454a3d(0x1c3)];});if(!_0x366121||_0x366121[_0x732a43(0x1d3)][_0x732a43(0x1ec)]!==e[_0x732a43(0x235)][_0x732a43(0x20a)]||!_0x17cc4c||_0x17cc4c[_0x732a43(0x231)]!==_0x1cae73||!_0x572783)return!0x1;let _0x304f1b=new e['TextX']();_0x572783[_0x732a43(0x22a)]>0x0&&_0x304f1b['retain'](_0x572783[_0x732a43(0x22a)]),_0x304f1b['delete'](0x1);let _0x10aac1=e[_0x732a43(0x1f3)][_0x732a43(0x1cf)]();return!!_0x5b5bf5[_0x732a43(0x21f)](e[_0x732a43(0x21b)])['syncExecuteCommand'](t[_0x732a43(0x1bb)]['id'],{'unitId':_0x53b4fe[_0x732a43(0x1c2)],'segmentId':'','historyAction':_0x732a43(0x1cc)+_0x1cae73,'actions':e[_0x732a43(0x1f3)][_0x732a43(0x209)](_0x10aac1[_0x732a43(0x1c1)](_0x304f1b['serialize'](),[_0x732a43(0x20c)]),_0x10aac1['removeOp']([_0x732a43(0x1c8),_0x53b4fe[_0x732a43(0x1c3)]],_0x17cc4c)),'textRanges':[{'startOffset':_0x572783[_0x732a43(0x22a)],'endOffset':_0x572783['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':'doc.command.insert-footnote','type':e[_0x3e18de(0x232)][_0x3e18de(0x1f6)],'handler':(_0x258aea,_0x2890c6)=>u(_0x258aea,_0x2890c6,_0x3e18de(0x1fb))},p={'id':_0x3e18de(0x1bc),'type':e[_0x3e18de(0x232)][_0x3e18de(0x1f6)],'handler':(_0x371a5a,_0x5f06f6)=>d(_0x371a5a,_0x5f06f6,_0x3e18de(0x1fb))},m={'id':_0x3e18de(0x204),'type':e['CommandType'][_0x3e18de(0x1f6)],'handler':(_0x164f55,_0x379e71)=>u(_0x164f55,_0x379e71,_0x3e18de(0x22c))},h={'id':'doc.command.delete-endnote','type':e[_0x3e18de(0x232)]['COMMAND'],'handler':(_0x56d305,_0x56b1c0)=>d(_0x56d305,_0x56b1c0,_0x3e18de(0x22c))};var g='@univerjs-pro/docs-reference',_=_0x3e18de(0x1ea);const v={};function y(_0x5e8107,_0x29891a){return function(_0x5da474,_0x24969e){_0x29891a(_0x5da474,_0x24969e,_0x5e8107);};}function b(_0x4b76bf,_0x3f2d9f,_0x18f332,_0x43bee9){const _0xa3a0d9=_0x3e18de;var _0x2e9aa1=arguments['length'],_0x32379d=_0x2e9aa1<0x3?_0x3f2d9f:_0x43bee9===null?_0x43bee9=Object[_0xa3a0d9(0x214)](_0x3f2d9f,_0x18f332):_0x43bee9,_0x3ae3db;if(typeof Reflect==_0xa3a0d9(0x1cb)&&typeof Reflect[_0xa3a0d9(0x1bf)]==_0xa3a0d9(0x22b))_0x32379d=Reflect['decorate'](_0x4b76bf,_0x3f2d9f,_0x18f332,_0x43bee9);else{for(var _0x1092f5=_0x4b76bf[_0xa3a0d9(0x230)]-0x1;_0x1092f5>=0x0;_0x1092f5--)(_0x3ae3db=_0x4b76bf[_0x1092f5])&&(_0x32379d=(_0x2e9aa1<0x3?_0x3ae3db(_0x32379d):_0x2e9aa1>0x3?_0x3ae3db(_0x3f2d9f,_0x18f332,_0x32379d):_0x3ae3db(_0x3f2d9f,_0x18f332))||_0x32379d);}return _0x2e9aa1>0x3&&_0x32379d&&Object[_0xa3a0d9(0x200)](_0x3f2d9f,_0x18f332,_0x32379d),_0x32379d;}function x(_0x355c4b){'@babel/helpers - typeof';const _0x530a7a=_0x3e18de;return x=typeof Symbol==_0x530a7a(0x22b)&&typeof Symbol['iterator']==_0x530a7a(0x1de)?function(_0x772591){return typeof _0x772591;}:function(_0x26c78b){const _0x5c1018=_0x530a7a;return _0x26c78b&&typeof Symbol==_0x5c1018(0x22b)&&_0x26c78b[_0x5c1018(0x1b4)]===Symbol&&_0x26c78b!==Symbol[_0x5c1018(0x208)]?_0x5c1018(0x1de):typeof _0x26c78b;},x(_0x355c4b);}function S(_0x12f531,_0x1075f5){const _0x3c5e3e=_0x3e18de;if(x(_0x12f531)!='object'||!_0x12f531)return _0x12f531;var _0x53eabc=_0x12f531[Symbol['toPrimitive']];if(_0x53eabc!==void 0x0){var _0x414f66=_0x53eabc['call'](_0x12f531,_0x1075f5||_0x3c5e3e(0x206));if(x(_0x414f66)!=_0x3c5e3e(0x1cb))return _0x414f66;throw TypeError(_0x3c5e3e(0x1b8));}return(_0x1075f5===_0x3c5e3e(0x20d)?String:Number)(_0x12f531);}function C(_0x380f15){const _0x18fd09=_0x3e18de;var _0x2fdf00=S(_0x380f15,_0x18fd09(0x20d));return x(_0x2fdf00)==_0x18fd09(0x1de)?_0x2fdf00:_0x2fdf00+'';}function w(_0x3210c2,_0x34af7d,_0x3bd21f){return(_0x34af7d=C(_0x34af7d))in _0x3210c2?Object['defineProperty'](_0x3210c2,_0x34af7d,{'value':_0x3bd21f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3210c2[_0x34af7d]=_0x3bd21f,_0x3210c2;}let T=class extends e[_0x3e18de(0x1f1)]{constructor(_0x3695ef=v,_0x4a2ba7,_0x56693c,_0xbaf88){const _0x5179a6=_0x3e18de;super(),this[_0x5179a6(0x1b6)]=_0x3695ef,this['_injector']=_0x4a2ba7,this[_0x5179a6(0x224)]=_0x56693c,this[_0x5179a6(0x1e0)]=_0xbaf88;let {..._0x4746ee}=(0x0,e['merge'])({},v,this[_0x5179a6(0x1b6)]);this['_configService'][_0x5179a6(0x1e3)](_0x5179a6(0x234),_0x4746ee);}[_0x3e18de(0x1d4)](){const _0x48b000=_0x3e18de;[f,p,o,m,h,s][_0x48b000(0x1fa)](_0x540681=>this[_0x48b000(0x1cd)](this['_commandService'][_0x48b000(0x1c7)](_0x540681)));}};w(T,'pluginName',_0x3e18de(0x233)),w(T,_0x3e18de(0x1fc),g),w(T,_0x3e18de(0x207),_),w(T,_0x3e18de(0x231),e[_0x3e18de(0x237)]['UNIVER_DOC']),T=b([(0x0,e[_0x3e18de(0x218)])(n[_0x3e18de(0x1d6)],t['UniverDocsPlugin']),y(0x1,(0x0,e[_0x3e18de(0x216)])(e[_0x3e18de(0x1e9)])),y(0x2,e[_0x3e18de(0x1f9)]),y(0x3,e[_0x3e18de(0x21b)])],T),exports['DeleteDocumentEndnoteCommand']=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x3e18de(0x1c9)]=m,exports[_0x3e18de(0x221)]=f,exports[_0x3e18de(0x1b0)]=s,exports[_0x3e18de(0x211)]=o,Object[_0x3e18de(0x200)](exports,_0x3e18de(0x238),{'enumerable':!0x0,'get':function(){return T;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37e962=_0x5161;(function(_0x33d380,_0x484159){const _0x274462=_0x5161,_0x5e1dbc=_0x33d380();while(!![]){try{const _0x4935dd=parseInt(_0x274462(0x8e))/0x1+-parseInt(_0x274462(0xaa))/0x2+-parseInt(_0x274462(0xa0))/0x3*(-parseInt(_0x274462(0x9d))/0x4)+-parseInt(_0x274462(0x92))/0x5+-parseInt(_0x274462(0x8d))/0x6*(parseInt(_0x274462(0xb0))/0x7)+parseInt(_0x274462(0xa6))/0x8*(parseInt(_0x274462(0x8c))/0x9)+parseInt(_0x274462(0x93))/0xa*(-parseInt(_0x274462(0x8b))/0xb);if(_0x4935dd===_0x484159)break;else _0x5e1dbc['push'](_0x5e1dbc['shift']());}catch(_0x113845){_0x5e1dbc['push'](_0x5e1dbc['shift']());}}}(_0x3863,0xbe05a));function _0x5161(_0x3f9de0,_0x2e61d2){_0x3f9de0=_0x3f9de0-0x8a;const _0x386332=_0x3863();let _0x516179=_0x386332[_0x3f9de0];return _0x516179;}import{DeleteDocumentEndnoteCommand as _0x2cda8f,DeleteDocumentFootnoteCommand as _0x5728dd,InsertDocumentEndnoteCommand as _0x232f14,InsertDocumentFootnoteCommand as _0x5a2e9b,SetDocumentEndnoteSettingsCommand as _0x31dece,SetDocumentFootnoteSettingsCommand as _0x5ba9fa}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x89995f,ICommandService as _0xd46d51,Tools as _0x1be988,generateRandomId as _0x2c54ed}from'@univerjs/core';import{FDocument as _0x56dd94}from'@univerjs/docs/facade';var d=class extends _0x56dd94{[_0x37e962(0xa2)](_0x30fc17,_0x26faa6={}){const _0x49b3b2=_0x37e962;let _0x2a3afa=_0x2c54ed(0xc);return this['_injector'][_0x49b3b2(0x90)](_0xd46d51)[_0x49b3b2(0x9e)](_0x5a2e9b['id'],{..._0x26faa6,'unitId':this['id'],'offset':_0x30fc17,'noteId':_0x2a3afa})?_0x2a3afa:null;}[_0x37e962(0xa3)](){const _0x2fd434=_0x37e962;var _0x22a448;let _0x1be5b5=this['getDocumentDataModel']()['getSnapshot']();return(((_0x22a448=_0x1be5b5[_0x2fd434(0xb4)])==null?void 0x0:_0x22a448['customRanges'])??[])[_0x2fd434(0xac)](_0x21ebdd=>_0x21ebdd[_0x2fd434(0xa9)]===_0x89995f[_0x2fd434(0x9a)])[_0x2fd434(0xa4)]((_0xddd5e0,_0x1b2763)=>_0xddd5e0[_0x2fd434(0xad)]-_0x1b2763[_0x2fd434(0xad)])['flatMap'](_0xab0a91=>{const _0x4b71a2=_0x2fd434;var _0x23f69f,_0x554b7a;let _0x2ca75f=(_0x23f69f=_0xab0a91[_0x4b71a2(0xb3)])==null?void 0x0:_0x23f69f[_0x4b71a2(0x8f)],_0xb821dd=typeof _0x2ca75f=='string'?(_0x554b7a=_0x1be5b5[_0x4b71a2(0x8a)])==null?void 0x0:_0x554b7a[_0x2ca75f]:void 0x0;return _0xb821dd?[_0x1be988[_0x4b71a2(0xa5)](_0xb821dd)]:[];});}[_0x37e962(0xaf)](_0x2b0e91){const _0x29937e=_0x37e962;return this[_0x29937e(0x9c)][_0x29937e(0x90)](_0xd46d51)['syncExecuteCommand'](_0x5728dd['id'],{'unitId':this['id'],'noteId':_0x2b0e91});}[_0x37e962(0xa8)](_0x33d6c9){const _0x3fabec=_0x37e962;var _0x383cbb,_0x13ad45;let _0x4a7bda=this[_0x3fabec(0xb2)]()[_0x3fabec(0x95)](),_0x2a52f8=_0x33d6c9==null?(_0x383cbb=_0x4a7bda[_0x3fabec(0x91)])==null?void 0x0:_0x383cbb['footnote']:(_0x13ad45=_0x4a7bda[_0x3fabec(0xb4)])==null||(_0x13ad45=_0x13ad45['sectionBreaks'])==null||(_0x13ad45=_0x13ad45[_0x3fabec(0x96)](_0x567e4d=>_0x567e4d[_0x3fabec(0x94)]===_0x33d6c9))==null||(_0x13ad45=_0x13ad45[_0x3fabec(0xae)])==null?void 0x0:_0x13ad45['footnote'];return _0x2a52f8==null?void 0x0:_0x1be988[_0x3fabec(0xa5)](_0x2a52f8);}[_0x37e962(0x9f)](_0x57c154,_0x9f89f1){const _0x105274=_0x37e962;return this[_0x105274(0x9c)][_0x105274(0x90)](_0xd46d51)['syncExecuteCommand'](_0x5ba9fa['id'],{'unitId':this['id'],'settings':_0x57c154,'sectionId':_0x9f89f1});}[_0x37e962(0xa7)](_0x437d6e,_0x1851e9={}){const _0x4f395d=_0x37e962;let _0x4dbedc=_0x2c54ed(0xc);return this[_0x4f395d(0x9c)][_0x4f395d(0x90)](_0xd46d51)[_0x4f395d(0x9e)](_0x232f14['id'],{..._0x1851e9,'unitId':this['id'],'offset':_0x437d6e,'noteId':_0x4dbedc})?_0x4dbedc:null;}[_0x37e962(0xa1)](){const _0x376fcf=_0x37e962;var _0x34fb54;let _0x27bd7d=this['getDocumentDataModel']()[_0x376fcf(0x95)]();return(((_0x34fb54=_0x27bd7d[_0x376fcf(0xb4)])==null?void 0x0:_0x34fb54['customRanges'])??[])[_0x376fcf(0xac)](_0x4713d2=>_0x4713d2[_0x376fcf(0xa9)]===_0x89995f[_0x376fcf(0x98)])[_0x376fcf(0xa4)]((_0x414e2d,_0x3f8e19)=>_0x414e2d[_0x376fcf(0xad)]-_0x3f8e19['startIndex'])[_0x376fcf(0xb1)](_0x12c4f7=>{const _0x4eef8a=_0x376fcf;var _0x4ae396,_0x4ed955;let _0x3cffdd=(_0x4ae396=_0x12c4f7[_0x4eef8a(0xb3)])==null?void 0x0:_0x4ae396['noteId'],_0x28ba2a=typeof _0x3cffdd=='string'?(_0x4ed955=_0x27bd7d[_0x4eef8a(0x8a)])==null?void 0x0:_0x4ed955[_0x3cffdd]:void 0x0;return _0x28ba2a?[_0x1be988[_0x4eef8a(0xa5)](_0x28ba2a)]:[];});}['deleteEndnote'](_0x449545){const _0x1c1cdc=_0x37e962;return this[_0x1c1cdc(0x9c)]['get'](_0xd46d51)[_0x1c1cdc(0x9e)](_0x2cda8f['id'],{'unitId':this['id'],'noteId':_0x449545});}[_0x37e962(0x97)](_0x2bdb10){const _0xc75320=_0x37e962;var _0x11367f,_0x946f0d;let _0x3d768a=this['getDocumentDataModel']()[_0xc75320(0x95)](),_0x4f9f0e=_0x2bdb10==null?(_0x11367f=_0x3d768a[_0xc75320(0x91)])==null?void 0x0:_0x11367f[_0xc75320(0x99)]:(_0x946f0d=_0x3d768a[_0xc75320(0xb4)])==null||(_0x946f0d=_0x946f0d['sectionBreaks'])==null||(_0x946f0d=_0x946f0d['find'](_0x15d503=>_0x15d503[_0xc75320(0x94)]===_0x2bdb10))==null||(_0x946f0d=_0x946f0d[_0xc75320(0xae)])==null?void 0x0:_0x946f0d[_0xc75320(0x99)];return _0x4f9f0e==null?void 0x0:_0x1be988[_0xc75320(0xa5)](_0x4f9f0e);}[_0x37e962(0x9b)](_0x5a9193,_0x2cdca0){const _0x522fec=_0x37e962;return this[_0x522fec(0x9c)]['get'](_0xd46d51)[_0x522fec(0x9e)](_0x31dece['id'],{'unitId':this['id'],'settings':_0x5a9193,'sectionId':_0x2cdca0});}};function _0x3863(){const _0x1f0a72=['getSnapshot','find','getEndnoteSettings','ENDNOTE','endnote','FOOTNOTE','setEndnoteSettings','_injector','5797460Supgry','syncExecuteCommand','setFootnoteSettings','3GCuoLg','getEndnotes','insertFootnote','getFootnotes','sort','deepClone','4101240VjSflA','insertEndnote','getFootnoteSettings','rangeType','2603296ZuXPMp','extend','filter','startIndex','noteProperties','deleteFootnote','490EjUTVi','flatMap','getDocumentDataModel','properties','body','notes','8839523mCQLyS','18YEyiyv','50382JAIKaN','1309522yNbeCa','noteId','get','noteSettings','1564180jWfCHY','10ApAzTG','sectionId'];_0x3863=function(){return _0x1f0a72;};return _0x3863();}_0x56dd94[_0x37e962(0xab)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4600df=_0x3539;(function(_0x413eed,_0x5ab849){const _0x341caf=_0x3539,_0x298b0a=_0x413eed();while(!![]){try{const _0x13434b=parseInt(_0x341caf(0x20f))/0x1*(-parseInt(_0x341caf(0x208))/0x2)+-parseInt(_0x341caf(0x1cd))/0x3*(-parseInt(_0x341caf(0x1c5))/0x4)+-parseInt(_0x341caf(0x1f7))/0x5+parseInt(_0x341caf(0x1d9))/0x6*(-parseInt(_0x341caf(0x1c9))/0x7)+parseInt(_0x341caf(0x1f0))/0x8+parseInt(_0x341caf(0x1c2))/0x9*(parseInt(_0x341caf(0x216))/0xa)+parseInt(_0x341caf(0x1ec))/0xb*(parseInt(_0x341caf(0x202))/0xc);if(_0x13434b===_0x5ab849)break;else _0x298b0a['push'](_0x298b0a['shift']());}catch(_0x4ddd19){_0x298b0a['push'](_0x298b0a['shift']());}}}(_0x4763,0x67ea3));import{CommandType as _0x2beccf,CustomRangeType as _0x1f509c,DependentOn as _0x126d9d,DocumentFlavor as _0x25b4a1,ICommandService as _0xbc5180,IConfigService as _0x19a8fd,IUniverInstanceService as _0x28d7f0,Inject as _0x4b5c4b,Injector as _0x38617d,JSONX as _0x4f86a5,Plugin as _0x26c983,TextX as _0x7c13a3,Tools as _0x1ea835,UniverInstanceType as _0x45c27a,createParagraphId as _0x57afb1,createSectionId as _0x4111f5,generateRandomId as _0x31c553,merge as _0x50c30f,validateDocBodyStructure as _0x35465e,validateDocumentStructure as _0x3dd22b}from'@univerjs/core';import{RichTextEditingMutation as _0x2b017e,UniverDocsPlugin as _0x1bad7e}from'@univerjs/docs';import{UniverLicensePlugin as _0x1111a2}from'@univerjs-pro/license';function C(_0x33e3bd,_0x32f7ab,_0x3849bc){const _0x905eb0=_0x3539;if(_0x33e3bd[_0x905eb0(0x1ff)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x20a),_0x905eb0(0x1ae)]:[_0x905eb0(0x21a),_0x905eb0(0x1fd)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ff)])||_0x33e3bd[_0x905eb0(0x1ab)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x1e7),_0x905eb0(0x1f5),_0x905eb0(0x210)]:[_0x905eb0(0x1e7),_0x905eb0(0x1f5)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ab)])||_0x33e3bd[_0x905eb0(0x1cb)]!=null&&(!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1cb)])||_0x33e3bd[_0x905eb0(0x1cb)]<0x1)||_0x905eb0(0x1bc)in _0x33e3bd&&_0x33e3bd[_0x905eb0(0x1bc)]!=null&&(_0x32f7ab!=='footnote'||!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1bc)])||_0x33e3bd[_0x905eb0(0x1bc)]<0x0||_0x33e3bd['columnCount']>0x4)||_0x33e3bd[_0x905eb0(0x218)]!=null&&(typeof _0x33e3bd['numberFormat']!='string'||_0x33e3bd[_0x905eb0(0x218)]['length']===0x0))return!0x1;for(let _0x328c56 of[_0x33e3bd[_0x905eb0(0x1b1)],_0x33e3bd[_0x905eb0(0x1f8)],_0x33e3bd['continuationNotice']])if(_0x328c56!=null&&(_0x3849bc!=null||_0x35465e(_0x328c56)[_0x905eb0(0x1e9)]>0x0))return!0x1;return!0x0;}function w(_0x14e80d,_0x5ba25c,_0x55fdfe){const _0x55ce38=_0x3539;var _0x5b4fa3,_0x1e3646;if(_0x5ba25c[_0x55ce38(0x1ba)]!=null&&!C(_0x5ba25c[_0x55ce38(0x1ba)],_0x55fdfe,_0x5ba25c[_0x55ce38(0x1af)]))return!0x1;let _0x10c278=((_0x5b4fa3=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x5b4fa3=_0x5b4fa3[_0x55ce38(0x1bd)])==null?void 0x0:_0x5b4fa3[_0x55ce38(0x1c6)](_0x119f1e=>_0x119f1e[_0x55ce38(0x1af)]===_0x5ba25c[_0x55ce38(0x1af)]))??-0x1;if(_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x10c278<0x0)return!0x1;let _0x4e55ea=_0x5ba25c[_0x55ce38(0x1af)]==null?_0x14e80d[_0x55ce38(0x1dc)]:(_0x1e3646=_0x14e80d['body'])==null||(_0x1e3646=_0x1e3646[_0x55ce38(0x1bd)])==null?void 0x0:_0x1e3646[_0x10c278]['noteProperties'],_0x5eee19=_0x5ba25c[_0x55ce38(0x1ba)]==null?void 0x0:_0x1ea835['deepClone'](_0x5ba25c['settings']),_0x3e6177=_0x5ba25c[_0x55ce38(0x1af)]==null?['noteSettings']:['body',_0x55ce38(0x1bd),_0x10c278,_0x55ce38(0x1cf)],_0x49ce7a=_0x4f86a5[_0x55ce38(0x1f9)](),_0x37e190=null;if(_0x1ea835['diffValue'](_0x4e55ea==null?void 0x0:_0x4e55ea[_0x55fdfe],_0x5eee19)||(_0x37e190=_0x4e55ea==null?_0x49ce7a[_0x55ce38(0x1d1)](_0x3e6177,{[_0x55fdfe]:_0x5eee19}):_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x5eee19==null&&Object[_0x55ce38(0x215)](_0x4e55ea)[_0x55ce38(0x205)](_0x27fe98=>_0x27fe98===_0x55fdfe)?_0x49ce7a[_0x55ce38(0x1e2)](_0x3e6177,_0x4e55ea):_0x49ce7a[_0x55ce38(0x1e4)]([..._0x3e6177,_0x55fdfe],_0x4e55ea[_0x55fdfe],_0x5eee19)),_0x5ba25c['suppressEndnotes']!=null){var _0x26653;if(_0x55fdfe!==_0x55ce38(0x1f4)||_0x5ba25c['sectionId']==null||typeof _0x5ba25c[_0x55ce38(0x201)]!=_0x55ce38(0x1d4))return!0x1;let _0x7bb256=(_0x26653=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x26653=_0x26653[_0x55ce38(0x1bd)])==null?void 0x0:_0x26653[_0x10c278][_0x55ce38(0x201)];_0x7bb256!==_0x5ba25c['suppressEndnotes']&&(_0x37e190=_0x4f86a5[_0x55ce38(0x1d2)](_0x37e190,_0x49ce7a[_0x55ce38(0x1e4)]([_0x55ce38(0x1b5),'sectionBreaks',_0x10c278,_0x55ce38(0x201)],_0x7bb256,_0x5ba25c[_0x55ce38(0x201)])));}return _0x37e190;}function T(_0x4009fa,_0x165f31,_0x51196c){const _0x1c643e=_0x3539;if(!_0x165f31)return!0x1;let _0x39184d=_0x4009fa[_0x1c643e(0x1fc)](_0x28d7f0)['getUnit'](_0x165f31[_0x1c643e(0x1df)],_0x45c27a[_0x1c643e(0x1c8)]),_0x258926=_0x39184d==null?void 0x0:_0x39184d['getSnapshot']();if(!_0x258926||_0x258926[_0x1c643e(0x1f6)][_0x1c643e(0x1d7)]!==_0x25b4a1[_0x1c643e(0x214)])return!0x1;let _0x1b59cf=w(_0x258926,_0x165f31,_0x51196c);return _0x1b59cf===!0x1||_0x4f86a5[_0x1c643e(0x1ea)](_0x1b59cf)?!0x1:!!_0x4009fa['get'](_0xbc5180)[_0x1c643e(0x1d3)](_0x2b017e['id'],{'unitId':_0x165f31['unitId'],'segmentId':'','historyAction':_0x1c643e(0x212)+_0x51196c+_0x1c643e(0x1b9),'actions':_0x1b59cf,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x510078,_0x44f459)=>T(_0x510078,_0x44f459,'footnote')},D={'id':'doc.command.set-endnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x49e484,_0x10e07f)=>T(_0x49e484,_0x10e07f,'endnote')};function O(_0x3b0436,_0x57ee53){const _0x575243=_0x4600df;return(_0x3b0436==null?void 0x0:_0x3b0436[_0x575243(0x1f6)][_0x575243(0x1d7)])===_0x25b4a1['TRADITIONAL']&&!!_0x3b0436[_0x575243(0x1b5)]&&Number[_0x575243(0x1dd)](_0x57ee53)&&_0x57ee53>=0x0&&_0x57ee53<_0x3b0436[_0x575243(0x1b5)][_0x575243(0x1c7)][_0x575243(0x1e9)]-0x1;}function k(_0x2ec1d8,_0x272edc,_0x55f525){const _0xac4721=_0x4600df;var _0x169563,_0x1c06bd;if(_0x272edc[_0xac4721(0x1ba)]===void 0x0&&_0x272edc['suppressEndnotes']===void 0x0)return null;let _0x3690dc=_0x272edc[_0xac4721(0x1af)]==null?(_0x169563=_0x2ec1d8[_0xac4721(0x1dc)])==null?void 0x0:_0x169563[_0x55f525]:(_0x1c06bd=_0x2ec1d8['body'])==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1bd)])==null||(_0x1c06bd=_0x1c06bd['find'](_0x23842c=>_0x23842c[_0xac4721(0x1af)]===_0x272edc['sectionId']))==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1cf)])==null?void 0x0:_0x1c06bd[_0x55f525];return w(_0x2ec1d8,{'settings':_0x272edc[_0xac4721(0x1ba)]===void 0x0?_0x3690dc??null:_0x272edc[_0xac4721(0x1ba)],'sectionId':_0x272edc['sectionId'],'suppressEndnotes':_0x272edc[_0xac4721(0x201)]},_0x55f525);}function A(_0x515098,_0x3f38d2,_0x4b3921){const _0x3f0d98=_0x4600df;var _0x22976a,_0x3ae86a,_0x5cf51c;if(!_0x3f38d2||_0x3f38d2['segmentId'])return!0x1;let _0x5eda21=_0x515098[_0x3f0d98(0x1fc)](_0x28d7f0)['getUnit'](_0x3f38d2['unitId'],_0x45c27a[_0x3f0d98(0x1c8)]),_0x329c5a=_0x5eda21==null?void 0x0:_0x5eda21[_0x3f0d98(0x1b7)](),{offset:_0x29dcbf}=_0x3f38d2;if(!O(_0x329c5a,_0x29dcbf))return!0x1;let _0x1fef75=k(_0x329c5a,_0x3f38d2,_0x4b3921);if(_0x1fef75===!0x1)return!0x1;let _0x415c01=_0x3f38d2[_0x3f0d98(0x1ed)]??_0x31c553(0xc);if((_0x22976a=_0x329c5a[_0x3f0d98(0x1bf)])!=null&&_0x22976a[_0x415c01]||(_0x3ae86a=_0x329c5a['headers'])!=null&&_0x3ae86a[_0x415c01]||(_0x5cf51c=_0x329c5a[_0x3f0d98(0x1cc)])!=null&&_0x5cf51c[_0x415c01])return!0x1;let _0x55959a=_0x1ea835[_0x3f0d98(0x1e0)]({'type':_0x4b3921,'noteId':_0x415c01,'body':_0x3f38d2[_0x3f0d98(0x1b5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x57afb1(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x4111f5(new Set()),'startIndex':0x1}]},'customMark':_0x3f38d2['customMark'],'referenceTextStyle':_0x3f38d2[_0x3f0d98(0x1c3)],'tableSource':_0x3f38d2[_0x3f0d98(0x206)],'drawings':_0x3f38d2['drawings'],'drawingsOrder':_0x3f38d2['drawingsOrder'],'lists':_0x3f38d2[_0x3f0d98(0x1d0)]});if(_0x3dd22b({'notes':{[_0x415c01]:_0x55959a}})[_0x3f0d98(0x1e9)]>0x0)return!0x1;let _0x48c68f=new _0x7c13a3();_0x29dcbf>0x0&&_0x48c68f[_0x3f0d98(0x1b3)](_0x29dcbf),_0x48c68f[_0x3f0d98(0x200)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x4b3921===_0x3f0d98(0x1ad)?_0x1f509c[_0x3f0d98(0x1ce)]:_0x1f509c['ENDNOTE'],'rangeId':_0x31c553(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x415c01}}]});let _0x4872a4=_0x4f86a5['getInstance'](),_0x2c37ec=_0x329c5a['notes']==null?_0x4872a4[_0x3f0d98(0x1d1)]([_0x3f0d98(0x1bf)],{[_0x415c01]:_0x55959a}):_0x4872a4[_0x3f0d98(0x1d1)](['notes',_0x415c01],_0x55959a);return!!_0x515098[_0x3f0d98(0x1fc)](_0xbc5180)[_0x3f0d98(0x1d3)](_0x2b017e['id'],{'unitId':_0x3f38d2[_0x3f0d98(0x1df)],'segmentId':'','historyAction':_0x3f0d98(0x1b6)+_0x4b3921,'actions':_0x4f86a5['compose'](_0x4f86a5[_0x3f0d98(0x1d2)](_0x1fef75,_0x2c37ec),_0x4872a4[_0x3f0d98(0x1ef)](_0x48c68f[_0x3f0d98(0x1f2)](),[_0x3f0d98(0x1b5)])),'textRanges':[{'segmentId':_0x415c01,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x975d8f,_0x50c57c,_0x46b976){const _0x20d8d9=_0x4600df;var _0x408632,_0xa10cf8;if(!_0x50c57c)return!0x1;let _0x1a6994=_0x975d8f['get'](_0x28d7f0)[_0x20d8d9(0x211)](_0x50c57c[_0x20d8d9(0x1df)],_0x45c27a[_0x20d8d9(0x1c8)]),_0x4b5235=_0x1a6994==null?void 0x0:_0x1a6994[_0x20d8d9(0x1b7)](),_0x4a60f1=_0x4b5235==null||(_0x408632=_0x4b5235[_0x20d8d9(0x1bf)])==null?void 0x0:_0x408632[_0x50c57c[_0x20d8d9(0x1ed)]],_0x522ce6=_0x4b5235==null||(_0xa10cf8=_0x4b5235[_0x20d8d9(0x1b5)])==null||(_0xa10cf8=_0xa10cf8[_0x20d8d9(0x1be)])==null?void 0x0:_0xa10cf8[_0x20d8d9(0x1ee)](_0x3b3029=>{const _0x2d9166=_0x20d8d9;var _0x2c1b3b;return(_0x3b3029['rangeType']===_0x1f509c[_0x2d9166(0x1ce)]||_0x3b3029[_0x2d9166(0x20b)]===_0x1f509c[_0x2d9166(0x1e3)])&&((_0x2c1b3b=_0x3b3029[_0x2d9166(0x1c0)])==null?void 0x0:_0x2c1b3b['noteId'])===_0x50c57c['noteId'];});if(!_0x4b5235||_0x4b5235[_0x20d8d9(0x1f6)][_0x20d8d9(0x1d7)]!==_0x25b4a1[_0x20d8d9(0x214)]||!_0x4a60f1||_0x4a60f1['type']!==_0x46b976||!_0x522ce6)return!0x1;let _0x4c3984=new _0x7c13a3();_0x522ce6['startIndex']>0x0&&_0x4c3984[_0x20d8d9(0x1b3)](_0x522ce6[_0x20d8d9(0x213)]),_0x4c3984[_0x20d8d9(0x1b4)](0x1);let _0x45f4fb=_0x4f86a5[_0x20d8d9(0x1f9)]();return!!_0x975d8f['get'](_0xbc5180)[_0x20d8d9(0x1d3)](_0x2b017e['id'],{'unitId':_0x50c57c[_0x20d8d9(0x1df)],'segmentId':'','historyAction':_0x20d8d9(0x219)+_0x46b976,'actions':_0x4f86a5[_0x20d8d9(0x1d2)](_0x45f4fb[_0x20d8d9(0x1ef)](_0x4c3984[_0x20d8d9(0x1f2)](),[_0x20d8d9(0x1b5)]),_0x45f4fb[_0x20d8d9(0x1e2)]([_0x20d8d9(0x1bf),_0x50c57c[_0x20d8d9(0x1ed)]],_0x4a60f1)),'textRanges':[{'startOffset':_0x522ce6['startIndex'],'endOffset':_0x522ce6[_0x20d8d9(0x213)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x4600df(0x1d6),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x30721f,_0x5e0680)=>A(_0x30721f,_0x5e0680,_0x4600df(0x1ad))},N={'id':_0x4600df(0x20e),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x5c98f8,_0x2d4464)=>j(_0x5c98f8,_0x2d4464,_0x4600df(0x1ad))},P={'id':_0x4600df(0x1d5),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0xfdb615,_0x2eb765)=>A(_0xfdb615,_0x2eb765,_0x4600df(0x1f4))},F={'id':_0x4600df(0x1de),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x10046c,_0x7c3427)=>j(_0x10046c,_0x7c3427,_0x4600df(0x1f4))};function _0x3539(_0xfed6f0,_0x15771d){_0xfed6f0=_0xfed6f0-0x1aa;const _0x4763c3=_0x4763();let _0x35396c=_0x4763c3[_0xfed6f0];return _0x35396c;}var I=_0x4600df(0x1da),L=_0x4600df(0x1c4);const R={};function z(_0x4acdba,_0x4c2d57){return function(_0x366aa1,_0x2f02f3){_0x4c2d57(_0x366aa1,_0x2f02f3,_0x4acdba);};}function B(_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e){const _0x544728=_0x4600df;var _0x3fb182=arguments[_0x544728(0x1e9)],_0x2a8e7f=_0x3fb182<0x3?_0x245561:_0x4e181e===null?_0x4e181e=Object['getOwnPropertyDescriptor'](_0x245561,_0x22bd4d):_0x4e181e,_0x196d1e;if(typeof Reflect==_0x544728(0x1ca)&&typeof Reflect[_0x544728(0x1e1)]==_0x544728(0x1d8))_0x2a8e7f=Reflect['decorate'](_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e);else{for(var _0x3447da=_0x3b3328[_0x544728(0x1e9)]-0x1;_0x3447da>=0x0;_0x3447da--)(_0x196d1e=_0x3b3328[_0x3447da])&&(_0x2a8e7f=(_0x3fb182<0x3?_0x196d1e(_0x2a8e7f):_0x3fb182>0x3?_0x196d1e(_0x245561,_0x22bd4d,_0x2a8e7f):_0x196d1e(_0x245561,_0x22bd4d))||_0x2a8e7f);}return _0x3fb182>0x3&&_0x2a8e7f&&Object[_0x544728(0x1e5)](_0x245561,_0x22bd4d,_0x2a8e7f),_0x2a8e7f;}function V(_0xe7b87e){'@babel/helpers - typeof';const _0x2e8c10=_0x4600df;return V=typeof Symbol=='function'&&typeof Symbol[_0x2e8c10(0x1e6)]==_0x2e8c10(0x1aa)?function(_0x29a605){return typeof _0x29a605;}:function(_0xbf3c23){const _0x43558b=_0x2e8c10;return _0xbf3c23&&typeof Symbol==_0x43558b(0x1d8)&&_0xbf3c23[_0x43558b(0x217)]===Symbol&&_0xbf3c23!==Symbol[_0x43558b(0x209)]?_0x43558b(0x1aa):typeof _0xbf3c23;},V(_0xe7b87e);}function H(_0x1e6791,_0x117acd){const _0x3a8ada=_0x4600df;if(V(_0x1e6791)!='object'||!_0x1e6791)return _0x1e6791;var _0x195df2=_0x1e6791[Symbol[_0x3a8ada(0x1ac)]];if(_0x195df2!==void 0x0){var _0x2ea2bb=_0x195df2['call'](_0x1e6791,_0x117acd||_0x3a8ada(0x1b2));if(V(_0x2ea2bb)!=_0x3a8ada(0x1ca))return _0x2ea2bb;throw TypeError(_0x3a8ada(0x20c));}return(_0x117acd===_0x3a8ada(0x1eb)?String:Number)(_0x1e6791);}function U(_0x287226){const _0x5c9d54=_0x4600df;var _0x5adef8=H(_0x287226,_0x5c9d54(0x1eb));return V(_0x5adef8)=='symbol'?_0x5adef8:_0x5adef8+'';}function W(_0x1972e8,_0x3af945,_0x2a6d37){const _0x4aae17=_0x4600df;return(_0x3af945=U(_0x3af945))in _0x1972e8?Object[_0x4aae17(0x1e5)](_0x1972e8,_0x3af945,{'value':_0x2a6d37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1972e8[_0x3af945]=_0x2a6d37,_0x1972e8;}function _0x4763(){const _0x152904=['eachPage','getUnit','set-','startIndex','TRADITIONAL','keys','22490fUUvqO','constructor','numberFormat','delete-','docEnd','symbol','restart','toPrimitive','footnote','beneathText','sectionId','includes','separator','default','retain','delete','body','insert-','getSnapshot','_configService','-settings','settings','setConfig','columnCount','sectionBreaks','customRanges','notes','properties','packageName','45SHzOiT','referenceTextStyle','1.0.1','52CcznWu','findIndex','dataStream','UNIVER_DOC','333977nlABkg','object','startNumber','footers','193854IEfIBZ','FOOTNOTE','noteProperties','lists','insertOp','compose','syncExecuteCommand','boolean','doc.command.insert-endnote','doc.command.insert-footnote','documentFlavor','function','42LVboyn','@univerjs-pro/docs-reference','_injector','noteSettings','isInteger','doc.command.delete-endnote','unitId','deepClone','decorate','removeOp','ENDNOTE','replaceOp','defineProperty','iterator','continuous','pluginName','length','isNoop','string','118415BMCwtc','noteId','find','editOp','56424WddhYL','_config','serialize','_commandService','endnote','eachSect','documentStyle','260200zhkUof','continuationSeparator','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','COMMAND','get','sectEnd','docs-reference.config','position','insert','suppressEndnotes','840UIRuGH','type','disposeWithMe','every','tableSource','forEach','18610xbmAoU','prototype','pageBottom','rangeType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','doc.command.delete-footnote','86zXxotq'];_0x4763=function(){return _0x152904;};return _0x4763();}let G=class extends _0x26c983{constructor(_0x184b0f=R,_0x27aa9d,_0x3929a9,_0x4cae4b){const _0x17a5c2=_0x4600df;super(),this[_0x17a5c2(0x1f1)]=_0x184b0f,this[_0x17a5c2(0x1db)]=_0x27aa9d,this[_0x17a5c2(0x1b8)]=_0x3929a9,this[_0x17a5c2(0x1f3)]=_0x4cae4b;let {..._0x5269ea}=_0x50c30f({},R,this[_0x17a5c2(0x1f1)]);this[_0x17a5c2(0x1b8)][_0x17a5c2(0x1bb)](_0x17a5c2(0x1fe),_0x5269ea);}[_0x4600df(0x20d)](){const _0x524f9d=_0x4600df;[M,N,E,P,F,D][_0x524f9d(0x207)](_0x19642b=>this[_0x524f9d(0x204)](this[_0x524f9d(0x1f3)]['registerCommand'](_0x19642b)));}};W(G,_0x4600df(0x1e8),_0x4600df(0x1fa)),W(G,_0x4600df(0x1c1),I),W(G,'version',L),W(G,_0x4600df(0x203),_0x45c27a[_0x4600df(0x1c8)]),G=B([_0x126d9d(_0x1111a2,_0x1bad7e),z(0x1,_0x4b5c4b(_0x38617d)),z(0x2,_0x19a8fd),z(0x3,_0xbc5180)],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 _0x25508f=_0x69ad;(function(_0x1e585a,_0x5da94c){const _0x5d0c32=_0x69ad,_0x322812=_0x1e585a();while(!![]){try{const _0x266787=parseInt(_0x5d0c32(0x153))/0x1*(parseInt(_0x5d0c32(0x134))/0x2)+parseInt(_0x5d0c32(0x179))/0x3+parseInt(_0x5d0c32(0x162))/0x4*(-parseInt(_0x5d0c32(0x151))/0x5)+parseInt(_0x5d0c32(0x132))/0x6+parseInt(_0x5d0c32(0x16e))/0x7*(-parseInt(_0x5d0c32(0x140))/0x8)+-parseInt(_0x5d0c32(0x141))/0x9*(-parseInt(_0x5d0c32(0x129))/0xa)+parseInt(_0x5d0c32(0x12d))/0xb*(-parseInt(_0x5d0c32(0x194))/0xc);if(_0x266787===_0x5da94c)break;else _0x322812['push'](_0x322812['shift']());}catch(_0x2e2cc5){_0x322812['push'](_0x322812['shift']());}}}(_0x1d01,0x3470d));import{CommandType as _0x2a3bc0,CustomRangeType as _0x49b982,DependentOn as _0x69f6bf,DocumentFlavor as _0x5ecc88,ICommandService as _0x18cdca,IConfigService as _0x34fb3d,IUniverInstanceService as _0x12db6d,Inject as _0x41bfce,Injector as _0xb9be7d,JSONX as _0x2cfd8b,Plugin as _0x121c9b,TextX as _0x39af67,Tools as _0x1cd3f7,UniverInstanceType as _0x4a54fc,createParagraphId as _0x3054c1,createSectionId as _0x409e31,generateRandomId as _0x1814f7,merge as _0x1b6b58,validateDocBodyStructure as _0x5da210,validateDocumentStructure as _0x143f52}from'@univerjs/core';import{RichTextEditingMutation as _0x3285cd,UniverDocsPlugin as _0x4a0936}from'@univerjs/docs';import{UniverLicensePlugin as _0x5d0fd1}from'@univerjs-pro/license';function _0x1d01(){const _0x34573a=['syncExecuteCommand','packageName','length','256876qlzXqC','docs-reference.config','type','separator','call','registerCommand','pageBottom','string','getSnapshot','prototype','lists','doc.command.delete-endnote','7DOqRNc','tableSource','COMMAND','body','delete-','endnote','sectionId','includes','compose','isInteger','restart','1000398szZXHm','beneathText','footnote','removeOp','@univerjs-pro/docs-reference','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','position','isNoop','eachSect','find','get','insertOp','forEach','noteProperties','_injector','doc.command.set-endnote-settings','startNumber','numberFormat','noteSettings','deepClone','UNIVER_DOC','docEnd','findIndex','1.0.3','drawings','getInstance','_commandService','12gXhbhV','2215650mPzqAn','pluginName','sectionBreaks','replaceOp','2263481pnpCiY','_configService','toPrimitive','unitId','function','52416eZSgVd','ENDNOTE','208902fByOwM','boolean','continuous','insert','symbol','suppressEndnotes','columnCount','decorate','object','notes','getUnit','doc.command.set-footnote-settings','2433016nFZpvg','9GAQWSO','headers','settings','documentStyle','every','continuationSeparator','constructor','UNIVER_DOCS_REFERENCE_PLUGIN','retain','_config','dataStream','startIndex','doc.command.insert-endnote','properties','defineProperty','setConfig','20ctgxGx','noteId','4Lqffdj','FOOTNOTE','diffValue','customMark','drawingsOrder','default','iterator','documentFlavor','editOp','version','eachPage','onStarting'];_0x1d01=function(){return _0x34573a;};return _0x1d01();}function C(_0x2553cf,_0xabaee8,_0x292582){const _0x5a356c=_0x69ad;if(_0x2553cf[_0x5a356c(0x17f)]!=null&&!(_0xabaee8==='footnote'?[_0x5a356c(0x168),_0x5a356c(0x17a)]:[_0x5a356c(0x18e),'sectEnd'])[_0x5a356c(0x175)](_0x2553cf[_0x5a356c(0x17f)])||_0x2553cf[_0x5a356c(0x178)]!=null&&!(_0xabaee8==='footnote'?[_0x5a356c(0x136),_0x5a356c(0x181),_0x5a356c(0x15d)]:['continuous',_0x5a356c(0x181)])[_0x5a356c(0x175)](_0x2553cf[_0x5a356c(0x178)])||_0x2553cf[_0x5a356c(0x189)]!=null&&(!Number['isInteger'](_0x2553cf[_0x5a356c(0x189)])||_0x2553cf['startNumber']<0x1)||_0x5a356c(0x13a)in _0x2553cf&&_0x2553cf[_0x5a356c(0x13a)]!=null&&(_0xabaee8!=='footnote'||!Number[_0x5a356c(0x177)](_0x2553cf[_0x5a356c(0x13a)])||_0x2553cf[_0x5a356c(0x13a)]<0x0||_0x2553cf['columnCount']>0x4)||_0x2553cf[_0x5a356c(0x18a)]!=null&&(typeof _0x2553cf[_0x5a356c(0x18a)]!=_0x5a356c(0x169)||_0x2553cf['numberFormat'][_0x5a356c(0x161)]===0x0))return!0x1;for(let _0x1c2eab of[_0x2553cf[_0x5a356c(0x165)],_0x2553cf[_0x5a356c(0x146)],_0x2553cf['continuationNotice']])if(_0x1c2eab!=null&&(_0x292582!=null||_0x5da210(_0x1c2eab)[_0x5a356c(0x161)]>0x0))return!0x1;return!0x0;}function _0x69ad(_0x241b16,_0x5d3949){_0x241b16=_0x241b16-0x129;const _0x1d0172=_0x1d01();let _0x69ade9=_0x1d0172[_0x241b16];return _0x69ade9;}function w(_0x8fd1a6,_0x318885,_0x40c2a4){const _0xd85e86=_0x69ad;var _0x52cf64,_0x742e27;if(_0x318885['settings']!=null&&!C(_0x318885[_0xd85e86(0x143)],_0x40c2a4,_0x318885[_0xd85e86(0x174)]))return!0x1;let _0x3e59c1=((_0x52cf64=_0x8fd1a6[_0xd85e86(0x171)])==null||(_0x52cf64=_0x52cf64[_0xd85e86(0x12b)])==null?void 0x0:_0x52cf64[_0xd85e86(0x18f)](_0x26b7f6=>_0x26b7f6[_0xd85e86(0x174)]===_0x318885['sectionId']))??-0x1;if(_0x318885[_0xd85e86(0x174)]!=null&&_0x3e59c1<0x0)return!0x1;let _0x3f776c=_0x318885[_0xd85e86(0x174)]==null?_0x8fd1a6[_0xd85e86(0x18b)]:(_0x742e27=_0x8fd1a6[_0xd85e86(0x171)])==null||(_0x742e27=_0x742e27['sectionBreaks'])==null?void 0x0:_0x742e27[_0x3e59c1]['noteProperties'],_0x2014b5=_0x318885[_0xd85e86(0x143)]==null?void 0x0:_0x1cd3f7[_0xd85e86(0x18c)](_0x318885[_0xd85e86(0x143)]),_0x4897b5=_0x318885['sectionId']==null?['noteSettings']:[_0xd85e86(0x171),'sectionBreaks',_0x3e59c1,_0xd85e86(0x186)],_0x522795=_0x2cfd8b['getInstance'](),_0x56ad56=null;if(_0x1cd3f7[_0xd85e86(0x155)](_0x3f776c==null?void 0x0:_0x3f776c[_0x40c2a4],_0x2014b5)||(_0x56ad56=_0x3f776c==null?_0x522795[_0xd85e86(0x184)](_0x4897b5,{[_0x40c2a4]:_0x2014b5}):_0x318885[_0xd85e86(0x174)]!=null&&_0x2014b5==null&&Object['keys'](_0x3f776c)[_0xd85e86(0x145)](_0x2b21e5=>_0x2b21e5===_0x40c2a4)?_0x522795[_0xd85e86(0x17c)](_0x4897b5,_0x3f776c):_0x522795[_0xd85e86(0x12c)]([..._0x4897b5,_0x40c2a4],_0x3f776c[_0x40c2a4],_0x2014b5)),_0x318885[_0xd85e86(0x139)]!=null){var _0x11d461;if(_0x40c2a4!==_0xd85e86(0x173)||_0x318885[_0xd85e86(0x174)]==null||typeof _0x318885[_0xd85e86(0x139)]!=_0xd85e86(0x135))return!0x1;let _0x3dcf4a=(_0x11d461=_0x8fd1a6[_0xd85e86(0x171)])==null||(_0x11d461=_0x11d461[_0xd85e86(0x12b)])==null?void 0x0:_0x11d461[_0x3e59c1]['suppressEndnotes'];_0x3dcf4a!==_0x318885[_0xd85e86(0x139)]&&(_0x56ad56=_0x2cfd8b[_0xd85e86(0x176)](_0x56ad56,_0x522795[_0xd85e86(0x12c)]([_0xd85e86(0x171),'sectionBreaks',_0x3e59c1,_0xd85e86(0x139)],_0x3dcf4a,_0x318885[_0xd85e86(0x139)])));}return _0x56ad56;}function T(_0xba387a,_0x11fa88,_0x2909e2){const _0x50a073=_0x69ad;if(!_0x11fa88)return!0x1;let _0x2cea35=_0xba387a[_0x50a073(0x183)](_0x12db6d)[_0x50a073(0x13e)](_0x11fa88[_0x50a073(0x130)],_0x4a54fc[_0x50a073(0x18d)]),_0x2de04e=_0x2cea35==null?void 0x0:_0x2cea35[_0x50a073(0x16a)]();if(!_0x2de04e||_0x2de04e['documentStyle'][_0x50a073(0x15a)]!==_0x5ecc88['TRADITIONAL'])return!0x1;let _0x3241b7=w(_0x2de04e,_0x11fa88,_0x2909e2);return _0x3241b7===!0x1||_0x2cfd8b[_0x50a073(0x180)](_0x3241b7)?!0x1:!!_0xba387a[_0x50a073(0x183)](_0x18cdca)[_0x50a073(0x15f)](_0x3285cd['id'],{'unitId':_0x11fa88[_0x50a073(0x130)],'segmentId':'','historyAction':'set-'+_0x2909e2+'-settings','actions':_0x3241b7,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x25508f(0x13f),'type':_0x2a3bc0[_0x25508f(0x170)],'handler':(_0x19ee5b,_0x162898)=>T(_0x19ee5b,_0x162898,_0x25508f(0x17b))},D={'id':_0x25508f(0x188),'type':_0x2a3bc0['COMMAND'],'handler':(_0x3eabc2,_0x37d794)=>T(_0x3eabc2,_0x37d794,'endnote')};function O(_0x1a7a30,_0x33a0e0){const _0x4e0f5a=_0x25508f;return(_0x1a7a30==null?void 0x0:_0x1a7a30[_0x4e0f5a(0x144)][_0x4e0f5a(0x15a)])===_0x5ecc88['TRADITIONAL']&&!!_0x1a7a30['body']&&Number[_0x4e0f5a(0x177)](_0x33a0e0)&&_0x33a0e0>=0x0&&_0x33a0e0<_0x1a7a30[_0x4e0f5a(0x171)][_0x4e0f5a(0x14b)]['length']-0x1;}function k(_0x5b36bd,_0x32d5eb,_0x5371ff){const _0x554b30=_0x25508f;var _0x5e96b5,_0x27e264;if(_0x32d5eb[_0x554b30(0x143)]===void 0x0&&_0x32d5eb[_0x554b30(0x139)]===void 0x0)return null;let _0x1927d2=_0x32d5eb[_0x554b30(0x174)]==null?(_0x5e96b5=_0x5b36bd[_0x554b30(0x18b)])==null?void 0x0:_0x5e96b5[_0x5371ff]:(_0x27e264=_0x5b36bd[_0x554b30(0x171)])==null||(_0x27e264=_0x27e264[_0x554b30(0x12b)])==null||(_0x27e264=_0x27e264[_0x554b30(0x182)](_0x5ae622=>_0x5ae622[_0x554b30(0x174)]===_0x32d5eb[_0x554b30(0x174)]))==null||(_0x27e264=_0x27e264[_0x554b30(0x186)])==null?void 0x0:_0x27e264[_0x5371ff];return w(_0x5b36bd,{'settings':_0x32d5eb[_0x554b30(0x143)]===void 0x0?_0x1927d2??null:_0x32d5eb[_0x554b30(0x143)],'sectionId':_0x32d5eb['sectionId'],'suppressEndnotes':_0x32d5eb[_0x554b30(0x139)]},_0x5371ff);}function A(_0x3d7d83,_0x3d18cd,_0x14f938){const _0x5528ca=_0x25508f;var _0x1125b1,_0x1bfa4a,_0x63daf;if(!_0x3d18cd||_0x3d18cd['segmentId'])return!0x1;let _0x1c3e37=_0x3d7d83['get'](_0x12db6d)['getUnit'](_0x3d18cd[_0x5528ca(0x130)],_0x4a54fc[_0x5528ca(0x18d)]),_0x58b7c9=_0x1c3e37==null?void 0x0:_0x1c3e37['getSnapshot'](),{offset:_0x518091}=_0x3d18cd;if(!O(_0x58b7c9,_0x518091))return!0x1;let _0x35b502=k(_0x58b7c9,_0x3d18cd,_0x14f938);if(_0x35b502===!0x1)return!0x1;let _0x2f3e52=_0x3d18cd[_0x5528ca(0x152)]??_0x1814f7(0xc);if((_0x1125b1=_0x58b7c9['notes'])!=null&&_0x1125b1[_0x2f3e52]||(_0x1bfa4a=_0x58b7c9[_0x5528ca(0x142)])!=null&&_0x1bfa4a[_0x2f3e52]||(_0x63daf=_0x58b7c9['footers'])!=null&&_0x63daf[_0x2f3e52])return!0x1;let _0x57fd68=_0x1cd3f7[_0x5528ca(0x18c)]({'type':_0x14f938,'noteId':_0x2f3e52,'body':_0x3d18cd[_0x5528ca(0x171)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x3054c1(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x409e31(new Set()),'startIndex':0x1}]},'customMark':_0x3d18cd[_0x5528ca(0x156)],'referenceTextStyle':_0x3d18cd['referenceTextStyle'],'tableSource':_0x3d18cd[_0x5528ca(0x16f)],'drawings':_0x3d18cd[_0x5528ca(0x191)],'drawingsOrder':_0x3d18cd[_0x5528ca(0x157)],'lists':_0x3d18cd[_0x5528ca(0x16c)]});if(_0x143f52({'notes':{[_0x2f3e52]:_0x57fd68}})['length']>0x0)return!0x1;let _0x4ec5fa=new _0x39af67();_0x518091>0x0&&_0x4ec5fa['retain'](_0x518091),_0x4ec5fa[_0x5528ca(0x137)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x14f938==='footnote'?_0x49b982[_0x5528ca(0x154)]:_0x49b982[_0x5528ca(0x133)],'rangeId':_0x1814f7(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x2f3e52}}]});let _0xb1eba3=_0x2cfd8b[_0x5528ca(0x192)](),_0x3d7495=_0x58b7c9[_0x5528ca(0x13d)]==null?_0xb1eba3[_0x5528ca(0x184)]([_0x5528ca(0x13d)],{[_0x2f3e52]:_0x57fd68}):_0xb1eba3[_0x5528ca(0x184)](['notes',_0x2f3e52],_0x57fd68);return!!_0x3d7d83[_0x5528ca(0x183)](_0x18cdca)[_0x5528ca(0x15f)](_0x3285cd['id'],{'unitId':_0x3d18cd[_0x5528ca(0x130)],'segmentId':'','historyAction':'insert-'+_0x14f938,'actions':_0x2cfd8b[_0x5528ca(0x176)](_0x2cfd8b[_0x5528ca(0x176)](_0x35b502,_0x3d7495),_0xb1eba3[_0x5528ca(0x15b)](_0x4ec5fa['serialize'](),['body'])),'textRanges':[{'segmentId':_0x2f3e52,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x2a84c6,_0x5a05b9,_0x50ee1c){const _0x41a95e=_0x25508f;var _0x4fc2c4,_0xb2beba;if(!_0x5a05b9)return!0x1;let _0x5f0d67=_0x2a84c6[_0x41a95e(0x183)](_0x12db6d)[_0x41a95e(0x13e)](_0x5a05b9['unitId'],_0x4a54fc['UNIVER_DOC']),_0x1147f3=_0x5f0d67==null?void 0x0:_0x5f0d67[_0x41a95e(0x16a)](),_0x268cdc=_0x1147f3==null||(_0x4fc2c4=_0x1147f3['notes'])==null?void 0x0:_0x4fc2c4[_0x5a05b9[_0x41a95e(0x152)]],_0x234191=_0x1147f3==null||(_0xb2beba=_0x1147f3[_0x41a95e(0x171)])==null||(_0xb2beba=_0xb2beba['customRanges'])==null?void 0x0:_0xb2beba[_0x41a95e(0x182)](_0x36a9be=>{const _0x46bc34=_0x41a95e;var _0x38b11a;return(_0x36a9be['rangeType']===_0x49b982[_0x46bc34(0x154)]||_0x36a9be['rangeType']===_0x49b982['ENDNOTE'])&&((_0x38b11a=_0x36a9be[_0x46bc34(0x14e)])==null?void 0x0:_0x38b11a['noteId'])===_0x5a05b9[_0x46bc34(0x152)];});if(!_0x1147f3||_0x1147f3[_0x41a95e(0x144)][_0x41a95e(0x15a)]!==_0x5ecc88['TRADITIONAL']||!_0x268cdc||_0x268cdc[_0x41a95e(0x164)]!==_0x50ee1c||!_0x234191)return!0x1;let _0x13ce7e=new _0x39af67();_0x234191[_0x41a95e(0x14c)]>0x0&&_0x13ce7e[_0x41a95e(0x149)](_0x234191[_0x41a95e(0x14c)]),_0x13ce7e['delete'](0x1);let _0x4dbb05=_0x2cfd8b['getInstance']();return!!_0x2a84c6['get'](_0x18cdca)['syncExecuteCommand'](_0x3285cd['id'],{'unitId':_0x5a05b9['unitId'],'segmentId':'','historyAction':_0x41a95e(0x172)+_0x50ee1c,'actions':_0x2cfd8b[_0x41a95e(0x176)](_0x4dbb05['editOp'](_0x13ce7e['serialize'](),[_0x41a95e(0x171)]),_0x4dbb05['removeOp']([_0x41a95e(0x13d),_0x5a05b9['noteId']],_0x268cdc)),'textRanges':[{'startOffset':_0x234191[_0x41a95e(0x14c)],'endOffset':_0x234191['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':'doc.command.insert-footnote','type':_0x2a3bc0['COMMAND'],'handler':(_0x655d42,_0x4101d0)=>A(_0x655d42,_0x4101d0,_0x25508f(0x17b))},N={'id':'doc.command.delete-footnote','type':_0x2a3bc0['COMMAND'],'handler':(_0xbe3922,_0x521223)=>j(_0xbe3922,_0x521223,_0x25508f(0x17b))},P={'id':_0x25508f(0x14d),'type':_0x2a3bc0['COMMAND'],'handler':(_0x2ff7e5,_0x13b6b1)=>A(_0x2ff7e5,_0x13b6b1,_0x25508f(0x173))},F={'id':_0x25508f(0x16d),'type':_0x2a3bc0['COMMAND'],'handler':(_0x2c3fb6,_0x3c5398)=>j(_0x2c3fb6,_0x3c5398,'endnote')};var I=_0x25508f(0x17d),L=_0x25508f(0x190);const R={};function z(_0x40c78b,_0x26b9e8){return function(_0x1c385f,_0x57a53e){_0x26b9e8(_0x1c385f,_0x57a53e,_0x40c78b);};}function B(_0x112fbf,_0x5c0df3,_0x5738e5,_0x4ce0d5){const _0x46adc8=_0x25508f;var _0x1a84c6=arguments[_0x46adc8(0x161)],_0x58c298=_0x1a84c6<0x3?_0x5c0df3:_0x4ce0d5===null?_0x4ce0d5=Object['getOwnPropertyDescriptor'](_0x5c0df3,_0x5738e5):_0x4ce0d5,_0x549c67;if(typeof Reflect==_0x46adc8(0x13c)&&typeof Reflect[_0x46adc8(0x13b)]==_0x46adc8(0x131))_0x58c298=Reflect['decorate'](_0x112fbf,_0x5c0df3,_0x5738e5,_0x4ce0d5);else{for(var _0x298495=_0x112fbf['length']-0x1;_0x298495>=0x0;_0x298495--)(_0x549c67=_0x112fbf[_0x298495])&&(_0x58c298=(_0x1a84c6<0x3?_0x549c67(_0x58c298):_0x1a84c6>0x3?_0x549c67(_0x5c0df3,_0x5738e5,_0x58c298):_0x549c67(_0x5c0df3,_0x5738e5))||_0x58c298);}return _0x1a84c6>0x3&&_0x58c298&&Object['defineProperty'](_0x5c0df3,_0x5738e5,_0x58c298),_0x58c298;}function V(_0xce29c9){'@babel/helpers - typeof';const _0x100c0c=_0x25508f;return V=typeof Symbol==_0x100c0c(0x131)&&typeof Symbol[_0x100c0c(0x159)]=='symbol'?function(_0x15be76){return typeof _0x15be76;}:function(_0x38f5af){const _0x57a755=_0x100c0c;return _0x38f5af&&typeof Symbol==_0x57a755(0x131)&&_0x38f5af[_0x57a755(0x147)]===Symbol&&_0x38f5af!==Symbol[_0x57a755(0x16b)]?'symbol':typeof _0x38f5af;},V(_0xce29c9);}function H(_0xade809,_0x2d177b){const _0x259a9f=_0x25508f;if(V(_0xade809)!=_0x259a9f(0x13c)||!_0xade809)return _0xade809;var _0x3ba756=_0xade809[Symbol[_0x259a9f(0x12f)]];if(_0x3ba756!==void 0x0){var _0x2d1a58=_0x3ba756[_0x259a9f(0x166)](_0xade809,_0x2d177b||_0x259a9f(0x158));if(V(_0x2d1a58)!=_0x259a9f(0x13c))return _0x2d1a58;throw TypeError(_0x259a9f(0x17e));}return(_0x2d177b===_0x259a9f(0x169)?String:Number)(_0xade809);}function U(_0x46ee80){const _0x666052=_0x25508f;var _0x2890fb=H(_0x46ee80,'string');return V(_0x2890fb)==_0x666052(0x138)?_0x2890fb:_0x2890fb+'';}function W(_0x13afca,_0x12f378,_0x453dbb){const _0x5ae821=_0x25508f;return(_0x12f378=U(_0x12f378))in _0x13afca?Object[_0x5ae821(0x14f)](_0x13afca,_0x12f378,{'value':_0x453dbb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x13afca[_0x12f378]=_0x453dbb,_0x13afca;}let G=class extends _0x121c9b{constructor(_0x190e00=R,_0x1d05d5,_0x40ec33,_0x37b2e0){const _0x57da56=_0x25508f;super(),this[_0x57da56(0x14a)]=_0x190e00,this[_0x57da56(0x187)]=_0x1d05d5,this['_configService']=_0x40ec33,this[_0x57da56(0x193)]=_0x37b2e0;let {..._0x459606}=_0x1b6b58({},R,this['_config']);this[_0x57da56(0x12e)][_0x57da56(0x150)](_0x57da56(0x163),_0x459606);}[_0x25508f(0x15e)](){const _0x362ccd=_0x25508f;[M,N,E,P,F,D][_0x362ccd(0x185)](_0x594200=>this['disposeWithMe'](this[_0x362ccd(0x193)][_0x362ccd(0x167)](_0x594200)));}};W(G,_0x25508f(0x12a),_0x25508f(0x148)),W(G,_0x25508f(0x160),I),W(G,_0x25508f(0x15c),L),W(G,_0x25508f(0x164),_0x4a54fc[_0x25508f(0x18d)]),G=B([_0x69f6bf(_0x5d0fd1,_0x4a0936),z(0x1,_0x41bfce(_0xb9be7d)),z(0x2,_0x34fb3d),z(0x3,_0x18cdca)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37e962=_0x5161;(function(_0x33d380,_0x484159){const _0x274462=_0x5161,_0x5e1dbc=_0x33d380();while(!![]){try{const _0x4935dd=parseInt(_0x274462(0x8e))/0x1+-parseInt(_0x274462(0xaa))/0x2+-parseInt(_0x274462(0xa0))/0x3*(-parseInt(_0x274462(0x9d))/0x4)+-parseInt(_0x274462(0x92))/0x5+-parseInt(_0x274462(0x8d))/0x6*(parseInt(_0x274462(0xb0))/0x7)+parseInt(_0x274462(0xa6))/0x8*(parseInt(_0x274462(0x8c))/0x9)+parseInt(_0x274462(0x93))/0xa*(-parseInt(_0x274462(0x8b))/0xb);if(_0x4935dd===_0x484159)break;else _0x5e1dbc['push'](_0x5e1dbc['shift']());}catch(_0x113845){_0x5e1dbc['push'](_0x5e1dbc['shift']());}}}(_0x3863,0xbe05a));function _0x5161(_0x3f9de0,_0x2e61d2){_0x3f9de0=_0x3f9de0-0x8a;const _0x386332=_0x3863();let _0x516179=_0x386332[_0x3f9de0];return _0x516179;}import{DeleteDocumentEndnoteCommand as _0x2cda8f,DeleteDocumentFootnoteCommand as _0x5728dd,InsertDocumentEndnoteCommand as _0x232f14,InsertDocumentFootnoteCommand as _0x5a2e9b,SetDocumentEndnoteSettingsCommand as _0x31dece,SetDocumentFootnoteSettingsCommand as _0x5ba9fa}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x89995f,ICommandService as _0xd46d51,Tools as _0x1be988,generateRandomId as _0x2c54ed}from'@univerjs/core';import{FDocument as _0x56dd94}from'@univerjs/docs/facade';var d=class extends _0x56dd94{[_0x37e962(0xa2)](_0x30fc17,_0x26faa6={}){const _0x49b3b2=_0x37e962;let _0x2a3afa=_0x2c54ed(0xc);return this['_injector'][_0x49b3b2(0x90)](_0xd46d51)[_0x49b3b2(0x9e)](_0x5a2e9b['id'],{..._0x26faa6,'unitId':this['id'],'offset':_0x30fc17,'noteId':_0x2a3afa})?_0x2a3afa:null;}[_0x37e962(0xa3)](){const _0x2fd434=_0x37e962;var _0x22a448;let _0x1be5b5=this['getDocumentDataModel']()['getSnapshot']();return(((_0x22a448=_0x1be5b5[_0x2fd434(0xb4)])==null?void 0x0:_0x22a448['customRanges'])??[])[_0x2fd434(0xac)](_0x21ebdd=>_0x21ebdd[_0x2fd434(0xa9)]===_0x89995f[_0x2fd434(0x9a)])[_0x2fd434(0xa4)]((_0xddd5e0,_0x1b2763)=>_0xddd5e0[_0x2fd434(0xad)]-_0x1b2763[_0x2fd434(0xad)])['flatMap'](_0xab0a91=>{const _0x4b71a2=_0x2fd434;var _0x23f69f,_0x554b7a;let _0x2ca75f=(_0x23f69f=_0xab0a91[_0x4b71a2(0xb3)])==null?void 0x0:_0x23f69f[_0x4b71a2(0x8f)],_0xb821dd=typeof _0x2ca75f=='string'?(_0x554b7a=_0x1be5b5[_0x4b71a2(0x8a)])==null?void 0x0:_0x554b7a[_0x2ca75f]:void 0x0;return _0xb821dd?[_0x1be988[_0x4b71a2(0xa5)](_0xb821dd)]:[];});}[_0x37e962(0xaf)](_0x2b0e91){const _0x29937e=_0x37e962;return this[_0x29937e(0x9c)][_0x29937e(0x90)](_0xd46d51)['syncExecuteCommand'](_0x5728dd['id'],{'unitId':this['id'],'noteId':_0x2b0e91});}[_0x37e962(0xa8)](_0x33d6c9){const _0x3fabec=_0x37e962;var _0x383cbb,_0x13ad45;let _0x4a7bda=this[_0x3fabec(0xb2)]()[_0x3fabec(0x95)](),_0x2a52f8=_0x33d6c9==null?(_0x383cbb=_0x4a7bda[_0x3fabec(0x91)])==null?void 0x0:_0x383cbb['footnote']:(_0x13ad45=_0x4a7bda[_0x3fabec(0xb4)])==null||(_0x13ad45=_0x13ad45['sectionBreaks'])==null||(_0x13ad45=_0x13ad45[_0x3fabec(0x96)](_0x567e4d=>_0x567e4d[_0x3fabec(0x94)]===_0x33d6c9))==null||(_0x13ad45=_0x13ad45[_0x3fabec(0xae)])==null?void 0x0:_0x13ad45['footnote'];return _0x2a52f8==null?void 0x0:_0x1be988[_0x3fabec(0xa5)](_0x2a52f8);}[_0x37e962(0x9f)](_0x57c154,_0x9f89f1){const _0x105274=_0x37e962;return this[_0x105274(0x9c)][_0x105274(0x90)](_0xd46d51)['syncExecuteCommand'](_0x5ba9fa['id'],{'unitId':this['id'],'settings':_0x57c154,'sectionId':_0x9f89f1});}[_0x37e962(0xa7)](_0x437d6e,_0x1851e9={}){const _0x4f395d=_0x37e962;let _0x4dbedc=_0x2c54ed(0xc);return this[_0x4f395d(0x9c)][_0x4f395d(0x90)](_0xd46d51)[_0x4f395d(0x9e)](_0x232f14['id'],{..._0x1851e9,'unitId':this['id'],'offset':_0x437d6e,'noteId':_0x4dbedc})?_0x4dbedc:null;}[_0x37e962(0xa1)](){const _0x376fcf=_0x37e962;var _0x34fb54;let _0x27bd7d=this['getDocumentDataModel']()[_0x376fcf(0x95)]();return(((_0x34fb54=_0x27bd7d[_0x376fcf(0xb4)])==null?void 0x0:_0x34fb54['customRanges'])??[])[_0x376fcf(0xac)](_0x4713d2=>_0x4713d2[_0x376fcf(0xa9)]===_0x89995f[_0x376fcf(0x98)])[_0x376fcf(0xa4)]((_0x414e2d,_0x3f8e19)=>_0x414e2d[_0x376fcf(0xad)]-_0x3f8e19['startIndex'])[_0x376fcf(0xb1)](_0x12c4f7=>{const _0x4eef8a=_0x376fcf;var _0x4ae396,_0x4ed955;let _0x3cffdd=(_0x4ae396=_0x12c4f7[_0x4eef8a(0xb3)])==null?void 0x0:_0x4ae396['noteId'],_0x28ba2a=typeof _0x3cffdd=='string'?(_0x4ed955=_0x27bd7d[_0x4eef8a(0x8a)])==null?void 0x0:_0x4ed955[_0x3cffdd]:void 0x0;return _0x28ba2a?[_0x1be988[_0x4eef8a(0xa5)](_0x28ba2a)]:[];});}['deleteEndnote'](_0x449545){const _0x1c1cdc=_0x37e962;return this[_0x1c1cdc(0x9c)]['get'](_0xd46d51)[_0x1c1cdc(0x9e)](_0x2cda8f['id'],{'unitId':this['id'],'noteId':_0x449545});}[_0x37e962(0x97)](_0x2bdb10){const _0xc75320=_0x37e962;var _0x11367f,_0x946f0d;let _0x3d768a=this['getDocumentDataModel']()[_0xc75320(0x95)](),_0x4f9f0e=_0x2bdb10==null?(_0x11367f=_0x3d768a[_0xc75320(0x91)])==null?void 0x0:_0x11367f[_0xc75320(0x99)]:(_0x946f0d=_0x3d768a[_0xc75320(0xb4)])==null||(_0x946f0d=_0x946f0d['sectionBreaks'])==null||(_0x946f0d=_0x946f0d['find'](_0x15d503=>_0x15d503[_0xc75320(0x94)]===_0x2bdb10))==null||(_0x946f0d=_0x946f0d[_0xc75320(0xae)])==null?void 0x0:_0x946f0d[_0xc75320(0x99)];return _0x4f9f0e==null?void 0x0:_0x1be988[_0xc75320(0xa5)](_0x4f9f0e);}[_0x37e962(0x9b)](_0x5a9193,_0x2cdca0){const _0x522fec=_0x37e962;return this[_0x522fec(0x9c)]['get'](_0xd46d51)[_0x522fec(0x9e)](_0x31dece['id'],{'unitId':this['id'],'settings':_0x5a9193,'sectionId':_0x2cdca0});}};function _0x3863(){const _0x1f0a72=['getSnapshot','find','getEndnoteSettings','ENDNOTE','endnote','FOOTNOTE','setEndnoteSettings','_injector','5797460Supgry','syncExecuteCommand','setFootnoteSettings','3GCuoLg','getEndnotes','insertFootnote','getFootnotes','sort','deepClone','4101240VjSflA','insertEndnote','getFootnoteSettings','rangeType','2603296ZuXPMp','extend','filter','startIndex','noteProperties','deleteFootnote','490EjUTVi','flatMap','getDocumentDataModel','properties','body','notes','8839523mCQLyS','18YEyiyv','50382JAIKaN','1309522yNbeCa','noteId','get','noteSettings','1564180jWfCHY','10ApAzTG','sectionId'];_0x3863=function(){return _0x1f0a72;};return _0x3863();}_0x56dd94[_0x37e962(0xab)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4600df=_0x3539;(function(_0x413eed,_0x5ab849){const _0x341caf=_0x3539,_0x298b0a=_0x413eed();while(!![]){try{const _0x13434b=parseInt(_0x341caf(0x20f))/0x1*(-parseInt(_0x341caf(0x208))/0x2)+-parseInt(_0x341caf(0x1cd))/0x3*(-parseInt(_0x341caf(0x1c5))/0x4)+-parseInt(_0x341caf(0x1f7))/0x5+parseInt(_0x341caf(0x1d9))/0x6*(-parseInt(_0x341caf(0x1c9))/0x7)+parseInt(_0x341caf(0x1f0))/0x8+parseInt(_0x341caf(0x1c2))/0x9*(parseInt(_0x341caf(0x216))/0xa)+parseInt(_0x341caf(0x1ec))/0xb*(parseInt(_0x341caf(0x202))/0xc);if(_0x13434b===_0x5ab849)break;else _0x298b0a['push'](_0x298b0a['shift']());}catch(_0x4ddd19){_0x298b0a['push'](_0x298b0a['shift']());}}}(_0x4763,0x67ea3));import{CommandType as _0x2beccf,CustomRangeType as _0x1f509c,DependentOn as _0x126d9d,DocumentFlavor as _0x25b4a1,ICommandService as _0xbc5180,IConfigService as _0x19a8fd,IUniverInstanceService as _0x28d7f0,Inject as _0x4b5c4b,Injector as _0x38617d,JSONX as _0x4f86a5,Plugin as _0x26c983,TextX as _0x7c13a3,Tools as _0x1ea835,UniverInstanceType as _0x45c27a,createParagraphId as _0x57afb1,createSectionId as _0x4111f5,generateRandomId as _0x31c553,merge as _0x50c30f,validateDocBodyStructure as _0x35465e,validateDocumentStructure as _0x3dd22b}from'@univerjs/core';import{RichTextEditingMutation as _0x2b017e,UniverDocsPlugin as _0x1bad7e}from'@univerjs/docs';import{UniverLicensePlugin as _0x1111a2}from'@univerjs-pro/license';function C(_0x33e3bd,_0x32f7ab,_0x3849bc){const _0x905eb0=_0x3539;if(_0x33e3bd[_0x905eb0(0x1ff)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x20a),_0x905eb0(0x1ae)]:[_0x905eb0(0x21a),_0x905eb0(0x1fd)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ff)])||_0x33e3bd[_0x905eb0(0x1ab)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x1e7),_0x905eb0(0x1f5),_0x905eb0(0x210)]:[_0x905eb0(0x1e7),_0x905eb0(0x1f5)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ab)])||_0x33e3bd[_0x905eb0(0x1cb)]!=null&&(!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1cb)])||_0x33e3bd[_0x905eb0(0x1cb)]<0x1)||_0x905eb0(0x1bc)in _0x33e3bd&&_0x33e3bd[_0x905eb0(0x1bc)]!=null&&(_0x32f7ab!=='footnote'||!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1bc)])||_0x33e3bd[_0x905eb0(0x1bc)]<0x0||_0x33e3bd['columnCount']>0x4)||_0x33e3bd[_0x905eb0(0x218)]!=null&&(typeof _0x33e3bd['numberFormat']!='string'||_0x33e3bd[_0x905eb0(0x218)]['length']===0x0))return!0x1;for(let _0x328c56 of[_0x33e3bd[_0x905eb0(0x1b1)],_0x33e3bd[_0x905eb0(0x1f8)],_0x33e3bd['continuationNotice']])if(_0x328c56!=null&&(_0x3849bc!=null||_0x35465e(_0x328c56)[_0x905eb0(0x1e9)]>0x0))return!0x1;return!0x0;}function w(_0x14e80d,_0x5ba25c,_0x55fdfe){const _0x55ce38=_0x3539;var _0x5b4fa3,_0x1e3646;if(_0x5ba25c[_0x55ce38(0x1ba)]!=null&&!C(_0x5ba25c[_0x55ce38(0x1ba)],_0x55fdfe,_0x5ba25c[_0x55ce38(0x1af)]))return!0x1;let _0x10c278=((_0x5b4fa3=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x5b4fa3=_0x5b4fa3[_0x55ce38(0x1bd)])==null?void 0x0:_0x5b4fa3[_0x55ce38(0x1c6)](_0x119f1e=>_0x119f1e[_0x55ce38(0x1af)]===_0x5ba25c[_0x55ce38(0x1af)]))??-0x1;if(_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x10c278<0x0)return!0x1;let _0x4e55ea=_0x5ba25c[_0x55ce38(0x1af)]==null?_0x14e80d[_0x55ce38(0x1dc)]:(_0x1e3646=_0x14e80d['body'])==null||(_0x1e3646=_0x1e3646[_0x55ce38(0x1bd)])==null?void 0x0:_0x1e3646[_0x10c278]['noteProperties'],_0x5eee19=_0x5ba25c[_0x55ce38(0x1ba)]==null?void 0x0:_0x1ea835['deepClone'](_0x5ba25c['settings']),_0x3e6177=_0x5ba25c[_0x55ce38(0x1af)]==null?['noteSettings']:['body',_0x55ce38(0x1bd),_0x10c278,_0x55ce38(0x1cf)],_0x49ce7a=_0x4f86a5[_0x55ce38(0x1f9)](),_0x37e190=null;if(_0x1ea835['diffValue'](_0x4e55ea==null?void 0x0:_0x4e55ea[_0x55fdfe],_0x5eee19)||(_0x37e190=_0x4e55ea==null?_0x49ce7a[_0x55ce38(0x1d1)](_0x3e6177,{[_0x55fdfe]:_0x5eee19}):_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x5eee19==null&&Object[_0x55ce38(0x215)](_0x4e55ea)[_0x55ce38(0x205)](_0x27fe98=>_0x27fe98===_0x55fdfe)?_0x49ce7a[_0x55ce38(0x1e2)](_0x3e6177,_0x4e55ea):_0x49ce7a[_0x55ce38(0x1e4)]([..._0x3e6177,_0x55fdfe],_0x4e55ea[_0x55fdfe],_0x5eee19)),_0x5ba25c['suppressEndnotes']!=null){var _0x26653;if(_0x55fdfe!==_0x55ce38(0x1f4)||_0x5ba25c['sectionId']==null||typeof _0x5ba25c[_0x55ce38(0x201)]!=_0x55ce38(0x1d4))return!0x1;let _0x7bb256=(_0x26653=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x26653=_0x26653[_0x55ce38(0x1bd)])==null?void 0x0:_0x26653[_0x10c278][_0x55ce38(0x201)];_0x7bb256!==_0x5ba25c['suppressEndnotes']&&(_0x37e190=_0x4f86a5[_0x55ce38(0x1d2)](_0x37e190,_0x49ce7a[_0x55ce38(0x1e4)]([_0x55ce38(0x1b5),'sectionBreaks',_0x10c278,_0x55ce38(0x201)],_0x7bb256,_0x5ba25c[_0x55ce38(0x201)])));}return _0x37e190;}function T(_0x4009fa,_0x165f31,_0x51196c){const _0x1c643e=_0x3539;if(!_0x165f31)return!0x1;let _0x39184d=_0x4009fa[_0x1c643e(0x1fc)](_0x28d7f0)['getUnit'](_0x165f31[_0x1c643e(0x1df)],_0x45c27a[_0x1c643e(0x1c8)]),_0x258926=_0x39184d==null?void 0x0:_0x39184d['getSnapshot']();if(!_0x258926||_0x258926[_0x1c643e(0x1f6)][_0x1c643e(0x1d7)]!==_0x25b4a1[_0x1c643e(0x214)])return!0x1;let _0x1b59cf=w(_0x258926,_0x165f31,_0x51196c);return _0x1b59cf===!0x1||_0x4f86a5[_0x1c643e(0x1ea)](_0x1b59cf)?!0x1:!!_0x4009fa['get'](_0xbc5180)[_0x1c643e(0x1d3)](_0x2b017e['id'],{'unitId':_0x165f31['unitId'],'segmentId':'','historyAction':_0x1c643e(0x212)+_0x51196c+_0x1c643e(0x1b9),'actions':_0x1b59cf,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x510078,_0x44f459)=>T(_0x510078,_0x44f459,'footnote')},D={'id':'doc.command.set-endnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x49e484,_0x10e07f)=>T(_0x49e484,_0x10e07f,'endnote')};function O(_0x3b0436,_0x57ee53){const _0x575243=_0x4600df;return(_0x3b0436==null?void 0x0:_0x3b0436[_0x575243(0x1f6)][_0x575243(0x1d7)])===_0x25b4a1['TRADITIONAL']&&!!_0x3b0436[_0x575243(0x1b5)]&&Number[_0x575243(0x1dd)](_0x57ee53)&&_0x57ee53>=0x0&&_0x57ee53<_0x3b0436[_0x575243(0x1b5)][_0x575243(0x1c7)][_0x575243(0x1e9)]-0x1;}function k(_0x2ec1d8,_0x272edc,_0x55f525){const _0xac4721=_0x4600df;var _0x169563,_0x1c06bd;if(_0x272edc[_0xac4721(0x1ba)]===void 0x0&&_0x272edc['suppressEndnotes']===void 0x0)return null;let _0x3690dc=_0x272edc[_0xac4721(0x1af)]==null?(_0x169563=_0x2ec1d8[_0xac4721(0x1dc)])==null?void 0x0:_0x169563[_0x55f525]:(_0x1c06bd=_0x2ec1d8['body'])==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1bd)])==null||(_0x1c06bd=_0x1c06bd['find'](_0x23842c=>_0x23842c[_0xac4721(0x1af)]===_0x272edc['sectionId']))==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1cf)])==null?void 0x0:_0x1c06bd[_0x55f525];return w(_0x2ec1d8,{'settings':_0x272edc[_0xac4721(0x1ba)]===void 0x0?_0x3690dc??null:_0x272edc[_0xac4721(0x1ba)],'sectionId':_0x272edc['sectionId'],'suppressEndnotes':_0x272edc[_0xac4721(0x201)]},_0x55f525);}function A(_0x515098,_0x3f38d2,_0x4b3921){const _0x3f0d98=_0x4600df;var _0x22976a,_0x3ae86a,_0x5cf51c;if(!_0x3f38d2||_0x3f38d2['segmentId'])return!0x1;let _0x5eda21=_0x515098[_0x3f0d98(0x1fc)](_0x28d7f0)['getUnit'](_0x3f38d2['unitId'],_0x45c27a[_0x3f0d98(0x1c8)]),_0x329c5a=_0x5eda21==null?void 0x0:_0x5eda21[_0x3f0d98(0x1b7)](),{offset:_0x29dcbf}=_0x3f38d2;if(!O(_0x329c5a,_0x29dcbf))return!0x1;let _0x1fef75=k(_0x329c5a,_0x3f38d2,_0x4b3921);if(_0x1fef75===!0x1)return!0x1;let _0x415c01=_0x3f38d2[_0x3f0d98(0x1ed)]??_0x31c553(0xc);if((_0x22976a=_0x329c5a[_0x3f0d98(0x1bf)])!=null&&_0x22976a[_0x415c01]||(_0x3ae86a=_0x329c5a['headers'])!=null&&_0x3ae86a[_0x415c01]||(_0x5cf51c=_0x329c5a[_0x3f0d98(0x1cc)])!=null&&_0x5cf51c[_0x415c01])return!0x1;let _0x55959a=_0x1ea835[_0x3f0d98(0x1e0)]({'type':_0x4b3921,'noteId':_0x415c01,'body':_0x3f38d2[_0x3f0d98(0x1b5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x57afb1(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x4111f5(new Set()),'startIndex':0x1}]},'customMark':_0x3f38d2['customMark'],'referenceTextStyle':_0x3f38d2[_0x3f0d98(0x1c3)],'tableSource':_0x3f38d2[_0x3f0d98(0x206)],'drawings':_0x3f38d2['drawings'],'drawingsOrder':_0x3f38d2['drawingsOrder'],'lists':_0x3f38d2[_0x3f0d98(0x1d0)]});if(_0x3dd22b({'notes':{[_0x415c01]:_0x55959a}})[_0x3f0d98(0x1e9)]>0x0)return!0x1;let _0x48c68f=new _0x7c13a3();_0x29dcbf>0x0&&_0x48c68f[_0x3f0d98(0x1b3)](_0x29dcbf),_0x48c68f[_0x3f0d98(0x200)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x4b3921===_0x3f0d98(0x1ad)?_0x1f509c[_0x3f0d98(0x1ce)]:_0x1f509c['ENDNOTE'],'rangeId':_0x31c553(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x415c01}}]});let _0x4872a4=_0x4f86a5['getInstance'](),_0x2c37ec=_0x329c5a['notes']==null?_0x4872a4[_0x3f0d98(0x1d1)]([_0x3f0d98(0x1bf)],{[_0x415c01]:_0x55959a}):_0x4872a4[_0x3f0d98(0x1d1)](['notes',_0x415c01],_0x55959a);return!!_0x515098[_0x3f0d98(0x1fc)](_0xbc5180)[_0x3f0d98(0x1d3)](_0x2b017e['id'],{'unitId':_0x3f38d2[_0x3f0d98(0x1df)],'segmentId':'','historyAction':_0x3f0d98(0x1b6)+_0x4b3921,'actions':_0x4f86a5['compose'](_0x4f86a5[_0x3f0d98(0x1d2)](_0x1fef75,_0x2c37ec),_0x4872a4[_0x3f0d98(0x1ef)](_0x48c68f[_0x3f0d98(0x1f2)](),[_0x3f0d98(0x1b5)])),'textRanges':[{'segmentId':_0x415c01,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x975d8f,_0x50c57c,_0x46b976){const _0x20d8d9=_0x4600df;var _0x408632,_0xa10cf8;if(!_0x50c57c)return!0x1;let _0x1a6994=_0x975d8f['get'](_0x28d7f0)[_0x20d8d9(0x211)](_0x50c57c[_0x20d8d9(0x1df)],_0x45c27a[_0x20d8d9(0x1c8)]),_0x4b5235=_0x1a6994==null?void 0x0:_0x1a6994[_0x20d8d9(0x1b7)](),_0x4a60f1=_0x4b5235==null||(_0x408632=_0x4b5235[_0x20d8d9(0x1bf)])==null?void 0x0:_0x408632[_0x50c57c[_0x20d8d9(0x1ed)]],_0x522ce6=_0x4b5235==null||(_0xa10cf8=_0x4b5235[_0x20d8d9(0x1b5)])==null||(_0xa10cf8=_0xa10cf8[_0x20d8d9(0x1be)])==null?void 0x0:_0xa10cf8[_0x20d8d9(0x1ee)](_0x3b3029=>{const _0x2d9166=_0x20d8d9;var _0x2c1b3b;return(_0x3b3029['rangeType']===_0x1f509c[_0x2d9166(0x1ce)]||_0x3b3029[_0x2d9166(0x20b)]===_0x1f509c[_0x2d9166(0x1e3)])&&((_0x2c1b3b=_0x3b3029[_0x2d9166(0x1c0)])==null?void 0x0:_0x2c1b3b['noteId'])===_0x50c57c['noteId'];});if(!_0x4b5235||_0x4b5235[_0x20d8d9(0x1f6)][_0x20d8d9(0x1d7)]!==_0x25b4a1[_0x20d8d9(0x214)]||!_0x4a60f1||_0x4a60f1['type']!==_0x46b976||!_0x522ce6)return!0x1;let _0x4c3984=new _0x7c13a3();_0x522ce6['startIndex']>0x0&&_0x4c3984[_0x20d8d9(0x1b3)](_0x522ce6[_0x20d8d9(0x213)]),_0x4c3984[_0x20d8d9(0x1b4)](0x1);let _0x45f4fb=_0x4f86a5[_0x20d8d9(0x1f9)]();return!!_0x975d8f['get'](_0xbc5180)[_0x20d8d9(0x1d3)](_0x2b017e['id'],{'unitId':_0x50c57c[_0x20d8d9(0x1df)],'segmentId':'','historyAction':_0x20d8d9(0x219)+_0x46b976,'actions':_0x4f86a5[_0x20d8d9(0x1d2)](_0x45f4fb[_0x20d8d9(0x1ef)](_0x4c3984[_0x20d8d9(0x1f2)](),[_0x20d8d9(0x1b5)]),_0x45f4fb[_0x20d8d9(0x1e2)]([_0x20d8d9(0x1bf),_0x50c57c[_0x20d8d9(0x1ed)]],_0x4a60f1)),'textRanges':[{'startOffset':_0x522ce6['startIndex'],'endOffset':_0x522ce6[_0x20d8d9(0x213)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x4600df(0x1d6),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x30721f,_0x5e0680)=>A(_0x30721f,_0x5e0680,_0x4600df(0x1ad))},N={'id':_0x4600df(0x20e),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x5c98f8,_0x2d4464)=>j(_0x5c98f8,_0x2d4464,_0x4600df(0x1ad))},P={'id':_0x4600df(0x1d5),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0xfdb615,_0x2eb765)=>A(_0xfdb615,_0x2eb765,_0x4600df(0x1f4))},F={'id':_0x4600df(0x1de),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x10046c,_0x7c3427)=>j(_0x10046c,_0x7c3427,_0x4600df(0x1f4))};function _0x3539(_0xfed6f0,_0x15771d){_0xfed6f0=_0xfed6f0-0x1aa;const _0x4763c3=_0x4763();let _0x35396c=_0x4763c3[_0xfed6f0];return _0x35396c;}var I=_0x4600df(0x1da),L=_0x4600df(0x1c4);const R={};function z(_0x4acdba,_0x4c2d57){return function(_0x366aa1,_0x2f02f3){_0x4c2d57(_0x366aa1,_0x2f02f3,_0x4acdba);};}function B(_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e){const _0x544728=_0x4600df;var _0x3fb182=arguments[_0x544728(0x1e9)],_0x2a8e7f=_0x3fb182<0x3?_0x245561:_0x4e181e===null?_0x4e181e=Object['getOwnPropertyDescriptor'](_0x245561,_0x22bd4d):_0x4e181e,_0x196d1e;if(typeof Reflect==_0x544728(0x1ca)&&typeof Reflect[_0x544728(0x1e1)]==_0x544728(0x1d8))_0x2a8e7f=Reflect['decorate'](_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e);else{for(var _0x3447da=_0x3b3328[_0x544728(0x1e9)]-0x1;_0x3447da>=0x0;_0x3447da--)(_0x196d1e=_0x3b3328[_0x3447da])&&(_0x2a8e7f=(_0x3fb182<0x3?_0x196d1e(_0x2a8e7f):_0x3fb182>0x3?_0x196d1e(_0x245561,_0x22bd4d,_0x2a8e7f):_0x196d1e(_0x245561,_0x22bd4d))||_0x2a8e7f);}return _0x3fb182>0x3&&_0x2a8e7f&&Object[_0x544728(0x1e5)](_0x245561,_0x22bd4d,_0x2a8e7f),_0x2a8e7f;}function V(_0xe7b87e){'@babel/helpers - typeof';const _0x2e8c10=_0x4600df;return V=typeof Symbol=='function'&&typeof Symbol[_0x2e8c10(0x1e6)]==_0x2e8c10(0x1aa)?function(_0x29a605){return typeof _0x29a605;}:function(_0xbf3c23){const _0x43558b=_0x2e8c10;return _0xbf3c23&&typeof Symbol==_0x43558b(0x1d8)&&_0xbf3c23[_0x43558b(0x217)]===Symbol&&_0xbf3c23!==Symbol[_0x43558b(0x209)]?_0x43558b(0x1aa):typeof _0xbf3c23;},V(_0xe7b87e);}function H(_0x1e6791,_0x117acd){const _0x3a8ada=_0x4600df;if(V(_0x1e6791)!='object'||!_0x1e6791)return _0x1e6791;var _0x195df2=_0x1e6791[Symbol[_0x3a8ada(0x1ac)]];if(_0x195df2!==void 0x0){var _0x2ea2bb=_0x195df2['call'](_0x1e6791,_0x117acd||_0x3a8ada(0x1b2));if(V(_0x2ea2bb)!=_0x3a8ada(0x1ca))return _0x2ea2bb;throw TypeError(_0x3a8ada(0x20c));}return(_0x117acd===_0x3a8ada(0x1eb)?String:Number)(_0x1e6791);}function U(_0x287226){const _0x5c9d54=_0x4600df;var _0x5adef8=H(_0x287226,_0x5c9d54(0x1eb));return V(_0x5adef8)=='symbol'?_0x5adef8:_0x5adef8+'';}function W(_0x1972e8,_0x3af945,_0x2a6d37){const _0x4aae17=_0x4600df;return(_0x3af945=U(_0x3af945))in _0x1972e8?Object[_0x4aae17(0x1e5)](_0x1972e8,_0x3af945,{'value':_0x2a6d37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1972e8[_0x3af945]=_0x2a6d37,_0x1972e8;}function _0x4763(){const _0x152904=['eachPage','getUnit','set-','startIndex','TRADITIONAL','keys','22490fUUvqO','constructor','numberFormat','delete-','docEnd','symbol','restart','toPrimitive','footnote','beneathText','sectionId','includes','separator','default','retain','delete','body','insert-','getSnapshot','_configService','-settings','settings','setConfig','columnCount','sectionBreaks','customRanges','notes','properties','packageName','45SHzOiT','referenceTextStyle','1.0.1','52CcznWu','findIndex','dataStream','UNIVER_DOC','333977nlABkg','object','startNumber','footers','193854IEfIBZ','FOOTNOTE','noteProperties','lists','insertOp','compose','syncExecuteCommand','boolean','doc.command.insert-endnote','doc.command.insert-footnote','documentFlavor','function','42LVboyn','@univerjs-pro/docs-reference','_injector','noteSettings','isInteger','doc.command.delete-endnote','unitId','deepClone','decorate','removeOp','ENDNOTE','replaceOp','defineProperty','iterator','continuous','pluginName','length','isNoop','string','118415BMCwtc','noteId','find','editOp','56424WddhYL','_config','serialize','_commandService','endnote','eachSect','documentStyle','260200zhkUof','continuationSeparator','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','COMMAND','get','sectEnd','docs-reference.config','position','insert','suppressEndnotes','840UIRuGH','type','disposeWithMe','every','tableSource','forEach','18610xbmAoU','prototype','pageBottom','rangeType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','doc.command.delete-footnote','86zXxotq'];_0x4763=function(){return _0x152904;};return _0x4763();}let G=class extends _0x26c983{constructor(_0x184b0f=R,_0x27aa9d,_0x3929a9,_0x4cae4b){const _0x17a5c2=_0x4600df;super(),this[_0x17a5c2(0x1f1)]=_0x184b0f,this[_0x17a5c2(0x1db)]=_0x27aa9d,this[_0x17a5c2(0x1b8)]=_0x3929a9,this[_0x17a5c2(0x1f3)]=_0x4cae4b;let {..._0x5269ea}=_0x50c30f({},R,this[_0x17a5c2(0x1f1)]);this[_0x17a5c2(0x1b8)][_0x17a5c2(0x1bb)](_0x17a5c2(0x1fe),_0x5269ea);}[_0x4600df(0x20d)](){const _0x524f9d=_0x4600df;[M,N,E,P,F,D][_0x524f9d(0x207)](_0x19642b=>this[_0x524f9d(0x204)](this[_0x524f9d(0x1f3)]['registerCommand'](_0x19642b)));}};W(G,_0x4600df(0x1e8),_0x4600df(0x1fa)),W(G,_0x4600df(0x1c1),I),W(G,'version',L),W(G,_0x4600df(0x203),_0x45c27a[_0x4600df(0x1c8)]),G=B([_0x126d9d(_0x1111a2,_0x1bad7e),z(0x1,_0x4b5c4b(_0x38617d)),z(0x2,_0x19a8fd),z(0x3,_0xbc5180)],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 _0x25508f=_0x69ad;(function(_0x1e585a,_0x5da94c){const _0x5d0c32=_0x69ad,_0x322812=_0x1e585a();while(!![]){try{const _0x266787=parseInt(_0x5d0c32(0x153))/0x1*(parseInt(_0x5d0c32(0x134))/0x2)+parseInt(_0x5d0c32(0x179))/0x3+parseInt(_0x5d0c32(0x162))/0x4*(-parseInt(_0x5d0c32(0x151))/0x5)+parseInt(_0x5d0c32(0x132))/0x6+parseInt(_0x5d0c32(0x16e))/0x7*(-parseInt(_0x5d0c32(0x140))/0x8)+-parseInt(_0x5d0c32(0x141))/0x9*(-parseInt(_0x5d0c32(0x129))/0xa)+parseInt(_0x5d0c32(0x12d))/0xb*(-parseInt(_0x5d0c32(0x194))/0xc);if(_0x266787===_0x5da94c)break;else _0x322812['push'](_0x322812['shift']());}catch(_0x2e2cc5){_0x322812['push'](_0x322812['shift']());}}}(_0x1d01,0x3470d));import{CommandType as _0x2a3bc0,CustomRangeType as _0x49b982,DependentOn as _0x69f6bf,DocumentFlavor as _0x5ecc88,ICommandService as _0x18cdca,IConfigService as _0x34fb3d,IUniverInstanceService as _0x12db6d,Inject as _0x41bfce,Injector as _0xb9be7d,JSONX as _0x2cfd8b,Plugin as _0x121c9b,TextX as _0x39af67,Tools as _0x1cd3f7,UniverInstanceType as _0x4a54fc,createParagraphId as _0x3054c1,createSectionId as _0x409e31,generateRandomId as _0x1814f7,merge as _0x1b6b58,validateDocBodyStructure as _0x5da210,validateDocumentStructure as _0x143f52}from'@univerjs/core';import{RichTextEditingMutation as _0x3285cd,UniverDocsPlugin as _0x4a0936}from'@univerjs/docs';import{UniverLicensePlugin as _0x5d0fd1}from'@univerjs-pro/license';function _0x1d01(){const _0x34573a=['syncExecuteCommand','packageName','length','256876qlzXqC','docs-reference.config','type','separator','call','registerCommand','pageBottom','string','getSnapshot','prototype','lists','doc.command.delete-endnote','7DOqRNc','tableSource','COMMAND','body','delete-','endnote','sectionId','includes','compose','isInteger','restart','1000398szZXHm','beneathText','footnote','removeOp','@univerjs-pro/docs-reference','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','position','isNoop','eachSect','find','get','insertOp','forEach','noteProperties','_injector','doc.command.set-endnote-settings','startNumber','numberFormat','noteSettings','deepClone','UNIVER_DOC','docEnd','findIndex','1.0.3','drawings','getInstance','_commandService','12gXhbhV','2215650mPzqAn','pluginName','sectionBreaks','replaceOp','2263481pnpCiY','_configService','toPrimitive','unitId','function','52416eZSgVd','ENDNOTE','208902fByOwM','boolean','continuous','insert','symbol','suppressEndnotes','columnCount','decorate','object','notes','getUnit','doc.command.set-footnote-settings','2433016nFZpvg','9GAQWSO','headers','settings','documentStyle','every','continuationSeparator','constructor','UNIVER_DOCS_REFERENCE_PLUGIN','retain','_config','dataStream','startIndex','doc.command.insert-endnote','properties','defineProperty','setConfig','20ctgxGx','noteId','4Lqffdj','FOOTNOTE','diffValue','customMark','drawingsOrder','default','iterator','documentFlavor','editOp','version','eachPage','onStarting'];_0x1d01=function(){return _0x34573a;};return _0x1d01();}function C(_0x2553cf,_0xabaee8,_0x292582){const _0x5a356c=_0x69ad;if(_0x2553cf[_0x5a356c(0x17f)]!=null&&!(_0xabaee8==='footnote'?[_0x5a356c(0x168),_0x5a356c(0x17a)]:[_0x5a356c(0x18e),'sectEnd'])[_0x5a356c(0x175)](_0x2553cf[_0x5a356c(0x17f)])||_0x2553cf[_0x5a356c(0x178)]!=null&&!(_0xabaee8==='footnote'?[_0x5a356c(0x136),_0x5a356c(0x181),_0x5a356c(0x15d)]:['continuous',_0x5a356c(0x181)])[_0x5a356c(0x175)](_0x2553cf[_0x5a356c(0x178)])||_0x2553cf[_0x5a356c(0x189)]!=null&&(!Number['isInteger'](_0x2553cf[_0x5a356c(0x189)])||_0x2553cf['startNumber']<0x1)||_0x5a356c(0x13a)in _0x2553cf&&_0x2553cf[_0x5a356c(0x13a)]!=null&&(_0xabaee8!=='footnote'||!Number[_0x5a356c(0x177)](_0x2553cf[_0x5a356c(0x13a)])||_0x2553cf[_0x5a356c(0x13a)]<0x0||_0x2553cf['columnCount']>0x4)||_0x2553cf[_0x5a356c(0x18a)]!=null&&(typeof _0x2553cf[_0x5a356c(0x18a)]!=_0x5a356c(0x169)||_0x2553cf['numberFormat'][_0x5a356c(0x161)]===0x0))return!0x1;for(let _0x1c2eab of[_0x2553cf[_0x5a356c(0x165)],_0x2553cf[_0x5a356c(0x146)],_0x2553cf['continuationNotice']])if(_0x1c2eab!=null&&(_0x292582!=null||_0x5da210(_0x1c2eab)[_0x5a356c(0x161)]>0x0))return!0x1;return!0x0;}function _0x69ad(_0x241b16,_0x5d3949){_0x241b16=_0x241b16-0x129;const _0x1d0172=_0x1d01();let _0x69ade9=_0x1d0172[_0x241b16];return _0x69ade9;}function w(_0x8fd1a6,_0x318885,_0x40c2a4){const _0xd85e86=_0x69ad;var _0x52cf64,_0x742e27;if(_0x318885['settings']!=null&&!C(_0x318885[_0xd85e86(0x143)],_0x40c2a4,_0x318885[_0xd85e86(0x174)]))return!0x1;let _0x3e59c1=((_0x52cf64=_0x8fd1a6[_0xd85e86(0x171)])==null||(_0x52cf64=_0x52cf64[_0xd85e86(0x12b)])==null?void 0x0:_0x52cf64[_0xd85e86(0x18f)](_0x26b7f6=>_0x26b7f6[_0xd85e86(0x174)]===_0x318885['sectionId']))??-0x1;if(_0x318885[_0xd85e86(0x174)]!=null&&_0x3e59c1<0x0)return!0x1;let _0x3f776c=_0x318885[_0xd85e86(0x174)]==null?_0x8fd1a6[_0xd85e86(0x18b)]:(_0x742e27=_0x8fd1a6[_0xd85e86(0x171)])==null||(_0x742e27=_0x742e27['sectionBreaks'])==null?void 0x0:_0x742e27[_0x3e59c1]['noteProperties'],_0x2014b5=_0x318885[_0xd85e86(0x143)]==null?void 0x0:_0x1cd3f7[_0xd85e86(0x18c)](_0x318885[_0xd85e86(0x143)]),_0x4897b5=_0x318885['sectionId']==null?['noteSettings']:[_0xd85e86(0x171),'sectionBreaks',_0x3e59c1,_0xd85e86(0x186)],_0x522795=_0x2cfd8b['getInstance'](),_0x56ad56=null;if(_0x1cd3f7[_0xd85e86(0x155)](_0x3f776c==null?void 0x0:_0x3f776c[_0x40c2a4],_0x2014b5)||(_0x56ad56=_0x3f776c==null?_0x522795[_0xd85e86(0x184)](_0x4897b5,{[_0x40c2a4]:_0x2014b5}):_0x318885[_0xd85e86(0x174)]!=null&&_0x2014b5==null&&Object['keys'](_0x3f776c)[_0xd85e86(0x145)](_0x2b21e5=>_0x2b21e5===_0x40c2a4)?_0x522795[_0xd85e86(0x17c)](_0x4897b5,_0x3f776c):_0x522795[_0xd85e86(0x12c)]([..._0x4897b5,_0x40c2a4],_0x3f776c[_0x40c2a4],_0x2014b5)),_0x318885[_0xd85e86(0x139)]!=null){var _0x11d461;if(_0x40c2a4!==_0xd85e86(0x173)||_0x318885[_0xd85e86(0x174)]==null||typeof _0x318885[_0xd85e86(0x139)]!=_0xd85e86(0x135))return!0x1;let _0x3dcf4a=(_0x11d461=_0x8fd1a6[_0xd85e86(0x171)])==null||(_0x11d461=_0x11d461[_0xd85e86(0x12b)])==null?void 0x0:_0x11d461[_0x3e59c1]['suppressEndnotes'];_0x3dcf4a!==_0x318885[_0xd85e86(0x139)]&&(_0x56ad56=_0x2cfd8b[_0xd85e86(0x176)](_0x56ad56,_0x522795[_0xd85e86(0x12c)]([_0xd85e86(0x171),'sectionBreaks',_0x3e59c1,_0xd85e86(0x139)],_0x3dcf4a,_0x318885[_0xd85e86(0x139)])));}return _0x56ad56;}function T(_0xba387a,_0x11fa88,_0x2909e2){const _0x50a073=_0x69ad;if(!_0x11fa88)return!0x1;let _0x2cea35=_0xba387a[_0x50a073(0x183)](_0x12db6d)[_0x50a073(0x13e)](_0x11fa88[_0x50a073(0x130)],_0x4a54fc[_0x50a073(0x18d)]),_0x2de04e=_0x2cea35==null?void 0x0:_0x2cea35[_0x50a073(0x16a)]();if(!_0x2de04e||_0x2de04e['documentStyle'][_0x50a073(0x15a)]!==_0x5ecc88['TRADITIONAL'])return!0x1;let _0x3241b7=w(_0x2de04e,_0x11fa88,_0x2909e2);return _0x3241b7===!0x1||_0x2cfd8b[_0x50a073(0x180)](_0x3241b7)?!0x1:!!_0xba387a[_0x50a073(0x183)](_0x18cdca)[_0x50a073(0x15f)](_0x3285cd['id'],{'unitId':_0x11fa88[_0x50a073(0x130)],'segmentId':'','historyAction':'set-'+_0x2909e2+'-settings','actions':_0x3241b7,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x25508f(0x13f),'type':_0x2a3bc0[_0x25508f(0x170)],'handler':(_0x19ee5b,_0x162898)=>T(_0x19ee5b,_0x162898,_0x25508f(0x17b))},D={'id':_0x25508f(0x188),'type':_0x2a3bc0['COMMAND'],'handler':(_0x3eabc2,_0x37d794)=>T(_0x3eabc2,_0x37d794,'endnote')};function O(_0x1a7a30,_0x33a0e0){const _0x4e0f5a=_0x25508f;return(_0x1a7a30==null?void 0x0:_0x1a7a30[_0x4e0f5a(0x144)][_0x4e0f5a(0x15a)])===_0x5ecc88['TRADITIONAL']&&!!_0x1a7a30['body']&&Number[_0x4e0f5a(0x177)](_0x33a0e0)&&_0x33a0e0>=0x0&&_0x33a0e0<_0x1a7a30[_0x4e0f5a(0x171)][_0x4e0f5a(0x14b)]['length']-0x1;}function k(_0x5b36bd,_0x32d5eb,_0x5371ff){const _0x554b30=_0x25508f;var _0x5e96b5,_0x27e264;if(_0x32d5eb[_0x554b30(0x143)]===void 0x0&&_0x32d5eb[_0x554b30(0x139)]===void 0x0)return null;let _0x1927d2=_0x32d5eb[_0x554b30(0x174)]==null?(_0x5e96b5=_0x5b36bd[_0x554b30(0x18b)])==null?void 0x0:_0x5e96b5[_0x5371ff]:(_0x27e264=_0x5b36bd[_0x554b30(0x171)])==null||(_0x27e264=_0x27e264[_0x554b30(0x12b)])==null||(_0x27e264=_0x27e264[_0x554b30(0x182)](_0x5ae622=>_0x5ae622[_0x554b30(0x174)]===_0x32d5eb[_0x554b30(0x174)]))==null||(_0x27e264=_0x27e264[_0x554b30(0x186)])==null?void 0x0:_0x27e264[_0x5371ff];return w(_0x5b36bd,{'settings':_0x32d5eb[_0x554b30(0x143)]===void 0x0?_0x1927d2??null:_0x32d5eb[_0x554b30(0x143)],'sectionId':_0x32d5eb['sectionId'],'suppressEndnotes':_0x32d5eb[_0x554b30(0x139)]},_0x5371ff);}function A(_0x3d7d83,_0x3d18cd,_0x14f938){const _0x5528ca=_0x25508f;var _0x1125b1,_0x1bfa4a,_0x63daf;if(!_0x3d18cd||_0x3d18cd['segmentId'])return!0x1;let _0x1c3e37=_0x3d7d83['get'](_0x12db6d)['getUnit'](_0x3d18cd[_0x5528ca(0x130)],_0x4a54fc[_0x5528ca(0x18d)]),_0x58b7c9=_0x1c3e37==null?void 0x0:_0x1c3e37['getSnapshot'](),{offset:_0x518091}=_0x3d18cd;if(!O(_0x58b7c9,_0x518091))return!0x1;let _0x35b502=k(_0x58b7c9,_0x3d18cd,_0x14f938);if(_0x35b502===!0x1)return!0x1;let _0x2f3e52=_0x3d18cd[_0x5528ca(0x152)]??_0x1814f7(0xc);if((_0x1125b1=_0x58b7c9['notes'])!=null&&_0x1125b1[_0x2f3e52]||(_0x1bfa4a=_0x58b7c9[_0x5528ca(0x142)])!=null&&_0x1bfa4a[_0x2f3e52]||(_0x63daf=_0x58b7c9['footers'])!=null&&_0x63daf[_0x2f3e52])return!0x1;let _0x57fd68=_0x1cd3f7[_0x5528ca(0x18c)]({'type':_0x14f938,'noteId':_0x2f3e52,'body':_0x3d18cd[_0x5528ca(0x171)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x3054c1(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x409e31(new Set()),'startIndex':0x1}]},'customMark':_0x3d18cd[_0x5528ca(0x156)],'referenceTextStyle':_0x3d18cd['referenceTextStyle'],'tableSource':_0x3d18cd[_0x5528ca(0x16f)],'drawings':_0x3d18cd[_0x5528ca(0x191)],'drawingsOrder':_0x3d18cd[_0x5528ca(0x157)],'lists':_0x3d18cd[_0x5528ca(0x16c)]});if(_0x143f52({'notes':{[_0x2f3e52]:_0x57fd68}})['length']>0x0)return!0x1;let _0x4ec5fa=new _0x39af67();_0x518091>0x0&&_0x4ec5fa['retain'](_0x518091),_0x4ec5fa[_0x5528ca(0x137)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x14f938==='footnote'?_0x49b982[_0x5528ca(0x154)]:_0x49b982[_0x5528ca(0x133)],'rangeId':_0x1814f7(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x2f3e52}}]});let _0xb1eba3=_0x2cfd8b[_0x5528ca(0x192)](),_0x3d7495=_0x58b7c9[_0x5528ca(0x13d)]==null?_0xb1eba3[_0x5528ca(0x184)]([_0x5528ca(0x13d)],{[_0x2f3e52]:_0x57fd68}):_0xb1eba3[_0x5528ca(0x184)](['notes',_0x2f3e52],_0x57fd68);return!!_0x3d7d83[_0x5528ca(0x183)](_0x18cdca)[_0x5528ca(0x15f)](_0x3285cd['id'],{'unitId':_0x3d18cd[_0x5528ca(0x130)],'segmentId':'','historyAction':'insert-'+_0x14f938,'actions':_0x2cfd8b[_0x5528ca(0x176)](_0x2cfd8b[_0x5528ca(0x176)](_0x35b502,_0x3d7495),_0xb1eba3[_0x5528ca(0x15b)](_0x4ec5fa['serialize'](),['body'])),'textRanges':[{'segmentId':_0x2f3e52,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x2a84c6,_0x5a05b9,_0x50ee1c){const _0x41a95e=_0x25508f;var _0x4fc2c4,_0xb2beba;if(!_0x5a05b9)return!0x1;let _0x5f0d67=_0x2a84c6[_0x41a95e(0x183)](_0x12db6d)[_0x41a95e(0x13e)](_0x5a05b9['unitId'],_0x4a54fc['UNIVER_DOC']),_0x1147f3=_0x5f0d67==null?void 0x0:_0x5f0d67[_0x41a95e(0x16a)](),_0x268cdc=_0x1147f3==null||(_0x4fc2c4=_0x1147f3['notes'])==null?void 0x0:_0x4fc2c4[_0x5a05b9[_0x41a95e(0x152)]],_0x234191=_0x1147f3==null||(_0xb2beba=_0x1147f3[_0x41a95e(0x171)])==null||(_0xb2beba=_0xb2beba['customRanges'])==null?void 0x0:_0xb2beba[_0x41a95e(0x182)](_0x36a9be=>{const _0x46bc34=_0x41a95e;var _0x38b11a;return(_0x36a9be['rangeType']===_0x49b982[_0x46bc34(0x154)]||_0x36a9be['rangeType']===_0x49b982['ENDNOTE'])&&((_0x38b11a=_0x36a9be[_0x46bc34(0x14e)])==null?void 0x0:_0x38b11a['noteId'])===_0x5a05b9[_0x46bc34(0x152)];});if(!_0x1147f3||_0x1147f3[_0x41a95e(0x144)][_0x41a95e(0x15a)]!==_0x5ecc88['TRADITIONAL']||!_0x268cdc||_0x268cdc[_0x41a95e(0x164)]!==_0x50ee1c||!_0x234191)return!0x1;let _0x13ce7e=new _0x39af67();_0x234191[_0x41a95e(0x14c)]>0x0&&_0x13ce7e[_0x41a95e(0x149)](_0x234191[_0x41a95e(0x14c)]),_0x13ce7e['delete'](0x1);let _0x4dbb05=_0x2cfd8b['getInstance']();return!!_0x2a84c6['get'](_0x18cdca)['syncExecuteCommand'](_0x3285cd['id'],{'unitId':_0x5a05b9['unitId'],'segmentId':'','historyAction':_0x41a95e(0x172)+_0x50ee1c,'actions':_0x2cfd8b[_0x41a95e(0x176)](_0x4dbb05['editOp'](_0x13ce7e['serialize'](),[_0x41a95e(0x171)]),_0x4dbb05['removeOp']([_0x41a95e(0x13d),_0x5a05b9['noteId']],_0x268cdc)),'textRanges':[{'startOffset':_0x234191[_0x41a95e(0x14c)],'endOffset':_0x234191['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':'doc.command.insert-footnote','type':_0x2a3bc0['COMMAND'],'handler':(_0x655d42,_0x4101d0)=>A(_0x655d42,_0x4101d0,_0x25508f(0x17b))},N={'id':'doc.command.delete-footnote','type':_0x2a3bc0['COMMAND'],'handler':(_0xbe3922,_0x521223)=>j(_0xbe3922,_0x521223,_0x25508f(0x17b))},P={'id':_0x25508f(0x14d),'type':_0x2a3bc0['COMMAND'],'handler':(_0x2ff7e5,_0x13b6b1)=>A(_0x2ff7e5,_0x13b6b1,_0x25508f(0x173))},F={'id':_0x25508f(0x16d),'type':_0x2a3bc0['COMMAND'],'handler':(_0x2c3fb6,_0x3c5398)=>j(_0x2c3fb6,_0x3c5398,'endnote')};var I=_0x25508f(0x17d),L=_0x25508f(0x190);const R={};function z(_0x40c78b,_0x26b9e8){return function(_0x1c385f,_0x57a53e){_0x26b9e8(_0x1c385f,_0x57a53e,_0x40c78b);};}function B(_0x112fbf,_0x5c0df3,_0x5738e5,_0x4ce0d5){const _0x46adc8=_0x25508f;var _0x1a84c6=arguments[_0x46adc8(0x161)],_0x58c298=_0x1a84c6<0x3?_0x5c0df3:_0x4ce0d5===null?_0x4ce0d5=Object['getOwnPropertyDescriptor'](_0x5c0df3,_0x5738e5):_0x4ce0d5,_0x549c67;if(typeof Reflect==_0x46adc8(0x13c)&&typeof Reflect[_0x46adc8(0x13b)]==_0x46adc8(0x131))_0x58c298=Reflect['decorate'](_0x112fbf,_0x5c0df3,_0x5738e5,_0x4ce0d5);else{for(var _0x298495=_0x112fbf['length']-0x1;_0x298495>=0x0;_0x298495--)(_0x549c67=_0x112fbf[_0x298495])&&(_0x58c298=(_0x1a84c6<0x3?_0x549c67(_0x58c298):_0x1a84c6>0x3?_0x549c67(_0x5c0df3,_0x5738e5,_0x58c298):_0x549c67(_0x5c0df3,_0x5738e5))||_0x58c298);}return _0x1a84c6>0x3&&_0x58c298&&Object['defineProperty'](_0x5c0df3,_0x5738e5,_0x58c298),_0x58c298;}function V(_0xce29c9){'@babel/helpers - typeof';const _0x100c0c=_0x25508f;return V=typeof Symbol==_0x100c0c(0x131)&&typeof Symbol[_0x100c0c(0x159)]=='symbol'?function(_0x15be76){return typeof _0x15be76;}:function(_0x38f5af){const _0x57a755=_0x100c0c;return _0x38f5af&&typeof Symbol==_0x57a755(0x131)&&_0x38f5af[_0x57a755(0x147)]===Symbol&&_0x38f5af!==Symbol[_0x57a755(0x16b)]?'symbol':typeof _0x38f5af;},V(_0xce29c9);}function H(_0xade809,_0x2d177b){const _0x259a9f=_0x25508f;if(V(_0xade809)!=_0x259a9f(0x13c)||!_0xade809)return _0xade809;var _0x3ba756=_0xade809[Symbol[_0x259a9f(0x12f)]];if(_0x3ba756!==void 0x0){var _0x2d1a58=_0x3ba756[_0x259a9f(0x166)](_0xade809,_0x2d177b||_0x259a9f(0x158));if(V(_0x2d1a58)!=_0x259a9f(0x13c))return _0x2d1a58;throw TypeError(_0x259a9f(0x17e));}return(_0x2d177b===_0x259a9f(0x169)?String:Number)(_0xade809);}function U(_0x46ee80){const _0x666052=_0x25508f;var _0x2890fb=H(_0x46ee80,'string');return V(_0x2890fb)==_0x666052(0x138)?_0x2890fb:_0x2890fb+'';}function W(_0x13afca,_0x12f378,_0x453dbb){const _0x5ae821=_0x25508f;return(_0x12f378=U(_0x12f378))in _0x13afca?Object[_0x5ae821(0x14f)](_0x13afca,_0x12f378,{'value':_0x453dbb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x13afca[_0x12f378]=_0x453dbb,_0x13afca;}let G=class extends _0x121c9b{constructor(_0x190e00=R,_0x1d05d5,_0x40ec33,_0x37b2e0){const _0x57da56=_0x25508f;super(),this[_0x57da56(0x14a)]=_0x190e00,this[_0x57da56(0x187)]=_0x1d05d5,this['_configService']=_0x40ec33,this[_0x57da56(0x193)]=_0x37b2e0;let {..._0x459606}=_0x1b6b58({},R,this['_config']);this[_0x57da56(0x12e)][_0x57da56(0x150)](_0x57da56(0x163),_0x459606);}[_0x25508f(0x15e)](){const _0x362ccd=_0x25508f;[M,N,E,P,F,D][_0x362ccd(0x185)](_0x594200=>this['disposeWithMe'](this[_0x362ccd(0x193)][_0x362ccd(0x167)](_0x594200)));}};W(G,_0x25508f(0x12a),_0x25508f(0x148)),W(G,_0x25508f(0x160),I),W(G,_0x25508f(0x15c),L),W(G,_0x25508f(0x164),_0x4a54fc[_0x25508f(0x18d)]),G=B([_0x69f6bf(_0x5d0fd1,_0x4a0936),z(0x1,_0x41bfce(_0xb9be7d)),z(0x2,_0x34fb3d),z(0x3,_0x18cdca)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xc928(_0x4f39ed,_0x52e7cc){_0x4f39ed=_0x4f39ed-0x1cb;const _0xfbfa2b=_0xfbfa();let _0xc928fb=_0xfbfa2b[_0x4f39ed];return _0xc928fb;}function _0xfbfa(){const _0x3c283b=['5744lcgZUa','getSnapshot','1dCmfUq','InsertDocumentFootnoteCommand','846204sQHFhY','filter','@univerjs/docs/facade','get','syncExecuteCommand','328086LCvagg','deleteFootnote','generateRandomId','extend','find','properties','Tools','noteSettings','UniverCore','@univerjs-pro/docs-reference','setEndnoteSettings','object','FOOTNOTE','customRanges','getEndnotes','endnote','startIndex','sectionBreaks','getFootnoteSettings','getDocumentDataModel','string','UniverProDocsReference','getEndnoteSettings','DeleteDocumentEndnoteCommand','noteId','InsertDocumentEndnoteCommand','2718lOnIyX','178044BtDmym','flatMap','5KuntaB','body','CustomRangeType','DeleteDocumentFootnoteCommand','ICommandService','insertFootnote','noteProperties','deepClone','deleteEndnote','FDocument','SetDocumentEndnoteSettingsCommand','SetDocumentFootnoteSettingsCommand','sectionId','footnote','notes','810KRfNUL','sort','rangeType','7RaOBLq','ENDNOTE','129046OOgmRp','_injector','function','4620704zAytFB'];_0xfbfa=function(){return _0x3c283b;};return _0xfbfa();}(function(_0x289238,_0x35f41c){const _0x5aa171=_0xc928,_0x3fd9c4=_0x289238();while(!![]){try{const _0x449e0d=parseInt(_0x5aa171(0x1fa))/0x1*(-parseInt(_0x5aa171(0x1f4))/0x2)+-parseInt(_0x5aa171(0x1de))/0x3+-parseInt(_0x5aa171(0x1fc))/0x4+parseInt(_0x5aa171(0x1e0))/0x5*(parseInt(_0x5aa171(0x201))/0x6)+parseInt(_0x5aa171(0x1f2))/0x7*(parseInt(_0x5aa171(0x1f8))/0x8)+parseInt(_0x5aa171(0x1dd))/0x9*(-parseInt(_0x5aa171(0x1ef))/0xa)+parseInt(_0x5aa171(0x1f7))/0xb;if(_0x449e0d===_0x35f41c)break;else _0x3fd9c4['push'](_0x3fd9c4['shift']());}catch(_0x350264){_0x3fd9c4['push'](_0x3fd9c4['shift']());}}}(_0xfbfa,0x1c37b),function(_0x34501c,_0x1fa22b){const _0x1b6839=_0xc928;typeof exports==_0x1b6839(0x1ce)&&typeof module<'u'?_0x1fa22b(require('@univerjs-pro/docs-reference'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x1b6839(0x1f6)&&define['amd']?define([_0x1b6839(0x1cc),'@univerjs/core',_0x1b6839(0x1fe)],_0x1fa22b):(_0x34501c=typeof globalThis<'u'?globalThis:_0x34501c||self,_0x1fa22b(_0x34501c[_0x1b6839(0x1d8)],_0x34501c[_0x1b6839(0x1cb)],_0x34501c['UniverDocsFacade']));}(this,function(_0x5cd0df,_0x3561f0,_0xa812be){const _0x5f5154=_0xc928;var _0x1aa017=class extends _0xa812be['FDocument']{[_0x5f5154(0x1e5)](_0x39f4a1,_0x4b169a={}){const _0x417fe7=_0x5f5154;let _0x85e34f=(0x0,_0x3561f0[_0x417fe7(0x203)])(0xc);return this[_0x417fe7(0x1f5)][_0x417fe7(0x1ff)](_0x3561f0[_0x417fe7(0x1e4)])[_0x417fe7(0x200)](_0x5cd0df[_0x417fe7(0x1fb)]['id'],{..._0x4b169a,'unitId':this['id'],'offset':_0x39f4a1,'noteId':_0x85e34f})?_0x85e34f:null;}['getFootnotes'](){const _0x3b75a4=_0x5f5154;var _0x125294;let _0x4ae1fd=this[_0x3b75a4(0x1d6)]()[_0x3b75a4(0x1f9)]();return(((_0x125294=_0x4ae1fd[_0x3b75a4(0x1e1)])==null?void 0x0:_0x125294[_0x3b75a4(0x1d0)])??[])[_0x3b75a4(0x1fd)](_0x38614b=>_0x38614b[_0x3b75a4(0x1f1)]===_0x3561f0[_0x3b75a4(0x1e2)][_0x3b75a4(0x1cf)])[_0x3b75a4(0x1f0)]((_0x51a620,_0x31cdef)=>_0x51a620[_0x3b75a4(0x1d3)]-_0x31cdef['startIndex'])[_0x3b75a4(0x1df)](_0x529f07=>{const _0x559f49=_0x3b75a4;var _0x4e14e6,_0x3eb193;let _0x1a6772=(_0x4e14e6=_0x529f07[_0x559f49(0x206)])==null?void 0x0:_0x4e14e6[_0x559f49(0x1db)],_0x50a0e6=typeof _0x1a6772=='string'?(_0x3eb193=_0x4ae1fd['notes'])==null?void 0x0:_0x3eb193[_0x1a6772]:void 0x0;return _0x50a0e6?[_0x3561f0[_0x559f49(0x207)][_0x559f49(0x1e7)](_0x50a0e6)]:[];});}[_0x5f5154(0x202)](_0x98e11e){const _0x3891c5=_0x5f5154;return this[_0x3891c5(0x1f5)]['get'](_0x3561f0['ICommandService'])['syncExecuteCommand'](_0x5cd0df[_0x3891c5(0x1e3)]['id'],{'unitId':this['id'],'noteId':_0x98e11e});}[_0x5f5154(0x1d5)](_0x1102da){const _0x45d494=_0x5f5154;var _0x59d19a,_0x4ec698;let _0x35c8d7=this['getDocumentDataModel']()[_0x45d494(0x1f9)](),_0x58cc93=_0x1102da==null?(_0x59d19a=_0x35c8d7[_0x45d494(0x208)])==null?void 0x0:_0x59d19a[_0x45d494(0x1ed)]:(_0x4ec698=_0x35c8d7[_0x45d494(0x1e1)])==null||(_0x4ec698=_0x4ec698[_0x45d494(0x1d4)])==null||(_0x4ec698=_0x4ec698[_0x45d494(0x205)](_0x8d2a29=>_0x8d2a29[_0x45d494(0x1ec)]===_0x1102da))==null||(_0x4ec698=_0x4ec698[_0x45d494(0x1e6)])==null?void 0x0:_0x4ec698['footnote'];return _0x58cc93==null?void 0x0:_0x3561f0[_0x45d494(0x207)][_0x45d494(0x1e7)](_0x58cc93);}['setFootnoteSettings'](_0x4c8176,_0x6fca89){const _0x458153=_0x5f5154;return this[_0x458153(0x1f5)]['get'](_0x3561f0[_0x458153(0x1e4)])[_0x458153(0x200)](_0x5cd0df[_0x458153(0x1eb)]['id'],{'unitId':this['id'],'settings':_0x4c8176,'sectionId':_0x6fca89});}['insertEndnote'](_0x27976a,_0x2d0ee4={}){const _0xc14a08=_0x5f5154;let _0x1a1912=(0x0,_0x3561f0[_0xc14a08(0x203)])(0xc);return this[_0xc14a08(0x1f5)][_0xc14a08(0x1ff)](_0x3561f0[_0xc14a08(0x1e4)])[_0xc14a08(0x200)](_0x5cd0df[_0xc14a08(0x1dc)]['id'],{..._0x2d0ee4,'unitId':this['id'],'offset':_0x27976a,'noteId':_0x1a1912})?_0x1a1912:null;}[_0x5f5154(0x1d1)](){const _0x36860d=_0x5f5154;var _0x526f03;let _0x5e5dee=this[_0x36860d(0x1d6)]()[_0x36860d(0x1f9)]();return(((_0x526f03=_0x5e5dee[_0x36860d(0x1e1)])==null?void 0x0:_0x526f03[_0x36860d(0x1d0)])??[])[_0x36860d(0x1fd)](_0x4cabc4=>_0x4cabc4['rangeType']===_0x3561f0[_0x36860d(0x1e2)][_0x36860d(0x1f3)])[_0x36860d(0x1f0)]((_0x1a4ab2,_0x9f952c)=>_0x1a4ab2[_0x36860d(0x1d3)]-_0x9f952c[_0x36860d(0x1d3)])[_0x36860d(0x1df)](_0x214416=>{const _0x3a37fc=_0x36860d;var _0x2753bf,_0x273eab;let _0x1d80e6=(_0x2753bf=_0x214416['properties'])==null?void 0x0:_0x2753bf['noteId'],_0x31e0cc=typeof _0x1d80e6==_0x3a37fc(0x1d7)?(_0x273eab=_0x5e5dee[_0x3a37fc(0x1ee)])==null?void 0x0:_0x273eab[_0x1d80e6]:void 0x0;return _0x31e0cc?[_0x3561f0[_0x3a37fc(0x207)][_0x3a37fc(0x1e7)](_0x31e0cc)]:[];});}[_0x5f5154(0x1e8)](_0x278bc7){const _0x473511=_0x5f5154;return this['_injector'][_0x473511(0x1ff)](_0x3561f0[_0x473511(0x1e4)])[_0x473511(0x200)](_0x5cd0df[_0x473511(0x1da)]['id'],{'unitId':this['id'],'noteId':_0x278bc7});}[_0x5f5154(0x1d9)](_0x4fa48f){const _0x573a4a=_0x5f5154;var _0x2658cd,_0x44fa10;let _0x5d5a50=this[_0x573a4a(0x1d6)]()[_0x573a4a(0x1f9)](),_0x2b26c3=_0x4fa48f==null?(_0x2658cd=_0x5d5a50[_0x573a4a(0x208)])==null?void 0x0:_0x2658cd[_0x573a4a(0x1d2)]:(_0x44fa10=_0x5d5a50[_0x573a4a(0x1e1)])==null||(_0x44fa10=_0x44fa10['sectionBreaks'])==null||(_0x44fa10=_0x44fa10[_0x573a4a(0x205)](_0x3aed26=>_0x3aed26['sectionId']===_0x4fa48f))==null||(_0x44fa10=_0x44fa10[_0x573a4a(0x1e6)])==null?void 0x0:_0x44fa10[_0x573a4a(0x1d2)];return _0x2b26c3==null?void 0x0:_0x3561f0[_0x573a4a(0x207)]['deepClone'](_0x2b26c3);}[_0x5f5154(0x1cd)](_0xf0b59c,_0x1600fb){const _0x20b8cb=_0x5f5154;return this['_injector'][_0x20b8cb(0x1ff)](_0x3561f0[_0x20b8cb(0x1e4)])[_0x20b8cb(0x200)](_0x5cd0df[_0x20b8cb(0x1ea)]['id'],{'unitId':this['id'],'settings':_0xf0b59c,'sectionId':_0x1600fb});}};_0xa812be[_0x5f5154(0x1e9)][_0x5f5154(0x204)](_0x1aa017);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1ee6(_0x1906d8,_0x326d1d){_0x1906d8=_0x1906d8-0x1a1;const _0x38963d=_0x3896();let _0x1ee6ca=_0x38963d[_0x1906d8];return _0x1ee6ca;}(function(_0x37cd6d,_0x133dd4){const _0x4b554f=_0x1ee6,_0x35b340=_0x37cd6d();while(!![]){try{const _0xd919da=-parseInt(_0x4b554f(0x1c1))/0x1*(parseInt(_0x4b554f(0x21b))/0x2)+-parseInt(_0x4b554f(0x214))/0x3*(parseInt(_0x4b554f(0x1e1))/0x4)+-parseInt(_0x4b554f(0x208))/0x5+parseInt(_0x4b554f(0x1cd))/0x6*(-parseInt(_0x4b554f(0x1f4))/0x7)+-parseInt(_0x4b554f(0x1d5))/0x8*(-parseInt(_0x4b554f(0x1e9))/0x9)+-parseInt(_0x4b554f(0x1ab))/0xa+parseInt(_0x4b554f(0x1f3))/0xb*(parseInt(_0x4b554f(0x21e))/0xc);if(_0xd919da===_0x133dd4)break;else _0x35b340['push'](_0x35b340['shift']());}catch(_0x224859){_0x35b340['push'](_0x35b340['shift']());}}}(_0x3896,0xe7fe1),function(_0x2a695d,_0x519143){const _0xa5a7e5=_0x1ee6;typeof exports==_0xa5a7e5(0x1f5)&&typeof module<'u'?_0x519143(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0xa5a7e5(0x1af),'@univerjs/core',_0xa5a7e5(0x1fc),_0xa5a7e5(0x1bc)],_0x519143):(_0x2a695d=typeof globalThis<'u'?globalThis:_0x2a695d||self,_0x519143(_0x2a695d[_0xa5a7e5(0x1bf)]={},_0x2a695d['UniverCore'],_0x2a695d['UniverDocs'],_0x2a695d[_0xa5a7e5(0x1e5)]));}(this,function(_0x3423f4,_0x4deab6,_0x53fd2c,_0x30e2f7){const _0x4c827f=_0x1ee6;Object[_0x4c827f(0x1c6)](_0x3423f4,Symbol[_0x4c827f(0x1e8)],{'value':_0x4c827f(0x21c)});function _0x515c54(_0x154b74,_0x1ededb,_0x542636){const _0x4b2111=_0x4c827f;if(_0x154b74[_0x4b2111(0x20c)]!=null&&!(_0x1ededb===_0x4b2111(0x1fa)?[_0x4b2111(0x1b5),_0x4b2111(0x1ff)]:[_0x4b2111(0x205),_0x4b2111(0x1a8)])[_0x4b2111(0x1ef)](_0x154b74[_0x4b2111(0x20c)])||_0x154b74[_0x4b2111(0x229)]!=null&&!(_0x1ededb===_0x4b2111(0x1fa)?[_0x4b2111(0x1a6),_0x4b2111(0x1bb),_0x4b2111(0x1ce)]:[_0x4b2111(0x1a6),'eachSect'])[_0x4b2111(0x1ef)](_0x154b74[_0x4b2111(0x229)])||_0x154b74[_0x4b2111(0x224)]!=null&&(!Number[_0x4b2111(0x211)](_0x154b74[_0x4b2111(0x224)])||_0x154b74[_0x4b2111(0x224)]<0x1)||_0x4b2111(0x1ac)in _0x154b74&&_0x154b74['columnCount']!=null&&(_0x1ededb!=='footnote'||!Number[_0x4b2111(0x211)](_0x154b74['columnCount'])||_0x154b74[_0x4b2111(0x1ac)]<0x0||_0x154b74[_0x4b2111(0x1ac)]>0x4)||_0x154b74[_0x4b2111(0x1d3)]!=null&&(typeof _0x154b74['numberFormat']!=_0x4b2111(0x215)||_0x154b74[_0x4b2111(0x1d3)][_0x4b2111(0x1e2)]===0x0))return!0x1;for(let _0x1b0513 of[_0x154b74[_0x4b2111(0x1a9)],_0x154b74[_0x4b2111(0x20a)],_0x154b74[_0x4b2111(0x1da)]])if(_0x1b0513!=null&&(_0x542636!=null||(0x0,_0x4deab6[_0x4b2111(0x1e7)])(_0x1b0513)[_0x4b2111(0x1e2)]>0x0))return!0x1;return!0x0;}function _0x280a64(_0x1de57e,_0x8de156,_0x796c42){const _0x4d58d0=_0x4c827f;var _0x1b0bcd,_0x1d5100;if(_0x8de156[_0x4d58d0(0x1a4)]!=null&&!_0x515c54(_0x8de156['settings'],_0x796c42,_0x8de156['sectionId']))return!0x1;let _0x4f3f36=((_0x1b0bcd=_0x1de57e[_0x4d58d0(0x1f9)])==null||(_0x1b0bcd=_0x1b0bcd[_0x4d58d0(0x1a2)])==null?void 0x0:_0x1b0bcd['findIndex'](_0x47f1f1=>_0x47f1f1[_0x4d58d0(0x1ed)]===_0x8de156[_0x4d58d0(0x1ed)]))??-0x1;if(_0x8de156[_0x4d58d0(0x1ed)]!=null&&_0x4f3f36<0x0)return!0x1;let _0x3a51c4=_0x8de156[_0x4d58d0(0x1ed)]==null?_0x1de57e['noteSettings']:(_0x1d5100=_0x1de57e[_0x4d58d0(0x1f9)])==null||(_0x1d5100=_0x1d5100[_0x4d58d0(0x1a2)])==null?void 0x0:_0x1d5100[_0x4f3f36][_0x4d58d0(0x1c2)],_0x1f735d=_0x8de156['settings']==null?void 0x0:_0x4deab6[_0x4d58d0(0x201)][_0x4d58d0(0x1ec)](_0x8de156['settings']),_0x27e62e=_0x8de156[_0x4d58d0(0x1ed)]==null?['noteSettings']:['body',_0x4d58d0(0x1a2),_0x4f3f36,_0x4d58d0(0x1c2)],_0x111701=_0x4deab6[_0x4d58d0(0x1cf)][_0x4d58d0(0x1f0)](),_0x5c0db6=null;if(_0x4deab6['Tools'][_0x4d58d0(0x213)](_0x3a51c4==null?void 0x0:_0x3a51c4[_0x796c42],_0x1f735d)||(_0x5c0db6=_0x3a51c4==null?_0x111701[_0x4d58d0(0x1b1)](_0x27e62e,{[_0x796c42]:_0x1f735d}):_0x8de156['sectionId']!=null&&_0x1f735d==null&&Object[_0x4d58d0(0x1b8)](_0x3a51c4)[_0x4d58d0(0x1ad)](_0x9cdee8=>_0x9cdee8===_0x796c42)?_0x111701[_0x4d58d0(0x220)](_0x27e62e,_0x3a51c4):_0x111701[_0x4d58d0(0x1ba)]([..._0x27e62e,_0x796c42],_0x3a51c4[_0x796c42],_0x1f735d)),_0x8de156['suppressEndnotes']!=null){var _0x4b47dd;if(_0x796c42!==_0x4d58d0(0x1d1)||_0x8de156[_0x4d58d0(0x1ed)]==null||typeof _0x8de156['suppressEndnotes']!=_0x4d58d0(0x1cb))return!0x1;let _0x507e92=(_0x4b47dd=_0x1de57e['body'])==null||(_0x4b47dd=_0x4b47dd[_0x4d58d0(0x1a2)])==null?void 0x0:_0x4b47dd[_0x4f3f36][_0x4d58d0(0x1bd)];_0x507e92!==_0x8de156[_0x4d58d0(0x1bd)]&&(_0x5c0db6=_0x4deab6[_0x4d58d0(0x1cf)][_0x4d58d0(0x200)](_0x5c0db6,_0x111701[_0x4d58d0(0x1ba)]([_0x4d58d0(0x1f9),_0x4d58d0(0x1a2),_0x4f3f36,'suppressEndnotes'],_0x507e92,_0x8de156[_0x4d58d0(0x1bd)])));}return _0x5c0db6;}function _0x556ca2(_0x5998d3,_0x27f9bc,_0x5136bf){const _0x16a9c8=_0x4c827f;if(!_0x27f9bc)return!0x1;let _0x5588cb=_0x5998d3[_0x16a9c8(0x1c4)](_0x4deab6[_0x16a9c8(0x1d9)])['getUnit'](_0x27f9bc['unitId'],_0x4deab6[_0x16a9c8(0x1fe)][_0x16a9c8(0x218)]),_0x3ece3e=_0x5588cb==null?void 0x0:_0x5588cb[_0x16a9c8(0x1ee)]();if(!_0x3ece3e||_0x3ece3e['documentStyle'][_0x16a9c8(0x207)]!==_0x4deab6['DocumentFlavor'][_0x16a9c8(0x1d2)])return!0x1;let _0x3c97b4=_0x280a64(_0x3ece3e,_0x27f9bc,_0x5136bf);return _0x3c97b4===!0x1||_0x4deab6['JSONX'][_0x16a9c8(0x225)](_0x3c97b4)?!0x1:!!_0x5998d3['get'](_0x4deab6[_0x16a9c8(0x1c5)])[_0x16a9c8(0x204)](_0x53fd2c[_0x16a9c8(0x1c0)]['id'],{'unitId':_0x27f9bc[_0x16a9c8(0x1ae)],'segmentId':'','historyAction':_0x16a9c8(0x209)+_0x5136bf+_0x16a9c8(0x216),'actions':_0x3c97b4,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x24cfba={'id':_0x4c827f(0x1df),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x3f5ec5,_0x301b3a)=>_0x556ca2(_0x3f5ec5,_0x301b3a,'footnote')},_0x4e5a24={'id':_0x4c827f(0x1d7),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x1a6ff9,_0x255f91)=>_0x556ca2(_0x1a6ff9,_0x255f91,_0x4c827f(0x1d1))};function _0x2026e1(_0x5a51f9,_0x28733a){const _0x503ab9=_0x4c827f;return(_0x5a51f9==null?void 0x0:_0x5a51f9[_0x503ab9(0x1b0)][_0x503ab9(0x207)])===_0x4deab6['DocumentFlavor'][_0x503ab9(0x1d2)]&&!!_0x5a51f9['body']&&Number['isInteger'](_0x28733a)&&_0x28733a>=0x0&&_0x28733a<_0x5a51f9['body'][_0x503ab9(0x203)][_0x503ab9(0x1e2)]-0x1;}function _0x2217d0(_0x15a33,_0x1d3975,_0x3f557f){const _0x42f274=_0x4c827f;var _0x4b4755,_0x29f6c3;if(_0x1d3975[_0x42f274(0x1a4)]===void 0x0&&_0x1d3975['suppressEndnotes']===void 0x0)return null;let _0x39c274=_0x1d3975['sectionId']==null?(_0x4b4755=_0x15a33['noteSettings'])==null?void 0x0:_0x4b4755[_0x3f557f]:(_0x29f6c3=_0x15a33[_0x42f274(0x1f9)])==null||(_0x29f6c3=_0x29f6c3[_0x42f274(0x1a2)])==null||(_0x29f6c3=_0x29f6c3['find'](_0x1c5141=>_0x1c5141[_0x42f274(0x1ed)]===_0x1d3975['sectionId']))==null||(_0x29f6c3=_0x29f6c3[_0x42f274(0x1c2)])==null?void 0x0:_0x29f6c3[_0x3f557f];return _0x280a64(_0x15a33,{'settings':_0x1d3975['settings']===void 0x0?_0x39c274??null:_0x1d3975['settings'],'sectionId':_0x1d3975[_0x42f274(0x1ed)],'suppressEndnotes':_0x1d3975[_0x42f274(0x1bd)]},_0x3f557f);}function _0x435730(_0x5e37ac,_0x3e339f,_0x407108){const _0x295037=_0x4c827f;var _0x2a947f,_0x18a7d1,_0x316bb9;if(!_0x3e339f||_0x3e339f[_0x295037(0x1f1)])return!0x1;let _0x5c2440=_0x5e37ac['get'](_0x4deab6[_0x295037(0x1d9)])[_0x295037(0x227)](_0x3e339f[_0x295037(0x1ae)],_0x4deab6[_0x295037(0x1fe)]['UNIVER_DOC']),_0xbe44e9=_0x5c2440==null?void 0x0:_0x5c2440[_0x295037(0x1ee)](),{offset:_0x2f5f6d}=_0x3e339f;if(!_0x2026e1(_0xbe44e9,_0x2f5f6d))return!0x1;let _0x33b5aa=_0x2217d0(_0xbe44e9,_0x3e339f,_0x407108);if(_0x33b5aa===!0x1)return!0x1;let _0x5bd45a=_0x3e339f[_0x295037(0x223)]??(0x0,_0x4deab6[_0x295037(0x1f8)])(0xc);if((_0x2a947f=_0xbe44e9[_0x295037(0x22e)])!=null&&_0x2a947f[_0x5bd45a]||(_0x18a7d1=_0xbe44e9['headers'])!=null&&_0x18a7d1[_0x5bd45a]||(_0x316bb9=_0xbe44e9[_0x295037(0x1d0)])!=null&&_0x316bb9[_0x5bd45a])return!0x1;let _0x14179c=_0x4deab6[_0x295037(0x201)][_0x295037(0x1ec)]({'type':_0x407108,'noteId':_0x5bd45a,'body':_0x3e339f[_0x295037(0x1f9)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x4deab6[_0x295037(0x1c8)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x4deab6[_0x295037(0x1b9)])(new Set()),'startIndex':0x1}]},'customMark':_0x3e339f[_0x295037(0x1c7)],'referenceTextStyle':_0x3e339f[_0x295037(0x1a3)],'tableSource':_0x3e339f[_0x295037(0x1db)],'drawings':_0x3e339f[_0x295037(0x217)],'drawingsOrder':_0x3e339f[_0x295037(0x1cc)],'lists':_0x3e339f[_0x295037(0x1aa)]});if((0x0,_0x4deab6[_0x295037(0x22c)])({'notes':{[_0x5bd45a]:_0x14179c}})['length']>0x0)return!0x1;let _0x391c0d=new _0x4deab6[(_0x295037(0x1a1))]();_0x2f5f6d>0x0&&_0x391c0d['retain'](_0x2f5f6d),_0x391c0d[_0x295037(0x1c9)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x407108===_0x295037(0x1fa)?_0x4deab6[_0x295037(0x20d)]['FOOTNOTE']:_0x4deab6[_0x295037(0x20d)][_0x295037(0x1e6)],'rangeId':(0x0,_0x4deab6['generateRandomId'])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x5bd45a}}]});let _0x19c76d=_0x4deab6[_0x295037(0x1cf)][_0x295037(0x1f0)](),_0x479f2d=_0xbe44e9[_0x295037(0x22e)]==null?_0x19c76d[_0x295037(0x1b1)](['notes'],{[_0x5bd45a]:_0x14179c}):_0x19c76d['insertOp']([_0x295037(0x22e),_0x5bd45a],_0x14179c);return!!_0x5e37ac[_0x295037(0x1c4)](_0x4deab6[_0x295037(0x1c5)])[_0x295037(0x204)](_0x53fd2c[_0x295037(0x1c0)]['id'],{'unitId':_0x3e339f[_0x295037(0x1ae)],'segmentId':'','historyAction':'insert-'+_0x407108,'actions':_0x4deab6[_0x295037(0x1cf)]['compose'](_0x4deab6[_0x295037(0x1cf)][_0x295037(0x200)](_0x33b5aa,_0x479f2d),_0x19c76d[_0x295037(0x1d8)](_0x391c0d[_0x295037(0x1fb)](),['body'])),'textRanges':[{'segmentId':_0x5bd45a,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0xc72110(_0x2b6b82,_0x14dc99,_0xaebaa3){const _0xd0952f=_0x4c827f;var _0xca8857,_0x233368;if(!_0x14dc99)return!0x1;let _0x2ea9fb=_0x2b6b82[_0xd0952f(0x1c4)](_0x4deab6[_0xd0952f(0x1d9)])[_0xd0952f(0x227)](_0x14dc99[_0xd0952f(0x1ae)],_0x4deab6[_0xd0952f(0x1fe)][_0xd0952f(0x218)]),_0x1b1d87=_0x2ea9fb==null?void 0x0:_0x2ea9fb[_0xd0952f(0x1ee)](),_0x47a798=_0x1b1d87==null||(_0xca8857=_0x1b1d87[_0xd0952f(0x22e)])==null?void 0x0:_0xca8857[_0x14dc99['noteId']],_0x5e5539=_0x1b1d87==null||(_0x233368=_0x1b1d87[_0xd0952f(0x1f9)])==null||(_0x233368=_0x233368[_0xd0952f(0x22d)])==null?void 0x0:_0x233368[_0xd0952f(0x1d4)](_0x54abd5=>{const _0x11ee0c=_0xd0952f;var _0x14ca66;return(_0x54abd5['rangeType']===_0x4deab6[_0x11ee0c(0x20d)][_0x11ee0c(0x226)]||_0x54abd5['rangeType']===_0x4deab6['CustomRangeType'][_0x11ee0c(0x1e6)])&&((_0x14ca66=_0x54abd5[_0x11ee0c(0x1d6)])==null?void 0x0:_0x14ca66[_0x11ee0c(0x223)])===_0x14dc99[_0x11ee0c(0x223)];});if(!_0x1b1d87||_0x1b1d87[_0xd0952f(0x1b0)][_0xd0952f(0x207)]!==_0x4deab6[_0xd0952f(0x1b4)][_0xd0952f(0x1d2)]||!_0x47a798||_0x47a798[_0xd0952f(0x228)]!==_0xaebaa3||!_0x5e5539)return!0x1;let _0xe04e45=new _0x4deab6['TextX']();_0x5e5539[_0xd0952f(0x212)]>0x0&&_0xe04e45[_0xd0952f(0x1b6)](_0x5e5539[_0xd0952f(0x212)]),_0xe04e45[_0xd0952f(0x1b7)](0x1);let _0x24e3a3=_0x4deab6[_0xd0952f(0x1cf)][_0xd0952f(0x1f0)]();return!!_0x2b6b82['get'](_0x4deab6['ICommandService'])[_0xd0952f(0x204)](_0x53fd2c[_0xd0952f(0x1c0)]['id'],{'unitId':_0x14dc99[_0xd0952f(0x1ae)],'segmentId':'','historyAction':'delete-'+_0xaebaa3,'actions':_0x4deab6[_0xd0952f(0x1cf)]['compose'](_0x24e3a3[_0xd0952f(0x1d8)](_0xe04e45[_0xd0952f(0x1fb)](),[_0xd0952f(0x1f9)]),_0x24e3a3['removeOp'](['notes',_0x14dc99[_0xd0952f(0x223)]],_0x47a798)),'textRanges':[{'startOffset':_0x5e5539[_0xd0952f(0x212)],'endOffset':_0x5e5539[_0xd0952f(0x212)],'collapsed':!0x0}],'debounce':!0x1});}let _0xb6c042={'id':_0x4c827f(0x1fd),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x95060c,_0x6f6b83)=>_0x435730(_0x95060c,_0x6f6b83,_0x4c827f(0x1fa))},_0x4e90a9={'id':'doc.command.delete-footnote','type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x4d8832,_0x109848)=>_0xc72110(_0x4d8832,_0x109848,_0x4c827f(0x1fa))},_0x1adffe={'id':'doc.command.insert-endnote','type':_0x4deab6['CommandType'][_0x4c827f(0x1de)],'handler':(_0x38d5e9,_0x5ed557)=>_0x435730(_0x38d5e9,_0x5ed557,_0x4c827f(0x1d1))},_0x4c3c40={'id':'doc.command.delete-endnote','type':_0x4deab6[_0x4c827f(0x22a)]['COMMAND'],'handler':(_0x487ab8,_0x1b4229)=>_0xc72110(_0x487ab8,_0x1b4229,'endnote')};var _0x25024f=_0x4c827f(0x219),_0x586be2='1.0.1';let _0x5482c2={};function _0x1d5d27(_0x7c1e69,_0x1b385f){return function(_0x464c10,_0x435fa3){_0x1b385f(_0x464c10,_0x435fa3,_0x7c1e69);};}function _0x27e6ef(_0x554ec2,_0x10343d,_0x448a68,_0xa4b47a){const _0x291103=_0x4c827f;var _0x12372d=arguments['length'],_0x28ee8a=_0x12372d<0x3?_0x10343d:_0xa4b47a===null?_0xa4b47a=Object[_0x291103(0x22b)](_0x10343d,_0x448a68):_0xa4b47a,_0x4168f0;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x291103(0x210))_0x28ee8a=Reflect[_0x291103(0x221)](_0x554ec2,_0x10343d,_0x448a68,_0xa4b47a);else{for(var _0x165f3d=_0x554ec2[_0x291103(0x1e2)]-0x1;_0x165f3d>=0x0;_0x165f3d--)(_0x4168f0=_0x554ec2[_0x165f3d])&&(_0x28ee8a=(_0x12372d<0x3?_0x4168f0(_0x28ee8a):_0x12372d>0x3?_0x4168f0(_0x10343d,_0x448a68,_0x28ee8a):_0x4168f0(_0x10343d,_0x448a68))||_0x28ee8a);}return _0x12372d>0x3&&_0x28ee8a&&Object[_0x291103(0x1c6)](_0x10343d,_0x448a68,_0x28ee8a),_0x28ee8a;}function _0xd017b1(_0x4db83d){'@babel/helpers - typeof';const _0x459aff=_0x4c827f;return _0xd017b1=typeof Symbol==_0x459aff(0x210)&&typeof Symbol[_0x459aff(0x1f7)]=='symbol'?function(_0x1f3254){return typeof _0x1f3254;}:function(_0x429ba4){const _0x491cd0=_0x459aff;return _0x429ba4&&typeof Symbol==_0x491cd0(0x210)&&_0x429ba4['constructor']===Symbol&&_0x429ba4!==Symbol[_0x491cd0(0x1ca)]?_0x491cd0(0x206):typeof _0x429ba4;},_0xd017b1(_0x4db83d);}function _0x46496e(_0x4d1fac,_0x3e1c13){const _0x20d0c5=_0x4c827f;if(_0xd017b1(_0x4d1fac)!='object'||!_0x4d1fac)return _0x4d1fac;var _0x26ef5c=_0x4d1fac[Symbol[_0x20d0c5(0x222)]];if(_0x26ef5c!==void 0x0){var _0x5dc3b1=_0x26ef5c[_0x20d0c5(0x1b2)](_0x4d1fac,_0x3e1c13||_0x20d0c5(0x1a5));if(_0xd017b1(_0x5dc3b1)!='object')return _0x5dc3b1;throw TypeError(_0x20d0c5(0x1e4));}return(_0x3e1c13==='string'?String:Number)(_0x4d1fac);}function _0x539435(_0x12a1de){const _0xe00d01=_0x4c827f;var _0x563ab0=_0x46496e(_0x12a1de,_0xe00d01(0x215));return _0xd017b1(_0x563ab0)==_0xe00d01(0x206)?_0x563ab0:_0x563ab0+'';}function _0x323a49(_0x3f89ab,_0x5d517b,_0x21d0db){const _0x141f7a=_0x4c827f;return(_0x5d517b=_0x539435(_0x5d517b))in _0x3f89ab?Object[_0x141f7a(0x1c6)](_0x3f89ab,_0x5d517b,{'value':_0x21d0db,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f89ab[_0x5d517b]=_0x21d0db,_0x3f89ab;}let _0x3b82b9=class extends _0x4deab6[_0x4c827f(0x1a7)]{constructor(_0x5e49b7=_0x5482c2,_0x4462f5,_0x4f3de9,_0x271d26){const _0x576d49=_0x4c827f;super(),this[_0x576d49(0x21f)]=_0x5e49b7,this[_0x576d49(0x1b3)]=_0x4462f5,this[_0x576d49(0x1f2)]=_0x4f3de9,this[_0x576d49(0x21d)]=_0x271d26;let {..._0x418dc4}=(0x0,_0x4deab6[_0x576d49(0x1ea)])({},_0x5482c2,this['_config']);this[_0x576d49(0x1f2)][_0x576d49(0x20e)](_0x576d49(0x1e0),_0x418dc4);}['onStarting'](){const _0xf346c2=_0x4c827f;[_0xb6c042,_0x4e90a9,_0x24cfba,_0x1adffe,_0x4c3c40,_0x4e5a24]['forEach'](_0x4e518b=>this['disposeWithMe'](this[_0xf346c2(0x21d)]['registerCommand'](_0x4e518b)));}};_0x323a49(_0x3b82b9,_0x4c827f(0x1dc),'UNIVER_DOCS_REFERENCE_PLUGIN'),_0x323a49(_0x3b82b9,_0x4c827f(0x1dd),_0x25024f),_0x323a49(_0x3b82b9,_0x4c827f(0x202),_0x586be2),_0x323a49(_0x3b82b9,_0x4c827f(0x228),_0x4deab6[_0x4c827f(0x1fe)][_0x4c827f(0x218)]),_0x3b82b9=_0x27e6ef([(0x0,_0x4deab6[_0x4c827f(0x1eb)])(_0x30e2f7['UniverLicensePlugin'],_0x53fd2c[_0x4c827f(0x20b)]),_0x1d5d27(0x1,(0x0,_0x4deab6[_0x4c827f(0x1f6)])(_0x4deab6[_0x4c827f(0x1c3)])),_0x1d5d27(0x2,_0x4deab6[_0x4c827f(0x1e3)]),_0x1d5d27(0x3,_0x4deab6[_0x4c827f(0x1c5)])],_0x3b82b9),_0x3423f4['DeleteDocumentEndnoteCommand']=_0x4c3c40,_0x3423f4['DeleteDocumentFootnoteCommand']=_0x4e90a9,_0x3423f4[_0x4c827f(0x1be)]=_0x1adffe,_0x3423f4['InsertDocumentFootnoteCommand']=_0xb6c042,_0x3423f4[_0x4c827f(0x21a)]=_0x4e5a24,_0x3423f4['SetDocumentFootnoteSettingsCommand']=_0x24cfba,Object[_0x4c827f(0x1c6)](_0x3423f4,_0x4c827f(0x20f),{'enumerable':!0x0,'get':function(){return _0x3b82b9;}});}));function _0x3896(){const _0x1be20d=['diffValue','3xOdCFr','string','-settings','drawings','UNIVER_DOC','@univerjs-pro/docs-reference','SetDocumentEndnoteSettingsCommand','2bJTsBy','Module','_commandService','636IaBHcD','_config','removeOp','decorate','toPrimitive','noteId','startNumber','isNoop','FOOTNOTE','getUnit','type','restart','CommandType','getOwnPropertyDescriptor','validateDocumentStructure','customRanges','notes','TextX','sectionBreaks','referenceTextStyle','settings','default','continuous','Plugin','sectEnd','separator','lists','10310120GkLjMx','columnCount','every','unitId','exports','documentStyle','insertOp','call','_injector','DocumentFlavor','pageBottom','retain','delete','keys','createSectionId','replaceOp','eachSect','@univerjs-pro/license','suppressEndnotes','InsertDocumentEndnoteCommand','UniverProDocsReference','RichTextEditingMutation','1622624ZzXHvN','noteProperties','Injector','get','ICommandService','defineProperty','customMark','createParagraphId','insert','prototype','boolean','drawingsOrder','28794UUSfVS','eachPage','JSONX','footers','endnote','TRADITIONAL','numberFormat','find','16BKjmRV','properties','doc.command.set-endnote-settings','editOp','IUniverInstanceService','continuationNotice','tableSource','pluginName','packageName','COMMAND','doc.command.set-footnote-settings','docs-reference.config','3907068hFdlfr','length','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProLicense','ENDNOTE','validateDocBodyStructure','toStringTag','6773562tVNLJM','merge','DependentOn','deepClone','sectionId','getSnapshot','includes','getInstance','segmentId','_configService','1015421MXfbXE','357BrUhYv','object','Inject','iterator','generateRandomId','body','footnote','serialize','@univerjs/docs','doc.command.insert-footnote','UniverInstanceType','beneathText','compose','Tools','version','dataStream','syncExecuteCommand','docEnd','symbol','documentFlavor','7861630xCazCj','set-','continuationSeparator','UniverDocsPlugin','position','CustomRangeType','setConfig','UniverDocsReferencePlugin','function','isInteger','startIndex'];_0x3896=function(){return _0x1be20d;};return _0x3896();}
|
|
1
|
+
function _0x1b96(){const _0x4a1632=['Tools','footers','eachPage','documentFlavor','numberFormat','includes','generateRandomId','eachSect','replaceOp','RichTextEditingMutation','lists','ICommandService','customMark','dataStream','75292ylYXNW','JSONX','forEach','3EfafgP','defineProperty','object','unitId','customRanges','toStringTag','getUnit','segmentId','insert','noteProperties','validateDocBodyStructure','delete-','continuationSeparator','get','CommandType','continuationNotice','disposeWithMe','COMMAND','removeOp','startNumber','doc.command.delete-footnote','properties','notes','deepClone','@univerjs-pro/license','toPrimitive','diffValue','UniverInstanceType','FOOTNOTE','drawingsOrder','SetDocumentFootnoteSettingsCommand','documentStyle','1993102bRdClX','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','separator','5151150izeZsC','beneathText','settings','Module','-settings','string','UniverProLicense','InsertDocumentFootnoteCommand','retain','sectEnd','restart','suppressEndnotes','boolean','headers','UniverProDocsReference','UniverLicensePlugin','setConfig','docEnd','drawings','syncExecuteCommand','732wyXOjA','pageBottom','exports','symbol','getInstance','noteId','registerCommand','constructor','referenceTextStyle','IConfigService','columnCount','serialize','amd','find','position','insertOp','prototype','UNIVER_DOCS_REFERENCE_PLUGIN','11702547BqsKcZ','startIndex','UniverDocs','every','DocumentFlavor','_injector','InsertDocumentEndnoteCommand','sectionId','CustomRangeType','body','@univerjs/core','sectionBreaks','getOwnPropertyDescriptor','editOp','getSnapshot','TextX','createSectionId','UNIVER_DOC','Injector','DeleteDocumentFootnoteCommand','type','function','packageName','endnote','DeleteDocumentEndnoteCommand','insert-','10482896TzhfrE','IUniverInstanceService','UniverDocsPlugin','5150324VZUwPo','validateDocumentStructure','delete','default','decorate','continuous','compose','isInteger','rangeType','onStarting','footnote','TRADITIONAL','ENDNOTE','_config','doc.command.set-endnote-settings','1681990ReDRfA','call','_commandService','set-','pluginName'];_0x1b96=function(){return _0x4a1632;};return _0x1b96();}function _0x26de(_0x1edd04,_0x463ea8){_0x1edd04=_0x1edd04-0x126;const _0x1b96e7=_0x1b96();let _0x26de24=_0x1b96e7[_0x1edd04];return _0x26de24;}(function(_0x3d6bbd,_0x38ba8e){const _0x4c9519=_0x26de,_0x4df4b6=_0x3d6bbd();while(!![]){try{const _0x59d207=-parseInt(_0x4c9519(0x145))/0x1+-parseInt(_0x4c9519(0x17b))/0x2+parseInt(_0x4c9519(0x15b))/0x3*(-parseInt(_0x4c9519(0x136))/0x4)+parseInt(_0x4c9519(0x17f))/0x5+-parseInt(_0x4c9519(0x193))/0x6*(-parseInt(_0x4c9519(0x158))/0x7)+parseInt(_0x4c9519(0x133))/0x8+parseInt(_0x4c9519(0x1a5))/0x9;if(_0x59d207===_0x38ba8e)break;else _0x4df4b6['push'](_0x4df4b6['shift']());}catch(_0x4f3cdb){_0x4df4b6['push'](_0x4df4b6['shift']());}}}(_0x1b96,0xf0f69),function(_0xb284e1,_0x3925b5){const _0x140ecb=_0x26de;typeof exports==_0x140ecb(0x15d)&&typeof module<'u'?_0x3925b5(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x140ecb(0x12e)&&define[_0x140ecb(0x19f)]?define([_0x140ecb(0x195),_0x140ecb(0x1af),'@univerjs/docs',_0x140ecb(0x173)],_0x3925b5):(_0xb284e1=typeof globalThis<'u'?globalThis:_0xb284e1||self,_0x3925b5(_0xb284e1[_0x140ecb(0x18d)]={},_0xb284e1['UniverCore'],_0xb284e1[_0x140ecb(0x1a7)],_0xb284e1[_0x140ecb(0x185)]));}(this,function(_0x4b609c,_0x2abd25,_0x4246ae,_0xa70021){const _0x233d78=_0x26de;Object[_0x233d78(0x15c)](_0x4b609c,Symbol[_0x233d78(0x160)],{'value':_0x233d78(0x182)});function _0x3225ae(_0x3e7f14,_0x5cda8e,_0x45da1d){const _0x467b2c=_0x233d78;if(_0x3e7f14['position']!=null&&!(_0x5cda8e===_0x467b2c(0x140)?[_0x467b2c(0x194),_0x467b2c(0x180)]:[_0x467b2c(0x190),_0x467b2c(0x188)])[_0x467b2c(0x14f)](_0x3e7f14[_0x467b2c(0x1a1)])||_0x3e7f14[_0x467b2c(0x189)]!=null&&!(_0x5cda8e==='footnote'?[_0x467b2c(0x13b),_0x467b2c(0x151),_0x467b2c(0x14c)]:[_0x467b2c(0x13b),_0x467b2c(0x151)])[_0x467b2c(0x14f)](_0x3e7f14[_0x467b2c(0x189)])||_0x3e7f14[_0x467b2c(0x16e)]!=null&&(!Number['isInteger'](_0x3e7f14[_0x467b2c(0x16e)])||_0x3e7f14[_0x467b2c(0x16e)]<0x1)||_0x467b2c(0x19d)in _0x3e7f14&&_0x3e7f14[_0x467b2c(0x19d)]!=null&&(_0x5cda8e!==_0x467b2c(0x140)||!Number[_0x467b2c(0x13d)](_0x3e7f14[_0x467b2c(0x19d)])||_0x3e7f14[_0x467b2c(0x19d)]<0x0||_0x3e7f14[_0x467b2c(0x19d)]>0x4)||_0x3e7f14['numberFormat']!=null&&(typeof _0x3e7f14[_0x467b2c(0x14e)]!='string'||_0x3e7f14[_0x467b2c(0x14e)]['length']===0x0))return!0x1;for(let _0x1adbdd of[_0x3e7f14[_0x467b2c(0x17e)],_0x3e7f14[_0x467b2c(0x167)],_0x3e7f14[_0x467b2c(0x16a)]])if(_0x1adbdd!=null&&(_0x45da1d!=null||(0x0,_0x2abd25[_0x467b2c(0x165)])(_0x1adbdd)[_0x467b2c(0x17d)]>0x0))return!0x1;return!0x0;}function _0x29263d(_0x8022e4,_0x9477eb,_0xc2635){const _0x50a090=_0x233d78;var _0x182bdc,_0x29992b;if(_0x9477eb[_0x50a090(0x181)]!=null&&!_0x3225ae(_0x9477eb[_0x50a090(0x181)],_0xc2635,_0x9477eb[_0x50a090(0x1ac)]))return!0x1;let _0x4b2098=((_0x182bdc=_0x8022e4['body'])==null||(_0x182bdc=_0x182bdc[_0x50a090(0x1b0)])==null?void 0x0:_0x182bdc['findIndex'](_0x4a5064=>_0x4a5064[_0x50a090(0x1ac)]===_0x9477eb[_0x50a090(0x1ac)]))??-0x1;if(_0x9477eb[_0x50a090(0x1ac)]!=null&&_0x4b2098<0x0)return!0x1;let _0x1d4f8e=_0x9477eb[_0x50a090(0x1ac)]==null?_0x8022e4['noteSettings']:(_0x29992b=_0x8022e4[_0x50a090(0x1ae)])==null||(_0x29992b=_0x29992b[_0x50a090(0x1b0)])==null?void 0x0:_0x29992b[_0x4b2098][_0x50a090(0x164)],_0xf64f69=_0x9477eb[_0x50a090(0x181)]==null?void 0x0:_0x2abd25[_0x50a090(0x14a)][_0x50a090(0x172)](_0x9477eb['settings']),_0x1d123e=_0x9477eb['sectionId']==null?['noteSettings']:[_0x50a090(0x1ae),_0x50a090(0x1b0),_0x4b2098,_0x50a090(0x164)],_0x2510c5=_0x2abd25['JSONX'][_0x50a090(0x197)](),_0x2908bd=null;if(_0x2abd25['Tools'][_0x50a090(0x175)](_0x1d4f8e==null?void 0x0:_0x1d4f8e[_0xc2635],_0xf64f69)||(_0x2908bd=_0x1d4f8e==null?_0x2510c5[_0x50a090(0x1a2)](_0x1d123e,{[_0xc2635]:_0xf64f69}):_0x9477eb['sectionId']!=null&&_0xf64f69==null&&Object['keys'](_0x1d4f8e)[_0x50a090(0x1a8)](_0x5001c9=>_0x5001c9===_0xc2635)?_0x2510c5[_0x50a090(0x16d)](_0x1d123e,_0x1d4f8e):_0x2510c5['replaceOp']([..._0x1d123e,_0xc2635],_0x1d4f8e[_0xc2635],_0xf64f69)),_0x9477eb[_0x50a090(0x18a)]!=null){var _0x22264c;if(_0xc2635!==_0x50a090(0x130)||_0x9477eb[_0x50a090(0x1ac)]==null||typeof _0x9477eb['suppressEndnotes']!=_0x50a090(0x18b))return!0x1;let _0x46a5bd=(_0x22264c=_0x8022e4[_0x50a090(0x1ae)])==null||(_0x22264c=_0x22264c[_0x50a090(0x1b0)])==null?void 0x0:_0x22264c[_0x4b2098][_0x50a090(0x18a)];_0x46a5bd!==_0x9477eb[_0x50a090(0x18a)]&&(_0x2908bd=_0x2abd25[_0x50a090(0x159)][_0x50a090(0x13c)](_0x2908bd,_0x2510c5[_0x50a090(0x152)]([_0x50a090(0x1ae),_0x50a090(0x1b0),_0x4b2098,'suppressEndnotes'],_0x46a5bd,_0x9477eb['suppressEndnotes'])));}return _0x2908bd;}function _0x488ba3(_0x1f89bf,_0x5f4949,_0xc8692f){const _0x10df93=_0x233d78;if(!_0x5f4949)return!0x1;let _0x3abc78=_0x1f89bf[_0x10df93(0x168)](_0x2abd25['IUniverInstanceService'])['getUnit'](_0x5f4949[_0x10df93(0x15e)],_0x2abd25[_0x10df93(0x176)][_0x10df93(0x12a)]),_0x1a2983=_0x3abc78==null?void 0x0:_0x3abc78[_0x10df93(0x127)]();if(!_0x1a2983||_0x1a2983[_0x10df93(0x17a)][_0x10df93(0x14d)]!==_0x2abd25[_0x10df93(0x1a9)]['TRADITIONAL'])return!0x1;let _0x2beafb=_0x29263d(_0x1a2983,_0x5f4949,_0xc8692f);return _0x2beafb===!0x1||_0x2abd25[_0x10df93(0x159)]['isNoop'](_0x2beafb)?!0x1:!!_0x1f89bf['get'](_0x2abd25[_0x10df93(0x155)])[_0x10df93(0x192)](_0x4246ae[_0x10df93(0x153)]['id'],{'unitId':_0x5f4949[_0x10df93(0x15e)],'segmentId':'','historyAction':_0x10df93(0x148)+_0xc8692f+_0x10df93(0x183),'actions':_0x2beafb,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x102339={'id':'doc.command.set-footnote-settings','type':_0x2abd25[_0x233d78(0x169)][_0x233d78(0x16c)],'handler':(_0x5f3e98,_0x244b10)=>_0x488ba3(_0x5f3e98,_0x244b10,'footnote')},_0x1dea32={'id':_0x233d78(0x144),'type':_0x2abd25[_0x233d78(0x169)][_0x233d78(0x16c)],'handler':(_0x32f63,_0x53f0df)=>_0x488ba3(_0x32f63,_0x53f0df,'endnote')};function _0x833440(_0x55e3ad,_0x2f2b0d){const _0x2322a0=_0x233d78;return(_0x55e3ad==null?void 0x0:_0x55e3ad[_0x2322a0(0x17a)][_0x2322a0(0x14d)])===_0x2abd25[_0x2322a0(0x1a9)]['TRADITIONAL']&&!!_0x55e3ad[_0x2322a0(0x1ae)]&&Number[_0x2322a0(0x13d)](_0x2f2b0d)&&_0x2f2b0d>=0x0&&_0x2f2b0d<_0x55e3ad['body'][_0x2322a0(0x157)][_0x2322a0(0x17d)]-0x1;}function _0x24ec0a(_0x37af48,_0x1a2fdb,_0x6d90fd){const _0x1af85c=_0x233d78;var _0x391779,_0x75246c;if(_0x1a2fdb['settings']===void 0x0&&_0x1a2fdb['suppressEndnotes']===void 0x0)return null;let _0x517d6a=_0x1a2fdb[_0x1af85c(0x1ac)]==null?(_0x391779=_0x37af48['noteSettings'])==null?void 0x0:_0x391779[_0x6d90fd]:(_0x75246c=_0x37af48['body'])==null||(_0x75246c=_0x75246c['sectionBreaks'])==null||(_0x75246c=_0x75246c[_0x1af85c(0x1a0)](_0x2daf5a=>_0x2daf5a[_0x1af85c(0x1ac)]===_0x1a2fdb[_0x1af85c(0x1ac)]))==null||(_0x75246c=_0x75246c['noteProperties'])==null?void 0x0:_0x75246c[_0x6d90fd];return _0x29263d(_0x37af48,{'settings':_0x1a2fdb[_0x1af85c(0x181)]===void 0x0?_0x517d6a??null:_0x1a2fdb[_0x1af85c(0x181)],'sectionId':_0x1a2fdb['sectionId'],'suppressEndnotes':_0x1a2fdb['suppressEndnotes']},_0x6d90fd);}function _0x42462b(_0x155ec8,_0xcd83e9,_0x3ef536){const _0x145ff3=_0x233d78;var _0x4dda4b,_0x584fbb,_0x56f947;if(!_0xcd83e9||_0xcd83e9[_0x145ff3(0x162)])return!0x1;let _0x2b4562=_0x155ec8[_0x145ff3(0x168)](_0x2abd25[_0x145ff3(0x134)])[_0x145ff3(0x161)](_0xcd83e9[_0x145ff3(0x15e)],_0x2abd25[_0x145ff3(0x176)]['UNIVER_DOC']),_0x9daef3=_0x2b4562==null?void 0x0:_0x2b4562[_0x145ff3(0x127)](),{offset:_0x338b7f}=_0xcd83e9;if(!_0x833440(_0x9daef3,_0x338b7f))return!0x1;let _0x2ff67a=_0x24ec0a(_0x9daef3,_0xcd83e9,_0x3ef536);if(_0x2ff67a===!0x1)return!0x1;let _0x3dde75=_0xcd83e9['noteId']??(0x0,_0x2abd25[_0x145ff3(0x150)])(0xc);if((_0x4dda4b=_0x9daef3[_0x145ff3(0x171)])!=null&&_0x4dda4b[_0x3dde75]||(_0x584fbb=_0x9daef3[_0x145ff3(0x18c)])!=null&&_0x584fbb[_0x3dde75]||(_0x56f947=_0x9daef3[_0x145ff3(0x14b)])!=null&&_0x56f947[_0x3dde75])return!0x1;let _0x1852ae=_0x2abd25[_0x145ff3(0x14a)][_0x145ff3(0x172)]({'type':_0x3ef536,'noteId':_0x3dde75,'body':_0xcd83e9[_0x145ff3(0x1ae)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x2abd25['createParagraphId'])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x2abd25[_0x145ff3(0x129)])(new Set()),'startIndex':0x1}]},'customMark':_0xcd83e9[_0x145ff3(0x156)],'referenceTextStyle':_0xcd83e9[_0x145ff3(0x19b)],'tableSource':_0xcd83e9['tableSource'],'drawings':_0xcd83e9[_0x145ff3(0x191)],'drawingsOrder':_0xcd83e9[_0x145ff3(0x178)],'lists':_0xcd83e9[_0x145ff3(0x154)]});if((0x0,_0x2abd25[_0x145ff3(0x137)])({'notes':{[_0x3dde75]:_0x1852ae}})[_0x145ff3(0x17d)]>0x0)return!0x1;let _0x1459b6=new _0x2abd25[(_0x145ff3(0x128))]();_0x338b7f>0x0&&_0x1459b6[_0x145ff3(0x187)](_0x338b7f),_0x1459b6[_0x145ff3(0x163)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x3ef536==='footnote'?_0x2abd25[_0x145ff3(0x1ad)]['FOOTNOTE']:_0x2abd25[_0x145ff3(0x1ad)]['ENDNOTE'],'rangeId':(0x0,_0x2abd25[_0x145ff3(0x150)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x3dde75}}]});let _0x49a78b=_0x2abd25['JSONX'][_0x145ff3(0x197)](),_0x50b954=_0x9daef3[_0x145ff3(0x171)]==null?_0x49a78b[_0x145ff3(0x1a2)]([_0x145ff3(0x171)],{[_0x3dde75]:_0x1852ae}):_0x49a78b[_0x145ff3(0x1a2)]([_0x145ff3(0x171),_0x3dde75],_0x1852ae);return!!_0x155ec8[_0x145ff3(0x168)](_0x2abd25[_0x145ff3(0x155)])[_0x145ff3(0x192)](_0x4246ae['RichTextEditingMutation']['id'],{'unitId':_0xcd83e9[_0x145ff3(0x15e)],'segmentId':'','historyAction':_0x145ff3(0x132)+_0x3ef536,'actions':_0x2abd25[_0x145ff3(0x159)]['compose'](_0x2abd25[_0x145ff3(0x159)][_0x145ff3(0x13c)](_0x2ff67a,_0x50b954),_0x49a78b[_0x145ff3(0x126)](_0x1459b6[_0x145ff3(0x19e)](),[_0x145ff3(0x1ae)])),'textRanges':[{'segmentId':_0x3dde75,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0xeeec33(_0x48fb72,_0xa5aaab,_0x1b376b){const _0x118da4=_0x233d78;var _0x2b2007,_0x5eea75;if(!_0xa5aaab)return!0x1;let _0xf24a6a=_0x48fb72[_0x118da4(0x168)](_0x2abd25[_0x118da4(0x134)])['getUnit'](_0xa5aaab['unitId'],_0x2abd25['UniverInstanceType'][_0x118da4(0x12a)]),_0x56d9b7=_0xf24a6a==null?void 0x0:_0xf24a6a[_0x118da4(0x127)](),_0x50b2c5=_0x56d9b7==null||(_0x2b2007=_0x56d9b7[_0x118da4(0x171)])==null?void 0x0:_0x2b2007[_0xa5aaab[_0x118da4(0x198)]],_0xf46f2b=_0x56d9b7==null||(_0x5eea75=_0x56d9b7[_0x118da4(0x1ae)])==null||(_0x5eea75=_0x5eea75[_0x118da4(0x15f)])==null?void 0x0:_0x5eea75[_0x118da4(0x1a0)](_0x240701=>{const _0x748925=_0x118da4;var _0x2d0a18;return(_0x240701[_0x748925(0x13e)]===_0x2abd25[_0x748925(0x1ad)][_0x748925(0x177)]||_0x240701[_0x748925(0x13e)]===_0x2abd25[_0x748925(0x1ad)][_0x748925(0x142)])&&((_0x2d0a18=_0x240701[_0x748925(0x170)])==null?void 0x0:_0x2d0a18[_0x748925(0x198)])===_0xa5aaab[_0x748925(0x198)];});if(!_0x56d9b7||_0x56d9b7[_0x118da4(0x17a)]['documentFlavor']!==_0x2abd25['DocumentFlavor'][_0x118da4(0x141)]||!_0x50b2c5||_0x50b2c5[_0x118da4(0x12d)]!==_0x1b376b||!_0xf46f2b)return!0x1;let _0x2f543f=new _0x2abd25[(_0x118da4(0x128))]();_0xf46f2b[_0x118da4(0x1a6)]>0x0&&_0x2f543f['retain'](_0xf46f2b[_0x118da4(0x1a6)]),_0x2f543f[_0x118da4(0x138)](0x1);let _0x3f9329=_0x2abd25['JSONX'][_0x118da4(0x197)]();return!!_0x48fb72[_0x118da4(0x168)](_0x2abd25[_0x118da4(0x155)])['syncExecuteCommand'](_0x4246ae[_0x118da4(0x153)]['id'],{'unitId':_0xa5aaab[_0x118da4(0x15e)],'segmentId':'','historyAction':_0x118da4(0x166)+_0x1b376b,'actions':_0x2abd25[_0x118da4(0x159)][_0x118da4(0x13c)](_0x3f9329['editOp'](_0x2f543f['serialize'](),[_0x118da4(0x1ae)]),_0x3f9329[_0x118da4(0x16d)]([_0x118da4(0x171),_0xa5aaab[_0x118da4(0x198)]],_0x50b2c5)),'textRanges':[{'startOffset':_0xf46f2b[_0x118da4(0x1a6)],'endOffset':_0xf46f2b[_0x118da4(0x1a6)],'collapsed':!0x0}],'debounce':!0x1});}let _0x36e202={'id':'doc.command.insert-footnote','type':_0x2abd25['CommandType'][_0x233d78(0x16c)],'handler':(_0x49f69b,_0x146e01)=>_0x42462b(_0x49f69b,_0x146e01,_0x233d78(0x140))},_0x3068b6={'id':_0x233d78(0x16f),'type':_0x2abd25[_0x233d78(0x169)][_0x233d78(0x16c)],'handler':(_0x743744,_0x374570)=>_0xeeec33(_0x743744,_0x374570,_0x233d78(0x140))},_0x446011={'id':'doc.command.insert-endnote','type':_0x2abd25[_0x233d78(0x169)][_0x233d78(0x16c)],'handler':(_0x58bd2e,_0x3d89f7)=>_0x42462b(_0x58bd2e,_0x3d89f7,'endnote')},_0x401a98={'id':'doc.command.delete-endnote','type':_0x2abd25[_0x233d78(0x169)][_0x233d78(0x16c)],'handler':(_0x2fa566,_0x6af572)=>_0xeeec33(_0x2fa566,_0x6af572,_0x233d78(0x130))};var _0x26bdea='@univerjs-pro/docs-reference',_0x409434='1.0.3';let _0x1e0296={};function _0x563d5b(_0x59fac1,_0x5f062f){return function(_0x5ffb92,_0x49f2bd){_0x5f062f(_0x5ffb92,_0x49f2bd,_0x59fac1);};}function _0x18b083(_0x4de8f8,_0x5787e3,_0x28fc45,_0x1967e1){const _0x50a3a9=_0x233d78;var _0x19a971=arguments[_0x50a3a9(0x17d)],_0x29f076=_0x19a971<0x3?_0x5787e3:_0x1967e1===null?_0x1967e1=Object[_0x50a3a9(0x1b1)](_0x5787e3,_0x28fc45):_0x1967e1,_0x3398cc;if(typeof Reflect==_0x50a3a9(0x15d)&&typeof Reflect[_0x50a3a9(0x13a)]==_0x50a3a9(0x12e))_0x29f076=Reflect[_0x50a3a9(0x13a)](_0x4de8f8,_0x5787e3,_0x28fc45,_0x1967e1);else{for(var _0x3438c4=_0x4de8f8[_0x50a3a9(0x17d)]-0x1;_0x3438c4>=0x0;_0x3438c4--)(_0x3398cc=_0x4de8f8[_0x3438c4])&&(_0x29f076=(_0x19a971<0x3?_0x3398cc(_0x29f076):_0x19a971>0x3?_0x3398cc(_0x5787e3,_0x28fc45,_0x29f076):_0x3398cc(_0x5787e3,_0x28fc45))||_0x29f076);}return _0x19a971>0x3&&_0x29f076&&Object[_0x50a3a9(0x15c)](_0x5787e3,_0x28fc45,_0x29f076),_0x29f076;}function _0x2256f3(_0x1c21b7){'@babel/helpers - typeof';const _0x26fd3a=_0x233d78;return _0x2256f3=typeof Symbol==_0x26fd3a(0x12e)&&typeof Symbol['iterator']==_0x26fd3a(0x196)?function(_0x29ef76){return typeof _0x29ef76;}:function(_0x2e7f08){const _0x1f293d=_0x26fd3a;return _0x2e7f08&&typeof Symbol=='function'&&_0x2e7f08[_0x1f293d(0x19a)]===Symbol&&_0x2e7f08!==Symbol[_0x1f293d(0x1a3)]?_0x1f293d(0x196):typeof _0x2e7f08;},_0x2256f3(_0x1c21b7);}function _0x1ca484(_0x325416,_0x3dca50){const _0x4d43c9=_0x233d78;if(_0x2256f3(_0x325416)!=_0x4d43c9(0x15d)||!_0x325416)return _0x325416;var _0x3cd64c=_0x325416[Symbol[_0x4d43c9(0x174)]];if(_0x3cd64c!==void 0x0){var _0x4152b1=_0x3cd64c[_0x4d43c9(0x146)](_0x325416,_0x3dca50||_0x4d43c9(0x139));if(_0x2256f3(_0x4152b1)!=_0x4d43c9(0x15d))return _0x4152b1;throw TypeError(_0x4d43c9(0x17c));}return(_0x3dca50===_0x4d43c9(0x184)?String:Number)(_0x325416);}function _0x1f5cf0(_0x1a673d){const _0x2cc3a0=_0x233d78;var _0x336230=_0x1ca484(_0x1a673d,_0x2cc3a0(0x184));return _0x2256f3(_0x336230)==_0x2cc3a0(0x196)?_0x336230:_0x336230+'';}function _0x94aaee(_0x313a59,_0x29c326,_0x42836d){return(_0x29c326=_0x1f5cf0(_0x29c326))in _0x313a59?Object['defineProperty'](_0x313a59,_0x29c326,{'value':_0x42836d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x313a59[_0x29c326]=_0x42836d,_0x313a59;}let _0x3792c8=class extends _0x2abd25['Plugin']{constructor(_0x106bdb=_0x1e0296,_0x1b686a,_0x330543,_0x562fe5){const _0x5ebb18=_0x233d78;super(),this['_config']=_0x106bdb,this[_0x5ebb18(0x1aa)]=_0x1b686a,this['_configService']=_0x330543,this[_0x5ebb18(0x147)]=_0x562fe5;let {..._0x33d839}=(0x0,_0x2abd25['merge'])({},_0x1e0296,this[_0x5ebb18(0x143)]);this['_configService'][_0x5ebb18(0x18f)]('docs-reference.config',_0x33d839);}[_0x233d78(0x13f)](){const _0x19c443=_0x233d78;[_0x36e202,_0x3068b6,_0x102339,_0x446011,_0x401a98,_0x1dea32][_0x19c443(0x15a)](_0x473143=>this[_0x19c443(0x16b)](this[_0x19c443(0x147)][_0x19c443(0x199)](_0x473143)));}};_0x94aaee(_0x3792c8,_0x233d78(0x149),_0x233d78(0x1a4)),_0x94aaee(_0x3792c8,_0x233d78(0x12f),_0x26bdea),_0x94aaee(_0x3792c8,'version',_0x409434),_0x94aaee(_0x3792c8,_0x233d78(0x12d),_0x2abd25[_0x233d78(0x176)][_0x233d78(0x12a)]),_0x3792c8=_0x18b083([(0x0,_0x2abd25['DependentOn'])(_0xa70021[_0x233d78(0x18e)],_0x4246ae[_0x233d78(0x135)]),_0x563d5b(0x1,(0x0,_0x2abd25['Inject'])(_0x2abd25[_0x233d78(0x12b)])),_0x563d5b(0x2,_0x2abd25[_0x233d78(0x19c)]),_0x563d5b(0x3,_0x2abd25['ICommandService'])],_0x3792c8),_0x4b609c[_0x233d78(0x131)]=_0x401a98,_0x4b609c[_0x233d78(0x12c)]=_0x3068b6,_0x4b609c[_0x233d78(0x1ab)]=_0x446011,_0x4b609c[_0x233d78(0x186)]=_0x36e202,_0x4b609c['SetDocumentEndnoteSettingsCommand']=_0x1dea32,_0x4b609c[_0x233d78(0x179)]=_0x102339,Object[_0x233d78(0x15c)](_0x4b609c,'UniverDocsReferencePlugin',{'enumerable':!0x0,'get':function(){return _0x3792c8;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-reference",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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.
|
|
63
|
-
"@univerjs/core": "1.0.
|
|
64
|
-
"@univerjs/docs": "1.0.
|
|
62
|
+
"@univerjs-pro/license": "1.0.3",
|
|
63
|
+
"@univerjs/core": "1.0.3",
|
|
64
|
+
"@univerjs/docs": "1.0.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.0.
|
|
68
|
-
"@univerjs/engine-render": "1.0.
|
|
67
|
+
"@univerjs-infra/shared": "1.0.3",
|
|
68
|
+
"@univerjs/engine-render": "1.0.3",
|
|
69
69
|
"rxjs": "7.8.2",
|
|
70
70
|
"typescript": "^6.0.3",
|
|
71
71
|
"vitest": "^5.0.0"
|