@ckeditor/ckeditor5-footnotes 47.4.0 → 47.5.0-alpha.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 +10 -10
- 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 _0x2ed68a}from'ckeditor5/src/core.js';import{isWidget as _0xdadc05,toWidget as _0x3e8240,toWidgetEditable as _0x3ecac3}from'ckeditor5/src/widget.js';import{uid as _0x748a2c}from'ckeditor5/src/utils.js';import{PointerObserver as _0xdb65b8,ClickObserver as _0x5bcff3}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x570d5d}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x51098b}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x2ed68a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x570d5d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa3a55}=this;_0xa3a55['config']['define']('footnotes.multiBlock',!0x0),_0xa3a55['commands']['add']('insertFootnote',new _0x51098b(_0xa3a55)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x50d15c){const _0x1e1225=_0x11098f([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]),_0x350c6d=0x47a28506,_0x5a8199=0x47a5fbce^_0x350c6d,_0x95aebd=window[_0x11098f([0x44,0x61,0x74,0x65])][_0x11098f([0x6e,0x6f,0x77])](),_0x29e97a=_0x50d15c[_0x11098f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fc575=new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x175b43=>{_0x29e97a[_0x11098f([0x6f,0x6e,0x63,0x65])](_0x11098f([0x72,0x65,0x61,0x64,0x79]),_0x175b43);}),_0x482ee2={[_0x11098f([0x6b,0x74,0x79])]:_0x11098f([0x45,0x43]),[_0x11098f([0x75,0x73,0x65])]:_0x11098f([0x73,0x69,0x67]),[_0x11098f([0x63,0x72,0x76])]:_0x11098f([0x50,0x2d,0x32,0x35,0x36]),[_0x11098f([0x78])]:_0x11098f([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]),[_0x11098f([0x79])]:_0x11098f([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]),[_0x11098f([0x61,0x6c,0x67])]:_0x11098f([0x45,0x53,0x32,0x35,0x36])},_0x4648db=_0x29e97a[_0x11098f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11098f([0x67,0x65,0x74])](_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xcbc8c5(){let _0x2fedad,_0x4e5fcf=null,_0x1c9277=null;try{if(_0x4648db==_0x11098f([0x47,0x50,0x4c]))return _0x11098f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fedad=_0x24242b(),!_0x2fedad)return _0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fedad[_0x11098f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c9277=_0x4097a4(_0x2fedad[_0x11098f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fedad[_0x11098f([0x6a,0x74,0x69])])),await _0x6201e5()?_0x195df3()?_0x59e1df()?_0x11098f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22b8a5()?(_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11098f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e5fcf=_0x43fa81(_0x11098f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ad388()):_0x11098f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11098f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59e1df(){const _0x19d61a=[_0x11098f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11098f([0x74,0x72,0x69,0x61,0x6c])][_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x95aebd/0x3e8:0xe10*_0x5a8199;return _0x2fedad[_0x11098f([0x65,0x78,0x70])]<_0x19d61a;}function _0x195df3(){const _0x134ccb=_0x2fedad[_0x11098f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x134ccb&&(!!_0x134ccb[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x2a]))||!!_0x134ccb[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x46,0x4f,0x4f])));}function _0x22b8a5(){const _0x5b64a2=_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b64a2||0x0==_0x5b64a2[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58c263}=new URL(window[_0x11098f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b64a2[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58c263))return!0x0;const _0x3c7a1d=_0x58c263[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e]));return _0x5b64a2[_0x11098f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2df5ba=>_0x2df5ba[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x2a])))[_0x11098f([0x6d,0x61,0x70])](_0x2e1a85=>_0x2e1a85[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e])))[_0x11098f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x366049=>_0x366049[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c7a1d[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11098f([0x6d,0x61,0x70])](_0x2b214c=>Array(_0x3c7a1d[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b214c[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11098f([0x66,0x69,0x6c,0x6c])](_0x2b214c[0x0]===_0x11098f([0x2a])?_0x11098f([0x2a]):'')[_0x11098f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b214c))[_0x11098f([0x73,0x6f,0x6d,0x65])](_0x31297d=>_0x3c7a1d[_0x11098f([0x65,0x76,0x65,0x72,0x79])]((_0x1a5bf1,_0xdfe746)=>_0x31297d[_0xdfe746]===_0x1a5bf1||_0x31297d[_0xdfe746]===_0x11098f([0x2a])));}function _0x3ad388(){return _0x4e5fcf&&_0x1c9277?new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a3b1,_0x2c9054)=>{_0x4e5fcf[_0x11098f([0x74,0x68,0x65,0x6e])](_0x48a3b1,_0x2c9054),_0x1c9277[_0x11098f([0x74,0x68,0x65,0x6e])](_0x2a3740=>{_0x2a3740!=_0x11098f([0x56,0x61,0x6c,0x69,0x64])&&_0x48a3b1(_0x2a3740);},_0x2c9054);}):_0x4e5fcf||_0x1c9277||_0x11098f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4097a4(_0x36de96,_0x54767d){return new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387c84=>{if(_0x18fd7e())return _0x387c84(_0x11098f([0x56,0x61,0x6c,0x69,0x64]));_0x3583c8(),_0x29e97a[_0x11098f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13a24c=!0x1;const _0x271292=_0x748a2c();function _0x598266(_0x41bc81){return!!_0x41bc81&&(typeof _0x41bc81===_0x11098f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41bc81===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41bc81[_0x11098f([0x74,0x68,0x65,0x6e])]===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41bc81[_0x11098f([0x63,0x61,0x74,0x63,0x68])]===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2257e2(_0x422fe1){_0x1c9c7c(_0x422fe1)[_0x11098f([0x74,0x68,0x65,0x6e])](_0x316a8c=>{if(!_0x316a8c||_0x316a8c[_0x11098f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11098f([0x6f,0x6b]))return _0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x469b01(_0x2337ca(_0x271292+_0x54767d))!=_0x316a8c[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11098f([0x56,0x61,0x6c,0x69,0x64]);})[_0x11098f([0x74,0x68,0x65,0x6e])](_0x3673f8=>(_0x31c313(),_0x3673f8),()=>{const _0x2092da=_0x3a633a();return null==_0x2092da?(_0x31c313(),_0x11098f([0x56,0x61,0x6c,0x69,0x64])):_0x11098f(_0x95aebd-_0x2092da>(0x63ae0106^_0x350c6d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11098f([0x74,0x68,0x65,0x6e])](_0x387c84)[_0x11098f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54de88=0x47946b86^_0x350c6d;function _0x31c313(){const _0x1dce9b=_0x11098f([0x6c,0x6c,0x63,0x74,0x2d])+_0x469b01(_0x2337ca(_0x36de96)),_0x581702=_0x2c1f36(_0x469b01(window[_0x11098f([0x4d,0x61,0x74,0x68])][_0x11098f([0x63,0x65,0x69,0x6c])](_0x95aebd/_0x54de88)));window[_0x11098f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11098f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dce9b,_0x581702);}function _0x3a633a(){const _0x44fba2=_0x11098f([0x6c,0x6c,0x63,0x74,0x2d])+_0x469b01(_0x2337ca(_0x36de96)),_0x13765c=window[_0x11098f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11098f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44fba2);return _0x13765c?window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1f36(_0x13765c),0x10)*_0x54de88:null;}function _0x1c9c7c(_0x2cbe1d){return new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5687f4,_0x53a1e3)=>{_0x2cbe1d[_0x11098f([0x74,0x68,0x65,0x6e])](_0x5687f4,_0x53a1e3),window[_0x11098f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53a1e3,0x47a351c6^_0x350c6d);});}}_0x29e97a[_0x11098f([0x6f,0x6e])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52eece,_0x3eb4f0)=>{if(_0x3eb4f0[0x0]!=_0x36de96)return _0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3eb4f0[0x1]={..._0x3eb4f0[0x1],[_0x11098f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x271292};},{[_0x11098f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11098f([0x68,0x69,0x67,0x68])}),_0x29e97a[_0x11098f([0x6f,0x6e])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3112cc=>{_0x598266(_0x3112cc[_0x11098f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13a24c=!0x0,_0x2257e2(_0x3112cc[_0x11098f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11098f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11098f([0x6c,0x6f,0x77])}),_0x3fc575[_0x11098f([0x74,0x68,0x65,0x6e])](()=>{_0x13a24c||_0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18fd7e(){return _0x29e97a[_0x11098f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11098f([0x76,0x69,0x65,0x77])][_0x11098f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11098f([0x61,0x75,0x74,0x6f]);}function _0x3583c8(){_0x29e97a[_0x11098f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11098f([0x76,0x69,0x65,0x77])][_0x11098f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11098f([0x61,0x75,0x74,0x6f]);}}function _0x43fa81(_0x53455a){const _0x49bc41=[new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2563e1=>setTimeout(_0x2563e1,0x47abbbca^_0x350c6d)),_0x3fc575[_0x11098f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x470b63=>{let _0x4f9e00=0x0;_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x6f,0x6e])](_0x11098f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c1e93,_0x51ff96)=>{_0x51ff96[0x0][_0x11098f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f9e00++,_0x4f9e00==(0x47a280ee^_0x350c6d)&&(_0x470b63(),_0x3c1e93[_0x11098f([0x6f,0x66,0x66])]());});}))];return window[_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11098f([0x72,0x61,0x63,0x65])](_0x49bc41)[_0x11098f([0x74,0x68,0x65,0x6e])](()=>_0x53455a);}async function _0x236f41(){await _0x3fc575,_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1960f6,_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1960f6,_0x29e97a[_0x11098f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11098f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fd4a3(_0x302ea3){const _0x4358b7=_0x156aef();_0x29e97a[_0x4358b7]=_0x11098f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x302ea3,_0x302ea3!=_0x11098f([0x56,0x61,0x6c,0x69,0x64])&&_0x236f41();}function _0x156aef(){const _0x53a785=window[_0x11098f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11098f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11098f([0x6e,0x6f,0x77])]())[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11098f([0x2e]),'');let _0x4edceb=_0x11098f([0x75]);for(let _0x191a93=0x0;_0x191a93<_0x53a785[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x191a93+=0x2){let _0x1550e6=window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a785[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x191a93,_0x191a93+0x2));_0x1550e6>=_0x1e1225[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1550e6-=_0x1e1225[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4edceb+=_0x1e1225[_0x1550e6];}return _0x4edceb;}function _0x24242b(){const _0x55f935=_0x4648db[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e]));if(0x3!=_0x55f935[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4aedae(_0x55f935[0x1]);function _0x4aedae(_0x4fe4dc){const _0x3401c5=_0x3fec02(_0x4fe4dc);return _0x3401c5&&_0x3d460e()?_0x3401c5:null;function _0x3d460e(){const _0x33de38=_0x3401c5[_0x11098f([0x6a,0x74,0x69])],_0x545a46=window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33de38[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33de38[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48e490={..._0x3401c5,[_0x11098f([0x6a,0x74,0x69])]:_0x33de38[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33de38[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48e490[_0x11098f([0x76,0x63])],_0x2337ca(_0x48e490)==_0x545a46;}}}async function _0x6201e5(){let _0x17dfd2=!0x0;try{const _0x4898c1=_0x4648db[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e])),[_0x558987,_0x3df8b5,_0x164b3b]=_0x4898c1;return _0x26eb33(_0x558987),await _0x346b43(_0x558987,_0x3df8b5,_0x164b3b),_0x17dfd2;}catch{return!0x1;}function _0x26eb33(_0x44f061){const _0x236377=_0x3fec02(_0x44f061);_0x236377&&_0x236377[_0x11098f([0x61,0x6c,0x67])]==_0x11098f([0x45,0x53,0x32,0x35,0x36])||(_0x17dfd2=!0x1);}async function _0x346b43(_0x5b55a3,_0x87f80b,_0x38d897){const _0x34c8c0=window[_0x11098f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11098f([0x66,0x72,0x6f,0x6d])](_0x1fa8d2(_0x38d897),_0x26f8ee=>_0x26f8ee[_0x11098f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x82e3fa=new window[(_0x11098f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11098f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b55a3+_0x11098f([0x2e])+_0x87f80b),_0x986ce1=window[_0x11098f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11098f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x986ce1)return;const _0x14664a=await _0x986ce1[_0x11098f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11098f([0x6a,0x77,0x6b]),_0x482ee2,{[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x45,0x43,0x44,0x53,0x41]),[_0x11098f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11098f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x986ce1[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x45,0x43,0x44,0x53,0x41]),[_0x11098f([0x68,0x61,0x73,0x68])]:{[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14664a,_0x34c8c0,_0x82e3fa)||(_0x17dfd2=!0x1);}}function _0x3fec02(_0x5eaaa0){return _0x5eaaa0[_0x11098f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11098f([0x65,0x79]))?JSON[_0x11098f([0x70,0x61,0x72,0x73,0x65])](_0x1fa8d2(_0x5eaaa0)):null;}function _0x1fa8d2(_0x27a990){return window[_0x11098f([0x61,0x74,0x6f,0x62])](_0x27a990[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11098f([0x2b]))[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11098f([0x2f])));}function _0x2337ca(_0x1aa2d0){let _0x53a0ba=0x1505;function _0x2f9c5f(_0x1b731c){for(let _0x8c921e=0x0;_0x8c921e<_0x1b731c[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8c921e++){const _0x4bc3e2=_0x1b731c[_0x11098f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8c921e);_0x53a0ba=(_0x53a0ba<<0x5)+_0x53a0ba+_0x4bc3e2,_0x53a0ba&=_0x53a0ba;}}function _0x3b0bdd(_0x23a993){Array[_0x11098f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23a993)?_0x23a993[_0x11098f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b0bdd):_0x23a993&&typeof _0x23a993==_0x11098f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11098f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23a993)[_0x11098f([0x73,0x6f,0x72,0x74])]()[_0x11098f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x146e51,_0x2fe637])=>{_0x2f9c5f(_0x146e51),_0x3b0bdd(_0x2fe637);}):_0x2f9c5f(window[_0x11098f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23a993));}return _0x3b0bdd(_0x1aa2d0),_0x53a0ba>>>0x0;}function _0x469b01(_0x2488d2){return _0x2488d2[_0x11098f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11098f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11098f([0x30]));}function _0x2c1f36(_0x5b7aa6){return _0x5b7aa6[_0x11098f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11098f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11098f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1960f6(){}function _0x11098f(_0x50e821){return _0x50e821['map'](_0x1c3f2e=>String['fromCharCode'](_0x1c3f2e))['join']('');}_0x4fd4a3(await _0xcbc8c5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x10f201){const {plugins:_0x476838,editing:_0x305d61,model:_0x4026cc}=this['editor'],_0x37ad68=_0x476838['get'](_0x570d5d)['getFootnote'](_0x10f201);return!!_0x37ad68&&(_0x4026cc['change'](_0x5a08c7=>{_0x5a08c7['setSelection'](_0x5a08c7['createPositionAt'](_0x37ad68['definition'],'end'));}),_0x305d61['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5525fc){const {plugins:_0x4ef959,editing:_0x159bf0,model:_0x5afe6c}=this['editor'],_0x1835cd=_0x4ef959['get'](_0x570d5d)['getFootnote'](_0x5525fc);return!!_0x1835cd&&(_0x5afe6c['change'](_0x2fb833=>{_0x2fb833['setSelection'](_0x1835cd['reference'],'on');}),_0x159bf0['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x33189f}=this['editor']['model'],_0x33566f=this['editor']['config']['get']('footnotes.multiBlock');_0x33189f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x33189f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x33189f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x33566f?_0x33189f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x33189f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x33189f['addChildCheck'](_0x4f1bf1=>{for(const _0x30df87 of _0x4f1bf1)if('footnoteDefinition'===_0x30df87['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x596481}=this,{conversion:_0x3ca7d8,editing:_0x511dcd}=_0x596481,{t:t}=_0x596481['locale'];_0x3ca7d8['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x78afe5,{writer:_0x59b1af,consumable:_0x4b25dc})=>{const _0x22adcc=_0x78afe5['getChild'](0x0);if(!_0x22adcc||!_0x22adcc['is']('element','a'))return null;const _0xc03631=_0x22adcc['getAttribute']('href')||'';if(!_0xc03631['startsWith']('#'))return null;const _0x1daea6=_0xc03631['replace'](/^#/,'');if(!_0x1daea6)return null;_0x4b25dc['consume'](_0x22adcc,{'name':!0x0,'attributes':['href']});for(const {item:_0x134ea2}of _0x511dcd['view']['createRangeIn'](_0x22adcc))_0x134ea2['is']('$textProxy')?_0x4b25dc['consume'](_0x134ea2['textNode'],{'name':!0x0}):_0x134ea2['is']('element')&&_0x4b25dc['consume'](_0x134ea2,{'name':!0x0});return _0x59b1af['createElement']('footnoteRef',{'footnoteId':_0x1daea6});}}),_0x3ca7d8['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4f3a69,{writer:_0x2d5b29})=>b(_0x4f3a69,_0x2d5b29)}),_0x3ca7d8['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x211396,{writer:_0x493e14})=>{const _0x588c35=_0x211396['getAttribute']('footnoteCounter');return _0x3e8240(b(_0x211396,_0x493e14),_0x493e14,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x588c35)});}});}['_defineDefinitionsConverters'](){const {editor:_0x9a76e2}=this,{t:t}=_0x9a76e2['locale'],{conversion:_0xc196f1}=_0x9a76e2;_0xc196f1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xc196f1['for']('upcast')['add'](_0x2976a8=>{_0x2976a8['on']('element:ol',(_0xf950af,_0x376aa0,_0x206285)=>{const _0x353880=_0x376aa0['viewItem'];if(!_0x353880['hasClass']('footnotes-list')||!_0x376aa0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x206285['consumable']['consume'](_0x353880,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4d57bf,modelCursor:_0x51185f}=_0x206285['convertChildren'](_0x376aa0['viewItem'],_0x376aa0['modelCursor']);_0x376aa0['modelRange']=_0x4d57bf,_0x376aa0['modelCursor']=_0x51185f;}),_0x2976a8['on']('element:hr',(_0x4d6035,_0x487902,_0x42da11)=>{const _0x31828f=_0x487902['viewItem'];_0x31828f['hasClass']('footnotes-divider')&&_0x487902['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x42da11['consumable']['consume'](_0x31828f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xc196f1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2c28d4,{writer:_0x402758})=>D(_0x402758)}),_0xc196f1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x38cb46,{writer:_0x3af6bc})=>{const _0x5b799a=D(_0x3af6bc,{'data-footnotes-list-label':t('Footnotes')}),_0x50ba1b=_0x3e8240(_0x5b799a,_0x3af6bc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3af6bc['setCustomProperty']('footnotesDefinitions',!0x0,_0x50ba1b),_0x50ba1b;}});}['_defineDefinitionConverters'](){const {editor:_0x117368}=this,{conversion:_0x37513f,locale:_0x37c0ee}=_0x117368,_0xe8697a=_0x117368['config']['get']('footnotes.multiBlock');_0x37513f['for']('upcast')['add'](_0x3f0fd9=>{_0x3f0fd9['on']('element:li',(_0x27d144,_0x1f5bff,_0x5b47f6)=>{const _0x2c06bd=_0x1f5bff['viewItem'];if(!_0x2c06bd['hasClass']('footnote-definition')||!_0x2c06bd['getAttribute']('id'))return;const _0x55d755=_0x2c06bd['parent'];if(!_0x55d755['is']('element','ol')||!_0x55d755['hasClass']('footnotes-list'))return;if(!_0x5b47f6['consumable']['test'](_0x2c06bd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5c9afe=_0x5b47f6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2c06bd['getAttribute']('id')});if(!_0x5b47f6['safeInsert'](_0x5c9afe,_0x1f5bff['modelCursor']))return;_0x5b47f6['consumable']['consume'](_0x2c06bd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2d2949=Array['from'](_0x2c06bd['getChildren']())['find'](_0x591776=>_0x591776['is']('element')&&_0x591776['hasClass']('footnote-content'));for(const _0xa31f87 of _0x2c06bd['getChildren']())_0xa31f87['is']('element')&&(_0x5b47f6['consumable']['consume'](_0xa31f87,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5b47f6['consumable']['consume'](_0xa31f87,{'name':!0x0,'classes':'footnote-content'}));if(_0x2d2949){if(_0xe8697a)_0x5b47f6['convertChildren'](_0x2d2949,_0x5c9afe);else{const _0x52f507=_0x5b47f6['writer']['createElement']('footnoteInlineContent');_0x5b47f6['writer']['insert'](_0x52f507,_0x5c9afe),_0x5b47f6['convertChildren'](_0x2d2949,_0x52f507);}}_0x5b47f6['updateConversionResult'](_0x5c9afe,_0x1f5bff);});}),_0x37513f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1c7282,{writer:_0x3e3e13})=>y(_0x1c7282,_0x3e3e13,_0x37c0ee,{'dataPipeline':!0x0})}),_0x37513f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x23f80d,{writer:_0x18fe39})=>y(_0x23f80d,_0x18fe39,_0x37c0ee)});}['_defineBogusParagraphConverters'](){const {editor:_0x35bc9e}=this,{conversion:_0x50acfa}=_0x35bc9e;_0x35bc9e['config']['get']('footnotes.multiBlock')?(_0x50acfa['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x50acfa['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x35bc9e['model']['document'],'change:data',()=>{!function(_0xb509ac,_0x2fdc54){const _0x51cf8f=_0xb509ac['document']['differ'],_0x392c68=new Set();for(const _0x339c86 of _0x51cf8f['getChanges']()){const _0x36a184='attribute'==_0x339c86['type']?_0x339c86['range']['start']['parent']:_0x339c86['position']['parent'];_0x36a184['is']('element','footnoteDefinition')&&_0x392c68['add'](_0x36a184);}for(const _0x58305a of _0x392c68['values']()){const _0x2613b=Array['from'](_0x58305a['getChildren']())['filter'](_0x559d1=>v(_0x559d1,_0x2fdc54['mapper']));for(const _0x461943 of _0x2613b)_0x2fdc54['reconvertItem'](_0x461943);}}(_0x35bc9e['model'],_0x35bc9e['editing']);})):(_0x50acfa['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x50acfa['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x6b444d,{writer:_0x223c03})=>{const _0xa9b844=_0x223c03['createContainerElement']('span');return _0x223c03['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xa9b844),_0xa9b844;}}));}['_defineKeyboardHandlers'](){const {editor:_0x181537}=this,{editing:_0x2ccb0c,t:t}=_0x181537,_0x758fc2=_0x181537['model']['document']['selection'];_0x181537['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x181537['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2ccb0c['view']['document'],'enter',(_0x441b7d,_0x5450a3)=>{const _0x1b858f=function(_0x2985b2){const _0x528f3f=_0x2985b2['getSelectedElement']();if(_0x528f3f?.['is']('element','footnoteRef'))return _0x528f3f;return null;}(_0x758fc2);if(_0x1b858f){const _0x4bfaf1=_0x1b858f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4bfaf1),_0x5450a3['preventDefault'](),_0x441b7d['stop']();}},{'context':_0xdadc05});}['_defineClickHandlers'](){const {editor:_0x1c1d4e}=this,{editing:_0x32c836}=_0x1c1d4e;_0x1c1d4e['editing']['view']['addObserver'](_0xdb65b8),_0x1c1d4e['editing']['view']['addObserver'](_0x5bcff3);let _0x49878e=!0x1;this['listenTo'](_0x32c836['view']['document'],'pointerdown',(_0x55ff9e,_0x1a6143)=>{const {target:_0x427785}=_0x1a6143,_0x185e67=_0x32c836['view']['document']['selection'];_0x49878e=!!(_0x427785?.['is']('element','a')&&_0x427785['parent']?.['is']('element','sup')&&_0x427785['parent']['hasClass']('footnote'))&&_0x185e67['getSelectedElement']()===_0x427785['parent'];},{'priority':'high'}),this['listenTo'](_0x32c836['view']['document'],'click',(_0x25e580,_0x22e5f3)=>{const {target:_0x9d7d1b}=_0x22e5f3;if(!_0x9d7d1b?.['is']('element','a'))return;if(_0x9d7d1b['parent']?.['is']('element','sup')&&_0x9d7d1b['parent']['hasClass']('footnote')&&!_0x49878e)return void _0x22e5f3['preventDefault']();let _0x8d9251=_0x9d7d1b['getAttribute']('href');if(!_0x8d9251?.['startsWith']('#'))return;_0x8d9251=_0x8d9251['slice'](0x1);let _0x5194b3=!0x1;(_0x8d9251['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x8d9251['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x8d9251))&&(_0x5194b3=!0x0),_0x5194b3&&(_0x22e5f3['preventDefault'](),_0x25e580['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x4c9c84}={}){return(_0x4d78a6,{writer:_0x19cc6f})=>{if(!g(_0x4d78a6))return null;if(!_0x4c9c84)return _0x19cc6f['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x36c7d4=_0x19cc6f['createContainerElement']('p');return _0x19cc6f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x36c7d4),_0x36c7d4;};}function g(_0x5a26ae){const {parent:_0x41870d}=_0x5a26ae;if(!_0x41870d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x41870d['childCount'])return!0x1;for(const _0x317f79 of _0x5a26ae['getAttributeKeys']())if(!_0x317f79['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x317f79)return!0x1;return!0x0;}function v(_0x3449f7,_0x286b38){if(!_0x3449f7['is']('element','paragraph'))return!0x1;const _0x4cf671=_0x286b38['toViewElement'](_0x3449f7);return!!_0x4cf671&&g(_0x3449f7)!==_0x4cf671['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x30aea7){return _0xdadc05(_0x30aea7)&&_0x30aea7['is']('containerElement')&&!!_0x30aea7['getCustomProperty']('footnotesDefinitions');}function D(_0x3abcce,_0x58bad1={}){const _0xba6dbf=_0x3abcce['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xf4899f=_0x3abcce['createContainerElement']('ol',{'class':'footnotes-list'},_0x3abcce['createSlot']());return _0x3abcce['createContainerElement']('div',{'class':'footnotes',..._0x58bad1},[_0xba6dbf,_0xf4899f]);}function b(_0x59a5dc,_0x234967){const _0x583298=_0x59a5dc['getAttribute']('footnoteId'),_0x30d721=_0x59a5dc['getAttribute']('footnoteCounter'),_0x222f61=_0x234967['createUIElement']('a',{'href':'#'+_0x583298},function(_0x3c4cb4){const _0x312b22=this['toDomElement'](_0x3c4cb4);return _0x312b22['textContent']=_0x30d721,_0x312b22;}),_0x3fd560=_0x234967['createContainerElement']('sup',{'id':'ref-'+_0x583298,'class':'footnote'},[_0x222f61]);return _0x3fd560['getFillerOffset']=()=>null,_0x3fd560;}function y(_0x1cd0b5,_0x5e65be,_0x5e6a65,{dataPipeline:_0x387fd1}={}){const {t:t}=_0x5e6a65,_0x29ac4c=_0x1cd0b5['getAttribute']('footnoteId'),_0x3a0379=_0x5e65be['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x29ac4c},function(_0x2cd07b){const _0xfa8cc2=this['toDomElement'](_0x2cd07b);return _0xfa8cc2['innerText']='^',_0xfa8cc2;}),_0x18e511=_0x387fd1?_0x5e65be['createContainerElement']('div',{'class':'footnote-content'}):_0x3ecac3(_0x5e65be['createEditableElement']('div',{'class':'footnote-content'}),_0x5e65be,{'label':t('Footnote\x20content.')});return _0x5e65be['insert'](_0x5e65be['createPositionAt'](_0x18e511,0x0),_0x5e65be['createSlot']()),_0x5e65be['createContainerElement']('li',{'class':'footnote-definition','id':_0x29ac4c},[_0x3a0379,_0x18e511]);}
|
|
23
|
+
import{Plugin as _0x3d097b}from'ckeditor5/src/core.js';import{isWidget as _0x54a6f9,toWidget as _0x53f4c7,toWidgetEditable as _0x5604d1}from'ckeditor5/src/widget.js';import{uid as _0x2bdbec}from'ckeditor5/src/utils.js';import{PointerObserver as _0x326a78,ClickObserver as _0x55b3a6}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3d7d39}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x427959}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3d097b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3d7d39];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2457e7}=this;_0x2457e7['config']['define']('footnotes.multiBlock',!0x0),_0x2457e7['commands']['add']('insertFootnote',new _0x427959(_0x2457e7)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x17a403){const _0x37be15=_0x3323e4([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]),_0x371c5c=0x47a28506,_0x28d904=0x47a505c6^_0x371c5c,_0x56c188=window[_0x3323e4([0x44,0x61,0x74,0x65])][_0x3323e4([0x6e,0x6f,0x77])](),_0x24dcf3=_0x17a403[_0x3323e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18d5c2=new window[(_0x3323e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138401=>{_0x24dcf3[_0x3323e4([0x6f,0x6e,0x63,0x65])](_0x3323e4([0x72,0x65,0x61,0x64,0x79]),_0x138401);}),_0x20685f={[_0x3323e4([0x6b,0x74,0x79])]:_0x3323e4([0x45,0x43]),[_0x3323e4([0x75,0x73,0x65])]:_0x3323e4([0x73,0x69,0x67]),[_0x3323e4([0x63,0x72,0x76])]:_0x3323e4([0x50,0x2d,0x32,0x35,0x36]),[_0x3323e4([0x78])]:_0x3323e4([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]),[_0x3323e4([0x79])]:_0x3323e4([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]),[_0x3323e4([0x61,0x6c,0x67])]:_0x3323e4([0x45,0x53,0x32,0x35,0x36])},_0x23bc7a=_0x24dcf3[_0x3323e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3323e4([0x67,0x65,0x74])](_0x3323e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c2a27(){let _0xe59f92,_0x573b81=null,_0x2308b2=null;try{if(_0x23bc7a==_0x3323e4([0x47,0x50,0x4c]))return _0x3323e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe59f92=_0x5650ea(),!_0xe59f92)return _0x3323e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe59f92[_0x3323e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2308b2=_0x42fc53(_0xe59f92[_0x3323e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe59f92[_0x3323e4([0x6a,0x74,0x69])])),await _0x5d4383()?_0x14984a()?_0x255125()?_0x3323e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d153a()?(_0xe59f92[_0x3323e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3323e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x573b81=_0x452c7e(_0x3323e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ac4be()):_0x3323e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3323e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3323e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3323e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x255125(){const _0x4a9796=[_0x3323e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3323e4([0x74,0x72,0x69,0x61,0x6c])][_0x3323e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe59f92[_0x3323e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56c188/0x3e8:0xe10*_0x28d904;return _0xe59f92[_0x3323e4([0x65,0x78,0x70])]<_0x4a9796;}function _0x14984a(){const _0x5bfeec=_0xe59f92[_0x3323e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5bfeec&&(!!_0x5bfeec[_0x3323e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3323e4([0x2a]))||!!_0x5bfeec[_0x3323e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3323e4([0x46,0x4f,0x4f])));}function _0x4d153a(){const _0x58d324=_0xe59f92[_0x3323e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58d324||0x0==_0x58d324[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1541e2}=new URL(window[_0x3323e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58d324[_0x3323e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1541e2))return!0x0;const _0x2696f1=_0x1541e2[_0x3323e4([0x73,0x70,0x6c,0x69,0x74])](_0x3323e4([0x2e]));return _0x58d324[_0x3323e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22e663=>_0x22e663[_0x3323e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3323e4([0x2a])))[_0x3323e4([0x6d,0x61,0x70])](_0x28d631=>_0x28d631[_0x3323e4([0x73,0x70,0x6c,0x69,0x74])](_0x3323e4([0x2e])))[_0x3323e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23a1b0=>_0x23a1b0[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2696f1[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3323e4([0x6d,0x61,0x70])](_0xd2a1d8=>Array(_0x2696f1[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd2a1d8[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3323e4([0x66,0x69,0x6c,0x6c])](_0xd2a1d8[0x0]===_0x3323e4([0x2a])?_0x3323e4([0x2a]):'')[_0x3323e4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd2a1d8))[_0x3323e4([0x73,0x6f,0x6d,0x65])](_0x2ed5fd=>_0x2696f1[_0x3323e4([0x65,0x76,0x65,0x72,0x79])]((_0xa1f5b,_0x10b310)=>_0x2ed5fd[_0x10b310]===_0xa1f5b||_0x2ed5fd[_0x10b310]===_0x3323e4([0x2a])));}function _0x3ac4be(){return _0x573b81&&_0x2308b2?new window[(_0x3323e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44573e,_0x45ee69)=>{_0x573b81[_0x3323e4([0x74,0x68,0x65,0x6e])](_0x44573e,_0x45ee69),_0x2308b2[_0x3323e4([0x74,0x68,0x65,0x6e])](_0x3a3604=>{_0x3a3604!=_0x3323e4([0x56,0x61,0x6c,0x69,0x64])&&_0x44573e(_0x3a3604);},_0x45ee69);}):_0x573b81||_0x2308b2||_0x3323e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42fc53(_0x36f21d,_0xcf9381){return new window[(_0x3323e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599202=>{if(_0x3b837a())return _0x599202(_0x3323e4([0x56,0x61,0x6c,0x69,0x64]));_0x181cca(),_0x24dcf3[_0x3323e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3323e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2da2cb=!0x1;const _0x118132=_0x2bdbec();function _0x156bd5(_0xecd73b){return!!_0xecd73b&&(typeof _0xecd73b===_0x3323e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xecd73b===_0x3323e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xecd73b[_0x3323e4([0x74,0x68,0x65,0x6e])]===_0x3323e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xecd73b[_0x3323e4([0x63,0x61,0x74,0x63,0x68])]===_0x3323e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52a885(_0x125a29){_0x141706(_0x125a29)[_0x3323e4([0x74,0x68,0x65,0x6e])](_0x4f093b=>{if(!_0x4f093b||_0x4f093b[_0x3323e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3323e4([0x6f,0x6b]))return _0x3323e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c68e7(_0x4d8067(_0x118132+_0xcf9381))!=_0x4f093b[_0x3323e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3323e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3323e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x3323e4([0x74,0x68,0x65,0x6e])](_0x485586=>(_0x309989(),_0x485586),()=>{const _0x192451=_0x598582();return null==_0x192451?(_0x309989(),_0x3323e4([0x56,0x61,0x6c,0x69,0x64])):_0x3323e4(_0x56c188-_0x192451>(0x63ae0106^_0x371c5c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3323e4([0x74,0x68,0x65,0x6e])](_0x599202)[_0x3323e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x599202(_0x3323e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x471441=0x47946b86^_0x371c5c;function _0x309989(){const _0x53147=_0x3323e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c68e7(_0x4d8067(_0x36f21d)),_0x4ec4bc=_0x270e5f(_0x1c68e7(window[_0x3323e4([0x4d,0x61,0x74,0x68])][_0x3323e4([0x63,0x65,0x69,0x6c])](_0x56c188/_0x471441)));window[_0x3323e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3323e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53147,_0x4ec4bc);}function _0x598582(){const _0x586267=_0x3323e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c68e7(_0x4d8067(_0x36f21d)),_0x72cb47=window[_0x3323e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3323e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x586267);return _0x72cb47?window[_0x3323e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x270e5f(_0x72cb47),0x10)*_0x471441:null;}function _0x141706(_0x376ee2){return new window[(_0x3323e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57a187,_0x3473a9)=>{_0x376ee2[_0x3323e4([0x74,0x68,0x65,0x6e])](_0x57a187,_0x3473a9),window[_0x3323e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3473a9,0x47a351c6^_0x371c5c);});}}_0x24dcf3[_0x3323e4([0x6f,0x6e])](_0x3323e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x948732,_0x2f0c7d)=>{if(_0x2f0c7d[0x0]!=_0x36f21d)return _0x599202(_0x3323e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f0c7d[0x1]={..._0x2f0c7d[0x1],[_0x3323e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x118132};},{[_0x3323e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3323e4([0x68,0x69,0x67,0x68])}),_0x24dcf3[_0x3323e4([0x6f,0x6e])](_0x3323e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x473c0f=>{_0x156bd5(_0x473c0f[_0x3323e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2da2cb=!0x0,_0x52a885(_0x473c0f[_0x3323e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3323e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3323e4([0x6c,0x6f,0x77])}),_0x18d5c2[_0x3323e4([0x74,0x68,0x65,0x6e])](()=>{_0x2da2cb||_0x599202(_0x3323e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b837a(){return _0x24dcf3[_0x3323e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3323e4([0x76,0x69,0x65,0x77])][_0x3323e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3323e4([0x61,0x75,0x74,0x6f]);}function _0x181cca(){_0x24dcf3[_0x3323e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3323e4([0x76,0x69,0x65,0x77])][_0x3323e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3323e4([0x61,0x75,0x74,0x6f]);}}function _0x452c7e(_0x22b29f){const _0x2d63ba=[new window[(_0x3323e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5fa8c1=>setTimeout(_0x5fa8c1,0x47abbbca^_0x371c5c)),_0x18d5c2[_0x3323e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3323e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41c24f=>{let _0x1c2844=0x0;_0x24dcf3[_0x3323e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3323e4([0x6f,0x6e])](_0x3323e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e5834,_0x14d3ba)=>{_0x14d3ba[0x0][_0x3323e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c2844++,_0x1c2844==(0x47a280ee^_0x371c5c)&&(_0x41c24f(),_0x3e5834[_0x3323e4([0x6f,0x66,0x66])]());});}))];return window[_0x3323e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3323e4([0x72,0x61,0x63,0x65])](_0x2d63ba)[_0x3323e4([0x74,0x68,0x65,0x6e])](()=>_0x22b29f);}async function _0x1f9d3c(){await _0x18d5c2,_0x24dcf3[_0x3323e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3323e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20a227,_0x24dcf3[_0x3323e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3323e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20a227,_0x24dcf3[_0x3323e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3323e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xdd7e18(_0x2d6bc5){const _0x16fb4e=_0x5e04a5();_0x24dcf3[_0x16fb4e]=_0x3323e4([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d6bc5,_0x2d6bc5!=_0x3323e4([0x56,0x61,0x6c,0x69,0x64])&&_0x1f9d3c();}function _0x5e04a5(){const _0x41b8e1=window[_0x3323e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3323e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3323e4([0x6e,0x6f,0x77])]())[_0x3323e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3323e4([0x2e]),'');let _0x312321=_0x3323e4([0x75]);for(let _0x1d2534=0x0;_0x1d2534<_0x41b8e1[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d2534+=0x2){let _0x17ba70=window[_0x3323e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41b8e1[_0x3323e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d2534,_0x1d2534+0x2));_0x17ba70>=_0x37be15[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17ba70-=_0x37be15[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x312321+=_0x37be15[_0x17ba70];}return _0x312321;}function _0x5650ea(){const _0x2da405=_0x23bc7a[_0x3323e4([0x73,0x70,0x6c,0x69,0x74])](_0x3323e4([0x2e]));if(0x3!=_0x2da405[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d0c04(_0x2da405[0x1]);function _0x5d0c04(_0x3a25e6){const _0x31203f=_0x11d511(_0x3a25e6);return _0x31203f&&_0x1bc009()?_0x31203f:null;function _0x1bc009(){const _0x10d0e3=_0x31203f[_0x3323e4([0x6a,0x74,0x69])],_0x128557=window[_0x3323e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10d0e3[_0x3323e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10d0e3[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ad14a={..._0x31203f,[_0x3323e4([0x6a,0x74,0x69])]:_0x10d0e3[_0x3323e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10d0e3[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ad14a[_0x3323e4([0x76,0x63])],_0x4d8067(_0x4ad14a)==_0x128557;}}}async function _0x5d4383(){let _0x11adbb=!0x0;try{const _0x11f1c9=_0x23bc7a[_0x3323e4([0x73,0x70,0x6c,0x69,0x74])](_0x3323e4([0x2e])),[_0xec2422,_0x130f57,_0x2e184b]=_0x11f1c9;return _0x48b60a(_0xec2422),await _0x4947f1(_0xec2422,_0x130f57,_0x2e184b),_0x11adbb;}catch{return!0x1;}function _0x48b60a(_0x1a8ea2){const _0x336a0c=_0x11d511(_0x1a8ea2);_0x336a0c&&_0x336a0c[_0x3323e4([0x61,0x6c,0x67])]==_0x3323e4([0x45,0x53,0x32,0x35,0x36])||(_0x11adbb=!0x1);}async function _0x4947f1(_0x197173,_0x3fb23b,_0x119ff5){const _0x5b8a11=window[_0x3323e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3323e4([0x66,0x72,0x6f,0x6d])](_0x206832(_0x119ff5),_0x428f12=>_0x428f12[_0x3323e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1040b1=new window[(_0x3323e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3323e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x197173+_0x3323e4([0x2e])+_0x3fb23b),_0x5c7cfc=window[_0x3323e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3323e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c7cfc)return;const _0x2ecb26=await _0x5c7cfc[_0x3323e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3323e4([0x6a,0x77,0x6b]),_0x20685f,{[_0x3323e4([0x6e,0x61,0x6d,0x65])]:_0x3323e4([0x45,0x43,0x44,0x53,0x41]),[_0x3323e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3323e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3323e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c7cfc[_0x3323e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3323e4([0x6e,0x61,0x6d,0x65])]:_0x3323e4([0x45,0x43,0x44,0x53,0x41]),[_0x3323e4([0x68,0x61,0x73,0x68])]:{[_0x3323e4([0x6e,0x61,0x6d,0x65])]:_0x3323e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ecb26,_0x5b8a11,_0x1040b1)||(_0x11adbb=!0x1);}}function _0x11d511(_0x279037){return _0x279037[_0x3323e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3323e4([0x65,0x79]))?JSON[_0x3323e4([0x70,0x61,0x72,0x73,0x65])](_0x206832(_0x279037)):null;}function _0x206832(_0x35b31c){return window[_0x3323e4([0x61,0x74,0x6f,0x62])](_0x35b31c[_0x3323e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3323e4([0x2b]))[_0x3323e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3323e4([0x2f])));}function _0x4d8067(_0x111bfb){let _0x26f478=0x1505;function _0x2c253c(_0x109900){for(let _0x3016cd=0x0;_0x3016cd<_0x109900[_0x3323e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3016cd++){const _0x1e6990=_0x109900[_0x3323e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3016cd);_0x26f478=(_0x26f478<<0x5)+_0x26f478+_0x1e6990,_0x26f478&=_0x26f478;}}function _0xd4ff74(_0x36f183){Array[_0x3323e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36f183)?_0x36f183[_0x3323e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd4ff74):_0x36f183&&typeof _0x36f183==_0x3323e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3323e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36f183)[_0x3323e4([0x73,0x6f,0x72,0x74])]()[_0x3323e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2dd30d,_0x2b4a98])=>{_0x2c253c(_0x2dd30d),_0xd4ff74(_0x2b4a98);}):_0x2c253c(window[_0x3323e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36f183));}return _0xd4ff74(_0x111bfb),_0x26f478>>>0x0;}function _0x1c68e7(_0x219a35){return _0x219a35[_0x3323e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3323e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3323e4([0x30]));}function _0x270e5f(_0x44041c){return _0x44041c[_0x3323e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3323e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3323e4([0x6a,0x6f,0x69,0x6e])]('');}function _0x20a227(){}function _0x3323e4(_0x176b29){return _0x176b29['map'](_0x40f80c=>String['fromCharCode'](_0x40f80c))['join']('');}_0xdd7e18(await _0x3c2a27());}(this);}['_moveSelectionToFootnoteDefinition'](_0xdc48cf){const {plugins:_0x5f1b14,editing:_0x51cf1b,model:_0x155f95}=this['editor'],_0x8ee4f2=_0x5f1b14['get'](_0x3d7d39)['getFootnote'](_0xdc48cf);return!!_0x8ee4f2&&(_0x155f95['change'](_0x23a56e=>{_0x23a56e['setSelection'](_0x23a56e['createPositionAt'](_0x8ee4f2['definition'],'end'));}),_0x51cf1b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3c85c3){const {plugins:_0x466f67,editing:_0x21facc,model:_0x2b58dc}=this['editor'],_0x20921d=_0x466f67['get'](_0x3d7d39)['getFootnote'](_0x3c85c3);return!!_0x20921d&&(_0x2b58dc['change'](_0x2d6b04=>{_0x2d6b04['setSelection'](_0x20921d['reference'],'on');}),_0x21facc['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x7633bb}=this['editor']['model'],_0x1818fa=this['editor']['config']['get']('footnotes.multiBlock');_0x7633bb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x7633bb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x7633bb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1818fa?_0x7633bb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x7633bb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x7633bb['addChildCheck'](_0x1192d6=>{for(const _0x149683 of _0x1192d6)if('footnoteDefinition'===_0x149683['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xea855e}=this,{conversion:_0x3bc885,editing:_0xedeb8b}=_0xea855e,{t:t}=_0xea855e['locale'];_0x3bc885['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5e9ff7,{writer:_0x41fb88,consumable:_0x14432f})=>{const _0x560bc3=_0x5e9ff7['getChild'](0x0);if(!_0x560bc3||!_0x560bc3['is']('element','a'))return null;const _0x33eba2=_0x560bc3['getAttribute']('href')||'';if(!_0x33eba2['startsWith']('#'))return null;const _0x1f9b0c=_0x33eba2['replace'](/^#/,'');if(!_0x1f9b0c)return null;_0x14432f['consume'](_0x560bc3,{'name':!0x0,'attributes':['href']});for(const {item:_0x5950d2}of _0xedeb8b['view']['createRangeIn'](_0x560bc3))_0x5950d2['is']('$textProxy')?_0x14432f['consume'](_0x5950d2['textNode'],{'name':!0x0}):_0x5950d2['is']('element')&&_0x14432f['consume'](_0x5950d2,{'name':!0x0});return _0x41fb88['createElement']('footnoteRef',{'footnoteId':_0x1f9b0c});}}),_0x3bc885['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5c26cd,{writer:_0xa2732e})=>b(_0x5c26cd,_0xa2732e)}),_0x3bc885['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4fa44f,{writer:_0x206627})=>{const _0x4695fd=_0x4fa44f['getAttribute']('footnoteCounter');return _0x53f4c7(b(_0x4fa44f,_0x206627),_0x206627,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4695fd)});}});}['_defineDefinitionsConverters'](){const {editor:_0x42d53c}=this,{t:t}=_0x42d53c['locale'],{conversion:_0xb6b122}=_0x42d53c;_0xb6b122['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xb6b122['for']('upcast')['add'](_0x3ee5bf=>{_0x3ee5bf['on']('element:ol',(_0x1129a0,_0x2f1ff7,_0x1c52f7)=>{const _0x2a52c6=_0x2f1ff7['viewItem'];if(!_0x2a52c6['hasClass']('footnotes-list')||!_0x2f1ff7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1c52f7['consumable']['consume'](_0x2a52c6,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3b6883,modelCursor:_0x4efb06}=_0x1c52f7['convertChildren'](_0x2f1ff7['viewItem'],_0x2f1ff7['modelCursor']);_0x2f1ff7['modelRange']=_0x3b6883,_0x2f1ff7['modelCursor']=_0x4efb06;}),_0x3ee5bf['on']('element:hr',(_0x1d7889,_0x55bbed,_0x2e6fe5)=>{const _0x4ace9b=_0x55bbed['viewItem'];_0x4ace9b['hasClass']('footnotes-divider')&&_0x55bbed['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2e6fe5['consumable']['consume'](_0x4ace9b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xb6b122['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4a9357,{writer:_0x39cff6})=>D(_0x39cff6)}),_0xb6b122['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3598b3,{writer:_0xf1219c})=>{const _0x19db3d=D(_0xf1219c,{'data-footnotes-list-label':t('Footnotes')}),_0x12c5eb=_0x53f4c7(_0x19db3d,_0xf1219c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xf1219c['setCustomProperty']('footnotesDefinitions',!0x0,_0x12c5eb),_0x12c5eb;}});}['_defineDefinitionConverters'](){const {editor:_0x504d3f}=this,{conversion:_0x4cad41,locale:_0xbeb897}=_0x504d3f,_0x4fa981=_0x504d3f['config']['get']('footnotes.multiBlock');_0x4cad41['for']('upcast')['add'](_0x2e2cfc=>{_0x2e2cfc['on']('element:li',(_0x42d659,_0x11ec70,_0x375237)=>{const _0x3c0361=_0x11ec70['viewItem'];if(!_0x3c0361['hasClass']('footnote-definition')||!_0x3c0361['getAttribute']('id'))return;const _0x55e7ad=_0x3c0361['parent'];if(!_0x55e7ad['is']('element','ol')||!_0x55e7ad['hasClass']('footnotes-list'))return;if(!_0x375237['consumable']['test'](_0x3c0361,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1bfde1=_0x375237['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3c0361['getAttribute']('id')});if(!_0x375237['safeInsert'](_0x1bfde1,_0x11ec70['modelCursor']))return;_0x375237['consumable']['consume'](_0x3c0361,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x51d7a0=Array['from'](_0x3c0361['getChildren']())['find'](_0x59a4ad=>_0x59a4ad['is']('element')&&_0x59a4ad['hasClass']('footnote-content'));for(const _0x2a3787 of _0x3c0361['getChildren']())_0x2a3787['is']('element')&&(_0x375237['consumable']['consume'](_0x2a3787,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x375237['consumable']['consume'](_0x2a3787,{'name':!0x0,'classes':'footnote-content'}));if(_0x51d7a0){if(_0x4fa981)_0x375237['convertChildren'](_0x51d7a0,_0x1bfde1);else{const _0x1996c5=_0x375237['writer']['createElement']('footnoteInlineContent');_0x375237['writer']['insert'](_0x1996c5,_0x1bfde1),_0x375237['convertChildren'](_0x51d7a0,_0x1996c5);}}_0x375237['updateConversionResult'](_0x1bfde1,_0x11ec70);});}),_0x4cad41['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xb308f5,{writer:_0x2db06b})=>y(_0xb308f5,_0x2db06b,_0xbeb897,{'dataPipeline':!0x0})}),_0x4cad41['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x273783,{writer:_0x849b2f})=>y(_0x273783,_0x849b2f,_0xbeb897)});}['_defineBogusParagraphConverters'](){const {editor:_0x2f99ed}=this,{conversion:_0x23d041}=_0x2f99ed;_0x2f99ed['config']['get']('footnotes.multiBlock')?(_0x23d041['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x23d041['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2f99ed['model']['document'],'change:data',()=>{!function(_0x1a8cb2,_0x1a6de4){const _0x4698cc=_0x1a8cb2['document']['differ'],_0x5352d0=new Set();for(const _0x301a9e of _0x4698cc['getChanges']()){const _0x5ddc39='attribute'==_0x301a9e['type']?_0x301a9e['range']['start']['parent']:_0x301a9e['position']['parent'];_0x5ddc39['is']('element','footnoteDefinition')&&_0x5352d0['add'](_0x5ddc39);}for(const _0x38ba3d of _0x5352d0['values']()){const _0x2a7edd=Array['from'](_0x38ba3d['getChildren']())['filter'](_0x132464=>v(_0x132464,_0x1a6de4['mapper']));for(const _0x22106a of _0x2a7edd)_0x1a6de4['reconvertItem'](_0x22106a);}}(_0x2f99ed['model'],_0x2f99ed['editing']);})):(_0x23d041['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x23d041['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5f48c3,{writer:_0x28b86a})=>{const _0x53691d=_0x28b86a['createContainerElement']('span');return _0x28b86a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x53691d),_0x53691d;}}));}['_defineKeyboardHandlers'](){const {editor:_0x144aa1}=this,{editing:_0x413e26,t:t}=_0x144aa1,_0xb7ff7f=_0x144aa1['model']['document']['selection'];_0x144aa1['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x144aa1['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x413e26['view']['document'],'enter',(_0x3aa100,_0x345f51)=>{const _0x1a8233=function(_0x5444b1){const _0x49e0c5=_0x5444b1['getSelectedElement']();if(_0x49e0c5?.['is']('element','footnoteRef'))return _0x49e0c5;return null;}(_0xb7ff7f);if(_0x1a8233){const _0x3b8d3a=_0x1a8233['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3b8d3a),_0x345f51['preventDefault'](),_0x3aa100['stop']();}},{'context':_0x54a6f9});}['_defineClickHandlers'](){const {editor:_0x1d814b}=this,{editing:_0x3894fa}=_0x1d814b;_0x1d814b['editing']['view']['addObserver'](_0x326a78),_0x1d814b['editing']['view']['addObserver'](_0x55b3a6);let _0x4f868b=!0x1;this['listenTo'](_0x3894fa['view']['document'],'pointerdown',(_0x359b71,_0x3ffd37)=>{const {target:_0x57c73d}=_0x3ffd37,_0x3ba830=_0x3894fa['view']['document']['selection'];_0x4f868b=!!(_0x57c73d?.['is']('element','a')&&_0x57c73d['parent']?.['is']('element','sup')&&_0x57c73d['parent']['hasClass']('footnote'))&&_0x3ba830['getSelectedElement']()===_0x57c73d['parent'];},{'priority':'high'}),this['listenTo'](_0x3894fa['view']['document'],'click',(_0x442c5a,_0xe56bc1)=>{const {target:_0x3f765b}=_0xe56bc1;if(!_0x3f765b?.['is']('element','a'))return;if(_0x3f765b['parent']?.['is']('element','sup')&&_0x3f765b['parent']['hasClass']('footnote')&&!_0x4f868b)return void _0xe56bc1['preventDefault']();let _0xd64f27=_0x3f765b['getAttribute']('href');if(!_0xd64f27?.['startsWith']('#'))return;_0xd64f27=_0xd64f27['slice'](0x1);let _0x431ef=!0x1;(_0xd64f27['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xd64f27['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xd64f27))&&(_0x431ef=!0x0),_0x431ef&&(_0xe56bc1['preventDefault'](),_0x442c5a['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x48f0f7}={}){return(_0x4f646d,{writer:_0x59443c})=>{if(!g(_0x4f646d))return null;if(!_0x48f0f7)return _0x59443c['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x137d24=_0x59443c['createContainerElement']('p');return _0x59443c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x137d24),_0x137d24;};}function g(_0x197a6b){const {parent:_0x5de024}=_0x197a6b;if(!_0x5de024?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5de024['childCount'])return!0x1;for(const _0x209d45 of _0x197a6b['getAttributeKeys']())if(!_0x209d45['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x209d45)return!0x1;return!0x0;}function v(_0x448451,_0xe25750){if(!_0x448451['is']('element','paragraph'))return!0x1;const _0x4a2eb7=_0xe25750['toViewElement'](_0x448451);return!!_0x4a2eb7&&g(_0x448451)!==_0x4a2eb7['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x5266d6){return _0x54a6f9(_0x5266d6)&&_0x5266d6['is']('containerElement')&&!!_0x5266d6['getCustomProperty']('footnotesDefinitions');}function D(_0x2dcce6,_0x1bbe0f={}){const _0x59a7c6=_0x2dcce6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1009ac=_0x2dcce6['createContainerElement']('ol',{'class':'footnotes-list'},_0x2dcce6['createSlot']());return _0x2dcce6['createContainerElement']('div',{'class':'footnotes',..._0x1bbe0f},[_0x59a7c6,_0x1009ac]);}function b(_0x45d01a,_0xb2a9b9){const _0x713a3b=_0x45d01a['getAttribute']('footnoteId'),_0x3b3bbc=_0x45d01a['getAttribute']('footnoteCounter'),_0x5c5c7c=_0xb2a9b9['createUIElement']('a',{'href':'#'+_0x713a3b},function(_0x13117f){const _0x58a46a=this['toDomElement'](_0x13117f);return _0x58a46a['textContent']=_0x3b3bbc,_0x58a46a;}),_0x59ba3c=_0xb2a9b9['createContainerElement']('sup',{'id':'ref-'+_0x713a3b,'class':'footnote'},[_0x5c5c7c]);return _0x59ba3c['getFillerOffset']=()=>null,_0x59ba3c;}function y(_0x1300ee,_0x318add,_0x4c94f4,{dataPipeline:_0x263593}={}){const {t:t}=_0x4c94f4,_0x548d86=_0x1300ee['getAttribute']('footnoteId'),_0x58afdc=_0x318add['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x548d86},function(_0x3e2def){const _0x164655=this['toDomElement'](_0x3e2def);return _0x164655['innerText']='^',_0x164655;}),_0x391f99=_0x263593?_0x318add['createContainerElement']('div',{'class':'footnote-content'}):_0x5604d1(_0x318add['createEditableElement']('div',{'class':'footnote-content'}),_0x318add,{'label':t('Footnote\x20content.')});return _0x318add['insert'](_0x318add['createPositionAt'](_0x391f99,0x0),_0x318add['createSlot']()),_0x318add['createContainerElement']('li',{'class':'footnote-definition','id':_0x548d86},[_0x58afdc,_0x391f99]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21cf27=_0x5547;(function(_0x199784,_0x43a53d){const _0x4d2e5e=_0x5547,_0x384b86=_0x199784();while(!![]){try{const _0x1d7a2e=-parseInt(_0x4d2e5e(0x1f0))/0x1+-parseInt(_0x4d2e5e(0x1ec))/0x2*(-parseInt(_0x4d2e5e(0x1f7))/0x3)+parseInt(_0x4d2e5e(0x1f2))/0x4*(-parseInt(_0x4d2e5e(0x202))/0x5)+-parseInt(_0x4d2e5e(0x1ff))/0x6*(-parseInt(_0x4d2e5e(0x1eb))/0x7)+parseInt(_0x4d2e5e(0x200))/0x8*(-parseInt(_0x4d2e5e(0x1fe))/0x9)+parseInt(_0x4d2e5e(0x1f5))/0xa+parseInt(_0x4d2e5e(0x1fa))/0xb*(parseInt(_0x4d2e5e(0x1f1))/0xc);if(_0x1d7a2e===_0x43a53d)break;else _0x384b86['push'](_0x384b86['shift']());}catch(_0x4db50f){_0x384b86['push'](_0x384b86['shift']());}}}(_0x1a56,0x971e3));function _0x5547(_0x59abea,_0x17cb2c){const _0x1a56ac=_0x1a56();return _0x5547=function(_0x554736,_0x130eb7){_0x554736=_0x554736-0x1e9;let _0x42b68f=_0x1a56ac[_0x554736];return _0x42b68f;},_0x5547(_0x59abea,_0x17cb2c);}import{Command as _0x3f62b1}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x5c58db}from'../../footnotestracker.js';function _0x1a56(){const _0x1d3865=['isInteger','26820UVZTTg','isEnabled','footnotesListStart','2212GwKrIe','2GxpWKD','getFootnotesDefinitionsObjectElement','refresh','setAttribute','860478WSBzHq','8044980sFrwhX','92PJEXRQ','_updateFootnotesCounters','get','2610830PRNpvn','value','506289OKfsGF','model','execute','33JKYXnb','plugins','getAttribute','change','213102IHvajo','5214IdNHvM','376tBMXhr'];_0x1a56=function(){return _0x1d3865;};return _0x1a56();}export class FootnotesStartCommand extends _0x3f62b1{[_0x21cf27(0x1ee)](){const _0x1c2365=_0x21cf27,{editor:_0x13de93}=this,_0x1b0ddd=_0x13de93[_0x1c2365(0x1fb)][_0x1c2365(0x1f4)](_0x5c58db)[_0x1c2365(0x1ed)]();this[_0x1c2365(0x1e9)]=!!_0x1b0ddd,this[_0x1c2365(0x1f6)]=_0x1b0ddd?.[_0x1c2365(0x1fc)](_0x1c2365(0x1ea))??null;}[_0x21cf27(0x1f9)]({value:_0x48f030}){const _0x3c7474=_0x21cf27,{editor:_0x17c8c6}=this,_0x1aa4fb=_0x17c8c6[_0x3c7474(0x1fb)][_0x3c7474(0x1f4)](_0x5c58db),_0x5bb949=_0x1aa4fb[_0x3c7474(0x1ed)]();_0x5bb949&&Number[_0x3c7474(0x201)](_0x48f030)&&_0x17c8c6[_0x3c7474(0x1f8)][_0x3c7474(0x1fd)](_0xa3ebd3=>{const _0x170448=_0x3c7474;_0xa3ebd3[_0x170448(0x1ef)](_0x170448(0x1ea),_0x48f030,_0x5bb949),_0x1aa4fb[_0x170448(0x1f3)](_0xa3ebd3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22f71e=_0x5336;(function(_0x3abed5,_0xdb34f9){const _0x4980aa=_0x5336,_0x424414=_0x3abed5();while(!![]){try{const _0x440d9d=-parseInt(_0x4980aa(0x192))/0x1+parseInt(_0x4980aa(0x194))/0x2+parseInt(_0x4980aa(0x198))/0x3+-parseInt(_0x4980aa(0x18b))/0x4+-parseInt(_0x4980aa(0x19a))/0x5+parseInt(_0x4980aa(0x18c))/0x6+parseInt(_0x4980aa(0x188))/0x7*(parseInt(_0x4980aa(0x185))/0x8);if(_0x440d9d===_0xdb34f9)break;else _0x424414['push'](_0x424414['shift']());}catch(_0x3bd05d){_0x424414['push'](_0x424414['shift']());}}}(_0x57b4,0xbf89d));import{Command as _0x5b652a}from'ckeditor5/src/core.js';function _0x5336(_0x8ff47b,_0x481d12){const _0x57b4ed=_0x57b4();return _0x5336=function(_0x5336d2,_0x206769){_0x5336d2=_0x5336d2-0x185;let _0x5822fe=_0x57b4ed[_0x5336d2];return _0x5822fe;},_0x5336(_0x8ff47b,_0x481d12);}import{FOOTNOTES_DEFINITIONS_STYLES as _0x555a85}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0xb32e13}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x5b652a{[_0x22f71e(0x18a)](){const _0x482700=_0x22f71e,{editor:_0x567d0a}=this,_0x10987a=_0x567d0a[_0x482700(0x18f)][_0x482700(0x191)](_0xb32e13)[_0x482700(0x190)]();this[_0x482700(0x196)]=!!_0x10987a,this[_0x482700(0x195)]=_0x10987a?.[_0x482700(0x18d)](_0x482700(0x193))??null;}[_0x22f71e(0x199)]({value:_0x5322b6}){const _0x555528=_0x22f71e,{editor:_0x7b371d}=this,_0x394b49=_0x7b371d[_0x555528(0x18f)][_0x555528(0x191)](_0xb32e13),_0x1dd57c=_0x394b49[_0x555528(0x190)]();_0x1dd57c&&_0x555a85[_0x555528(0x187)](_0x5322b6)&&_0x7b371d[_0x555528(0x18e)][_0x555528(0x197)](_0x598891=>{const _0x2ddae9=_0x555528;_0x598891[_0x2ddae9(0x186)](_0x2ddae9(0x193),_0x5322b6,_0x1dd57c),_0x394b49[_0x2ddae9(0x189)](_0x598891);});}}function _0x57b4(){const _0xd5677d=['1119547HpzaVC','footnotesListStyle','1025894QFfVte','value','isEnabled','change','777339VRShBn','execute','435845zvwnzf','4658968ZGEnXe','setAttribute','includes','7WLjLQT','_updateFootnotesCounters','refresh','124264HKEAje','4007352zJbGRc','getAttribute','model','plugins','getFootnotesDefinitionsObjectElement','get'];_0x57b4=function(){return _0xd5677d;};return _0x57b4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x17f316=_0x5c78;function _0x5c78(_0x298ca1,_0x63a030){const _0xb13d0a=_0xb13d();return _0x5c78=function(_0x5c785a,_0x4ae25f){_0x5c785a=_0x5c785a-0x199;let _0x4d4c12=_0xb13d0a[_0x5c785a];return _0x4d4c12;},_0x5c78(_0x298ca1,_0x63a030);}(function(_0x4d5b54,_0x3ce677){const _0xdbd504=_0x5c78,_0x3c2e4e=_0x4d5b54();while(!![]){try{const _0x143fa6=-parseInt(_0xdbd504(0x1a8))/0x1+-parseInt(_0xdbd504(0x1a0))/0x2*(-parseInt(_0xdbd504(0x1a6))/0x3)+parseInt(_0xdbd504(0x19a))/0x4+-parseInt(_0xdbd504(0x19d))/0x5+-parseInt(_0xdbd504(0x19c))/0x6*(parseInt(_0xdbd504(0x19b))/0x7)+-parseInt(_0xdbd504(0x19f))/0x8+parseInt(_0xdbd504(0x19e))/0x9;if(_0x143fa6===_0x3ce677)break;else _0x3c2e4e['push'](_0x3c2e4e['shift']());}catch(_0x31e615){_0x3c2e4e['push'](_0x3c2e4e['shift']());}}}(_0xb13d,0xa7a66));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x17f316(0x1a3),_0x17f316(0x1a9),_0x17f316(0x199),_0x17f316(0x1a4),_0x17f316(0x1a1),_0x17f316(0x1a7),_0x17f316(0x1a2),_0x17f316(0x1a5)];function _0xb13d(){const _0x57a4a0=['2713340PqyNyl','15725619sJmexV','4437040eEepZy','78830zAMJMJ','lower-alpha','lower-roman','decimal','upper-latin','upper-roman','69HttYcm','upper-alpha','885586CzJZbR','decimal-leading-zero','lower-latin','3481744OKbHdR','58086zTXuvp','618YjApEz'];_0xb13d=function(){return _0x57a4a0;};return _0xb13d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xbfb6dc=_0x4b39;(function(_0xce5699,_0xb59de2){const _0x4eed3b=_0x4b39,_0xea3c07=_0xce5699();while(!![]){try{const _0x2a852f=parseInt(_0x4eed3b(0xd7))/0x1*(-parseInt(_0x4eed3b(0x86))/0x2)+parseInt(_0x4eed3b(0x9a))/0x3*(parseInt(_0x4eed3b(0x8c))/0x4)+-parseInt(_0x4eed3b(0x8e))/0x5*(parseInt(_0x4eed3b(0x7d))/0x6)+parseInt(_0x4eed3b(0xb8))/0x7+parseInt(_0x4eed3b(0x94))/0x8*(parseInt(_0x4eed3b(0xa7))/0x9)+-parseInt(_0x4eed3b(0x9f))/0xa+parseInt(_0x4eed3b(0xcb))/0xb*(parseInt(_0x4eed3b(0xca))/0xc);if(_0x2a852f===_0xb59de2)break;else _0xea3c07['push'](_0xea3c07['shift']());}catch(_0xa93cc0){_0xea3c07['push'](_0xea3c07['shift']());}}}(_0x5b32,0xef93b));import{Plugin as _0x307304}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x424b41}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x20b4d9}from'./commands/footnotesstartcommand.js';function _0x4b39(_0x765394,_0x118ed8){const _0x5b3288=_0x5b32();return _0x4b39=function(_0x4b39ba,_0x17706a){_0x4b39ba=_0x4b39ba-0x78;let _0x5bd7b5=_0x5b3288[_0x4b39ba];return _0x5bd7b5;},_0x4b39(_0x765394,_0x118ed8);}import{FootnotesTracker as _0x362386}from'../footnotestracker.js';import{FootnotesEditing as _0x317dba}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x307304{static get[_0xbfb6dc(0xc5)](){const _0x23acde=_0xbfb6dc;return _0x23acde(0xa2);}static get[_0xbfb6dc(0xc1)](){return[_0x317dba,_0x362386];}static get[_0xbfb6dc(0x9b)](){return!0x0;}static get[_0xbfb6dc(0xb6)](){return!0x0;}[_0xbfb6dc(0xd6)](){const _0x26151f=_0xbfb6dc,{editor:_0x29719f}=this;_0x29719f[_0x26151f(0xa8)][_0x26151f(0xb2)](_0x26151f(0xc2),_0x26151f(0xc6)),_0x29719f[_0x26151f(0xa8)][_0x26151f(0xb2)](_0x26151f(0xc3),0x1),_0x29719f[_0x26151f(0x7c)][_0x26151f(0x87)](_0x26151f(0x89),new _0x424b41(_0x29719f)),_0x29719f[_0x26151f(0x7c)][_0x26151f(0x87)](_0x26151f(0xa6),new _0x20b4d9(_0x29719f)),this[_0x26151f(0x7e)](),this[_0x26151f(0xb5)](),this[_0x26151f(0x99)](),this[_0x26151f(0xdc)]();}[_0xbfb6dc(0x7e)](){const _0x427cd8=_0xbfb6dc,{editor:_0x111faa}=this,{schema:_0x2cab00}=_0x111faa[_0x427cd8(0xd8)];_0x2cab00[_0x427cd8(0x7b)](_0x427cd8(0x95),{'allowAttributes':[_0x427cd8(0xc4),_0x427cd8(0x90)]});}[_0xbfb6dc(0xb5)](){const _0x5798b1=_0xbfb6dc,{editor:_0xd3ed61}=this,{conversion:_0x2bc7e6,model:_0x11e4b0}=_0xd3ed61,{schema:_0x33c75f}=_0x11e4b0;_0x2bc7e6[_0x5798b1(0xa0)](_0x5798b1(0xbf))[_0x5798b1(0x87)](_0x932acd=>{const _0x23719d=_0x5798b1;_0x932acd['on'](_0x23719d(0xbc),(_0x1d31c0,_0x3aab12,_0x1aeda0)=>{const _0x18c3db=_0x23719d,_0x495b76=_0x3aab12[_0x18c3db(0x8f)],_0x138a4a=_0x3aab12[_0x18c3db(0xbd)]?.[_0x18c3db(0x93)];_0x495b76[_0x18c3db(0x8b)](_0x18c3db(0xc0))&&_0x138a4a?.['is'](_0x18c3db(0xa3),_0x18c3db(0x95))&&(function(_0x24de0d,_0x20db9c,_0x595185,_0x503bcc){const _0xf9ed73=_0x18c3db;if(!_0x503bcc[_0xf9ed73(0xcd)](_0x20db9c,_0xf9ed73(0x90)))return;let _0x4e4bb4=0x1;const _0x17ca80=_0x595185[_0xf9ed73(0xa5)][_0xf9ed73(0x92)](_0x24de0d,{'attributes':_0xf9ed73(0xd2)});if(_0x17ca80){const _0x3ff0cf=Number[_0xf9ed73(0xdb)](_0x24de0d[_0xf9ed73(0xaa)](_0xf9ed73(0xd2)),0xa);Number[_0xf9ed73(0xbb)](_0x3ff0cf)||(_0x4e4bb4=_0x3ff0cf);}!_0x17ca80&&_0x20db9c[_0xf9ed73(0xcf)](_0xf9ed73(0x90))||_0x595185[_0xf9ed73(0xab)][_0xf9ed73(0xcc)](_0xf9ed73(0x90),_0x4e4bb4,_0x20db9c);}(_0x495b76,_0x138a4a,_0x1aeda0,_0x33c75f),function(_0x82b4f4,_0x552516,_0x3dbc9e,_0x44d6cb){const _0x45d7d4=_0x18c3db;if(!_0x44d6cb[_0x45d7d4(0xcd)](_0x552516,_0x45d7d4(0xc4)))return;let _0x4c4425=_0x45d7d4(0xc6),_0x3cee42=!0x1;if(_0x3dbc9e[_0x45d7d4(0xa5)][_0x45d7d4(0x92)](_0x82b4f4,{'attributes':_0x45d7d4(0xce)})){const _0x1052c6={0x1:_0x45d7d4(0xc6),'a':_0x45d7d4(0x82),'A':_0x45d7d4(0x9e),'i':_0x45d7d4(0xd1),'I':_0x45d7d4(0xd4)}[_0x82b4f4[_0x45d7d4(0xaa)](_0x45d7d4(0xce))];_0x1052c6&&(_0x4c4425=_0x1052c6),_0x3cee42=!0x0;}_0x3dbc9e[_0x45d7d4(0xa5)][_0x45d7d4(0x92)](_0x82b4f4,{'styles':_0x45d7d4(0xa4)})&&(_0x4c4425=function(_0x29a221){const _0x4cbc3d=_0x45d7d4;switch(_0x29a221){case _0x4cbc3d(0x82):return _0x4cbc3d(0xae);case _0x4cbc3d(0x9e):return _0x4cbc3d(0xb4);default:return _0x29a221;}}(_0x82b4f4[_0x45d7d4(0xd3)](_0x45d7d4(0xa4))),_0x3cee42=!0x0),!_0x3cee42&&_0x552516[_0x45d7d4(0xcf)](_0x45d7d4(0xc4))||_0x3dbc9e[_0x45d7d4(0xab)][_0x45d7d4(0xcc)](_0x45d7d4(0xc4),_0x4c4425,_0x552516);}(_0x495b76,_0x138a4a,_0x1aeda0,_0x33c75f));});}),_0x2bc7e6[_0x5798b1(0xa0)](_0x5798b1(0x91))[_0x5798b1(0x87)](_0x16f783=>{const _0x309730=_0x5798b1;_0x16f783['on'](_0x309730(0x9d),(_0xc1899d,_0x34847b,_0x3bd73d)=>{const _0x13c5b8=_0x309730;if(!_0x3bd73d[_0x13c5b8(0xa5)][_0x13c5b8(0x92)](_0x34847b[_0x13c5b8(0x84)],_0xc1899d[_0x13c5b8(0xdd)]))return;const _0x4d2519=M(_0x34847b[_0x13c5b8(0x84)],_0x3bd73d[_0x13c5b8(0xb9)]),{attributeNewValue:_0x3332f7}=_0x34847b;null==_0x3332f7||0x1===_0x3332f7?_0x3bd73d[_0x13c5b8(0xab)][_0x13c5b8(0xaf)](_0x13c5b8(0xd2),_0x4d2519):_0x3bd73d[_0x13c5b8(0xab)][_0x13c5b8(0xcc)](_0x13c5b8(0xd2),String(_0x3332f7),_0x4d2519);}),_0x16f783['on'](_0x309730(0x78),(_0x21db54,_0x3cbfde,_0x559974)=>{const _0x1d57a6=_0x309730;if(!_0x559974[_0x1d57a6(0xa5)][_0x1d57a6(0x92)](_0x3cbfde[_0x1d57a6(0x84)],_0x21db54[_0x1d57a6(0xdd)]))return;const _0x6c5df1=M(_0x3cbfde[_0x1d57a6(0x84)],_0x559974[_0x1d57a6(0xb9)]),{attributeNewValue:_0x2844d2}=_0x3cbfde;_0x2844d2&&_0x1d57a6(0xc6)!==_0x2844d2?_0x559974[_0x1d57a6(0xab)][_0x1d57a6(0xd0)](_0x1d57a6(0xa4),_0x2844d2,_0x6c5df1):_0x559974[_0x1d57a6(0xab)][_0x1d57a6(0xd9)](_0x1d57a6(0xa4),_0x6c5df1);});});}[_0xbfb6dc(0xdc)](){const _0x2243ff=_0xbfb6dc,{editor:_0x46966b}=this,{model:_0x3b4a6a}=_0x46966b,_0x50d917=_0x46966b[_0x2243ff(0xb7)][_0x2243ff(0xbe)](_0x362386),_0xb437b8=this[_0x2243ff(0x81)](),_0xe4c547=this[_0x2243ff(0x8a)]();_0x3b4a6a[_0x2243ff(0x80)][_0x2243ff(0xda)](_0x3312c5=>{const _0x543c85=_0x2243ff,_0x168354=_0x3b4a6a[_0x543c85(0x80)][_0x543c85(0xd5)][_0x543c85(0x85)]();let _0xf5647e=!0x1;for(const _0x3d41aa of _0x168354){if(_0x543c85(0xc8)!==_0x3d41aa[_0x543c85(0xce)]||_0x543c85(0x8d)===_0x3d41aa[_0x543c85(0xdd)])continue;const _0x41a105=_0x3b4a6a[_0x543c85(0xb3)](_0x3d41aa[_0x543c85(0x96)][_0x543c85(0x98)]);for(const _0xeb19cd of _0x41a105[_0x543c85(0xc9)]())_0xeb19cd['is'](_0x543c85(0xa3),_0x543c85(0x95))&&(!_0xeb19cd[_0x543c85(0xcf)](_0x543c85(0x90))&&_0x3b4a6a[_0x543c85(0x97)][_0x543c85(0xcd)](_0xeb19cd,_0x543c85(0x90))&&(_0x3312c5[_0x543c85(0xcc)](_0x543c85(0x90),_0xe4c547,_0xeb19cd),_0xf5647e=!0x0),!_0xeb19cd[_0x543c85(0xcf)](_0x543c85(0xc4))&&_0x3b4a6a[_0x543c85(0x97)][_0x543c85(0xcd)](_0xeb19cd,_0x543c85(0xc4))&&(_0x3312c5[_0x543c85(0xcc)](_0x543c85(0xc4),_0xb437b8,_0xeb19cd),_0xf5647e=!0x0));}return _0xf5647e&&_0x50d917[_0x543c85(0xad)](_0x3312c5),_0xf5647e;});}[_0xbfb6dc(0x99)](){const _0x59fc3c=_0xbfb6dc,{editor:_0x10b1d9}=this;_0x10b1d9[_0x59fc3c(0xb7)][_0x59fc3c(0xbe)](_0x362386)[_0x59fc3c(0xc7)](_0x32fae5=>this[_0x59fc3c(0x9c)](_0x32fae5));}[_0xbfb6dc(0x81)](){const _0x35918f=_0xbfb6dc;return this[_0x35918f(0xde)][_0x35918f(0xa8)][_0x35918f(0xbe)](_0x35918f(0xc2));}[_0xbfb6dc(0x8a)](){const _0x1a9e26=_0xbfb6dc;return this[_0x1a9e26(0xde)][_0x1a9e26(0xa8)][_0x1a9e26(0xbe)](_0x1a9e26(0xc3));}[_0xbfb6dc(0x9c)]({container:_0x5b164f,value:_0x3739c7,digits:_0x333ab7}){const _0x169d1a=_0xbfb6dc,_0x2d78e0=_0x5b164f[_0x169d1a(0xaa)](_0x169d1a(0xc4)),_0x17b1a1=_0x5b164f[_0x169d1a(0xaa)](_0x169d1a(0x90)),_0x5a5d7a=Math[_0x169d1a(0x83)](_0x3739c7)+(_0x17b1a1??0x1)-0x1;switch(_0x2d78e0){case _0x169d1a(0xb0):return function(_0x570bf9,_0x2e9845){const _0x3b1f19=_0x169d1a;return String(_0x570bf9)[_0x3b1f19(0x88)](_0x2e9845,'0');}(_0x5a5d7a,Math[_0x169d1a(0xb1)](0x2,_0x333ab7));case _0x169d1a(0x82):case _0x169d1a(0xae):return N(_0x5a5d7a,!0x1);case _0x169d1a(0x9e):case _0x169d1a(0xb4):return N(_0x5a5d7a,!0x0);case _0x169d1a(0xd1):return X(_0x5a5d7a,!0x1);case _0x169d1a(0xd4):return X(_0x5a5d7a,!0x0);default:return String(_0x5a5d7a);}}}function M(_0x58fd5e,_0x1b51dd){const _0x4b1a6f=_0xbfb6dc,_0x36d9ac=_0x1b51dd[_0x4b1a6f(0xba)](_0x58fd5e);return Array[_0x4b1a6f(0x7f)](_0x36d9ac[_0x4b1a6f(0xa9)]())[_0x4b1a6f(0x7a)](_0x21369c=>_0x21369c['is'](_0x4b1a6f(0xa3),'ol')&&_0x21369c[_0x4b1a6f(0x8b)](_0x4b1a6f(0xc0)));}function N(_0x4f77e7,_0x3d4a39){const _0x535a94=_0xbfb6dc;let _0x412f80='',_0x5d48a8=_0x4f77e7;for(;_0x5d48a8>0x0;){const _0x5320ef=(_0x5d48a8-0x1)%0x1a;_0x412f80=String[_0x535a94(0xac)](0x61+_0x5320ef)+_0x412f80,_0x5d48a8=Math[_0x535a94(0x83)]((_0x5d48a8-0x1)/0x1a);}return _0x3d4a39?_0x412f80[_0x535a94(0xa1)]():_0x412f80;}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 _0x5b32(){const _0x26c2db=['removeStyle','registerPostFixer','parseInt','_definePostfixer','name','editor','attribute:footnotesListStyle:footnotesDefinitions','toLowerCase','find','extend','commands','2388yBnGvr','_defineSchema','from','document','_getDefaultListStyle','lower-alpha','floor','item','getChanges','46lQpDuw','add','padStart','footnotesStyle','_getDefaultStartIndex','hasClass','28AuUOMK','$text','5275QiJPst','viewItem','footnotesListStart','downcast','consume','parent','6936izkgpz','footnotesDefinitions','position','schema','nodeAfter','_defineFormatter','394737oJXSlv','isOfficialPlugin','_formatFootnoteListValue','attribute:footnotesListStart:footnotesDefinitions','upper-alpha','15785370LhZugj','for','toUpperCase','FootnotesPropertiesEditing','element','list-style-type','consumable','footnotesStart','18918pTuweR','config','getChildren','getAttribute','writer','fromCharCode','_updateFootnotesCounters','lower-latin','removeAttribute','decimal-leading-zero','max','define','createRangeOn','upper-latin','_defineConverters','isPremiumPlugin','plugins','5410307kWSpHs','mapper','toViewElement','isNaN','element:ol','modelCursor','get','upcast','footnotes-list','requires','footnotes.footnotesProperties.defaultListStyle','footnotes.footnotesProperties.defaultStartIndex','footnotesListStyle','pluginName','decimal','setFootnoteFormatter','insert','getItems','906420piIsfQ','187eCPGjd','setAttribute','checkAttribute','type','hasAttribute','setStyle','lower-roman','start','getStyle','upper-roman','differ','init','79163UnMWwV','model'];_0x5b32=function(){return _0x26c2db;};return _0x5b32();}function X(_0x362814,_0x192df3){const _0x1c658b=_0xbfb6dc;let _0xdd0f11='',_0x4a7176=_0x362814;for(const {value:_0x1b4339,numeral:_0x56141e}of V)for(;_0x4a7176>=_0x1b4339;)_0xdd0f11+=_0x56141e,_0x4a7176-=_0x1b4339;return _0x192df3?_0xdd0f11:_0xdd0f11[_0x1c658b(0x79)]();}
|
|
23
|
+
const _0x5747f4=_0x1843;(function(_0x567fbb,_0x560603){const _0x177888=_0x1843,_0x514534=_0x567fbb();while(!![]){try{const _0x4dad40=-parseInt(_0x177888(0xd0))/0x1*(parseInt(_0x177888(0xd2))/0x2)+parseInt(_0x177888(0xc7))/0x3+-parseInt(_0x177888(0xcb))/0x4*(-parseInt(_0x177888(0xef))/0x5)+-parseInt(_0x177888(0xeb))/0x6+-parseInt(_0x177888(0xe9))/0x7+-parseInt(_0x177888(0xdc))/0x8+parseInt(_0x177888(0xde))/0x9;if(_0x4dad40===_0x560603)break;else _0x514534['push'](_0x514534['shift']());}catch(_0x1690d7){_0x514534['push'](_0x514534['shift']());}}}(_0x269f,0x9df50));import{Plugin as _0x35cc61}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x3270a4}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x37350e}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x5137a3}from'../footnotestracker.js';import{FootnotesEditing as _0x3030f9}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x35cc61{static get[_0x5747f4(0x101)](){const _0x246c3c=_0x5747f4;return _0x246c3c(0xf6);}static get[_0x5747f4(0xd7)](){return[_0x3030f9,_0x5137a3];}static get[_0x5747f4(0xe1)](){return!0x0;}static get[_0x5747f4(0xf4)](){return!0x0;}[_0x5747f4(0x113)](){const _0x2e112f=_0x5747f4,{editor:_0xd52291}=this;_0xd52291[_0x2e112f(0xd4)][_0x2e112f(0x116)](_0x2e112f(0xfd),_0x2e112f(0xdb)),_0xd52291[_0x2e112f(0xd4)][_0x2e112f(0x116)](_0x2e112f(0xbf),0x1),_0xd52291[_0x2e112f(0xda)][_0x2e112f(0xe7)](_0x2e112f(0xf9),new _0x3270a4(_0xd52291)),_0xd52291[_0x2e112f(0xda)][_0x2e112f(0xe7)](_0x2e112f(0xf8),new _0x37350e(_0xd52291)),this[_0x2e112f(0xfb)](),this[_0x2e112f(0xd1)](),this[_0x2e112f(0x105)](),this[_0x2e112f(0x11d)]();}[_0x5747f4(0xfb)](){const _0x185a99=_0x5747f4,{editor:_0xce70c1}=this,{schema:_0x467414}=_0xce70c1[_0x185a99(0xd8)];_0x467414[_0x185a99(0x11e)](_0x185a99(0xc9),{'allowAttributes':[_0x185a99(0x10f),_0x185a99(0xe0)]});}[_0x5747f4(0xd1)](){const _0x188654=_0x5747f4,{editor:_0x10fb25}=this,{conversion:_0x9cc47e,model:_0x27adfe}=_0x10fb25,{schema:_0x23e696}=_0x27adfe;_0x9cc47e[_0x188654(0xc1)](_0x188654(0xc0))[_0x188654(0xe7)](_0x7d13b7=>{const _0x4cde3b=_0x188654;_0x7d13b7['on'](_0x4cde3b(0xe6),(_0xc9484f,_0x21a4fe,_0x24cfb2)=>{const _0x50a6fb=_0x4cde3b,_0x5250ae=_0x21a4fe[_0x50a6fb(0xea)],_0x36e2c7=_0x21a4fe[_0x50a6fb(0x103)]?.[_0x50a6fb(0xf1)];_0x5250ae[_0x50a6fb(0x102)](_0x50a6fb(0x11a))&&_0x36e2c7?.['is'](_0x50a6fb(0x10d),_0x50a6fb(0xc9))&&(function(_0x1e4499,_0xaf3dd6,_0x13848b,_0x4ab591){const _0x5f0f13=_0x50a6fb;if(!_0x4ab591[_0x5f0f13(0x11c)](_0xaf3dd6,_0x5f0f13(0xe0)))return;let _0x43f86c=0x1;const _0x4a3b39=_0x13848b[_0x5f0f13(0x10c)][_0x5f0f13(0x117)](_0x1e4499,{'attributes':_0x5f0f13(0xfe)});if(_0x4a3b39){const _0x579993=Number[_0x5f0f13(0xd6)](_0x1e4499[_0x5f0f13(0xd3)](_0x5f0f13(0xfe)),0xa);Number[_0x5f0f13(0xdd)](_0x579993)||(_0x43f86c=_0x579993);}!_0x4a3b39&&_0xaf3dd6[_0x5f0f13(0x114)](_0x5f0f13(0xe0))||_0x13848b[_0x5f0f13(0x107)][_0x5f0f13(0xe4)](_0x5f0f13(0xe0),_0x43f86c,_0xaf3dd6);}(_0x5250ae,_0x36e2c7,_0x24cfb2,_0x23e696),function(_0x31652d,_0x51081b,_0x12b7da,_0x5992ae){const _0x214d29=_0x50a6fb;if(!_0x5992ae[_0x214d29(0x11c)](_0x51081b,_0x214d29(0x10f)))return;let _0x64109=_0x214d29(0xdb),_0x53ba04=!0x1;if(_0x12b7da[_0x214d29(0x10c)][_0x214d29(0x117)](_0x31652d,{'attributes':_0x214d29(0xc4)})){const _0x24579f={0x1:_0x214d29(0xdb),'a':_0x214d29(0xed),'A':_0x214d29(0xe5),'i':_0x214d29(0x106),'I':_0x214d29(0xce)}[_0x31652d[_0x214d29(0xd3)](_0x214d29(0xc4))];_0x24579f&&(_0x64109=_0x24579f),_0x53ba04=!0x0;}_0x12b7da[_0x214d29(0x10c)][_0x214d29(0x117)](_0x31652d,{'styles':_0x214d29(0xe8)})&&(_0x64109=function(_0x165223){const _0x2d6064=_0x214d29;switch(_0x165223){case _0x2d6064(0xed):return _0x2d6064(0xf2);case _0x2d6064(0xe5):return _0x2d6064(0x120);default:return _0x165223;}}(_0x31652d[_0x214d29(0xfc)](_0x214d29(0xe8))),_0x53ba04=!0x0),!_0x53ba04&&_0x51081b[_0x214d29(0x114)](_0x214d29(0x10f))||_0x12b7da[_0x214d29(0x107)][_0x214d29(0xe4)](_0x214d29(0x10f),_0x64109,_0x51081b);}(_0x5250ae,_0x36e2c7,_0x24cfb2,_0x23e696));});}),_0x9cc47e[_0x188654(0xc1)](_0x188654(0x121))[_0x188654(0xe7)](_0x10520a=>{const _0x3b2247=_0x188654;_0x10520a['on'](_0x3b2247(0xc8),(_0x704874,_0x4d7d26,_0x561edd)=>{const _0x2de178=_0x3b2247;if(!_0x561edd[_0x2de178(0x10c)][_0x2de178(0x117)](_0x4d7d26[_0x2de178(0xd9)],_0x704874[_0x2de178(0x111)]))return;const _0x5bbc9a=M(_0x4d7d26[_0x2de178(0xd9)],_0x561edd[_0x2de178(0xe2)]),{attributeNewValue:_0x5d6e50}=_0x4d7d26;null==_0x5d6e50||0x1===_0x5d6e50?_0x561edd[_0x2de178(0x107)][_0x2de178(0x11f)](_0x2de178(0xfe),_0x5bbc9a):_0x561edd[_0x2de178(0x107)][_0x2de178(0xe4)](_0x2de178(0xfe),String(_0x5d6e50),_0x5bbc9a);}),_0x10520a['on'](_0x3b2247(0x110),(_0x31fc9e,_0x37ec49,_0x37701c)=>{const _0x48e126=_0x3b2247;if(!_0x37701c[_0x48e126(0x10c)][_0x48e126(0x117)](_0x37ec49[_0x48e126(0xd9)],_0x31fc9e[_0x48e126(0x111)]))return;const _0x18f49a=M(_0x37ec49[_0x48e126(0xd9)],_0x37701c[_0x48e126(0xe2)]),{attributeNewValue:_0x5a5631}=_0x37ec49;_0x5a5631&&_0x48e126(0xdb)!==_0x5a5631?_0x37701c[_0x48e126(0x107)][_0x48e126(0xfa)](_0x48e126(0xe8),_0x5a5631,_0x18f49a):_0x37701c[_0x48e126(0x107)][_0x48e126(0xdf)](_0x48e126(0xe8),_0x18f49a);});});}[_0x5747f4(0x11d)](){const _0xa95562=_0x5747f4,{editor:_0x10a8b9}=this,{model:_0x4f2457}=_0x10a8b9,_0x2b8d6a=_0x10a8b9[_0xa95562(0x119)][_0xa95562(0xf0)](_0x5137a3),_0x2cb1d0=this[_0xa95562(0xc5)](),_0x7b16=this[_0xa95562(0x115)]();_0x4f2457[_0xa95562(0x118)][_0xa95562(0xee)](_0x238e6c=>{const _0x1536e9=_0xa95562,_0x18c0d0=_0x4f2457[_0x1536e9(0x118)][_0x1536e9(0xcf)][_0x1536e9(0x100)]();let _0x4b8e4e=!0x1;for(const _0x2c9b12 of _0x18c0d0){if(_0x1536e9(0x108)!==_0x2c9b12[_0x1536e9(0xc4)]||_0x1536e9(0x10e)===_0x2c9b12[_0x1536e9(0x111)])continue;const _0x4cd222=_0x4f2457[_0x1536e9(0x112)](_0x2c9b12[_0x1536e9(0xc6)][_0x1536e9(0xf3)]);for(const _0x29f364 of _0x4cd222[_0x1536e9(0xf7)]())_0x29f364['is'](_0x1536e9(0x10d),_0x1536e9(0xc9))&&(!_0x29f364[_0x1536e9(0x114)](_0x1536e9(0xe0))&&_0x4f2457[_0x1536e9(0xc2)][_0x1536e9(0x11c)](_0x29f364,_0x1536e9(0xe0))&&(_0x238e6c[_0x1536e9(0xe4)](_0x1536e9(0xe0),_0x7b16,_0x29f364),_0x4b8e4e=!0x0),!_0x29f364[_0x1536e9(0x114)](_0x1536e9(0x10f))&&_0x4f2457[_0x1536e9(0xc2)][_0x1536e9(0x11c)](_0x29f364,_0x1536e9(0x10f))&&(_0x238e6c[_0x1536e9(0xe4)](_0x1536e9(0x10f),_0x2cb1d0,_0x29f364),_0x4b8e4e=!0x0));}return _0x4b8e4e&&_0x2b8d6a[_0x1536e9(0xff)](_0x238e6c),_0x4b8e4e;});}[_0x5747f4(0x105)](){const _0x5e3180=_0x5747f4,{editor:_0x52989d}=this;_0x52989d[_0x5e3180(0x119)][_0x5e3180(0xf0)](_0x5137a3)[_0x5e3180(0xc3)](_0x275bb9=>this[_0x5e3180(0x10a)](_0x275bb9));}[_0x5747f4(0xc5)](){const _0x5d16b6=_0x5747f4;return this[_0x5d16b6(0x104)][_0x5d16b6(0xd4)][_0x5d16b6(0xf0)](_0x5d16b6(0xfd));}[_0x5747f4(0x115)](){const _0x4d477f=_0x5747f4;return this[_0x4d477f(0x104)][_0x4d477f(0xd4)][_0x4d477f(0xf0)](_0x4d477f(0xbf));}[_0x5747f4(0x10a)]({container:_0x2a7f11,value:_0x48a036,digits:_0x263b60}){const _0x365395=_0x5747f4,_0xcd3f4d=_0x2a7f11[_0x365395(0xd3)](_0x365395(0x10f)),_0x44727c=_0x2a7f11[_0x365395(0xd3)](_0x365395(0xe0)),_0x574959=Math[_0x365395(0xe3)](_0x48a036)+(_0x44727c??0x1)-0x1;switch(_0xcd3f4d){case _0x365395(0xcd):return function(_0x32ad82,_0x53663b){const _0x25d2c9=_0x365395;return String(_0x32ad82)[_0x25d2c9(0xd5)](_0x53663b,'0');}(_0x574959,Math[_0x365395(0xec)](0x2,_0x263b60));case _0x365395(0xed):case _0x365395(0xf2):return N(_0x574959,!0x1);case _0x365395(0xe5):case _0x365395(0x120):return N(_0x574959,!0x0);case _0x365395(0x106):return X(_0x574959,!0x1);case _0x365395(0xce):return X(_0x574959,!0x0);default:return String(_0x574959);}}}function M(_0x38de07,_0x276d0f){const _0xe2e5fb=_0x5747f4,_0x2b27f0=_0x276d0f[_0xe2e5fb(0xca)](_0x38de07);return Array[_0xe2e5fb(0xf5)](_0x2b27f0[_0xe2e5fb(0x11b)]())[_0xe2e5fb(0x10b)](_0xc47e7c=>_0xc47e7c['is'](_0xe2e5fb(0x10d),'ol')&&_0xc47e7c[_0xe2e5fb(0x102)](_0xe2e5fb(0x11a)));}function _0x1843(_0x246e93,_0x7908e5){const _0x269fa9=_0x269f();return _0x1843=function(_0x18432b,_0x2d914b){_0x18432b=_0x18432b-0xbf;let _0x31e597=_0x269fa9[_0x18432b];return _0x31e597;},_0x1843(_0x246e93,_0x7908e5);}function N(_0x47fa19,_0x474655){const _0x5bd3e3=_0x5747f4;let _0x5bb23f='',_0x3e010a=_0x47fa19;for(;_0x3e010a>0x0;){const _0x585819=(_0x3e010a-0x1)%0x1a;_0x5bb23f=String[_0x5bd3e3(0x109)](0x61+_0x585819)+_0x5bb23f,_0x3e010a=Math[_0x5bd3e3(0xe3)]((_0x3e010a-0x1)/0x1a);}return _0x474655?_0x5bb23f[_0x5bd3e3(0x122)]():_0x5bb23f;}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(_0x4b2b3a,_0x22b0f6){const _0x21404d=_0x5747f4;let _0x35b23c='',_0x588495=_0x4b2b3a;for(const {value:_0x21e790,numeral:_0x16c85b}of V)for(;_0x588495>=_0x21e790;)_0x35b23c+=_0x16c85b,_0x588495-=_0x21e790;return _0x22b0f6?_0x35b23c:_0x35b23c[_0x21404d(0xcc)]();}function _0x269f(){const _0x24d796=['attribute:footnotesListStart:footnotesDefinitions','footnotesDefinitions','toViewElement','1799096MlMXzc','toLowerCase','decimal-leading-zero','upper-roman','differ','825719xawWBP','_defineConverters','2vlYEwZ','getAttribute','config','padStart','parseInt','requires','model','item','commands','decimal','3121248gWawRz','isNaN','28419471KmEsBn','removeStyle','footnotesListStart','isOfficialPlugin','mapper','floor','setAttribute','upper-alpha','element:ol','add','list-style-type','8005585uPgASd','viewItem','4123812basUUl','max','lower-alpha','registerPostFixer','5vYOpZR','get','parent','lower-latin','nodeAfter','isPremiumPlugin','from','FootnotesPropertiesEditing','getItems','footnotesStart','footnotesStyle','setStyle','_defineSchema','getStyle','footnotes.footnotesProperties.defaultListStyle','start','_updateFootnotesCounters','getChanges','pluginName','hasClass','modelCursor','editor','_defineFormatter','lower-roman','writer','insert','fromCharCode','_formatFootnoteListValue','find','consumable','element','$text','footnotesListStyle','attribute:footnotesListStyle:footnotesDefinitions','name','createRangeOn','init','hasAttribute','_getDefaultStartIndex','define','consume','document','plugins','footnotes-list','getChildren','checkAttribute','_definePostfixer','extend','removeAttribute','upper-latin','downcast','toUpperCase','footnotes.footnotesProperties.defaultStartIndex','upcast','for','schema','setFootnoteFormatter','type','_getDefaultListStyle','position','258993ozBlBU'];_0x269f=function(){return _0x24d796;};return _0x269f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x507431,ButtonView as _0x3758cc,ContextualBalloon as _0x3770bd,createDropdown as _0x1a369a}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x32ec47}from'ckeditor5/src/widget.js';import{Plugin as _0x5b8747}from'ckeditor5/src/core.js';import{IconFootnote as _0x495a09,IconListStyleDecimal as _0x316567,IconListStyleDecimalLeadingZero as _0x44d3ab,IconListStyleLowerLatin as _0x308a50,IconListStyleLowerRoman as _0x3de0d6,IconListStyleUpperLatin as _0x3a628c,IconListStyleUpperRoman as _0x28404b}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x23f0d8}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x2a3bf2}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x5b8747{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3770bd,_0x32ec47];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x52211e}=this,{componentFactory:_0x12dbeb}=_0x52211e['ui'];_0x52211e['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x12dbeb['add']('footnotesStyle',function(_0x28bc62){return _0x38a947=>{const {t:t}=_0x38a947,_0x43ae1b=_0x28bc62['commands']['get']('footnotesStyle'),_0x240035=_0x1a369a(_0x38a947),{buttonView:_0x27140e}=_0x240035;return _0x240035['class']='ck-footnotes-styles-dropdown',_0x240035['bind']('isEnabled')['to'](_0x43ae1b,'isEnabled'),_0x27140e['set']({'label':t('Footnotes\x20style'),'icon':_0x495a09,'tooltip':!0x0}),_0x240035['once']('change:isOpen',()=>{const _0x2fc001=function({editor:_0x2d6923,dropdownView:_0x1249dc}){const {t:t}=_0x2d6923['locale'],_0x21b2dc=t('Footnotes\x20definitions\x20styles'),_0x49ec63=function(_0x2fc16a){const t=_0x2fc16a['locale']['t'],_0x23ae81=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x316567},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x44d3ab},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3de0d6},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x28404b},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x308a50},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x3a628c}];return _0x23ae81['map'](function(_0x10582f){const _0x5a2b21=_0x10582f['locale'];return({label:_0x25a8ff,icon:_0x51e38b,tooltip:_0x3f8998,style:_0x3772ea})=>{const _0x5e8a80=_0x10582f['commands']['get']('footnotesStyle'),_0x559405=new _0x3758cc(_0x5a2b21);return _0x559405['set']({'label':_0x25a8ff,'icon':_0x51e38b,'tooltip':_0x3f8998}),_0x559405['bind']('isOn')['to'](_0x5e8a80,'value',_0x37dd7a=>_0x37dd7a===_0x3772ea),_0x559405['bind']('isEnabled')['to'](_0x5e8a80,'isEnabled'),_0x559405['on']('execute',()=>{_0x10582f['execute']('footnotesStyle',{'value':_0x3772ea}),_0x10582f['editing']['view']['focus']();}),_0x559405;};}(_0x2fc16a));}(_0x2d6923),_0x23ffa8=new _0x23f0d8(_0x2d6923['locale'],{'styleGridAriaLabel':_0x21b2dc,'styleButtonViews':_0x49ec63}),_0x450311=_0x2d6923['commands']['get']('footnotesStart');return _0x23ffa8['startIndexFieldView']['bind']('isEnabled')['to'](_0x450311),_0x23ffa8['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x450311),_0x23ffa8['on']('footnotesListStart',(_0x129c47,_0x31d8ec)=>{_0x2d6923['execute']('footnotesStart',{'value':_0x31d8ec['startIndex']});}),_0x23ffa8['delegate']('execute')['to'](_0x1249dc),_0x23ffa8;}({'editor':_0x28bc62,'dropdownView':_0x240035});_0x240035['panelView']['children']['add'](_0x2fc001);}),_0x240035;};}(_0x52211e));}['afterInit'](){const {editor:_0x470af6}=this,{t:t}=_0x470af6['locale'],_0x3bfe0a=_0x470af6['plugins']['get'](_0x32ec47),{defaultPositions:_0x1c409e}=_0x507431;_0x3bfe0a['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x470af6['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x15133c=>{let _0xe3a287=_0x15133c['getFirstPosition']()?.['parent'];return _0xe3a287?.['is']('$text')&&(_0xe3a287=_0xe3a287['parent']),_0xe3a287?.['is']('element')?_0xe3a287['findAncestor'](_0x2a3bf2):null;},'positions':[_0x1c409e['southArrowNorth'],_0x1c409e['southArrowNorthMiddleWest'],_0x1c409e['southArrowNorthMiddleEast'],_0x1c409e['southArrowNorthWest'],_0x1c409e['southArrowNorthEast'],_0x1c409e['northArrowSouth'],_0x1c409e['northArrowSouthMiddleWest'],_0x1c409e['northArrowSouthMiddleEast'],_0x1c409e['northArrowSouthWest'],_0x1c409e['northArrowSouthEast'],_0x1c409e['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x122bc4,View as _0x1cb4e9,ViewCollection as _0x236419,FocusCycler as _0x4133a5,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 _0x1cb4e9{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x236419();['focusCycler'];constructor(_0x568902,{styleButtonViews:_0x21ba8f,styleGridAriaLabel:_0x2b16a1}){super(_0x568902),(this['focusCycler']=new _0x4133a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x21ba8f,_0x2b16a1),[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 _0x47ed84 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x47ed84['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 _0x29333a=_0x5eceae=>_0x5eceae['stopPropagation']();this['keystrokes']['set']('arrowright',_0x29333a),this['keystrokes']['set']('arrowleft',_0x29333a),this['keystrokes']['set']('arrowup',_0x29333a),this['keystrokes']['set']('arrowdown',_0x29333a);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1a5126,_0x2ab641){const _0x3176ee=new _0x1cb4e9(this['locale']);return _0x3176ee['children']=_0x3176ee['createCollection'](),_0x3176ee['children']['addMany'](_0x1a5126),_0x3176ee['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2ab641,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3176ee['children']}),_0x3176ee['children']['delegate']('execute')['to'](this),_0x3176ee['focus']=function(){for(const _0x18b83f of this['children'])if(_0x18b83f instanceof _0x122bc4&&_0x18b83f['isOn'])return void _0x18b83f['focus']();this['children']['first']['focus']();},_0x3176ee['focusTracker']=new ot(),_0x3176ee['keystrokes']=new rt(),_0x3176ee['render'](),_0x3176ee['keystrokes']['listenTo'](_0x3176ee['element']),this['children']['add'](_0x3176ee),_0x3176ee;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3177b9=this['_createStartIndexPropertyView'](),_0x1857e2=[_0x3177b9],_0x4d399d=new st(this['locale'],_0x1857e2);return _0x4d399d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4d399d['buttonView']['bind']('isEnabled')['toMany'](_0x1857e2,'isEnabled',(..._0x4104ad)=>_0x4104ad['some'](_0x25b789=>_0x25b789)),_0x4d399d['buttonView']['on']('change:isEnabled',(_0x14a502,_0x11fc95,_0x40cc5f)=>{_0x40cc5f||(_0x4d399d['isCollapsed']=!0x0);}),this['children']['add'](_0x4d399d),[_0x3177b9,_0x4d399d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3697dc=new it(this['locale'],et);return _0x3697dc['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3697dc['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3697dc['fieldView']['on']('input',()=>{const _0x2e3d90=_0x3697dc['fieldView']['element'],_0x26f3e3=_0x2e3d90['valueAsNumber'];Number['isNaN'](_0x26f3e3)?_0x3697dc['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2e3d90['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x26f3e3}):_0x3697dc['errorText']=t(_0x26f3e3<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3697dc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5c37(){var _0x2c20a9=['4779744WYDEkT','requires','1iJVAob','isOfficialPlugin','FootnotesProperties','7yEkEkS','312SGyFzm','35MNZALH','27cXCoun','210092jmgxQJ','48BNhApG','isPremiumPlugin','pluginName','15496xdufae','9380lzTcuA','3313550CbfjkD','1296462NfyOEL','2818992luHcGx','28698HLHypO'];_0x5c37=function(){return _0x2c20a9;};return _0x5c37();}function _0x11c5(_0x1717a4,_0x10c2a8){var _0x5c37e5=_0x5c37();return _0x11c5=function(_0x11c51c,_0x237042){_0x11c51c=_0x11c51c-0x19e;var _0x26b018=_0x5c37e5[_0x11c51c];return _0x26b018;},_0x11c5(_0x1717a4,_0x10c2a8);}var _0x377988=_0x11c5;(function(_0x2f7a19,_0x48affd){var _0x24dd8c=_0x11c5,_0x429c9b=_0x2f7a19();while(!![]){try{var _0x2df2bc=parseInt(_0x24dd8c(0x1aa))/0x1*(parseInt(_0x24dd8c(0x19e))/0x2)+parseInt(_0x24dd8c(0x1a7))/0x3*(parseInt(_0x24dd8c(0x1ae))/0x4)+-parseInt(_0x24dd8c(0x1af))/0x5*(-parseInt(_0x24dd8c(0x1a5))/0x6)+parseInt(_0x24dd8c(0x1ad))/0x7*(-parseInt(_0x24dd8c(0x1a8))/0x8)+-parseInt(_0x24dd8c(0x1b0))/0x9*(parseInt(_0x24dd8c(0x1a4))/0xa)+-parseInt(_0x24dd8c(0x1a6))/0xb*(-parseInt(_0x24dd8c(0x19f))/0xc)+parseInt(_0x24dd8c(0x1a2))/0xd*(-parseInt(_0x24dd8c(0x1a3))/0xe);if(_0x2df2bc===_0x48affd)break;else _0x429c9b['push'](_0x429c9b['shift']());}catch(_0x3666f6){_0x429c9b['push'](_0x429c9b['shift']());}}}(_0x5c37,0xf3cf8));import{Plugin as _0x58fdb4}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x412a47}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x1cd2ad}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x58fdb4{static get[_0x377988(0x1a1)](){var _0x42bcb0=_0x377988;return _0x42bcb0(0x1ac);}static get[_0x377988(0x1a9)](){return[_0x412a47,_0x1cd2ad];}static get[_0x377988(0x1ab)](){return!0x0;}static get[_0x377988(0x1a0)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x518ee5=_0x7096;(function(_0xc9f2d3,_0x5fef91){const _0x3126c4=_0x7096,_0x4989ec=_0xc9f2d3();while(!![]){try{const _0x5ad991=-parseInt(_0x3126c4(0x8f))/0x1*(parseInt(_0x3126c4(0x90))/0x2)+parseInt(_0x3126c4(0xac))/0x3+-parseInt(_0x3126c4(0x98))/0x4+parseInt(_0x3126c4(0xc5))/0x5+parseInt(_0x3126c4(0xb2))/0x6+parseInt(_0x3126c4(0x72))/0x7+-parseInt(_0x3126c4(0xb3))/0x8*(parseInt(_0x3126c4(0xa3))/0x9);if(_0x5ad991===_0x5fef91)break;else _0x4989ec['push'](_0x4989ec['shift']());}catch(_0x230bb9){_0x4989ec['push'](_0x4989ec['shift']());}}}(_0x5589,0xe9f7d));import{Plugin as _0x28b3a3}from'ckeditor5/src/core.js';function _0x7096(_0xa5c612,_0x58d342){const _0x5589e6=_0x5589();return _0x7096=function(_0x7096df,_0x1b56fe){_0x7096df=_0x7096df-0x6b;let _0xc93d93=_0x5589e6[_0x7096df];return _0xc93d93;},_0x7096(_0xa5c612,_0x58d342);}import{ModelElementTracker as _0x515a22}from'./modelelementtracker.js';export class FootnotesTracker extends _0x28b3a3{[_0x518ee5(0x7a)]=[];[_0x518ee5(0x6e)]=null;[_0x518ee5(0xc2)]=null;[_0x518ee5(0x87)];[_0x518ee5(0x7c)];[_0x518ee5(0x6b)];static get[_0x518ee5(0xb9)](){const _0x55ba20=_0x518ee5;return _0x55ba20(0x9c);}static get[_0x518ee5(0xa5)](){return!0x0;}static get[_0x518ee5(0x8d)](){return!0x0;}constructor(_0x9748c3){const _0x5b3653=_0x518ee5;super(_0x9748c3),this[_0x5b3653(0x87)]=new _0x515a22(this[_0x5b3653(0xc9)][_0x5b3653(0x75)],{'elementName':_0x5b3653(0xbf),'getElementKey':()=>_0x5b3653(0x8a)}),this[_0x5b3653(0x7c)]=new _0x515a22(this[_0x5b3653(0xc9)][_0x5b3653(0x75)],{'elementName':_0x5b3653(0xa7),'getElementKey':_0x587752=>_0x587752[_0x5b3653(0xbd)](_0x5b3653(0x91))}),this[_0x5b3653(0x6b)]=new _0x515a22(this[_0x5b3653(0xc9)][_0x5b3653(0x75)],{'elementName':_0x5b3653(0x83),'getElementKey':_0x476eaf=>_0x476eaf[_0x5b3653(0xbd)](_0x5b3653(0x91))});}[_0x518ee5(0x99)](){const _0x451eea=_0x518ee5,{editor:_0x347562}=this,{model:_0x13cb05,data:_0x21b510}=_0x347562;_0x13cb05[_0x451eea(0xcc)][_0x451eea(0x6d)](_0xdf5348=>{const _0x436554=_0x451eea,_0x59875f=_0x13cb05[_0x436554(0xcc)][_0x436554(0x7d)][_0x436554(0xc6)]();let _0x5a503b=!0x1;return this[_0x436554(0x8e)](_0xdf5348,_0x59875f)&&(_0x5a503b=!0x0),this[_0x436554(0xce)](_0xdf5348,_0x59875f)&&(_0x5a503b=!0x0),this[_0x436554(0x85)](_0xdf5348,_0x59875f)&&(_0x5a503b=!0x0),this[_0x436554(0x88)](_0xdf5348)&&(_0x5a503b=!0x0),this[_0x436554(0xae)](_0xdf5348)&&(_0x5a503b=!0x0),this[_0x436554(0x9f)](_0xdf5348)&&(_0x5a503b=!0x0),_0x5a503b;}),this[_0x451eea(0xab)](_0x13cb05[_0x451eea(0xcc)],_0x451eea(0xa4),()=>{const _0x33c2fc=_0x451eea;_0x13cb05[_0x33c2fc(0x7b)]({'isUndoable':!0x1},_0x285598=>{const _0x22e293=_0x33c2fc;this[_0x22e293(0xc7)](_0x285598);});},{'priority':_0x451eea(0xc8)}),this[_0x451eea(0xab)](_0x21b510,_0x451eea(0x77),()=>{const _0x373952=_0x451eea;this[_0x373952(0x7a)]=[],this[_0x373952(0x87)][_0x373952(0x92)](),this[_0x373952(0x7c)][_0x373952(0x92)](),this[_0x373952(0x6b)][_0x373952(0x92)]();},{'priority':_0x451eea(0x81)});}[_0x518ee5(0x76)](){const _0x31744d=_0x518ee5;return this[_0x31744d(0x6e)];}[_0x518ee5(0x9e)](_0x22a0ba){const _0x11a24f=_0x518ee5;return this[_0x11a24f(0x7a)][_0x11a24f(0xcb)](_0xcd6dec=>_0xcd6dec['id']===_0x22a0ba)||null;}[_0x518ee5(0x96)](){const _0x4017dc=_0x518ee5;return Array[_0x4017dc(0xbb)](this[_0x4017dc(0x7a)]);}[_0x518ee5(0x73)](){const _0xb79df5=_0x518ee5;return this[_0xb79df5(0xc2)];}[_0x518ee5(0xc0)](_0x53185f){const _0x2e7245=_0x518ee5;this[_0x2e7245(0xc2)]=_0x53185f;}[_0x518ee5(0xb7)](_0x1c8d0b,_0x49488c=0x0){const _0x13eb3c=_0x518ee5;let _0x1c3f52=!0x1;for(let _0x4269be=_0x49488c;_0x4269be<this[_0x13eb3c(0x7a)][_0x13eb3c(0xad)];_0x4269be++)this[_0x13eb3c(0xbc)](_0x1c8d0b,_0x4269be)&&(_0x1c3f52=!0x0);return _0x1c3f52;}[_0x518ee5(0x82)](_0x18aa6e,_0x2ce194){const _0x57a9f9=_0x518ee5,_0x2fdac4=_0x18aa6e[_0x57a9f9(0xb0)](_0x57a9f9(0xbf),{});return _0x18aa6e[_0x57a9f9(0x84)](_0x2fdac4,_0x2ce194),this[_0x57a9f9(0x6e)]=_0x2fdac4,_0x2fdac4;}[_0x518ee5(0xc7)](_0x17468e){const _0x765e68=_0x518ee5;if(!this[_0x765e68(0x7a)][_0x765e68(0xad)]||this[_0x765e68(0x6e)])return;const _0x5c038d=this[_0x765e68(0x7a)][0x0][_0x765e68(0xa9)][_0x765e68(0x7f)],_0x38bb67=this[_0x765e68(0x82)](_0x17468e,_0x5c038d);for(const _0x363fb4 of this[_0x765e68(0x7a)])_0x363fb4[_0x765e68(0xaf)][_0x765e68(0xc3)]||_0x17468e[_0x765e68(0x94)](_0x363fb4[_0x765e68(0xaf)],_0x38bb67,_0x765e68(0xa2));this[_0x765e68(0xb7)](_0x17468e);}[_0x518ee5(0x8e)](_0x10c057,_0x504b7e){const _0x1ae5fe=_0x518ee5;let _0x2dd8cb=!0x1;const {inserted:_0x2eed80,removed:_0x1748b4,moved:_0x1b0f35}=this[_0x1ae5fe(0x87)][_0x1ae5fe(0xc6)](_0x504b7e);if(_0x1b0f35[_0x1ae5fe(0xad)]&&(this[_0x1ae5fe(0x6e)]=_0x1b0f35[0x0]),_0x2eed80[_0x1ae5fe(0xad)]){if(_0x2eed80[_0x1ae5fe(0xad)]>0x1||this[_0x1ae5fe(0x6e)]&&_0x2eed80[_0x1ae5fe(0x97)](_0x39043d=>_0x39043d!==this[_0x1ae5fe(0x6e)])){const _0x4b0777=_0x10c057[_0x1ae5fe(0xb0)](_0x1ae5fe(0xbf),{}),_0x3a623a=[];this[_0x1ae5fe(0x6e)]&&_0x3a623a[_0x1ae5fe(0xb8)](this[_0x1ae5fe(0x6e)]),_0x3a623a[_0x1ae5fe(0xb8)](..._0x2eed80),_0x10c057[_0x1ae5fe(0x94)](_0x4b0777,_0x3a623a[0x0],_0x1ae5fe(0xb6));for(const _0x57aadb of _0x3a623a)_0x10c057[_0x1ae5fe(0x9b)](_0x10c057[_0x1ae5fe(0xa0)](_0x57aadb),_0x10c057[_0x1ae5fe(0x89)](_0x4b0777,_0x1ae5fe(0xa2))),_0x10c057[_0x1ae5fe(0xaa)](_0x57aadb);this[_0x1ae5fe(0x6e)]=_0x4b0777,this[_0x1ae5fe(0xb7)](_0x10c057),_0x2dd8cb=!0x0;}else this[_0x1ae5fe(0x6e)]=_0x2eed80[0x0];}if(_0x1748b4[_0x1ae5fe(0xad)]&&_0x1ae5fe(0xc1)===this[_0x1ae5fe(0x6e)]?.[_0x1ae5fe(0x7f)][_0x1ae5fe(0xbe)]){for(const _0x3bdfa0 of this[_0x1ae5fe(0x7a)])_0x10c057[_0x1ae5fe(0xaa)](_0x3bdfa0[_0x1ae5fe(0xa9)]),_0x2dd8cb=!0x0;this[_0x1ae5fe(0x7a)]=[],this[_0x1ae5fe(0x6e)]=null;}return _0x2dd8cb;}[_0x518ee5(0xce)](_0x556342,_0x44ae0f){const _0x30f176=_0x518ee5;let _0x2b879c=!0x1;const _0x5a5820=this[_0x30f176(0xc9)][_0x30f176(0x93)][_0x30f176(0x70)](_0x30f176(0xa1)),{inserted:_0x48f335,moved:_0x208abe}=this[_0x30f176(0x6b)][_0x30f176(0xc6)](_0x44ae0f);for(const _0x501d3d of[..._0x208abe,..._0x48f335]){const _0x257983=_0x501d3d[_0x30f176(0xbd)](_0x30f176(0x91)),_0x2a9854=this[_0x30f176(0x9e)](_0x257983);_0x2a9854&&(_0x2a9854[_0x30f176(0xaf)]=_0x501d3d),_(_0x556342,_0x5a5820,_0x501d3d)&&(_0x2b879c=!0x0);}return _0x2b879c;}[_0x518ee5(0x85)](_0x912005,_0x2f63dd){const _0x84ae4a=_0x518ee5;let _0x59daa4=!0x1;const {removed:_0x3f35ac,inserted:_0x2c01a5,moved:_0x478daa}=this[_0x84ae4a(0x7c)][_0x84ae4a(0xc6)](_0x2f63dd);for(const _0x53e107 of _0x3f35ac)this[_0x84ae4a(0x95)](_0x912005,_0x53e107)&&(_0x59daa4=!0x0);for(const _0x44fe19 of _0x2c01a5)this[_0x84ae4a(0x9a)](_0x912005,_0x44fe19)&&(_0x59daa4=!0x0);for(const _0x402b4a of _0x478daa)this[_0x84ae4a(0x7e)](_0x912005,_0x402b4a)&&(_0x59daa4=!0x0);return _0x59daa4;}[_0x518ee5(0xae)](_0x3b3fab){const _0x12bd6d=_0x518ee5;if(!this[_0x12bd6d(0x6e)])return!0x1;let _0x300ac0=!0x1;if(this[_0x12bd6d(0x6e)][_0x12bd6d(0x71)]!==this[_0x12bd6d(0x7a)][_0x12bd6d(0xad)]){const _0x13c3aa=[];for(const _0x34d976 of this[_0x12bd6d(0x6e)][_0x12bd6d(0x6f)]()){const _0x20a923=_0x34d976[_0x12bd6d(0xbd)](_0x12bd6d(0x91));this[_0x12bd6d(0x9e)](_0x20a923)||(_0x13c3aa[_0x12bd6d(0xc4)](_0x34d976),_0x300ac0=!0x0);}for(const _0x37b55a of _0x13c3aa)_0x3b3fab[_0x12bd6d(0xaa)](_0x37b55a);}const _0x208d21=new Set(),_0x167fca=[];for(const _0x43e60b of this[_0x12bd6d(0x6e)][_0x12bd6d(0x6f)]()){const _0xc61832=_0x43e60b[_0x12bd6d(0xbd)](_0x12bd6d(0x91));_0x208d21[_0x12bd6d(0x80)](_0xc61832)?(_0x167fca[_0x12bd6d(0xc4)](_0x43e60b),_0x300ac0=!0x0):_0x208d21[_0x12bd6d(0x74)](_0xc61832);}for(const _0x226f21 of _0x167fca)_0x3b3fab[_0x12bd6d(0xaa)](_0x226f21);return this[_0x12bd6d(0x6e)][_0x12bd6d(0x71)]||(_0x3b3fab[_0x12bd6d(0xaa)](this[_0x12bd6d(0x6e)]),this[_0x12bd6d(0x6e)]=null,_0x300ac0=!0x0),_0x300ac0;}[_0x518ee5(0x9a)](_0x4f60d5,_0x3148b2){const _0x27a9e1=_0x518ee5;if(this[_0x27a9e1(0x7a)][_0x27a9e1(0xcb)](_0x36afd9=>_0x36afd9[_0x27a9e1(0xa9)]===_0x3148b2))return!0x1;let _0x180a25=!0x1;const _0x130356=_0x3148b2[_0x27a9e1(0xbd)](_0x27a9e1(0x91)),_0x2bcf10=this[_0x27a9e1(0x7a)][_0x27a9e1(0xca)](_0x392449=>_0x392449['id']===_0x130356);-0x1!==_0x2bcf10&&(_0x4f60d5[_0x27a9e1(0xaa)](this[_0x27a9e1(0x7a)][_0x2bcf10][_0x27a9e1(0xa9)]),this[_0x27a9e1(0x7a)][_0x27a9e1(0xb5)](_0x2bcf10,0x1),_0x180a25=!0x0);let _0x24ee33=this[_0x27a9e1(0x6e)]?function(_0x3aae06,_0xbfdb36){const _0xd02ba9=_0x27a9e1;for(const _0xb70409 of _0x3aae06[_0xd02ba9(0x6f)]())if(_0xb70409[_0xd02ba9(0xbd)](_0xd02ba9(0x91))===_0xbfdb36)return _0xb70409;return null;}(this[_0x27a9e1(0x6e)],_0x130356):null;_0x24ee33||(_0x24ee33=_0x4f60d5[_0x27a9e1(0xb0)](_0x27a9e1(0x83),{'footnoteId':_0x130356}),this[_0x27a9e1(0x6e)]&&(_0x4f60d5[_0x27a9e1(0x94)](_0x24ee33,this[_0x27a9e1(0x6e)],_0x27a9e1(0xa2)),_0x180a25=!0x0));const _0x366b2e={'id':_0x130356,'reference':_0x3148b2,'definition':_0x24ee33},_0x1a4845=I(this[_0x27a9e1(0xc9)][_0x27a9e1(0x75)],this[_0x27a9e1(0x7a)],_0x3148b2);this[_0x27a9e1(0x7a)][_0x27a9e1(0xb5)](_0x1a4845,0x0,_0x366b2e);let _0xdf1dec=_0x1a4845;return-0x1!==_0x2bcf10&&(_0xdf1dec=Math[_0x27a9e1(0xb1)](_0x1a4845,_0x2bcf10)),this[_0x27a9e1(0xb7)](_0x4f60d5,_0xdf1dec)&&(_0x180a25=!0x0),_0x180a25;}[_0x518ee5(0x95)](_0x5a322a,_0x208e33){const _0x599ff7=_0x518ee5,_0x41f450=this[_0x599ff7(0x7a)][_0x599ff7(0xca)](_0x566e42=>_0x566e42['id']===_0x208e33);if(-0x1===_0x41f450)return!0x1;let _0x5c191d=!0x1;const _0x23a883=this[_0x599ff7(0x7a)][_0x41f450];return _0x599ff7(0xc1)!==_0x23a883[_0x599ff7(0xaf)][_0x599ff7(0x7f)][_0x599ff7(0xbe)]&&(_0x5a322a[_0x599ff7(0xaa)](_0x23a883[_0x599ff7(0xaf)]),_0x5c191d=!0x0),this[_0x599ff7(0x7a)][_0x599ff7(0xb5)](_0x41f450,0x1),this[_0x599ff7(0xb7)](_0x5a322a,_0x41f450)&&(_0x5c191d=!0x0),_0x5c191d;}[_0x518ee5(0x7e)](_0xaa1933,_0x2ce51a){const _0x368e96=_0x518ee5,_0x3e01a5=_0x2ce51a[_0x368e96(0xbd)](_0x368e96(0x91)),_0x4912ed=this[_0x368e96(0x7a)][_0x368e96(0xca)](_0x2fc8f1=>_0x2fc8f1['id']===_0x3e01a5),_0x5db305=this[_0x368e96(0x7a)][_0x4912ed];let _0x2db276=!0x1;_0x5db305[_0x368e96(0xa9)]=_0x2ce51a,this[_0x368e96(0x7a)][_0x368e96(0xb5)](_0x4912ed,0x1);const _0x3a3981=I(this[_0x368e96(0xc9)][_0x368e96(0x75)],this[_0x368e96(0x7a)],_0x2ce51a);return this[_0x368e96(0x7a)][_0x368e96(0xb5)](_0x3a3981,0x0,_0x5db305),this[_0x368e96(0xb7)](_0xaa1933,Math[_0x368e96(0xb1)](_0x4912ed,_0x3a3981))&&(_0x2db276=!0x0),_0x2db276;}[_0x518ee5(0xbc)](_0x36bd3a,_0x242ccc){const _0x3dd544=_0x518ee5;if(!this[_0x3dd544(0x6e)])return!0x1;const _0x2b24a8=this[_0x3dd544(0x7a)][_0x242ccc];let _0x13f5dc;return _0x13f5dc=this[_0x3dd544(0xc2)]?this[_0x3dd544(0xc2)]({'footnote':_0x2b24a8,'container':this[_0x3dd544(0x6e)],'digits':String(this[_0x3dd544(0x7a)][_0x3dd544(0xad)])[_0x3dd544(0xad)],'value':_0x242ccc+0x1}):String(_0x242ccc+0x1),_0x2b24a8[_0x3dd544(0xa9)][_0x3dd544(0xbd)](_0x3dd544(0xba))!=_0x13f5dc&&(_0x36bd3a[_0x3dd544(0x78)](_0x3dd544(0xba),_0x13f5dc,_0x2b24a8[_0x3dd544(0xa9)]),!0x0);}[_0x518ee5(0x9f)](_0x111121){const _0x54a921=_0x518ee5;if(!this[_0x54a921(0x6e)]||this[_0x54a921(0x7a)][_0x54a921(0xad)]<0x2)return!0x1;if(function(_0x31da72,_0xf653f7){const _0x4422dc=_0x54a921;if(_0x31da72[_0x4422dc(0xad)]!==_0xf653f7[_0x4422dc(0xad)])return!0x1;for(let _0x57f403=0x0;_0x57f403<_0x31da72[_0x4422dc(0xad)];_0x57f403++)if(_0x31da72[_0x57f403]!==_0xf653f7[_0x57f403])return!0x1;return!0x0;}(this[_0x54a921(0x7a)][_0x54a921(0x6c)](_0x229202=>_0x229202['id']),Array[_0x54a921(0xbb)](this[_0x54a921(0x6e)][_0x54a921(0x6f)]())[_0x54a921(0x6c)](_0x7c4307=>_0x7c4307[_0x54a921(0xbd)](_0x54a921(0x91)))))return!0x1;let _0x4fd7fc=!0x1;for(let _0x197c06=0x0;_0x197c06<this[_0x54a921(0x7a)][_0x54a921(0xad)];_0x197c06++){const _0x107361=this[_0x54a921(0x7a)][_0x197c06],_0x1bdd68=_0x111121[_0x54a921(0x86)](_0x107361[_0x54a921(0xaf)]),_0x25337f=_0x111121[_0x54a921(0x89)](this[_0x54a921(0x6e)],_0x197c06);_0x1bdd68[_0x54a921(0xa8)](_0x25337f)||(_0x111121[_0x54a921(0x9b)](_0x111121[_0x54a921(0x8c)](_0x107361[_0x54a921(0xaf)]),_0x25337f),_0x4fd7fc=!0x0);}return _0x4fd7fc;}[_0x518ee5(0x88)](_0x1c2000){const _0x2aaa87=_0x518ee5;if(!this[_0x2aaa87(0x7a)][_0x2aaa87(0xad)])return!0x1;const {model:_0xb60fb8}=this[_0x2aaa87(0xc9)];let _0x3ce6f0=!0x1;for(let _0x4d0ae5=0x0;_0x4d0ae5<this[_0x2aaa87(0x7a)][_0x2aaa87(0xad)]-0x1;_0x4d0ae5++){const _0x11e572=this[_0x2aaa87(0x7a)][_0x4d0ae5],_0x18a88f=this[_0x2aaa87(0x7a)][_0x4d0ae5+0x1],_0xebb288=_0xb60fb8[_0x2aaa87(0x86)](_0x11e572[_0x2aaa87(0xa9)]),_0x11535e=_0xb60fb8[_0x2aaa87(0x86)](_0x18a88f[_0x2aaa87(0xa9)]);_0x2aaa87(0xcd)===_0xebb288[_0x2aaa87(0xb4)](_0x11535e)&&(this[_0x2aaa87(0x7e)](_0x1c2000,_0x11e572[_0x2aaa87(0xa9)]),_0x4d0ae5=-0x1,_0x3ce6f0=!0x0);}return _0x3ce6f0;}}function _(_0x5dc1f1,_0x266724,_0x2c6a52){const _0x2957dd=_0x518ee5;if(_0x2c6a52[_0x2957dd(0x71)])return!0x1;const _0x2cd7c2=_0x266724?_0x2957dd(0x8b):_0x2957dd(0x79);return _0x5dc1f1[_0x2957dd(0x94)](_0x5dc1f1[_0x2957dd(0xb0)](_0x2cd7c2),_0x2c6a52),!0x0;}function I(_0x24039a,_0x118de7,_0x422bdd){const _0x43addc=_0x518ee5;if(0x0===_0x118de7[_0x43addc(0xad)])return 0x0;const _0x432c0f=_0x24039a[_0x43addc(0x86)](_0x422bdd);for(let _0x72061b=0x0;_0x72061b<_0x118de7[_0x43addc(0xad)];_0x72061b++){const _0x31fee0=_0x118de7[_0x72061b],_0x29cab2=_0x24039a[_0x43addc(0x86)](_0x31fee0[_0x43addc(0xa9)]);if(_0x43addc(0xb6)===_0x432c0f[_0x43addc(0xb4)](_0x29cab2))return _0x72061b;}const _0x236fca=_0x422bdd[_0x43addc(0x7f)];let _0x562dc4=-0x1;for(let _0x473eb1=_0x118de7[_0x43addc(0xad)]-0x1;_0x473eb1>=0x0;_0x473eb1--)if(_0x118de7[_0x473eb1][_0x43addc(0xa9)][_0x43addc(0x7f)]===_0x236fca){_0x562dc4=_0x473eb1;break;}if(-0x1!==_0x562dc4)return _0x562dc4+0x1;const _0x576bfa=_0x24039a[_0x43addc(0xcc)][_0x43addc(0xa6)](),_0x3b0b0b=_0x576bfa[_0x43addc(0x9d)](_0x236fca[_0x43addc(0xbe)]),_0x3e3854=_0x576bfa[_0x3b0b0b+0x1];if(_0x3e3854){for(let _0x3ebae6=0x0;_0x3ebae6<_0x118de7[_0x43addc(0xad)];_0x3ebae6++)if(_0x118de7[_0x3ebae6][_0x43addc(0xa9)][_0x43addc(0x7f)][_0x43addc(0xbe)]===_0x3e3854)return _0x3ebae6;}return _0x118de7[_0x43addc(0xad)];}function _0x5589(){const _0x33de00=['min','3410316liksdd','11401224LLAmgw','compareWith','splice','before','_updateFootnotesCounters','push','pluginName','footnoteCounter','from','_updateFootnoteRefCounter','getAttribute','rootName','footnotesDefinitions','setFootnoteFormatter','$graveyard','_footnoteFormatter','parent','unshift','5103665QFqXuN','getChanges','_ensureFootnotesDefinitionsContainerExists','low','editor','findIndex','find','document','after','_handleFootnoteDefinitionsChanges','_footnoteDefsTracker','map','registerPostFixer','_footnotesDefinitions','getChildren','get','childCount','6851838JUfYwH','getFootnotesFormatter','add','model','getFootnotesDefinitionsObjectElement','set','setAttribute','footnoteInlineContent','_footnotes','enqueueChange','_footnoteRefsTracker','differ','_handleMovedFootnoteReference','root','has','high','_insertEmptyFootnotesDefinitionsContainer','footnoteDefinition','append','_handleFootnoteReferencesChanges','createPositionBefore','_footnoteDefsContainerTracker','_ensureFootnotesReferencesHaveProperOrder','createPositionAt','singleton','paragraph','createRangeOn','isPremiumPlugin','_handleFootnotesDefinitionsObjectChanges','1zJaSqP','727930jayqtD','footnoteId','reset','config','insert','_handleRemoveFootnoteReferenceById','getFootnotes','some','595876XJPuvE','init','_handleInsertedFootnoteReference','move','FootnotesTracker','indexOf','getFootnote','_sortFootnoteDefinitions','createRangeIn','footnotes.multiBlock','end','9iKEoVQ','change:data','isOfficialPlugin','getRootNames','footnoteRef','isEqual','reference','remove','listenTo','985401PUPURx','length','_handleFootnotesDefinitionsObjectSync','definition','createElement'];_0x5589=function(){return _0x33de00;};return _0x5589();}
|
|
23
|
+
const _0x392bae=_0x5e4a;(function(_0x5d06a7,_0x48ffe6){const _0x5ba3f8=_0x5e4a,_0x9a24e4=_0x5d06a7();while(!![]){try{const _0xbf3ff=parseInt(_0x5ba3f8(0x134))/0x1+parseInt(_0x5ba3f8(0x140))/0x2+-parseInt(_0x5ba3f8(0x158))/0x3+parseInt(_0x5ba3f8(0x145))/0x4*(-parseInt(_0x5ba3f8(0x17d))/0x5)+-parseInt(_0x5ba3f8(0x155))/0x6+-parseInt(_0x5ba3f8(0x153))/0x7*(-parseInt(_0x5ba3f8(0x16c))/0x8)+parseInt(_0x5ba3f8(0x15e))/0x9*(-parseInt(_0x5ba3f8(0x14a))/0xa);if(_0xbf3ff===_0x48ffe6)break;else _0x9a24e4['push'](_0x9a24e4['shift']());}catch(_0x203bab){_0x9a24e4['push'](_0x9a24e4['shift']());}}}(_0x5f54,0x3b013));import{Plugin as _0x440d88}from'ckeditor5/src/core.js';import{ModelElementTracker as _0xc58cf1}from'./modelelementtracker.js';export class FootnotesTracker extends _0x440d88{[_0x392bae(0x159)]=[];[_0x392bae(0x16b)]=null;[_0x392bae(0x165)]=null;[_0x392bae(0x129)];[_0x392bae(0x147)];[_0x392bae(0x13d)];static get[_0x392bae(0x162)](){const _0x5b6902=_0x392bae;return _0x5b6902(0x173);}static get[_0x392bae(0x12f)](){return!0x0;}static get[_0x392bae(0x141)](){return!0x0;}constructor(_0x16f462){const _0x4097e7=_0x392bae;super(_0x16f462),this[_0x4097e7(0x129)]=new _0xc58cf1(this[_0x4097e7(0x14b)][_0x4097e7(0x142)],{'elementName':_0x4097e7(0x150),'getElementKey':()=>_0x4097e7(0x136)}),this[_0x4097e7(0x147)]=new _0xc58cf1(this[_0x4097e7(0x14b)][_0x4097e7(0x142)],{'elementName':_0x4097e7(0x13b),'getElementKey':_0x39cd06=>_0x39cd06[_0x4097e7(0x15f)](_0x4097e7(0x124))}),this[_0x4097e7(0x13d)]=new _0xc58cf1(this[_0x4097e7(0x14b)][_0x4097e7(0x142)],{'elementName':_0x4097e7(0x148),'getElementKey':_0x3ef77d=>_0x3ef77d[_0x4097e7(0x15f)](_0x4097e7(0x124))});}[_0x392bae(0x160)](){const _0x3d77c3=_0x392bae,{editor:_0x595521}=this,{model:_0xb0538b,data:_0x1fc181}=_0x595521;_0xb0538b[_0x3d77c3(0x12c)][_0x3d77c3(0x180)](_0x2d8fcd=>{const _0x3c136b=_0x3d77c3,_0x1873c3=_0xb0538b[_0x3c136b(0x12c)][_0x3c136b(0x139)][_0x3c136b(0x167)]();let _0x3f9421=!0x1;return this[_0x3c136b(0x12b)](_0x2d8fcd,_0x1873c3)&&(_0x3f9421=!0x0),this[_0x3c136b(0x164)](_0x2d8fcd,_0x1873c3)&&(_0x3f9421=!0x0),this[_0x3c136b(0x15d)](_0x2d8fcd,_0x1873c3)&&(_0x3f9421=!0x0),this[_0x3c136b(0x179)](_0x2d8fcd)&&(_0x3f9421=!0x0),this[_0x3c136b(0x137)](_0x2d8fcd)&&(_0x3f9421=!0x0),this[_0x3c136b(0x126)](_0x2d8fcd)&&(_0x3f9421=!0x0),_0x3f9421;}),this[_0x3d77c3(0x166)](_0xb0538b[_0x3d77c3(0x12c)],_0x3d77c3(0x168),()=>{const _0x48c931=_0x3d77c3;_0xb0538b[_0x48c931(0x17b)]({'isUndoable':!0x1},_0x499c48=>{const _0x3c9333=_0x48c931;this[_0x3c9333(0x185)](_0x499c48);});},{'priority':_0x3d77c3(0x149)}),this[_0x3d77c3(0x166)](_0x1fc181,_0x3d77c3(0x152),()=>{const _0x15788e=_0x3d77c3;this[_0x15788e(0x159)]=[],this[_0x15788e(0x129)][_0x15788e(0x17a)](),this[_0x15788e(0x147)][_0x15788e(0x17a)](),this[_0x15788e(0x13d)][_0x15788e(0x17a)]();},{'priority':_0x3d77c3(0x125)});}[_0x392bae(0x186)](){const _0x51b023=_0x392bae;return this[_0x51b023(0x16b)];}[_0x392bae(0x16e)](_0x3c27bb){const _0x2ce4df=_0x392bae;return this[_0x2ce4df(0x159)][_0x2ce4df(0x171)](_0x49555d=>_0x49555d['id']===_0x3c27bb)||null;}[_0x392bae(0x132)](){const _0x594256=_0x392bae;return Array[_0x594256(0x14f)](this[_0x594256(0x159)]);}[_0x392bae(0x177)](){const _0x2f6318=_0x392bae;return this[_0x2f6318(0x165)];}[_0x392bae(0x151)](_0x3a6841){const _0x403bb9=_0x392bae;this[_0x403bb9(0x165)]=_0x3a6841;}[_0x392bae(0x127)](_0x251793,_0x5cbb72=0x0){const _0x3e81f4=_0x392bae;let _0x14ba2c=!0x1;for(let _0x4be5ef=_0x5cbb72;_0x4be5ef<this[_0x3e81f4(0x159)][_0x3e81f4(0x184)];_0x4be5ef++)this[_0x3e81f4(0x161)](_0x251793,_0x4be5ef)&&(_0x14ba2c=!0x0);return _0x14ba2c;}[_0x392bae(0x16a)](_0x45d32a,_0x3c0f3d){const _0x130a82=_0x392bae,_0x12c547=_0x45d32a[_0x130a82(0x178)](_0x130a82(0x150),{});return _0x45d32a[_0x130a82(0x123)](_0x12c547,_0x3c0f3d),this[_0x130a82(0x16b)]=_0x12c547,_0x12c547;}[_0x392bae(0x185)](_0x56f497){const _0x25436f=_0x392bae;if(!this[_0x25436f(0x159)][_0x25436f(0x184)]||this[_0x25436f(0x16b)])return;const _0x2b1f64=this[_0x25436f(0x159)][0x0][_0x25436f(0x16d)][_0x25436f(0x13f)],_0x59cac9=this[_0x25436f(0x16a)](_0x56f497,_0x2b1f64);for(const _0xad67f of this[_0x25436f(0x159)])_0xad67f[_0x25436f(0x128)][_0x25436f(0x16f)]||_0x56f497[_0x25436f(0x12a)](_0xad67f[_0x25436f(0x128)],_0x59cac9,_0x25436f(0x12d));this[_0x25436f(0x127)](_0x56f497);}[_0x392bae(0x12b)](_0x5ead65,_0x164fde){const _0x5e7227=_0x392bae;let _0x5b32dc=!0x1;const {inserted:_0xc68b7e,removed:_0x407192,moved:_0x563963}=this[_0x5e7227(0x129)][_0x5e7227(0x167)](_0x164fde);if(_0x563963[_0x5e7227(0x184)]&&(this[_0x5e7227(0x16b)]=_0x563963[0x0]),_0xc68b7e[_0x5e7227(0x184)]){if(_0xc68b7e[_0x5e7227(0x184)]>0x1||this[_0x5e7227(0x16b)]&&_0xc68b7e[_0x5e7227(0x181)](_0x510233=>_0x510233!==this[_0x5e7227(0x16b)])){const _0x3cf350=_0x5ead65[_0x5e7227(0x178)](_0x5e7227(0x150),{}),_0x2a884a=[];this[_0x5e7227(0x16b)]&&_0x2a884a[_0x5e7227(0x15a)](this[_0x5e7227(0x16b)]),_0x2a884a[_0x5e7227(0x15a)](..._0xc68b7e),_0x5ead65[_0x5e7227(0x12a)](_0x3cf350,_0x2a884a[0x0],_0x5e7227(0x13e));for(const _0x5685c9 of _0x2a884a)_0x5ead65[_0x5e7227(0x169)](_0x5ead65[_0x5e7227(0x12e)](_0x5685c9),_0x5ead65[_0x5e7227(0x15c)](_0x3cf350,_0x5e7227(0x12d))),_0x5ead65[_0x5e7227(0x163)](_0x5685c9);this[_0x5e7227(0x16b)]=_0x3cf350,this[_0x5e7227(0x127)](_0x5ead65),_0x5b32dc=!0x0;}else this[_0x5e7227(0x16b)]=_0xc68b7e[0x0];}if(_0x407192[_0x5e7227(0x184)]&&_0x5e7227(0x187)===this[_0x5e7227(0x16b)]?.[_0x5e7227(0x13f)][_0x5e7227(0x172)]){for(const _0x2bba6c of this[_0x5e7227(0x159)])_0x5ead65[_0x5e7227(0x163)](_0x2bba6c[_0x5e7227(0x16d)]),_0x5b32dc=!0x0;this[_0x5e7227(0x159)]=[],this[_0x5e7227(0x16b)]=null;}return _0x5b32dc;}[_0x392bae(0x164)](_0x2a744c,_0x6d31c6){const _0xaf7709=_0x392bae;let _0x4776ae=!0x1;const _0x180e09=this[_0xaf7709(0x14b)][_0xaf7709(0x176)][_0xaf7709(0x144)](_0xaf7709(0x135)),{inserted:_0x3c81ea,moved:_0x118c82}=this[_0xaf7709(0x13d)][_0xaf7709(0x167)](_0x6d31c6);for(const _0x15be16 of[..._0x118c82,..._0x3c81ea]){const _0x3c5cc0=_0x15be16[_0xaf7709(0x15f)](_0xaf7709(0x124)),_0x168474=this[_0xaf7709(0x16e)](_0x3c5cc0);_0x168474&&(_0x168474[_0xaf7709(0x128)]=_0x15be16),_(_0x2a744c,_0x180e09,_0x15be16)&&(_0x4776ae=!0x0);}return _0x4776ae;}[_0x392bae(0x15d)](_0x35180b,_0x4252b7){const _0x241f86=_0x392bae;let _0x19fc80=!0x1;const {removed:_0x5ec6d9,inserted:_0x583683,moved:_0x4ad798}=this[_0x241f86(0x147)][_0x241f86(0x167)](_0x4252b7);for(const _0x28f538 of _0x5ec6d9)this[_0x241f86(0x154)](_0x35180b,_0x28f538)&&(_0x19fc80=!0x0);for(const _0x4dcdfb of _0x583683)this[_0x241f86(0x17e)](_0x35180b,_0x4dcdfb)&&(_0x19fc80=!0x0);for(const _0xa34f02 of _0x4ad798)this[_0x241f86(0x174)](_0x35180b,_0xa34f02)&&(_0x19fc80=!0x0);return _0x19fc80;}[_0x392bae(0x137)](_0x3ed078){const _0x15fb8a=_0x392bae;if(!this[_0x15fb8a(0x16b)])return!0x1;let _0x45f787=!0x1;if(this[_0x15fb8a(0x16b)][_0x15fb8a(0x170)]!==this[_0x15fb8a(0x159)][_0x15fb8a(0x184)]){const _0x116cbd=[];for(const _0x37811f of this[_0x15fb8a(0x16b)][_0x15fb8a(0x13a)]()){const _0x2bc8be=_0x37811f[_0x15fb8a(0x15f)](_0x15fb8a(0x124));this[_0x15fb8a(0x16e)](_0x2bc8be)||(_0x116cbd[_0x15fb8a(0x14c)](_0x37811f),_0x45f787=!0x0);}for(const _0x45f78e of _0x116cbd)_0x3ed078[_0x15fb8a(0x163)](_0x45f78e);}const _0x3e610d=new Set(),_0x256686=[];for(const _0x15b935 of this[_0x15fb8a(0x16b)][_0x15fb8a(0x13a)]()){const _0x44b178=_0x15b935[_0x15fb8a(0x15f)](_0x15fb8a(0x124));_0x3e610d[_0x15fb8a(0x14e)](_0x44b178)?(_0x256686[_0x15fb8a(0x14c)](_0x15b935),_0x45f787=!0x0):_0x3e610d[_0x15fb8a(0x138)](_0x44b178);}for(const _0x24c00b of _0x256686)_0x3ed078[_0x15fb8a(0x163)](_0x24c00b);return this[_0x15fb8a(0x16b)][_0x15fb8a(0x170)]||(_0x3ed078[_0x15fb8a(0x163)](this[_0x15fb8a(0x16b)]),this[_0x15fb8a(0x16b)]=null,_0x45f787=!0x0),_0x45f787;}[_0x392bae(0x17e)](_0x4ca470,_0x18cb6b){const _0x2ebf09=_0x392bae;if(this[_0x2ebf09(0x159)][_0x2ebf09(0x171)](_0x2b3ca0=>_0x2b3ca0[_0x2ebf09(0x16d)]===_0x18cb6b))return!0x1;let _0x5f5793=!0x1;const _0xd441d=_0x18cb6b[_0x2ebf09(0x15f)](_0x2ebf09(0x124)),_0x3ed360=this[_0x2ebf09(0x159)][_0x2ebf09(0x130)](_0x157770=>_0x157770['id']===_0xd441d);-0x1!==_0x3ed360&&(_0x4ca470[_0x2ebf09(0x163)](this[_0x2ebf09(0x159)][_0x3ed360][_0x2ebf09(0x16d)]),this[_0x2ebf09(0x159)][_0x2ebf09(0x157)](_0x3ed360,0x1),_0x5f5793=!0x0);let _0xc1f89a=this[_0x2ebf09(0x16b)]?function(_0x393541,_0x361ebb){const _0x1b6616=_0x2ebf09;for(const _0x4f379d of _0x393541[_0x1b6616(0x13a)]())if(_0x4f379d[_0x1b6616(0x15f)](_0x1b6616(0x124))===_0x361ebb)return _0x4f379d;return null;}(this[_0x2ebf09(0x16b)],_0xd441d):null;_0xc1f89a||(_0xc1f89a=_0x4ca470[_0x2ebf09(0x178)](_0x2ebf09(0x148),{'footnoteId':_0xd441d}),this[_0x2ebf09(0x16b)]&&(_0x4ca470[_0x2ebf09(0x12a)](_0xc1f89a,this[_0x2ebf09(0x16b)],_0x2ebf09(0x12d)),_0x5f5793=!0x0));const _0x5a971e={'id':_0xd441d,'reference':_0x18cb6b,'definition':_0xc1f89a},_0x1b26aa=I(this[_0x2ebf09(0x14b)][_0x2ebf09(0x142)],this[_0x2ebf09(0x159)],_0x18cb6b);this[_0x2ebf09(0x159)][_0x2ebf09(0x157)](_0x1b26aa,0x0,_0x5a971e);let _0xf9526e=_0x1b26aa;return-0x1!==_0x3ed360&&(_0xf9526e=Math[_0x2ebf09(0x143)](_0x1b26aa,_0x3ed360)),this[_0x2ebf09(0x127)](_0x4ca470,_0xf9526e)&&(_0x5f5793=!0x0),_0x5f5793;}[_0x392bae(0x154)](_0x296951,_0x382439){const _0x56b679=_0x392bae,_0x2ddcc3=this[_0x56b679(0x159)][_0x56b679(0x130)](_0x2a199e=>_0x2a199e['id']===_0x382439);if(-0x1===_0x2ddcc3)return!0x1;let _0x36ae38=!0x1;const _0x67ea05=this[_0x56b679(0x159)][_0x2ddcc3];return _0x56b679(0x187)!==_0x67ea05[_0x56b679(0x128)][_0x56b679(0x13f)][_0x56b679(0x172)]&&(_0x296951[_0x56b679(0x163)](_0x67ea05[_0x56b679(0x128)]),_0x36ae38=!0x0),this[_0x56b679(0x159)][_0x56b679(0x157)](_0x2ddcc3,0x1),this[_0x56b679(0x127)](_0x296951,_0x2ddcc3)&&(_0x36ae38=!0x0),_0x36ae38;}[_0x392bae(0x174)](_0x33f22f,_0x44bd4a){const _0x3cfe48=_0x392bae,_0x57ddf6=_0x44bd4a[_0x3cfe48(0x15f)](_0x3cfe48(0x124)),_0x591d0f=this[_0x3cfe48(0x159)][_0x3cfe48(0x130)](_0x4e3039=>_0x4e3039['id']===_0x57ddf6),_0x192b64=this[_0x3cfe48(0x159)][_0x591d0f];let _0x42e5ca=!0x1;_0x192b64[_0x3cfe48(0x16d)]=_0x44bd4a,this[_0x3cfe48(0x159)][_0x3cfe48(0x157)](_0x591d0f,0x1);const _0x2ac650=I(this[_0x3cfe48(0x14b)][_0x3cfe48(0x142)],this[_0x3cfe48(0x159)],_0x44bd4a);return this[_0x3cfe48(0x159)][_0x3cfe48(0x157)](_0x2ac650,0x0,_0x192b64),this[_0x3cfe48(0x127)](_0x33f22f,Math[_0x3cfe48(0x143)](_0x591d0f,_0x2ac650))&&(_0x42e5ca=!0x0),_0x42e5ca;}[_0x392bae(0x161)](_0x1dc8fa,_0x49a8dd){const _0x4bc12b=_0x392bae;if(!this[_0x4bc12b(0x16b)])return!0x1;const _0x4ae1c8=this[_0x4bc12b(0x159)][_0x49a8dd];let _0x223635;return _0x223635=this[_0x4bc12b(0x165)]?this[_0x4bc12b(0x165)]({'footnote':_0x4ae1c8,'container':this[_0x4bc12b(0x16b)],'digits':String(this[_0x4bc12b(0x159)][_0x4bc12b(0x184)])[_0x4bc12b(0x184)],'value':_0x49a8dd+0x1}):String(_0x49a8dd+0x1),_0x4ae1c8[_0x4bc12b(0x16d)][_0x4bc12b(0x15f)](_0x4bc12b(0x175))!=_0x223635&&(_0x1dc8fa[_0x4bc12b(0x17f)](_0x4bc12b(0x175),_0x223635,_0x4ae1c8[_0x4bc12b(0x16d)]),!0x0);}[_0x392bae(0x126)](_0x5f4104){const _0x5b8c84=_0x392bae;if(!this[_0x5b8c84(0x16b)]||this[_0x5b8c84(0x159)][_0x5b8c84(0x184)]<0x2)return!0x1;if(function(_0x3596db,_0x5a07d6){const _0x243535=_0x5b8c84;if(_0x3596db[_0x243535(0x184)]!==_0x5a07d6[_0x243535(0x184)])return!0x1;for(let _0x3fd999=0x0;_0x3fd999<_0x3596db[_0x243535(0x184)];_0x3fd999++)if(_0x3596db[_0x3fd999]!==_0x5a07d6[_0x3fd999])return!0x1;return!0x0;}(this[_0x5b8c84(0x159)][_0x5b8c84(0x156)](_0x35756d=>_0x35756d['id']),Array[_0x5b8c84(0x14f)](this[_0x5b8c84(0x16b)][_0x5b8c84(0x13a)]())[_0x5b8c84(0x156)](_0x791509=>_0x791509[_0x5b8c84(0x15f)](_0x5b8c84(0x124)))))return!0x1;let _0x5c02b5=!0x1;for(let _0x492b60=0x0;_0x492b60<this[_0x5b8c84(0x159)][_0x5b8c84(0x184)];_0x492b60++){const _0x308d2c=this[_0x5b8c84(0x159)][_0x492b60],_0x5f37ea=_0x5f4104[_0x5b8c84(0x182)](_0x308d2c[_0x5b8c84(0x128)]),_0x4ce9e6=_0x5f4104[_0x5b8c84(0x15c)](this[_0x5b8c84(0x16b)],_0x492b60);_0x5f37ea[_0x5b8c84(0x131)](_0x4ce9e6)||(_0x5f4104[_0x5b8c84(0x169)](_0x5f4104[_0x5b8c84(0x183)](_0x308d2c[_0x5b8c84(0x128)]),_0x4ce9e6),_0x5c02b5=!0x0);}return _0x5c02b5;}[_0x392bae(0x179)](_0x36ebe3){const _0x12ac88=_0x392bae;if(!this[_0x12ac88(0x159)][_0x12ac88(0x184)])return!0x1;const {model:_0x5a21c0}=this[_0x12ac88(0x14b)];let _0xb1a0ca=!0x1;for(let _0x5b5a2e=0x0;_0x5b5a2e<this[_0x12ac88(0x159)][_0x12ac88(0x184)]-0x1;_0x5b5a2e++){const _0x46bbf7=this[_0x12ac88(0x159)][_0x5b5a2e],_0x516fe9=this[_0x12ac88(0x159)][_0x5b5a2e+0x1],_0x2235c7=_0x5a21c0[_0x12ac88(0x182)](_0x46bbf7[_0x12ac88(0x16d)]),_0x564de1=_0x5a21c0[_0x12ac88(0x182)](_0x516fe9[_0x12ac88(0x16d)]);_0x12ac88(0x15b)===_0x2235c7[_0x12ac88(0x133)](_0x564de1)&&(this[_0x12ac88(0x174)](_0x36ebe3,_0x46bbf7[_0x12ac88(0x16d)]),_0x5b5a2e=-0x1,_0xb1a0ca=!0x0);}return _0xb1a0ca;}}function _0x5e4a(_0x24d672,_0x389f26){const _0x5f54f8=_0x5f54();return _0x5e4a=function(_0x5e4a3d,_0x52177a){_0x5e4a3d=_0x5e4a3d-0x123;let _0x237b0a=_0x5f54f8[_0x5e4a3d];return _0x237b0a;},_0x5e4a(_0x24d672,_0x389f26);}function _(_0x5ee206,_0x451531,_0x4dbbd7){const _0x73675=_0x392bae;if(_0x4dbbd7[_0x73675(0x170)])return!0x1;const _0x495462=_0x451531?_0x73675(0x14d):_0x73675(0x146);return _0x5ee206[_0x73675(0x12a)](_0x5ee206[_0x73675(0x178)](_0x495462),_0x4dbbd7),!0x0;}function I(_0x270e25,_0x2b6af1,_0x76e3a7){const _0x2a52c0=_0x392bae;if(0x0===_0x2b6af1[_0x2a52c0(0x184)])return 0x0;const _0x9e1999=_0x270e25[_0x2a52c0(0x182)](_0x76e3a7);for(let _0x2862ce=0x0;_0x2862ce<_0x2b6af1[_0x2a52c0(0x184)];_0x2862ce++){const _0x3a2eed=_0x2b6af1[_0x2862ce],_0x24d816=_0x270e25[_0x2a52c0(0x182)](_0x3a2eed[_0x2a52c0(0x16d)]);if(_0x2a52c0(0x13e)===_0x9e1999[_0x2a52c0(0x133)](_0x24d816))return _0x2862ce;}const _0x319a3f=_0x76e3a7[_0x2a52c0(0x13f)];let _0x423c65=-0x1;for(let _0xabaa86=_0x2b6af1[_0x2a52c0(0x184)]-0x1;_0xabaa86>=0x0;_0xabaa86--)if(_0x2b6af1[_0xabaa86][_0x2a52c0(0x16d)][_0x2a52c0(0x13f)]===_0x319a3f){_0x423c65=_0xabaa86;break;}if(-0x1!==_0x423c65)return _0x423c65+0x1;const _0x2fd51e=_0x270e25[_0x2a52c0(0x12c)][_0x2a52c0(0x13c)](),_0x91844c=_0x2fd51e[_0x2a52c0(0x17c)](_0x319a3f[_0x2a52c0(0x172)]),_0x4a25d1=_0x2fd51e[_0x91844c+0x1];if(_0x4a25d1){for(let _0x3102cf=0x0;_0x3102cf<_0x2b6af1[_0x2a52c0(0x184)];_0x3102cf++)if(_0x2b6af1[_0x3102cf][_0x2a52c0(0x16d)][_0x2a52c0(0x13f)][_0x2a52c0(0x172)]===_0x4a25d1)return _0x3102cf;}return _0x2b6af1[_0x2a52c0(0x184)];}function _0x5f54(){const _0x26bdeb=['set','47803CdmBFE','_handleRemoveFootnoteReferenceById','135378ygKMyx','map','splice','743391EJcQhM','_footnotes','push','after','createPositionAt','_handleFootnoteReferencesChanges','9mazWDe','getAttribute','init','_updateFootnoteRefCounter','pluginName','remove','_handleFootnoteDefinitionsChanges','_footnoteFormatter','listenTo','getChanges','change:data','move','_insertEmptyFootnotesDefinitionsContainer','_footnotesDefinitions','216mkhUQs','reference','getFootnote','parent','childCount','find','rootName','FootnotesTracker','_handleMovedFootnoteReference','footnoteCounter','config','getFootnotesFormatter','createElement','_ensureFootnotesReferencesHaveProperOrder','reset','enqueueChange','indexOf','70Lxtobn','_handleInsertedFootnoteReference','setAttribute','registerPostFixer','some','createPositionBefore','createRangeOn','length','_ensureFootnotesDefinitionsContainerExists','getFootnotesDefinitionsObjectElement','$graveyard','append','footnoteId','high','_sortFootnoteDefinitions','_updateFootnotesCounters','definition','_footnoteDefsContainerTracker','insert','_handleFootnotesDefinitionsObjectChanges','document','end','createRangeIn','isOfficialPlugin','findIndex','isEqual','getFootnotes','compareWith','251034XzGYam','footnotes.multiBlock','singleton','_handleFootnotesDefinitionsObjectSync','add','differ','getChildren','footnoteRef','getRootNames','_footnoteDefsTracker','before','root','866966BjjzLC','isPremiumPlugin','model','min','get','48388GbtRNl','footnoteInlineContent','_footnoteRefsTracker','footnoteDefinition','low','1874990YHsNsa','editor','unshift','paragraph','has','from','footnotesDefinitions','setFootnoteFormatter'];_0x5f54=function(){return _0x26bdeb;};return _0x5f54();}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x19c775,MenuBarMenuListItemButtonView as _0x2896a1}from'ckeditor5/src/ui.js';import{Plugin as _0x483dd4}from'ckeditor5/src/core.js';import{IconFootnote as _0x239363}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x483dd4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd7d0d9}=this,{componentFactory:_0x28b9cb}=_0xd7d0d9['ui'];_0x28b9cb['add']('insertFootnote',E(_0xd7d0d9,_0x19c775)),_0x28b9cb['add']('menuBar:insertFootnote',E(_0xd7d0d9,_0x2896a1)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ab57a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d9ed8;for(const _0x25f3f7 in _0x4ab57a){const _0xa262a6=_0x25f3f7,_0x45cec9=_0x4ab57a[_0xa262a6];if('footnotesLicenseKeyValid'==_0x45cec9||'footnotesLicenseKeyInvalid'==_0x45cec9||'footnotesLicenseKeyExpired'==_0x45cec9||'footnotesLicenseKeyDomainLimit'==_0x45cec9||'footnotesLicenseKeyNotAllowed'==_0x45cec9||'footnotesLicenseKeyEvaluationLimit'==_0x45cec9||'footnotesLicenseKeyUsageLimit'==_0x45cec9){delete _0x4ab57a[_0xa262a6],_0x3d9ed8=_0x45cec9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3d9ed8&&_0x4ab57a['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3d9ed8&&_0x4ab57a['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3d9ed8&&_0x4ab57a['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3d9ed8&&_0x4ab57a['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3d9ed8&&_0x4ab57a['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x3d9ed8&&_0x4ab57a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x17ac01,_0x2d9a79){const _0x2f4cd3=_0x17ac01['commands']['get']('insertFootnote');return _0x17288e=>{const {t:t}=_0x17288e,_0x1e07e7=new _0x2d9a79(_0x17288e),_0x51521e=_0x1e07e7 instanceof _0x2896a1;return _0x1e07e7['bind']('isEnabled')['to'](_0x2f4cd3,'isEnabled'),_0x1e07e7['set']({'label':t(_0x51521e?'Footnote':'Insert\x20footnote'),'icon':_0x239363,'tooltip':!0x0}),_0x1e07e7['on']('execute',()=>{_0x2f4cd3['execute'](),_0x17ac01['editing']['view']['focus']();}),_0x1e07e7;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x54be2d,_0x58e0d0){var _0x175a7e=_0x3663,_0x55661b=_0x54be2d();while(!![]){try{var _0x1eb3a9=-parseInt(_0x175a7e(0x161))/0x1*(-parseInt(_0x175a7e(0x15c))/0x2)+-parseInt(_0x175a7e(0x165))/0x3*(parseInt(_0x175a7e(0x163))/0x4)+-parseInt(_0x175a7e(0x15f))/0x5+parseInt(_0x175a7e(0x160))/0x6*(parseInt(_0x175a7e(0x164))/0x7)+parseInt(_0x175a7e(0x15e))/0x8+parseInt(_0x175a7e(0x15d))/0x9*(-parseInt(_0x175a7e(0x162))/0xa)+parseInt(_0x175a7e(0x166))/0xb;if(_0x1eb3a9===_0x58e0d0)break;else _0x55661b['push'](_0x55661b['shift']());}catch(_0x5e45d2){_0x55661b['push'](_0x55661b['shift']());}}}(_0x58e5,0x2a05b));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';function _0x58e5(){var _0x4478f9=['272562YPACxc','268hlhMBe','1754530WAygsm','263524ANhvrj','35NDAZfe','15SYdjZV','94787AtJKvN','1962KnfGPM','9PUdICm','1723944HMYXGm','185860tCoVgp'];_0x58e5=function(){return _0x4478f9;};return _0x58e5();}function _0x3663(_0x44605d,_0xe973ad){var _0x58e5bd=_0x58e5();return _0x3663=function(_0x366321,_0x1cad3d){_0x366321=_0x366321-0x15c;var _0x1ba5e4=_0x58e5bd[_0x366321];return _0x1ba5e4;},_0x3663(_0x44605d,_0xe973ad);}export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48f42=_0x5949;function _0x5949(_0x24b157,_0x120aa1){const _0x343424=_0x3434();return _0x5949=function(_0x5949d7,_0x3ed29e){_0x5949d7=_0x5949d7-0x72;let _0x1da2b3=_0x343424[_0x5949d7];return _0x1da2b3;},_0x5949(_0x24b157,_0x120aa1);}(function(_0x237baf,_0x17228d){const _0x8894a2=_0x5949,_0x575675=_0x237baf();while(!![]){try{const _0x53bbc7=parseInt(_0x8894a2(0x8a))/0x1+parseInt(_0x8894a2(0x8d))/0x2+parseInt(_0x8894a2(0x7c))/0x3*(parseInt(_0x8894a2(0x9a))/0x4)+parseInt(_0x8894a2(0x91))/0x5*(parseInt(_0x8894a2(0x96))/0x6)+-parseInt(_0x8894a2(0x82))/0x7*(-parseInt(_0x8894a2(0x87))/0x8)+parseInt(_0x8894a2(0x92))/0x9+-parseInt(_0x8894a2(0x80))/0xa*(parseInt(_0x8894a2(0x7a))/0xb);if(_0x53bbc7===_0x17228d)break;else _0x575675['push'](_0x575675['shift']());}catch(_0x2c6af3){_0x575675['push'](_0x575675['shift']());}}}(_0x3434,0x7c54f));export class ModelElementTracker{[_0x48f42(0x8b)];[_0x48f42(0x7b)];[_0x48f42(0x8f)];[_0x48f42(0x73)]=new Map();constructor(_0x3e31b4,_0x23195e){const _0x40d3de=_0x48f42;this[_0x40d3de(0x8b)]=_0x3e31b4,this[_0x40d3de(0x7b)]=_0x23195e[_0x40d3de(0x7e)],this[_0x40d3de(0x8f)]=_0x23195e[_0x40d3de(0x93)];}[_0x48f42(0x8e)](){const _0x2044f9=_0x48f42;this[_0x2044f9(0x73)][_0x2044f9(0x94)]();}[_0x48f42(0x90)](_0x3346d4){const _0x17bb4f=_0x48f42,_0x3bb147=new Set(),_0x4c1a60=new Map();for(const _0x1bcd3e of _0x3346d4){if(_0x17bb4f(0x84)===_0x1bcd3e[_0x17bb4f(0x79)]&&_0x17bb4f(0x77)!==_0x1bcd3e[_0x17bb4f(0x81)]&&_0x1bcd3e[_0x17bb4f(0x9b)][_0x17bb4f(0x86)]){const _0x3e7c10=this[_0x17bb4f(0x8b)][_0x17bb4f(0x9d)](_0x1bcd3e[_0x17bb4f(0x9b)][_0x17bb4f(0x86)]);for(const _0x46c763 of _0x3e7c10[_0x17bb4f(0x78)]()){if(!_0x46c763['is'](_0x17bb4f(0x95),this[_0x17bb4f(0x7b)]))continue;const _0x3de269=this[_0x17bb4f(0x8f)](_0x46c763);_0x4c1a60[_0x17bb4f(0x74)](_0x3de269)||_0x4c1a60[_0x17bb4f(0x99)](_0x3de269,[]),_0x4c1a60[_0x17bb4f(0x7d)](_0x3de269)[_0x17bb4f(0x89)](_0x46c763);}}if(_0x17bb4f(0x88)===_0x1bcd3e[_0x17bb4f(0x79)]&&_0x1bcd3e[_0x17bb4f(0x81)]===this[_0x17bb4f(0x7b)]){const _0x32e8c9=this[_0x17bb4f(0x8f)]({'getAttribute':_0x36794d=>_0x1bcd3e[_0x17bb4f(0x76)][_0x17bb4f(0x7d)](_0x36794d)});_0x3bb147[_0x17bb4f(0x8c)](_0x32e8c9);}}for(const [_0x44e809,_0x53a73c]of this[_0x17bb4f(0x73)])_0x17bb4f(0x85)===_0x53a73c[_0x17bb4f(0x72)][_0x17bb4f(0x9c)]&&_0x3bb147[_0x17bb4f(0x8c)](_0x44e809);for(const _0x10348a of _0x3bb147)this[_0x17bb4f(0x73)][_0x17bb4f(0x9e)](_0x10348a);for(const [_0x290f69,_0x2cd1d5]of _0x4c1a60)this[_0x17bb4f(0x73)][_0x17bb4f(0x99)](_0x290f69,_0x2cd1d5[_0x2cd1d5[_0x17bb4f(0x98)]-0x1]);const _0xe91c59=new Set();for(const [_0x43072a,_0x1b0c95]of _0x4c1a60)_0x3bb147[_0x17bb4f(0x74)](_0x43072a)&&(_0xe91c59[_0x17bb4f(0x8c)](_0x1b0c95[0x0]),_0x1b0c95[_0x17bb4f(0x98)]>0x1?_0x4c1a60[_0x17bb4f(0x99)](_0x43072a,_0x1b0c95[_0x17bb4f(0x83)](0x1)):_0x4c1a60[_0x17bb4f(0x9e)](_0x43072a),_0x3bb147[_0x17bb4f(0x9e)](_0x43072a));return{'removed':Array[_0x17bb4f(0x75)](_0x3bb147),'inserted':Array[_0x17bb4f(0x75)](_0x4c1a60[_0x17bb4f(0x7f)]())[_0x17bb4f(0x97)](),'moved':Array[_0x17bb4f(0x75)](_0xe91c59)};}}function _0x3434(){const _0x539b06=['push','759406UjYwhS','_model','add','1060142KaDqfH','reset','_getElementKey','getChanges','62630HPWsyY','8034246lswdyQ','getElementKey','clear','element','408mDbBlB','flat','length','set','4QiPObO','position','rootName','createRangeOn','delete','root','_trackedElements','has','from','attributes','$text','getItems','type','88847XtSfnH','_elementName','2851677ZRNbqO','get','elementName','values','4730CYMSoy','name','2114aqPeAb','slice','insert','$graveyard','nodeAfter','9144CbYfsn','remove'];_0x3434=function(){return _0x539b06;};return _0x3434();}
|