@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251215.0 → 0.0.0-nightly-20251216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xfb20bf}from'ckeditor5/src/core.js';import{isWidget as _0x47223d,toWidget as _0x5685ec,toWidgetEditable as _0x290171}from'ckeditor5/src/widget.js';import{uid as _0x558fd9}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4e57fa,ClickObserver as _0x19db40}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2629f8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4bc514}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xfb20bf{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2629f8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a40de}=this;_0x1a40de['config']['define']('footnotes.multiBlock',!0x0),_0x1a40de['commands']['add']('insertFootnote',new _0x4bc514(_0x1a40de)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x49a6ba){const _0x4f59f2=_0x252b2e([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x313922=0x47a28506,_0x282dd5=0x47a5fefe^_0x313922,_0x6dab04=window[_0x252b2e([0x44,0x61,0x74,0x65])][_0x252b2e([0x6e,0x6f,0x77])](),_0x4c6958=_0x49a6ba[_0x252b2e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f7b4=new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50c857=>{_0x4c6958[_0x252b2e([0x6f,0x6e,0x63,0x65])](_0x252b2e([0x72,0x65,0x61,0x64,0x79]),_0x50c857);}),_0x1bb53c={[_0x252b2e([0x6b,0x74,0x79])]:_0x252b2e([0x45,0x43]),[_0x252b2e([0x75,0x73,0x65])]:_0x252b2e([0x73,0x69,0x67]),[_0x252b2e([0x63,0x72,0x76])]:_0x252b2e([0x50,0x2d,0x32,0x35,0x36]),[_0x252b2e([0x78])]:_0x252b2e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x252b2e([0x79])]:_0x252b2e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x252b2e([0x61,0x6c,0x67])]:_0x252b2e([0x45,0x53,0x32,0x35,0x36])},_0x43fe15=_0x4c6958[_0x252b2e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x252b2e([0x67,0x65,0x74])](_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38c41e(){let _0x2b5d5c,_0x41282e=null,_0x2e79a0=null;try{if(_0x43fe15==_0x252b2e([0x47,0x50,0x4c]))return _0x252b2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b5d5c=_0x456ba2(),!_0x2b5d5c)return _0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b5d5c[_0x252b2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e79a0=_0x224716(_0x2b5d5c[_0x252b2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b5d5c[_0x252b2e([0x6a,0x74,0x69])])),await _0x22815e()?_0xe71c1b()?_0x4167f2()?_0x252b2e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58b7d4()?(_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x252b2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41282e=_0x3f5587(_0x252b2e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x252b2e([0x74,0x72,0x69,0x61,0x6c])&&(_0x41282e=_0x3f5587(_0x252b2e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b896d()):_0x252b2e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x252b2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4167f2(){const _0x459f68=[_0x252b2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x252b2e([0x74,0x72,0x69,0x61,0x6c])][_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6dab04/0x3e8:0xe10*_0x282dd5;return _0x2b5d5c[_0x252b2e([0x65,0x78,0x70])]<_0x459f68;}function _0xe71c1b(){const _0x940c8b=_0x2b5d5c[_0x252b2e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x940c8b&&(!!_0x940c8b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x2a]))||!!_0x940c8b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x46,0x4f,0x4f])));}function _0x58b7d4(){const _0x37219b=_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37219b||0x0==_0x37219b[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x268b5}=new URL(window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37219b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268b5))return!0x0;const _0x450849=_0x268b5[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e]));return _0x37219b[_0x252b2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33f3d9=>_0x33f3d9[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x2a])))[_0x252b2e([0x6d,0x61,0x70])](_0x1d7190=>_0x1d7190[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e])))[_0x252b2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59fe6e=>_0x59fe6e[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x450849[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x252b2e([0x6d,0x61,0x70])](_0x61659c=>Array(_0x450849[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x61659c[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x252b2e([0x66,0x69,0x6c,0x6c])](_0x61659c[0x0]===_0x252b2e([0x2a])?_0x252b2e([0x2a]):'')[_0x252b2e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x61659c))[_0x252b2e([0x73,0x6f,0x6d,0x65])](_0x37ccf7=>_0x450849[_0x252b2e([0x65,0x76,0x65,0x72,0x79])]((_0x8357ba,_0x21aa93)=>_0x37ccf7[_0x21aa93]===_0x8357ba||_0x37ccf7[_0x21aa93]===_0x252b2e([0x2a])));}function _0x1b896d(){return _0x41282e&&_0x2e79a0?new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6e57ea,_0x290e2c)=>{_0x41282e[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x6e57ea,_0x290e2c),_0x2e79a0[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x2ccd95=>{_0x2ccd95!=_0x252b2e([0x56,0x61,0x6c,0x69,0x64])&&_0x6e57ea(_0x2ccd95);},_0x290e2c);}):_0x41282e||_0x2e79a0||_0x252b2e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x224716(_0x2f4dcb,_0xa0648e){return new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bb9f1=>{if(_0x16aff2())return _0x3bb9f1(_0x252b2e([0x56,0x61,0x6c,0x69,0x64]));_0x4354f3(),_0x4c6958[_0x252b2e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d29ac=!0x1;const _0x127a23=_0x558fd9();function _0x2198a9(_0x5b46fa){return!!_0x5b46fa&&(typeof _0x5b46fa===_0x252b2e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b46fa===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b46fa[_0x252b2e([0x74,0x68,0x65,0x6e])]===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b46fa[_0x252b2e([0x63,0x61,0x74,0x63,0x68])]===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f217c(_0xf5682f){_0x4d51fd(_0xf5682f)[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x2d5783=>{if(!_0x2d5783||_0x2d5783[_0x252b2e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x252b2e([0x6f,0x6b]))return _0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b1440(_0x1765b9(_0x127a23+_0xa0648e))!=_0x2d5783[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x252b2e([0x56,0x61,0x6c,0x69,0x64]);})[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x17cb1f=>(_0x396990(),_0x17cb1f),()=>{const _0x4ae8ac=_0xc78bc();return null==_0x4ae8ac?(_0x396990(),_0x252b2e([0x56,0x61,0x6c,0x69,0x64])):_0x252b2e(_0x6dab04-_0x4ae8ac>(0x63ae0106^_0x313922)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x3bb9f1)[_0x252b2e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a9325=0x47946b86^_0x313922;function _0x396990(){const _0x34cc6c=_0x252b2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1440(_0x1765b9(_0x2f4dcb)),_0x2749a5=_0x6ef400(_0x3b1440(window[_0x252b2e([0x4d,0x61,0x74,0x68])][_0x252b2e([0x63,0x65,0x69,0x6c])](_0x6dab04/_0x5a9325)));window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x252b2e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34cc6c,_0x2749a5);}function _0xc78bc(){const _0x4300af=_0x252b2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1440(_0x1765b9(_0x2f4dcb)),_0x484549=window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x252b2e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4300af);return _0x484549?window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6ef400(_0x484549),0x10)*_0x5a9325:null;}function _0x4d51fd(_0x332eeb){return new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x196051,_0xaf8dad)=>{_0x332eeb[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x196051,_0xaf8dad),window[_0x252b2e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaf8dad,0x47a351c6^_0x313922);});}}_0x4c6958[_0x252b2e([0x6f,0x6e])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb241e1,_0x20b5c7)=>{if(_0x20b5c7[0x0]!=_0x2f4dcb)return _0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20b5c7[0x1]={..._0x20b5c7[0x1],[_0x252b2e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x127a23};},{[_0x252b2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x252b2e([0x68,0x69,0x67,0x68])}),_0x4c6958[_0x252b2e([0x6f,0x6e])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc0c77a=>{_0x2198a9(_0xc0c77a[_0x252b2e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d29ac=!0x0,_0x3f217c(_0xc0c77a[_0x252b2e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x252b2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x252b2e([0x6c,0x6f,0x77])}),_0x19f7b4[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>{_0x1d29ac||_0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16aff2(){return _0x4c6958[_0x252b2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x252b2e([0x76,0x69,0x65,0x77])][_0x252b2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x252b2e([0x61,0x75,0x74,0x6f]);}function _0x4354f3(){_0x4c6958[_0x252b2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x252b2e([0x76,0x69,0x65,0x77])][_0x252b2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x252b2e([0x61,0x75,0x74,0x6f]);}}function _0x3f5587(_0x906b1e){const _0xa1519b=[new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x355942=>setTimeout(_0x355942,0x47abbbca^_0x313922)),_0x19f7b4[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28ff7e=>{let _0x29ab0e=0x0;_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x6f,0x6e])](_0x252b2e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35d2c5,_0x4d3caa)=>{_0x4d3caa[0x0][_0x252b2e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29ab0e++,_0x29ab0e==(0x47a284fe^_0x313922)&&(_0x28ff7e(),_0x35d2c5[_0x252b2e([0x6f,0x66,0x66])]());});}))];return window[_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x252b2e([0x72,0x61,0x63,0x65])](_0xa1519b)[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>_0x906b1e);}async function _0x1d5d80(){await _0x19f7b4,_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d2e8c,_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d2e8c,_0x4c6958[_0x252b2e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3aaac3(_0x1cf733){const _0x554986=_0x2dfa86();_0x4c6958[_0x554986]=_0x252b2e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cf733,_0x1cf733!=_0x252b2e([0x56,0x61,0x6c,0x69,0x64])&&_0x1d5d80();}function _0x2dfa86(){const _0x8bfc92=window[_0x252b2e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x252b2e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x252b2e([0x6e,0x6f,0x77])]())[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x252b2e([0x2e]),'');let _0x3b9756=_0x252b2e([0x75]);for(let _0x19bebe=0x0;_0x19bebe<_0x8bfc92[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19bebe+=0x2){let _0x3f42c5=window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bfc92[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19bebe,_0x19bebe+0x2));_0x3f42c5>=_0x4f59f2[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f42c5-=_0x4f59f2[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b9756+=_0x4f59f2[_0x3f42c5];}return _0x3b9756;}function _0x456ba2(){const _0x348fd3=_0x43fe15[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e]));if(0x3!=_0x348fd3[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fe9ad(_0x348fd3[0x1]);function _0x4fe9ad(_0xe21db9){const _0x93bc77=_0x5170c4(_0xe21db9);return _0x93bc77&&_0x449d56()?_0x93bc77:null;function _0x449d56(){const _0x287cf1=_0x93bc77[_0x252b2e([0x6a,0x74,0x69])],_0x26e112=window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287cf1[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x287cf1[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51bab7={..._0x93bc77,[_0x252b2e([0x6a,0x74,0x69])]:_0x287cf1[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x287cf1[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51bab7[_0x252b2e([0x76,0x63])],_0x1765b9(_0x51bab7)==_0x26e112;}}}async function _0x22815e(){let _0x16c800=!0x0;try{const _0x5b3219=_0x43fe15[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e])),[_0x848c3a,_0x5b81e9,_0x5a2f51]=_0x5b3219;return _0x54172c(_0x848c3a),await _0x5e627c(_0x848c3a,_0x5b81e9,_0x5a2f51),_0x16c800;}catch{return!0x1;}function _0x54172c(_0x311ff9){const _0x965626=_0x5170c4(_0x311ff9);_0x965626&&_0x965626[_0x252b2e([0x61,0x6c,0x67])]==_0x252b2e([0x45,0x53,0x32,0x35,0x36])||(_0x16c800=!0x1);}async function _0x5e627c(_0x31619d,_0x1da295,_0x278745){const _0x4d8329=window[_0x252b2e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x252b2e([0x66,0x72,0x6f,0x6d])](_0x129f95(_0x278745),_0x5d3900=>_0x5d3900[_0x252b2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c4442=new window[(_0x252b2e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x252b2e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31619d+_0x252b2e([0x2e])+_0x1da295),_0x23e185=window[_0x252b2e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x252b2e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23e185)return;const _0x23fa4d=await _0x23e185[_0x252b2e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x252b2e([0x6a,0x77,0x6b]),_0x1bb53c,{[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x45,0x43,0x44,0x53,0x41]),[_0x252b2e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x252b2e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23e185[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x45,0x43,0x44,0x53,0x41]),[_0x252b2e([0x68,0x61,0x73,0x68])]:{[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23fa4d,_0x4d8329,_0x1c4442)||(_0x16c800=!0x1);}}function _0x5170c4(_0x2960f5){return _0x2960f5[_0x252b2e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x252b2e([0x65,0x79]))?JSON[_0x252b2e([0x70,0x61,0x72,0x73,0x65])](_0x129f95(_0x2960f5)):null;}function _0x129f95(_0x520796){return window[_0x252b2e([0x61,0x74,0x6f,0x62])](_0x520796[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x252b2e([0x2b]))[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x252b2e([0x2f])));}function _0x1765b9(_0x137abc){let _0x5920ea=0x1505;function _0x5c2eba(_0x782214){for(let _0x153ce9=0x0;_0x153ce9<_0x782214[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x153ce9++){const _0x493db0=_0x782214[_0x252b2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x153ce9);_0x5920ea=(_0x5920ea<<0x5)+_0x5920ea+_0x493db0,_0x5920ea&=_0x5920ea;}}function _0x428771(_0x3bcb10){Array[_0x252b2e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3bcb10)?_0x3bcb10[_0x252b2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x428771):_0x3bcb10&&typeof _0x3bcb10==_0x252b2e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x252b2e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3bcb10)[_0x252b2e([0x73,0x6f,0x72,0x74])]()[_0x252b2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11b182,_0x2b0638])=>{_0x5c2eba(_0x11b182),_0x428771(_0x2b0638);}):_0x5c2eba(window[_0x252b2e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3bcb10));}return _0x428771(_0x137abc),_0x5920ea>>>0x0;}function _0x3b1440(_0x37a455){return _0x37a455[_0x252b2e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x252b2e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x252b2e([0x30]));}function _0x6ef400(_0x27ede2){return _0x27ede2[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x252b2e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x252b2e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d2e8c(){}function _0x252b2e(_0x1df15d){return _0x1df15d['map'](_0x4c2b5d=>String['fromCharCode'](_0x4c2b5d))['join']('');}_0x3aaac3(await _0x38c41e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x227f3e){const {plugins:_0x4a3d15,editing:_0x2e810b,model:_0x326bd1}=this['editor'],_0x1f95dc=_0x4a3d15['get'](_0x2629f8)['getFootnote'](_0x227f3e);return!!_0x1f95dc&&(_0x326bd1['change'](_0x16e0c3=>{_0x16e0c3['setSelection'](_0x16e0c3['createPositionAt'](_0x1f95dc['definition'],'end'));}),_0x2e810b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2db42d){const {plugins:_0x579efd,editing:_0x144b16,model:_0x4c8709}=this['editor'],_0x29e75a=_0x579efd['get'](_0x2629f8)['getFootnote'](_0x2db42d);return!!_0x29e75a&&(_0x4c8709['change'](_0x2ff1c4=>{_0x2ff1c4['setSelection'](_0x29e75a['reference'],'on');}),_0x144b16['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x19e54f}=this['editor']['model'],_0x13648d=this['editor']['config']['get']('footnotes.multiBlock');_0x19e54f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x19e54f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x19e54f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x13648d?_0x19e54f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x19e54f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x19e54f['addChildCheck'](_0x1b54eb=>{for(const _0x2f6bae of _0x1b54eb)if('footnoteDefinition'===_0x2f6bae['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5d3ca1}=this,{conversion:_0x299eb4,editing:_0x2995da}=_0x5d3ca1,{t:t}=_0x5d3ca1['locale'];_0x299eb4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x582b94,{writer:_0x258b55,consumable:_0x5072d6})=>{const _0x3e198b=_0x582b94['getChild'](0x0);if(!_0x3e198b||!_0x3e198b['is']('element','a'))return null;const _0x414aaa=_0x3e198b['getAttribute']('href')||'';if(!_0x414aaa['startsWith']('#'))return null;const _0x2c3e6a=_0x414aaa['replace'](/^#/,'');if(!_0x2c3e6a)return null;_0x5072d6['consume'](_0x3e198b,{'name':!0x0,'attributes':['href']});for(const {item:_0x1ad04e}of _0x2995da['view']['createRangeIn'](_0x3e198b))_0x1ad04e['is']('$textProxy')?_0x5072d6['consume'](_0x1ad04e['textNode'],{'name':!0x0}):_0x1ad04e['is']('element')&&_0x5072d6['consume'](_0x1ad04e,{'name':!0x0});return _0x258b55['createElement']('footnoteRef',{'footnoteId':_0x2c3e6a});}}),_0x299eb4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19bc01,{writer:_0x5c6c9b})=>D(_0x19bc01,_0x5c6c9b)}),_0x299eb4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5632d0,{writer:_0x4a9eff})=>{const _0x7bf603=_0x5632d0['getAttribute']('footnoteCounter');return _0x5685ec(D(_0x5632d0,_0x4a9eff),_0x4a9eff,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x7bf603)});}});}['_defineDefinitionsConverters'](){const {editor:_0x15e60d}=this,{t:t}=_0x15e60d['locale'],{conversion:_0x16edd4}=_0x15e60d;_0x16edd4['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x16edd4['for']('upcast')['add'](_0xca531a=>{_0xca531a['on']('element:ol',(_0x345c1e,_0x13e2cc,_0x3ff56c)=>{const _0xa85229=_0x13e2cc['viewItem'];if(!_0xa85229['hasClass']('footnotes-list')||!_0x13e2cc['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3ff56c['consumable']['consume'](_0xa85229,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x50869e,modelCursor:_0x34b3e1}=_0x3ff56c['convertChildren'](_0x13e2cc['viewItem'],_0x13e2cc['modelCursor']);_0x13e2cc['modelRange']=_0x50869e,_0x13e2cc['modelCursor']=_0x34b3e1;}),_0xca531a['on']('element:hr',(_0x5d3e0a,_0x1ad08c,_0xf1da1)=>{const _0x493e6e=_0x1ad08c['viewItem'];_0x493e6e['hasClass']('footnotes-divider')&&_0x1ad08c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xf1da1['consumable']['consume'](_0x493e6e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x16edd4['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2bcbe1,{writer:_0x1a6a9b})=>v(_0x1a6a9b)}),_0x16edd4['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x56903b,{writer:_0x19302c})=>{const _0x45e5f1=v(_0x19302c,{'data-footnotes-list-label':t('Footnotes')}),_0x56334=_0x5685ec(_0x45e5f1,_0x19302c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x19302c['setCustomProperty']('footnotesDefinitions',!0x0,_0x56334),_0x56334;}});}['_defineDefinitionConverters'](){const {editor:_0x476c46}=this,{conversion:_0x3f1261,locale:_0x3c6a9e}=_0x476c46,_0x502c22=_0x476c46['config']['get']('footnotes.multiBlock');_0x3f1261['for']('upcast')['add'](_0x2cbeb9=>{_0x2cbeb9['on']('element:li',(_0x49fe23,_0x5461f7,_0x251c63)=>{const _0x5b5018=_0x5461f7['viewItem'];if(!_0x5b5018['hasClass']('footnote-definition')||!_0x5b5018['getAttribute']('id'))return;const _0x37470d=_0x5b5018['parent'];if(!_0x37470d['is']('element','ol')||!_0x37470d['hasClass']('footnotes-list'))return;if(!_0x251c63['consumable']['test'](_0x5b5018,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x100ea2=_0x251c63['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5b5018['getAttribute']('id')});if(!_0x251c63['safeInsert'](_0x100ea2,_0x5461f7['modelCursor']))return;_0x251c63['consumable']['consume'](_0x5b5018,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x467973=Array['from'](_0x5b5018['getChildren']())['find'](_0x471093=>_0x471093['is']('element')&&_0x471093['hasClass']('footnote-content'));for(const _0x386d15 of _0x5b5018['getChildren']())_0x386d15['is']('element')&&(_0x251c63['consumable']['consume'](_0x386d15,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x251c63['consumable']['consume'](_0x386d15,{'name':!0x0,'classes':'footnote-content'}));if(_0x467973){if(_0x502c22)_0x251c63['convertChildren'](_0x467973,_0x100ea2);else{const _0x4c5368=_0x251c63['writer']['createElement']('footnoteInlineContent');_0x251c63['writer']['insert'](_0x4c5368,_0x100ea2),_0x251c63['convertChildren'](_0x467973,_0x4c5368);}}_0x251c63['updateConversionResult'](_0x100ea2,_0x5461f7);});}),_0x3f1261['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d860f,{writer:_0x42ce16})=>b(_0x4d860f,_0x42ce16,_0x3c6a9e,{'dataPipeline':!0x0})}),_0x3f1261['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3534d5,{writer:_0x59a45f})=>b(_0x3534d5,_0x59a45f,_0x3c6a9e)});}['_defineBogusParagraphConverters'](){const {editor:_0x1f6fb8}=this,{conversion:_0xb2f9b6}=_0x1f6fb8;_0x1f6fb8['config']['get']('footnotes.multiBlock')?(_0xb2f9b6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0xb2f9b6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1f6fb8['model']['document'],'change:data',()=>{!function(_0x199dd7,_0x3d983b){const _0x463a3a=_0x199dd7['document']['differ'],_0x264976=new Set();for(const _0x13b12a of _0x463a3a['getChanges']()){const _0x38ae4c='attribute'==_0x13b12a['type']?_0x13b12a['range']['start']['parent']:_0x13b12a['position']['parent'];_0x38ae4c['is']('element','footnoteDefinition')&&_0x264976['add'](_0x38ae4c);}for(const _0x2627b1 of _0x264976['values']()){const _0x3f9d3b=Array['from'](_0x2627b1['getChildren']())['filter'](_0x1c34a4=>g(_0x1c34a4,_0x3d983b['mapper']));for(const _0x2b0d2f of _0x3f9d3b)_0x3d983b['reconvertItem'](_0x2b0d2f);}}(_0x1f6fb8['model'],_0x1f6fb8['editing']);})):(_0xb2f9b6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0xb2f9b6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xad51ac,{writer:_0x588d34})=>{const _0x23b082=_0x588d34['createContainerElement']('span');return _0x588d34['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23b082),_0x23b082;}}));}['_defineKeyboardHandlers'](){const {editor:_0x455ff4}=this,{editing:_0x3d726f,t:t}=_0x455ff4,_0x808375=_0x455ff4['model']['document']['selection'];_0x455ff4['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x455ff4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3d726f['view']['document'],'enter',(_0x46f22a,_0x2b873a)=>{const _0x2cae1d=function(_0x5afb98){const _0x578e00=_0x5afb98['getSelectedElement']();if(_0x578e00?.['is']('element','footnoteRef'))return _0x578e00;return null;}(_0x808375);if(_0x2cae1d){const _0x393cf3=_0x2cae1d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x393cf3),_0x2b873a['preventDefault'](),_0x46f22a['stop']();}},{'context':_0x47223d});}['_defineClickHandlers'](){const {editor:_0x23b5f5}=this,{editing:_0x41ccce}=_0x23b5f5;_0x23b5f5['editing']['view']['addObserver'](_0x4e57fa),_0x23b5f5['editing']['view']['addObserver'](_0x19db40);let _0x5d23a1=!0x1;this['listenTo'](_0x41ccce['view']['document'],'pointerdown',(_0x5a3e63,_0x1780af)=>{const {target:_0x559031}=_0x1780af,_0x23e875=_0x41ccce['view']['document']['selection'];_0x5d23a1=!!(_0x559031?.['is']('element','a')&&_0x559031['parent']?.['is']('element','sup')&&_0x559031['parent']['hasClass']('footnote'))&&_0x23e875['getSelectedElement']()===_0x559031['parent'];},{'priority':'high'}),this['listenTo'](_0x41ccce['view']['document'],'click',(_0x434e06,_0x582453)=>{const {target:_0x45d508}=_0x582453;if(!_0x45d508?.['is']('element','a'))return;if(_0x45d508['parent']?.['is']('element','sup')&&_0x45d508['parent']['hasClass']('footnote')&&!_0x5d23a1)return void _0x582453['preventDefault']();let _0x802921=_0x45d508['getAttribute']('href');if(!_0x802921?.['startsWith']('#'))return;_0x802921=_0x802921['slice'](0x1);let _0x45d85c=!0x1;(_0x802921['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x802921['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x802921))&&(_0x45d85c=!0x0),_0x45d85c&&(_0x582453['preventDefault'](),_0x434e06['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1c0a0e}={}){return(_0x1b7006,{writer:_0x219937})=>{if(!p(_0x1b7006))return null;if(!_0x1c0a0e)return _0x219937['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x12c844=_0x219937['createContainerElement']('p');return _0x219937['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x12c844),_0x12c844;};}function p(_0x116abd){const {parent:_0x1e6aa3}=_0x116abd;if(!_0x1e6aa3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e6aa3['childCount'])return!0x1;for(const _0x35080d of _0x116abd['getAttributeKeys']())if(!_0x35080d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x35080d)return!0x1;return!0x0;}function g(_0x60fb50,_0xd406bd){if(!_0x60fb50['is']('element','paragraph'))return!0x1;const _0x390402=_0xd406bd['toViewElement'](_0x60fb50);return!!_0x390402&&p(_0x60fb50)!==_0x390402['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x45de52){return _0x47223d(_0x45de52)&&_0x45de52['is']('containerElement')&&!!_0x45de52['getCustomProperty']('footnotesDefinitions');}function v(_0x461fe9,_0x38f876={}){const _0x560f5b=_0x461fe9['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1175de=_0x461fe9['createContainerElement']('ol',{'class':'footnotes-list'},_0x461fe9['createSlot']());return _0x461fe9['createContainerElement']('div',{'class':'footnotes',..._0x38f876},[_0x560f5b,_0x1175de]);}function D(_0x598a8a,_0x45289d){const _0xabf224=_0x598a8a['getAttribute']('footnoteId'),_0x20502a=_0x598a8a['getAttribute']('footnoteCounter'),_0x2c64d4=_0x45289d['createUIElement']('a',{'href':'#'+_0xabf224},function(_0x2b0c3f){const _0x33bf38=this['toDomElement'](_0x2b0c3f);return _0x33bf38['textContent']=_0x20502a,_0x33bf38;}),_0xff1632=_0x45289d['createContainerElement']('sup',{'id':'ref-'+_0xabf224,'class':'footnote'},[_0x2c64d4]);return _0xff1632['getFillerOffset']=()=>null,_0xff1632;}function b(_0x388d71,_0x2c4dc0,_0x124716,{dataPipeline:_0x574735}={}){const {t:t}=_0x124716,_0x4b6749=_0x388d71['getAttribute']('footnoteId'),_0xfbe56a=_0x2c4dc0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4b6749},function(_0x66dc8a){const _0x4b5f42=this['toDomElement'](_0x66dc8a);return _0x4b5f42['innerText']='^',_0x4b5f42;}),_0x2d4f5a=_0x574735?_0x2c4dc0['createContainerElement']('div',{'class':'footnote-content'}):_0x290171(_0x2c4dc0['createEditableElement']('div',{'class':'footnote-content'}),_0x2c4dc0,{'label':t('Footnote\x20content.')});return _0x2c4dc0['insert'](_0x2c4dc0['createPositionAt'](_0x2d4f5a,0x0),_0x2c4dc0['createSlot']()),_0x2c4dc0['createContainerElement']('li',{'class':'footnote-definition','id':_0x4b6749},[_0xfbe56a,_0x2d4f5a]);}
|
|
23
|
+
import{Plugin as _0x1f344f}from'ckeditor5/src/core.js';import{isWidget as _0x5c9129,toWidget as _0x5aa439,toWidgetEditable as _0x3e2a90}from'ckeditor5/src/widget.js';import{uid as _0x54ee1f}from'ckeditor5/src/utils.js';import{PointerObserver as _0x6e41c8,ClickObserver as _0x3a1dd9}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x439586}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x47a51d}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1f344f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x439586];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x14ba04}=this;_0x14ba04['config']['define']('footnotes.multiBlock',!0x0),_0x14ba04['commands']['add']('insertFootnote',new _0x47a51d(_0x14ba04)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d61a7){const _0x311c84=_0x227f57([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x496d64=0x47a28506,_0x3c558d=0x47a5f916^_0x496d64,_0x3cbae0=window[_0x227f57([0x44,0x61,0x74,0x65])][_0x227f57([0x6e,0x6f,0x77])](),_0x267605=_0x4d61a7[_0x227f57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ac830=new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d51c1=>{_0x267605[_0x227f57([0x6f,0x6e,0x63,0x65])](_0x227f57([0x72,0x65,0x61,0x64,0x79]),_0x2d51c1);}),_0x4f4125={[_0x227f57([0x6b,0x74,0x79])]:_0x227f57([0x45,0x43]),[_0x227f57([0x75,0x73,0x65])]:_0x227f57([0x73,0x69,0x67]),[_0x227f57([0x63,0x72,0x76])]:_0x227f57([0x50,0x2d,0x32,0x35,0x36]),[_0x227f57([0x78])]:_0x227f57([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x227f57([0x79])]:_0x227f57([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x227f57([0x61,0x6c,0x67])]:_0x227f57([0x45,0x53,0x32,0x35,0x36])},_0x3813c6=_0x267605[_0x227f57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x227f57([0x67,0x65,0x74])](_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3eab23(){let _0x45ab3f,_0x1f51aa=null,_0x5ce4b7=null;try{if(_0x3813c6==_0x227f57([0x47,0x50,0x4c]))return _0x227f57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45ab3f=_0xe00a4e(),!_0x45ab3f)return _0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45ab3f[_0x227f57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ce4b7=_0x3f8e0b(_0x45ab3f[_0x227f57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45ab3f[_0x227f57([0x6a,0x74,0x69])])),await _0x488367()?_0x5a9e36()?_0x5380b8()?_0x227f57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d56ae()?(_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x227f57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f51aa=_0x136f3e(_0x227f57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x227f57([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f51aa=_0x136f3e(_0x227f57([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x477196()):_0x227f57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x227f57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5380b8(){const _0x2c938c=[_0x227f57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x227f57([0x74,0x72,0x69,0x61,0x6c])][_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cbae0/0x3e8:0xe10*_0x3c558d;return _0x45ab3f[_0x227f57([0x65,0x78,0x70])]<_0x2c938c;}function _0x5a9e36(){const _0xfb9409=_0x45ab3f[_0x227f57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xfb9409&&(!!_0xfb9409[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x2a]))||!!_0xfb9409[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x46,0x4f,0x4f])));}function _0x1d56ae(){const _0x359286=_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x359286||0x0==_0x359286[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c7ddf}=new URL(window[_0x227f57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x359286[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7ddf))return!0x0;const _0x460de9=_0x4c7ddf[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e]));return _0x359286[_0x227f57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9f3463=>_0x9f3463[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x2a])))[_0x227f57([0x6d,0x61,0x70])](_0x2e04b0=>_0x2e04b0[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e])))[_0x227f57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41d62f=>_0x41d62f[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x460de9[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x227f57([0x6d,0x61,0x70])](_0xbf19fd=>Array(_0x460de9[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbf19fd[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x227f57([0x66,0x69,0x6c,0x6c])](_0xbf19fd[0x0]===_0x227f57([0x2a])?_0x227f57([0x2a]):'')[_0x227f57([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbf19fd))[_0x227f57([0x73,0x6f,0x6d,0x65])](_0x2ce355=>_0x460de9[_0x227f57([0x65,0x76,0x65,0x72,0x79])]((_0x2d946e,_0x5224ae)=>_0x2ce355[_0x5224ae]===_0x2d946e||_0x2ce355[_0x5224ae]===_0x227f57([0x2a])));}function _0x477196(){return _0x1f51aa&&_0x5ce4b7?new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35f3e6,_0x4beabd)=>{_0x1f51aa[_0x227f57([0x74,0x68,0x65,0x6e])](_0x35f3e6,_0x4beabd),_0x5ce4b7[_0x227f57([0x74,0x68,0x65,0x6e])](_0x2a047f=>{_0x2a047f!=_0x227f57([0x56,0x61,0x6c,0x69,0x64])&&_0x35f3e6(_0x2a047f);},_0x4beabd);}):_0x1f51aa||_0x5ce4b7||_0x227f57([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f8e0b(_0x191b38,_0x1e70a9){return new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cd340=>{if(_0x556f25())return _0x1cd340(_0x227f57([0x56,0x61,0x6c,0x69,0x64]));_0x48f9d6(),_0x267605[_0x227f57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40d24a=!0x1;const _0x29e03d=_0x54ee1f();function _0x5324b5(_0x21a47b){return!!_0x21a47b&&(typeof _0x21a47b===_0x227f57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21a47b===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21a47b[_0x227f57([0x74,0x68,0x65,0x6e])]===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21a47b[_0x227f57([0x63,0x61,0x74,0x63,0x68])]===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1bf957(_0x9344d8){_0x4b7d51(_0x9344d8)[_0x227f57([0x74,0x68,0x65,0x6e])](_0x355279=>{if(!_0x355279||_0x355279[_0x227f57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x227f57([0x6f,0x6b]))return _0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x416cb2(_0x1b6bdc(_0x29e03d+_0x1e70a9))!=_0x355279[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x227f57([0x56,0x61,0x6c,0x69,0x64]);})[_0x227f57([0x74,0x68,0x65,0x6e])](_0x1a789c=>(_0x252e00(),_0x1a789c),()=>{const _0x32626=_0x557afd();return null==_0x32626?(_0x252e00(),_0x227f57([0x56,0x61,0x6c,0x69,0x64])):_0x227f57(_0x3cbae0-_0x32626>(0x63ae0106^_0x496d64)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x227f57([0x74,0x68,0x65,0x6e])](_0x1cd340)[_0x227f57([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x380f4c=0x47946b86^_0x496d64;function _0x252e00(){const _0x2910d7=_0x227f57([0x6c,0x6c,0x63,0x74,0x2d])+_0x416cb2(_0x1b6bdc(_0x191b38)),_0x5abb6e=_0x49f000(_0x416cb2(window[_0x227f57([0x4d,0x61,0x74,0x68])][_0x227f57([0x63,0x65,0x69,0x6c])](_0x3cbae0/_0x380f4c)));window[_0x227f57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x227f57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2910d7,_0x5abb6e);}function _0x557afd(){const _0x1d0734=_0x227f57([0x6c,0x6c,0x63,0x74,0x2d])+_0x416cb2(_0x1b6bdc(_0x191b38)),_0x50566a=window[_0x227f57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x227f57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d0734);return _0x50566a?window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f000(_0x50566a),0x10)*_0x380f4c:null;}function _0x4b7d51(_0x1e9263){return new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4212f5,_0x2abcf4)=>{_0x1e9263[_0x227f57([0x74,0x68,0x65,0x6e])](_0x4212f5,_0x2abcf4),window[_0x227f57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2abcf4,0x47a351c6^_0x496d64);});}}_0x267605[_0x227f57([0x6f,0x6e])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21abf4,_0x526dd9)=>{if(_0x526dd9[0x0]!=_0x191b38)return _0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x526dd9[0x1]={..._0x526dd9[0x1],[_0x227f57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29e03d};},{[_0x227f57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x227f57([0x68,0x69,0x67,0x68])}),_0x267605[_0x227f57([0x6f,0x6e])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6c670b=>{_0x5324b5(_0x6c670b[_0x227f57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40d24a=!0x0,_0x1bf957(_0x6c670b[_0x227f57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x227f57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x227f57([0x6c,0x6f,0x77])}),_0x3ac830[_0x227f57([0x74,0x68,0x65,0x6e])](()=>{_0x40d24a||_0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x556f25(){return _0x267605[_0x227f57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x227f57([0x76,0x69,0x65,0x77])][_0x227f57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x227f57([0x61,0x75,0x74,0x6f]);}function _0x48f9d6(){_0x267605[_0x227f57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x227f57([0x76,0x69,0x65,0x77])][_0x227f57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x227f57([0x61,0x75,0x74,0x6f]);}}function _0x136f3e(_0x355683){const _0x5edead=[new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365de7=>setTimeout(_0x365de7,0x47abbbca^_0x496d64)),_0x3ac830[_0x227f57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x504ab5=>{let _0x57d4da=0x0;_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x6f,0x6e])](_0x227f57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x258947,_0x1d6af2)=>{_0x1d6af2[0x0][_0x227f57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57d4da++,_0x57d4da==(0x47a284fe^_0x496d64)&&(_0x504ab5(),_0x258947[_0x227f57([0x6f,0x66,0x66])]());});}))];return window[_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x227f57([0x72,0x61,0x63,0x65])](_0x5edead)[_0x227f57([0x74,0x68,0x65,0x6e])](()=>_0x355683);}async function _0x23c1a5(){await _0x3ac830,_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ca3e8,_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ca3e8,_0x267605[_0x227f57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x227f57([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37475f(_0x4e6dcc){const _0x4682b9=_0x142de9();_0x267605[_0x4682b9]=_0x227f57([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e6dcc,_0x4e6dcc!=_0x227f57([0x56,0x61,0x6c,0x69,0x64])&&_0x23c1a5();}function _0x142de9(){const _0x22079d=window[_0x227f57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x227f57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x227f57([0x6e,0x6f,0x77])]())[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x227f57([0x2e]),'');let _0x312ae0=_0x227f57([0x75]);for(let _0x2e7fbb=0x0;_0x2e7fbb<_0x22079d[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7fbb+=0x2){let _0x3e4888=window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22079d[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7fbb,_0x2e7fbb+0x2));_0x3e4888>=_0x311c84[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e4888-=_0x311c84[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x312ae0+=_0x311c84[_0x3e4888];}return _0x312ae0;}function _0xe00a4e(){const _0x410f42=_0x3813c6[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e]));if(0x3!=_0x410f42[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a2863(_0x410f42[0x1]);function _0x2a2863(_0x26f1b5){const _0x2494bd=_0xccc5c1(_0x26f1b5);return _0x2494bd&&_0x410628()?_0x2494bd:null;function _0x410628(){const _0x3049f0=_0x2494bd[_0x227f57([0x6a,0x74,0x69])],_0x5e55e1=window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3049f0[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3049f0[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2df955={..._0x2494bd,[_0x227f57([0x6a,0x74,0x69])]:_0x3049f0[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3049f0[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2df955[_0x227f57([0x76,0x63])],_0x1b6bdc(_0x2df955)==_0x5e55e1;}}}async function _0x488367(){let _0x3a79a8=!0x0;try{const _0x5965f3=_0x3813c6[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e])),[_0x1e8c9d,_0x319bef,_0x1f3776]=_0x5965f3;return _0x4e187f(_0x1e8c9d),await _0x8f9ac7(_0x1e8c9d,_0x319bef,_0x1f3776),_0x3a79a8;}catch{return!0x1;}function _0x4e187f(_0x3acc6b){const _0x1d161d=_0xccc5c1(_0x3acc6b);_0x1d161d&&_0x1d161d[_0x227f57([0x61,0x6c,0x67])]==_0x227f57([0x45,0x53,0x32,0x35,0x36])||(_0x3a79a8=!0x1);}async function _0x8f9ac7(_0x170662,_0xa94b5e,_0x319e2a){const _0x4fd845=window[_0x227f57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x227f57([0x66,0x72,0x6f,0x6d])](_0x3dc519(_0x319e2a),_0x27cc09=>_0x27cc09[_0x227f57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39f84b=new window[(_0x227f57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x227f57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x170662+_0x227f57([0x2e])+_0xa94b5e),_0x16ff4d=window[_0x227f57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x227f57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16ff4d)return;const _0x149a54=await _0x16ff4d[_0x227f57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x227f57([0x6a,0x77,0x6b]),_0x4f4125,{[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x45,0x43,0x44,0x53,0x41]),[_0x227f57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x227f57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16ff4d[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x45,0x43,0x44,0x53,0x41]),[_0x227f57([0x68,0x61,0x73,0x68])]:{[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x149a54,_0x4fd845,_0x39f84b)||(_0x3a79a8=!0x1);}}function _0xccc5c1(_0x3e16ed){return _0x3e16ed[_0x227f57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x227f57([0x65,0x79]))?JSON[_0x227f57([0x70,0x61,0x72,0x73,0x65])](_0x3dc519(_0x3e16ed)):null;}function _0x3dc519(_0x166343){return window[_0x227f57([0x61,0x74,0x6f,0x62])](_0x166343[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x227f57([0x2b]))[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x227f57([0x2f])));}function _0x1b6bdc(_0x4e9f23){let _0x32ae05=0x1505;function _0x4815a1(_0x2420c8){for(let _0x3e2eb5=0x0;_0x3e2eb5<_0x2420c8[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e2eb5++){const _0x3cc65d=_0x2420c8[_0x227f57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e2eb5);_0x32ae05=(_0x32ae05<<0x5)+_0x32ae05+_0x3cc65d,_0x32ae05&=_0x32ae05;}}function _0x327ee7(_0x4b85bf){Array[_0x227f57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b85bf)?_0x4b85bf[_0x227f57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x327ee7):_0x4b85bf&&typeof _0x4b85bf==_0x227f57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x227f57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b85bf)[_0x227f57([0x73,0x6f,0x72,0x74])]()[_0x227f57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x352d28,_0x3201f0])=>{_0x4815a1(_0x352d28),_0x327ee7(_0x3201f0);}):_0x4815a1(window[_0x227f57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b85bf));}return _0x327ee7(_0x4e9f23),_0x32ae05>>>0x0;}function _0x416cb2(_0x2d4cad){return _0x2d4cad[_0x227f57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x227f57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x227f57([0x30]));}function _0x49f000(_0x3f3cfa){return _0x3f3cfa[_0x227f57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x227f57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x227f57([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ca3e8(){}function _0x227f57(_0xdec157){return _0xdec157['map'](_0x4dd10c=>String['fromCharCode'](_0x4dd10c))['join']('');}_0x37475f(await _0x3eab23());}(this);}['_moveSelectionToFootnoteDefinition'](_0x43cf25){const {plugins:_0x38164b,editing:_0x5a760f,model:_0x57274d}=this['editor'],_0x266794=_0x38164b['get'](_0x439586)['getFootnote'](_0x43cf25);return!!_0x266794&&(_0x57274d['change'](_0x2be186=>{_0x2be186['setSelection'](_0x2be186['createPositionAt'](_0x266794['definition'],'end'));}),_0x5a760f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xd49544){const {plugins:_0x1b3c97,editing:_0x437cfd,model:_0x27b912}=this['editor'],_0x2b4423=_0x1b3c97['get'](_0x439586)['getFootnote'](_0xd49544);return!!_0x2b4423&&(_0x27b912['change'](_0x5edd0d=>{_0x5edd0d['setSelection'](_0x2b4423['reference'],'on');}),_0x437cfd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2c6b65}=this['editor']['model'],_0x5832a5=this['editor']['config']['get']('footnotes.multiBlock');_0x2c6b65['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2c6b65['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2c6b65['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5832a5?_0x2c6b65['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2c6b65['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2c6b65['addChildCheck'](_0x231e82=>{for(const _0x4c922f of _0x231e82)if('footnoteDefinition'===_0x4c922f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x22d733}=this,{conversion:_0x326df9,editing:_0xfd0743}=_0x22d733,{t:t}=_0x22d733['locale'];_0x326df9['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x231a4e,{writer:_0x129532,consumable:_0x557fa5})=>{const _0x328f93=_0x231a4e['getChild'](0x0);if(!_0x328f93||!_0x328f93['is']('element','a'))return null;const _0x4332f4=_0x328f93['getAttribute']('href')||'';if(!_0x4332f4['startsWith']('#'))return null;const _0xa87f13=_0x4332f4['replace'](/^#/,'');if(!_0xa87f13)return null;_0x557fa5['consume'](_0x328f93,{'name':!0x0,'attributes':['href']});for(const {item:_0x505d32}of _0xfd0743['view']['createRangeIn'](_0x328f93))_0x505d32['is']('$textProxy')?_0x557fa5['consume'](_0x505d32['textNode'],{'name':!0x0}):_0x505d32['is']('element')&&_0x557fa5['consume'](_0x505d32,{'name':!0x0});return _0x129532['createElement']('footnoteRef',{'footnoteId':_0xa87f13});}}),_0x326df9['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x591ad2,{writer:_0x54d9fc})=>D(_0x591ad2,_0x54d9fc)}),_0x326df9['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3081fe,{writer:_0x47253c})=>{const _0x3e44c3=_0x3081fe['getAttribute']('footnoteCounter');return _0x5aa439(D(_0x3081fe,_0x47253c),_0x47253c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3e44c3)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2a9a69}=this,{t:t}=_0x2a9a69['locale'],{conversion:_0x2821b0}=_0x2a9a69;_0x2821b0['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2821b0['for']('upcast')['add'](_0x27c656=>{_0x27c656['on']('element:ol',(_0x2421c3,_0x63466e,_0x30b58e)=>{const _0x1e796a=_0x63466e['viewItem'];if(!_0x1e796a['hasClass']('footnotes-list')||!_0x63466e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x30b58e['consumable']['consume'](_0x1e796a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x31ccb4,modelCursor:_0x55511d}=_0x30b58e['convertChildren'](_0x63466e['viewItem'],_0x63466e['modelCursor']);_0x63466e['modelRange']=_0x31ccb4,_0x63466e['modelCursor']=_0x55511d;}),_0x27c656['on']('element:hr',(_0x1b12a2,_0xb018aa,_0x46f15b)=>{const _0x2edd9d=_0xb018aa['viewItem'];_0x2edd9d['hasClass']('footnotes-divider')&&_0xb018aa['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x46f15b['consumable']['consume'](_0x2edd9d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2821b0['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1bc66f,{writer:_0x2427f6})=>v(_0x2427f6)}),_0x2821b0['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x949012,{writer:_0x506ac0})=>{const _0x3312eb=v(_0x506ac0,{'data-footnotes-list-label':t('Footnotes')}),_0x5d843d=_0x5aa439(_0x3312eb,_0x506ac0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x506ac0['setCustomProperty']('footnotesDefinitions',!0x0,_0x5d843d),_0x5d843d;}});}['_defineDefinitionConverters'](){const {editor:_0x1c633f}=this,{conversion:_0x1e445e,locale:_0x2837f4}=_0x1c633f,_0x5d56e6=_0x1c633f['config']['get']('footnotes.multiBlock');_0x1e445e['for']('upcast')['add'](_0x5970b3=>{_0x5970b3['on']('element:li',(_0x2e04ef,_0x3dcc00,_0x39507d)=>{const _0xcf1289=_0x3dcc00['viewItem'];if(!_0xcf1289['hasClass']('footnote-definition')||!_0xcf1289['getAttribute']('id'))return;const _0x28453c=_0xcf1289['parent'];if(!_0x28453c['is']('element','ol')||!_0x28453c['hasClass']('footnotes-list'))return;if(!_0x39507d['consumable']['test'](_0xcf1289,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xc27cea=_0x39507d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcf1289['getAttribute']('id')});if(!_0x39507d['safeInsert'](_0xc27cea,_0x3dcc00['modelCursor']))return;_0x39507d['consumable']['consume'](_0xcf1289,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3adda0=Array['from'](_0xcf1289['getChildren']())['find'](_0x421b00=>_0x421b00['is']('element')&&_0x421b00['hasClass']('footnote-content'));for(const _0x4655bd of _0xcf1289['getChildren']())_0x4655bd['is']('element')&&(_0x39507d['consumable']['consume'](_0x4655bd,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x39507d['consumable']['consume'](_0x4655bd,{'name':!0x0,'classes':'footnote-content'}));if(_0x3adda0){if(_0x5d56e6)_0x39507d['convertChildren'](_0x3adda0,_0xc27cea);else{const _0x37828b=_0x39507d['writer']['createElement']('footnoteInlineContent');_0x39507d['writer']['insert'](_0x37828b,_0xc27cea),_0x39507d['convertChildren'](_0x3adda0,_0x37828b);}}_0x39507d['updateConversionResult'](_0xc27cea,_0x3dcc00);});}),_0x1e445e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x46a906,{writer:_0x5874e4})=>b(_0x46a906,_0x5874e4,_0x2837f4,{'dataPipeline':!0x0})}),_0x1e445e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ec636,{writer:_0x34fafd})=>b(_0x4ec636,_0x34fafd,_0x2837f4)});}['_defineBogusParagraphConverters'](){const {editor:_0x9a0d6b}=this,{conversion:_0x27ba45}=_0x9a0d6b;_0x9a0d6b['config']['get']('footnotes.multiBlock')?(_0x27ba45['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x27ba45['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x9a0d6b['model']['document'],'change:data',()=>{!function(_0x449492,_0x35b00){const _0x2cf125=_0x449492['document']['differ'],_0x4934ee=new Set();for(const _0x4d3181 of _0x2cf125['getChanges']()){const _0x3b0479='attribute'==_0x4d3181['type']?_0x4d3181['range']['start']['parent']:_0x4d3181['position']['parent'];_0x3b0479['is']('element','footnoteDefinition')&&_0x4934ee['add'](_0x3b0479);}for(const _0x2078f7 of _0x4934ee['values']()){const _0x33907a=Array['from'](_0x2078f7['getChildren']())['filter'](_0x2ddc9d=>g(_0x2ddc9d,_0x35b00['mapper']));for(const _0x5ec992 of _0x33907a)_0x35b00['reconvertItem'](_0x5ec992);}}(_0x9a0d6b['model'],_0x9a0d6b['editing']);})):(_0x27ba45['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x27ba45['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5b0c07,{writer:_0x54e863})=>{const _0xb0d025=_0x54e863['createContainerElement']('span');return _0x54e863['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb0d025),_0xb0d025;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2782cd}=this,{editing:_0x237625,t:t}=_0x2782cd,_0x535a31=_0x2782cd['model']['document']['selection'];_0x2782cd['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2782cd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x237625['view']['document'],'enter',(_0x444fd6,_0x256252)=>{const _0x1a74d7=function(_0x41ead2){const _0x1f35bb=_0x41ead2['getSelectedElement']();if(_0x1f35bb?.['is']('element','footnoteRef'))return _0x1f35bb;return null;}(_0x535a31);if(_0x1a74d7){const _0x17ed49=_0x1a74d7['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x17ed49),_0x256252['preventDefault'](),_0x444fd6['stop']();}},{'context':_0x5c9129});}['_defineClickHandlers'](){const {editor:_0x2c17c6}=this,{editing:_0x14b3be}=_0x2c17c6;_0x2c17c6['editing']['view']['addObserver'](_0x6e41c8),_0x2c17c6['editing']['view']['addObserver'](_0x3a1dd9);let _0x22a679=!0x1;this['listenTo'](_0x14b3be['view']['document'],'pointerdown',(_0x500bc2,_0x10073e)=>{const {target:_0x2155b3}=_0x10073e,_0x2c6596=_0x14b3be['view']['document']['selection'];_0x22a679=!!(_0x2155b3?.['is']('element','a')&&_0x2155b3['parent']?.['is']('element','sup')&&_0x2155b3['parent']['hasClass']('footnote'))&&_0x2c6596['getSelectedElement']()===_0x2155b3['parent'];},{'priority':'high'}),this['listenTo'](_0x14b3be['view']['document'],'click',(_0x26870c,_0x4d275d)=>{const {target:_0x43ed20}=_0x4d275d;if(!_0x43ed20?.['is']('element','a'))return;if(_0x43ed20['parent']?.['is']('element','sup')&&_0x43ed20['parent']['hasClass']('footnote')&&!_0x22a679)return void _0x4d275d['preventDefault']();let _0x558624=_0x43ed20['getAttribute']('href');if(!_0x558624?.['startsWith']('#'))return;_0x558624=_0x558624['slice'](0x1);let _0x53b065=!0x1;(_0x558624['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x558624['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x558624))&&(_0x53b065=!0x0),_0x53b065&&(_0x4d275d['preventDefault'](),_0x26870c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x88e92c}={}){return(_0x3d12e1,{writer:_0xc06afb})=>{if(!p(_0x3d12e1))return null;if(!_0x88e92c)return _0xc06afb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4ab0ed=_0xc06afb['createContainerElement']('p');return _0xc06afb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4ab0ed),_0x4ab0ed;};}function p(_0xc2e9cf){const {parent:_0x10e661}=_0xc2e9cf;if(!_0x10e661?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x10e661['childCount'])return!0x1;for(const _0x39dabf of _0xc2e9cf['getAttributeKeys']())if(!_0x39dabf['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x39dabf)return!0x1;return!0x0;}function g(_0x415427,_0x13a75e){if(!_0x415427['is']('element','paragraph'))return!0x1;const _0x127dfa=_0x13a75e['toViewElement'](_0x415427);return!!_0x127dfa&&p(_0x415427)!==_0x127dfa['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1a4fa0){return _0x5c9129(_0x1a4fa0)&&_0x1a4fa0['is']('containerElement')&&!!_0x1a4fa0['getCustomProperty']('footnotesDefinitions');}function v(_0x489f0b,_0x3756d1={}){const _0x42de63=_0x489f0b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4d79aa=_0x489f0b['createContainerElement']('ol',{'class':'footnotes-list'},_0x489f0b['createSlot']());return _0x489f0b['createContainerElement']('div',{'class':'footnotes',..._0x3756d1},[_0x42de63,_0x4d79aa]);}function D(_0xd567c3,_0x5b0463){const _0x26e4aa=_0xd567c3['getAttribute']('footnoteId'),_0x5d9bf1=_0xd567c3['getAttribute']('footnoteCounter'),_0x4ac609=_0x5b0463['createUIElement']('a',{'href':'#'+_0x26e4aa},function(_0x1dfe73){const _0x21cc9f=this['toDomElement'](_0x1dfe73);return _0x21cc9f['textContent']=_0x5d9bf1,_0x21cc9f;}),_0x59709d=_0x5b0463['createContainerElement']('sup',{'id':'ref-'+_0x26e4aa,'class':'footnote'},[_0x4ac609]);return _0x59709d['getFillerOffset']=()=>null,_0x59709d;}function b(_0x21978b,_0x5b9c73,_0x46f9de,{dataPipeline:_0x3dae6e}={}){const {t:t}=_0x46f9de,_0x37fe06=_0x21978b['getAttribute']('footnoteId'),_0x31ba32=_0x5b9c73['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x37fe06},function(_0x219fe2){const _0x41957e=this['toDomElement'](_0x219fe2);return _0x41957e['innerText']='^',_0x41957e;}),_0x4b355f=_0x3dae6e?_0x5b9c73['createContainerElement']('div',{'class':'footnote-content'}):_0x3e2a90(_0x5b9c73['createEditableElement']('div',{'class':'footnote-content'}),_0x5b9c73,{'label':t('Footnote\x20content.')});return _0x5b9c73['insert'](_0x5b9c73['createPositionAt'](_0x4b355f,0x0),_0x5b9c73['createSlot']()),_0x5b9c73['createContainerElement']('li',{'class':'footnote-definition','id':_0x37fe06},[_0x31ba32,_0x4b355f]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xd9eb(_0x3dc4ef,_0x46e101){const _0xd77df8=_0xd77d();return _0xd9eb=function(_0xd9eb1f,_0x45c606){_0xd9eb1f=_0xd9eb1f-0x12e;let _0x1eb577=_0xd77df8[_0xd9eb1f];return _0x1eb577;},_0xd9eb(_0x3dc4ef,_0x46e101);}const _0x41dede=_0xd9eb;(function(_0x27df39,_0x24c200){const _0x26ec3f=_0xd9eb,_0x234209=_0x27df39();while(!![]){try{const _0x276e05=-parseInt(_0x26ec3f(0x134))/0x1+-parseInt(_0x26ec3f(0x12f))/0x2+-parseInt(_0x26ec3f(0x137))/0x3+parseInt(_0x26ec3f(0x133))/0x4*(parseInt(_0x26ec3f(0x13a))/0x5)+-parseInt(_0x26ec3f(0x142))/0x6+-parseInt(_0x26ec3f(0x12e))/0x7+parseInt(_0x26ec3f(0x130))/0x8;if(_0x276e05===_0x24c200)break;else _0x234209['push'](_0x234209['shift']());}catch(_0x1e815c){_0x234209['push'](_0x234209['shift']());}}}(_0xd77d,0x59537));import{Command as _0x401d78}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x5f36a7}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x401d78{[_0x41dede(0x13e)](){const _0x45c74d=_0x41dede,{editor:_0x5964ff}=this,_0x537a83=_0x5964ff[_0x45c74d(0x135)][_0x45c74d(0x136)](_0x5f36a7)[_0x45c74d(0x13f)]();this[_0x45c74d(0x141)]=!!_0x537a83,this[_0x45c74d(0x140)]=_0x537a83?.[_0x45c74d(0x131)](_0x45c74d(0x139))??null;}[_0x41dede(0x13b)]({value:_0xede50}){const _0x706e49=_0x41dede,{editor:_0x2278e2}=this,_0x2b2b77=_0x2278e2[_0x706e49(0x135)][_0x706e49(0x136)](_0x5f36a7),_0x10e3ad=_0x2b2b77[_0x706e49(0x13f)]();_0x10e3ad&&Number[_0x706e49(0x143)](_0xede50)&&_0x2278e2[_0x706e49(0x132)][_0x706e49(0x13c)](_0x1f3fd4=>{const _0xff0188=_0x706e49;_0x1f3fd4[_0xff0188(0x13d)](_0xff0188(0x139),_0xede50,_0x10e3ad),_0x2b2b77[_0xff0188(0x138)](_0x1f3fd4);});}}function _0xd77d(){const _0xa20203=['_updateFootnotesCounters','footnotesListStart','1075455IwjRWn','execute','change','setAttribute','refresh','getFootnotesDefinitionsObjectElement','value','isEnabled','4374162tNNKhM','isInteger','1558326PhcgCB','63214HAEodE','11019024umZezZ','getAttribute','model','4lHtjmZ','70055bXoMVU','plugins','get','519849qFWmAL'];_0xd77d=function(){return _0xa20203;};return _0xd77d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xbb9cff=_0x65fe;(function(_0x3305cc,_0x193600){const _0x2ce89e=_0x65fe,_0x41a2d6=_0x3305cc();while(!![]){try{const _0x514b23=-parseInt(_0x2ce89e(0x89))/0x1*(-parseInt(_0x2ce89e(0x84))/0x2)+-parseInt(_0x2ce89e(0x82))/0x3*(parseInt(_0x2ce89e(0x77))/0x4)+-parseInt(_0x2ce89e(0x81))/0x5+-parseInt(_0x2ce89e(0x72))/0x6+parseInt(_0x2ce89e(0x75))/0x7+-parseInt(_0x2ce89e(0x88))/0x8+parseInt(_0x2ce89e(0x76))/0x9*(parseInt(_0x2ce89e(0x87))/0xa);if(_0x514b23===_0x193600)break;else _0x41a2d6['push'](_0x41a2d6['shift']());}catch(_0x46ca28){_0x41a2d6['push'](_0x41a2d6['shift']());}}}(_0x5027,0x8a6e0));import{Command as _0x550784}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x25e829}from'../footnotespropertiesconfig.js';function _0x65fe(_0x44f033,_0x2720bb){const _0x5027a2=_0x5027();return _0x65fe=function(_0x65fe0f,_0x508151){_0x65fe0f=_0x65fe0f-0x72;let _0x52325e=_0x5027a2[_0x65fe0f];return _0x52325e;},_0x65fe(_0x44f033,_0x2720bb);}import{FootnotesTracker as _0x39eb74}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x550784{[_0xbb9cff(0x7a)](){const _0x4bd314=_0xbb9cff,{editor:_0x380340}=this,_0x190d91=_0x380340[_0x4bd314(0x73)][_0x4bd314(0x80)](_0x39eb74)[_0x4bd314(0x78)]();this[_0x4bd314(0x86)]=!!_0x190d91,this[_0x4bd314(0x74)]=_0x190d91?.[_0x4bd314(0x7d)](_0x4bd314(0x83))??null;}[_0xbb9cff(0x7c)]({value:_0x135887}){const _0xa8590c=_0xbb9cff,{editor:_0x514258}=this,_0x2c14a1=_0x514258[_0xa8590c(0x73)][_0xa8590c(0x80)](_0x39eb74),_0x4c58d7=_0x2c14a1[_0xa8590c(0x78)]();_0x4c58d7&&_0x25e829[_0xa8590c(0x7e)](_0x135887)&&_0x514258[_0xa8590c(0x7b)][_0xa8590c(0x79)](_0x2a9985=>{const _0x5c32ee=_0xa8590c;_0x2a9985[_0x5c32ee(0x85)](_0x5c32ee(0x83),_0x135887,_0x4c58d7),_0x2c14a1[_0x5c32ee(0x7f)](_0x2a9985);});}}function _0x5027(){const _0x474c2a=['get','4683255kxyyIH','96yYTuTW','footnotesListStyle','5626EjgWTV','setAttribute','isEnabled','178490UmKoMS','2943312VRvGPE','167gplWem','6555858FrcTWo','plugins','value','7216188Zgzlok','1017XPvliG','69172YcTpJR','getFootnotesDefinitionsObjectElement','change','refresh','model','execute','getAttribute','includes','_updateFootnotesCounters'];_0x5027=function(){return _0x474c2a;};return _0x5027();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47256f=_0x4200;(function(_0x16dccd,_0x2a778a){const _0x20ea57=_0x4200,_0x18e2de=_0x16dccd();while(!![]){try{const _0x512ccd=-parseInt(_0x20ea57(0x123))/0x1*(-parseInt(_0x20ea57(0x116))/0x2)+parseInt(_0x20ea57(0x124))/0x3+-parseInt(_0x20ea57(0x11b))/0x4*(-parseInt(_0x20ea57(0x11f))/0x5)+parseInt(_0x20ea57(0x11d))/0x6+-parseInt(_0x20ea57(0x125))/0x7+parseInt(_0x20ea57(0x122))/0x8+-parseInt(_0x20ea57(0x118))/0x9*(parseInt(_0x20ea57(0x11c))/0xa);if(_0x512ccd===_0x2a778a)break;else _0x18e2de['push'](_0x18e2de['shift']());}catch(_0x26a0c4){_0x18e2de['push'](_0x18e2de['shift']());}}}(_0x17da,0x7e469));function _0x4200(_0xbe61ca,_0x4be52c){const _0x17da62=_0x17da();return _0x4200=function(_0x4200cc,_0x4b88ae){_0x4200cc=_0x4200cc-0x115;let _0x5af122=_0x17da62[_0x4200cc];return _0x5af122;},_0x4200(_0xbe61ca,_0x4be52c);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x47256f(0x117),_0x47256f(0x120),_0x47256f(0x11e),_0x47256f(0x11a),_0x47256f(0x119),_0x47256f(0x121),_0x47256f(0x126),_0x47256f(0x115)];function _0x17da(){const _0xb1c9ea=['2974164cRtntC','366002uZyixR','lower-roman','upper-roman','6542JzejoZ','decimal','4952754PSUECf','lower-alpha','upper-latin','647156fgBfze','40HRzpXJ','821862ZYEGvw','lower-latin','20eFEGTK','decimal-leading-zero','upper-alpha','85144BSDvBX','301IrStfO'];_0x17da=function(){return _0xb1c9ea;};return _0x17da();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x253eaa=_0x4f24;function _0x31ec(){const _0x228c3a=['footnotesDefinitions','commands','registerPostFixer','differ','for','setFootnoteFormatter','decimal-leading-zero','_getDefaultListStyle','_defineSchema','decimal','lower-roman','nodeAfter','6628STLNHk','viewItem','_formatFootnoteListValue','868896gEaMiJ','position','6847848iNTffg','footnotes-list','_definePostfixer','extend','_getDefaultStartIndex','hasAttribute','init','model','upcast','consumable','removeAttribute','mapper','define','getAttribute','isOfficialPlugin','modelCursor','removeStyle','type','requires','lower-alpha','hasClass','item','checkAttribute','element','FootnotesPropertiesEditing','setAttribute','upper-alpha','writer','insert','toUpperCase','find','downcast','getItems','config','plugins','lower-latin','name','upper-roman','_updateFootnotesCounters','from','4504230DBkjhZ','padStart','max','1024938TbBILA','toLowerCase','parent','document','1443XPGduW','footnotesStart','$text','pluginName','getStyle','consume','parseInt','toViewElement','footnotesStyle','element:ol','footnotes.footnotesProperties.defaultListStyle','add','schema','list-style-type','footnotesListStart','7230630PRyKNM','getChildren','floor','_defineConverters','isNaN','get','footnotes.footnotesProperties.defaultStartIndex','48kDkkLh','footnotesListStyle','start','isPremiumPlugin','editor','attribute:footnotesListStart:footnotesDefinitions','898261mqkMCv','setStyle','fromCharCode','_defineFormatter','attribute:footnotesListStyle:footnotesDefinitions','createRangeOn','getChanges','upper-latin'];_0x31ec=function(){return _0x228c3a;};return _0x31ec();}(function(_0x3c6390,_0x40e66e){const _0x179246=_0x4f24,_0x3757e8=_0x3c6390();while(!![]){try{const _0x3e93b2=-parseInt(_0x179246(0x235))/0x1+parseInt(_0x179246(0x215))/0x2+-parseInt(_0x179246(0x219))/0x3*(-parseInt(_0x179246(0x249))/0x4)+parseInt(_0x179246(0x228))/0x5+-parseInt(_0x179246(0x24e))/0x6+-parseInt(_0x179246(0x24c))/0x7*(-parseInt(_0x179246(0x22f))/0x8)+-parseInt(_0x179246(0x212))/0x9;if(_0x3e93b2===_0x40e66e)break;else _0x3757e8['push'](_0x3757e8['shift']());}catch(_0x4e248c){_0x3757e8['push'](_0x3757e8['shift']());}}}(_0x31ec,0xea755));import{Plugin as _0x39b9fe}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x43fe61}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x182384}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x567339}from'../footnotestracker.js';import{FootnotesEditing as _0x42b8bf}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x39b9fe{static get[_0x253eaa(0x21c)](){const _0x43e977=_0x253eaa;return _0x43e977(0x202);}static get[_0x253eaa(0x1fc)](){return[_0x42b8bf,_0x567339];}static get[_0x253eaa(0x1f8)](){return!0x0;}static get[_0x253eaa(0x232)](){return!0x0;}[_0x253eaa(0x254)](){const _0x420135=_0x253eaa,{editor:_0x42ba08}=this;_0x42ba08[_0x420135(0x20b)][_0x420135(0x1f6)](_0x420135(0x223),_0x420135(0x246)),_0x42ba08[_0x420135(0x20b)][_0x420135(0x1f6)](_0x420135(0x22e),0x1),_0x42ba08[_0x420135(0x23e)][_0x420135(0x224)](_0x420135(0x221),new _0x43fe61(_0x42ba08)),_0x42ba08[_0x420135(0x23e)][_0x420135(0x224)](_0x420135(0x21a),new _0x182384(_0x42ba08)),this[_0x420135(0x245)](),this[_0x420135(0x22b)](),this[_0x420135(0x238)](),this[_0x420135(0x250)]();}[_0x253eaa(0x245)](){const _0x248ea0=_0x253eaa,{editor:_0x961e30}=this,{schema:_0x2e7284}=_0x961e30[_0x248ea0(0x255)];_0x2e7284[_0x248ea0(0x251)](_0x248ea0(0x23d),{'allowAttributes':[_0x248ea0(0x230),_0x248ea0(0x227)]});}[_0x253eaa(0x22b)](){const _0x1d7a83=_0x253eaa,{editor:_0x380727}=this,{conversion:_0x252397,model:_0x5d06b3}=_0x380727,{schema:_0x4f6a49}=_0x5d06b3;_0x252397[_0x1d7a83(0x241)](_0x1d7a83(0x256))[_0x1d7a83(0x224)](_0x5c0f9c=>{const _0x5dea62=_0x1d7a83;_0x5c0f9c['on'](_0x5dea62(0x222),(_0x51fdd3,_0x1d74c6,_0x4976b8)=>{const _0x5ef2a9=_0x5dea62,_0x12b532=_0x1d74c6[_0x5ef2a9(0x24a)],_0xbb2898=_0x1d74c6[_0x5ef2a9(0x1f9)]?.[_0x5ef2a9(0x217)];_0x12b532[_0x5ef2a9(0x1fe)](_0x5ef2a9(0x24f))&&_0xbb2898?.['is'](_0x5ef2a9(0x201),_0x5ef2a9(0x23d))&&(function(_0x3d67d4,_0x43a58c,_0x164c1b,_0x9c554e){const _0x22d6f4=_0x5ef2a9;if(!_0x9c554e[_0x22d6f4(0x200)](_0x43a58c,_0x22d6f4(0x227)))return;let _0x216d08=0x1;const _0x4dd24c=_0x164c1b[_0x22d6f4(0x257)][_0x22d6f4(0x21e)](_0x3d67d4,{'attributes':_0x22d6f4(0x231)});if(_0x4dd24c){const _0xe945ac=Number[_0x22d6f4(0x21f)](_0x3d67d4[_0x22d6f4(0x1f7)](_0x22d6f4(0x231)),0xa);Number[_0x22d6f4(0x22c)](_0xe945ac)||(_0x216d08=_0xe945ac);}!_0x4dd24c&&_0x43a58c[_0x22d6f4(0x253)](_0x22d6f4(0x227))||_0x164c1b[_0x22d6f4(0x205)][_0x22d6f4(0x203)](_0x22d6f4(0x227),_0x216d08,_0x43a58c);}(_0x12b532,_0xbb2898,_0x4976b8,_0x4f6a49),function(_0x48c2b9,_0x3f618b,_0x5328f6,_0x53667b){const _0x5a947a=_0x5ef2a9;if(!_0x53667b[_0x5a947a(0x200)](_0x3f618b,_0x5a947a(0x230)))return;let _0x227b30=_0x5a947a(0x246),_0x63f5fe=!0x1;if(_0x5328f6[_0x5a947a(0x257)][_0x5a947a(0x21e)](_0x48c2b9,{'attributes':_0x5a947a(0x1fb)})){const _0x8fcdb1={0x1:_0x5a947a(0x246),'a':_0x5a947a(0x1fd),'A':_0x5a947a(0x204),'i':_0x5a947a(0x247),'I':_0x5a947a(0x20f)}[_0x48c2b9[_0x5a947a(0x1f7)](_0x5a947a(0x1fb))];_0x8fcdb1&&(_0x227b30=_0x8fcdb1),_0x63f5fe=!0x0;}_0x5328f6[_0x5a947a(0x257)][_0x5a947a(0x21e)](_0x48c2b9,{'styles':_0x5a947a(0x226)})&&(_0x227b30=function(_0x16c631){const _0x1c0eac=_0x5a947a;switch(_0x16c631){case _0x1c0eac(0x1fd):return _0x1c0eac(0x20d);case _0x1c0eac(0x204):return _0x1c0eac(0x23c);default:return _0x16c631;}}(_0x48c2b9[_0x5a947a(0x21d)](_0x5a947a(0x226))),_0x63f5fe=!0x0),!_0x63f5fe&&_0x3f618b[_0x5a947a(0x253)](_0x5a947a(0x230))||_0x5328f6[_0x5a947a(0x205)][_0x5a947a(0x203)](_0x5a947a(0x230),_0x227b30,_0x3f618b);}(_0x12b532,_0xbb2898,_0x4976b8,_0x4f6a49));});}),_0x252397[_0x1d7a83(0x241)](_0x1d7a83(0x209))[_0x1d7a83(0x224)](_0x3ff147=>{const _0x507b1e=_0x1d7a83;_0x3ff147['on'](_0x507b1e(0x234),(_0x1afba4,_0x187462,_0x284060)=>{const _0x5a7704=_0x507b1e;if(!_0x284060[_0x5a7704(0x257)][_0x5a7704(0x21e)](_0x187462[_0x5a7704(0x1ff)],_0x1afba4[_0x5a7704(0x20e)]))return;const _0x3a9f9d=M(_0x187462[_0x5a7704(0x1ff)],_0x284060[_0x5a7704(0x1f5)]),{attributeNewValue:_0x2aa33d}=_0x187462;null==_0x2aa33d||0x1===_0x2aa33d?_0x284060[_0x5a7704(0x205)][_0x5a7704(0x1f4)](_0x5a7704(0x231),_0x3a9f9d):_0x284060[_0x5a7704(0x205)][_0x5a7704(0x203)](_0x5a7704(0x231),String(_0x2aa33d),_0x3a9f9d);}),_0x3ff147['on'](_0x507b1e(0x239),(_0x18b5a2,_0x1499fd,_0xca11a8)=>{const _0x1d7a25=_0x507b1e;if(!_0xca11a8[_0x1d7a25(0x257)][_0x1d7a25(0x21e)](_0x1499fd[_0x1d7a25(0x1ff)],_0x18b5a2[_0x1d7a25(0x20e)]))return;const _0x2a0f24=M(_0x1499fd[_0x1d7a25(0x1ff)],_0xca11a8[_0x1d7a25(0x1f5)]),{attributeNewValue:_0x5b1adf}=_0x1499fd;_0x5b1adf&&_0x1d7a25(0x246)!==_0x5b1adf?_0xca11a8[_0x1d7a25(0x205)][_0x1d7a25(0x236)](_0x1d7a25(0x226),_0x5b1adf,_0x2a0f24):_0xca11a8[_0x1d7a25(0x205)][_0x1d7a25(0x1fa)](_0x1d7a25(0x226),_0x2a0f24);});});}[_0x253eaa(0x250)](){const _0x16c3b6=_0x253eaa,{editor:_0x63daf9}=this,{model:_0x16e2a7}=_0x63daf9,_0x4194c5=_0x63daf9[_0x16c3b6(0x20c)][_0x16c3b6(0x22d)](_0x567339),_0x3a48b=this[_0x16c3b6(0x244)](),_0x4f36b4=this[_0x16c3b6(0x252)]();_0x16e2a7[_0x16c3b6(0x218)][_0x16c3b6(0x23f)](_0xcd66f6=>{const _0x119a0b=_0x16c3b6,_0x336a0b=_0x16e2a7[_0x119a0b(0x218)][_0x119a0b(0x240)][_0x119a0b(0x23b)]();let _0xf8acab=!0x1;for(const _0x2f4065 of _0x336a0b){if(_0x119a0b(0x206)!==_0x2f4065[_0x119a0b(0x1fb)]||_0x119a0b(0x21b)===_0x2f4065[_0x119a0b(0x20e)])continue;const _0x2af76e=_0x16e2a7[_0x119a0b(0x23a)](_0x2f4065[_0x119a0b(0x24d)][_0x119a0b(0x248)]);for(const _0x113cff of _0x2af76e[_0x119a0b(0x20a)]())_0x113cff['is'](_0x119a0b(0x201),_0x119a0b(0x23d))&&(!_0x113cff[_0x119a0b(0x253)](_0x119a0b(0x227))&&_0x16e2a7[_0x119a0b(0x225)][_0x119a0b(0x200)](_0x113cff,_0x119a0b(0x227))&&(_0xcd66f6[_0x119a0b(0x203)](_0x119a0b(0x227),_0x4f36b4,_0x113cff),_0xf8acab=!0x0),!_0x113cff[_0x119a0b(0x253)](_0x119a0b(0x230))&&_0x16e2a7[_0x119a0b(0x225)][_0x119a0b(0x200)](_0x113cff,_0x119a0b(0x230))&&(_0xcd66f6[_0x119a0b(0x203)](_0x119a0b(0x230),_0x3a48b,_0x113cff),_0xf8acab=!0x0));}return _0xf8acab&&_0x4194c5[_0x119a0b(0x210)](_0xcd66f6),_0xf8acab;});}[_0x253eaa(0x238)](){const _0x13e61e=_0x253eaa,{editor:_0x5db8f6}=this;_0x5db8f6[_0x13e61e(0x20c)][_0x13e61e(0x22d)](_0x567339)[_0x13e61e(0x242)](_0x3e01c0=>this[_0x13e61e(0x24b)](_0x3e01c0));}[_0x253eaa(0x244)](){const _0x2ed458=_0x253eaa;return this[_0x2ed458(0x233)][_0x2ed458(0x20b)][_0x2ed458(0x22d)](_0x2ed458(0x223));}[_0x253eaa(0x252)](){const _0x40f1d8=_0x253eaa;return this[_0x40f1d8(0x233)][_0x40f1d8(0x20b)][_0x40f1d8(0x22d)](_0x40f1d8(0x22e));}[_0x253eaa(0x24b)]({container:_0x37a4e3,value:_0x595a39,digits:_0x41de65}){const _0x4ae520=_0x253eaa,_0xdd2f10=_0x37a4e3[_0x4ae520(0x1f7)](_0x4ae520(0x230)),_0x9b1393=_0x37a4e3[_0x4ae520(0x1f7)](_0x4ae520(0x227)),_0x3f98df=Math[_0x4ae520(0x22a)](_0x595a39)+(_0x9b1393??0x1)-0x1;switch(_0xdd2f10){case _0x4ae520(0x243):return function(_0x24e1d9,_0x4c07cc){const _0x578d5d=_0x4ae520;return String(_0x24e1d9)[_0x578d5d(0x213)](_0x4c07cc,'0');}(_0x3f98df,Math[_0x4ae520(0x214)](0x2,_0x41de65));case _0x4ae520(0x1fd):case _0x4ae520(0x20d):return N(_0x3f98df,!0x1);case _0x4ae520(0x204):case _0x4ae520(0x23c):return N(_0x3f98df,!0x0);case _0x4ae520(0x247):return X(_0x3f98df,!0x1);case _0x4ae520(0x20f):return X(_0x3f98df,!0x0);default:return String(_0x3f98df);}}}function M(_0x2e3c63,_0x2a4fb3){const _0x9937b6=_0x253eaa,_0x4ed98f=_0x2a4fb3[_0x9937b6(0x220)](_0x2e3c63);return Array[_0x9937b6(0x211)](_0x4ed98f[_0x9937b6(0x229)]())[_0x9937b6(0x208)](_0x39b003=>_0x39b003['is'](_0x9937b6(0x201),'ol')&&_0x39b003[_0x9937b6(0x1fe)](_0x9937b6(0x24f)));}function N(_0xc53ac1,_0x5d8f01){const _0x2d12bf=_0x253eaa;let _0x18fd9b='',_0x1e0210=_0xc53ac1;for(;_0x1e0210>0x0;){const _0x42aa7b=(_0x1e0210-0x1)%0x1a;_0x18fd9b=String[_0x2d12bf(0x237)](0x61+_0x42aa7b)+_0x18fd9b,_0x1e0210=Math[_0x2d12bf(0x22a)]((_0x1e0210-0x1)/0x1a);}return _0x5d8f01?_0x18fd9b[_0x2d12bf(0x207)]():_0x18fd9b;}function _0x4f24(_0x43fac6,_0x2a8eec){const _0x31ec53=_0x31ec();return _0x4f24=function(_0x4f24f1,_0x37099f){_0x4f24f1=_0x4f24f1-0x1f4;let _0x4e393e=_0x31ec53[_0x4f24f1];return _0x4e393e;},_0x4f24(_0x43fac6,_0x2a8eec);}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x3f687f,_0x108276){const _0x2aad89=_0x253eaa;let _0x4cd8cc='',_0x400abc=_0x3f687f;for(const {value:_0x2db993,numeral:_0x1daed6}of V)for(;_0x400abc>=_0x2db993;)_0x4cd8cc+=_0x1daed6,_0x400abc-=_0x2db993;return _0x108276?_0x4cd8cc:_0x4cd8cc[_0x2aad89(0x216)]();}
|
|
23
|
+
const _0x4a0e94=_0x95cc;(function(_0x412b11,_0x44b65c){const _0x1cc6b4=_0x95cc,_0x5c90da=_0x412b11();while(!![]){try{const _0x3d4f78=parseInt(_0x1cc6b4(0x17f))/0x1*(-parseInt(_0x1cc6b4(0x157))/0x2)+-parseInt(_0x1cc6b4(0x169))/0x3+parseInt(_0x1cc6b4(0x16a))/0x4+parseInt(_0x1cc6b4(0x13a))/0x5*(-parseInt(_0x1cc6b4(0x142))/0x6)+parseInt(_0x1cc6b4(0x189))/0x7+parseInt(_0x1cc6b4(0x162))/0x8+-parseInt(_0x1cc6b4(0x15f))/0x9;if(_0x3d4f78===_0x44b65c)break;else _0x5c90da['push'](_0x5c90da['shift']());}catch(_0x240159){_0x5c90da['push'](_0x5c90da['shift']());}}}(_0x2ced,0xd241b));import{Plugin as _0xcb15cc}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x143d70}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x238e1a}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x5093c7}from'../footnotestracker.js';function _0x2ced(){const _0x52d002=['registerPostFixer','name','4020YldAlW','start','padStart','schema','footnotes-list','getItems','_getDefaultStartIndex','attribute:footnotesListStart:footnotesDefinitions','5286kalbHP','viewItem','upper-latin','for','decimal-leading-zero','element','removeAttribute','document','consumable','lower-alpha','hasAttribute','footnotesStyle','mapper','setFootnoteFormatter','footnotesListStyle','_defineConverters','floor','footnotesStart','setStyle','toViewElement','lower-roman','12398dAELkw','_defineFormatter','add','getStyle','getAttribute','setAttribute','pluginName','max','6498729XpDbdA','init','getChildren','12964584jhnYny','type','element:ol','toLowerCase','upper-roman','position','requires','831369bnLREn','2916640AiVVpJ','upcast','get','find','writer','createRangeOn','_formatFootnoteListValue','config','_defineSchema','differ','$text','commands','footnotes.footnotesProperties.defaultStartIndex','hasClass','footnotesListStart','isNaN','item','attribute:footnotesListStyle:footnotesDefinitions','toUpperCase','insert','parent','40hQVJWw','_updateFootnotesCounters','modelCursor','isPremiumPlugin','FootnotesPropertiesEditing','isOfficialPlugin','extend','fromCharCode','_definePostfixer','lower-latin','3268762RDKHem','define','plugins','nodeAfter','footnotesDefinitions','model','upper-alpha','_getDefaultListStyle','footnotes.footnotesProperties.defaultListStyle','list-style-type','decimal','editor','getChanges','removeStyle','parseInt','checkAttribute','consume','from','downcast'];_0x2ced=function(){return _0x52d002;};return _0x2ced();}import{FootnotesEditing as _0x234908}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0xcb15cc{static get[_0x4a0e94(0x15d)](){const _0x1d1799=_0x4a0e94;return _0x1d1799(0x183);}static get[_0x4a0e94(0x168)](){return[_0x234908,_0x5093c7];}static get[_0x4a0e94(0x184)](){return!0x0;}static get[_0x4a0e94(0x182)](){return!0x0;}[_0x4a0e94(0x160)](){const _0xe937b=_0x4a0e94,{editor:_0x16d269}=this;_0x16d269[_0xe937b(0x171)][_0xe937b(0x18a)](_0xe937b(0x12d),_0xe937b(0x12f)),_0x16d269[_0xe937b(0x171)][_0xe937b(0x18a)](_0xe937b(0x176),0x1),_0x16d269[_0xe937b(0x175)][_0xe937b(0x159)](_0xe937b(0x14d),new _0x143d70(_0x16d269)),_0x16d269[_0xe937b(0x175)][_0xe937b(0x159)](_0xe937b(0x153),new _0x238e1a(_0x16d269)),this[_0xe937b(0x172)](),this[_0xe937b(0x151)](),this[_0xe937b(0x158)](),this[_0xe937b(0x187)]();}[_0x4a0e94(0x172)](){const _0x5116e5=_0x4a0e94,{editor:_0xe30595}=this,{schema:_0x8bad88}=_0xe30595[_0x5116e5(0x18e)];_0x8bad88[_0x5116e5(0x185)](_0x5116e5(0x18d),{'allowAttributes':[_0x5116e5(0x150),_0x5116e5(0x178)]});}[_0x4a0e94(0x151)](){const _0xb803d4=_0x4a0e94,{editor:_0x425215}=this,{conversion:_0x4d7346,model:_0x2e4d1d}=_0x425215,{schema:_0x20341f}=_0x2e4d1d;_0x4d7346[_0xb803d4(0x145)](_0xb803d4(0x16b))[_0xb803d4(0x159)](_0x1cfe9f=>{const _0x36cc87=_0xb803d4;_0x1cfe9f['on'](_0x36cc87(0x164),(_0x5eb2d9,_0x22af7b,_0x5ec815)=>{const _0x24a4b2=_0x36cc87,_0x2f3e70=_0x22af7b[_0x24a4b2(0x143)],_0x276c3f=_0x22af7b[_0x24a4b2(0x181)]?.[_0x24a4b2(0x17e)];_0x2f3e70[_0x24a4b2(0x177)](_0x24a4b2(0x13e))&&_0x276c3f?.['is'](_0x24a4b2(0x147),_0x24a4b2(0x18d))&&(function(_0x29550b,_0x46b1b0,_0x4b6afc,_0x5805da){const _0x351e34=_0x24a4b2;if(!_0x5805da[_0x351e34(0x134)](_0x46b1b0,_0x351e34(0x178)))return;let _0x54c481=0x1;const _0x1f1d9b=_0x4b6afc[_0x351e34(0x14a)][_0x351e34(0x135)](_0x29550b,{'attributes':_0x351e34(0x13b)});if(_0x1f1d9b){const _0x197204=Number[_0x351e34(0x133)](_0x29550b[_0x351e34(0x15b)](_0x351e34(0x13b)),0xa);Number[_0x351e34(0x179)](_0x197204)||(_0x54c481=_0x197204);}!_0x1f1d9b&&_0x46b1b0[_0x351e34(0x14c)](_0x351e34(0x178))||_0x4b6afc[_0x351e34(0x16e)][_0x351e34(0x15c)](_0x351e34(0x178),_0x54c481,_0x46b1b0);}(_0x2f3e70,_0x276c3f,_0x5ec815,_0x20341f),function(_0x5da673,_0x3a7f32,_0x467477,_0x2cfb9e){const _0x118e59=_0x24a4b2;if(!_0x2cfb9e[_0x118e59(0x134)](_0x3a7f32,_0x118e59(0x150)))return;let _0x422cb2=_0x118e59(0x12f),_0x29de40=!0x1;if(_0x467477[_0x118e59(0x14a)][_0x118e59(0x135)](_0x5da673,{'attributes':_0x118e59(0x163)})){const _0x1e73fb={0x1:_0x118e59(0x12f),'a':_0x118e59(0x14b),'A':_0x118e59(0x18f),'i':_0x118e59(0x156),'I':_0x118e59(0x166)}[_0x5da673[_0x118e59(0x15b)](_0x118e59(0x163))];_0x1e73fb&&(_0x422cb2=_0x1e73fb),_0x29de40=!0x0;}_0x467477[_0x118e59(0x14a)][_0x118e59(0x135)](_0x5da673,{'styles':_0x118e59(0x12e)})&&(_0x422cb2=function(_0x414d0d){const _0x1e09a6=_0x118e59;switch(_0x414d0d){case _0x1e09a6(0x14b):return _0x1e09a6(0x188);case _0x1e09a6(0x18f):return _0x1e09a6(0x144);default:return _0x414d0d;}}(_0x5da673[_0x118e59(0x15a)](_0x118e59(0x12e))),_0x29de40=!0x0),!_0x29de40&&_0x3a7f32[_0x118e59(0x14c)](_0x118e59(0x150))||_0x467477[_0x118e59(0x16e)][_0x118e59(0x15c)](_0x118e59(0x150),_0x422cb2,_0x3a7f32);}(_0x2f3e70,_0x276c3f,_0x5ec815,_0x20341f));});}),_0x4d7346[_0xb803d4(0x145)](_0xb803d4(0x137))[_0xb803d4(0x159)](_0x4f1492=>{const _0x38c8c2=_0xb803d4;_0x4f1492['on'](_0x38c8c2(0x141),(_0x123ec9,_0x503cb9,_0xa4daec)=>{const _0x28b201=_0x38c8c2;if(!_0xa4daec[_0x28b201(0x14a)][_0x28b201(0x135)](_0x503cb9[_0x28b201(0x17a)],_0x123ec9[_0x28b201(0x139)]))return;const _0xf2b69e=M(_0x503cb9[_0x28b201(0x17a)],_0xa4daec[_0x28b201(0x14e)]),{attributeNewValue:_0x561aee}=_0x503cb9;null==_0x561aee||0x1===_0x561aee?_0xa4daec[_0x28b201(0x16e)][_0x28b201(0x148)](_0x28b201(0x13b),_0xf2b69e):_0xa4daec[_0x28b201(0x16e)][_0x28b201(0x15c)](_0x28b201(0x13b),String(_0x561aee),_0xf2b69e);}),_0x4f1492['on'](_0x38c8c2(0x17b),(_0x2fa00,_0x58ee84,_0x3b6aaa)=>{const _0x2ba95c=_0x38c8c2;if(!_0x3b6aaa[_0x2ba95c(0x14a)][_0x2ba95c(0x135)](_0x58ee84[_0x2ba95c(0x17a)],_0x2fa00[_0x2ba95c(0x139)]))return;const _0x1bbb90=M(_0x58ee84[_0x2ba95c(0x17a)],_0x3b6aaa[_0x2ba95c(0x14e)]),{attributeNewValue:_0x4b25cb}=_0x58ee84;_0x4b25cb&&_0x2ba95c(0x12f)!==_0x4b25cb?_0x3b6aaa[_0x2ba95c(0x16e)][_0x2ba95c(0x154)](_0x2ba95c(0x12e),_0x4b25cb,_0x1bbb90):_0x3b6aaa[_0x2ba95c(0x16e)][_0x2ba95c(0x132)](_0x2ba95c(0x12e),_0x1bbb90);});});}[_0x4a0e94(0x187)](){const _0x3f2abc=_0x4a0e94,{editor:_0x4d1fba}=this,{model:_0xdd415d}=_0x4d1fba,_0x187671=_0x4d1fba[_0x3f2abc(0x18b)][_0x3f2abc(0x16c)](_0x5093c7),_0x4747c4=this[_0x3f2abc(0x12c)](),_0x7cf0a1=this[_0x3f2abc(0x140)]();_0xdd415d[_0x3f2abc(0x149)][_0x3f2abc(0x138)](_0x5d7f3b=>{const _0x4517d9=_0x3f2abc,_0xd30187=_0xdd415d[_0x4517d9(0x149)][_0x4517d9(0x173)][_0x4517d9(0x131)]();let _0x59e545=!0x1;for(const _0x36d874 of _0xd30187){if(_0x4517d9(0x17d)!==_0x36d874[_0x4517d9(0x163)]||_0x4517d9(0x174)===_0x36d874[_0x4517d9(0x139)])continue;const _0x253f15=_0xdd415d[_0x4517d9(0x16f)](_0x36d874[_0x4517d9(0x167)][_0x4517d9(0x18c)]);for(const _0x1f0b39 of _0x253f15[_0x4517d9(0x13f)]())_0x1f0b39['is'](_0x4517d9(0x147),_0x4517d9(0x18d))&&(!_0x1f0b39[_0x4517d9(0x14c)](_0x4517d9(0x178))&&_0xdd415d[_0x4517d9(0x13d)][_0x4517d9(0x134)](_0x1f0b39,_0x4517d9(0x178))&&(_0x5d7f3b[_0x4517d9(0x15c)](_0x4517d9(0x178),_0x7cf0a1,_0x1f0b39),_0x59e545=!0x0),!_0x1f0b39[_0x4517d9(0x14c)](_0x4517d9(0x150))&&_0xdd415d[_0x4517d9(0x13d)][_0x4517d9(0x134)](_0x1f0b39,_0x4517d9(0x150))&&(_0x5d7f3b[_0x4517d9(0x15c)](_0x4517d9(0x150),_0x4747c4,_0x1f0b39),_0x59e545=!0x0));}return _0x59e545&&_0x187671[_0x4517d9(0x180)](_0x5d7f3b),_0x59e545;});}[_0x4a0e94(0x158)](){const _0x10445d=_0x4a0e94,{editor:_0xfa2045}=this;_0xfa2045[_0x10445d(0x18b)][_0x10445d(0x16c)](_0x5093c7)[_0x10445d(0x14f)](_0x1e4d8e=>this[_0x10445d(0x170)](_0x1e4d8e));}[_0x4a0e94(0x12c)](){const _0xc9db28=_0x4a0e94;return this[_0xc9db28(0x130)][_0xc9db28(0x171)][_0xc9db28(0x16c)](_0xc9db28(0x12d));}[_0x4a0e94(0x140)](){const _0x345817=_0x4a0e94;return this[_0x345817(0x130)][_0x345817(0x171)][_0x345817(0x16c)](_0x345817(0x176));}[_0x4a0e94(0x170)]({container:_0x5a0750,value:_0x4ae242,digits:_0x336d10}){const _0x2ce809=_0x4a0e94,_0x1e0658=_0x5a0750[_0x2ce809(0x15b)](_0x2ce809(0x150)),_0x3b74e9=_0x5a0750[_0x2ce809(0x15b)](_0x2ce809(0x178)),_0x49d0c7=Math[_0x2ce809(0x152)](_0x4ae242)+(_0x3b74e9??0x1)-0x1;switch(_0x1e0658){case _0x2ce809(0x146):return function(_0x4b49b7,_0x85c8a6){const _0x3fa476=_0x2ce809;return String(_0x4b49b7)[_0x3fa476(0x13c)](_0x85c8a6,'0');}(_0x49d0c7,Math[_0x2ce809(0x15e)](0x2,_0x336d10));case _0x2ce809(0x14b):case _0x2ce809(0x188):return N(_0x49d0c7,!0x1);case _0x2ce809(0x18f):case _0x2ce809(0x144):return N(_0x49d0c7,!0x0);case _0x2ce809(0x156):return X(_0x49d0c7,!0x1);case _0x2ce809(0x166):return X(_0x49d0c7,!0x0);default:return String(_0x49d0c7);}}}function M(_0x2985f4,_0x3928da){const _0xb74634=_0x4a0e94,_0x4663c3=_0x3928da[_0xb74634(0x155)](_0x2985f4);return Array[_0xb74634(0x136)](_0x4663c3[_0xb74634(0x161)]())[_0xb74634(0x16d)](_0x50e4a5=>_0x50e4a5['is'](_0xb74634(0x147),'ol')&&_0x50e4a5[_0xb74634(0x177)](_0xb74634(0x13e)));}function N(_0x2f1acf,_0x46b8fc){const _0x124e55=_0x4a0e94;let _0x54847d='',_0x181a39=_0x2f1acf;for(;_0x181a39>0x0;){const _0x3fdb74=(_0x181a39-0x1)%0x1a;_0x54847d=String[_0x124e55(0x186)](0x61+_0x3fdb74)+_0x54847d,_0x181a39=Math[_0x124e55(0x152)]((_0x181a39-0x1)/0x1a);}return _0x46b8fc?_0x54847d[_0x124e55(0x17c)]():_0x54847d;}function _0x95cc(_0x51853f,_0xe0105b){const _0x2ced09=_0x2ced();return _0x95cc=function(_0x95cc6c,_0xfe0af1){_0x95cc6c=_0x95cc6c-0x12c;let _0x130f44=_0x2ced09[_0x95cc6c];return _0x130f44;},_0x95cc(_0x51853f,_0xe0105b);}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0xaa2dd8,_0x5d9f8c){const _0x3f3800=_0x4a0e94;let _0xeab7cb='',_0x379ee5=_0xaa2dd8;for(const {value:_0x6aba76,numeral:_0x172298}of V)for(;_0x379ee5>=_0x6aba76;)_0xeab7cb+=_0x172298,_0x379ee5-=_0x6aba76;return _0x5d9f8c?_0xeab7cb:_0xeab7cb[_0x3f3800(0x165)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x51f7d5,ButtonView as _0x26fa87,ContextualBalloon as _0x302d0b,createDropdown as _0x94458a}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x157d95}from'ckeditor5/src/widget.js';import{Plugin as _0x4dd99b}from'ckeditor5/src/core.js';import{IconFootnote as _0x3d1c04,IconListStyleDecimal as _0x1f074b,IconListStyleDecimalLeadingZero as _0x71252e,IconListStyleLowerLatin as _0x5dbfbc,IconListStyleLowerRoman as _0x264aea,IconListStyleUpperLatin as _0x50140c,IconListStyleUpperRoman as _0x39b23a}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x685fa}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0xe28627}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x4dd99b{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x302d0b,_0x157d95];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x693f2d}=this,{componentFactory:_0x5ce94d}=_0x693f2d['ui'];_0x693f2d['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5ce94d['add']('footnotesStyle',function(_0x38f11b){return _0x1745aa=>{const {t:t}=_0x1745aa,_0xe0a7ec=_0x38f11b['commands']['get']('footnotesStyle'),_0x43864d=_0x94458a(_0x1745aa),{buttonView:_0x55cbeb}=_0x43864d;return _0x43864d['class']='ck-footnotes-styles-dropdown',_0x43864d['bind']('isEnabled')['to'](_0xe0a7ec,'isEnabled'),_0x55cbeb['set']({'label':t('Footnotes\x20style'),'icon':_0x3d1c04,'tooltip':!0x0}),_0x43864d['once']('change:isOpen',()=>{const _0x33f39f=function({editor:_0x11535c,dropdownView:_0x46da12}){const {t:t}=_0x11535c['locale'],_0x92bf95=t('Footnotes\x20definitions\x20styles'),_0x54c2a3=function(_0x16d7fc){const t=_0x16d7fc['locale']['t'],_0x64a49f=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1f074b},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x71252e},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x264aea},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x39b23a},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5dbfbc},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x50140c}];return _0x64a49f['map'](function(_0x26ae4d){const _0x587d00=_0x26ae4d['locale'];return({label:_0x4e5d70,icon:_0x50a68c,tooltip:_0x34878d,style:_0x17b14f})=>{const _0x4660de=_0x26ae4d['commands']['get']('footnotesStyle'),_0x3e2bff=new _0x26fa87(_0x587d00);return _0x3e2bff['set']({'label':_0x4e5d70,'icon':_0x50a68c,'tooltip':_0x34878d}),_0x3e2bff['bind']('isOn')['to'](_0x4660de,'value',_0x4377f2=>_0x4377f2===_0x17b14f),_0x3e2bff['bind']('isEnabled')['to'](_0x4660de,'isEnabled'),_0x3e2bff['on']('execute',()=>{_0x26ae4d['execute']('footnotesStyle',{'value':_0x17b14f}),_0x26ae4d['editing']['view']['focus']();}),_0x3e2bff;};}(_0x16d7fc));}(_0x11535c),_0x19a909=new _0x685fa(_0x11535c['locale'],{'styleGridAriaLabel':_0x92bf95,'styleButtonViews':_0x54c2a3}),_0x266c7b=_0x11535c['commands']['get']('footnotesStart');return _0x19a909['startIndexFieldView']['bind']('isEnabled')['to'](_0x266c7b),_0x19a909['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x266c7b),_0x19a909['on']('footnotesListStart',(_0x5514ea,_0x1d9cd3)=>{_0x11535c['execute']('footnotesStart',{'value':_0x1d9cd3['startIndex']});}),_0x19a909['delegate']('execute')['to'](_0x46da12),_0x19a909;}({'editor':_0x38f11b,'dropdownView':_0x43864d});_0x43864d['panelView']['children']['add'](_0x33f39f);}),_0x43864d;};}(_0x693f2d));}['afterInit'](){const {editor:_0x26bc52}=this,{t:t}=_0x26bc52['locale'],_0x47846f=_0x26bc52['plugins']['get'](_0x157d95),{defaultPositions:_0x550780}=_0x51f7d5;_0x47846f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x26bc52['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2c3e35=>{let _0x3d8d03=_0x2c3e35['getFirstPosition']()?.['parent'];return _0x3d8d03?.['is']('$text')&&(_0x3d8d03=_0x3d8d03['parent']),_0x3d8d03?.['is']('element')?_0x3d8d03['findAncestor'](_0xe28627):null;},'positions':[_0x550780['southArrowNorth'],_0x550780['southArrowNorthMiddleWest'],_0x550780['southArrowNorthMiddleEast'],_0x550780['southArrowNorthWest'],_0x550780['southArrowNorthEast'],_0x550780['northArrowSouth'],_0x550780['northArrowSouthMiddleWest'],_0x550780['northArrowSouthMiddleEast'],_0x550780['northArrowSouthWest'],_0x550780['northArrowSouthEast'],_0x550780['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x467b3a,View as _0x2b33de,ViewCollection as _0x3d0586,FocusCycler as _0xcd5979,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x2b33de{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x3d0586();['focusCycler'];constructor(_0x1b78fa,{styleButtonViews:_0x250e0,styleGridAriaLabel:_0x1f49b9}){super(_0x1b78fa),(this['focusCycler']=new _0xcd5979({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x250e0,_0x1f49b9),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x3d96b5 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3d96b5['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x13c4d3=_0x20ce3a=>_0x20ce3a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x13c4d3),this['keystrokes']['set']('arrowleft',_0x13c4d3),this['keystrokes']['set']('arrowup',_0x13c4d3),this['keystrokes']['set']('arrowdown',_0x13c4d3);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x74c9db,_0x1bde04){const _0x6f5dc5=new _0x2b33de(this['locale']);return _0x6f5dc5['children']=_0x6f5dc5['createCollection'](),_0x6f5dc5['children']['addMany'](_0x74c9db),_0x6f5dc5['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1bde04,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x6f5dc5['children']}),_0x6f5dc5['children']['delegate']('execute')['to'](this),_0x6f5dc5['focus']=function(){for(const _0x2a009b of this['children'])if(_0x2a009b instanceof _0x467b3a&&_0x2a009b['isOn'])return void _0x2a009b['focus']();this['children']['first']['focus']();},_0x6f5dc5['focusTracker']=new ot(),_0x6f5dc5['keystrokes']=new rt(),_0x6f5dc5['render'](),_0x6f5dc5['keystrokes']['listenTo'](_0x6f5dc5['element']),this['children']['add'](_0x6f5dc5),_0x6f5dc5;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x222024=this['_createStartIndexPropertyView'](),_0x2f662f=[_0x222024],_0x25dad8=new st(this['locale'],_0x2f662f);return _0x25dad8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x25dad8['buttonView']['bind']('isEnabled')['toMany'](_0x2f662f,'isEnabled',(..._0x1d336c)=>_0x1d336c['some'](_0x16afca=>_0x16afca)),_0x25dad8['buttonView']['on']('change:isEnabled',(_0x2429ed,_0x8769e3,_0x2b2ae9)=>{_0x2b2ae9||(_0x25dad8['isCollapsed']=!0x0);}),this['children']['add'](_0x25dad8),[_0x222024,_0x25dad8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2cd548=new it(this['locale'],et);return _0x2cd548['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2cd548['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2cd548['fieldView']['on']('input',()=>{const _0x5d6271=_0x2cd548['fieldView']['element'],_0x280669=_0x5d6271['valueAsNumber'];Number['isNaN'](_0x280669)?_0x2cd548['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5d6271['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x280669}):_0x2cd548['errorText']=t(_0x280669<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2cd548;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x153071=_0x8079;function _0x8079(_0x2ee67a,_0x33067d){var _0x595a69=_0x595a();return _0x8079=function(_0x8079da,_0x3d2b14){_0x8079da=_0x8079da-0x1e9;var _0x4996e0=_0x595a69[_0x8079da];return _0x4996e0;},_0x8079(_0x2ee67a,_0x33067d);}(function(_0x50226c,_0x24f316){var _0x504e14=_0x8079,_0x63ae63=_0x50226c();while(!![]){try{var _0x581f8a=parseInt(_0x504e14(0x1f8))/0x1+-parseInt(_0x504e14(0x1ed))/0x2*(-parseInt(_0x504e14(0x1e9))/0x3)+parseInt(_0x504e14(0x1ea))/0x4*(parseInt(_0x504e14(0x1ef))/0x5)+parseInt(_0x504e14(0x1ee))/0x6*(parseInt(_0x504e14(0x1f1))/0x7)+parseInt(_0x504e14(0x1f0))/0x8*(-parseInt(_0x504e14(0x1ec))/0x9)+-parseInt(_0x504e14(0x1f4))/0xa+parseInt(_0x504e14(0x1f2))/0xb;if(_0x581f8a===_0x24f316)break;else _0x63ae63['push'](_0x63ae63['shift']());}catch(_0x5cd37e){_0x63ae63['push'](_0x63ae63['shift']());}}}(_0x595a,0x87ad5));import{Plugin as _0x5bb93e}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x21a0c4}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x40fbf0}from'./footnotesproperties/footnotespropertiesui.js';function _0x595a(){var _0x571359=['418056cbpWUV','579QdWlIh','4qRyZld','isPremiumPlugin','45918YdqNEz','478fhTZNK','1706892jaiiIv','4600635rAOlNh','928nipIVY','14NrsFCT','1227259ziSiTs','requires','9172780cPyLyH','FootnotesProperties','pluginName','isOfficialPlugin'];_0x595a=function(){return _0x571359;};return _0x595a();}export class FootnotesProperties extends _0x5bb93e{static get[_0x153071(0x1f6)](){var _0x3a9cfb=_0x153071;return _0x3a9cfb(0x1f5);}static get[_0x153071(0x1f3)](){return[_0x21a0c4,_0x40fbf0];}static get[_0x153071(0x1f7)](){return!0x0;}static get[_0x153071(0x1eb)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x8f0202=_0x8e89;function _0x8e89(_0x22d872,_0x4c3355){const _0x347e74=_0x347e();return _0x8e89=function(_0x8e8907,_0x4584fd){_0x8e8907=_0x8e8907-0x136;let _0x4626f9=_0x347e74[_0x8e8907];return _0x4626f9;},_0x8e89(_0x22d872,_0x4c3355);}(function(_0x57dc6f,_0x3da0af){const _0x1e1744=_0x8e89,_0x357269=_0x57dc6f();while(!![]){try{const _0x2c9e24=parseInt(_0x1e1744(0x169))/0x1*(parseInt(_0x1e1744(0x179))/0x2)+-parseInt(_0x1e1744(0x16d))/0x3+parseInt(_0x1e1744(0x13a))/0x4+parseInt(_0x1e1744(0x148))/0x5*(-parseInt(_0x1e1744(0x187))/0x6)+parseInt(_0x1e1744(0x17a))/0x7*(parseInt(_0x1e1744(0x19c))/0x8)+parseInt(_0x1e1744(0x193))/0x9*(-parseInt(_0x1e1744(0x191))/0xa)+parseInt(_0x1e1744(0x13c))/0xb*(-parseInt(_0x1e1744(0x19a))/0xc);if(_0x2c9e24===_0x3da0af)break;else _0x357269['push'](_0x357269['shift']());}catch(_0x227178){_0x357269['push'](_0x357269['shift']());}}}(_0x347e,0xb14ec));import{Plugin as _0x2a28c2}from'ckeditor5/src/core.js';function _0x347e(){const _0x242e07=['reset','has','before','remove','footnotesDefinitions','_sortFootnoteDefinitions','splice','_insertEmptyFootnotesDefinitionsContainer','unshift','getChildren','_updateFootnoteRefCounter','indexOf','_handleFootnoteReferencesChanges','rootName','footnoteInlineContent','1867zeKbrQ','insert','_updateFootnotesCounters','differ','591552gLvZza','length','enqueueChange','some','getFootnote','low','compareWith','_footnoteDefsTracker','isPremiumPlugin','after','getAttribute','footnoteCounter','1266gBzoiX','21CoNbIn','_ensureFootnotesDefinitionsContainerExists','listenTo','change:data','isEqual','push','FootnotesTracker','_ensureFootnotesReferencesHaveProperOrder','$graveyard','childCount','_footnotesDefinitions','min','singleton','338646nJzERi','getChanges','root','createRangeOn','set','getFootnotesDefinitionsObjectElement','setAttribute','definition','pluginName','isOfficialPlugin','1640BdLMph','init','34038AfZNKZ','from','_handleInsertedFootnoteReference','_footnoteFormatter','move','createPositionAt','find','301560BumUzn','footnoteDefinition','3224288wBuezS','paragraph','_handleFootnotesDefinitionsObjectSync','_handleRemoveFootnoteReferenceById','_footnoteDefsContainerTracker','5773360jGvlGg','setFootnoteFormatter','385dMNNAw','_handleFootnoteDefinitionsChanges','parent','footnoteRef','getRootNames','get','createRangeIn','editor','reference','getFootnotes','getFootnotesFormatter','findIndex','125BAOzbY','registerPostFixer','footnotes.multiBlock','document','append','config','createPositionBefore','model','_handleFootnotesDefinitionsObjectChanges','high','map','add','createElement','end','_handleMovedFootnoteReference','_footnoteRefsTracker','footnoteId','_footnotes'];_0x347e=function(){return _0x242e07;};return _0x347e();}import{ModelElementTracker as _0x58a88b}from'./modelelementtracker.js';export class FootnotesTracker extends _0x2a28c2{[_0x8f0202(0x159)]=[];[_0x8f0202(0x184)]=null;[_0x8f0202(0x196)]=null;[_0x8f0202(0x139)];[_0x8f0202(0x157)];[_0x8f0202(0x174)];static get[_0x8f0202(0x18f)](){const _0x2dd4eb=_0x8f0202;return _0x2dd4eb(0x180);}static get[_0x8f0202(0x190)](){return!0x0;}static get[_0x8f0202(0x175)](){return!0x0;}constructor(_0x1924e9){const _0x57e029=_0x8f0202;super(_0x1924e9),this[_0x57e029(0x139)]=new _0x58a88b(this[_0x57e029(0x143)][_0x57e029(0x14f)],{'elementName':_0x57e029(0x15e),'getElementKey':()=>_0x57e029(0x186)}),this[_0x57e029(0x157)]=new _0x58a88b(this[_0x57e029(0x143)][_0x57e029(0x14f)],{'elementName':_0x57e029(0x13f),'getElementKey':_0x370065=>_0x370065[_0x57e029(0x177)](_0x57e029(0x158))}),this[_0x57e029(0x174)]=new _0x58a88b(this[_0x57e029(0x143)][_0x57e029(0x14f)],{'elementName':_0x57e029(0x19b),'getElementKey':_0x548ace=>_0x548ace[_0x57e029(0x177)](_0x57e029(0x158))});}[_0x8f0202(0x192)](){const _0x5e3dcc=_0x8f0202,{editor:_0x55625b}=this,{model:_0x33e858,data:_0x255431}=_0x55625b;_0x33e858[_0x5e3dcc(0x14b)][_0x5e3dcc(0x149)](_0x4f067b=>{const _0x3e16ce=_0x5e3dcc,_0x437876=_0x33e858[_0x3e16ce(0x14b)][_0x3e16ce(0x16c)][_0x3e16ce(0x188)]();let _0x244900=!0x1;return this[_0x3e16ce(0x150)](_0x4f067b,_0x437876)&&(_0x244900=!0x0),this[_0x3e16ce(0x13d)](_0x4f067b,_0x437876)&&(_0x244900=!0x0),this[_0x3e16ce(0x166)](_0x4f067b,_0x437876)&&(_0x244900=!0x0),this[_0x3e16ce(0x181)](_0x4f067b)&&(_0x244900=!0x0),this[_0x3e16ce(0x137)](_0x4f067b)&&(_0x244900=!0x0),this[_0x3e16ce(0x15f)](_0x4f067b)&&(_0x244900=!0x0),_0x244900;}),this[_0x5e3dcc(0x17c)](_0x33e858[_0x5e3dcc(0x14b)],_0x5e3dcc(0x17d),()=>{const _0x51e433=_0x5e3dcc;_0x33e858[_0x51e433(0x16f)]({'isUndoable':!0x1},_0x2bfa7f=>{const _0x2ba1da=_0x51e433;this[_0x2ba1da(0x17b)](_0x2bfa7f);});},{'priority':_0x5e3dcc(0x172)}),this[_0x5e3dcc(0x17c)](_0x255431,_0x5e3dcc(0x18b),()=>{const _0x2295ab=_0x5e3dcc;this[_0x2295ab(0x159)]=[],this[_0x2295ab(0x139)][_0x2295ab(0x15a)](),this[_0x2295ab(0x157)][_0x2295ab(0x15a)](),this[_0x2295ab(0x174)][_0x2295ab(0x15a)]();},{'priority':_0x5e3dcc(0x151)});}[_0x8f0202(0x18c)](){const _0x151bc1=_0x8f0202;return this[_0x151bc1(0x184)];}[_0x8f0202(0x171)](_0x538ec1){const _0x4cbffb=_0x8f0202;return this[_0x4cbffb(0x159)][_0x4cbffb(0x199)](_0x5eda9e=>_0x5eda9e['id']===_0x538ec1)||null;}[_0x8f0202(0x145)](){const _0x1873d7=_0x8f0202;return Array[_0x1873d7(0x194)](this[_0x1873d7(0x159)]);}[_0x8f0202(0x146)](){const _0x43dd00=_0x8f0202;return this[_0x43dd00(0x196)];}[_0x8f0202(0x13b)](_0xd47bff){const _0x5bca2e=_0x8f0202;this[_0x5bca2e(0x196)]=_0xd47bff;}[_0x8f0202(0x16b)](_0x39e7f6,_0x4ad5a9=0x0){const _0x5e0a2c=_0x8f0202;let _0x266607=!0x1;for(let _0xe74ed0=_0x4ad5a9;_0xe74ed0<this[_0x5e0a2c(0x159)][_0x5e0a2c(0x16e)];_0xe74ed0++)this[_0x5e0a2c(0x164)](_0x39e7f6,_0xe74ed0)&&(_0x266607=!0x0);return _0x266607;}[_0x8f0202(0x161)](_0x605548,_0x4976e4){const _0x486af7=_0x8f0202,_0x28d10d=_0x605548[_0x486af7(0x154)](_0x486af7(0x15e),{});return _0x605548[_0x486af7(0x14c)](_0x28d10d,_0x4976e4),this[_0x486af7(0x184)]=_0x28d10d,_0x28d10d;}[_0x8f0202(0x17b)](_0x560919){const _0x58e72e=_0x8f0202;if(!this[_0x58e72e(0x159)][_0x58e72e(0x16e)]||this[_0x58e72e(0x184)])return;const _0xaee7b4=this[_0x58e72e(0x159)][0x0][_0x58e72e(0x144)][_0x58e72e(0x189)],_0x23cecd=this[_0x58e72e(0x161)](_0x560919,_0xaee7b4);for(const _0x8b8dab of this[_0x58e72e(0x159)])_0x8b8dab[_0x58e72e(0x18e)][_0x58e72e(0x13e)]||_0x560919[_0x58e72e(0x16a)](_0x8b8dab[_0x58e72e(0x18e)],_0x23cecd,_0x58e72e(0x155));this[_0x58e72e(0x16b)](_0x560919);}[_0x8f0202(0x150)](_0x55d5db,_0x57e5a3){const _0x373b90=_0x8f0202;let _0x5f1aa7=!0x1;const {inserted:_0x2898eb,removed:_0x29f886,moved:_0x153b04}=this[_0x373b90(0x139)][_0x373b90(0x188)](_0x57e5a3);if(_0x153b04[_0x373b90(0x16e)]&&(this[_0x373b90(0x184)]=_0x153b04[0x0]),_0x2898eb[_0x373b90(0x16e)]){if(_0x2898eb[_0x373b90(0x16e)]>0x1||this[_0x373b90(0x184)]&&_0x2898eb[_0x373b90(0x170)](_0x4e3f3b=>_0x4e3f3b!==this[_0x373b90(0x184)])){const _0x5ef1aa=_0x55d5db[_0x373b90(0x154)](_0x373b90(0x15e),{}),_0x21329d=[];this[_0x373b90(0x184)]&&_0x21329d[_0x373b90(0x17f)](this[_0x373b90(0x184)]),_0x21329d[_0x373b90(0x17f)](..._0x2898eb),_0x55d5db[_0x373b90(0x16a)](_0x5ef1aa,_0x21329d[0x0],_0x373b90(0x15c));for(const _0x2c14ba of _0x21329d)_0x55d5db[_0x373b90(0x197)](_0x55d5db[_0x373b90(0x142)](_0x2c14ba),_0x55d5db[_0x373b90(0x198)](_0x5ef1aa,_0x373b90(0x155))),_0x55d5db[_0x373b90(0x15d)](_0x2c14ba);this[_0x373b90(0x184)]=_0x5ef1aa,this[_0x373b90(0x16b)](_0x55d5db),_0x5f1aa7=!0x0;}else this[_0x373b90(0x184)]=_0x2898eb[0x0];}if(_0x29f886[_0x373b90(0x16e)]&&_0x373b90(0x182)===this[_0x373b90(0x184)]?.[_0x373b90(0x189)][_0x373b90(0x167)]){for(const _0x1b93d4 of this[_0x373b90(0x159)])_0x55d5db[_0x373b90(0x15d)](_0x1b93d4[_0x373b90(0x144)]),_0x5f1aa7=!0x0;this[_0x373b90(0x159)]=[],this[_0x373b90(0x184)]=null;}return _0x5f1aa7;}[_0x8f0202(0x13d)](_0x29669b,_0x57dcd2){const _0x312065=_0x8f0202;let _0x1e17d5=!0x1;const _0x237607=this[_0x312065(0x143)][_0x312065(0x14d)][_0x312065(0x141)](_0x312065(0x14a)),{inserted:_0xfce01,moved:_0x484484}=this[_0x312065(0x174)][_0x312065(0x188)](_0x57dcd2);for(const _0x540484 of[..._0x484484,..._0xfce01]){const _0x30b367=_0x540484[_0x312065(0x177)](_0x312065(0x158)),_0x5d1f66=this[_0x312065(0x171)](_0x30b367);_0x5d1f66&&(_0x5d1f66[_0x312065(0x18e)]=_0x540484),_(_0x29669b,_0x237607,_0x540484)&&(_0x1e17d5=!0x0);}return _0x1e17d5;}[_0x8f0202(0x166)](_0x29c75f,_0x3e091d){const _0x4243c0=_0x8f0202;let _0x3cbc76=!0x1;const {removed:_0x590ada,inserted:_0xffca30,moved:_0x12ba3d}=this[_0x4243c0(0x157)][_0x4243c0(0x188)](_0x3e091d);for(const _0x30e008 of _0x590ada)this[_0x4243c0(0x138)](_0x29c75f,_0x30e008)&&(_0x3cbc76=!0x0);for(const _0xf0ef5a of _0xffca30)this[_0x4243c0(0x195)](_0x29c75f,_0xf0ef5a)&&(_0x3cbc76=!0x0);for(const _0x543d42 of _0x12ba3d)this[_0x4243c0(0x156)](_0x29c75f,_0x543d42)&&(_0x3cbc76=!0x0);return _0x3cbc76;}[_0x8f0202(0x137)](_0x8c13db){const _0x586eb6=_0x8f0202;if(!this[_0x586eb6(0x184)])return!0x1;let _0x36be74=!0x1;if(this[_0x586eb6(0x184)][_0x586eb6(0x183)]!==this[_0x586eb6(0x159)][_0x586eb6(0x16e)]){const _0x3df866=[];for(const _0xbce12c of this[_0x586eb6(0x184)][_0x586eb6(0x163)]()){const _0x1ed5ee=_0xbce12c[_0x586eb6(0x177)](_0x586eb6(0x158));this[_0x586eb6(0x171)](_0x1ed5ee)||(_0x3df866[_0x586eb6(0x162)](_0xbce12c),_0x36be74=!0x0);}for(const _0x1e5fa6 of _0x3df866)_0x8c13db[_0x586eb6(0x15d)](_0x1e5fa6);}const _0x20a279=new Set(),_0x59fd57=[];for(const _0x1f1662 of this[_0x586eb6(0x184)][_0x586eb6(0x163)]()){const _0x95b4f0=_0x1f1662[_0x586eb6(0x177)](_0x586eb6(0x158));_0x20a279[_0x586eb6(0x15b)](_0x95b4f0)?(_0x59fd57[_0x586eb6(0x162)](_0x1f1662),_0x36be74=!0x0):_0x20a279[_0x586eb6(0x153)](_0x95b4f0);}for(const _0x52b126 of _0x59fd57)_0x8c13db[_0x586eb6(0x15d)](_0x52b126);return this[_0x586eb6(0x184)][_0x586eb6(0x183)]||(_0x8c13db[_0x586eb6(0x15d)](this[_0x586eb6(0x184)]),this[_0x586eb6(0x184)]=null,_0x36be74=!0x0),_0x36be74;}[_0x8f0202(0x195)](_0xec831,_0x47d4a4){const _0x2c3953=_0x8f0202;if(this[_0x2c3953(0x159)][_0x2c3953(0x199)](_0x24cba7=>_0x24cba7[_0x2c3953(0x144)]===_0x47d4a4))return!0x1;let _0x50f858=!0x1;const _0x424e2a=_0x47d4a4[_0x2c3953(0x177)](_0x2c3953(0x158)),_0x3a56a8=this[_0x2c3953(0x159)][_0x2c3953(0x147)](_0x6a19f2=>_0x6a19f2['id']===_0x424e2a);-0x1!==_0x3a56a8&&(_0xec831[_0x2c3953(0x15d)](this[_0x2c3953(0x159)][_0x3a56a8][_0x2c3953(0x144)]),this[_0x2c3953(0x159)][_0x2c3953(0x160)](_0x3a56a8,0x1),_0x50f858=!0x0);let _0x1aaf30=this[_0x2c3953(0x184)]?function(_0x10b442,_0x4047fd){const _0x384697=_0x2c3953;for(const _0x48d57e of _0x10b442[_0x384697(0x163)]())if(_0x48d57e[_0x384697(0x177)](_0x384697(0x158))===_0x4047fd)return _0x48d57e;return null;}(this[_0x2c3953(0x184)],_0x424e2a):null;_0x1aaf30||(_0x1aaf30=_0xec831[_0x2c3953(0x154)](_0x2c3953(0x19b),{'footnoteId':_0x424e2a}),this[_0x2c3953(0x184)]&&(_0xec831[_0x2c3953(0x16a)](_0x1aaf30,this[_0x2c3953(0x184)],_0x2c3953(0x155)),_0x50f858=!0x0));const _0x255304={'id':_0x424e2a,'reference':_0x47d4a4,'definition':_0x1aaf30},_0x465ef5=I(this[_0x2c3953(0x143)][_0x2c3953(0x14f)],this[_0x2c3953(0x159)],_0x47d4a4);this[_0x2c3953(0x159)][_0x2c3953(0x160)](_0x465ef5,0x0,_0x255304);let _0x868af9=_0x465ef5;return-0x1!==_0x3a56a8&&(_0x868af9=Math[_0x2c3953(0x185)](_0x465ef5,_0x3a56a8)),this[_0x2c3953(0x16b)](_0xec831,_0x868af9)&&(_0x50f858=!0x0),_0x50f858;}[_0x8f0202(0x138)](_0x2efcd7,_0x2f7be7){const _0x1af7f4=_0x8f0202,_0x29fd3a=this[_0x1af7f4(0x159)][_0x1af7f4(0x147)](_0x133778=>_0x133778['id']===_0x2f7be7);if(-0x1===_0x29fd3a)return!0x1;let _0x745da9=!0x1;const _0x5dec2f=this[_0x1af7f4(0x159)][_0x29fd3a];return _0x1af7f4(0x182)!==_0x5dec2f[_0x1af7f4(0x18e)][_0x1af7f4(0x189)][_0x1af7f4(0x167)]&&(_0x2efcd7[_0x1af7f4(0x15d)](_0x5dec2f[_0x1af7f4(0x18e)]),_0x745da9=!0x0),this[_0x1af7f4(0x159)][_0x1af7f4(0x160)](_0x29fd3a,0x1),this[_0x1af7f4(0x16b)](_0x2efcd7,_0x29fd3a)&&(_0x745da9=!0x0),_0x745da9;}[_0x8f0202(0x156)](_0x4cd7cd,_0x1fb4d1){const _0x311b49=_0x8f0202,_0x3507b9=_0x1fb4d1[_0x311b49(0x177)](_0x311b49(0x158)),_0x1b549b=this[_0x311b49(0x159)][_0x311b49(0x147)](_0x352ac4=>_0x352ac4['id']===_0x3507b9),_0x5a9d8c=this[_0x311b49(0x159)][_0x1b549b];let _0x58c015=!0x1;_0x5a9d8c[_0x311b49(0x144)]=_0x1fb4d1,this[_0x311b49(0x159)][_0x311b49(0x160)](_0x1b549b,0x1);const _0x15dd00=I(this[_0x311b49(0x143)][_0x311b49(0x14f)],this[_0x311b49(0x159)],_0x1fb4d1);return this[_0x311b49(0x159)][_0x311b49(0x160)](_0x15dd00,0x0,_0x5a9d8c),this[_0x311b49(0x16b)](_0x4cd7cd,Math[_0x311b49(0x185)](_0x1b549b,_0x15dd00))&&(_0x58c015=!0x0),_0x58c015;}[_0x8f0202(0x164)](_0xe30a5a,_0x250be8){const _0x23604f=_0x8f0202;if(!this[_0x23604f(0x184)])return!0x1;const _0x1765d6=this[_0x23604f(0x159)][_0x250be8];let _0x378e1f;return _0x378e1f=this[_0x23604f(0x196)]?this[_0x23604f(0x196)]({'footnote':_0x1765d6,'container':this[_0x23604f(0x184)],'digits':String(this[_0x23604f(0x159)][_0x23604f(0x16e)])[_0x23604f(0x16e)],'value':_0x250be8+0x1}):String(_0x250be8+0x1),_0x1765d6[_0x23604f(0x144)][_0x23604f(0x177)](_0x23604f(0x178))!=_0x378e1f&&(_0xe30a5a[_0x23604f(0x18d)](_0x23604f(0x178),_0x378e1f,_0x1765d6[_0x23604f(0x144)]),!0x0);}[_0x8f0202(0x15f)](_0x488b8f){const _0x12ff8f=_0x8f0202;if(!this[_0x12ff8f(0x184)]||this[_0x12ff8f(0x159)][_0x12ff8f(0x16e)]<0x2)return!0x1;if(function(_0x14dc97,_0x576a46){const _0x30ba85=_0x12ff8f;if(_0x14dc97[_0x30ba85(0x16e)]!==_0x576a46[_0x30ba85(0x16e)])return!0x1;for(let _0x58c370=0x0;_0x58c370<_0x14dc97[_0x30ba85(0x16e)];_0x58c370++)if(_0x14dc97[_0x58c370]!==_0x576a46[_0x58c370])return!0x1;return!0x0;}(this[_0x12ff8f(0x159)][_0x12ff8f(0x152)](_0x2d5218=>_0x2d5218['id']),Array[_0x12ff8f(0x194)](this[_0x12ff8f(0x184)][_0x12ff8f(0x163)]())[_0x12ff8f(0x152)](_0x19e03d=>_0x19e03d[_0x12ff8f(0x177)](_0x12ff8f(0x158)))))return!0x1;let _0x386c2a=!0x1;for(let _0x2049b8=0x0;_0x2049b8<this[_0x12ff8f(0x159)][_0x12ff8f(0x16e)];_0x2049b8++){const _0x2f00ee=this[_0x12ff8f(0x159)][_0x2049b8],_0x54f8a3=_0x488b8f[_0x12ff8f(0x14e)](_0x2f00ee[_0x12ff8f(0x18e)]),_0x4d48b2=_0x488b8f[_0x12ff8f(0x198)](this[_0x12ff8f(0x184)],_0x2049b8);_0x54f8a3[_0x12ff8f(0x17e)](_0x4d48b2)||(_0x488b8f[_0x12ff8f(0x197)](_0x488b8f[_0x12ff8f(0x18a)](_0x2f00ee[_0x12ff8f(0x18e)]),_0x4d48b2),_0x386c2a=!0x0);}return _0x386c2a;}[_0x8f0202(0x181)](_0x4140e8){const _0x497aa4=_0x8f0202;if(!this[_0x497aa4(0x159)][_0x497aa4(0x16e)])return!0x1;const {model:_0x2996fd}=this[_0x497aa4(0x143)];let _0x268b7d=!0x1;for(let _0x2cd2d9=0x0;_0x2cd2d9<this[_0x497aa4(0x159)][_0x497aa4(0x16e)]-0x1;_0x2cd2d9++){const _0x743245=this[_0x497aa4(0x159)][_0x2cd2d9],_0x1d0bef=this[_0x497aa4(0x159)][_0x2cd2d9+0x1],_0x2c434e=_0x2996fd[_0x497aa4(0x14e)](_0x743245[_0x497aa4(0x144)]),_0x41c787=_0x2996fd[_0x497aa4(0x14e)](_0x1d0bef[_0x497aa4(0x144)]);_0x497aa4(0x176)===_0x2c434e[_0x497aa4(0x173)](_0x41c787)&&(this[_0x497aa4(0x156)](_0x4140e8,_0x743245[_0x497aa4(0x144)]),_0x2cd2d9=-0x1,_0x268b7d=!0x0);}return _0x268b7d;}}function _(_0x49f485,_0x30f6ea,_0x419dfe){const _0x354529=_0x8f0202;if(_0x419dfe[_0x354529(0x183)])return!0x1;const _0x408a07=_0x30f6ea?_0x354529(0x136):_0x354529(0x168);return _0x49f485[_0x354529(0x16a)](_0x49f485[_0x354529(0x154)](_0x408a07),_0x419dfe),!0x0;}function I(_0x1c7320,_0x3cc9e4,_0x5dbc10){const _0x488b3a=_0x8f0202;if(0x0===_0x3cc9e4[_0x488b3a(0x16e)])return 0x0;const _0x1f4117=_0x1c7320[_0x488b3a(0x14e)](_0x5dbc10);for(let _0x59936c=0x0;_0x59936c<_0x3cc9e4[_0x488b3a(0x16e)];_0x59936c++){const _0x368e11=_0x3cc9e4[_0x59936c],_0x1497c0=_0x1c7320[_0x488b3a(0x14e)](_0x368e11[_0x488b3a(0x144)]);if(_0x488b3a(0x15c)===_0x1f4117[_0x488b3a(0x173)](_0x1497c0))return _0x59936c;}const _0x49b362=_0x5dbc10[_0x488b3a(0x189)];let _0x19d881=-0x1;for(let _0x1a4d5e=_0x3cc9e4[_0x488b3a(0x16e)]-0x1;_0x1a4d5e>=0x0;_0x1a4d5e--)if(_0x3cc9e4[_0x1a4d5e][_0x488b3a(0x144)][_0x488b3a(0x189)]===_0x49b362){_0x19d881=_0x1a4d5e;break;}if(-0x1!==_0x19d881)return _0x19d881+0x1;const _0x3d31cc=_0x1c7320[_0x488b3a(0x14b)][_0x488b3a(0x140)](),_0x4bb483=_0x3d31cc[_0x488b3a(0x165)](_0x49b362[_0x488b3a(0x167)]),_0x6b8ab2=_0x3d31cc[_0x4bb483+0x1];if(_0x6b8ab2){for(let _0x4a3544=0x0;_0x4a3544<_0x3cc9e4[_0x488b3a(0x16e)];_0x4a3544++)if(_0x3cc9e4[_0x4a3544][_0x488b3a(0x144)][_0x488b3a(0x189)][_0x488b3a(0x167)]===_0x6b8ab2)return _0x4a3544;}return _0x3cc9e4[_0x488b3a(0x16e)];}
|
|
23
|
+
const _0x127bfe=_0x29c6;(function(_0x2b7f43,_0x31fb61){const _0x570d06=_0x29c6,_0x47d99c=_0x2b7f43();while(!![]){try{const _0x5b5620=parseInt(_0x570d06(0xf1))/0x1+-parseInt(_0x570d06(0xef))/0x2*(-parseInt(_0x570d06(0x107))/0x3)+-parseInt(_0x570d06(0x128))/0x4+-parseInt(_0x570d06(0xdf))/0x5*(parseInt(_0x570d06(0xd1))/0x6)+-parseInt(_0x570d06(0x10a))/0x7*(parseInt(_0x570d06(0xe5))/0x8)+-parseInt(_0x570d06(0xfb))/0x9*(parseInt(_0x570d06(0xde))/0xa)+parseInt(_0x570d06(0x11c))/0xb;if(_0x5b5620===_0x31fb61)break;else _0x47d99c['push'](_0x47d99c['shift']());}catch(_0x2c937b){_0x47d99c['push'](_0x47d99c['shift']());}}}(_0x44a2,0x8e175));function _0x29c6(_0x34da9b,_0x36c346){const _0x44a294=_0x44a2();return _0x29c6=function(_0x29c66e,_0x539b5f){_0x29c66e=_0x29c66e-0xca;let _0x181c4c=_0x44a294[_0x29c66e];return _0x181c4c;},_0x29c6(_0x34da9b,_0x36c346);}function _0x44a2(){const _0x432a1e=['document','unshift','map','compareWith','set','move','createRangeOn','_footnoteRefsTracker','6565473kpJmdh','enqueueChange','remove','pluginName','after','_footnotesDefinitions','definition','_handleFootnotesDefinitionsObjectChanges','_footnotes','_handleRemoveFootnoteReferenceById','change:data','createPositionBefore','42IRbjFA','_handleFootnotesDefinitionsObjectSync','isPremiumPlugin','224zlWlwX','footnoteId','find','setFootnoteFormatter','getFootnote','paragraph','$graveyard','_insertEmptyFootnotesDefinitionsContainer','getFootnotesFormatter','listenTo','parent','isEqual','_handleFootnoteDefinitionsChanges','getAttribute','_footnoteDefsTracker','min','low','_ensureFootnotesDefinitionsContainerExists','9503703zvpQCA','insert','getRootNames','reset','_updateFootnotesCounters','createElement','registerPostFixer','some','_handleMovedFootnoteReference','footnoteRef','singleton','editor','1158112pKlheD','_footnoteFormatter','config','footnoteInlineContent','footnoteDefinition','splice','length','getChanges','getFootnotes','_footnoteDefsContainerTracker','isOfficialPlugin','_handleFootnoteReferencesChanges','createRangeIn','push','createPositionAt','12spXyUu','footnoteCounter','getChildren','from','before','differ','_handleInsertedFootnoteReference','indexOf','setAttribute','FootnotesTracker','init','get','_updateFootnoteRefCounter','10cQVUNT','497885PXtskZ','footnotes.multiBlock','high','has','end','footnotesDefinitions','136272VDhQMg','_sortFootnoteDefinitions','add','model','_ensureFootnotesReferencesHaveProperOrder','append','childCount','reference','rootName','getFootnotesDefinitionsObjectElement','140188zQDcMI','root','499983axEJwM','findIndex'];_0x44a2=function(){return _0x432a1e;};return _0x44a2();}import{Plugin as _0x193722}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x52a234}from'./modelelementtracker.js';export class FootnotesTracker extends _0x193722{[_0x127bfe(0x103)]=[];[_0x127bfe(0x100)]=null;[_0x127bfe(0x129)]=null;[_0x127bfe(0xcb)];[_0x127bfe(0xfa)];[_0x127bfe(0x118)];static get[_0x127bfe(0xfe)](){const _0x349c36=_0x127bfe;return _0x349c36(0xda);}static get[_0x127bfe(0xcc)](){return!0x0;}static get[_0x127bfe(0x109)](){return!0x0;}constructor(_0x2f53c6){const _0x55abd2=_0x127bfe;super(_0x2f53c6),this[_0x55abd2(0xcb)]=new _0x52a234(this[_0x55abd2(0x127)][_0x55abd2(0xe8)],{'elementName':_0x55abd2(0xe4),'getElementKey':()=>_0x55abd2(0x126)}),this[_0x55abd2(0xfa)]=new _0x52a234(this[_0x55abd2(0x127)][_0x55abd2(0xe8)],{'elementName':_0x55abd2(0x125),'getElementKey':_0x8cc3e9=>_0x8cc3e9[_0x55abd2(0x117)](_0x55abd2(0x10b))}),this[_0x55abd2(0x118)]=new _0x52a234(this[_0x55abd2(0x127)][_0x55abd2(0xe8)],{'elementName':_0x55abd2(0x12c),'getElementKey':_0x1d5025=>_0x1d5025[_0x55abd2(0x117)](_0x55abd2(0x10b))});}[_0x127bfe(0xdb)](){const _0x25440a=_0x127bfe,{editor:_0x443056}=this,{model:_0x46cf4f,data:_0x4c27a0}=_0x443056;_0x46cf4f[_0x25440a(0xf3)][_0x25440a(0x122)](_0x91d5cb=>{const _0xaa5b56=_0x25440a,_0x44c4b0=_0x46cf4f[_0xaa5b56(0xf3)][_0xaa5b56(0xd6)][_0xaa5b56(0x12f)]();let _0x488486=!0x1;return this[_0xaa5b56(0x102)](_0x91d5cb,_0x44c4b0)&&(_0x488486=!0x0),this[_0xaa5b56(0x116)](_0x91d5cb,_0x44c4b0)&&(_0x488486=!0x0),this[_0xaa5b56(0xcd)](_0x91d5cb,_0x44c4b0)&&(_0x488486=!0x0),this[_0xaa5b56(0xe9)](_0x91d5cb)&&(_0x488486=!0x0),this[_0xaa5b56(0x108)](_0x91d5cb)&&(_0x488486=!0x0),this[_0xaa5b56(0xe6)](_0x91d5cb)&&(_0x488486=!0x0),_0x488486;}),this[_0x25440a(0x113)](_0x46cf4f[_0x25440a(0xf3)],_0x25440a(0x105),()=>{const _0x2e4a4e=_0x25440a;_0x46cf4f[_0x2e4a4e(0xfc)]({'isUndoable':!0x1},_0xf790f2=>{const _0x330e9d=_0x2e4a4e;this[_0x330e9d(0x11b)](_0xf790f2);});},{'priority':_0x25440a(0x11a)}),this[_0x25440a(0x113)](_0x4c27a0,_0x25440a(0xf7),()=>{const _0x4eecf5=_0x25440a;this[_0x4eecf5(0x103)]=[],this[_0x4eecf5(0xcb)][_0x4eecf5(0x11f)](),this[_0x4eecf5(0xfa)][_0x4eecf5(0x11f)](),this[_0x4eecf5(0x118)][_0x4eecf5(0x11f)]();},{'priority':_0x25440a(0xe1)});}[_0x127bfe(0xee)](){const _0xdbed58=_0x127bfe;return this[_0xdbed58(0x100)];}[_0x127bfe(0x10e)](_0x25c391){const _0x46b571=_0x127bfe;return this[_0x46b571(0x103)][_0x46b571(0x10c)](_0x258161=>_0x258161['id']===_0x25c391)||null;}[_0x127bfe(0xca)](){const _0x1ae264=_0x127bfe;return Array[_0x1ae264(0xd4)](this[_0x1ae264(0x103)]);}[_0x127bfe(0x112)](){const _0x2a3867=_0x127bfe;return this[_0x2a3867(0x129)];}[_0x127bfe(0x10d)](_0xbdc89e){const _0x41d8b6=_0x127bfe;this[_0x41d8b6(0x129)]=_0xbdc89e;}[_0x127bfe(0x120)](_0x2e24c7,_0x31b857=0x0){const _0x24a16c=_0x127bfe;let _0x3e5457=!0x1;for(let _0x1a351c=_0x31b857;_0x1a351c<this[_0x24a16c(0x103)][_0x24a16c(0x12e)];_0x1a351c++)this[_0x24a16c(0xdd)](_0x2e24c7,_0x1a351c)&&(_0x3e5457=!0x0);return _0x3e5457;}[_0x127bfe(0x111)](_0x51814c,_0xeb58f){const _0x5d833a=_0x127bfe,_0x57155c=_0x51814c[_0x5d833a(0x121)](_0x5d833a(0xe4),{});return _0x51814c[_0x5d833a(0xea)](_0x57155c,_0xeb58f),this[_0x5d833a(0x100)]=_0x57155c,_0x57155c;}[_0x127bfe(0x11b)](_0x2805d6){const _0x32d858=_0x127bfe;if(!this[_0x32d858(0x103)][_0x32d858(0x12e)]||this[_0x32d858(0x100)])return;const _0x328a02=this[_0x32d858(0x103)][0x0][_0x32d858(0xec)][_0x32d858(0xf0)],_0x2486fd=this[_0x32d858(0x111)](_0x2805d6,_0x328a02);for(const _0xc40e48 of this[_0x32d858(0x103)])_0xc40e48[_0x32d858(0x101)][_0x32d858(0x114)]||_0x2805d6[_0x32d858(0x11d)](_0xc40e48[_0x32d858(0x101)],_0x2486fd,_0x32d858(0xe3));this[_0x32d858(0x120)](_0x2805d6);}[_0x127bfe(0x102)](_0x5e25f5,_0x125925){const _0x5ab2e0=_0x127bfe;let _0xc37130=!0x1;const {inserted:_0x108d1d,removed:_0x5a7b57,moved:_0x518beb}=this[_0x5ab2e0(0xcb)][_0x5ab2e0(0x12f)](_0x125925);if(_0x518beb[_0x5ab2e0(0x12e)]&&(this[_0x5ab2e0(0x100)]=_0x518beb[0x0]),_0x108d1d[_0x5ab2e0(0x12e)]){if(_0x108d1d[_0x5ab2e0(0x12e)]>0x1||this[_0x5ab2e0(0x100)]&&_0x108d1d[_0x5ab2e0(0x123)](_0xe1279b=>_0xe1279b!==this[_0x5ab2e0(0x100)])){const _0x40aedc=_0x5e25f5[_0x5ab2e0(0x121)](_0x5ab2e0(0xe4),{}),_0x5a1515=[];this[_0x5ab2e0(0x100)]&&_0x5a1515[_0x5ab2e0(0xcf)](this[_0x5ab2e0(0x100)]),_0x5a1515[_0x5ab2e0(0xcf)](..._0x108d1d),_0x5e25f5[_0x5ab2e0(0x11d)](_0x40aedc,_0x5a1515[0x0],_0x5ab2e0(0xd5));for(const _0x21702e of _0x5a1515)_0x5e25f5[_0x5ab2e0(0xf8)](_0x5e25f5[_0x5ab2e0(0xce)](_0x21702e),_0x5e25f5[_0x5ab2e0(0xd0)](_0x40aedc,_0x5ab2e0(0xe3))),_0x5e25f5[_0x5ab2e0(0xfd)](_0x21702e);this[_0x5ab2e0(0x100)]=_0x40aedc,this[_0x5ab2e0(0x120)](_0x5e25f5),_0xc37130=!0x0;}else this[_0x5ab2e0(0x100)]=_0x108d1d[0x0];}if(_0x5a7b57[_0x5ab2e0(0x12e)]&&_0x5ab2e0(0x110)===this[_0x5ab2e0(0x100)]?.[_0x5ab2e0(0xf0)][_0x5ab2e0(0xed)]){for(const _0x156f61 of this[_0x5ab2e0(0x103)])_0x5e25f5[_0x5ab2e0(0xfd)](_0x156f61[_0x5ab2e0(0xec)]),_0xc37130=!0x0;this[_0x5ab2e0(0x103)]=[],this[_0x5ab2e0(0x100)]=null;}return _0xc37130;}[_0x127bfe(0x116)](_0x768e50,_0x1a086a){const _0xfaa18f=_0x127bfe;let _0x3751e1=!0x1;const _0x51356a=this[_0xfaa18f(0x127)][_0xfaa18f(0x12a)][_0xfaa18f(0xdc)](_0xfaa18f(0xe0)),{inserted:_0x40fc51,moved:_0x40c111}=this[_0xfaa18f(0x118)][_0xfaa18f(0x12f)](_0x1a086a);for(const _0x3d406d of[..._0x40c111,..._0x40fc51]){const _0x52d383=_0x3d406d[_0xfaa18f(0x117)](_0xfaa18f(0x10b)),_0x1144f4=this[_0xfaa18f(0x10e)](_0x52d383);_0x1144f4&&(_0x1144f4[_0xfaa18f(0x101)]=_0x3d406d),_(_0x768e50,_0x51356a,_0x3d406d)&&(_0x3751e1=!0x0);}return _0x3751e1;}[_0x127bfe(0xcd)](_0x1968d8,_0x257f50){const _0x136f07=_0x127bfe;let _0x467f15=!0x1;const {removed:_0x3673f8,inserted:_0x4b0b46,moved:_0x46ebd0}=this[_0x136f07(0xfa)][_0x136f07(0x12f)](_0x257f50);for(const _0xae887a of _0x3673f8)this[_0x136f07(0x104)](_0x1968d8,_0xae887a)&&(_0x467f15=!0x0);for(const _0x28b20b of _0x4b0b46)this[_0x136f07(0xd7)](_0x1968d8,_0x28b20b)&&(_0x467f15=!0x0);for(const _0x21b622 of _0x46ebd0)this[_0x136f07(0x124)](_0x1968d8,_0x21b622)&&(_0x467f15=!0x0);return _0x467f15;}[_0x127bfe(0x108)](_0x2e0028){const _0x52a1d4=_0x127bfe;if(!this[_0x52a1d4(0x100)])return!0x1;let _0x38a04b=!0x1;if(this[_0x52a1d4(0x100)][_0x52a1d4(0xeb)]!==this[_0x52a1d4(0x103)][_0x52a1d4(0x12e)]){const _0x2fdd71=[];for(const _0x54e5d0 of this[_0x52a1d4(0x100)][_0x52a1d4(0xd3)]()){const _0x520fbc=_0x54e5d0[_0x52a1d4(0x117)](_0x52a1d4(0x10b));this[_0x52a1d4(0x10e)](_0x520fbc)||(_0x2fdd71[_0x52a1d4(0xf4)](_0x54e5d0),_0x38a04b=!0x0);}for(const _0x561e00 of _0x2fdd71)_0x2e0028[_0x52a1d4(0xfd)](_0x561e00);}const _0x349862=new Set(),_0x514e1e=[];for(const _0x45edcd of this[_0x52a1d4(0x100)][_0x52a1d4(0xd3)]()){const _0x566ff6=_0x45edcd[_0x52a1d4(0x117)](_0x52a1d4(0x10b));_0x349862[_0x52a1d4(0xe2)](_0x566ff6)?(_0x514e1e[_0x52a1d4(0xf4)](_0x45edcd),_0x38a04b=!0x0):_0x349862[_0x52a1d4(0xe7)](_0x566ff6);}for(const _0xe7ba80 of _0x514e1e)_0x2e0028[_0x52a1d4(0xfd)](_0xe7ba80);return this[_0x52a1d4(0x100)][_0x52a1d4(0xeb)]||(_0x2e0028[_0x52a1d4(0xfd)](this[_0x52a1d4(0x100)]),this[_0x52a1d4(0x100)]=null,_0x38a04b=!0x0),_0x38a04b;}[_0x127bfe(0xd7)](_0x1e860e,_0x4ea1df){const _0x150c0d=_0x127bfe;if(this[_0x150c0d(0x103)][_0x150c0d(0x10c)](_0x43c4b7=>_0x43c4b7[_0x150c0d(0xec)]===_0x4ea1df))return!0x1;let _0x3ef6c7=!0x1;const _0x44072d=_0x4ea1df[_0x150c0d(0x117)](_0x150c0d(0x10b)),_0x45a994=this[_0x150c0d(0x103)][_0x150c0d(0xf2)](_0x413fdf=>_0x413fdf['id']===_0x44072d);-0x1!==_0x45a994&&(_0x1e860e[_0x150c0d(0xfd)](this[_0x150c0d(0x103)][_0x45a994][_0x150c0d(0xec)]),this[_0x150c0d(0x103)][_0x150c0d(0x12d)](_0x45a994,0x1),_0x3ef6c7=!0x0);let _0x48a534=this[_0x150c0d(0x100)]?function(_0x19b81f,_0x3d0dff){const _0x5138c7=_0x150c0d;for(const _0x53269e of _0x19b81f[_0x5138c7(0xd3)]())if(_0x53269e[_0x5138c7(0x117)](_0x5138c7(0x10b))===_0x3d0dff)return _0x53269e;return null;}(this[_0x150c0d(0x100)],_0x44072d):null;_0x48a534||(_0x48a534=_0x1e860e[_0x150c0d(0x121)](_0x150c0d(0x12c),{'footnoteId':_0x44072d}),this[_0x150c0d(0x100)]&&(_0x1e860e[_0x150c0d(0x11d)](_0x48a534,this[_0x150c0d(0x100)],_0x150c0d(0xe3)),_0x3ef6c7=!0x0));const _0x3ba5ce={'id':_0x44072d,'reference':_0x4ea1df,'definition':_0x48a534},_0x53c4f9=I(this[_0x150c0d(0x127)][_0x150c0d(0xe8)],this[_0x150c0d(0x103)],_0x4ea1df);this[_0x150c0d(0x103)][_0x150c0d(0x12d)](_0x53c4f9,0x0,_0x3ba5ce);let _0x3bf466=_0x53c4f9;return-0x1!==_0x45a994&&(_0x3bf466=Math[_0x150c0d(0x119)](_0x53c4f9,_0x45a994)),this[_0x150c0d(0x120)](_0x1e860e,_0x3bf466)&&(_0x3ef6c7=!0x0),_0x3ef6c7;}[_0x127bfe(0x104)](_0x31594b,_0x374c75){const _0xe3be4f=_0x127bfe,_0x56a65a=this[_0xe3be4f(0x103)][_0xe3be4f(0xf2)](_0x2e1e4c=>_0x2e1e4c['id']===_0x374c75);if(-0x1===_0x56a65a)return!0x1;let _0x26a35a=!0x1;const _0x485d5d=this[_0xe3be4f(0x103)][_0x56a65a];return _0xe3be4f(0x110)!==_0x485d5d[_0xe3be4f(0x101)][_0xe3be4f(0xf0)][_0xe3be4f(0xed)]&&(_0x31594b[_0xe3be4f(0xfd)](_0x485d5d[_0xe3be4f(0x101)]),_0x26a35a=!0x0),this[_0xe3be4f(0x103)][_0xe3be4f(0x12d)](_0x56a65a,0x1),this[_0xe3be4f(0x120)](_0x31594b,_0x56a65a)&&(_0x26a35a=!0x0),_0x26a35a;}[_0x127bfe(0x124)](_0x3462aa,_0x5781db){const _0xfb600a=_0x127bfe,_0x3e179b=_0x5781db[_0xfb600a(0x117)](_0xfb600a(0x10b)),_0x3b8470=this[_0xfb600a(0x103)][_0xfb600a(0xf2)](_0x503295=>_0x503295['id']===_0x3e179b),_0x5ab071=this[_0xfb600a(0x103)][_0x3b8470];let _0x29d29a=!0x1;_0x5ab071[_0xfb600a(0xec)]=_0x5781db,this[_0xfb600a(0x103)][_0xfb600a(0x12d)](_0x3b8470,0x1);const _0x3f5bb8=I(this[_0xfb600a(0x127)][_0xfb600a(0xe8)],this[_0xfb600a(0x103)],_0x5781db);return this[_0xfb600a(0x103)][_0xfb600a(0x12d)](_0x3f5bb8,0x0,_0x5ab071),this[_0xfb600a(0x120)](_0x3462aa,Math[_0xfb600a(0x119)](_0x3b8470,_0x3f5bb8))&&(_0x29d29a=!0x0),_0x29d29a;}[_0x127bfe(0xdd)](_0x4337be,_0x11b1cd){const _0x4c895b=_0x127bfe;if(!this[_0x4c895b(0x100)])return!0x1;const _0x2b6f03=this[_0x4c895b(0x103)][_0x11b1cd];let _0x5da184;return _0x5da184=this[_0x4c895b(0x129)]?this[_0x4c895b(0x129)]({'footnote':_0x2b6f03,'container':this[_0x4c895b(0x100)],'digits':String(this[_0x4c895b(0x103)][_0x4c895b(0x12e)])[_0x4c895b(0x12e)],'value':_0x11b1cd+0x1}):String(_0x11b1cd+0x1),_0x2b6f03[_0x4c895b(0xec)][_0x4c895b(0x117)](_0x4c895b(0xd2))!=_0x5da184&&(_0x4337be[_0x4c895b(0xd9)](_0x4c895b(0xd2),_0x5da184,_0x2b6f03[_0x4c895b(0xec)]),!0x0);}[_0x127bfe(0xe6)](_0x5946fd){const _0x207d0f=_0x127bfe;if(!this[_0x207d0f(0x100)]||this[_0x207d0f(0x103)][_0x207d0f(0x12e)]<0x2)return!0x1;if(function(_0x1152ea,_0x43490a){const _0x5a7b45=_0x207d0f;if(_0x1152ea[_0x5a7b45(0x12e)]!==_0x43490a[_0x5a7b45(0x12e)])return!0x1;for(let _0x37a037=0x0;_0x37a037<_0x1152ea[_0x5a7b45(0x12e)];_0x37a037++)if(_0x1152ea[_0x37a037]!==_0x43490a[_0x37a037])return!0x1;return!0x0;}(this[_0x207d0f(0x103)][_0x207d0f(0xf5)](_0x206646=>_0x206646['id']),Array[_0x207d0f(0xd4)](this[_0x207d0f(0x100)][_0x207d0f(0xd3)]())[_0x207d0f(0xf5)](_0x2cb759=>_0x2cb759[_0x207d0f(0x117)](_0x207d0f(0x10b)))))return!0x1;let _0x5e8fb1=!0x1;for(let _0x1a9213=0x0;_0x1a9213<this[_0x207d0f(0x103)][_0x207d0f(0x12e)];_0x1a9213++){const _0x56c6ee=this[_0x207d0f(0x103)][_0x1a9213],_0x67b01a=_0x5946fd[_0x207d0f(0x106)](_0x56c6ee[_0x207d0f(0x101)]),_0xfac195=_0x5946fd[_0x207d0f(0xd0)](this[_0x207d0f(0x100)],_0x1a9213);_0x67b01a[_0x207d0f(0x115)](_0xfac195)||(_0x5946fd[_0x207d0f(0xf8)](_0x5946fd[_0x207d0f(0xf9)](_0x56c6ee[_0x207d0f(0x101)]),_0xfac195),_0x5e8fb1=!0x0);}return _0x5e8fb1;}[_0x127bfe(0xe9)](_0x52525){const _0x57c194=_0x127bfe;if(!this[_0x57c194(0x103)][_0x57c194(0x12e)])return!0x1;const {model:_0x4fc709}=this[_0x57c194(0x127)];let _0x7b3fef=!0x1;for(let _0x545460=0x0;_0x545460<this[_0x57c194(0x103)][_0x57c194(0x12e)]-0x1;_0x545460++){const _0x820092=this[_0x57c194(0x103)][_0x545460],_0x1e1e1e=this[_0x57c194(0x103)][_0x545460+0x1],_0x1e408c=_0x4fc709[_0x57c194(0x106)](_0x820092[_0x57c194(0xec)]),_0x1b5040=_0x4fc709[_0x57c194(0x106)](_0x1e1e1e[_0x57c194(0xec)]);_0x57c194(0xff)===_0x1e408c[_0x57c194(0xf6)](_0x1b5040)&&(this[_0x57c194(0x124)](_0x52525,_0x820092[_0x57c194(0xec)]),_0x545460=-0x1,_0x7b3fef=!0x0);}return _0x7b3fef;}}function _(_0x14db7e,_0x326bf5,_0x5c3698){const _0x388a61=_0x127bfe;if(_0x5c3698[_0x388a61(0xeb)])return!0x1;const _0x51c7ab=_0x326bf5?_0x388a61(0x10f):_0x388a61(0x12b);return _0x14db7e[_0x388a61(0x11d)](_0x14db7e[_0x388a61(0x121)](_0x51c7ab),_0x5c3698),!0x0;}function I(_0x5e7b92,_0x2c859a,_0x261fb6){const _0x1c9fb1=_0x127bfe;if(0x0===_0x2c859a[_0x1c9fb1(0x12e)])return 0x0;const _0x5bc849=_0x5e7b92[_0x1c9fb1(0x106)](_0x261fb6);for(let _0x308386=0x0;_0x308386<_0x2c859a[_0x1c9fb1(0x12e)];_0x308386++){const _0x15964b=_0x2c859a[_0x308386],_0x3dd3c4=_0x5e7b92[_0x1c9fb1(0x106)](_0x15964b[_0x1c9fb1(0xec)]);if(_0x1c9fb1(0xd5)===_0x5bc849[_0x1c9fb1(0xf6)](_0x3dd3c4))return _0x308386;}const _0x5a1dde=_0x261fb6[_0x1c9fb1(0xf0)];let _0x54266e=-0x1;for(let _0x1dc8d2=_0x2c859a[_0x1c9fb1(0x12e)]-0x1;_0x1dc8d2>=0x0;_0x1dc8d2--)if(_0x2c859a[_0x1dc8d2][_0x1c9fb1(0xec)][_0x1c9fb1(0xf0)]===_0x5a1dde){_0x54266e=_0x1dc8d2;break;}if(-0x1!==_0x54266e)return _0x54266e+0x1;const _0xa34560=_0x5e7b92[_0x1c9fb1(0xf3)][_0x1c9fb1(0x11e)](),_0x3590b4=_0xa34560[_0x1c9fb1(0xd8)](_0x5a1dde[_0x1c9fb1(0xed)]),_0x19bf3a=_0xa34560[_0x3590b4+0x1];if(_0x19bf3a){for(let _0x2de4b2=0x0;_0x2de4b2<_0x2c859a[_0x1c9fb1(0x12e)];_0x2de4b2++)if(_0x2c859a[_0x2de4b2][_0x1c9fb1(0xec)][_0x1c9fb1(0xf0)][_0x1c9fb1(0xed)]===_0x19bf3a)return _0x2de4b2;}return _0x2c859a[_0x1c9fb1(0x12e)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4235bd,MenuBarMenuListItemButtonView as _0x4a1345}from'ckeditor5/src/ui.js';import{Plugin as _0x3a360e}from'ckeditor5/src/core.js';import{IconFootnote as _0x35eff2}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x3a360e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4908bd}=this,{componentFactory:_0x5cce6d}=_0x4908bd['ui'];_0x5cce6d['add']('insertFootnote',x(_0x4908bd,_0x4235bd)),_0x5cce6d['add']('menuBar:insertFootnote',x(_0x4908bd,_0x4a1345)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x294b83=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f373f;for(const _0x2ed987 in _0x294b83){const _0x1c3798=_0x2ed987,_0x40aefa=_0x294b83[_0x1c3798];if('footnotesLicenseKeyValid'==_0x40aefa||'footnotesLicenseKeyInvalid'==_0x40aefa||'footnotesLicenseKeyExpired'==_0x40aefa||'footnotesLicenseKeyDomainLimit'==_0x40aefa||'footnotesLicenseKeyNotAllowed'==_0x40aefa||'footnotesLicenseKeyEvaluationLimit'==_0x40aefa||'footnotesLicenseKeyTrialLimit'==_0x40aefa||'footnotesLicenseKeyUsageLimit'==_0x40aefa){delete _0x294b83[_0x1c3798],_0x2f373f=_0x40aefa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2f373f&&_0x294b83['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2f373f&&_0x294b83['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2f373f&&_0x294b83['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2f373f&&_0x294b83['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2f373f&&_0x294b83['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2f373f&&_0x294b83['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2f373f&&_0x294b83['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x393f3c,_0x34e3ec){const _0x2ef558=_0x393f3c['commands']['get']('insertFootnote');return _0xe4dde7=>{const {t:t}=_0xe4dde7,_0x178e2e=new _0x34e3ec(_0xe4dde7),_0x611671=_0x178e2e instanceof _0x4a1345;return _0x178e2e['bind']('isEnabled')['to'](_0x2ef558,'isEnabled'),_0x178e2e['set']({'label':t(_0x611671?'Footnote':'Insert\x20footnote'),'icon':_0x35eff2,'tooltip':!0x0}),_0x178e2e['on']('execute',()=>{_0x2ef558['execute'](),_0x393f3c['editing']['view']['focus']();}),_0x178e2e;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x21e2(_0x310a16,_0x1a2981){var _0x18f377=_0x18f3();return _0x21e2=function(_0x21e2ed,_0x1f919e){_0x21e2ed=_0x21e2ed-0x146;var _0x548b6f=_0x18f377[_0x21e2ed];return _0x548b6f;},_0x21e2(_0x310a16,_0x1a2981);}function _0x18f3(){var _0x5bbd55=['1273491eCVNXB','4uxFQHv','48314ZYUSJF','1254765DBIUQH','45lmUIGT','2795832VslrXr','33YxppWG','122GAkUaA','1171784VhxgPE','6379LPnvcz','2338810zcoTWt'];_0x18f3=function(){return _0x5bbd55;};return _0x18f3();}(function(_0x1d8946,_0x1c8a97){var _0x318939=_0x21e2,_0x2dff2c=_0x1d8946();while(!![]){try{var _0x50ecc7=parseInt(_0x318939(0x14a))/0x1*(-parseInt(_0x318939(0x148))/0x2)+parseInt(_0x318939(0x14c))/0x3*(-parseInt(_0x318939(0x14d))/0x4)+parseInt(_0x318939(0x14f))/0x5+-parseInt(_0x318939(0x146))/0x6+-parseInt(_0x318939(0x14e))/0x7+-parseInt(_0x318939(0x149))/0x8*(-parseInt(_0x318939(0x150))/0x9)+-parseInt(_0x318939(0x14b))/0xa*(-parseInt(_0x318939(0x147))/0xb);if(_0x50ecc7===_0x1c8a97)break;else _0x2dff2c['push'](_0x2dff2c['shift']());}catch(_0x449b8a){_0x2dff2c['push'](_0x2dff2c['shift']());}}}(_0x18f3,0x61487));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5bfa86=_0x2d80;function _0x2d80(_0x5ea363,_0x8befc3){const _0x20cc52=_0x20cc();return _0x2d80=function(_0x2d809c,_0xb2feb3){_0x2d809c=_0x2d809c-0x1ed;let _0x1b5324=_0x20cc52[_0x2d809c];return _0x1b5324;},_0x2d80(_0x5ea363,_0x8befc3);}(function(_0x57c73a,_0x1ebc4b){const _0x515ef1=_0x2d80,_0x4cfd1e=_0x57c73a();while(!![]){try{const _0x53e16c=-parseInt(_0x515ef1(0x217))/0x1*(parseInt(_0x515ef1(0x1ff))/0x2)+parseInt(_0x515ef1(0x1f6))/0x3*(-parseInt(_0x515ef1(0x209))/0x4)+parseInt(_0x515ef1(0x20e))/0x5*(-parseInt(_0x515ef1(0x20c))/0x6)+parseInt(_0x515ef1(0x214))/0x7*(parseInt(_0x515ef1(0x1ed))/0x8)+-parseInt(_0x515ef1(0x1f1))/0x9+-parseInt(_0x515ef1(0x1f2))/0xa+parseInt(_0x515ef1(0x216))/0xb*(parseInt(_0x515ef1(0x218))/0xc);if(_0x53e16c===_0x1ebc4b)break;else _0x4cfd1e['push'](_0x4cfd1e['shift']());}catch(_0xea9e15){_0x4cfd1e['push'](_0x4cfd1e['shift']());}}}(_0x20cc,0xa1b99));export class ModelElementTracker{[_0x5bfa86(0x21a)];[_0x5bfa86(0x201)];[_0x5bfa86(0x203)];[_0x5bfa86(0x1f7)]=new Map();constructor(_0x14c512,_0x452521){const _0x42d1ea=_0x5bfa86;this[_0x42d1ea(0x21a)]=_0x14c512,this[_0x42d1ea(0x201)]=_0x452521[_0x42d1ea(0x208)],this[_0x42d1ea(0x203)]=_0x452521[_0x42d1ea(0x210)];}[_0x5bfa86(0x204)](){const _0x13e6d5=_0x5bfa86;this[_0x13e6d5(0x1f7)][_0x13e6d5(0x1ef)]();}[_0x5bfa86(0x206)](_0x3f71e5){const _0x39863b=_0x5bfa86,_0x454654=new Set(),_0x187cb8=new Map();for(const _0x1b8383 of _0x3f71e5){if(_0x39863b(0x20f)===_0x1b8383[_0x39863b(0x1f9)]&&_0x39863b(0x1fe)!==_0x1b8383[_0x39863b(0x1fb)]&&_0x1b8383[_0x39863b(0x1f3)][_0x39863b(0x207)]){const _0x17380a=this[_0x39863b(0x21a)][_0x39863b(0x1ee)](_0x1b8383[_0x39863b(0x1f3)][_0x39863b(0x207)]);for(const _0xaf25cf of _0x17380a[_0x39863b(0x202)]()){if(!_0xaf25cf['is'](_0x39863b(0x200),this[_0x39863b(0x201)]))continue;const _0x1e9a4c=this[_0x39863b(0x203)](_0xaf25cf);_0x187cb8[_0x39863b(0x215)](_0x1e9a4c)||_0x187cb8[_0x39863b(0x1f4)](_0x1e9a4c,[]),_0x187cb8[_0x39863b(0x1fa)](_0x1e9a4c)[_0x39863b(0x1fc)](_0xaf25cf);}}if(_0x39863b(0x1fd)===_0x1b8383[_0x39863b(0x1f9)]&&_0x1b8383[_0x39863b(0x1fb)]===this[_0x39863b(0x201)]){const _0x2c9740=this[_0x39863b(0x203)]({'getAttribute':_0x35e3d0=>_0x1b8383[_0x39863b(0x213)][_0x39863b(0x1fa)](_0x35e3d0)});_0x454654[_0x39863b(0x211)](_0x2c9740);}}for(const [_0x5f7ba0,_0x5a9d0b]of this[_0x39863b(0x1f7)])_0x39863b(0x205)===_0x5a9d0b[_0x39863b(0x212)][_0x39863b(0x1f5)]&&_0x454654[_0x39863b(0x211)](_0x5f7ba0);for(const _0x16487c of _0x454654)this[_0x39863b(0x1f7)][_0x39863b(0x20d)](_0x16487c);for(const [_0x769a7e,_0x1e3903]of _0x187cb8)this[_0x39863b(0x1f7)][_0x39863b(0x1f4)](_0x769a7e,_0x1e3903[_0x1e3903[_0x39863b(0x20a)]-0x1]);const _0x1ab622=new Set();for(const [_0x3d6d38,_0x422603]of _0x187cb8)_0x454654[_0x39863b(0x215)](_0x3d6d38)&&(_0x1ab622[_0x39863b(0x211)](_0x422603[0x0]),_0x422603[_0x39863b(0x20a)]>0x1?_0x187cb8[_0x39863b(0x1f4)](_0x3d6d38,_0x422603[_0x39863b(0x219)](0x1)):_0x187cb8[_0x39863b(0x20d)](_0x3d6d38),_0x454654[_0x39863b(0x20d)](_0x3d6d38));return{'removed':Array[_0x39863b(0x20b)](_0x454654),'inserted':Array[_0x39863b(0x20b)](_0x187cb8[_0x39863b(0x1f8)]())[_0x39863b(0x1f0)](),'moved':Array[_0x39863b(0x20b)](_0x1ab622)};}}function _0x20cc(){const _0x4a60d3=['$text','892916WJVfoS','element','_elementName','getItems','_getElementKey','reset','$graveyard','getChanges','nodeAfter','elementName','51176xfymWp','length','from','36YaVvYa','delete','376280deKChI','insert','getElementKey','add','root','attributes','9079oUoTBa','has','858dgToUb','1LwPVVQ','338448hBGlji','slice','_model','472buCWOR','createRangeOn','clear','flat','3940227ddGqyO','1118910kuRwNe','position','set','rootName','39GMXkkx','_trackedElements','values','type','get','name','push','remove'];_0x20cc=function(){return _0x4a60d3;};return _0x20cc();}
|