@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251203.0 → 0.0.0-nightly-20251205.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 _0x161de6}from'ckeditor5/src/core.js';import{isWidget as _0x57a6eb,toWidget as _0x391c3b,toWidgetEditable as _0x5967be}from'ckeditor5/src/widget.js';import{uid as _0x409526}from'ckeditor5/src/utils.js';import{PointerObserver as _0x436078,ClickObserver as _0x45cd2c}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5bc006}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4e8dfc}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x161de6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5bc006];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x299ef6}=this;_0x299ef6['config']['define']('footnotes.multiBlock',!0x0),_0x299ef6['commands']['add']('insertFootnote',new _0x4e8dfc(_0x299ef6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x45ffd7){const _0x2b82ab=_0x394f26([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]),_0x3098b3=0x47a28506,_0x821eae=0x47a5ffde^_0x3098b3,_0x1342aa=window[_0x394f26([0x44,0x61,0x74,0x65])][_0x394f26([0x6e,0x6f,0x77])](),_0x1b9a9c=_0x45ffd7[_0x394f26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x578f48=new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7ad7=>{_0x1b9a9c[_0x394f26([0x6f,0x6e,0x63,0x65])](_0x394f26([0x72,0x65,0x61,0x64,0x79]),_0x1c7ad7);}),_0x432fe7={[_0x394f26([0x6b,0x74,0x79])]:_0x394f26([0x45,0x43]),[_0x394f26([0x75,0x73,0x65])]:_0x394f26([0x73,0x69,0x67]),[_0x394f26([0x63,0x72,0x76])]:_0x394f26([0x50,0x2d,0x32,0x35,0x36]),[_0x394f26([0x78])]:_0x394f26([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]),[_0x394f26([0x79])]:_0x394f26([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]),[_0x394f26([0x61,0x6c,0x67])]:_0x394f26([0x45,0x53,0x32,0x35,0x36])},_0x1eafc7=_0x1b9a9c[_0x394f26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x394f26([0x67,0x65,0x74])](_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e8d99(){let _0xfa09b7,_0x4b3f01=null,_0x282d9f=null;try{if(_0x1eafc7==_0x394f26([0x47,0x50,0x4c]))return _0x394f26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfa09b7=_0x19e929(),!_0xfa09b7)return _0x394f26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfa09b7[_0x394f26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x282d9f=_0x41e7ae(_0xfa09b7[_0x394f26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfa09b7[_0x394f26([0x6a,0x74,0x69])])),await _0x1ce613()?_0x506b34()?_0x17beed()?_0x394f26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55061c()?(_0xfa09b7[_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x394f26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b3f01=_0x2ba74c(_0x394f26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfa09b7[_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x394f26([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b3f01=_0x2ba74c(_0x394f26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e3b09()):_0x394f26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x394f26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x394f26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x394f26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17beed(){const _0x31652b=[_0x394f26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x394f26([0x74,0x72,0x69,0x61,0x6c])][_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa09b7[_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1342aa/0x3e8:0xe10*_0x821eae;return _0xfa09b7[_0x394f26([0x65,0x78,0x70])]<_0x31652b;}function _0x506b34(){const _0x1b7fd8=_0xfa09b7[_0x394f26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b7fd8&&(!!_0x1b7fd8[_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394f26([0x2a]))||!!_0x1b7fd8[_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394f26([0x46,0x4f,0x4f])));}function _0x55061c(){const _0x5f463b=_0xfa09b7[_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f463b||0x0==_0x5f463b[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x143f75}=new URL(window[_0x394f26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f463b[_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x143f75))return!0x0;const _0x2e1357=_0x143f75[_0x394f26([0x73,0x70,0x6c,0x69,0x74])](_0x394f26([0x2e]));return _0x5f463b[_0x394f26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ed61b=>_0x4ed61b[_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394f26([0x2a])))[_0x394f26([0x6d,0x61,0x70])](_0x5007e2=>_0x5007e2[_0x394f26([0x73,0x70,0x6c,0x69,0x74])](_0x394f26([0x2e])))[_0x394f26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32d846=>_0x32d846[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e1357[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x394f26([0x6d,0x61,0x70])](_0x3bf48c=>Array(_0x2e1357[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3bf48c[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x394f26([0x66,0x69,0x6c,0x6c])](_0x3bf48c[0x0]===_0x394f26([0x2a])?_0x394f26([0x2a]):'')[_0x394f26([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3bf48c))[_0x394f26([0x73,0x6f,0x6d,0x65])](_0x40e610=>_0x2e1357[_0x394f26([0x65,0x76,0x65,0x72,0x79])]((_0x50bbba,_0x42d057)=>_0x40e610[_0x42d057]===_0x50bbba||_0x40e610[_0x42d057]===_0x394f26([0x2a])));}function _0x3e3b09(){return _0x4b3f01&&_0x282d9f?new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c5e1f,_0x203a8d)=>{_0x4b3f01[_0x394f26([0x74,0x68,0x65,0x6e])](_0x1c5e1f,_0x203a8d),_0x282d9f[_0x394f26([0x74,0x68,0x65,0x6e])](_0x6627e8=>{_0x6627e8!=_0x394f26([0x56,0x61,0x6c,0x69,0x64])&&_0x1c5e1f(_0x6627e8);},_0x203a8d);}):_0x4b3f01||_0x282d9f||_0x394f26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41e7ae(_0x2f4891,_0x5f3fa4){return new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b6999=>{if(_0x2c3f15())return _0x2b6999(_0x394f26([0x56,0x61,0x6c,0x69,0x64]));_0x50fc24(),_0x1b9a9c[_0x394f26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x394f26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x330dca=!0x1;const _0x12cfd3=_0x409526();function _0x941f7c(_0x46f9aa){return!!_0x46f9aa&&(typeof _0x46f9aa===_0x394f26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46f9aa===_0x394f26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46f9aa[_0x394f26([0x74,0x68,0x65,0x6e])]===_0x394f26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46f9aa[_0x394f26([0x63,0x61,0x74,0x63,0x68])]===_0x394f26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18d730(_0x36d453){_0x4d9f64(_0x36d453)[_0x394f26([0x74,0x68,0x65,0x6e])](_0x4bcdde=>{if(!_0x4bcdde||_0x4bcdde[_0x394f26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x394f26([0x6f,0x6b]))return _0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x296cdd(_0x571fcf(_0x12cfd3+_0x5f3fa4))!=_0x4bcdde[_0x394f26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x394f26([0x56,0x61,0x6c,0x69,0x64]);})[_0x394f26([0x74,0x68,0x65,0x6e])](_0x397e40=>(_0x2d93cb(),_0x397e40),()=>{const _0x167a69=_0x5adc75();return null==_0x167a69?(_0x2d93cb(),_0x394f26([0x56,0x61,0x6c,0x69,0x64])):_0x394f26(_0x1342aa-_0x167a69>(0x63ae0106^_0x3098b3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x394f26([0x74,0x68,0x65,0x6e])](_0x2b6999)[_0x394f26([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b6999(_0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39e5af=0x47946b86^_0x3098b3;function _0x2d93cb(){const _0x29aa7e=_0x394f26([0x6c,0x6c,0x63,0x74,0x2d])+_0x296cdd(_0x571fcf(_0x2f4891)),_0x55c5a1=_0x31023e(_0x296cdd(window[_0x394f26([0x4d,0x61,0x74,0x68])][_0x394f26([0x63,0x65,0x69,0x6c])](_0x1342aa/_0x39e5af)));window[_0x394f26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x394f26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29aa7e,_0x55c5a1);}function _0x5adc75(){const _0xed95a7=_0x394f26([0x6c,0x6c,0x63,0x74,0x2d])+_0x296cdd(_0x571fcf(_0x2f4891)),_0x48d9a5=window[_0x394f26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x394f26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xed95a7);return _0x48d9a5?window[_0x394f26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31023e(_0x48d9a5),0x10)*_0x39e5af:null;}function _0x4d9f64(_0x32bdf2){return new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4763cb,_0x4bcb81)=>{_0x32bdf2[_0x394f26([0x74,0x68,0x65,0x6e])](_0x4763cb,_0x4bcb81),window[_0x394f26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bcb81,0x47a351c6^_0x3098b3);});}}_0x1b9a9c[_0x394f26([0x6f,0x6e])](_0x394f26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43392b,_0x45664e)=>{if(_0x45664e[0x0]!=_0x2f4891)return _0x2b6999(_0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45664e[0x1]={..._0x45664e[0x1],[_0x394f26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12cfd3};},{[_0x394f26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x394f26([0x68,0x69,0x67,0x68])}),_0x1b9a9c[_0x394f26([0x6f,0x6e])](_0x394f26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a7ea3=>{_0x941f7c(_0x2a7ea3[_0x394f26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x330dca=!0x0,_0x18d730(_0x2a7ea3[_0x394f26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x394f26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x394f26([0x6c,0x6f,0x77])}),_0x578f48[_0x394f26([0x74,0x68,0x65,0x6e])](()=>{_0x330dca||_0x2b6999(_0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c3f15(){return _0x1b9a9c[_0x394f26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x394f26([0x76,0x69,0x65,0x77])][_0x394f26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x394f26([0x61,0x75,0x74,0x6f]);}function _0x50fc24(){_0x1b9a9c[_0x394f26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x394f26([0x76,0x69,0x65,0x77])][_0x394f26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x394f26([0x61,0x75,0x74,0x6f]);}}function _0x2ba74c(_0x8271bf){const _0x2eb6c4=[new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d0f9=>setTimeout(_0x37d0f9,0x47abbbca^_0x3098b3)),_0x578f48[_0x394f26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d376a=>{let _0x2515a2=0x0;_0x1b9a9c[_0x394f26([0x6d,0x6f,0x64,0x65,0x6c])][_0x394f26([0x6f,0x6e])](_0x394f26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50d603,_0x57066f)=>{_0x57066f[0x0][_0x394f26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2515a2++,_0x2515a2==(0x47a284fe^_0x3098b3)&&(_0x3d376a(),_0x50d603[_0x394f26([0x6f,0x66,0x66])]());});}))];return window[_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x394f26([0x72,0x61,0x63,0x65])](_0x2eb6c4)[_0x394f26([0x74,0x68,0x65,0x6e])](()=>_0x8271bf);}async function _0x30deb0(){await _0x578f48,_0x1b9a9c[_0x394f26([0x6d,0x6f,0x64,0x65,0x6c])][_0x394f26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d1cbf,_0x1b9a9c[_0x394f26([0x6d,0x6f,0x64,0x65,0x6c])][_0x394f26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d1cbf,_0x1b9a9c[_0x394f26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x394f26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c93c3(_0x27d8b7){const _0x3d4e8a=_0x3ac66e();_0x1b9a9c[_0x3d4e8a]=_0x394f26([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27d8b7,_0x27d8b7!=_0x394f26([0x56,0x61,0x6c,0x69,0x64])&&_0x30deb0();}function _0x3ac66e(){const _0x3f5926=window[_0x394f26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x394f26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x394f26([0x6e,0x6f,0x77])]())[_0x394f26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x394f26([0x2e]),'');let _0x189412=_0x394f26([0x75]);for(let _0x5c70c3=0x0;_0x5c70c3<_0x3f5926[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c70c3+=0x2){let _0x468b09=window[_0x394f26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f5926[_0x394f26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c70c3,_0x5c70c3+0x2));_0x468b09>=_0x2b82ab[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x468b09-=_0x2b82ab[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x189412+=_0x2b82ab[_0x468b09];}return _0x189412;}function _0x19e929(){const _0x1b8535=_0x1eafc7[_0x394f26([0x73,0x70,0x6c,0x69,0x74])](_0x394f26([0x2e]));if(0x3!=_0x1b8535[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5be9f6(_0x1b8535[0x1]);function _0x5be9f6(_0x4b0c96){const _0xba2db5=_0x28a79e(_0x4b0c96);return _0xba2db5&&_0x3e4abc()?_0xba2db5:null;function _0x3e4abc(){const _0x1cdbdf=_0xba2db5[_0x394f26([0x6a,0x74,0x69])],_0x544d2e=window[_0x394f26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cdbdf[_0x394f26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cdbdf[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45699c={..._0xba2db5,[_0x394f26([0x6a,0x74,0x69])]:_0x1cdbdf[_0x394f26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1cdbdf[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45699c[_0x394f26([0x76,0x63])],_0x571fcf(_0x45699c)==_0x544d2e;}}}async function _0x1ce613(){let _0xe461ce=!0x0;try{const _0x4647f0=_0x1eafc7[_0x394f26([0x73,0x70,0x6c,0x69,0x74])](_0x394f26([0x2e])),[_0x3e2299,_0x115804,_0x1c5214]=_0x4647f0;return _0x5f0ca0(_0x3e2299),await _0x3fbd22(_0x3e2299,_0x115804,_0x1c5214),_0xe461ce;}catch{return!0x1;}function _0x5f0ca0(_0x281e70){const _0x1e454f=_0x28a79e(_0x281e70);_0x1e454f&&_0x1e454f[_0x394f26([0x61,0x6c,0x67])]==_0x394f26([0x45,0x53,0x32,0x35,0x36])||(_0xe461ce=!0x1);}async function _0x3fbd22(_0x1845d1,_0xc0994,_0x4244a4){const _0x8ae382=window[_0x394f26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x394f26([0x66,0x72,0x6f,0x6d])](_0x165777(_0x4244a4),_0x2f0b9c=>_0x2f0b9c[_0x394f26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7e259f=new window[(_0x394f26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x394f26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1845d1+_0x394f26([0x2e])+_0xc0994),_0x1dd26e=window[_0x394f26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x394f26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1dd26e)return;const _0xb1118=await _0x1dd26e[_0x394f26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x394f26([0x6a,0x77,0x6b]),_0x432fe7,{[_0x394f26([0x6e,0x61,0x6d,0x65])]:_0x394f26([0x45,0x43,0x44,0x53,0x41]),[_0x394f26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x394f26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x394f26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1dd26e[_0x394f26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x394f26([0x6e,0x61,0x6d,0x65])]:_0x394f26([0x45,0x43,0x44,0x53,0x41]),[_0x394f26([0x68,0x61,0x73,0x68])]:{[_0x394f26([0x6e,0x61,0x6d,0x65])]:_0x394f26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb1118,_0x8ae382,_0x7e259f)||(_0xe461ce=!0x1);}}function _0x28a79e(_0x475943){return _0x475943[_0x394f26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x394f26([0x65,0x79]))?JSON[_0x394f26([0x70,0x61,0x72,0x73,0x65])](_0x165777(_0x475943)):null;}function _0x165777(_0x4023fd){return window[_0x394f26([0x61,0x74,0x6f,0x62])](_0x4023fd[_0x394f26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x394f26([0x2b]))[_0x394f26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x394f26([0x2f])));}function _0x571fcf(_0x4c95da){let _0x18c205=0x1505;function _0x275e20(_0x3b74d9){for(let _0x35452b=0x0;_0x35452b<_0x3b74d9[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35452b++){const _0x3d97dd=_0x3b74d9[_0x394f26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35452b);_0x18c205=(_0x18c205<<0x5)+_0x18c205+_0x3d97dd,_0x18c205&=_0x18c205;}}function _0x4b34ea(_0x18e073){Array[_0x394f26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18e073)?_0x18e073[_0x394f26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b34ea):_0x18e073&&typeof _0x18e073==_0x394f26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x394f26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18e073)[_0x394f26([0x73,0x6f,0x72,0x74])]()[_0x394f26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28e53b,_0x5b8001])=>{_0x275e20(_0x28e53b),_0x4b34ea(_0x5b8001);}):_0x275e20(window[_0x394f26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18e073));}return _0x4b34ea(_0x4c95da),_0x18c205>>>0x0;}function _0x296cdd(_0x1756c2){return _0x1756c2[_0x394f26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x394f26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x394f26([0x30]));}function _0x31023e(_0x3dd7da){return _0x3dd7da[_0x394f26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x394f26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x394f26([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d1cbf(){}function _0x394f26(_0x1f9f48){return _0x1f9f48['map'](_0x1b6ed1=>String['fromCharCode'](_0x1b6ed1))['join']('');}_0x2c93c3(await _0x2e8d99());}(this);}['_moveSelectionToFootnoteDefinition'](_0x517bbc){const {plugins:_0x22448c,editing:_0x53b234,model:_0x2f45bc}=this['editor'],_0x373b9b=_0x22448c['get'](_0x5bc006)['getFootnote'](_0x517bbc);return!!_0x373b9b&&(_0x2f45bc['change'](_0x109906=>{_0x109906['setSelection'](_0x109906['createPositionAt'](_0x373b9b['definition'],'end'));}),_0x53b234['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3eadae){const {plugins:_0x30b329,editing:_0x2a8a59,model:_0x542f46}=this['editor'],_0x540ecf=_0x30b329['get'](_0x5bc006)['getFootnote'](_0x3eadae);return!!_0x540ecf&&(_0x542f46['change'](_0x1511ab=>{_0x1511ab['setSelection'](_0x540ecf['reference'],'on');}),_0x2a8a59['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1a7eeb}=this['editor']['model'],_0x2131b=this['editor']['config']['get']('footnotes.multiBlock');_0x1a7eeb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1a7eeb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1a7eeb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2131b?_0x1a7eeb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1a7eeb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1a7eeb['addChildCheck'](_0x6b0a43=>{for(const _0x14f8f0 of _0x6b0a43)if('footnoteDefinition'===_0x14f8f0['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b2599}=this,{conversion:_0x54d589,editing:_0x37b889}=_0x2b2599,{t:t}=_0x2b2599['locale'];_0x54d589['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2e2fb0,{writer:_0x1187d7,consumable:_0x1f1d4e})=>{const _0x1ba767=_0x2e2fb0['getChild'](0x0);if(!_0x1ba767||!_0x1ba767['is']('element','a'))return null;const _0x3dd71c=_0x1ba767['getAttribute']('href')||'';if(!_0x3dd71c['startsWith']('#'))return null;const _0x25a9b1=_0x3dd71c['replace'](/^#/,'');if(!_0x25a9b1)return null;_0x1f1d4e['consume'](_0x1ba767,{'name':!0x0,'attributes':['href']});for(const {item:_0x30ea67}of _0x37b889['view']['createRangeIn'](_0x1ba767))_0x30ea67['is']('$textProxy')?_0x1f1d4e['consume'](_0x30ea67['textNode'],{'name':!0x0}):_0x30ea67['is']('element')&&_0x1f1d4e['consume'](_0x30ea67,{'name':!0x0});return _0x1187d7['createElement']('footnoteRef',{'footnoteId':_0x25a9b1});}}),_0x54d589['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3dfd0c,{writer:_0x2fee1e})=>D(_0x3dfd0c,_0x2fee1e)}),_0x54d589['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x251754,{writer:_0x843f62})=>{const _0x171d8a=_0x251754['getAttribute']('footnoteCounter');return _0x391c3b(D(_0x251754,_0x843f62),_0x843f62,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x171d8a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x44c3d2}=this,{t:t}=_0x44c3d2['locale'],{conversion:_0x49dbc1}=_0x44c3d2;_0x49dbc1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x49dbc1['for']('upcast')['add'](_0x1993eb=>{_0x1993eb['on']('element:ol',(_0x2c63d4,_0x455ecc,_0x436d21)=>{const _0x4810b7=_0x455ecc['viewItem'];if(!_0x4810b7['hasClass']('footnotes-list')||!_0x455ecc['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x436d21['consumable']['consume'](_0x4810b7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x47e966,modelCursor:_0x3a88de}=_0x436d21['convertChildren'](_0x455ecc['viewItem'],_0x455ecc['modelCursor']);_0x455ecc['modelRange']=_0x47e966,_0x455ecc['modelCursor']=_0x3a88de;}),_0x1993eb['on']('element:hr',(_0x4b4439,_0xa13934,_0x3e19af)=>{const _0x478dd7=_0xa13934['viewItem'];_0x478dd7['hasClass']('footnotes-divider')&&_0xa13934['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3e19af['consumable']['consume'](_0x478dd7,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x49dbc1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1f8d06,{writer:_0x2a748b})=>v(_0x2a748b)}),_0x49dbc1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22a213,{writer:_0x4847d2})=>{const _0x4192e8=v(_0x4847d2,{'data-footnotes-list-label':t('Footnotes')}),_0x533bdc=_0x391c3b(_0x4192e8,_0x4847d2,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4847d2['setCustomProperty']('footnotesDefinitions',!0x0,_0x533bdc),_0x533bdc;}});}['_defineDefinitionConverters'](){const {editor:_0x107160}=this,{conversion:_0x26ced8,locale:_0x5c2215}=_0x107160,_0x586a7a=_0x107160['config']['get']('footnotes.multiBlock');_0x26ced8['for']('upcast')['add'](_0x1d228f=>{_0x1d228f['on']('element:li',(_0x567aa0,_0x4b5156,_0x12e5ae)=>{const _0x2242f0=_0x4b5156['viewItem'];if(!_0x2242f0['hasClass']('footnote-definition')||!_0x2242f0['getAttribute']('id'))return;const _0x5da257=_0x2242f0['parent'];if(!_0x5da257['is']('element','ol')||!_0x5da257['hasClass']('footnotes-list'))return;if(!_0x12e5ae['consumable']['test'](_0x2242f0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x119e88=_0x12e5ae['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2242f0['getAttribute']('id')});if(!_0x12e5ae['safeInsert'](_0x119e88,_0x4b5156['modelCursor']))return;_0x12e5ae['consumable']['consume'](_0x2242f0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x408394=Array['from'](_0x2242f0['getChildren']())['find'](_0x5530b4=>_0x5530b4['is']('element')&&_0x5530b4['hasClass']('footnote-content'));for(const _0x5ee1fe of _0x2242f0['getChildren']())_0x5ee1fe['is']('element')&&(_0x12e5ae['consumable']['consume'](_0x5ee1fe,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x12e5ae['consumable']['consume'](_0x5ee1fe,{'name':!0x0,'classes':'footnote-content'}));if(_0x408394){if(_0x586a7a)_0x12e5ae['convertChildren'](_0x408394,_0x119e88);else{const _0x9d3961=_0x12e5ae['writer']['createElement']('footnoteInlineContent');_0x12e5ae['writer']['insert'](_0x9d3961,_0x119e88),_0x12e5ae['convertChildren'](_0x408394,_0x9d3961);}}_0x12e5ae['updateConversionResult'](_0x119e88,_0x4b5156);});}),_0x26ced8['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3d4f99,{writer:_0x40ef07})=>b(_0x3d4f99,_0x40ef07,_0x5c2215,{'dataPipeline':!0x0})}),_0x26ced8['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x239902,{writer:_0x509ffb})=>b(_0x239902,_0x509ffb,_0x5c2215)});}['_defineBogusParagraphConverters'](){const {editor:_0x17484c}=this,{conversion:_0x1bf87e}=_0x17484c;_0x17484c['config']['get']('footnotes.multiBlock')?(_0x1bf87e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1bf87e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x17484c['model']['document'],'change:data',()=>{!function(_0xaaa6b1,_0x48ee82){const _0x4a233b=_0xaaa6b1['document']['differ'],_0x42e640=new Set();for(const _0x2e525f of _0x4a233b['getChanges']()){const _0x5ed289='attribute'==_0x2e525f['type']?_0x2e525f['range']['start']['parent']:_0x2e525f['position']['parent'];_0x5ed289['is']('element','footnoteDefinition')&&_0x42e640['add'](_0x5ed289);}for(const _0x6062be of _0x42e640['values']()){const _0x1eb181=Array['from'](_0x6062be['getChildren']())['filter'](_0x5af286=>g(_0x5af286,_0x48ee82['mapper']));for(const _0x2e6172 of _0x1eb181)_0x48ee82['reconvertItem'](_0x2e6172);}}(_0x17484c['model'],_0x17484c['editing']);})):(_0x1bf87e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1bf87e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x645c10,{writer:_0x35f9bb})=>{const _0x3fb28d=_0x35f9bb['createContainerElement']('span');return _0x35f9bb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3fb28d),_0x3fb28d;}}));}['_defineKeyboardHandlers'](){const {editor:_0xace788}=this,{editing:_0x37702e,t:t}=_0xace788,_0x1662e2=_0xace788['model']['document']['selection'];_0xace788['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xace788['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x37702e['view']['document'],'enter',(_0x74e6d8,_0x541896)=>{const _0xd96583=function(_0x3695c1){const _0x5cb0b9=_0x3695c1['getSelectedElement']();if(_0x5cb0b9?.['is']('element','footnoteRef'))return _0x5cb0b9;return null;}(_0x1662e2);if(_0xd96583){const _0x1749b=_0xd96583['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1749b),_0x541896['preventDefault'](),_0x74e6d8['stop']();}},{'context':_0x57a6eb});}['_defineClickHandlers'](){const {editor:_0x43d8e6}=this,{editing:_0x517f3d}=_0x43d8e6;_0x43d8e6['editing']['view']['addObserver'](_0x436078),_0x43d8e6['editing']['view']['addObserver'](_0x45cd2c);let _0x5b52e5=!0x1;this['listenTo'](_0x517f3d['view']['document'],'pointerdown',(_0x49751f,_0x4009a9)=>{const {target:_0x210ad0}=_0x4009a9,_0x2e00bd=_0x517f3d['view']['document']['selection'];_0x5b52e5=!!(_0x210ad0?.['is']('element','a')&&_0x210ad0['parent']?.['is']('element','sup')&&_0x210ad0['parent']['hasClass']('footnote'))&&_0x2e00bd['getSelectedElement']()===_0x210ad0['parent'];},{'priority':'high'}),this['listenTo'](_0x517f3d['view']['document'],'click',(_0x11ec7d,_0x4aa9f1)=>{const {target:_0x3f457b}=_0x4aa9f1;if(!_0x3f457b?.['is']('element','a'))return;if(_0x3f457b['parent']?.['is']('element','sup')&&_0x3f457b['parent']['hasClass']('footnote')&&!_0x5b52e5)return void _0x4aa9f1['preventDefault']();let _0x769273=_0x3f457b['getAttribute']('href');if(!_0x769273?.['startsWith']('#'))return;_0x769273=_0x769273['slice'](0x1);let _0x15f975=!0x1;(_0x769273['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x769273['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x769273))&&(_0x15f975=!0x0),_0x15f975&&(_0x4aa9f1['preventDefault'](),_0x11ec7d['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4766e0}={}){return(_0x4f8f63,{writer:_0x5eabc6})=>{if(!p(_0x4f8f63))return null;if(!_0x4766e0)return _0x5eabc6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x285982=_0x5eabc6['createContainerElement']('p');return _0x5eabc6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x285982),_0x285982;};}function p(_0x2bcfce){const {parent:_0x2d25e1}=_0x2bcfce;if(!_0x2d25e1?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2d25e1['childCount'])return!0x1;for(const _0x1fa9be of _0x2bcfce['getAttributeKeys']())if(!_0x1fa9be['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1fa9be)return!0x1;return!0x0;}function g(_0x37176e,_0x3fd529){if(!_0x37176e['is']('element','paragraph'))return!0x1;const _0x4f8ef5=_0x3fd529['toViewElement'](_0x37176e);return!!_0x4f8ef5&&p(_0x37176e)!==_0x4f8ef5['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x49357f){return _0x57a6eb(_0x49357f)&&_0x49357f['is']('containerElement')&&!!_0x49357f['getCustomProperty']('footnotesDefinitions');}function v(_0x5b3871,_0x25ec71={}){const _0x66607d=_0x5b3871['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3b3eae=_0x5b3871['createContainerElement']('ol',{'class':'footnotes-list'},_0x5b3871['createSlot']());return _0x5b3871['createContainerElement']('div',{'class':'footnotes',..._0x25ec71},[_0x66607d,_0x3b3eae]);}function D(_0x5aaca8,_0x4101db){const _0x165c39=_0x5aaca8['getAttribute']('footnoteId'),_0x1d867e=_0x5aaca8['getAttribute']('footnoteCounter'),_0x4d08da=_0x4101db['createUIElement']('a',{'href':'#'+_0x165c39},function(_0x497485){const _0x4711e4=this['toDomElement'](_0x497485);return _0x4711e4['textContent']=_0x1d867e,_0x4711e4;}),_0x1bbdde=_0x4101db['createContainerElement']('sup',{'id':'ref-'+_0x165c39,'class':'footnote'},[_0x4d08da]);return _0x1bbdde['getFillerOffset']=()=>null,_0x1bbdde;}function b(_0x3c02ae,_0x2b111b,_0x1865c4,{dataPipeline:_0x26f029}={}){const {t:t}=_0x1865c4,_0x4eb766=_0x3c02ae['getAttribute']('footnoteId'),_0x322664=_0x2b111b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4eb766},function(_0x329aa9){const _0x2f6320=this['toDomElement'](_0x329aa9);return _0x2f6320['innerText']='^',_0x2f6320;}),_0x29b11a=_0x26f029?_0x2b111b['createContainerElement']('div',{'class':'footnote-content'}):_0x5967be(_0x2b111b['createEditableElement']('div',{'class':'footnote-content'}),_0x2b111b,{'label':t('Footnote\x20content.')});return _0x2b111b['insert'](_0x2b111b['createPositionAt'](_0x29b11a,0x0),_0x2b111b['createSlot']()),_0x2b111b['createContainerElement']('li',{'class':'footnote-definition','id':_0x4eb766},[_0x322664,_0x29b11a]);}
|
|
23
|
+
import{Plugin as _0xa6437f}from'ckeditor5/src/core.js';import{isWidget as _0x27a867,toWidget as _0x212cb2,toWidgetEditable as _0x55965f}from'ckeditor5/src/widget.js';import{uid as _0x40e1fb}from'ckeditor5/src/utils.js';import{PointerObserver as _0x12ebf2,ClickObserver as _0x2e5ae5}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x4e64ef}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x81c610}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xa6437f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x4e64ef];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b1914}=this;_0x1b1914['config']['define']('footnotes.multiBlock',!0x0),_0x1b1914['commands']['add']('insertFootnote',new _0x81c610(_0x1b1914)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x313d33){const _0x22a30e=_0x32ab6d([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]),_0x2dfc1e=0x47a28506,_0x17d7d4=0x47a5fe0e^_0x2dfc1e,_0x7b7bab=window[_0x32ab6d([0x44,0x61,0x74,0x65])][_0x32ab6d([0x6e,0x6f,0x77])](),_0x3c8d59=_0x313d33[_0x32ab6d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe490de=new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x374893=>{_0x3c8d59[_0x32ab6d([0x6f,0x6e,0x63,0x65])](_0x32ab6d([0x72,0x65,0x61,0x64,0x79]),_0x374893);}),_0xcdf82c={[_0x32ab6d([0x6b,0x74,0x79])]:_0x32ab6d([0x45,0x43]),[_0x32ab6d([0x75,0x73,0x65])]:_0x32ab6d([0x73,0x69,0x67]),[_0x32ab6d([0x63,0x72,0x76])]:_0x32ab6d([0x50,0x2d,0x32,0x35,0x36]),[_0x32ab6d([0x78])]:_0x32ab6d([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]),[_0x32ab6d([0x79])]:_0x32ab6d([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]),[_0x32ab6d([0x61,0x6c,0x67])]:_0x32ab6d([0x45,0x53,0x32,0x35,0x36])},_0x290167=_0x3c8d59[_0x32ab6d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32ab6d([0x67,0x65,0x74])](_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b85da(){let _0x48d8a6,_0x140563=null,_0x45723b=null;try{if(_0x290167==_0x32ab6d([0x47,0x50,0x4c]))return _0x32ab6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48d8a6=_0x5519f0(),!_0x48d8a6)return _0x32ab6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48d8a6[_0x32ab6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45723b=_0x4ab0b4(_0x48d8a6[_0x32ab6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48d8a6[_0x32ab6d([0x6a,0x74,0x69])])),await _0x551553()?_0x57b3d6()?_0x435d6d()?_0x32ab6d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x241d63()?(_0x48d8a6[_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32ab6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x140563=_0x5d0ea1(_0x32ab6d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48d8a6[_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32ab6d([0x74,0x72,0x69,0x61,0x6c])&&(_0x140563=_0x5d0ea1(_0x32ab6d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c2aa7()):_0x32ab6d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32ab6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32ab6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32ab6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x435d6d(){const _0x270db1=[_0x32ab6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32ab6d([0x74,0x72,0x69,0x61,0x6c])][_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d8a6[_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7b7bab/0x3e8:0xe10*_0x17d7d4;return _0x48d8a6[_0x32ab6d([0x65,0x78,0x70])]<_0x270db1;}function _0x57b3d6(){const _0x26e939=_0x48d8a6[_0x32ab6d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26e939&&(!!_0x26e939[_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ab6d([0x2a]))||!!_0x26e939[_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ab6d([0x46,0x4f,0x4f])));}function _0x241d63(){const _0x35082e=_0x48d8a6[_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35082e||0x0==_0x35082e[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x144b42}=new URL(window[_0x32ab6d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35082e[_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144b42))return!0x0;const _0x19a97b=_0x144b42[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])](_0x32ab6d([0x2e]));return _0x35082e[_0x32ab6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x192f9=>_0x192f9[_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ab6d([0x2a])))[_0x32ab6d([0x6d,0x61,0x70])](_0xd66ae8=>_0xd66ae8[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])](_0x32ab6d([0x2e])))[_0x32ab6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13b4c8=>_0x13b4c8[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19a97b[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32ab6d([0x6d,0x61,0x70])](_0x10579f=>Array(_0x19a97b[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10579f[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32ab6d([0x66,0x69,0x6c,0x6c])](_0x10579f[0x0]===_0x32ab6d([0x2a])?_0x32ab6d([0x2a]):'')[_0x32ab6d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10579f))[_0x32ab6d([0x73,0x6f,0x6d,0x65])](_0x44168e=>_0x19a97b[_0x32ab6d([0x65,0x76,0x65,0x72,0x79])]((_0x1df71e,_0x51fa5e)=>_0x44168e[_0x51fa5e]===_0x1df71e||_0x44168e[_0x51fa5e]===_0x32ab6d([0x2a])));}function _0x4c2aa7(){return _0x140563&&_0x45723b?new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ae1fa,_0x2cdf83)=>{_0x140563[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x5ae1fa,_0x2cdf83),_0x45723b[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x34a3f3=>{_0x34a3f3!=_0x32ab6d([0x56,0x61,0x6c,0x69,0x64])&&_0x5ae1fa(_0x34a3f3);},_0x2cdf83);}):_0x140563||_0x45723b||_0x32ab6d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ab0b4(_0x22003d,_0x4ffe27){return new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x190207=>{if(_0x10a23e())return _0x190207(_0x32ab6d([0x56,0x61,0x6c,0x69,0x64]));_0x1e55f1(),_0x3c8d59[_0x32ab6d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32ab6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c5235=!0x1;const _0x187136=_0x40e1fb();function _0xf64154(_0x210ea8){return!!_0x210ea8&&(typeof _0x210ea8===_0x32ab6d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x210ea8===_0x32ab6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x210ea8[_0x32ab6d([0x74,0x68,0x65,0x6e])]===_0x32ab6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x210ea8[_0x32ab6d([0x63,0x61,0x74,0x63,0x68])]===_0x32ab6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5657c2(_0x7253e7){_0x1f9057(_0x7253e7)[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x974b46=>{if(!_0x974b46||_0x974b46[_0x32ab6d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32ab6d([0x6f,0x6b]))return _0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47be43(_0x41cab1(_0x187136+_0x4ffe27))!=_0x974b46[_0x32ab6d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32ab6d([0x56,0x61,0x6c,0x69,0x64]);})[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x1523d2=>(_0x1bffb8(),_0x1523d2),()=>{const _0x20c67d=_0xba7e07();return null==_0x20c67d?(_0x1bffb8(),_0x32ab6d([0x56,0x61,0x6c,0x69,0x64])):_0x32ab6d(_0x7b7bab-_0x20c67d>(0x63ae0106^_0x2dfc1e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x190207)[_0x32ab6d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x190207(_0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c08aa=0x47946b86^_0x2dfc1e;function _0x1bffb8(){const _0x542b25=_0x32ab6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x47be43(_0x41cab1(_0x22003d)),_0x2a697f=_0x5d3ee5(_0x47be43(window[_0x32ab6d([0x4d,0x61,0x74,0x68])][_0x32ab6d([0x63,0x65,0x69,0x6c])](_0x7b7bab/_0x1c08aa)));window[_0x32ab6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32ab6d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x542b25,_0x2a697f);}function _0xba7e07(){const _0x2edb67=_0x32ab6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x47be43(_0x41cab1(_0x22003d)),_0x35a2b6=window[_0x32ab6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32ab6d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2edb67);return _0x35a2b6?window[_0x32ab6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d3ee5(_0x35a2b6),0x10)*_0x1c08aa:null;}function _0x1f9057(_0x26e7d9){return new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11e739,_0x2a1875)=>{_0x26e7d9[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x11e739,_0x2a1875),window[_0x32ab6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a1875,0x47a351c6^_0x2dfc1e);});}}_0x3c8d59[_0x32ab6d([0x6f,0x6e])](_0x32ab6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41fffa,_0x5cf2f7)=>{if(_0x5cf2f7[0x0]!=_0x22003d)return _0x190207(_0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5cf2f7[0x1]={..._0x5cf2f7[0x1],[_0x32ab6d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x187136};},{[_0x32ab6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32ab6d([0x68,0x69,0x67,0x68])}),_0x3c8d59[_0x32ab6d([0x6f,0x6e])](_0x32ab6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x186839=>{_0xf64154(_0x186839[_0x32ab6d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c5235=!0x0,_0x5657c2(_0x186839[_0x32ab6d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32ab6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32ab6d([0x6c,0x6f,0x77])}),_0xe490de[_0x32ab6d([0x74,0x68,0x65,0x6e])](()=>{_0x5c5235||_0x190207(_0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10a23e(){return _0x3c8d59[_0x32ab6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32ab6d([0x76,0x69,0x65,0x77])][_0x32ab6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32ab6d([0x61,0x75,0x74,0x6f]);}function _0x1e55f1(){_0x3c8d59[_0x32ab6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32ab6d([0x76,0x69,0x65,0x77])][_0x32ab6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32ab6d([0x61,0x75,0x74,0x6f]);}}function _0x5d0ea1(_0x4ae497){const _0x3a3564=[new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fa24=>setTimeout(_0x11fa24,0x47abbbca^_0x2dfc1e)),_0xe490de[_0x32ab6d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9976=>{let _0x9512f3=0x0;_0x3c8d59[_0x32ab6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ab6d([0x6f,0x6e])](_0x32ab6d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b4dfd,_0x23d101)=>{_0x23d101[0x0][_0x32ab6d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9512f3++,_0x9512f3==(0x47a284fe^_0x2dfc1e)&&(_0x3a9976(),_0x3b4dfd[_0x32ab6d([0x6f,0x66,0x66])]());});}))];return window[_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32ab6d([0x72,0x61,0x63,0x65])](_0x3a3564)[_0x32ab6d([0x74,0x68,0x65,0x6e])](()=>_0x4ae497);}async function _0x3899d2(){await _0xe490de,_0x3c8d59[_0x32ab6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ab6d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1895d2,_0x3c8d59[_0x32ab6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ab6d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1895d2,_0x3c8d59[_0x32ab6d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32ab6d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x119ede(_0x137f78){const _0x3a7a48=_0x50c32a();_0x3c8d59[_0x3a7a48]=_0x32ab6d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x137f78,_0x137f78!=_0x32ab6d([0x56,0x61,0x6c,0x69,0x64])&&_0x3899d2();}function _0x50c32a(){const _0xc829a8=window[_0x32ab6d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32ab6d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32ab6d([0x6e,0x6f,0x77])]())[_0x32ab6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32ab6d([0x2e]),'');let _0x3e62d7=_0x32ab6d([0x75]);for(let _0x22861f=0x0;_0x22861f<_0xc829a8[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22861f+=0x2){let _0x28e4a3=window[_0x32ab6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc829a8[_0x32ab6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22861f,_0x22861f+0x2));_0x28e4a3>=_0x22a30e[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28e4a3-=_0x22a30e[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e62d7+=_0x22a30e[_0x28e4a3];}return _0x3e62d7;}function _0x5519f0(){const _0x2efbc9=_0x290167[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])](_0x32ab6d([0x2e]));if(0x3!=_0x2efbc9[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b1407(_0x2efbc9[0x1]);function _0x1b1407(_0x34cc0f){const _0x7f2d67=_0x376d89(_0x34cc0f);return _0x7f2d67&&_0x3bd7b8()?_0x7f2d67:null;function _0x3bd7b8(){const _0x1390bd=_0x7f2d67[_0x32ab6d([0x6a,0x74,0x69])],_0x375c6e=window[_0x32ab6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1390bd[_0x32ab6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1390bd[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2635d6={..._0x7f2d67,[_0x32ab6d([0x6a,0x74,0x69])]:_0x1390bd[_0x32ab6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1390bd[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2635d6[_0x32ab6d([0x76,0x63])],_0x41cab1(_0x2635d6)==_0x375c6e;}}}async function _0x551553(){let _0x4c742b=!0x0;try{const _0x13c81a=_0x290167[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])](_0x32ab6d([0x2e])),[_0x33f86b,_0x2f50e9,_0xace561]=_0x13c81a;return _0x4fbc91(_0x33f86b),await _0x14a712(_0x33f86b,_0x2f50e9,_0xace561),_0x4c742b;}catch{return!0x1;}function _0x4fbc91(_0x36510a){const _0x2a81a2=_0x376d89(_0x36510a);_0x2a81a2&&_0x2a81a2[_0x32ab6d([0x61,0x6c,0x67])]==_0x32ab6d([0x45,0x53,0x32,0x35,0x36])||(_0x4c742b=!0x1);}async function _0x14a712(_0x47ecca,_0x17efb0,_0x267948){const _0x81c0df=window[_0x32ab6d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32ab6d([0x66,0x72,0x6f,0x6d])](_0x34a576(_0x267948),_0x426e9a=>_0x426e9a[_0x32ab6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33fde2=new window[(_0x32ab6d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32ab6d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47ecca+_0x32ab6d([0x2e])+_0x17efb0),_0xc98cfd=window[_0x32ab6d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32ab6d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc98cfd)return;const _0x408cbe=await _0xc98cfd[_0x32ab6d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32ab6d([0x6a,0x77,0x6b]),_0xcdf82c,{[_0x32ab6d([0x6e,0x61,0x6d,0x65])]:_0x32ab6d([0x45,0x43,0x44,0x53,0x41]),[_0x32ab6d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32ab6d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32ab6d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc98cfd[_0x32ab6d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32ab6d([0x6e,0x61,0x6d,0x65])]:_0x32ab6d([0x45,0x43,0x44,0x53,0x41]),[_0x32ab6d([0x68,0x61,0x73,0x68])]:{[_0x32ab6d([0x6e,0x61,0x6d,0x65])]:_0x32ab6d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x408cbe,_0x81c0df,_0x33fde2)||(_0x4c742b=!0x1);}}function _0x376d89(_0x7a9355){return _0x7a9355[_0x32ab6d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32ab6d([0x65,0x79]))?JSON[_0x32ab6d([0x70,0x61,0x72,0x73,0x65])](_0x34a576(_0x7a9355)):null;}function _0x34a576(_0x4d0c1e){return window[_0x32ab6d([0x61,0x74,0x6f,0x62])](_0x4d0c1e[_0x32ab6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32ab6d([0x2b]))[_0x32ab6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32ab6d([0x2f])));}function _0x41cab1(_0x39a982){let _0x255c63=0x1505;function _0x49f212(_0x29230f){for(let _0x232703=0x0;_0x232703<_0x29230f[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x232703++){const _0x39418f=_0x29230f[_0x32ab6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x232703);_0x255c63=(_0x255c63<<0x5)+_0x255c63+_0x39418f,_0x255c63&=_0x255c63;}}function _0x3f1bf8(_0x1e2edf){Array[_0x32ab6d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e2edf)?_0x1e2edf[_0x32ab6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f1bf8):_0x1e2edf&&typeof _0x1e2edf==_0x32ab6d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32ab6d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e2edf)[_0x32ab6d([0x73,0x6f,0x72,0x74])]()[_0x32ab6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe9dec0,_0x594996])=>{_0x49f212(_0xe9dec0),_0x3f1bf8(_0x594996);}):_0x49f212(window[_0x32ab6d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e2edf));}return _0x3f1bf8(_0x39a982),_0x255c63>>>0x0;}function _0x47be43(_0x4a3f66){return _0x4a3f66[_0x32ab6d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32ab6d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32ab6d([0x30]));}function _0x5d3ee5(_0x18a289){return _0x18a289[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32ab6d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32ab6d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1895d2(){}function _0x32ab6d(_0x65f4bd){return _0x65f4bd['map'](_0x58d22a=>String['fromCharCode'](_0x58d22a))['join']('');}_0x119ede(await _0x4b85da());}(this);}['_moveSelectionToFootnoteDefinition'](_0x32fb18){const {plugins:_0x1282fa,editing:_0x577928,model:_0x38f415}=this['editor'],_0x41a903=_0x1282fa['get'](_0x4e64ef)['getFootnote'](_0x32fb18);return!!_0x41a903&&(_0x38f415['change'](_0x44117f=>{_0x44117f['setSelection'](_0x44117f['createPositionAt'](_0x41a903['definition'],'end'));}),_0x577928['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5df62d){const {plugins:_0x43930b,editing:_0x570238,model:_0x4233fb}=this['editor'],_0x289493=_0x43930b['get'](_0x4e64ef)['getFootnote'](_0x5df62d);return!!_0x289493&&(_0x4233fb['change'](_0x11c666=>{_0x11c666['setSelection'](_0x289493['reference'],'on');}),_0x570238['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x10e46d}=this['editor']['model'],_0x4a10ed=this['editor']['config']['get']('footnotes.multiBlock');_0x10e46d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x10e46d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x10e46d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4a10ed?_0x10e46d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x10e46d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x10e46d['addChildCheck'](_0x156060=>{for(const _0x2c7b49 of _0x156060)if('footnoteDefinition'===_0x2c7b49['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5ccb1a}=this,{conversion:_0x384d2d,editing:_0x284de9}=_0x5ccb1a,{t:t}=_0x5ccb1a['locale'];_0x384d2d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4118e0,{writer:_0x209de1,consumable:_0x5ea856})=>{const _0x2cc15f=_0x4118e0['getChild'](0x0);if(!_0x2cc15f||!_0x2cc15f['is']('element','a'))return null;const _0xd557a5=_0x2cc15f['getAttribute']('href')||'';if(!_0xd557a5['startsWith']('#'))return null;const _0x41eb89=_0xd557a5['replace'](/^#/,'');if(!_0x41eb89)return null;_0x5ea856['consume'](_0x2cc15f,{'name':!0x0,'attributes':['href']});for(const {item:_0x215922}of _0x284de9['view']['createRangeIn'](_0x2cc15f))_0x215922['is']('$textProxy')?_0x5ea856['consume'](_0x215922['textNode'],{'name':!0x0}):_0x215922['is']('element')&&_0x5ea856['consume'](_0x215922,{'name':!0x0});return _0x209de1['createElement']('footnoteRef',{'footnoteId':_0x41eb89});}}),_0x384d2d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xe3484c,{writer:_0x3b8fb8})=>D(_0xe3484c,_0x3b8fb8)}),_0x384d2d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5dfe36,{writer:_0x1f615b})=>{const _0x4b813d=_0x5dfe36['getAttribute']('footnoteCounter');return _0x212cb2(D(_0x5dfe36,_0x1f615b),_0x1f615b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4b813d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x32519b}=this,{t:t}=_0x32519b['locale'],{conversion:_0x382b9b}=_0x32519b;_0x382b9b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x382b9b['for']('upcast')['add'](_0x36a7b9=>{_0x36a7b9['on']('element:ol',(_0x5793a3,_0x1e4011,_0x474ef1)=>{const _0x332a3f=_0x1e4011['viewItem'];if(!_0x332a3f['hasClass']('footnotes-list')||!_0x1e4011['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x474ef1['consumable']['consume'](_0x332a3f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x34a790,modelCursor:_0x1f81c9}=_0x474ef1['convertChildren'](_0x1e4011['viewItem'],_0x1e4011['modelCursor']);_0x1e4011['modelRange']=_0x34a790,_0x1e4011['modelCursor']=_0x1f81c9;}),_0x36a7b9['on']('element:hr',(_0x5ea4d8,_0xaf2051,_0x5041d9)=>{const _0x43a08b=_0xaf2051['viewItem'];_0x43a08b['hasClass']('footnotes-divider')&&_0xaf2051['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5041d9['consumable']['consume'](_0x43a08b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x382b9b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x46e943,{writer:_0x543360})=>v(_0x543360)}),_0x382b9b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x49afcd,{writer:_0x60b440})=>{const _0x467fda=v(_0x60b440,{'data-footnotes-list-label':t('Footnotes')}),_0x5e3634=_0x212cb2(_0x467fda,_0x60b440,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x60b440['setCustomProperty']('footnotesDefinitions',!0x0,_0x5e3634),_0x5e3634;}});}['_defineDefinitionConverters'](){const {editor:_0x3db02d}=this,{conversion:_0x3a9a52,locale:_0x5d4722}=_0x3db02d,_0x3cba73=_0x3db02d['config']['get']('footnotes.multiBlock');_0x3a9a52['for']('upcast')['add'](_0x5c1b18=>{_0x5c1b18['on']('element:li',(_0x4849bf,_0x27e3d2,_0x6be8db)=>{const _0x2537f2=_0x27e3d2['viewItem'];if(!_0x2537f2['hasClass']('footnote-definition')||!_0x2537f2['getAttribute']('id'))return;const _0x4a0fbe=_0x2537f2['parent'];if(!_0x4a0fbe['is']('element','ol')||!_0x4a0fbe['hasClass']('footnotes-list'))return;if(!_0x6be8db['consumable']['test'](_0x2537f2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4cdf51=_0x6be8db['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2537f2['getAttribute']('id')});if(!_0x6be8db['safeInsert'](_0x4cdf51,_0x27e3d2['modelCursor']))return;_0x6be8db['consumable']['consume'](_0x2537f2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x36f6b2=Array['from'](_0x2537f2['getChildren']())['find'](_0x4cdd33=>_0x4cdd33['is']('element')&&_0x4cdd33['hasClass']('footnote-content'));for(const _0x1d9801 of _0x2537f2['getChildren']())_0x1d9801['is']('element')&&(_0x6be8db['consumable']['consume'](_0x1d9801,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x6be8db['consumable']['consume'](_0x1d9801,{'name':!0x0,'classes':'footnote-content'}));if(_0x36f6b2){if(_0x3cba73)_0x6be8db['convertChildren'](_0x36f6b2,_0x4cdf51);else{const _0x211f1c=_0x6be8db['writer']['createElement']('footnoteInlineContent');_0x6be8db['writer']['insert'](_0x211f1c,_0x4cdf51),_0x6be8db['convertChildren'](_0x36f6b2,_0x211f1c);}}_0x6be8db['updateConversionResult'](_0x4cdf51,_0x27e3d2);});}),_0x3a9a52['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x439ae3,{writer:_0x125380})=>b(_0x439ae3,_0x125380,_0x5d4722,{'dataPipeline':!0x0})}),_0x3a9a52['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x523296,{writer:_0x5e867b})=>b(_0x523296,_0x5e867b,_0x5d4722)});}['_defineBogusParagraphConverters'](){const {editor:_0x37cec9}=this,{conversion:_0x2f684b}=_0x37cec9;_0x37cec9['config']['get']('footnotes.multiBlock')?(_0x2f684b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2f684b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x37cec9['model']['document'],'change:data',()=>{!function(_0x54f1f3,_0x2c74c3){const _0x3d26d2=_0x54f1f3['document']['differ'],_0x2706a6=new Set();for(const _0x1aa2ae of _0x3d26d2['getChanges']()){const _0x40fdd4='attribute'==_0x1aa2ae['type']?_0x1aa2ae['range']['start']['parent']:_0x1aa2ae['position']['parent'];_0x40fdd4['is']('element','footnoteDefinition')&&_0x2706a6['add'](_0x40fdd4);}for(const _0x43002e of _0x2706a6['values']()){const _0x35b5f7=Array['from'](_0x43002e['getChildren']())['filter'](_0x7e64d4=>g(_0x7e64d4,_0x2c74c3['mapper']));for(const _0xabdb05 of _0x35b5f7)_0x2c74c3['reconvertItem'](_0xabdb05);}}(_0x37cec9['model'],_0x37cec9['editing']);})):(_0x2f684b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2f684b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3a2927,{writer:_0x6627e9})=>{const _0xdc2bc3=_0x6627e9['createContainerElement']('span');return _0x6627e9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xdc2bc3),_0xdc2bc3;}}));}['_defineKeyboardHandlers'](){const {editor:_0x37380d}=this,{editing:_0x91b271,t:t}=_0x37380d,_0xa303a3=_0x37380d['model']['document']['selection'];_0x37380d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x37380d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x91b271['view']['document'],'enter',(_0x2cd3f9,_0x667331)=>{const _0x1af0df=function(_0x3dbb37){const _0x545bfc=_0x3dbb37['getSelectedElement']();if(_0x545bfc?.['is']('element','footnoteRef'))return _0x545bfc;return null;}(_0xa303a3);if(_0x1af0df){const _0x583bd2=_0x1af0df['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x583bd2),_0x667331['preventDefault'](),_0x2cd3f9['stop']();}},{'context':_0x27a867});}['_defineClickHandlers'](){const {editor:_0x167ddb}=this,{editing:_0x28e10b}=_0x167ddb;_0x167ddb['editing']['view']['addObserver'](_0x12ebf2),_0x167ddb['editing']['view']['addObserver'](_0x2e5ae5);let _0x5a0fc1=!0x1;this['listenTo'](_0x28e10b['view']['document'],'pointerdown',(_0x9c8b74,_0x86a8f0)=>{const {target:_0x479de7}=_0x86a8f0,_0x2fa9d2=_0x28e10b['view']['document']['selection'];_0x5a0fc1=!!(_0x479de7?.['is']('element','a')&&_0x479de7['parent']?.['is']('element','sup')&&_0x479de7['parent']['hasClass']('footnote'))&&_0x2fa9d2['getSelectedElement']()===_0x479de7['parent'];},{'priority':'high'}),this['listenTo'](_0x28e10b['view']['document'],'click',(_0x57263a,_0x529454)=>{const {target:_0x55dbde}=_0x529454;if(!_0x55dbde?.['is']('element','a'))return;if(_0x55dbde['parent']?.['is']('element','sup')&&_0x55dbde['parent']['hasClass']('footnote')&&!_0x5a0fc1)return void _0x529454['preventDefault']();let _0x11b498=_0x55dbde['getAttribute']('href');if(!_0x11b498?.['startsWith']('#'))return;_0x11b498=_0x11b498['slice'](0x1);let _0x5d94d4=!0x1;(_0x11b498['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x11b498['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x11b498))&&(_0x5d94d4=!0x0),_0x5d94d4&&(_0x529454['preventDefault'](),_0x57263a['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x44e5f3}={}){return(_0x29c335,{writer:_0x68f409})=>{if(!p(_0x29c335))return null;if(!_0x44e5f3)return _0x68f409['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x37ad14=_0x68f409['createContainerElement']('p');return _0x68f409['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x37ad14),_0x37ad14;};}function p(_0x3453da){const {parent:_0x18e296}=_0x3453da;if(!_0x18e296?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x18e296['childCount'])return!0x1;for(const _0xda6851 of _0x3453da['getAttributeKeys']())if(!_0xda6851['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xda6851)return!0x1;return!0x0;}function g(_0x426d1c,_0x179c06){if(!_0x426d1c['is']('element','paragraph'))return!0x1;const _0x4c76be=_0x179c06['toViewElement'](_0x426d1c);return!!_0x4c76be&&p(_0x426d1c)!==_0x4c76be['is']('element','span');}export function isFootnotesDefinitionsWidget(_0xc0dcc9){return _0x27a867(_0xc0dcc9)&&_0xc0dcc9['is']('containerElement')&&!!_0xc0dcc9['getCustomProperty']('footnotesDefinitions');}function v(_0x20c010,_0x59ea81={}){const _0x1ccff0=_0x20c010['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x364e85=_0x20c010['createContainerElement']('ol',{'class':'footnotes-list'},_0x20c010['createSlot']());return _0x20c010['createContainerElement']('div',{'class':'footnotes',..._0x59ea81},[_0x1ccff0,_0x364e85]);}function D(_0x4a728f,_0x440eb3){const _0x29bbd0=_0x4a728f['getAttribute']('footnoteId'),_0x373cfb=_0x4a728f['getAttribute']('footnoteCounter'),_0x2efe1c=_0x440eb3['createUIElement']('a',{'href':'#'+_0x29bbd0},function(_0x5ac340){const _0x8d06f8=this['toDomElement'](_0x5ac340);return _0x8d06f8['textContent']=_0x373cfb,_0x8d06f8;}),_0x4fd1e0=_0x440eb3['createContainerElement']('sup',{'id':'ref-'+_0x29bbd0,'class':'footnote'},[_0x2efe1c]);return _0x4fd1e0['getFillerOffset']=()=>null,_0x4fd1e0;}function b(_0x3ee93b,_0x3f4953,_0x7a25ff,{dataPipeline:_0x57d219}={}){const {t:t}=_0x7a25ff,_0x2c2e02=_0x3ee93b['getAttribute']('footnoteId'),_0x10ef1e=_0x3f4953['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2c2e02},function(_0x1be792){const _0x1c6814=this['toDomElement'](_0x1be792);return _0x1c6814['innerText']='^',_0x1c6814;}),_0x589d28=_0x57d219?_0x3f4953['createContainerElement']('div',{'class':'footnote-content'}):_0x55965f(_0x3f4953['createEditableElement']('div',{'class':'footnote-content'}),_0x3f4953,{'label':t('Footnote\x20content.')});return _0x3f4953['insert'](_0x3f4953['createPositionAt'](_0x589d28,0x0),_0x3f4953['createSlot']()),_0x3f4953['createContainerElement']('li',{'class':'footnote-definition','id':_0x2c2e02},[_0x10ef1e,_0x589d28]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x356e(_0x10c853,_0x5af43c){const _0x1659a8=_0x1659();return _0x356e=function(_0x356ea7,_0x5b79d7){_0x356ea7=_0x356ea7-0xf4;let _0x45959a=_0x1659a8[_0x356ea7];return _0x45959a;},_0x356e(_0x10c853,_0x5af43c);}const _0x322e9c=_0x356e;(function(_0x1bd2dc,_0x30f6e8){const _0xcdba21=_0x356e,_0x5b8df1=_0x1bd2dc();while(!![]){try{const _0xe86ce5=-parseInt(_0xcdba21(0xfa))/0x1+-parseInt(_0xcdba21(0xfd))/0x2+parseInt(_0xcdba21(0x10a))/0x3*(-parseInt(_0xcdba21(0x100))/0x4)+parseInt(_0xcdba21(0xf5))/0x5+parseInt(_0xcdba21(0x109))/0x6+-parseInt(_0xcdba21(0xff))/0x7*(-parseInt(_0xcdba21(0x108))/0x8)+parseInt(_0xcdba21(0x102))/0x9;if(_0xe86ce5===_0x30f6e8)break;else _0x5b8df1['push'](_0x5b8df1['shift']());}catch(_0x9455d2){_0x5b8df1['push'](_0x5b8df1['shift']());}}}(_0x1659,0xd515c));import{Command as _0x1c142f}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x577696}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x1c142f{[_0x322e9c(0x104)](){const _0x469e92=_0x322e9c,{editor:_0x36cf79}=this,_0x408417=_0x36cf79[_0x469e92(0xf9)][_0x469e92(0x103)](_0x577696)[_0x469e92(0x101)]();this[_0x469e92(0x107)]=!!_0x408417,this[_0x469e92(0x106)]=_0x408417?.[_0x469e92(0xfb)](_0x469e92(0xf4))??null;}[_0x322e9c(0xf7)]({value:_0x4c4b08}){const _0x23c664=_0x322e9c,{editor:_0x7e1e7d}=this,_0x4a417f=_0x7e1e7d[_0x23c664(0xf9)][_0x23c664(0x103)](_0x577696),_0x501b0f=_0x4a417f[_0x23c664(0x101)]();_0x501b0f&&Number[_0x23c664(0xf6)](_0x4c4b08)&&_0x7e1e7d[_0x23c664(0xf8)][_0x23c664(0xfe)](_0x10c3f3=>{const _0x366858=_0x23c664;_0x10c3f3[_0x366858(0xfc)](_0x366858(0xf4),_0x4c4b08,_0x501b0f),_0x4a417f[_0x366858(0x105)](_0x10c3f3);});}}function _0x1659(){const _0x2331d4=['isEnabled','32TmfobF','5651124wSOUta','75auItPR','footnotesListStart','4444735niCjCL','isInteger','execute','model','plugins','452768jRJUtz','getAttribute','setAttribute','628966LkawRr','change','333648XtnAxe','144836vWdDLn','getFootnotesDefinitionsObjectElement','4714335EPLETQ','get','refresh','_updateFootnotesCounters','value'];_0x1659=function(){return _0x2331d4;};return _0x1659();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x56d2(){const _0x1a03c0=['plugins','266464xxlQCr','value','execute','get','1569115RtJbng','558ICXvtH','412116yatSix','refresh','model','getFootnotesDefinitionsObjectElement','footnotesListStyle','58648CPwvdY','includes','2069424tJlhqO','218212NqsXVv','12UWZwjN','change','isEnabled','_updateFootnotesCounters','308946nSxWcX','setAttribute','getAttribute'];_0x56d2=function(){return _0x1a03c0;};return _0x56d2();}const _0x1dec70=_0x1b9d;(function(_0x37277d,_0x16957f){const _0x464bd8=_0x1b9d,_0x33e65d=_0x37277d();while(!![]){try{const _0x48aad1=parseInt(_0x464bd8(0x1ad))/0x1+parseInt(_0x464bd8(0x1be))/0x2+-parseInt(_0x464bd8(0x1b6))/0x3*(parseInt(_0x464bd8(0x1b5))/0x4)+-parseInt(_0x464bd8(0x1c2))/0x5+parseInt(_0x464bd8(0x1ba))/0x6+-parseInt(_0x464bd8(0x1b4))/0x7+parseInt(_0x464bd8(0x1b2))/0x8*(parseInt(_0x464bd8(0x1ac))/0x9);if(_0x48aad1===_0x16957f)break;else _0x33e65d['push'](_0x33e65d['shift']());}catch(_0x4de12a){_0x33e65d['push'](_0x33e65d['shift']());}}}(_0x56d2,0x369ce));import{Command as _0x356984}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x5ca16f}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x576460}from'../../footnotestracker.js';function _0x1b9d(_0x3ffe06,_0x519ce9){const _0x56d217=_0x56d2();return _0x1b9d=function(_0x1b9dcb,_0x1728a3){_0x1b9dcb=_0x1b9dcb-0x1ac;let _0x2b597e=_0x56d217[_0x1b9dcb];return _0x2b597e;},_0x1b9d(_0x3ffe06,_0x519ce9);}export class FootnotesStyleCommand extends _0x356984{[_0x1dec70(0x1ae)](){const _0x28acfd=_0x1dec70,{editor:_0x4bed0b}=this,_0x406dc9=_0x4bed0b[_0x28acfd(0x1bd)][_0x28acfd(0x1c1)](_0x576460)[_0x28acfd(0x1b0)]();this[_0x28acfd(0x1b8)]=!!_0x406dc9,this[_0x28acfd(0x1bf)]=_0x406dc9?.[_0x28acfd(0x1bc)](_0x28acfd(0x1b1))??null;}[_0x1dec70(0x1c0)]({value:_0x5dd261}){const _0x2a43fb=_0x1dec70,{editor:_0x57c225}=this,_0x29cc2e=_0x57c225[_0x2a43fb(0x1bd)][_0x2a43fb(0x1c1)](_0x576460),_0x4805e2=_0x29cc2e[_0x2a43fb(0x1b0)]();_0x4805e2&&_0x5ca16f[_0x2a43fb(0x1b3)](_0x5dd261)&&_0x57c225[_0x2a43fb(0x1af)][_0x2a43fb(0x1b7)](_0x4b1fb3=>{const _0x3e5c7b=_0x2a43fb;_0x4b1fb3[_0x3e5c7b(0x1bb)](_0x3e5c7b(0x1b1),_0x5dd261,_0x4805e2),_0x29cc2e[_0x3e5c7b(0x1b9)](_0x4b1fb3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11a662=_0x2a7a;(function(_0x5ec0b5,_0x5abe10){const _0x369041=_0x2a7a,_0x1a73b1=_0x5ec0b5();while(!![]){try{const _0x4ca48c=-parseInt(_0x369041(0x90))/0x1+parseInt(_0x369041(0x8d))/0x2*(-parseInt(_0x369041(0x94))/0x3)+-parseInt(_0x369041(0x9a))/0x4+-parseInt(_0x369041(0x8a))/0x5*(-parseInt(_0x369041(0x93))/0x6)+parseInt(_0x369041(0x8c))/0x7*(parseInt(_0x369041(0x8e))/0x8)+-parseInt(_0x369041(0x89))/0x9+parseInt(_0x369041(0x8b))/0xa*(parseInt(_0x369041(0x9b))/0xb);if(_0x4ca48c===_0x5abe10)break;else _0x1a73b1['push'](_0x1a73b1['shift']());}catch(_0x2ab0c5){_0x1a73b1['push'](_0x1a73b1['shift']());}}}(_0x538a,0x6d207));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x11a662(0x99),_0x11a662(0x8f),_0x11a662(0x98),_0x11a662(0x92),_0x11a662(0x97),_0x11a662(0x95),_0x11a662(0x96),_0x11a662(0x91)];function _0x2a7a(_0x2740f0,_0xf6ee61){const _0x538a8b=_0x538a();return _0x2a7a=function(_0x2a7a70,_0x11959b){_0x2a7a70=_0x2a7a70-0x89;let _0x158081=_0x538a8b[_0x2a7a70];return _0x158081;},_0x2a7a(_0x2740f0,_0xf6ee61);}function _0x538a(){const _0x3d5b5c=['upper-latin','6zcfKNg','162129gGhewY','upper-alpha','lower-roman','lower-alpha','lower-latin','decimal','716040oKiEST','11ctwHNL','398655glnZXV','475890NDVjJc','3075040MklXFl','7EMEECU','6cfMrIC','5027448KPxEHL','decimal-leading-zero','198696zFUqMP','upper-roman'];_0x538a=function(){return _0x3d5b5c;};return _0x538a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x23ca(_0x38a194,_0x29246f){const _0x34ecc4=_0x34ec();return _0x23ca=function(_0x23ca07,_0x3b5d1f){_0x23ca07=_0x23ca07-0x1ed;let _0x165c51=_0x34ecc4[_0x23ca07];return _0x165c51;},_0x23ca(_0x38a194,_0x29246f);}const _0x26657a=_0x23ca;(function(_0xc218d7,_0x1b230a){const _0x52e063=_0x23ca,_0x46a235=_0xc218d7();while(!![]){try{const _0x359af6=-parseInt(_0x52e063(0x212))/0x1*(parseInt(_0x52e063(0x23e))/0x2)+-parseInt(_0x52e063(0x1f3))/0x3+parseInt(_0x52e063(0x209))/0x4+parseInt(_0x52e063(0x236))/0x5*(parseInt(_0x52e063(0x24d))/0x6)+-parseInt(_0x52e063(0x22d))/0x7*(parseInt(_0x52e063(0x206))/0x8)+parseInt(_0x52e063(0x20f))/0x9*(parseInt(_0x52e063(0x247))/0xa)+-parseInt(_0x52e063(0x208))/0xb*(-parseInt(_0x52e063(0x202))/0xc);if(_0x359af6===_0x1b230a)break;else _0x46a235['push'](_0x46a235['shift']());}catch(_0x2ba050){_0x46a235['push'](_0x46a235['shift']());}}}(_0x34ec,0xca9f8));function _0x34ec(){const _0x17915c=['5YOfBYr','from','removeStyle','type','_definePostfixer','nodeAfter','_getDefaultStartIndex','getChildren','8faiuLd','model','mapper','hasAttribute','consumable','footnotes-list','writer','viewItem','footnotesListStart','210aRTEHL','get','upper-alpha','upper-roman','registerPostFixer','footnotesDefinitions','3420246qbdADx','isOfficialPlugin','add','define','setStyle','element:ol','isNaN','lower-alpha','find','_updateFootnotesCounters','name','parent','_getDefaultListStyle','2068644UvctsW','removeAttribute','setAttribute','parseInt','_defineSchema','decimal','_defineFormatter','config','init','start','extend','upper-latin','hasClass','editor','toUpperCase','1046784QWwYQR','checkAttribute','toLowerCase','plugins','8152mcIFDk','footnotes.footnotesProperties.defaultStartIndex','88GtvmdD','5157184NtNDjO','footnotesStyle','getChanges','floor','item','_formatFootnoteListValue','152019eUAHSJ','attribute:footnotesListStart:footnotesDefinitions','insert','215633jsiOoe','for','upcast','requires','list-style-type','getStyle','footnotes.footnotesProperties.defaultListStyle','fromCharCode','position','element','commands','FootnotesPropertiesEditing','attribute:footnotesListStyle:footnotesDefinitions','footnotesListStyle','modelCursor','getAttribute','isPremiumPlugin','setFootnoteFormatter','decimal-leading-zero','createRangeOn','getItems','differ','footnotesStart','pluginName','downcast','consume','padStart','3640CkgcMp','lower-roman','$text','toViewElement','document','lower-latin','max','_defineConverters','schema'];_0x34ec=function(){return _0x17915c;};return _0x34ec();}import{Plugin as _0x1d96a9}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x25e157}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x265776}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x524a67}from'../footnotestracker.js';import{FootnotesEditing as _0x225c94}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x1d96a9{static get[_0x26657a(0x229)](){const _0x2037f0=_0x26657a;return _0x2037f0(0x21d);}static get[_0x26657a(0x215)](){return[_0x225c94,_0x524a67];}static get[_0x26657a(0x24e)](){return!0x0;}static get[_0x26657a(0x222)](){return!0x0;}[_0x26657a(0x1fb)](){const _0x140d29=_0x26657a,{editor:_0x5c79fd}=this;_0x5c79fd[_0x140d29(0x1fa)][_0x140d29(0x250)](_0x140d29(0x218),_0x140d29(0x1f8)),_0x5c79fd[_0x140d29(0x1fa)][_0x140d29(0x250)](_0x140d29(0x207),0x1),_0x5c79fd[_0x140d29(0x21c)][_0x140d29(0x24f)](_0x140d29(0x20a),new _0x25e157(_0x5c79fd)),_0x5c79fd[_0x140d29(0x21c)][_0x140d29(0x24f)](_0x140d29(0x228),new _0x265776(_0x5c79fd)),this[_0x140d29(0x1f7)](),this[_0x140d29(0x234)](),this[_0x140d29(0x1f9)](),this[_0x140d29(0x23a)]();}[_0x26657a(0x1f7)](){const _0x4f5b7f=_0x26657a,{editor:_0xe25fb0}=this,{schema:_0x30db47}=_0xe25fb0[_0x4f5b7f(0x23f)];_0x30db47[_0x4f5b7f(0x1fd)](_0x4f5b7f(0x24c),{'allowAttributes':[_0x4f5b7f(0x21f),_0x4f5b7f(0x246)]});}[_0x26657a(0x234)](){const _0x4848f0=_0x26657a,{editor:_0x1a8d98}=this,{conversion:_0x1ee4a4,model:_0x1d329b}=_0x1a8d98,{schema:_0x1a7fdb}=_0x1d329b;_0x1ee4a4[_0x4848f0(0x213)](_0x4848f0(0x214))[_0x4848f0(0x24f)](_0x3e8de9=>{const _0xdf9bfc=_0x4848f0;_0x3e8de9['on'](_0xdf9bfc(0x252),(_0x395ff5,_0xbd3ef5,_0x4ee07a)=>{const _0x2c0225=_0xdf9bfc,_0x1f29c9=_0xbd3ef5[_0x2c0225(0x245)],_0x250781=_0xbd3ef5[_0x2c0225(0x220)]?.[_0x2c0225(0x1f1)];_0x1f29c9[_0x2c0225(0x1ff)](_0x2c0225(0x243))&&_0x250781?.['is'](_0x2c0225(0x21b),_0x2c0225(0x24c))&&(function(_0x265a2f,_0x47152a,_0x3c12ca,_0xd67afc){const _0x125ece=_0x2c0225;if(!_0xd67afc[_0x125ece(0x203)](_0x47152a,_0x125ece(0x246)))return;let _0x4de4d8=0x1;const _0x545b6d=_0x3c12ca[_0x125ece(0x242)][_0x125ece(0x22b)](_0x265a2f,{'attributes':_0x125ece(0x1fc)});if(_0x545b6d){const _0x9aff77=Number[_0x125ece(0x1f6)](_0x265a2f[_0x125ece(0x221)](_0x125ece(0x1fc)),0xa);Number[_0x125ece(0x253)](_0x9aff77)||(_0x4de4d8=_0x9aff77);}!_0x545b6d&&_0x47152a[_0x125ece(0x241)](_0x125ece(0x246))||_0x3c12ca[_0x125ece(0x244)][_0x125ece(0x1f5)](_0x125ece(0x246),_0x4de4d8,_0x47152a);}(_0x1f29c9,_0x250781,_0x4ee07a,_0x1a7fdb),function(_0x16a607,_0x5a5ef4,_0x5c1d14,_0x183d0f){const _0x1677a9=_0x2c0225;if(!_0x183d0f[_0x1677a9(0x203)](_0x5a5ef4,_0x1677a9(0x21f)))return;let _0x5730a5=_0x1677a9(0x1f8),_0x5ab21d=!0x1;if(_0x5c1d14[_0x1677a9(0x242)][_0x1677a9(0x22b)](_0x16a607,{'attributes':_0x1677a9(0x239)})){const _0x3065d0={0x1:_0x1677a9(0x1f8),'a':_0x1677a9(0x1ed),'A':_0x1677a9(0x249),'i':_0x1677a9(0x22e),'I':_0x1677a9(0x24a)}[_0x16a607[_0x1677a9(0x221)](_0x1677a9(0x239))];_0x3065d0&&(_0x5730a5=_0x3065d0),_0x5ab21d=!0x0;}_0x5c1d14[_0x1677a9(0x242)][_0x1677a9(0x22b)](_0x16a607,{'styles':_0x1677a9(0x216)})&&(_0x5730a5=_0x16a607[_0x1677a9(0x217)](_0x1677a9(0x216)),_0x5ab21d=!0x0),!_0x5ab21d&&_0x5a5ef4[_0x1677a9(0x241)](_0x1677a9(0x21f))||_0x5c1d14[_0x1677a9(0x244)][_0x1677a9(0x1f5)](_0x1677a9(0x21f),_0x5730a5,_0x5a5ef4);}(_0x1f29c9,_0x250781,_0x4ee07a,_0x1a7fdb));});}),_0x1ee4a4[_0x4848f0(0x213)](_0x4848f0(0x22a))[_0x4848f0(0x24f)](_0x229de0=>{const _0x224270=_0x4848f0;_0x229de0['on'](_0x224270(0x210),(_0x28556b,_0x2f5ce1,_0x1bf344)=>{const _0x2b1a93=_0x224270;if(!_0x1bf344[_0x2b1a93(0x242)][_0x2b1a93(0x22b)](_0x2f5ce1[_0x2b1a93(0x20d)],_0x28556b[_0x2b1a93(0x1f0)]))return;const _0x17a442=M(_0x2f5ce1[_0x2b1a93(0x20d)],_0x1bf344[_0x2b1a93(0x240)]),{attributeNewValue:_0x573d58}=_0x2f5ce1;null==_0x573d58||0x1===_0x573d58?_0x1bf344[_0x2b1a93(0x244)][_0x2b1a93(0x1f4)](_0x2b1a93(0x1fc),_0x17a442):_0x1bf344[_0x2b1a93(0x244)][_0x2b1a93(0x1f5)](_0x2b1a93(0x1fc),String(_0x573d58),_0x17a442);}),_0x229de0['on'](_0x224270(0x21e),(_0x3fd8bb,_0x3fc714,_0x33a8b1)=>{const _0x3ce235=_0x224270;if(!_0x33a8b1[_0x3ce235(0x242)][_0x3ce235(0x22b)](_0x3fc714[_0x3ce235(0x20d)],_0x3fd8bb[_0x3ce235(0x1f0)]))return;const _0xc20161=M(_0x3fc714[_0x3ce235(0x20d)],_0x33a8b1[_0x3ce235(0x240)]),{attributeNewValue:_0x36488b}=_0x3fc714;_0x36488b&&_0x3ce235(0x1f8)!==_0x36488b?_0x33a8b1[_0x3ce235(0x244)][_0x3ce235(0x251)](_0x3ce235(0x216),_0x36488b,_0xc20161):_0x33a8b1[_0x3ce235(0x244)][_0x3ce235(0x238)](_0x3ce235(0x216),_0xc20161);});});}[_0x26657a(0x23a)](){const _0x162f02=_0x26657a,{editor:_0x2b7a0b}=this,{model:_0x21bf77}=_0x2b7a0b,_0x58f357=_0x2b7a0b[_0x162f02(0x205)][_0x162f02(0x248)](_0x524a67),_0x554420=this[_0x162f02(0x1f2)](),_0x56cf41=this[_0x162f02(0x23c)]();_0x21bf77[_0x162f02(0x231)][_0x162f02(0x24b)](_0x480779=>{const _0x5e699e=_0x162f02,_0x59ba29=_0x21bf77[_0x5e699e(0x231)][_0x5e699e(0x227)][_0x5e699e(0x20b)]();let _0x582da1=!0x1;for(const _0xd6dba2 of _0x59ba29){if(_0x5e699e(0x211)!==_0xd6dba2[_0x5e699e(0x239)]||_0x5e699e(0x22f)===_0xd6dba2[_0x5e699e(0x1f0)])continue;const _0x394172=_0x21bf77[_0x5e699e(0x225)](_0xd6dba2[_0x5e699e(0x21a)][_0x5e699e(0x23b)]);for(const _0x1af9bc of _0x394172[_0x5e699e(0x226)]())_0x1af9bc['is'](_0x5e699e(0x21b),_0x5e699e(0x24c))&&(!_0x1af9bc[_0x5e699e(0x241)](_0x5e699e(0x246))&&_0x21bf77[_0x5e699e(0x235)][_0x5e699e(0x203)](_0x1af9bc,_0x5e699e(0x246))&&(_0x480779[_0x5e699e(0x1f5)](_0x5e699e(0x246),_0x56cf41,_0x1af9bc),_0x582da1=!0x0),!_0x1af9bc[_0x5e699e(0x241)](_0x5e699e(0x21f))&&_0x21bf77[_0x5e699e(0x235)][_0x5e699e(0x203)](_0x1af9bc,_0x5e699e(0x21f))&&(_0x480779[_0x5e699e(0x1f5)](_0x5e699e(0x21f),_0x554420,_0x1af9bc),_0x582da1=!0x0));}return _0x582da1&&_0x58f357[_0x5e699e(0x1ef)](_0x480779),_0x582da1;});}[_0x26657a(0x1f9)](){const _0x1b0f94=_0x26657a,{editor:_0xd500b2}=this;_0xd500b2[_0x1b0f94(0x205)][_0x1b0f94(0x248)](_0x524a67)[_0x1b0f94(0x223)](_0x4e428a=>this[_0x1b0f94(0x20e)](_0x4e428a));}[_0x26657a(0x1f2)](){const _0x37e87a=_0x26657a;return this[_0x37e87a(0x200)][_0x37e87a(0x1fa)][_0x37e87a(0x248)](_0x37e87a(0x218));}[_0x26657a(0x23c)](){const _0x394cc7=_0x26657a;return this[_0x394cc7(0x200)][_0x394cc7(0x1fa)][_0x394cc7(0x248)](_0x394cc7(0x207));}[_0x26657a(0x20e)]({container:_0x1ce8b1,value:_0x4b46ad,digits:_0x20406d}){const _0x5ba51c=_0x26657a,_0x4bb73e=_0x1ce8b1[_0x5ba51c(0x221)](_0x5ba51c(0x21f)),_0x32c9af=_0x1ce8b1[_0x5ba51c(0x221)](_0x5ba51c(0x246)),_0x5677d5=Math[_0x5ba51c(0x20c)](_0x4b46ad)+(_0x32c9af??0x1)-0x1;switch(_0x4bb73e){case _0x5ba51c(0x224):return function(_0x1a5cba,_0x380453){const _0xbd5092=_0x5ba51c;return String(_0x1a5cba)[_0xbd5092(0x22c)](_0x380453,'0');}(_0x5677d5,Math[_0x5ba51c(0x233)](0x2,_0x20406d));case _0x5ba51c(0x1ed):case _0x5ba51c(0x232):return N(_0x5677d5,!0x1);case _0x5ba51c(0x249):case _0x5ba51c(0x1fe):return N(_0x5677d5,!0x0);case _0x5ba51c(0x22e):return X(_0x5677d5,!0x1);case _0x5ba51c(0x24a):return X(_0x5677d5,!0x0);default:return String(_0x5677d5);}}}function M(_0x305f98,_0x5f091d){const _0xde983b=_0x26657a,_0x42e416=_0x5f091d[_0xde983b(0x230)](_0x305f98);return Array[_0xde983b(0x237)](_0x42e416[_0xde983b(0x23d)]())[_0xde983b(0x1ee)](_0x40934a=>_0x40934a['is'](_0xde983b(0x21b),'ol')&&_0x40934a[_0xde983b(0x1ff)](_0xde983b(0x243)));}function N(_0x5899c2,_0x9427a2){const _0x510251=_0x26657a;let _0x3faf49='',_0x26f2b1=_0x5899c2;for(;_0x26f2b1>0x0;){const _0x4c3efc=(_0x26f2b1-0x1)%0x1a;_0x3faf49=String[_0x510251(0x219)](0x61+_0x4c3efc)+_0x3faf49,_0x26f2b1=Math[_0x510251(0x20c)]((_0x26f2b1-0x1)/0x1a);}return _0x9427a2?_0x3faf49[_0x510251(0x201)]():_0x3faf49;}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(_0x51c86f,_0x4af3f4){const _0x1fd05c=_0x26657a;let _0x12a639='',_0x23745f=_0x51c86f;for(const {value:_0x1fccd2,numeral:_0x4136c9}of V)for(;_0x23745f>=_0x1fccd2;)_0x12a639+=_0x4136c9,_0x23745f-=_0x1fccd2;return _0x4af3f4?_0x12a639:_0x12a639[_0x1fd05c(0x204)]();}
|
|
23
|
+
function _0x5de8(){const _0x43d1e2=['document','setAttribute','$text','registerPostFixer','decimal-leading-zero','setStyle','FootnotesPropertiesEditing','3915680avDasZ','find','getChanges','for','floor','nodeAfter','consumable','extend','checkAttribute','attribute:footnotesListStyle:footnotesDefinitions','parent','init','add','_updateFootnotesCounters','5520vOFUNu','toLowerCase','pluginName','toViewElement','footnotes-list','item','viewItem','hasAttribute','removeAttribute','upcast','get','isOfficialPlugin','getAttribute','start','from','type','upper-roman','consume','_formatFootnoteListValue','list-style-type','footnotesDefinitions','parseInt','2321718zWXQjF','_defineFormatter','104vBhxnC','_defineSchema','footnotesListStyle','34256DebALz','upper-alpha','footnotes.footnotesProperties.defaultListStyle','insert','isNaN','decimal','define','removeStyle','element','toUpperCase','schema','position','1565160BPBCfB','element:ol','attribute:footnotesListStart:footnotesDefinitions','downcast','config','padStart','_defineConverters','lower-roman','mapper','footnotes.footnotesProperties.defaultStartIndex','footnotesListStart','editor','_getDefaultStartIndex','isPremiumPlugin','19223UgdHGr','getItems','hasClass','footnotesStart','686MZhEbd','writer','34ENgHtg','commands','_definePostfixer','9072297qlDyIE','setFootnoteFormatter','footnotesStyle','name','differ','model','requires','modelCursor','plugins','upper-latin','max','_getDefaultListStyle','getStyle','lower-alpha','lower-latin','getChildren','fromCharCode','createRangeOn'];_0x5de8=function(){return _0x43d1e2;};return _0x5de8();}const _0x1d5786=_0x3b46;(function(_0x5a9cc0,_0xabbb41){const _0x39d608=_0x3b46,_0xfe8876=_0x5a9cc0();while(!![]){try{const _0x48808a=parseInt(_0x39d608(0x21e))/0x1*(-parseInt(_0x39d608(0x1bf))/0x2)+-parseInt(_0x39d608(0x1e9))/0x3*(parseInt(_0x39d608(0x201))/0x4)+parseInt(_0x39d608(0x210))/0x5+parseInt(_0x39d608(0x1ff))/0x6+-parseInt(_0x39d608(0x1bd))/0x7*(parseInt(_0x39d608(0x204))/0x8)+parseInt(_0x39d608(0x1c2))/0x9+-parseInt(_0x39d608(0x1db))/0xa;if(_0x48808a===_0xabbb41)break;else _0xfe8876['push'](_0xfe8876['shift']());}catch(_0x153ba8){_0xfe8876['push'](_0xfe8876['shift']());}}}(_0x5de8,0x7f7c7));import{Plugin as _0x18d21a}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x4dfb70}from'./commands/footnotesstylecommand.js';function _0x3b46(_0x163abb,_0x28c6a1){const _0x5de8c0=_0x5de8();return _0x3b46=function(_0x3b4620,_0x517398){_0x3b4620=_0x3b4620-0x1bd;let _0x4038dc=_0x5de8c0[_0x3b4620];return _0x4038dc;},_0x3b46(_0x163abb,_0x28c6a1);}import{FootnotesStartCommand as _0x415663}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x164d30}from'../footnotestracker.js';import{FootnotesEditing as _0x59dd2e}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x18d21a{static get[_0x1d5786(0x1eb)](){const _0x272f63=_0x1d5786;return _0x272f63(0x1da);}static get[_0x1d5786(0x1c8)](){return[_0x59dd2e,_0x164d30];}static get[_0x1d5786(0x1f4)](){return!0x0;}static get[_0x1d5786(0x21d)](){return!0x0;}[_0x1d5786(0x1e6)](){const _0x2a5d09=_0x1d5786,{editor:_0x5ee01b}=this;_0x5ee01b[_0x2a5d09(0x214)][_0x2a5d09(0x20a)](_0x2a5d09(0x206),_0x2a5d09(0x209)),_0x5ee01b[_0x2a5d09(0x214)][_0x2a5d09(0x20a)](_0x2a5d09(0x219),0x1),_0x5ee01b[_0x2a5d09(0x1c0)][_0x2a5d09(0x1e7)](_0x2a5d09(0x1c4),new _0x4dfb70(_0x5ee01b)),_0x5ee01b[_0x2a5d09(0x1c0)][_0x2a5d09(0x1e7)](_0x2a5d09(0x221),new _0x415663(_0x5ee01b)),this[_0x2a5d09(0x202)](),this[_0x2a5d09(0x216)](),this[_0x2a5d09(0x200)](),this[_0x2a5d09(0x1c1)]();}[_0x1d5786(0x202)](){const _0x4ca76d=_0x1d5786,{editor:_0x52a3f9}=this,{schema:_0x3091d8}=_0x52a3f9[_0x4ca76d(0x1c7)];_0x3091d8[_0x4ca76d(0x1e2)](_0x4ca76d(0x1fd),{'allowAttributes':[_0x4ca76d(0x203),_0x4ca76d(0x21a)]});}[_0x1d5786(0x216)](){const _0xc532a2=_0x1d5786,{editor:_0x4b2dc1}=this,{conversion:_0x5b0e30,model:_0x5d993a}=_0x4b2dc1,{schema:_0x2c41a8}=_0x5d993a;_0x5b0e30[_0xc532a2(0x1de)](_0xc532a2(0x1f2))[_0xc532a2(0x1e7)](_0x2031c5=>{const _0x5127f1=_0xc532a2;_0x2031c5['on'](_0x5127f1(0x211),(_0x5e41fe,_0xa1650,_0x44fb8f)=>{const _0x333ca0=_0x5127f1,_0x29b571=_0xa1650[_0x333ca0(0x1ef)],_0x1c2eb1=_0xa1650[_0x333ca0(0x1c9)]?.[_0x333ca0(0x1e5)];_0x29b571[_0x333ca0(0x220)](_0x333ca0(0x1ed))&&_0x1c2eb1?.['is'](_0x333ca0(0x20c),_0x333ca0(0x1fd))&&(function(_0x15cd7f,_0x18c823,_0x3ca6e0,_0x31803b){const _0x103341=_0x333ca0;if(!_0x31803b[_0x103341(0x1e3)](_0x18c823,_0x103341(0x21a)))return;let _0x2e007b=0x1;const _0x3eca26=_0x3ca6e0[_0x103341(0x1e1)][_0x103341(0x1fa)](_0x15cd7f,{'attributes':_0x103341(0x1f6)});if(_0x3eca26){const _0xd52800=Number[_0x103341(0x1fe)](_0x15cd7f[_0x103341(0x1f5)](_0x103341(0x1f6)),0xa);Number[_0x103341(0x208)](_0xd52800)||(_0x2e007b=_0xd52800);}!_0x3eca26&&_0x18c823[_0x103341(0x1f0)](_0x103341(0x21a))||_0x3ca6e0[_0x103341(0x1be)][_0x103341(0x1d5)](_0x103341(0x21a),_0x2e007b,_0x18c823);}(_0x29b571,_0x1c2eb1,_0x44fb8f,_0x2c41a8),function(_0x3e871f,_0x390d2b,_0x4f0f14,_0x43cc82){const _0x10431c=_0x333ca0;if(!_0x43cc82[_0x10431c(0x1e3)](_0x390d2b,_0x10431c(0x203)))return;let _0x26c3b6=_0x10431c(0x209),_0x10ccba=!0x1;if(_0x4f0f14[_0x10431c(0x1e1)][_0x10431c(0x1fa)](_0x3e871f,{'attributes':_0x10431c(0x1f8)})){const _0x1dedcd={0x1:_0x10431c(0x209),'a':_0x10431c(0x1cf),'A':_0x10431c(0x205),'i':_0x10431c(0x217),'I':_0x10431c(0x1f9)}[_0x3e871f[_0x10431c(0x1f5)](_0x10431c(0x1f8))];_0x1dedcd&&(_0x26c3b6=_0x1dedcd),_0x10ccba=!0x0;}_0x4f0f14[_0x10431c(0x1e1)][_0x10431c(0x1fa)](_0x3e871f,{'styles':_0x10431c(0x1fc)})&&(_0x26c3b6=function(_0x36c642){const _0x513ba5=_0x10431c;switch(_0x36c642){case _0x513ba5(0x1cf):return _0x513ba5(0x1d0);case _0x513ba5(0x205):return _0x513ba5(0x1cb);default:return _0x36c642;}}(_0x3e871f[_0x10431c(0x1ce)](_0x10431c(0x1fc))),_0x10ccba=!0x0),!_0x10ccba&&_0x390d2b[_0x10431c(0x1f0)](_0x10431c(0x203))||_0x4f0f14[_0x10431c(0x1be)][_0x10431c(0x1d5)](_0x10431c(0x203),_0x26c3b6,_0x390d2b);}(_0x29b571,_0x1c2eb1,_0x44fb8f,_0x2c41a8));});}),_0x5b0e30[_0xc532a2(0x1de)](_0xc532a2(0x213))[_0xc532a2(0x1e7)](_0x4930bf=>{const _0x304556=_0xc532a2;_0x4930bf['on'](_0x304556(0x212),(_0x2a3e6e,_0x33eb10,_0x326e50)=>{const _0x5eb514=_0x304556;if(!_0x326e50[_0x5eb514(0x1e1)][_0x5eb514(0x1fa)](_0x33eb10[_0x5eb514(0x1ee)],_0x2a3e6e[_0x5eb514(0x1c5)]))return;const _0x3caf7e=M(_0x33eb10[_0x5eb514(0x1ee)],_0x326e50[_0x5eb514(0x218)]),{attributeNewValue:_0x161ef2}=_0x33eb10;null==_0x161ef2||0x1===_0x161ef2?_0x326e50[_0x5eb514(0x1be)][_0x5eb514(0x1f1)](_0x5eb514(0x1f6),_0x3caf7e):_0x326e50[_0x5eb514(0x1be)][_0x5eb514(0x1d5)](_0x5eb514(0x1f6),String(_0x161ef2),_0x3caf7e);}),_0x4930bf['on'](_0x304556(0x1e4),(_0xcfeb90,_0x14c0ab,_0x5c10f4)=>{const _0x44e733=_0x304556;if(!_0x5c10f4[_0x44e733(0x1e1)][_0x44e733(0x1fa)](_0x14c0ab[_0x44e733(0x1ee)],_0xcfeb90[_0x44e733(0x1c5)]))return;const _0xb98df1=M(_0x14c0ab[_0x44e733(0x1ee)],_0x5c10f4[_0x44e733(0x218)]),{attributeNewValue:_0x2765d9}=_0x14c0ab;_0x2765d9&&_0x44e733(0x209)!==_0x2765d9?_0x5c10f4[_0x44e733(0x1be)][_0x44e733(0x1d9)](_0x44e733(0x1fc),_0x2765d9,_0xb98df1):_0x5c10f4[_0x44e733(0x1be)][_0x44e733(0x20b)](_0x44e733(0x1fc),_0xb98df1);});});}[_0x1d5786(0x1c1)](){const _0x52cc30=_0x1d5786,{editor:_0x147efe}=this,{model:_0x1b7206}=_0x147efe,_0x3f20b1=_0x147efe[_0x52cc30(0x1ca)][_0x52cc30(0x1f3)](_0x164d30),_0x4230db=this[_0x52cc30(0x1cd)](),_0x588018=this[_0x52cc30(0x21c)]();_0x1b7206[_0x52cc30(0x1d4)][_0x52cc30(0x1d7)](_0x51be1a=>{const _0x2dfbb0=_0x52cc30,_0x4f6084=_0x1b7206[_0x2dfbb0(0x1d4)][_0x2dfbb0(0x1c6)][_0x2dfbb0(0x1dd)]();let _0x27cd16=!0x1;for(const _0x3e47d8 of _0x4f6084){if(_0x2dfbb0(0x207)!==_0x3e47d8[_0x2dfbb0(0x1f8)]||_0x2dfbb0(0x1d6)===_0x3e47d8[_0x2dfbb0(0x1c5)])continue;const _0x57cea5=_0x1b7206[_0x2dfbb0(0x1d3)](_0x3e47d8[_0x2dfbb0(0x20f)][_0x2dfbb0(0x1e0)]);for(const _0x5fbd5f of _0x57cea5[_0x2dfbb0(0x21f)]())_0x5fbd5f['is'](_0x2dfbb0(0x20c),_0x2dfbb0(0x1fd))&&(!_0x5fbd5f[_0x2dfbb0(0x1f0)](_0x2dfbb0(0x21a))&&_0x1b7206[_0x2dfbb0(0x20e)][_0x2dfbb0(0x1e3)](_0x5fbd5f,_0x2dfbb0(0x21a))&&(_0x51be1a[_0x2dfbb0(0x1d5)](_0x2dfbb0(0x21a),_0x588018,_0x5fbd5f),_0x27cd16=!0x0),!_0x5fbd5f[_0x2dfbb0(0x1f0)](_0x2dfbb0(0x203))&&_0x1b7206[_0x2dfbb0(0x20e)][_0x2dfbb0(0x1e3)](_0x5fbd5f,_0x2dfbb0(0x203))&&(_0x51be1a[_0x2dfbb0(0x1d5)](_0x2dfbb0(0x203),_0x4230db,_0x5fbd5f),_0x27cd16=!0x0));}return _0x27cd16&&_0x3f20b1[_0x2dfbb0(0x1e8)](_0x51be1a),_0x27cd16;});}[_0x1d5786(0x200)](){const _0x7849e=_0x1d5786,{editor:_0x5bd8f5}=this;_0x5bd8f5[_0x7849e(0x1ca)][_0x7849e(0x1f3)](_0x164d30)[_0x7849e(0x1c3)](_0x1460c0=>this[_0x7849e(0x1fb)](_0x1460c0));}[_0x1d5786(0x1cd)](){const _0x23d556=_0x1d5786;return this[_0x23d556(0x21b)][_0x23d556(0x214)][_0x23d556(0x1f3)](_0x23d556(0x206));}[_0x1d5786(0x21c)](){const _0x34f0d7=_0x1d5786;return this[_0x34f0d7(0x21b)][_0x34f0d7(0x214)][_0x34f0d7(0x1f3)](_0x34f0d7(0x219));}[_0x1d5786(0x1fb)]({container:_0x253943,value:_0x12bf02,digits:_0x3a25d6}){const _0x11a221=_0x1d5786,_0x49c70c=_0x253943[_0x11a221(0x1f5)](_0x11a221(0x203)),_0x320466=_0x253943[_0x11a221(0x1f5)](_0x11a221(0x21a)),_0x50c8eb=Math[_0x11a221(0x1df)](_0x12bf02)+(_0x320466??0x1)-0x1;switch(_0x49c70c){case _0x11a221(0x1d8):return function(_0x27a01d,_0x239805){const _0x301bbd=_0x11a221;return String(_0x27a01d)[_0x301bbd(0x215)](_0x239805,'0');}(_0x50c8eb,Math[_0x11a221(0x1cc)](0x2,_0x3a25d6));case _0x11a221(0x1cf):case _0x11a221(0x1d0):return N(_0x50c8eb,!0x1);case _0x11a221(0x205):case _0x11a221(0x1cb):return N(_0x50c8eb,!0x0);case _0x11a221(0x217):return X(_0x50c8eb,!0x1);case _0x11a221(0x1f9):return X(_0x50c8eb,!0x0);default:return String(_0x50c8eb);}}}function M(_0x188002,_0x2646d8){const _0x4d01a3=_0x1d5786,_0x2f98c0=_0x2646d8[_0x4d01a3(0x1ec)](_0x188002);return Array[_0x4d01a3(0x1f7)](_0x2f98c0[_0x4d01a3(0x1d1)]())[_0x4d01a3(0x1dc)](_0x1735d8=>_0x1735d8['is'](_0x4d01a3(0x20c),'ol')&&_0x1735d8[_0x4d01a3(0x220)](_0x4d01a3(0x1ed)));}function N(_0x11a00f,_0x49bb59){const _0x17c295=_0x1d5786;let _0x1c5ba4='',_0x48b8a3=_0x11a00f;for(;_0x48b8a3>0x0;){const _0x1b6cd0=(_0x48b8a3-0x1)%0x1a;_0x1c5ba4=String[_0x17c295(0x1d2)](0x61+_0x1b6cd0)+_0x1c5ba4,_0x48b8a3=Math[_0x17c295(0x1df)]((_0x48b8a3-0x1)/0x1a);}return _0x49bb59?_0x1c5ba4[_0x17c295(0x20d)]():_0x1c5ba4;}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(_0x24d814,_0x3166b6){const _0x488137=_0x1d5786;let _0x3c4ff0='',_0x2e10b3=_0x24d814;for(const {value:_0x441d69,numeral:_0x5a55b7}of V)for(;_0x2e10b3>=_0x441d69;)_0x3c4ff0+=_0x5a55b7,_0x2e10b3-=_0x441d69;return _0x3166b6?_0x3c4ff0:_0x3c4ff0[_0x488137(0x1ea)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x1f48ec,ButtonView as _0x27a437,ContextualBalloon as _0x495561,createDropdown as _0x4ef9a1}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x102679}from'ckeditor5/src/widget.js';import{Plugin as _0x3f89e0}from'ckeditor5/src/core.js';import{IconFootnote as _0x4f5474,IconListStyleDecimal as _0x4b1896,IconListStyleDecimalLeadingZero as _0x1ab99e,IconListStyleLowerLatin as _0x47b0aa,IconListStyleLowerRoman as _0x10b459,IconListStyleUpperLatin as _0x4dc73e,IconListStyleUpperRoman as _0x4b6e7f}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x14e7d6}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x4b5da4}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x3f89e0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x495561,_0x102679];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1aac39}=this,{componentFactory:_0x4142ae}=_0x1aac39['ui'];_0x1aac39['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4142ae['add']('footnotesStyle',function(_0x23c3c7){return _0x3e4d0e=>{const {t:t}=_0x3e4d0e,_0xf17ffe=_0x23c3c7['commands']['get']('footnotesStyle'),_0x59d261=_0x4ef9a1(_0x3e4d0e),{buttonView:_0x306633}=_0x59d261;return _0x59d261['class']='ck-footnotes-styles-dropdown',_0x59d261['bind']('isEnabled')['to'](_0xf17ffe,'isEnabled'),_0x306633['set']({'label':t('Footnotes\x20style'),'icon':_0x4f5474,'tooltip':!0x0}),_0x59d261['once']('change:isOpen',()=>{const _0x1c4436=function({editor:_0xcfcfdd,dropdownView:_0x2ed3b8}){const {t:t}=_0xcfcfdd['locale'],_0x4162d2=t('Footnotes\x20definitions\x20styles'),_0x3b6237=function(_0x168775){const t=_0x168775['locale']['t'],_0x4808ba=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4b1896},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1ab99e},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x10b459},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x4b6e7f},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x47b0aa},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4dc73e}];return _0x4808ba['map'](function(_0xda6bd3){const _0x580a83=_0xda6bd3['locale'];return({label:_0x3cfd51,icon:_0x4eef46,tooltip:_0x50b3dd,style:_0x43e6e0})=>{const _0xb6b1aa=_0xda6bd3['commands']['get']('footnotesStyle'),_0x19ef10=new _0x27a437(_0x580a83);return _0x19ef10['set']({'label':_0x3cfd51,'icon':_0x4eef46,'tooltip':_0x50b3dd}),_0x19ef10['bind']('isOn')['to'](_0xb6b1aa,'value',_0x58551a=>_0x58551a===_0x43e6e0),_0x19ef10['bind']('isEnabled')['to'](_0xb6b1aa,'isEnabled'),_0x19ef10['on']('execute',()=>{_0xda6bd3['execute']('footnotesStyle',{'value':_0x43e6e0}),_0xda6bd3['editing']['view']['focus']();}),_0x19ef10;};}(_0x168775));}(_0xcfcfdd),_0x4a72da=new _0x14e7d6(_0xcfcfdd['locale'],{'styleGridAriaLabel':_0x4162d2,'styleButtonViews':_0x3b6237}),_0x481d3b=_0xcfcfdd['commands']['get']('footnotesStart');return _0x4a72da['startIndexFieldView']['bind']('isEnabled')['to'](_0x481d3b),_0x4a72da['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x481d3b),_0x4a72da['on']('footnotesListStart',(_0x271e92,_0x5134f6)=>{_0xcfcfdd['execute']('footnotesStart',{'value':_0x5134f6['startIndex']});}),_0x4a72da['delegate']('execute')['to'](_0x2ed3b8),_0x4a72da;}({'editor':_0x23c3c7,'dropdownView':_0x59d261});_0x59d261['panelView']['children']['add'](_0x1c4436);}),_0x59d261;};}(_0x1aac39));}['afterInit'](){const {editor:_0x19d8cd}=this,{t:t}=_0x19d8cd['locale'],_0x184f24=_0x19d8cd['plugins']['get'](_0x102679),{defaultPositions:_0x3abe6c}=_0x1f48ec;_0x184f24['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x19d8cd['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1fcafc=>{let _0xa556cd=_0x1fcafc['getFirstPosition']()?.['parent'];return _0xa556cd?.['is']('$text')&&(_0xa556cd=_0xa556cd['parent']),_0xa556cd?.['is']('element')?_0xa556cd['findAncestor'](_0x4b5da4):null;},'positions':[_0x3abe6c['southArrowNorth'],_0x3abe6c['southArrowNorthMiddleWest'],_0x3abe6c['southArrowNorthMiddleEast'],_0x3abe6c['southArrowNorthWest'],_0x3abe6c['southArrowNorthEast'],_0x3abe6c['northArrowSouth'],_0x3abe6c['northArrowSouthMiddleWest'],_0x3abe6c['northArrowSouthMiddleEast'],_0x3abe6c['northArrowSouthWest'],_0x3abe6c['northArrowSouthEast'],_0x3abe6c['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x27239c,View as _0x352b75,ViewCollection as _0x18efdb,FocusCycler as _0x5567f2,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 _0x352b75{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x18efdb();['focusCycler'];constructor(_0x5e3bb3,{styleButtonViews:_0x315a87,styleGridAriaLabel:_0x5a2281}){super(_0x5e3bb3),(this['focusCycler']=new _0x5567f2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x315a87,_0x5a2281),[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 _0x5a0436 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5a0436['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 _0x307fb1=_0x4a09f5=>_0x4a09f5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x307fb1),this['keystrokes']['set']('arrowleft',_0x307fb1),this['keystrokes']['set']('arrowup',_0x307fb1),this['keystrokes']['set']('arrowdown',_0x307fb1);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5b1ecd,_0x20f520){const _0x3e4ecc=new _0x352b75(this['locale']);return _0x3e4ecc['children']=_0x3e4ecc['createCollection'](),_0x3e4ecc['children']['addMany'](_0x5b1ecd),_0x3e4ecc['setTemplate']({'tag':'div','attributes':{'aria-label':_0x20f520,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3e4ecc['children']}),_0x3e4ecc['children']['delegate']('execute')['to'](this),_0x3e4ecc['focus']=function(){for(const _0x4c09f4 of this['children'])if(_0x4c09f4 instanceof _0x27239c&&_0x4c09f4['isOn'])return void _0x4c09f4['focus']();this['children']['first']['focus']();},_0x3e4ecc['focusTracker']=new ot(),_0x3e4ecc['keystrokes']=new rt(),_0x3e4ecc['render'](),_0x3e4ecc['keystrokes']['listenTo'](_0x3e4ecc['element']),this['children']['add'](_0x3e4ecc),_0x3e4ecc;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5ea82b=this['_createStartIndexPropertyView'](),_0x50eb28=[_0x5ea82b],_0x418b7b=new st(this['locale'],_0x50eb28);return _0x418b7b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x418b7b['buttonView']['bind']('isEnabled')['toMany'](_0x50eb28,'isEnabled',(..._0x5e70c6)=>_0x5e70c6['some'](_0x2fe64f=>_0x2fe64f)),_0x418b7b['buttonView']['on']('change:isEnabled',(_0x513f40,_0x190031,_0x22231e)=>{_0x22231e||(_0x418b7b['isCollapsed']=!0x0);}),this['children']['add'](_0x418b7b),[_0x5ea82b,_0x418b7b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x58e347=new it(this['locale'],et);return _0x58e347['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x58e347['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x58e347['fieldView']['on']('input',()=>{const _0x352aee=_0x58e347['fieldView']['element'],_0x2eb707=_0x352aee['valueAsNumber'];Number['isNaN'](_0x2eb707)?_0x58e347['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x352aee['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2eb707}):_0x58e347['errorText']=t(_0x2eb707<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x58e347;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3fc590=_0x4e5b;function _0x4e5b(_0x92fd54,_0x32efbc){var _0x409e56=_0x409e();return _0x4e5b=function(_0x4e5be2,_0x4dfea0){_0x4e5be2=_0x4e5be2-0x1ef;var _0x1a9b1e=_0x409e56[_0x4e5be2];return _0x1a9b1e;},_0x4e5b(_0x92fd54,_0x32efbc);}(function(_0x2916ad,_0x3a7fff){var _0x56999b=_0x4e5b,_0x110138=_0x2916ad();while(!![]){try{var _0x1d37d1=-parseInt(_0x56999b(0x1fb))/0x1*(parseInt(_0x56999b(0x1f8))/0x2)+parseInt(_0x56999b(0x1f9))/0x3+parseInt(_0x56999b(0x1f0))/0x4+-parseInt(_0x56999b(0x1f1))/0x5+parseInt(_0x56999b(0x1f5))/0x6+parseInt(_0x56999b(0x1f7))/0x7+-parseInt(_0x56999b(0x1f6))/0x8*(parseInt(_0x56999b(0x1fa))/0x9);if(_0x1d37d1===_0x3a7fff)break;else _0x110138['push'](_0x110138['shift']());}catch(_0x4241ff){_0x110138['push'](_0x110138['shift']());}}}(_0x409e,0xb7eca));import{Plugin as _0x361da7}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x4809cb}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x62363f}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x361da7{static get[_0x3fc590(0x1fc)](){var _0x53d35d=_0x3fc590;return _0x53d35d(0x1ef);}static get[_0x3fc590(0x1f2)](){return[_0x4809cb,_0x62363f];}static get[_0x3fc590(0x1f4)](){return!0x0;}static get[_0x3fc590(0x1f3)](){return!0x0;}}function _0x409e(){var _0x330cf5=['22045800JXSfSX','5278679LxRyBx','171388kIPrgF','3070182NtGQJD','9TzWvUm','6QqoYlu','pluginName','FootnotesProperties','5087808qMxiaF','1648130kYAysX','requires','isPremiumPlugin','isOfficialPlugin','7820556sextcu'];_0x409e=function(){return _0x330cf5;};return _0x409e();}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x65b0(){const _0x44ddb8=['4490bFGeKV','init','unshift','_updateFootnotesCounters','has','reference','definition','registerPostFixer','createPositionAt','singleton','getFootnotesFormatter','createElement','1827636JRtpsn','min','_footnoteRefsTracker','parent','childCount','append','push','isPremiumPlugin','findIndex','move','_handleFootnotesDefinitionsObjectChanges','_handleMovedFootnoteReference','2555780SOxAGt','config','find','editor','getFootnotes','_handleInsertedFootnoteReference','footnotes.multiBlock','footnoteInlineContent','remove','_handleFootnotesDefinitionsObjectSync','getFootnote','footnoteId','paragraph','_updateFootnoteRefCounter','330qbIjtm','get','getChanges','FootnotesTracker','_handleFootnoteDefinitionsChanges','_footnoteDefsContainerTracker','indexOf','_insertEmptyFootnotesDefinitionsContainer','4777816jVdwqU','_ensureFootnotesReferencesHaveProperOrder','after','end','createRangeOn','from','setFootnoteFormatter','getFootnotesDefinitionsObjectElement','_footnoteDefsTracker','change:data','footnotesDefinitions','_footnoteFormatter','_footnotes','footnoteRef','document','rootName','model','getAttribute','map','before','3228cKdlaM','set','_handleRemoveFootnoteReferenceById','setAttribute','reset','isOfficialPlugin','_handleFootnoteReferencesChanges','createPositionBefore','length','_ensureFootnotesDefinitionsContainerExists','footnoteDefinition','low','enqueueChange','differ','5714401qrkLDp','4yWLAZb','_footnotesDefinitions','some','splice','high','9651015dePfGh','root','footnoteCounter','insert','listenTo','getRootNames','pluginName','createRangeIn','compareWith','_sortFootnoteDefinitions','add','getChildren','isEqual','$graveyard'];_0x65b0=function(){return _0x44ddb8;};return _0x65b0();}const _0x31ad46=_0x236b;(function(_0x264dd0,_0x23a354){const _0x868a57=_0x236b,_0x3aa754=_0x264dd0();while(!![]){try{const _0x587951=-parseInt(_0x868a57(0x10a))/0x1*(-parseInt(_0x868a57(0x11d))/0x2)+-parseInt(_0x868a57(0x129))/0x3+parseInt(_0x868a57(0x135))/0x4+parseInt(_0x868a57(0xdf))/0x5*(parseInt(_0x868a57(0xfb))/0x6)+parseInt(_0x868a57(0x109))/0x7+parseInt(_0x868a57(0xe7))/0x8+-parseInt(_0x868a57(0x10f))/0x9;if(_0x587951===_0x23a354)break;else _0x3aa754['push'](_0x3aa754['shift']());}catch(_0x5c7d2b){_0x3aa754['push'](_0x3aa754['shift']());}}}(_0x65b0,0x656e0));import{Plugin as _0x2bd76e}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x4f2bd5}from'./modelelementtracker.js';export class FootnotesTracker extends _0x2bd76e{[_0x31ad46(0xf3)]=[];[_0x31ad46(0x10b)]=null;[_0x31ad46(0xf2)]=null;[_0x31ad46(0xe4)];[_0x31ad46(0x12b)];[_0x31ad46(0xef)];static get[_0x31ad46(0x115)](){const _0x31d3d3=_0x31ad46;return _0x31d3d3(0xe2);}static get[_0x31ad46(0x100)](){return!0x0;}static get[_0x31ad46(0x130)](){return!0x0;}constructor(_0x26f069){const _0x3140ad=_0x31ad46;super(_0x26f069),this[_0x3140ad(0xe4)]=new _0x4f2bd5(this[_0x3140ad(0x138)][_0x3140ad(0xf7)],{'elementName':_0x3140ad(0xf1),'getElementKey':()=>_0x3140ad(0x126)}),this[_0x3140ad(0x12b)]=new _0x4f2bd5(this[_0x3140ad(0x138)][_0x3140ad(0xf7)],{'elementName':_0x3140ad(0xf4),'getElementKey':_0x18149a=>_0x18149a[_0x3140ad(0xf8)](_0x3140ad(0x140))}),this[_0x3140ad(0xef)]=new _0x4f2bd5(this[_0x3140ad(0x138)][_0x3140ad(0xf7)],{'elementName':_0x3140ad(0x105),'getElementKey':_0x14a349=>_0x14a349[_0x3140ad(0xf8)](_0x3140ad(0x140))});}[_0x31ad46(0x11e)](){const _0x14c130=_0x31ad46,{editor:_0x37b966}=this,{model:_0xc2dd30,data:_0x5f5aed}=_0x37b966;_0xc2dd30[_0x14c130(0xf5)][_0x14c130(0x124)](_0x1040f5=>{const _0x3965ea=_0x14c130,_0x386bed=_0xc2dd30[_0x3965ea(0xf5)][_0x3965ea(0x108)][_0x3965ea(0xe1)]();let _0x4122bd=!0x1;return this[_0x3965ea(0x133)](_0x1040f5,_0x386bed)&&(_0x4122bd=!0x0),this[_0x3965ea(0xe3)](_0x1040f5,_0x386bed)&&(_0x4122bd=!0x0),this[_0x3965ea(0x101)](_0x1040f5,_0x386bed)&&(_0x4122bd=!0x0),this[_0x3965ea(0xe8)](_0x1040f5)&&(_0x4122bd=!0x0),this[_0x3965ea(0x13e)](_0x1040f5)&&(_0x4122bd=!0x0),this[_0x3965ea(0x118)](_0x1040f5)&&(_0x4122bd=!0x0),_0x4122bd;}),this[_0x14c130(0x113)](_0xc2dd30[_0x14c130(0xf5)],_0x14c130(0xf0),()=>{const _0x1e89bc=_0x14c130;_0xc2dd30[_0x1e89bc(0x107)]({'isUndoable':!0x1},_0x91aa73=>{const _0x2f5ffd=_0x1e89bc;this[_0x2f5ffd(0x104)](_0x91aa73);});},{'priority':_0x14c130(0x106)}),this[_0x14c130(0x113)](_0x5f5aed,_0x14c130(0xfc),()=>{const _0x5ad769=_0x14c130;this[_0x5ad769(0xf3)]=[],this[_0x5ad769(0xe4)][_0x5ad769(0xff)](),this[_0x5ad769(0x12b)][_0x5ad769(0xff)](),this[_0x5ad769(0xef)][_0x5ad769(0xff)]();},{'priority':_0x14c130(0x10e)});}[_0x31ad46(0xee)](){const _0x3a5327=_0x31ad46;return this[_0x3a5327(0x10b)];}[_0x31ad46(0x13f)](_0x313387){const _0x40c50f=_0x31ad46;return this[_0x40c50f(0xf3)][_0x40c50f(0x137)](_0x346ff1=>_0x346ff1['id']===_0x313387)||null;}[_0x31ad46(0x139)](){const _0x55f04f=_0x31ad46;return Array[_0x55f04f(0xec)](this[_0x55f04f(0xf3)]);}[_0x31ad46(0x127)](){const _0x471f1c=_0x31ad46;return this[_0x471f1c(0xf2)];}[_0x31ad46(0xed)](_0x3534b4){const _0x2062ba=_0x31ad46;this[_0x2062ba(0xf2)]=_0x3534b4;}[_0x31ad46(0x120)](_0x378736,_0x207589=0x0){const _0x55ca98=_0x31ad46;let _0x3cf71f=!0x1;for(let _0x3fc3c2=_0x207589;_0x3fc3c2<this[_0x55ca98(0xf3)][_0x55ca98(0x103)];_0x3fc3c2++)this[_0x55ca98(0xde)](_0x378736,_0x3fc3c2)&&(_0x3cf71f=!0x0);return _0x3cf71f;}[_0x31ad46(0xe6)](_0x49bb5b,_0x2d0f5c){const _0x20e436=_0x31ad46,_0x7ada54=_0x49bb5b[_0x20e436(0x128)](_0x20e436(0xf1),{});return _0x49bb5b[_0x20e436(0x12e)](_0x7ada54,_0x2d0f5c),this[_0x20e436(0x10b)]=_0x7ada54,_0x7ada54;}[_0x31ad46(0x104)](_0x4da3d8){const _0x34e17d=_0x31ad46;if(!this[_0x34e17d(0xf3)][_0x34e17d(0x103)]||this[_0x34e17d(0x10b)])return;const _0x2e4ede=this[_0x34e17d(0xf3)][0x0][_0x34e17d(0x122)][_0x34e17d(0x110)],_0x3eab94=this[_0x34e17d(0xe6)](_0x4da3d8,_0x2e4ede);for(const _0x1604f1 of this[_0x34e17d(0xf3)])_0x1604f1[_0x34e17d(0x123)][_0x34e17d(0x12c)]||_0x4da3d8[_0x34e17d(0x112)](_0x1604f1[_0x34e17d(0x123)],_0x3eab94,_0x34e17d(0xea));this[_0x34e17d(0x120)](_0x4da3d8);}[_0x31ad46(0x133)](_0x11863c,_0x212a98){const _0x50f95f=_0x31ad46;let _0x37beec=!0x1;const {inserted:_0x23e548,removed:_0x41ded2,moved:_0x11c77c}=this[_0x50f95f(0xe4)][_0x50f95f(0xe1)](_0x212a98);if(_0x11c77c[_0x50f95f(0x103)]&&(this[_0x50f95f(0x10b)]=_0x11c77c[0x0]),_0x23e548[_0x50f95f(0x103)]){if(_0x23e548[_0x50f95f(0x103)]>0x1||this[_0x50f95f(0x10b)]&&_0x23e548[_0x50f95f(0x10c)](_0x271f0=>_0x271f0!==this[_0x50f95f(0x10b)])){const _0x4a1186=_0x11863c[_0x50f95f(0x128)](_0x50f95f(0xf1),{}),_0x10c464=[];this[_0x50f95f(0x10b)]&&_0x10c464[_0x50f95f(0x12f)](this[_0x50f95f(0x10b)]),_0x10c464[_0x50f95f(0x12f)](..._0x23e548),_0x11863c[_0x50f95f(0x112)](_0x4a1186,_0x10c464[0x0],_0x50f95f(0xfa));for(const _0x24747d of _0x10c464)_0x11863c[_0x50f95f(0x132)](_0x11863c[_0x50f95f(0x116)](_0x24747d),_0x11863c[_0x50f95f(0x125)](_0x4a1186,_0x50f95f(0xea))),_0x11863c[_0x50f95f(0x13d)](_0x24747d);this[_0x50f95f(0x10b)]=_0x4a1186,this[_0x50f95f(0x120)](_0x11863c),_0x37beec=!0x0;}else this[_0x50f95f(0x10b)]=_0x23e548[0x0];}if(_0x41ded2[_0x50f95f(0x103)]&&_0x50f95f(0x11c)===this[_0x50f95f(0x10b)]?.[_0x50f95f(0x110)][_0x50f95f(0xf6)]){for(const _0xeceb6b of this[_0x50f95f(0xf3)])_0x11863c[_0x50f95f(0x13d)](_0xeceb6b[_0x50f95f(0x122)]),_0x37beec=!0x0;this[_0x50f95f(0xf3)]=[],this[_0x50f95f(0x10b)]=null;}return _0x37beec;}[_0x31ad46(0xe3)](_0x35b3a3,_0x59a728){const _0x469217=_0x31ad46;let _0x39be87=!0x1;const _0x24b646=this[_0x469217(0x138)][_0x469217(0x136)][_0x469217(0xe0)](_0x469217(0x13b)),{inserted:_0x26d206,moved:_0xec6fd5}=this[_0x469217(0xef)][_0x469217(0xe1)](_0x59a728);for(const _0x275241 of[..._0xec6fd5,..._0x26d206]){const _0x503a55=_0x275241[_0x469217(0xf8)](_0x469217(0x140)),_0x6bfa3a=this[_0x469217(0x13f)](_0x503a55);_0x6bfa3a&&(_0x6bfa3a[_0x469217(0x123)]=_0x275241),_(_0x35b3a3,_0x24b646,_0x275241)&&(_0x39be87=!0x0);}return _0x39be87;}[_0x31ad46(0x101)](_0x166f57,_0x72e9c6){const _0x4a6d3e=_0x31ad46;let _0x54b5a1=!0x1;const {removed:_0x12b40d,inserted:_0x371002,moved:_0x9ea3ac}=this[_0x4a6d3e(0x12b)][_0x4a6d3e(0xe1)](_0x72e9c6);for(const _0x2675f3 of _0x12b40d)this[_0x4a6d3e(0xfd)](_0x166f57,_0x2675f3)&&(_0x54b5a1=!0x0);for(const _0x76270d of _0x371002)this[_0x4a6d3e(0x13a)](_0x166f57,_0x76270d)&&(_0x54b5a1=!0x0);for(const _0x52fd95 of _0x9ea3ac)this[_0x4a6d3e(0x134)](_0x166f57,_0x52fd95)&&(_0x54b5a1=!0x0);return _0x54b5a1;}[_0x31ad46(0x13e)](_0x2f4506){const _0x3396d2=_0x31ad46;if(!this[_0x3396d2(0x10b)])return!0x1;let _0x51e48b=!0x1;if(this[_0x3396d2(0x10b)][_0x3396d2(0x12d)]!==this[_0x3396d2(0xf3)][_0x3396d2(0x103)]){const _0x40eba4=[];for(const _0x403430 of this[_0x3396d2(0x10b)][_0x3396d2(0x11a)]()){const _0xb1c1e7=_0x403430[_0x3396d2(0xf8)](_0x3396d2(0x140));this[_0x3396d2(0x13f)](_0xb1c1e7)||(_0x40eba4[_0x3396d2(0x11f)](_0x403430),_0x51e48b=!0x0);}for(const _0x84d5df of _0x40eba4)_0x2f4506[_0x3396d2(0x13d)](_0x84d5df);}const _0x16fc35=new Set(),_0xfeefe=[];for(const _0x18fb4d of this[_0x3396d2(0x10b)][_0x3396d2(0x11a)]()){const _0x1fbe2c=_0x18fb4d[_0x3396d2(0xf8)](_0x3396d2(0x140));_0x16fc35[_0x3396d2(0x121)](_0x1fbe2c)?(_0xfeefe[_0x3396d2(0x11f)](_0x18fb4d),_0x51e48b=!0x0):_0x16fc35[_0x3396d2(0x119)](_0x1fbe2c);}for(const _0x5ad1d0 of _0xfeefe)_0x2f4506[_0x3396d2(0x13d)](_0x5ad1d0);return this[_0x3396d2(0x10b)][_0x3396d2(0x12d)]||(_0x2f4506[_0x3396d2(0x13d)](this[_0x3396d2(0x10b)]),this[_0x3396d2(0x10b)]=null,_0x51e48b=!0x0),_0x51e48b;}[_0x31ad46(0x13a)](_0x58821f,_0x5c46a2){const _0x416731=_0x31ad46;if(this[_0x416731(0xf3)][_0x416731(0x137)](_0x2c75e2=>_0x2c75e2[_0x416731(0x122)]===_0x5c46a2))return!0x1;let _0x57e41a=!0x1;const _0x13bd87=_0x5c46a2[_0x416731(0xf8)](_0x416731(0x140)),_0x8e7eea=this[_0x416731(0xf3)][_0x416731(0x131)](_0x14d351=>_0x14d351['id']===_0x13bd87);-0x1!==_0x8e7eea&&(_0x58821f[_0x416731(0x13d)](this[_0x416731(0xf3)][_0x8e7eea][_0x416731(0x122)]),this[_0x416731(0xf3)][_0x416731(0x10d)](_0x8e7eea,0x1),_0x57e41a=!0x0);let _0x1d6311=this[_0x416731(0x10b)]?function(_0x1c978e,_0x14300d){const _0xfea7c1=_0x416731;for(const _0x5537ff of _0x1c978e[_0xfea7c1(0x11a)]())if(_0x5537ff[_0xfea7c1(0xf8)](_0xfea7c1(0x140))===_0x14300d)return _0x5537ff;return null;}(this[_0x416731(0x10b)],_0x13bd87):null;_0x1d6311||(_0x1d6311=_0x58821f[_0x416731(0x128)](_0x416731(0x105),{'footnoteId':_0x13bd87}),this[_0x416731(0x10b)]&&(_0x58821f[_0x416731(0x112)](_0x1d6311,this[_0x416731(0x10b)],_0x416731(0xea)),_0x57e41a=!0x0));const _0x796f8f={'id':_0x13bd87,'reference':_0x5c46a2,'definition':_0x1d6311},_0x437e28=I(this[_0x416731(0x138)][_0x416731(0xf7)],this[_0x416731(0xf3)],_0x5c46a2);this[_0x416731(0xf3)][_0x416731(0x10d)](_0x437e28,0x0,_0x796f8f);let _0x10d252=_0x437e28;return-0x1!==_0x8e7eea&&(_0x10d252=Math[_0x416731(0x12a)](_0x437e28,_0x8e7eea)),this[_0x416731(0x120)](_0x58821f,_0x10d252)&&(_0x57e41a=!0x0),_0x57e41a;}[_0x31ad46(0xfd)](_0x2dc3f2,_0x2fef74){const _0x3620f8=_0x31ad46,_0x1a76c6=this[_0x3620f8(0xf3)][_0x3620f8(0x131)](_0x2f22b7=>_0x2f22b7['id']===_0x2fef74);if(-0x1===_0x1a76c6)return!0x1;let _0x181665=!0x1;const _0x2eac43=this[_0x3620f8(0xf3)][_0x1a76c6];return _0x3620f8(0x11c)!==_0x2eac43[_0x3620f8(0x123)][_0x3620f8(0x110)][_0x3620f8(0xf6)]&&(_0x2dc3f2[_0x3620f8(0x13d)](_0x2eac43[_0x3620f8(0x123)]),_0x181665=!0x0),this[_0x3620f8(0xf3)][_0x3620f8(0x10d)](_0x1a76c6,0x1),this[_0x3620f8(0x120)](_0x2dc3f2,_0x1a76c6)&&(_0x181665=!0x0),_0x181665;}[_0x31ad46(0x134)](_0x37c763,_0x556af8){const _0x4d5991=_0x31ad46,_0x32955a=_0x556af8[_0x4d5991(0xf8)](_0x4d5991(0x140)),_0x414279=this[_0x4d5991(0xf3)][_0x4d5991(0x131)](_0x13dcd3=>_0x13dcd3['id']===_0x32955a),_0x583d39=this[_0x4d5991(0xf3)][_0x414279];let _0x243429=!0x1;_0x583d39[_0x4d5991(0x122)]=_0x556af8,this[_0x4d5991(0xf3)][_0x4d5991(0x10d)](_0x414279,0x1);const _0x4348de=I(this[_0x4d5991(0x138)][_0x4d5991(0xf7)],this[_0x4d5991(0xf3)],_0x556af8);return this[_0x4d5991(0xf3)][_0x4d5991(0x10d)](_0x4348de,0x0,_0x583d39),this[_0x4d5991(0x120)](_0x37c763,Math[_0x4d5991(0x12a)](_0x414279,_0x4348de))&&(_0x243429=!0x0),_0x243429;}[_0x31ad46(0xde)](_0x35d7db,_0x404768){const _0x559867=_0x31ad46;if(!this[_0x559867(0x10b)])return!0x1;const _0x477c28=this[_0x559867(0xf3)][_0x404768];let _0x5b8c05;return _0x5b8c05=this[_0x559867(0xf2)]?this[_0x559867(0xf2)]({'footnote':_0x477c28,'container':this[_0x559867(0x10b)],'digits':String(this[_0x559867(0xf3)][_0x559867(0x103)])[_0x559867(0x103)],'value':_0x404768+0x1}):String(_0x404768+0x1),_0x477c28[_0x559867(0x122)][_0x559867(0xf8)](_0x559867(0x111))!=_0x5b8c05&&(_0x35d7db[_0x559867(0xfe)](_0x559867(0x111),_0x5b8c05,_0x477c28[_0x559867(0x122)]),!0x0);}[_0x31ad46(0x118)](_0x25b095){const _0x192820=_0x31ad46;if(!this[_0x192820(0x10b)]||this[_0x192820(0xf3)][_0x192820(0x103)]<0x2)return!0x1;if(function(_0x469b5,_0xbc9d86){const _0x31d097=_0x192820;if(_0x469b5[_0x31d097(0x103)]!==_0xbc9d86[_0x31d097(0x103)])return!0x1;for(let _0x34eed7=0x0;_0x34eed7<_0x469b5[_0x31d097(0x103)];_0x34eed7++)if(_0x469b5[_0x34eed7]!==_0xbc9d86[_0x34eed7])return!0x1;return!0x0;}(this[_0x192820(0xf3)][_0x192820(0xf9)](_0x42cc3c=>_0x42cc3c['id']),Array[_0x192820(0xec)](this[_0x192820(0x10b)][_0x192820(0x11a)]())[_0x192820(0xf9)](_0x3fd95b=>_0x3fd95b[_0x192820(0xf8)](_0x192820(0x140)))))return!0x1;let _0x44cf89=!0x1;for(let _0x4e90d1=0x0;_0x4e90d1<this[_0x192820(0xf3)][_0x192820(0x103)];_0x4e90d1++){const _0x1c5c84=this[_0x192820(0xf3)][_0x4e90d1],_0x546b51=_0x25b095[_0x192820(0x102)](_0x1c5c84[_0x192820(0x123)]),_0x98081=_0x25b095[_0x192820(0x125)](this[_0x192820(0x10b)],_0x4e90d1);_0x546b51[_0x192820(0x11b)](_0x98081)||(_0x25b095[_0x192820(0x132)](_0x25b095[_0x192820(0xeb)](_0x1c5c84[_0x192820(0x123)]),_0x98081),_0x44cf89=!0x0);}return _0x44cf89;}[_0x31ad46(0xe8)](_0x2113b4){const _0x18a8a5=_0x31ad46;if(!this[_0x18a8a5(0xf3)][_0x18a8a5(0x103)])return!0x1;const {model:_0x36dc43}=this[_0x18a8a5(0x138)];let _0x38fd05=!0x1;for(let _0x39f91a=0x0;_0x39f91a<this[_0x18a8a5(0xf3)][_0x18a8a5(0x103)]-0x1;_0x39f91a++){const _0x1a7523=this[_0x18a8a5(0xf3)][_0x39f91a],_0x2dfa3d=this[_0x18a8a5(0xf3)][_0x39f91a+0x1],_0x13b0d3=_0x36dc43[_0x18a8a5(0x102)](_0x1a7523[_0x18a8a5(0x122)]),_0x151a0f=_0x36dc43[_0x18a8a5(0x102)](_0x2dfa3d[_0x18a8a5(0x122)]);_0x18a8a5(0xe9)===_0x13b0d3[_0x18a8a5(0x117)](_0x151a0f)&&(this[_0x18a8a5(0x134)](_0x2113b4,_0x1a7523[_0x18a8a5(0x122)]),_0x39f91a=-0x1,_0x38fd05=!0x0);}return _0x38fd05;}}function _(_0x25cf10,_0x255af3,_0x2e60a7){const _0x51aab0=_0x31ad46;if(_0x2e60a7[_0x51aab0(0x12d)])return!0x1;const _0x56186e=_0x255af3?_0x51aab0(0xdd):_0x51aab0(0x13c);return _0x25cf10[_0x51aab0(0x112)](_0x25cf10[_0x51aab0(0x128)](_0x56186e),_0x2e60a7),!0x0;}function _0x236b(_0x31c29c,_0x18005e){const _0x236b40=_0x65b0();return _0x236b=function(_0x1b623,_0x54e977){_0x1b623=_0x1b623-0xdd;let _0x301b2d=_0x236b40[_0x1b623];return _0x301b2d;},_0x236b(_0x31c29c,_0x18005e);}function I(_0x159d9d,_0x26d0f3,_0x355c89){const _0x232ce6=_0x31ad46;if(0x0===_0x26d0f3[_0x232ce6(0x103)])return 0x0;const _0x183ad8=_0x159d9d[_0x232ce6(0x102)](_0x355c89);for(let _0x4e5530=0x0;_0x4e5530<_0x26d0f3[_0x232ce6(0x103)];_0x4e5530++){const _0x4dfec7=_0x26d0f3[_0x4e5530],_0x2d29a5=_0x159d9d[_0x232ce6(0x102)](_0x4dfec7[_0x232ce6(0x122)]);if(_0x232ce6(0xfa)===_0x183ad8[_0x232ce6(0x117)](_0x2d29a5))return _0x4e5530;}const _0x5367f1=_0x355c89[_0x232ce6(0x110)];let _0x5a88e7=-0x1;for(let _0x8a20f8=_0x26d0f3[_0x232ce6(0x103)]-0x1;_0x8a20f8>=0x0;_0x8a20f8--)if(_0x26d0f3[_0x8a20f8][_0x232ce6(0x122)][_0x232ce6(0x110)]===_0x5367f1){_0x5a88e7=_0x8a20f8;break;}if(-0x1!==_0x5a88e7)return _0x5a88e7+0x1;const _0x1c9b3c=_0x159d9d[_0x232ce6(0xf5)][_0x232ce6(0x114)](),_0x9f9ef=_0x1c9b3c[_0x232ce6(0xe5)](_0x5367f1[_0x232ce6(0xf6)]),_0x7a3eee=_0x1c9b3c[_0x9f9ef+0x1];if(_0x7a3eee){for(let _0x318409=0x0;_0x318409<_0x26d0f3[_0x232ce6(0x103)];_0x318409++)if(_0x26d0f3[_0x318409][_0x232ce6(0x122)][_0x232ce6(0x110)][_0x232ce6(0xf6)]===_0x7a3eee)return _0x318409;}return _0x26d0f3[_0x232ce6(0x103)];}
|
|
23
|
+
const _0xb524f1=_0x2e2a;(function(_0x444b6f,_0x302077){const _0x2fb727=_0x2e2a,_0x1f039c=_0x444b6f();while(!![]){try{const _0x5bf210=parseInt(_0x2fb727(0x1b5))/0x1+parseInt(_0x2fb727(0x17f))/0x2+-parseInt(_0x2fb727(0x1ae))/0x3+-parseInt(_0x2fb727(0x194))/0x4+parseInt(_0x2fb727(0x189))/0x5*(parseInt(_0x2fb727(0x1a4))/0x6)+-parseInt(_0x2fb727(0x1a0))/0x7*(-parseInt(_0x2fb727(0x1b0))/0x8)+-parseInt(_0x2fb727(0x1c3))/0x9;if(_0x5bf210===_0x302077)break;else _0x1f039c['push'](_0x1f039c['shift']());}catch(_0xeec12a){_0x1f039c['push'](_0x1f039c['shift']());}}}(_0x301b,0x6da50));import{Plugin as _0x5d894e}from'ckeditor5/src/core.js';function _0x2e2a(_0x40381e,_0x8a0fff){const _0x301b64=_0x301b();return _0x2e2a=function(_0x2e2adb,_0x2ca198){_0x2e2adb=_0x2e2adb-0x17a;let _0x1a232c=_0x301b64[_0x2e2adb];return _0x1a232c;},_0x2e2a(_0x40381e,_0x8a0fff);}import{ModelElementTracker as _0xcde292}from'./modelelementtracker.js';function _0x301b(){const _0x17ee03=['_updateFootnotesCounters','enqueueChange','splice','get','model','min','_ensureFootnotesReferencesHaveProperOrder','move','childCount','change:data','setFootnoteFormatter','isPremiumPlugin','footnoteInlineContent','remove','end','add','isOfficialPlugin','_footnoteRefsTracker','_footnotesDefinitions','getChanges','low','_footnoteDefsTracker','_handleFootnoteDefinitionsChanges','376368xaGwMR','compareWith','createRangeOn','_updateFootnoteRefCounter','unshift','_footnotes','_handleFootnotesDefinitionsObjectSync','set','getChildren','$graveyard','273510AVrheI','document','footnotes.multiBlock','push','reset','definition','_handleFootnoteReferencesChanges','createElement','parent','before','differ','815400ZsHGhz','after','getFootnotes','high','getFootnotesDefinitionsObjectElement','createPositionAt','_handleInsertedFootnoteReference','footnoteId','_ensureFootnotesDefinitionsContainerExists','getFootnote','_footnoteFormatter','footnoteRef','1931258ZUdIhW','_handleRemoveFootnoteReferenceById','append','singleton','24zFcthq','config','footnotesDefinitions','FootnotesTracker','map','from','isEqual','insert','createPositionBefore','_footnoteDefsContainerTracker','300027ZPzLxp','_handleMovedFootnoteReference','8fAPUKk','setAttribute','editor','getFootnotesFormatter','_handleFootnotesDefinitionsObjectChanges','193985ycmBbl','createRangeIn','getAttribute','root','paragraph','reference','getRootNames','length','registerPostFixer','rootName','init','some','_sortFootnoteDefinitions','_insertEmptyFootnotesDefinitionsContainer','1115172zkRJbD','pluginName','footnoteDefinition','has','indexOf','footnoteCounter','listenTo','findIndex','find'];_0x301b=function(){return _0x17ee03;};return _0x301b();}export class FootnotesTracker extends _0x5d894e{[_0xb524f1(0x184)]=[];[_0xb524f1(0x17a)]=null;[_0xb524f1(0x19e)]=null;[_0xb524f1(0x1ad)];[_0xb524f1(0x1dd)];[_0xb524f1(0x17d)];static get[_0xb524f1(0x1c4)](){const _0x99fef4=_0xb524f1;return _0x99fef4(0x1a7);}static get[_0xb524f1(0x1dc)](){return!0x0;}static get[_0xb524f1(0x1d7)](){return!0x0;}constructor(_0x3d7e05){const _0x168461=_0xb524f1;super(_0x3d7e05),this[_0x168461(0x1ad)]=new _0xcde292(this[_0x168461(0x1b2)][_0x168461(0x1d0)],{'elementName':_0x168461(0x1a6),'getElementKey':()=>_0x168461(0x1a3)}),this[_0x168461(0x1dd)]=new _0xcde292(this[_0x168461(0x1b2)][_0x168461(0x1d0)],{'elementName':_0x168461(0x19f),'getElementKey':_0x257871=>_0x257871[_0x168461(0x1b7)](_0x168461(0x19b))}),this[_0x168461(0x17d)]=new _0xcde292(this[_0x168461(0x1b2)][_0x168461(0x1d0)],{'elementName':_0x168461(0x1c5),'getElementKey':_0x2e8e53=>_0x2e8e53[_0x168461(0x1b7)](_0x168461(0x19b))});}[_0xb524f1(0x1bf)](){const _0x1f9fe6=_0xb524f1,{editor:_0x40de49}=this,{model:_0x2f6da6,data:_0x438af1}=_0x40de49;_0x2f6da6[_0x1f9fe6(0x18a)][_0x1f9fe6(0x1bd)](_0x388efe=>{const _0x3d503b=_0x1f9fe6,_0x20f431=_0x2f6da6[_0x3d503b(0x18a)][_0x3d503b(0x193)][_0x3d503b(0x17b)]();let _0x40620f=!0x1;return this[_0x3d503b(0x1b4)](_0x388efe,_0x20f431)&&(_0x40620f=!0x0),this[_0x3d503b(0x17e)](_0x388efe,_0x20f431)&&(_0x40620f=!0x0),this[_0x3d503b(0x18f)](_0x388efe,_0x20f431)&&(_0x40620f=!0x0),this[_0x3d503b(0x1d2)](_0x388efe)&&(_0x40620f=!0x0),this[_0x3d503b(0x185)](_0x388efe)&&(_0x40620f=!0x0),this[_0x3d503b(0x1c1)](_0x388efe)&&(_0x40620f=!0x0),_0x40620f;}),this[_0x1f9fe6(0x1c9)](_0x2f6da6[_0x1f9fe6(0x18a)],_0x1f9fe6(0x1d5),()=>{const _0x5614ee=_0x1f9fe6;_0x2f6da6[_0x5614ee(0x1cd)]({'isUndoable':!0x1},_0x4f8a15=>{const _0x1afa11=_0x5614ee;this[_0x1afa11(0x19c)](_0x4f8a15);});},{'priority':_0x1f9fe6(0x17c)}),this[_0x1f9fe6(0x1c9)](_0x438af1,_0x1f9fe6(0x186),()=>{const _0x2b3e4a=_0x1f9fe6;this[_0x2b3e4a(0x184)]=[],this[_0x2b3e4a(0x1ad)][_0x2b3e4a(0x18d)](),this[_0x2b3e4a(0x1dd)][_0x2b3e4a(0x18d)](),this[_0x2b3e4a(0x17d)][_0x2b3e4a(0x18d)]();},{'priority':_0x1f9fe6(0x197)});}[_0xb524f1(0x198)](){const _0x448462=_0xb524f1;return this[_0x448462(0x17a)];}[_0xb524f1(0x19d)](_0x281b7c){const _0x5004ea=_0xb524f1;return this[_0x5004ea(0x184)][_0x5004ea(0x1cb)](_0xf16710=>_0xf16710['id']===_0x281b7c)||null;}[_0xb524f1(0x196)](){const _0x19ec1c=_0xb524f1;return Array[_0x19ec1c(0x1a9)](this[_0x19ec1c(0x184)]);}[_0xb524f1(0x1b3)](){const _0x15c0df=_0xb524f1;return this[_0x15c0df(0x19e)];}[_0xb524f1(0x1d6)](_0x4780b4){const _0x170166=_0xb524f1;this[_0x170166(0x19e)]=_0x4780b4;}[_0xb524f1(0x1cc)](_0x127401,_0x574392=0x0){const _0x1e275b=_0xb524f1;let _0x7f8eab=!0x1;for(let _0x4833aa=_0x574392;_0x4833aa<this[_0x1e275b(0x184)][_0x1e275b(0x1bc)];_0x4833aa++)this[_0x1e275b(0x182)](_0x127401,_0x4833aa)&&(_0x7f8eab=!0x0);return _0x7f8eab;}[_0xb524f1(0x1c2)](_0x123819,_0x33666e){const _0x7a063=_0xb524f1,_0x44edc7=_0x123819[_0x7a063(0x190)](_0x7a063(0x1a6),{});return _0x123819[_0x7a063(0x1a2)](_0x44edc7,_0x33666e),this[_0x7a063(0x17a)]=_0x44edc7,_0x44edc7;}[_0xb524f1(0x19c)](_0x397226){const _0x4fa20f=_0xb524f1;if(!this[_0x4fa20f(0x184)][_0x4fa20f(0x1bc)]||this[_0x4fa20f(0x17a)])return;const _0x737a1d=this[_0x4fa20f(0x184)][0x0][_0x4fa20f(0x1ba)][_0x4fa20f(0x1b8)],_0x94d788=this[_0x4fa20f(0x1c2)](_0x397226,_0x737a1d);for(const _0x34d78b of this[_0x4fa20f(0x184)])_0x34d78b[_0x4fa20f(0x18e)][_0x4fa20f(0x191)]||_0x397226[_0x4fa20f(0x1ab)](_0x34d78b[_0x4fa20f(0x18e)],_0x94d788,_0x4fa20f(0x1da));this[_0x4fa20f(0x1cc)](_0x397226);}[_0xb524f1(0x1b4)](_0x527a47,_0x284ed2){const _0x47935a=_0xb524f1;let _0x2eac13=!0x1;const {inserted:_0x1bf027,removed:_0x220beb,moved:_0x15f7d4}=this[_0x47935a(0x1ad)][_0x47935a(0x17b)](_0x284ed2);if(_0x15f7d4[_0x47935a(0x1bc)]&&(this[_0x47935a(0x17a)]=_0x15f7d4[0x0]),_0x1bf027[_0x47935a(0x1bc)]){if(_0x1bf027[_0x47935a(0x1bc)]>0x1||this[_0x47935a(0x17a)]&&_0x1bf027[_0x47935a(0x1c0)](_0x47546e=>_0x47546e!==this[_0x47935a(0x17a)])){const _0x49002f=_0x527a47[_0x47935a(0x190)](_0x47935a(0x1a6),{}),_0x58e9d1=[];this[_0x47935a(0x17a)]&&_0x58e9d1[_0x47935a(0x18c)](this[_0x47935a(0x17a)]),_0x58e9d1[_0x47935a(0x18c)](..._0x1bf027),_0x527a47[_0x47935a(0x1ab)](_0x49002f,_0x58e9d1[0x0],_0x47935a(0x192));for(const _0x235cd0 of _0x58e9d1)_0x527a47[_0x47935a(0x1d3)](_0x527a47[_0x47935a(0x1b6)](_0x235cd0),_0x527a47[_0x47935a(0x199)](_0x49002f,_0x47935a(0x1da))),_0x527a47[_0x47935a(0x1d9)](_0x235cd0);this[_0x47935a(0x17a)]=_0x49002f,this[_0x47935a(0x1cc)](_0x527a47),_0x2eac13=!0x0;}else this[_0x47935a(0x17a)]=_0x1bf027[0x0];}if(_0x220beb[_0x47935a(0x1bc)]&&_0x47935a(0x188)===this[_0x47935a(0x17a)]?.[_0x47935a(0x1b8)][_0x47935a(0x1be)]){for(const _0x34f698 of this[_0x47935a(0x184)])_0x527a47[_0x47935a(0x1d9)](_0x34f698[_0x47935a(0x1ba)]),_0x2eac13=!0x0;this[_0x47935a(0x184)]=[],this[_0x47935a(0x17a)]=null;}return _0x2eac13;}[_0xb524f1(0x17e)](_0x57697e,_0x3746c3){const _0x1dc8c4=_0xb524f1;let _0x21a57c=!0x1;const _0x4b76e1=this[_0x1dc8c4(0x1b2)][_0x1dc8c4(0x1a5)][_0x1dc8c4(0x1cf)](_0x1dc8c4(0x18b)),{inserted:_0x3ab162,moved:_0x12c498}=this[_0x1dc8c4(0x17d)][_0x1dc8c4(0x17b)](_0x3746c3);for(const _0x476009 of[..._0x12c498,..._0x3ab162]){const _0x421b9e=_0x476009[_0x1dc8c4(0x1b7)](_0x1dc8c4(0x19b)),_0x167f0f=this[_0x1dc8c4(0x19d)](_0x421b9e);_0x167f0f&&(_0x167f0f[_0x1dc8c4(0x18e)]=_0x476009),_(_0x57697e,_0x4b76e1,_0x476009)&&(_0x21a57c=!0x0);}return _0x21a57c;}[_0xb524f1(0x18f)](_0x2e110f,_0x1a5248){const _0x35dd26=_0xb524f1;let _0x4fd544=!0x1;const {removed:_0x49f39a,inserted:_0x424a36,moved:_0x249071}=this[_0x35dd26(0x1dd)][_0x35dd26(0x17b)](_0x1a5248);for(const _0x519eb4 of _0x49f39a)this[_0x35dd26(0x1a1)](_0x2e110f,_0x519eb4)&&(_0x4fd544=!0x0);for(const _0x8210d of _0x424a36)this[_0x35dd26(0x19a)](_0x2e110f,_0x8210d)&&(_0x4fd544=!0x0);for(const _0x587354 of _0x249071)this[_0x35dd26(0x1af)](_0x2e110f,_0x587354)&&(_0x4fd544=!0x0);return _0x4fd544;}[_0xb524f1(0x185)](_0x272360){const _0x426d8a=_0xb524f1;if(!this[_0x426d8a(0x17a)])return!0x1;let _0x5540dd=!0x1;if(this[_0x426d8a(0x17a)][_0x426d8a(0x1d4)]!==this[_0x426d8a(0x184)][_0x426d8a(0x1bc)]){const _0x104d6a=[];for(const _0x4129a8 of this[_0x426d8a(0x17a)][_0x426d8a(0x187)]()){const _0x3140de=_0x4129a8[_0x426d8a(0x1b7)](_0x426d8a(0x19b));this[_0x426d8a(0x19d)](_0x3140de)||(_0x104d6a[_0x426d8a(0x183)](_0x4129a8),_0x5540dd=!0x0);}for(const _0x2e5682 of _0x104d6a)_0x272360[_0x426d8a(0x1d9)](_0x2e5682);}const _0x5ab8e6=new Set(),_0x2b47a7=[];for(const _0x391d8a of this[_0x426d8a(0x17a)][_0x426d8a(0x187)]()){const _0x1d484b=_0x391d8a[_0x426d8a(0x1b7)](_0x426d8a(0x19b));_0x5ab8e6[_0x426d8a(0x1c6)](_0x1d484b)?(_0x2b47a7[_0x426d8a(0x183)](_0x391d8a),_0x5540dd=!0x0):_0x5ab8e6[_0x426d8a(0x1db)](_0x1d484b);}for(const _0x55db45 of _0x2b47a7)_0x272360[_0x426d8a(0x1d9)](_0x55db45);return this[_0x426d8a(0x17a)][_0x426d8a(0x1d4)]||(_0x272360[_0x426d8a(0x1d9)](this[_0x426d8a(0x17a)]),this[_0x426d8a(0x17a)]=null,_0x5540dd=!0x0),_0x5540dd;}[_0xb524f1(0x19a)](_0x5ba1e8,_0x41116d){const _0x186636=_0xb524f1;if(this[_0x186636(0x184)][_0x186636(0x1cb)](_0xdbf976=>_0xdbf976[_0x186636(0x1ba)]===_0x41116d))return!0x1;let _0x429dde=!0x1;const _0x4423fb=_0x41116d[_0x186636(0x1b7)](_0x186636(0x19b)),_0x5544ea=this[_0x186636(0x184)][_0x186636(0x1ca)](_0x2fd910=>_0x2fd910['id']===_0x4423fb);-0x1!==_0x5544ea&&(_0x5ba1e8[_0x186636(0x1d9)](this[_0x186636(0x184)][_0x5544ea][_0x186636(0x1ba)]),this[_0x186636(0x184)][_0x186636(0x1ce)](_0x5544ea,0x1),_0x429dde=!0x0);let _0x51e1f1=this[_0x186636(0x17a)]?function(_0x36c1ee,_0x582db4){const _0x1b080d=_0x186636;for(const _0x222299 of _0x36c1ee[_0x1b080d(0x187)]())if(_0x222299[_0x1b080d(0x1b7)](_0x1b080d(0x19b))===_0x582db4)return _0x222299;return null;}(this[_0x186636(0x17a)],_0x4423fb):null;_0x51e1f1||(_0x51e1f1=_0x5ba1e8[_0x186636(0x190)](_0x186636(0x1c5),{'footnoteId':_0x4423fb}),this[_0x186636(0x17a)]&&(_0x5ba1e8[_0x186636(0x1ab)](_0x51e1f1,this[_0x186636(0x17a)],_0x186636(0x1da)),_0x429dde=!0x0));const _0x45136a={'id':_0x4423fb,'reference':_0x41116d,'definition':_0x51e1f1},_0x1e1495=I(this[_0x186636(0x1b2)][_0x186636(0x1d0)],this[_0x186636(0x184)],_0x41116d);this[_0x186636(0x184)][_0x186636(0x1ce)](_0x1e1495,0x0,_0x45136a);let _0x34f4b7=_0x1e1495;return-0x1!==_0x5544ea&&(_0x34f4b7=Math[_0x186636(0x1d1)](_0x1e1495,_0x5544ea)),this[_0x186636(0x1cc)](_0x5ba1e8,_0x34f4b7)&&(_0x429dde=!0x0),_0x429dde;}[_0xb524f1(0x1a1)](_0x2d1a8c,_0x532f1e){const _0x5001f8=_0xb524f1,_0xcf2114=this[_0x5001f8(0x184)][_0x5001f8(0x1ca)](_0x5828aa=>_0x5828aa['id']===_0x532f1e);if(-0x1===_0xcf2114)return!0x1;let _0x5468e7=!0x1;const _0x593031=this[_0x5001f8(0x184)][_0xcf2114];return _0x5001f8(0x188)!==_0x593031[_0x5001f8(0x18e)][_0x5001f8(0x1b8)][_0x5001f8(0x1be)]&&(_0x2d1a8c[_0x5001f8(0x1d9)](_0x593031[_0x5001f8(0x18e)]),_0x5468e7=!0x0),this[_0x5001f8(0x184)][_0x5001f8(0x1ce)](_0xcf2114,0x1),this[_0x5001f8(0x1cc)](_0x2d1a8c,_0xcf2114)&&(_0x5468e7=!0x0),_0x5468e7;}[_0xb524f1(0x1af)](_0x394adb,_0x270a20){const _0xf56a3d=_0xb524f1,_0x27c7fb=_0x270a20[_0xf56a3d(0x1b7)](_0xf56a3d(0x19b)),_0x5ac278=this[_0xf56a3d(0x184)][_0xf56a3d(0x1ca)](_0x4fb618=>_0x4fb618['id']===_0x27c7fb),_0xf63a7=this[_0xf56a3d(0x184)][_0x5ac278];let _0x34a5af=!0x1;_0xf63a7[_0xf56a3d(0x1ba)]=_0x270a20,this[_0xf56a3d(0x184)][_0xf56a3d(0x1ce)](_0x5ac278,0x1);const _0x526eed=I(this[_0xf56a3d(0x1b2)][_0xf56a3d(0x1d0)],this[_0xf56a3d(0x184)],_0x270a20);return this[_0xf56a3d(0x184)][_0xf56a3d(0x1ce)](_0x526eed,0x0,_0xf63a7),this[_0xf56a3d(0x1cc)](_0x394adb,Math[_0xf56a3d(0x1d1)](_0x5ac278,_0x526eed))&&(_0x34a5af=!0x0),_0x34a5af;}[_0xb524f1(0x182)](_0x8c2d95,_0x47047b){const _0x10d20d=_0xb524f1;if(!this[_0x10d20d(0x17a)])return!0x1;const _0x364f87=this[_0x10d20d(0x184)][_0x47047b];let _0x155a78;return _0x155a78=this[_0x10d20d(0x19e)]?this[_0x10d20d(0x19e)]({'footnote':_0x364f87,'container':this[_0x10d20d(0x17a)],'digits':String(this[_0x10d20d(0x184)][_0x10d20d(0x1bc)])[_0x10d20d(0x1bc)],'value':_0x47047b+0x1}):String(_0x47047b+0x1),_0x364f87[_0x10d20d(0x1ba)][_0x10d20d(0x1b7)](_0x10d20d(0x1c8))!=_0x155a78&&(_0x8c2d95[_0x10d20d(0x1b1)](_0x10d20d(0x1c8),_0x155a78,_0x364f87[_0x10d20d(0x1ba)]),!0x0);}[_0xb524f1(0x1c1)](_0x585416){const _0x3f48d2=_0xb524f1;if(!this[_0x3f48d2(0x17a)]||this[_0x3f48d2(0x184)][_0x3f48d2(0x1bc)]<0x2)return!0x1;if(function(_0x117bae,_0x463a8e){const _0x60b47d=_0x3f48d2;if(_0x117bae[_0x60b47d(0x1bc)]!==_0x463a8e[_0x60b47d(0x1bc)])return!0x1;for(let _0x5a7e11=0x0;_0x5a7e11<_0x117bae[_0x60b47d(0x1bc)];_0x5a7e11++)if(_0x117bae[_0x5a7e11]!==_0x463a8e[_0x5a7e11])return!0x1;return!0x0;}(this[_0x3f48d2(0x184)][_0x3f48d2(0x1a8)](_0x37ae83=>_0x37ae83['id']),Array[_0x3f48d2(0x1a9)](this[_0x3f48d2(0x17a)][_0x3f48d2(0x187)]())[_0x3f48d2(0x1a8)](_0x579702=>_0x579702[_0x3f48d2(0x1b7)](_0x3f48d2(0x19b)))))return!0x1;let _0x5d1159=!0x1;for(let _0x3992d8=0x0;_0x3992d8<this[_0x3f48d2(0x184)][_0x3f48d2(0x1bc)];_0x3992d8++){const _0x46db84=this[_0x3f48d2(0x184)][_0x3992d8],_0x20a0d5=_0x585416[_0x3f48d2(0x1ac)](_0x46db84[_0x3f48d2(0x18e)]),_0x47b096=_0x585416[_0x3f48d2(0x199)](this[_0x3f48d2(0x17a)],_0x3992d8);_0x20a0d5[_0x3f48d2(0x1aa)](_0x47b096)||(_0x585416[_0x3f48d2(0x1d3)](_0x585416[_0x3f48d2(0x181)](_0x46db84[_0x3f48d2(0x18e)]),_0x47b096),_0x5d1159=!0x0);}return _0x5d1159;}[_0xb524f1(0x1d2)](_0x1699ed){const _0x5687d2=_0xb524f1;if(!this[_0x5687d2(0x184)][_0x5687d2(0x1bc)])return!0x1;const {model:_0x4477a8}=this[_0x5687d2(0x1b2)];let _0x3ccc7f=!0x1;for(let _0x281b65=0x0;_0x281b65<this[_0x5687d2(0x184)][_0x5687d2(0x1bc)]-0x1;_0x281b65++){const _0x2f2b67=this[_0x5687d2(0x184)][_0x281b65],_0x48ea90=this[_0x5687d2(0x184)][_0x281b65+0x1],_0x9bfae7=_0x4477a8[_0x5687d2(0x1ac)](_0x2f2b67[_0x5687d2(0x1ba)]),_0x2b9d9b=_0x4477a8[_0x5687d2(0x1ac)](_0x48ea90[_0x5687d2(0x1ba)]);_0x5687d2(0x195)===_0x9bfae7[_0x5687d2(0x180)](_0x2b9d9b)&&(this[_0x5687d2(0x1af)](_0x1699ed,_0x2f2b67[_0x5687d2(0x1ba)]),_0x281b65=-0x1,_0x3ccc7f=!0x0);}return _0x3ccc7f;}}function _(_0x28c475,_0x1ebf8b,_0x1f878a){const _0xbd4f3=_0xb524f1;if(_0x1f878a[_0xbd4f3(0x1d4)])return!0x1;const _0x122672=_0x1ebf8b?_0xbd4f3(0x1b9):_0xbd4f3(0x1d8);return _0x28c475[_0xbd4f3(0x1ab)](_0x28c475[_0xbd4f3(0x190)](_0x122672),_0x1f878a),!0x0;}function I(_0x4e3b20,_0x36195f,_0x2dca3b){const _0x586389=_0xb524f1;if(0x0===_0x36195f[_0x586389(0x1bc)])return 0x0;const _0x3d1608=_0x4e3b20[_0x586389(0x1ac)](_0x2dca3b);for(let _0x31d10b=0x0;_0x31d10b<_0x36195f[_0x586389(0x1bc)];_0x31d10b++){const _0xd1d479=_0x36195f[_0x31d10b],_0x41fe50=_0x4e3b20[_0x586389(0x1ac)](_0xd1d479[_0x586389(0x1ba)]);if(_0x586389(0x192)===_0x3d1608[_0x586389(0x180)](_0x41fe50))return _0x31d10b;}const _0x562d19=_0x2dca3b[_0x586389(0x1b8)];let _0x54c859=-0x1;for(let _0x56c1ea=_0x36195f[_0x586389(0x1bc)]-0x1;_0x56c1ea>=0x0;_0x56c1ea--)if(_0x36195f[_0x56c1ea][_0x586389(0x1ba)][_0x586389(0x1b8)]===_0x562d19){_0x54c859=_0x56c1ea;break;}if(-0x1!==_0x54c859)return _0x54c859+0x1;const _0x2c78a1=_0x4e3b20[_0x586389(0x18a)][_0x586389(0x1bb)](),_0x2ebc22=_0x2c78a1[_0x586389(0x1c7)](_0x562d19[_0x586389(0x1be)]),_0x4a66dc=_0x2c78a1[_0x2ebc22+0x1];if(_0x4a66dc){for(let _0xd524cf=0x0;_0xd524cf<_0x36195f[_0x586389(0x1bc)];_0xd524cf++)if(_0x36195f[_0xd524cf][_0x586389(0x1ba)][_0x586389(0x1b8)][_0x586389(0x1be)]===_0x4a66dc)return _0xd524cf;}return _0x36195f[_0x586389(0x1bc)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2fe9c7,MenuBarMenuListItemButtonView as _0x5eec2b}from'ckeditor5/src/ui.js';import{Plugin as _0x42700f}from'ckeditor5/src/core.js';import{IconFootnote as _0x2f00cd}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x42700f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x347e1e}=this,{componentFactory:_0x14be64}=_0x347e1e['ui'];_0x14be64['add']('insertFootnote',x(_0x347e1e,_0x2fe9c7)),_0x14be64['add']('menuBar:insertFootnote',x(_0x347e1e,_0x5eec2b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x298f0f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xafa7ed;for(const _0x1e6e34 in _0x298f0f){const _0x24c7b4=_0x1e6e34,_0x410a9b=_0x298f0f[_0x24c7b4];if('footnotesLicenseKeyValid'==_0x410a9b||'footnotesLicenseKeyInvalid'==_0x410a9b||'footnotesLicenseKeyExpired'==_0x410a9b||'footnotesLicenseKeyDomainLimit'==_0x410a9b||'footnotesLicenseKeyNotAllowed'==_0x410a9b||'footnotesLicenseKeyEvaluationLimit'==_0x410a9b||'footnotesLicenseKeyTrialLimit'==_0x410a9b||'footnotesLicenseKeyUsageLimit'==_0x410a9b){delete _0x298f0f[_0x24c7b4],_0xafa7ed=_0x410a9b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xafa7ed&&_0x298f0f['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xafa7ed&&_0x298f0f['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xafa7ed&&_0x298f0f['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xafa7ed&&_0x298f0f['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xafa7ed&&_0x298f0f['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xafa7ed&&_0x298f0f['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xafa7ed&&_0x298f0f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4da76b,_0x104e80){const _0x4e75db=_0x4da76b['commands']['get']('insertFootnote');return _0x11beeb=>{const {t:t}=_0x11beeb,_0x2eea1a=new _0x104e80(_0x11beeb),_0x2d53b3=_0x2eea1a instanceof _0x5eec2b;return _0x2eea1a['bind']('isEnabled')['to'](_0x4e75db,'isEnabled'),_0x2eea1a['set']({'label':t(_0x2d53b3?'Footnote':'Insert\x20footnote'),'icon':_0x2f00cd,'tooltip':!0x0}),_0x2eea1a['on']('execute',()=>{_0x4e75db['execute'](),_0x4da76b['editing']['view']['focus']();}),_0x2eea1a;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5ce775,_0x517275){var _0x4504fb=_0xc7bd,_0x2d8372=_0x5ce775();while(!![]){try{var _0x59f4c0=-parseInt(_0x4504fb(0x154))/0x1*(-parseInt(_0x4504fb(0x15c))/0x2)+parseInt(_0x4504fb(0x15d))/0x3+-parseInt(_0x4504fb(0x156))/0x4*(parseInt(_0x4504fb(0x159))/0x5)+-parseInt(_0x4504fb(0x158))/0x6+parseInt(_0x4504fb(0x15b))/0x7*(parseInt(_0x4504fb(0x15a))/0x8)+parseInt(_0x4504fb(0x155))/0x9+parseInt(_0x4504fb(0x157))/0xa;if(_0x59f4c0===_0x517275)break;else _0x2d8372['push'](_0x2d8372['shift']());}catch(_0x4533c5){_0x2d8372['push'](_0x2d8372['shift']());}}}(_0x1ddb,0x4b84b));import'./augmentation.js';export{Footnotes}from'./footnotes.js';function _0x1ddb(){var _0x257d64=['771534Knnmdl','10kQVHGc','10456pfUHCz','119aQTbzm','68394qPuuFA','379140foYYWa','2mSmZNe','3201048AoTzDG','1044644nMXNfp','3875690edmvxU'];_0x1ddb=function(){return _0x257d64;};return _0x1ddb();}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';function _0xc7bd(_0x2a2493,_0x47205e){var _0x1ddb94=_0x1ddb();return _0xc7bd=function(_0xc7bd91,_0x3106ce){_0xc7bd91=_0xc7bd91-0x154;var _0x1df61f=_0x1ddb94[_0xc7bd91];return _0x1df61f;},_0xc7bd(_0x2a2493,_0x47205e);}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
|
+
function _0x598d(){const _0x4046bb=['nodeAfter','_model','element','push','7VzOgjY','1148408kHyYRU','type','delete','clear','values','_elementName','_trackedElements','root','remove','getItems','rootName','6215658GaYfqT','81Bbxxyo','$graveyard','12zYygBB','length','has','_getElementKey','set','getElementKey','getChanges','from','position','get','15RQAjbw','136926ZiQTuc','attributes','$text','createRangeOn','478304zXcZlo','653956dfuSqG','name','add','elementName','flat','14096830LQoHiD','insert','slice','reset','42698403VTWBfS'];_0x598d=function(){return _0x4046bb;};return _0x598d();}const _0x2276f5=_0x3c08;(function(_0x50048c,_0x2856c2){const _0x2d584f=_0x3c08,_0x36a6ed=_0x50048c();while(!![]){try{const _0x310c91=parseInt(_0x2d584f(0x160))/0x1+parseInt(_0x2d584f(0x188))/0x2*(parseInt(_0x2d584f(0x17d))/0x3)+parseInt(_0x2d584f(0x18c))/0x4*(-parseInt(_0x2d584f(0x187))/0x5)+parseInt(_0x2d584f(0x17a))/0x6*(-parseInt(_0x2d584f(0x16e))/0x7)+parseInt(_0x2d584f(0x16f))/0x8*(-parseInt(_0x2d584f(0x17b))/0x9)+-parseInt(_0x2d584f(0x165))/0xa+parseInt(_0x2d584f(0x169))/0xb;if(_0x310c91===_0x2856c2)break;else _0x36a6ed['push'](_0x36a6ed['shift']());}catch(_0x5beccf){_0x36a6ed['push'](_0x36a6ed['shift']());}}}(_0x598d,0xae1d0));function _0x3c08(_0x46a764,_0x323397){const _0x598dc7=_0x598d();return _0x3c08=function(_0x3c0880,_0x573fb9){_0x3c0880=_0x3c0880-0x160;let _0x53c17c=_0x598dc7[_0x3c0880];return _0x53c17c;},_0x3c08(_0x46a764,_0x323397);}export class ModelElementTracker{[_0x2276f5(0x16b)];[_0x2276f5(0x174)];[_0x2276f5(0x180)];[_0x2276f5(0x175)]=new Map();constructor(_0x11870d,_0x3e1e18){const _0xf430b2=_0x2276f5;this[_0xf430b2(0x16b)]=_0x11870d,this[_0xf430b2(0x174)]=_0x3e1e18[_0xf430b2(0x163)],this[_0xf430b2(0x180)]=_0x3e1e18[_0xf430b2(0x182)];}[_0x2276f5(0x168)](){const _0x2e8760=_0x2276f5;this[_0x2e8760(0x175)][_0x2e8760(0x172)]();}[_0x2276f5(0x183)](_0x1a2ecd){const _0x35974a=_0x2276f5,_0x5e69d0=new Set(),_0x2e11c3=new Map();for(const _0x194b18 of _0x1a2ecd){if(_0x35974a(0x166)===_0x194b18[_0x35974a(0x170)]&&_0x35974a(0x18a)!==_0x194b18[_0x35974a(0x161)]&&_0x194b18[_0x35974a(0x185)][_0x35974a(0x16a)]){const _0xb478fe=this[_0x35974a(0x16b)][_0x35974a(0x18b)](_0x194b18[_0x35974a(0x185)][_0x35974a(0x16a)]);for(const _0x38547a of _0xb478fe[_0x35974a(0x178)]()){if(!_0x38547a['is'](_0x35974a(0x16c),this[_0x35974a(0x174)]))continue;const _0x12d6e1=this[_0x35974a(0x180)](_0x38547a);_0x2e11c3[_0x35974a(0x17f)](_0x12d6e1)||_0x2e11c3[_0x35974a(0x181)](_0x12d6e1,[]),_0x2e11c3[_0x35974a(0x186)](_0x12d6e1)[_0x35974a(0x16d)](_0x38547a);}}if(_0x35974a(0x177)===_0x194b18[_0x35974a(0x170)]&&_0x194b18[_0x35974a(0x161)]===this[_0x35974a(0x174)]){const _0x3fd3fa=this[_0x35974a(0x180)]({'getAttribute':_0x10bcb6=>_0x194b18[_0x35974a(0x189)][_0x35974a(0x186)](_0x10bcb6)});_0x5e69d0[_0x35974a(0x162)](_0x3fd3fa);}}for(const [_0x49736a,_0x578ca3]of this[_0x35974a(0x175)])_0x35974a(0x17c)===_0x578ca3[_0x35974a(0x176)][_0x35974a(0x179)]&&_0x5e69d0[_0x35974a(0x162)](_0x49736a);for(const _0x44ded8 of _0x5e69d0)this[_0x35974a(0x175)][_0x35974a(0x171)](_0x44ded8);for(const [_0x25caad,_0xe28e30]of _0x2e11c3)this[_0x35974a(0x175)][_0x35974a(0x181)](_0x25caad,_0xe28e30[_0xe28e30[_0x35974a(0x17e)]-0x1]);const _0x4c3ce0=new Set();for(const [_0x2a6208,_0x3b6d16]of _0x2e11c3)_0x5e69d0[_0x35974a(0x17f)](_0x2a6208)&&(_0x4c3ce0[_0x35974a(0x162)](_0x3b6d16[0x0]),_0x3b6d16[_0x35974a(0x17e)]>0x1?_0x2e11c3[_0x35974a(0x181)](_0x2a6208,_0x3b6d16[_0x35974a(0x167)](0x1)):_0x2e11c3[_0x35974a(0x171)](_0x2a6208),_0x5e69d0[_0x35974a(0x171)](_0x2a6208));return{'removed':Array[_0x35974a(0x184)](_0x5e69d0),'inserted':Array[_0x35974a(0x184)](_0x2e11c3[_0x35974a(0x173)]())[_0x35974a(0x164)](),'moved':Array[_0x35974a(0x184)](_0x4c3ce0)};}}
|