@ckeditor/ckeditor5-footnotes 47.5.0-alpha.0 → 47.5.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _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]);}
|
|
23
|
+
import{Plugin as _0x75d960}from'ckeditor5/src/core.js';import{isWidget as _0x519126,toWidget as _0x55d868,toWidgetEditable as _0x3dd9c5}from'ckeditor5/src/widget.js';import{uid as _0x4c2a7c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1245ac,ClickObserver as _0x8bc9e4}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1e8123}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x18f84b}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x75d960{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1e8123];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x28323b}=this;_0x28323b['config']['define']('footnotes.multiBlock',!0x0),_0x28323b['commands']['add']('insertFootnote',new _0x18f84b(_0x28323b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x53e310){const _0x2f6837=_0x430c9e([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]),_0x1b8366=0x47a28506,_0x1c7b3c=0x47a505de^_0x1b8366,_0x34833a=window[_0x430c9e([0x44,0x61,0x74,0x65])][_0x430c9e([0x6e,0x6f,0x77])](),_0x5f0fe9=_0x53e310[_0x430c9e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1acfac=new window[(_0x430c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xabb9ac=>{_0x5f0fe9[_0x430c9e([0x6f,0x6e,0x63,0x65])](_0x430c9e([0x72,0x65,0x61,0x64,0x79]),_0xabb9ac);}),_0x5e54b8={[_0x430c9e([0x6b,0x74,0x79])]:_0x430c9e([0x45,0x43]),[_0x430c9e([0x75,0x73,0x65])]:_0x430c9e([0x73,0x69,0x67]),[_0x430c9e([0x63,0x72,0x76])]:_0x430c9e([0x50,0x2d,0x32,0x35,0x36]),[_0x430c9e([0x78])]:_0x430c9e([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]),[_0x430c9e([0x79])]:_0x430c9e([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]),[_0x430c9e([0x61,0x6c,0x67])]:_0x430c9e([0x45,0x53,0x32,0x35,0x36])},_0x50d865=_0x5f0fe9[_0x430c9e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x430c9e([0x67,0x65,0x74])](_0x430c9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f01c2(){let _0x4fca90,_0x19e5be=null,_0x3d8986=null;try{if(_0x50d865==_0x430c9e([0x47,0x50,0x4c]))return _0x430c9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fca90=_0x3e67a9(),!_0x4fca90)return _0x430c9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fca90[_0x430c9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d8986=_0x38db73(_0x4fca90[_0x430c9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fca90[_0x430c9e([0x6a,0x74,0x69])])),await _0x2fea66()?_0x3a543b()?_0x2bce73()?_0x430c9e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xace585()?(_0x4fca90[_0x430c9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x430c9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19e5be=_0x454fa9(_0x430c9e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ed113()):_0x430c9e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x430c9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x430c9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x430c9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2bce73(){const _0x2752a2=[_0x430c9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x430c9e([0x74,0x72,0x69,0x61,0x6c])][_0x430c9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fca90[_0x430c9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34833a/0x3e8:0xe10*_0x1c7b3c;return _0x4fca90[_0x430c9e([0x65,0x78,0x70])]<_0x2752a2;}function _0x3a543b(){const _0x30b519=_0x4fca90[_0x430c9e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30b519&&(!!_0x30b519[_0x430c9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430c9e([0x2a]))||!!_0x30b519[_0x430c9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430c9e([0x46,0x4f,0x4f])));}function _0xace585(){const _0xa19b32=_0x4fca90[_0x430c9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa19b32||0x0==_0xa19b32[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x550968}=new URL(window[_0x430c9e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa19b32[_0x430c9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x550968))return!0x0;const _0x2e4356=_0x550968[_0x430c9e([0x73,0x70,0x6c,0x69,0x74])](_0x430c9e([0x2e]));return _0xa19b32[_0x430c9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd17792=>_0xd17792[_0x430c9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430c9e([0x2a])))[_0x430c9e([0x6d,0x61,0x70])](_0x45c3d1=>_0x45c3d1[_0x430c9e([0x73,0x70,0x6c,0x69,0x74])](_0x430c9e([0x2e])))[_0x430c9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b3419=>_0x2b3419[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e4356[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x430c9e([0x6d,0x61,0x70])](_0x184e27=>Array(_0x2e4356[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x184e27[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x430c9e([0x66,0x69,0x6c,0x6c])](_0x184e27[0x0]===_0x430c9e([0x2a])?_0x430c9e([0x2a]):'')[_0x430c9e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x184e27))[_0x430c9e([0x73,0x6f,0x6d,0x65])](_0x57d1de=>_0x2e4356[_0x430c9e([0x65,0x76,0x65,0x72,0x79])]((_0x15e363,_0x41642d)=>_0x57d1de[_0x41642d]===_0x15e363||_0x57d1de[_0x41642d]===_0x430c9e([0x2a])));}function _0x4ed113(){return _0x19e5be&&_0x3d8986?new window[(_0x430c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x245acb,_0x542ca7)=>{_0x19e5be[_0x430c9e([0x74,0x68,0x65,0x6e])](_0x245acb,_0x542ca7),_0x3d8986[_0x430c9e([0x74,0x68,0x65,0x6e])](_0x2e7d41=>{_0x2e7d41!=_0x430c9e([0x56,0x61,0x6c,0x69,0x64])&&_0x245acb(_0x2e7d41);},_0x542ca7);}):_0x19e5be||_0x3d8986||_0x430c9e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38db73(_0x42cacd,_0x239db6){return new window[(_0x430c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb77141=>{if(_0x13cb03())return _0xb77141(_0x430c9e([0x56,0x61,0x6c,0x69,0x64]));_0x486287(),_0x5f0fe9[_0x430c9e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x430c9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x381163=!0x1;const _0x41e30=_0x4c2a7c();function _0x475d85(_0x43cafa){return!!_0x43cafa&&(typeof _0x43cafa===_0x430c9e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x43cafa===_0x430c9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x43cafa[_0x430c9e([0x74,0x68,0x65,0x6e])]===_0x430c9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x43cafa[_0x430c9e([0x63,0x61,0x74,0x63,0x68])]===_0x430c9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x585ef9(_0x2b8328){_0x3463e1(_0x2b8328)[_0x430c9e([0x74,0x68,0x65,0x6e])](_0x18e40e=>{if(!_0x18e40e||_0x18e40e[_0x430c9e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x430c9e([0x6f,0x6b]))return _0x430c9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10401a(_0x3794af(_0x41e30+_0x239db6))!=_0x18e40e[_0x430c9e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x430c9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x430c9e([0x56,0x61,0x6c,0x69,0x64]);})[_0x430c9e([0x74,0x68,0x65,0x6e])](_0x41fafb=>(_0x392924(),_0x41fafb),()=>{const _0x4cd73e=_0x1da86f();return null==_0x4cd73e?(_0x392924(),_0x430c9e([0x56,0x61,0x6c,0x69,0x64])):_0x430c9e(_0x34833a-_0x4cd73e>(0x63ae0106^_0x1b8366)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x430c9e([0x74,0x68,0x65,0x6e])](_0xb77141)[_0x430c9e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb77141(_0x430c9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdfad=0x47946b86^_0x1b8366;function _0x392924(){const _0x33d5b3=_0x430c9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x10401a(_0x3794af(_0x42cacd)),_0x3a710b=_0x45a5e2(_0x10401a(window[_0x430c9e([0x4d,0x61,0x74,0x68])][_0x430c9e([0x63,0x65,0x69,0x6c])](_0x34833a/_0xdfad)));window[_0x430c9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x430c9e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33d5b3,_0x3a710b);}function _0x1da86f(){const _0x1bc07a=_0x430c9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x10401a(_0x3794af(_0x42cacd)),_0xf4575c=window[_0x430c9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x430c9e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bc07a);return _0xf4575c?window[_0x430c9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45a5e2(_0xf4575c),0x10)*_0xdfad:null;}function _0x3463e1(_0xf226f7){return new window[(_0x430c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x493d99,_0x318463)=>{_0xf226f7[_0x430c9e([0x74,0x68,0x65,0x6e])](_0x493d99,_0x318463),window[_0x430c9e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x318463,0x47a351c6^_0x1b8366);});}}_0x5f0fe9[_0x430c9e([0x6f,0x6e])](_0x430c9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20f3fd,_0x5f5708)=>{if(_0x5f5708[0x0]!=_0x42cacd)return _0xb77141(_0x430c9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f5708[0x1]={..._0x5f5708[0x1],[_0x430c9e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41e30};},{[_0x430c9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x430c9e([0x68,0x69,0x67,0x68])}),_0x5f0fe9[_0x430c9e([0x6f,0x6e])](_0x430c9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb700d2=>{_0x475d85(_0xb700d2[_0x430c9e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x381163=!0x0,_0x585ef9(_0xb700d2[_0x430c9e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x430c9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x430c9e([0x6c,0x6f,0x77])}),_0x1acfac[_0x430c9e([0x74,0x68,0x65,0x6e])](()=>{_0x381163||_0xb77141(_0x430c9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13cb03(){return _0x5f0fe9[_0x430c9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x430c9e([0x76,0x69,0x65,0x77])][_0x430c9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x430c9e([0x61,0x75,0x74,0x6f]);}function _0x486287(){_0x5f0fe9[_0x430c9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x430c9e([0x76,0x69,0x65,0x77])][_0x430c9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x430c9e([0x61,0x75,0x74,0x6f]);}}function _0x454fa9(_0x420f41){const _0x2babce=[new window[(_0x430c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe6b18c=>setTimeout(_0xe6b18c,0x47abbbca^_0x1b8366)),_0x1acfac[_0x430c9e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x430c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31addd=>{let _0x33c9e5=0x0;_0x5f0fe9[_0x430c9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x430c9e([0x6f,0x6e])](_0x430c9e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f70b4,_0x54da69)=>{_0x54da69[0x0][_0x430c9e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33c9e5++,_0x33c9e5==(0x47a280ee^_0x1b8366)&&(_0x31addd(),_0x4f70b4[_0x430c9e([0x6f,0x66,0x66])]());});}))];return window[_0x430c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x430c9e([0x72,0x61,0x63,0x65])](_0x2babce)[_0x430c9e([0x74,0x68,0x65,0x6e])](()=>_0x420f41);}async function _0x22d4c6(){await _0x1acfac,_0x5f0fe9[_0x430c9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x430c9e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x149b91,_0x5f0fe9[_0x430c9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x430c9e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x149b91,_0x5f0fe9[_0x430c9e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x430c9e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c6329(_0x4f0369){const _0x309631=_0x45b74d();_0x5f0fe9[_0x309631]=_0x430c9e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f0369,_0x4f0369!=_0x430c9e([0x56,0x61,0x6c,0x69,0x64])&&_0x22d4c6();}function _0x45b74d(){const _0x44a1a6=window[_0x430c9e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x430c9e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x430c9e([0x6e,0x6f,0x77])]())[_0x430c9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x430c9e([0x2e]),'');let _0x6d36ff=_0x430c9e([0x75]);for(let _0x263344=0x0;_0x263344<_0x44a1a6[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x263344+=0x2){let _0x5c4db7=window[_0x430c9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44a1a6[_0x430c9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x263344,_0x263344+0x2));_0x5c4db7>=_0x2f6837[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c4db7-=_0x2f6837[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6d36ff+=_0x2f6837[_0x5c4db7];}return _0x6d36ff;}function _0x3e67a9(){const _0x918010=_0x50d865[_0x430c9e([0x73,0x70,0x6c,0x69,0x74])](_0x430c9e([0x2e]));if(0x3!=_0x918010[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x75d642(_0x918010[0x1]);function _0x75d642(_0x8772c0){const _0x23624b=_0x14b29d(_0x8772c0);return _0x23624b&&_0x54e397()?_0x23624b:null;function _0x54e397(){const _0x18bdca=_0x23624b[_0x430c9e([0x6a,0x74,0x69])],_0x4da07c=window[_0x430c9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18bdca[_0x430c9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18bdca[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x169151={..._0x23624b,[_0x430c9e([0x6a,0x74,0x69])]:_0x18bdca[_0x430c9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18bdca[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x169151[_0x430c9e([0x76,0x63])],_0x3794af(_0x169151)==_0x4da07c;}}}async function _0x2fea66(){let _0x1495c7=!0x0;try{const _0x4782bf=_0x50d865[_0x430c9e([0x73,0x70,0x6c,0x69,0x74])](_0x430c9e([0x2e])),[_0x21c335,_0x1fe53c,_0x4ff2b0]=_0x4782bf;return _0x126e36(_0x21c335),await _0x1fc177(_0x21c335,_0x1fe53c,_0x4ff2b0),_0x1495c7;}catch{return!0x1;}function _0x126e36(_0x5a14d6){const _0x38d7c9=_0x14b29d(_0x5a14d6);_0x38d7c9&&_0x38d7c9[_0x430c9e([0x61,0x6c,0x67])]==_0x430c9e([0x45,0x53,0x32,0x35,0x36])||(_0x1495c7=!0x1);}async function _0x1fc177(_0x2754a0,_0x3889cd,_0x774cd6){const _0x5678be=window[_0x430c9e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x430c9e([0x66,0x72,0x6f,0x6d])](_0x265559(_0x774cd6),_0x472d72=>_0x472d72[_0x430c9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ca335=new window[(_0x430c9e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x430c9e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2754a0+_0x430c9e([0x2e])+_0x3889cd),_0x5d596f=window[_0x430c9e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x430c9e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d596f)return;const _0x4e3d11=await _0x5d596f[_0x430c9e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x430c9e([0x6a,0x77,0x6b]),_0x5e54b8,{[_0x430c9e([0x6e,0x61,0x6d,0x65])]:_0x430c9e([0x45,0x43,0x44,0x53,0x41]),[_0x430c9e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x430c9e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x430c9e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d596f[_0x430c9e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x430c9e([0x6e,0x61,0x6d,0x65])]:_0x430c9e([0x45,0x43,0x44,0x53,0x41]),[_0x430c9e([0x68,0x61,0x73,0x68])]:{[_0x430c9e([0x6e,0x61,0x6d,0x65])]:_0x430c9e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e3d11,_0x5678be,_0x5ca335)||(_0x1495c7=!0x1);}}function _0x14b29d(_0x36dcf7){return _0x36dcf7[_0x430c9e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x430c9e([0x65,0x79]))?JSON[_0x430c9e([0x70,0x61,0x72,0x73,0x65])](_0x265559(_0x36dcf7)):null;}function _0x265559(_0x36af23){return window[_0x430c9e([0x61,0x74,0x6f,0x62])](_0x36af23[_0x430c9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x430c9e([0x2b]))[_0x430c9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x430c9e([0x2f])));}function _0x3794af(_0xcc8e06){let _0x1e3c97=0x1505;function _0x7e651e(_0x482b47){for(let _0x1d8ec0=0x0;_0x1d8ec0<_0x482b47[_0x430c9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d8ec0++){const _0x329d77=_0x482b47[_0x430c9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d8ec0);_0x1e3c97=(_0x1e3c97<<0x5)+_0x1e3c97+_0x329d77,_0x1e3c97&=_0x1e3c97;}}function _0x264ae9(_0x22d772){Array[_0x430c9e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22d772)?_0x22d772[_0x430c9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x264ae9):_0x22d772&&typeof _0x22d772==_0x430c9e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x430c9e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22d772)[_0x430c9e([0x73,0x6f,0x72,0x74])]()[_0x430c9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a39d9,_0x3c2d97])=>{_0x7e651e(_0x5a39d9),_0x264ae9(_0x3c2d97);}):_0x7e651e(window[_0x430c9e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22d772));}return _0x264ae9(_0xcc8e06),_0x1e3c97>>>0x0;}function _0x10401a(_0x3094be){return _0x3094be[_0x430c9e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x430c9e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x430c9e([0x30]));}function _0x45a5e2(_0x1d6d67){return _0x1d6d67[_0x430c9e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x430c9e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x430c9e([0x6a,0x6f,0x69,0x6e])]('');}function _0x149b91(){}function _0x430c9e(_0x5c9339){return _0x5c9339['map'](_0x193717=>String['fromCharCode'](_0x193717))['join']('');}_0x3c6329(await _0x1f01c2());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2a5c1c){const {plugins:_0x5896ca,editing:_0x44a6d2,model:_0x1b7153}=this['editor'],_0x243746=_0x5896ca['get'](_0x1e8123)['getFootnote'](_0x2a5c1c);return!!_0x243746&&(_0x1b7153['change'](_0x1f89bf=>{_0x1f89bf['setSelection'](_0x1f89bf['createPositionAt'](_0x243746['definition'],'end'));}),_0x44a6d2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x254a4d){const {plugins:_0x5294e9,editing:_0x1723cf,model:_0x141257}=this['editor'],_0x465afc=_0x5294e9['get'](_0x1e8123)['getFootnote'](_0x254a4d);return!!_0x465afc&&(_0x141257['change'](_0x30b622=>{_0x30b622['setSelection'](_0x465afc['reference'],'on');}),_0x1723cf['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x554829}=this['editor']['model'],_0x346d54=this['editor']['config']['get']('footnotes.multiBlock');_0x554829['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x554829['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x554829['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x346d54?_0x554829['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x554829['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x554829['addChildCheck'](_0x502f8a=>{for(const _0x345363 of _0x502f8a)if('footnoteDefinition'===_0x345363['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x117984}=this,{conversion:_0x13a66f,editing:_0x225de6}=_0x117984,{t:t}=_0x117984['locale'];_0x13a66f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x22ae84,{writer:_0x5d65e0,consumable:_0xbf9d8d})=>{const _0x1c5617=_0x22ae84['getChild'](0x0);if(!_0x1c5617||!_0x1c5617['is']('element','a'))return null;const _0x85115b=_0x1c5617['getAttribute']('href')||'';if(!_0x85115b['startsWith']('#'))return null;const _0x2ad1fe=_0x85115b['replace'](/^#/,'');if(!_0x2ad1fe)return null;_0xbf9d8d['consume'](_0x1c5617,{'name':!0x0,'attributes':['href']});for(const {item:_0x1b5f33}of _0x225de6['view']['createRangeIn'](_0x1c5617))_0x1b5f33['is']('$textProxy')?_0xbf9d8d['consume'](_0x1b5f33['textNode'],{'name':!0x0}):_0x1b5f33['is']('element')&&_0xbf9d8d['consume'](_0x1b5f33,{'name':!0x0});return _0x5d65e0['createElement']('footnoteRef',{'footnoteId':_0x2ad1fe});}}),_0x13a66f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x129a12,{writer:_0x22e3ba})=>b(_0x129a12,_0x22e3ba)}),_0x13a66f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1e9e7e,{writer:_0x5bdf1b})=>{const _0x3a67a9=_0x1e9e7e['getAttribute']('footnoteCounter');return _0x55d868(b(_0x1e9e7e,_0x5bdf1b),_0x5bdf1b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3a67a9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x398d3b}=this,{t:t}=_0x398d3b['locale'],{conversion:_0x1cb58c}=_0x398d3b;_0x1cb58c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1cb58c['for']('upcast')['add'](_0x3756e5=>{_0x3756e5['on']('element:ol',(_0x2a8c4e,_0x2a424b,_0x3585aa)=>{const _0x4963ef=_0x2a424b['viewItem'];if(!_0x4963ef['hasClass']('footnotes-list')||!_0x2a424b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3585aa['consumable']['consume'](_0x4963ef,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x24c2ce,modelCursor:_0x46c49a}=_0x3585aa['convertChildren'](_0x2a424b['viewItem'],_0x2a424b['modelCursor']);_0x2a424b['modelRange']=_0x24c2ce,_0x2a424b['modelCursor']=_0x46c49a;}),_0x3756e5['on']('element:hr',(_0x52692a,_0x2e97d4,_0x4a5cdc)=>{const _0x515f7f=_0x2e97d4['viewItem'];_0x515f7f['hasClass']('footnotes-divider')&&_0x2e97d4['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4a5cdc['consumable']['consume'](_0x515f7f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1cb58c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xd4f2b1,{writer:_0x4a82b9})=>D(_0x4a82b9)}),_0x1cb58c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2bc0c6,{writer:_0x1b940d})=>{const _0x9d95b2=D(_0x1b940d,{'data-footnotes-list-label':t('Footnotes')}),_0x37e110=_0x55d868(_0x9d95b2,_0x1b940d,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1b940d['setCustomProperty']('footnotesDefinitions',!0x0,_0x37e110),_0x37e110;}});}['_defineDefinitionConverters'](){const {editor:_0x217511}=this,{conversion:_0x42396e,locale:_0x11af4b}=_0x217511,_0x344478=_0x217511['config']['get']('footnotes.multiBlock');_0x42396e['for']('upcast')['add'](_0x8b4068=>{_0x8b4068['on']('element:li',(_0x48e8af,_0x52f404,_0xd2590b)=>{const _0x37ad4e=_0x52f404['viewItem'];if(!_0x37ad4e['hasClass']('footnote-definition')||!_0x37ad4e['getAttribute']('id'))return;const _0x48a291=_0x37ad4e['parent'];if(!_0x48a291['is']('element','ol')||!_0x48a291['hasClass']('footnotes-list'))return;if(!_0xd2590b['consumable']['test'](_0x37ad4e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x11fa1b=_0xd2590b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x37ad4e['getAttribute']('id')});if(!_0xd2590b['safeInsert'](_0x11fa1b,_0x52f404['modelCursor']))return;_0xd2590b['consumable']['consume'](_0x37ad4e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5d5e0c=Array['from'](_0x37ad4e['getChildren']())['find'](_0xf22874=>_0xf22874['is']('element')&&_0xf22874['hasClass']('footnote-content'));for(const _0x375e10 of _0x37ad4e['getChildren']())_0x375e10['is']('element')&&(_0xd2590b['consumable']['consume'](_0x375e10,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xd2590b['consumable']['consume'](_0x375e10,{'name':!0x0,'classes':'footnote-content'}));if(_0x5d5e0c){if(_0x344478)_0xd2590b['convertChildren'](_0x5d5e0c,_0x11fa1b);else{const _0x757414=_0xd2590b['writer']['createElement']('footnoteInlineContent');_0xd2590b['writer']['insert'](_0x757414,_0x11fa1b),_0xd2590b['convertChildren'](_0x5d5e0c,_0x757414);}}_0xd2590b['updateConversionResult'](_0x11fa1b,_0x52f404);});}),_0x42396e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3c3d99,{writer:_0x2733b2})=>y(_0x3c3d99,_0x2733b2,_0x11af4b,{'dataPipeline':!0x0})}),_0x42396e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2bdf0c,{writer:_0x183660})=>y(_0x2bdf0c,_0x183660,_0x11af4b)});}['_defineBogusParagraphConverters'](){const {editor:_0x22bf3b}=this,{conversion:_0x4455c4}=_0x22bf3b;_0x22bf3b['config']['get']('footnotes.multiBlock')?(_0x4455c4['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x4455c4['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x22bf3b['model']['document'],'change:data',()=>{!function(_0x38cb9b,_0x5a4f11){const _0x2b992d=_0x38cb9b['document']['differ'],_0x4e31a1=new Set();for(const _0x46aad5 of _0x2b992d['getChanges']()){const _0x56f7f5='attribute'==_0x46aad5['type']?_0x46aad5['range']['start']['parent']:_0x46aad5['position']['parent'];_0x56f7f5['is']('element','footnoteDefinition')&&_0x4e31a1['add'](_0x56f7f5);}for(const _0x5b6c7f of _0x4e31a1['values']()){const _0x3204ce=Array['from'](_0x5b6c7f['getChildren']())['filter'](_0x376338=>v(_0x376338,_0x5a4f11['mapper']));for(const _0xfc045 of _0x3204ce)_0x5a4f11['reconvertItem'](_0xfc045);}}(_0x22bf3b['model'],_0x22bf3b['editing']);})):(_0x4455c4['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x4455c4['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x6c87b2,{writer:_0x1bfc74})=>{const _0x350f67=_0x1bfc74['createContainerElement']('span');return _0x1bfc74['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x350f67),_0x350f67;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5ecf67}=this,{editing:_0x498311,t:t}=_0x5ecf67,_0x3601f1=_0x5ecf67['model']['document']['selection'];_0x5ecf67['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5ecf67['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x498311['view']['document'],'enter',(_0x59dfbe,_0x2cc60d)=>{const _0x57ef96=function(_0x3d5b5a){const _0x298b74=_0x3d5b5a['getSelectedElement']();if(_0x298b74?.['is']('element','footnoteRef'))return _0x298b74;return null;}(_0x3601f1);if(_0x57ef96){const _0x1bfcf7=_0x57ef96['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1bfcf7),_0x2cc60d['preventDefault'](),_0x59dfbe['stop']();}},{'context':_0x519126});}['_defineClickHandlers'](){const {editor:_0x41d3a2}=this,{editing:_0x36da1b}=_0x41d3a2;_0x41d3a2['editing']['view']['addObserver'](_0x1245ac),_0x41d3a2['editing']['view']['addObserver'](_0x8bc9e4);let _0x280560=!0x1;this['listenTo'](_0x36da1b['view']['document'],'pointerdown',(_0x1f0fcb,_0x28376f)=>{const {target:_0x5d70ef}=_0x28376f,_0x49cb84=_0x36da1b['view']['document']['selection'];_0x280560=!!(_0x5d70ef?.['is']('element','a')&&_0x5d70ef['parent']?.['is']('element','sup')&&_0x5d70ef['parent']['hasClass']('footnote'))&&_0x49cb84['getSelectedElement']()===_0x5d70ef['parent'];},{'priority':'high'}),this['listenTo'](_0x36da1b['view']['document'],'click',(_0x44cbd9,_0x445f2b)=>{const {target:_0x216e48}=_0x445f2b;if(!_0x216e48?.['is']('element','a'))return;if(_0x216e48['parent']?.['is']('element','sup')&&_0x216e48['parent']['hasClass']('footnote')&&!_0x280560)return void _0x445f2b['preventDefault']();let _0x204394=_0x216e48['getAttribute']('href');if(!_0x204394?.['startsWith']('#'))return;_0x204394=_0x204394['slice'](0x1);let _0x4f178d=!0x1;(_0x204394['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x204394['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x204394))&&(_0x4f178d=!0x0),_0x4f178d&&(_0x445f2b['preventDefault'](),_0x44cbd9['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xd5bd9f}={}){return(_0x5d34bf,{writer:_0x353aac})=>{if(!g(_0x5d34bf))return null;if(!_0xd5bd9f)return _0x353aac['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x51723e=_0x353aac['createContainerElement']('p');return _0x353aac['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x51723e),_0x51723e;};}function g(_0x212afd){const {parent:_0x199d80}=_0x212afd;if(!_0x199d80?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x199d80['childCount'])return!0x1;for(const _0x3d6344 of _0x212afd['getAttributeKeys']())if(!_0x3d6344['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3d6344)return!0x1;return!0x0;}function v(_0x56be9e,_0x19bf59){if(!_0x56be9e['is']('element','paragraph'))return!0x1;const _0x258a68=_0x19bf59['toViewElement'](_0x56be9e);return!!_0x258a68&&g(_0x56be9e)!==_0x258a68['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x31f2d3){return _0x519126(_0x31f2d3)&&_0x31f2d3['is']('containerElement')&&!!_0x31f2d3['getCustomProperty']('footnotesDefinitions');}function D(_0x175a81,_0x520ed0={}){const _0x34c185=_0x175a81['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x90552c=_0x175a81['createContainerElement']('ol',{'class':'footnotes-list'},_0x175a81['createSlot']());return _0x175a81['createContainerElement']('div',{'class':'footnotes',..._0x520ed0},[_0x34c185,_0x90552c]);}function b(_0x457fd9,_0x48fdb2){const _0x13a98b=_0x457fd9['getAttribute']('footnoteId'),_0x6faf6a=_0x457fd9['getAttribute']('footnoteCounter'),_0x188dae=_0x48fdb2['createUIElement']('a',{'href':'#'+_0x13a98b},function(_0x42f127){const _0x71fa3=this['toDomElement'](_0x42f127);return _0x71fa3['textContent']=_0x6faf6a,_0x71fa3;}),_0x24ade1=_0x48fdb2['createContainerElement']('sup',{'id':'ref-'+_0x13a98b,'class':'footnote'},[_0x188dae]);return _0x24ade1['getFillerOffset']=()=>null,_0x24ade1;}function y(_0x30b1ea,_0x1b987a,_0x1d983f,{dataPipeline:_0x105011}={}){const {t:t}=_0x1d983f,_0x5cdc61=_0x30b1ea['getAttribute']('footnoteId'),_0xb05e2e=_0x1b987a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5cdc61},function(_0x215dd3){const _0x402fad=this['toDomElement'](_0x215dd3);return _0x402fad['innerText']='^',_0x402fad;}),_0x3d6357=_0x105011?_0x1b987a['createContainerElement']('div',{'class':'footnote-content'}):_0x3dd9c5(_0x1b987a['createEditableElement']('div',{'class':'footnote-content'}),_0x1b987a,{'label':t('Footnote\x20content.')});return _0x1b987a['insert'](_0x1b987a['createPositionAt'](_0x3d6357,0x0),_0x1b987a['createSlot']()),_0x1b987a['createContainerElement']('li',{'class':'footnote-definition','id':_0x5cdc61},[_0xb05e2e,_0x3d6357]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5631(){const _0xc92184=['324wSzuNE','getFootnotesDefinitionsObjectElement','model','1046243FWglEq','isInteger','_updateFootnotesCounters','setAttribute','476931xVTDpN','1974NsKziO','16tXVRPr','isEnabled','plugins','401896fXdXXq','1808010UGrdaY','getAttribute','902900aAgpYo','value','511045zpFCah','execute','footnotesListStart','refresh','get','change','20BvFQzm','30BwrxNl'];_0x5631=function(){return _0xc92184;};return _0x5631();}const _0x5ee5cf=_0x37fd;(function(_0x9da810,_0x111477){const _0x2a74b1=_0x37fd,_0x12d01a=_0x9da810();while(!![]){try{const _0x26a051=parseInt(_0x2a74b1(0xed))/0x1+parseInt(_0x2a74b1(0xe4))/0x2*(parseInt(_0x2a74b1(0xdc))/0x3)+parseInt(_0x2a74b1(0xe8))/0x4+-parseInt(_0x2a74b1(0xeb))/0x5+parseInt(_0x2a74b1(0xdb))/0x6*(parseInt(_0x2a74b1(0xe3))/0x7)+parseInt(_0x2a74b1(0xe5))/0x8*(-parseInt(_0x2a74b1(0xe9))/0x9)+parseInt(_0x2a74b1(0xda))/0xa*(-parseInt(_0x2a74b1(0xdf))/0xb);if(_0x26a051===_0x111477)break;else _0x12d01a['push'](_0x12d01a['shift']());}catch(_0x2589e2){_0x12d01a['push'](_0x12d01a['shift']());}}}(_0x5631,0x45df2));function _0x37fd(_0x50299e,_0x1ff981){const _0x563191=_0x5631();return _0x37fd=function(_0x37fd89,_0x24859b){_0x37fd89=_0x37fd89-0xda;let _0xc02357=_0x563191[_0x37fd89];return _0xc02357;},_0x37fd(_0x50299e,_0x1ff981);}import{Command as _0x4605f6}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x271efa}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x4605f6{[_0x5ee5cf(0xf0)](){const _0x1ba21b=_0x5ee5cf,{editor:_0x2be97e}=this,_0x16d1b2=_0x2be97e[_0x1ba21b(0xe7)][_0x1ba21b(0xf1)](_0x271efa)[_0x1ba21b(0xdd)]();this[_0x1ba21b(0xe6)]=!!_0x16d1b2,this[_0x1ba21b(0xec)]=_0x16d1b2?.[_0x1ba21b(0xea)](_0x1ba21b(0xef))??null;}[_0x5ee5cf(0xee)]({value:_0x1216ce}){const _0x15b122=_0x5ee5cf,{editor:_0x44b2df}=this,_0x337939=_0x44b2df[_0x15b122(0xe7)][_0x15b122(0xf1)](_0x271efa),_0x44f71a=_0x337939[_0x15b122(0xdd)]();_0x44f71a&&Number[_0x15b122(0xe0)](_0x1216ce)&&_0x44b2df[_0x15b122(0xde)][_0x15b122(0xf2)](_0x679b4c=>{const _0x5d5e0c=_0x15b122;_0x679b4c[_0x5d5e0c(0xe2)](_0x5d5e0c(0xef),_0x1216ce,_0x44f71a),_0x337939[_0x5d5e0c(0xe1)](_0x679b4c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x125ed3=_0x6686;(function(_0x2111c8,_0x4771a9){const _0x5bd29c=_0x6686,_0x505345=_0x2111c8();while(!![]){try{const _0x5849e1=-parseInt(_0x5bd29c(0x1a0))/0x1+-parseInt(_0x5bd29c(0x1a4))/0x2+parseInt(_0x5bd29c(0x1af))/0x3+parseInt(_0x5bd29c(0x19d))/0x4+parseInt(_0x5bd29c(0x19e))/0x5*(-parseInt(_0x5bd29c(0x19a))/0x6)+parseInt(_0x5bd29c(0x1a5))/0x7+-parseInt(_0x5bd29c(0x1a9))/0x8;if(_0x5849e1===_0x4771a9)break;else _0x505345['push'](_0x505345['shift']());}catch(_0x4d6a04){_0x505345['push'](_0x505345['shift']());}}}(_0x45ad,0x5a576));import{Command as _0x2f107a}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x527590}from'../footnotespropertiesconfig.js';function _0x45ad(){const _0x250437=['change','68894JkxVTL','2943864babbdA','isEnabled','_updateFootnotesCounters','get','5127160fVUJDp','getFootnotesDefinitionsObjectElement','value','getAttribute','footnotesListStyle','plugins','1988775yuUYDv','6heXVDT','model','setAttribute','2379176Hmkjug','1017885IYapku','includes','429314QWgQmA','refresh','execute'];_0x45ad=function(){return _0x250437;};return _0x45ad();}import{FootnotesTracker as _0x465a9a}from'../../footnotestracker.js';function _0x6686(_0x45fccb,_0x5c0b58){const _0x45ad3d=_0x45ad();return _0x6686=function(_0x66862a,_0x4a6f81){_0x66862a=_0x66862a-0x19a;let _0x350cbf=_0x45ad3d[_0x66862a];return _0x350cbf;},_0x6686(_0x45fccb,_0x5c0b58);}export class FootnotesStyleCommand extends _0x2f107a{[_0x125ed3(0x1a1)](){const _0x1adc41=_0x125ed3,{editor:_0x150966}=this,_0x300448=_0x150966[_0x1adc41(0x1ae)][_0x1adc41(0x1a8)](_0x465a9a)[_0x1adc41(0x1aa)]();this[_0x1adc41(0x1a6)]=!!_0x300448,this[_0x1adc41(0x1ab)]=_0x300448?.[_0x1adc41(0x1ac)](_0x1adc41(0x1ad))??null;}[_0x125ed3(0x1a2)]({value:_0x3534d8}){const _0x444a46=_0x125ed3,{editor:_0x3aebc4}=this,_0x18b5a1=_0x3aebc4[_0x444a46(0x1ae)][_0x444a46(0x1a8)](_0x465a9a),_0x1c32d3=_0x18b5a1[_0x444a46(0x1aa)]();_0x1c32d3&&_0x527590[_0x444a46(0x19f)](_0x3534d8)&&_0x3aebc4[_0x444a46(0x19b)][_0x444a46(0x1a3)](_0x3f19b8=>{const _0x2e111f=_0x444a46;_0x3f19b8[_0x2e111f(0x19c)](_0x2e111f(0x1ad),_0x3534d8,_0x1c32d3),_0x18b5a1[_0x2e111f(0x1a7)](_0x3f19b8);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xad6e33=_0x5945;(function(_0x18b864,_0x537378){const _0x4c849b=_0x5945,_0xdff5e0=_0x18b864();while(!![]){try{const _0x157156=-parseInt(_0x4c849b(0x12c))/0x1*(-parseInt(_0x4c849b(0x126))/0x2)+parseInt(_0x4c849b(0x128))/0x3*(-parseInt(_0x4c849b(0x124))/0x4)+-parseInt(_0x4c849b(0x11f))/0x5+-parseInt(_0x4c849b(0x11e))/0x6*(-parseInt(_0x4c849b(0x120))/0x7)+-parseInt(_0x4c849b(0x12b))/0x8*(-parseInt(_0x4c849b(0x11c))/0x9)+-parseInt(_0x4c849b(0x129))/0xa*(parseInt(_0x4c849b(0x12a))/0xb)+parseInt(_0x4c849b(0x11d))/0xc;if(_0x157156===_0x537378)break;else _0xdff5e0['push'](_0xdff5e0['shift']());}catch(_0x12e432){_0xdff5e0['push'](_0xdff5e0['shift']());}}}(_0x5430,0xa917f));export const FOOTNOTES_DEFINITIONS_STYLES=[_0xad6e33(0x121),_0xad6e33(0x125),_0xad6e33(0x11b),_0xad6e33(0x123),_0xad6e33(0x127),_0xad6e33(0x12d),_0xad6e33(0x11a),_0xad6e33(0x122)];function _0x5945(_0x237f71,_0x35a1d4){const _0x543027=_0x5430();return _0x5945=function(_0x594551,_0x5d9fe1){_0x594551=_0x594551-0x11a;let _0x2f5811=_0x543027[_0x594551];return _0x2f5811;},_0x5945(_0x237f71,_0x35a1d4);}function _0x5430(){const _0x18bfc3=['3119303EYzImG','159592umOvcW','5939TnjuFk','upper-alpha','lower-roman','lower-latin','252vPLwKl','23078388mrsHFd','1767168TCodmi','4872800XBridl','21SuunOZ','decimal','upper-roman','upper-latin','1492QiqSVM','decimal-leading-zero','226IvtPJe','lower-alpha','9933ctaYwn','40HnbJOc'];_0x5430=function(){return _0x18bfc3;};return _0x5430();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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();}
|
|
23
|
+
const _0x511ee9=_0x3a8e;function _0x1957(){const _0x128618=['footnotesListStyle','getChanges','footnotesStart','_definePostfixer','5861298HmUyhn','isNaN','lower-latin','336249dIGCDq','getItems','max','FootnotesPropertiesEditing','editor','lower-alpha','3acipoc','1377530stgcBF','5834bgRnes','$text','_formatFootnoteListValue','footnotes-list','upper-roman','get','item','parseInt','lower-roman','commands','from','for','modelCursor','footnotesDefinitions','footnotesListStart','112KllDXZ','plugins','schema','name','nodeAfter','model','attribute:footnotesListStart:footnotesDefinitions','_defineFormatter','getAttribute','1479364ekLnIu','_defineSchema','element','type','mapper','getChildren','getStyle','insert','floor','_getDefaultStartIndex','requires','decimal','padStart','pluginName','_defineConverters','footnotesStyle','setFootnoteFormatter','_getDefaultListStyle','379oBaTeb','decimal-leading-zero','toLowerCase','hasAttribute','init','consume','upcast','setStyle','element:ol','1755280MkketU','registerPostFixer','toUpperCase','checkAttribute','viewItem','upper-alpha','start','consumable','toViewElement','4290350NrrSQr','document','differ','list-style-type','_updateFootnotesCounters','removeAttribute','setAttribute','fromCharCode','add','createRangeOn','downcast','removeStyle','parent','extend','isPremiumPlugin','footnotes.footnotesProperties.defaultListStyle','config','define','hasClass','isOfficialPlugin','find','position','upper-latin','writer','attribute:footnotesListStyle:footnotesDefinitions','7dhQZHL','footnotes.footnotesProperties.defaultStartIndex'];_0x1957=function(){return _0x128618;};return _0x1957();}(function(_0x32a707,_0x13a598){const _0x124ebc=_0x3a8e,_0x46d2b5=_0x32a707();while(!![]){try{const _0x2a5109=parseInt(_0x124ebc(0xb1))/0x1*(-parseInt(_0x124ebc(0xed))/0x2)+parseInt(_0x124ebc(0xeb))/0x3*(parseInt(_0x124ebc(0x105))/0x4)+parseInt(_0x124ebc(0xba))/0x5+parseInt(_0x124ebc(0xe2))/0x6*(parseInt(_0x124ebc(0xdc))/0x7)+parseInt(_0x124ebc(0xfc))/0x8*(-parseInt(_0x124ebc(0xe5))/0x9)+parseInt(_0x124ebc(0xc3))/0xa+parseInt(_0x124ebc(0xec))/0xb;if(_0x2a5109===_0x13a598)break;else _0x46d2b5['push'](_0x46d2b5['shift']());}catch(_0x16fd89){_0x46d2b5['push'](_0x46d2b5['shift']());}}}(_0x1957,0x98358));import{Plugin as _0xa52a19}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x402d51}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x21260d}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x4a9cb4}from'../footnotestracker.js';function _0x3a8e(_0x317cd1,_0x1a667d){const _0x1957b5=_0x1957();return _0x3a8e=function(_0x3a8eb1,_0x4eb959){_0x3a8eb1=_0x3a8eb1-0xa4;let _0x4517ad=_0x1957b5[_0x3a8eb1];return _0x4517ad;},_0x3a8e(_0x317cd1,_0x1a667d);}import{FootnotesEditing as _0x4026b6}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0xa52a19{static get[_0x511ee9(0xac)](){const _0x2d556f=_0x511ee9;return _0x2d556f(0xe8);}static get[_0x511ee9(0xa9)](){return[_0x4026b6,_0x4a9cb4];}static get[_0x511ee9(0xd6)](){return!0x0;}static get[_0x511ee9(0xd1)](){return!0x0;}[_0x511ee9(0xb5)](){const _0x512e1a=_0x511ee9,{editor:_0x26ab0c}=this;_0x26ab0c[_0x512e1a(0xd3)][_0x512e1a(0xd4)](_0x512e1a(0xd2),_0x512e1a(0xaa)),_0x26ab0c[_0x512e1a(0xd3)][_0x512e1a(0xd4)](_0x512e1a(0xdd),0x1),_0x26ab0c[_0x512e1a(0xf6)][_0x512e1a(0xcb)](_0x512e1a(0xae),new _0x402d51(_0x26ab0c)),_0x26ab0c[_0x512e1a(0xf6)][_0x512e1a(0xcb)](_0x512e1a(0xe0),new _0x21260d(_0x26ab0c)),this[_0x512e1a(0x106)](),this[_0x512e1a(0xad)](),this[_0x512e1a(0x103)](),this[_0x512e1a(0xe1)]();}[_0x511ee9(0x106)](){const _0x21d6ed=_0x511ee9,{editor:_0x5bb1ec}=this,{schema:_0xdda585}=_0x5bb1ec[_0x21d6ed(0x101)];_0xdda585[_0x21d6ed(0xd0)](_0x21d6ed(0xfa),{'allowAttributes':[_0x21d6ed(0xde),_0x21d6ed(0xfb)]});}[_0x511ee9(0xad)](){const _0x2b3d01=_0x511ee9,{editor:_0x8ae447}=this,{conversion:_0x156926,model:_0x11a043}=_0x8ae447,{schema:_0x3593cc}=_0x11a043;_0x156926[_0x2b3d01(0xf8)](_0x2b3d01(0xb7))[_0x2b3d01(0xcb)](_0x300738=>{const _0x49f165=_0x2b3d01;_0x300738['on'](_0x49f165(0xb9),(_0x4a02e8,_0x557208,_0x97b89e)=>{const _0x45d91d=_0x49f165,_0x4e2127=_0x557208[_0x45d91d(0xbe)],_0x57632f=_0x557208[_0x45d91d(0xf9)]?.[_0x45d91d(0xcf)];_0x4e2127[_0x45d91d(0xd5)](_0x45d91d(0xf0))&&_0x57632f?.['is'](_0x45d91d(0x107),_0x45d91d(0xfa))&&(function(_0x1f405f,_0x114d77,_0x5cad9c,_0x27e870){const _0x45268e=_0x45d91d;if(!_0x27e870[_0x45268e(0xbd)](_0x114d77,_0x45268e(0xfb)))return;let _0x744d2=0x1;const _0x108cad=_0x5cad9c[_0x45268e(0xc1)][_0x45268e(0xb6)](_0x1f405f,{'attributes':_0x45268e(0xc0)});if(_0x108cad){const _0x3527f6=Number[_0x45268e(0xf4)](_0x1f405f[_0x45268e(0x104)](_0x45268e(0xc0)),0xa);Number[_0x45268e(0xe3)](_0x3527f6)||(_0x744d2=_0x3527f6);}!_0x108cad&&_0x114d77[_0x45268e(0xb4)](_0x45268e(0xfb))||_0x5cad9c[_0x45268e(0xda)][_0x45268e(0xc9)](_0x45268e(0xfb),_0x744d2,_0x114d77);}(_0x4e2127,_0x57632f,_0x97b89e,_0x3593cc),function(_0x3340dc,_0x45dd59,_0x13a226,_0x551c4b){const _0x4fe2ed=_0x45d91d;if(!_0x551c4b[_0x4fe2ed(0xbd)](_0x45dd59,_0x4fe2ed(0xde)))return;let _0x4962fb=_0x4fe2ed(0xaa),_0x1a633e=!0x1;if(_0x13a226[_0x4fe2ed(0xc1)][_0x4fe2ed(0xb6)](_0x3340dc,{'attributes':_0x4fe2ed(0x108)})){const _0x19ee89={0x1:_0x4fe2ed(0xaa),'a':_0x4fe2ed(0xea),'A':_0x4fe2ed(0xbf),'i':_0x4fe2ed(0xf5),'I':_0x4fe2ed(0xf1)}[_0x3340dc[_0x4fe2ed(0x104)](_0x4fe2ed(0x108))];_0x19ee89&&(_0x4962fb=_0x19ee89),_0x1a633e=!0x0;}_0x13a226[_0x4fe2ed(0xc1)][_0x4fe2ed(0xb6)](_0x3340dc,{'styles':_0x4fe2ed(0xc6)})&&(_0x4962fb=function(_0x44dfb9){const _0x414668=_0x4fe2ed;switch(_0x44dfb9){case _0x414668(0xea):return _0x414668(0xe4);case _0x414668(0xbf):return _0x414668(0xd9);default:return _0x44dfb9;}}(_0x3340dc[_0x4fe2ed(0xa5)](_0x4fe2ed(0xc6))),_0x1a633e=!0x0),!_0x1a633e&&_0x45dd59[_0x4fe2ed(0xb4)](_0x4fe2ed(0xde))||_0x13a226[_0x4fe2ed(0xda)][_0x4fe2ed(0xc9)](_0x4fe2ed(0xde),_0x4962fb,_0x45dd59);}(_0x4e2127,_0x57632f,_0x97b89e,_0x3593cc));});}),_0x156926[_0x2b3d01(0xf8)](_0x2b3d01(0xcd))[_0x2b3d01(0xcb)](_0xf586cd=>{const _0x3b1c86=_0x2b3d01;_0xf586cd['on'](_0x3b1c86(0x102),(_0x5ce6d7,_0x10b50f,_0x154cb0)=>{const _0x359250=_0x3b1c86;if(!_0x154cb0[_0x359250(0xc1)][_0x359250(0xb6)](_0x10b50f[_0x359250(0xf3)],_0x5ce6d7[_0x359250(0xff)]))return;const _0x14be0f=M(_0x10b50f[_0x359250(0xf3)],_0x154cb0[_0x359250(0x109)]),{attributeNewValue:_0x382334}=_0x10b50f;null==_0x382334||0x1===_0x382334?_0x154cb0[_0x359250(0xda)][_0x359250(0xc8)](_0x359250(0xc0),_0x14be0f):_0x154cb0[_0x359250(0xda)][_0x359250(0xc9)](_0x359250(0xc0),String(_0x382334),_0x14be0f);}),_0xf586cd['on'](_0x3b1c86(0xdb),(_0x45bc97,_0x1de5b0,_0x18bfcd)=>{const _0x5c676d=_0x3b1c86;if(!_0x18bfcd[_0x5c676d(0xc1)][_0x5c676d(0xb6)](_0x1de5b0[_0x5c676d(0xf3)],_0x45bc97[_0x5c676d(0xff)]))return;const _0x1ec79c=M(_0x1de5b0[_0x5c676d(0xf3)],_0x18bfcd[_0x5c676d(0x109)]),{attributeNewValue:_0x2d6d1e}=_0x1de5b0;_0x2d6d1e&&_0x5c676d(0xaa)!==_0x2d6d1e?_0x18bfcd[_0x5c676d(0xda)][_0x5c676d(0xb8)](_0x5c676d(0xc6),_0x2d6d1e,_0x1ec79c):_0x18bfcd[_0x5c676d(0xda)][_0x5c676d(0xce)](_0x5c676d(0xc6),_0x1ec79c);});});}[_0x511ee9(0xe1)](){const _0x4c5ce6=_0x511ee9,{editor:_0x4c4171}=this,{model:_0x5662d1}=_0x4c4171,_0x4e0744=_0x4c4171[_0x4c5ce6(0xfd)][_0x4c5ce6(0xf2)](_0x4a9cb4),_0x1150e7=this[_0x4c5ce6(0xb0)](),_0x35c7ed=this[_0x4c5ce6(0xa8)]();_0x5662d1[_0x4c5ce6(0xc4)][_0x4c5ce6(0xbb)](_0x3bfc09=>{const _0x160b65=_0x4c5ce6,_0x3744cb=_0x5662d1[_0x160b65(0xc4)][_0x160b65(0xc5)][_0x160b65(0xdf)]();let _0x165590=!0x1;for(const _0x257e19 of _0x3744cb){if(_0x160b65(0xa6)!==_0x257e19[_0x160b65(0x108)]||_0x160b65(0xee)===_0x257e19[_0x160b65(0xff)])continue;const _0x17d1b3=_0x5662d1[_0x160b65(0xcc)](_0x257e19[_0x160b65(0xd8)][_0x160b65(0x100)]);for(const _0x290149 of _0x17d1b3[_0x160b65(0xe6)]())_0x290149['is'](_0x160b65(0x107),_0x160b65(0xfa))&&(!_0x290149[_0x160b65(0xb4)](_0x160b65(0xfb))&&_0x5662d1[_0x160b65(0xfe)][_0x160b65(0xbd)](_0x290149,_0x160b65(0xfb))&&(_0x3bfc09[_0x160b65(0xc9)](_0x160b65(0xfb),_0x35c7ed,_0x290149),_0x165590=!0x0),!_0x290149[_0x160b65(0xb4)](_0x160b65(0xde))&&_0x5662d1[_0x160b65(0xfe)][_0x160b65(0xbd)](_0x290149,_0x160b65(0xde))&&(_0x3bfc09[_0x160b65(0xc9)](_0x160b65(0xde),_0x1150e7,_0x290149),_0x165590=!0x0));}return _0x165590&&_0x4e0744[_0x160b65(0xc7)](_0x3bfc09),_0x165590;});}[_0x511ee9(0x103)](){const _0x31e3d9=_0x511ee9,{editor:_0x829a0}=this;_0x829a0[_0x31e3d9(0xfd)][_0x31e3d9(0xf2)](_0x4a9cb4)[_0x31e3d9(0xaf)](_0x15c838=>this[_0x31e3d9(0xef)](_0x15c838));}[_0x511ee9(0xb0)](){const _0x156f67=_0x511ee9;return this[_0x156f67(0xe9)][_0x156f67(0xd3)][_0x156f67(0xf2)](_0x156f67(0xd2));}[_0x511ee9(0xa8)](){const _0x59a748=_0x511ee9;return this[_0x59a748(0xe9)][_0x59a748(0xd3)][_0x59a748(0xf2)](_0x59a748(0xdd));}[_0x511ee9(0xef)]({container:_0x86d511,value:_0x213b1b,digits:_0x24db4b}){const _0x478914=_0x511ee9,_0x29abac=_0x86d511[_0x478914(0x104)](_0x478914(0xde)),_0x472ac2=_0x86d511[_0x478914(0x104)](_0x478914(0xfb)),_0x427c5f=Math[_0x478914(0xa7)](_0x213b1b)+(_0x472ac2??0x1)-0x1;switch(_0x29abac){case _0x478914(0xb2):return function(_0x562766,_0x1fd5d9){const _0xa67fe0=_0x478914;return String(_0x562766)[_0xa67fe0(0xab)](_0x1fd5d9,'0');}(_0x427c5f,Math[_0x478914(0xe7)](0x2,_0x24db4b));case _0x478914(0xea):case _0x478914(0xe4):return N(_0x427c5f,!0x1);case _0x478914(0xbf):case _0x478914(0xd9):return N(_0x427c5f,!0x0);case _0x478914(0xf5):return X(_0x427c5f,!0x1);case _0x478914(0xf1):return X(_0x427c5f,!0x0);default:return String(_0x427c5f);}}}function M(_0x9f4f6d,_0x427dc9){const _0x568482=_0x511ee9,_0x4597f0=_0x427dc9[_0x568482(0xc2)](_0x9f4f6d);return Array[_0x568482(0xf7)](_0x4597f0[_0x568482(0xa4)]())[_0x568482(0xd7)](_0x20ebe0=>_0x20ebe0['is'](_0x568482(0x107),'ol')&&_0x20ebe0[_0x568482(0xd5)](_0x568482(0xf0)));}function N(_0x3d6220,_0x368205){const _0x1ede18=_0x511ee9;let _0xd16d47='',_0x4f021e=_0x3d6220;for(;_0x4f021e>0x0;){const _0x784abe=(_0x4f021e-0x1)%0x1a;_0xd16d47=String[_0x1ede18(0xca)](0x61+_0x784abe)+_0xd16d47,_0x4f021e=Math[_0x1ede18(0xa7)]((_0x4f021e-0x1)/0x1a);}return _0x368205?_0xd16d47[_0x1ede18(0xbc)]():_0xd16d47;}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(_0x375e04,_0x40d0d8){const _0x28143a=_0x511ee9;let _0x7a5e28='',_0x496de8=_0x375e04;for(const {value:_0x20d828,numeral:_0x5e90fe}of V)for(;_0x496de8>=_0x20d828;)_0x7a5e28+=_0x5e90fe,_0x496de8-=_0x20d828;return _0x40d0d8?_0x7a5e28:_0x7a5e28[_0x28143a(0xb3)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x38c7d8,ButtonView as _0x584d21,ContextualBalloon as _0x55e2b7,createDropdown as _0x5b580d}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x55a6d1}from'ckeditor5/src/widget.js';import{Plugin as _0x3c4d7e}from'ckeditor5/src/core.js';import{IconFootnote as _0xcc6afb,IconListStyleDecimal as _0x547fc9,IconListStyleDecimalLeadingZero as _0x3bee31,IconListStyleLowerLatin as _0x290a00,IconListStyleLowerRoman as _0x1b5acc,IconListStyleUpperLatin as _0xfde2eb,IconListStyleUpperRoman as _0x4d44b4}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x1f58d1}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x460c72}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x3c4d7e{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x55e2b7,_0x55a6d1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2cc252}=this,{componentFactory:_0x56cda7}=_0x2cc252['ui'];_0x2cc252['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x56cda7['add']('footnotesStyle',function(_0x369b47){return _0x4727fc=>{const {t:t}=_0x4727fc,_0x2f357d=_0x369b47['commands']['get']('footnotesStyle'),_0x5db282=_0x5b580d(_0x4727fc),{buttonView:_0x220e50}=_0x5db282;return _0x5db282['class']='ck-footnotes-styles-dropdown',_0x5db282['bind']('isEnabled')['to'](_0x2f357d,'isEnabled'),_0x220e50['set']({'label':t('Footnotes\x20style'),'icon':_0xcc6afb,'tooltip':!0x0}),_0x5db282['once']('change:isOpen',()=>{const _0x2a7f03=function({editor:_0x17581d,dropdownView:_0x329536}){const {t:t}=_0x17581d['locale'],_0x2a0cdf=t('Footnotes\x20definitions\x20styles'),_0x3ddc30=function(_0x19b2df){const t=_0x19b2df['locale']['t'],_0x2ab921=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x547fc9},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3bee31},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x1b5acc},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x4d44b4},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x290a00},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xfde2eb}];return _0x2ab921['map'](function(_0x480a86){const _0x2739d6=_0x480a86['locale'];return({label:_0x31ce96,icon:_0x269265,tooltip:_0x447ce9,style:_0x2bf27a})=>{const _0xeca3b3=_0x480a86['commands']['get']('footnotesStyle'),_0x4f4347=new _0x584d21(_0x2739d6);return _0x4f4347['set']({'label':_0x31ce96,'icon':_0x269265,'tooltip':_0x447ce9}),_0x4f4347['bind']('isOn')['to'](_0xeca3b3,'value',_0x1189a8=>_0x1189a8===_0x2bf27a),_0x4f4347['bind']('isEnabled')['to'](_0xeca3b3,'isEnabled'),_0x4f4347['on']('execute',()=>{_0x480a86['execute']('footnotesStyle',{'value':_0x2bf27a}),_0x480a86['editing']['view']['focus']();}),_0x4f4347;};}(_0x19b2df));}(_0x17581d),_0x515aea=new _0x1f58d1(_0x17581d['locale'],{'styleGridAriaLabel':_0x2a0cdf,'styleButtonViews':_0x3ddc30}),_0xa7b35a=_0x17581d['commands']['get']('footnotesStart');return _0x515aea['startIndexFieldView']['bind']('isEnabled')['to'](_0xa7b35a),_0x515aea['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xa7b35a),_0x515aea['on']('footnotesListStart',(_0x273812,_0x2584bd)=>{_0x17581d['execute']('footnotesStart',{'value':_0x2584bd['startIndex']});}),_0x515aea['delegate']('execute')['to'](_0x329536),_0x515aea;}({'editor':_0x369b47,'dropdownView':_0x5db282});_0x5db282['panelView']['children']['add'](_0x2a7f03);}),_0x5db282;};}(_0x2cc252));}['afterInit'](){const {editor:_0x11a3e0}=this,{t:t}=_0x11a3e0['locale'],_0x1bc3de=_0x11a3e0['plugins']['get'](_0x55a6d1),{defaultPositions:_0x1aa205}=_0x38c7d8;_0x1bc3de['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x11a3e0['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x382123=>{let _0xbb2bac=_0x382123['getFirstPosition']()?.['parent'];return _0xbb2bac?.['is']('$text')&&(_0xbb2bac=_0xbb2bac['parent']),_0xbb2bac?.['is']('element')?_0xbb2bac['findAncestor'](_0x460c72):null;},'positions':[_0x1aa205['southArrowNorth'],_0x1aa205['southArrowNorthMiddleWest'],_0x1aa205['southArrowNorthMiddleEast'],_0x1aa205['southArrowNorthWest'],_0x1aa205['southArrowNorthEast'],_0x1aa205['northArrowSouth'],_0x1aa205['northArrowSouthMiddleWest'],_0x1aa205['northArrowSouthMiddleEast'],_0x1aa205['northArrowSouthWest'],_0x1aa205['northArrowSouthEast'],_0x1aa205['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x11b7c3,View as _0x3589cb,ViewCollection as _0x20cd75,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x3589cb{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x20cd75();['focusCycler'];constructor(_0x5eb608,{styleButtonViews:_0x36a597,styleGridAriaLabel:_0x358d08}){super(_0x5eb608),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x36a597,_0x358d08),[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 _0x225ce8 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x225ce8['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['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 _0x530128=_0x2489df=>_0x2489df['stopPropagation']();this['keystrokes']['set']('arrowright',_0x530128),this['keystrokes']['set']('arrowleft',_0x530128),this['keystrokes']['set']('arrowup',_0x530128),this['keystrokes']['set']('arrowdown',_0x530128);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1e2389,_0x374a24){const _0x57d53e=new _0x3589cb(this['locale']);return _0x57d53e['children']=_0x57d53e['createCollection'](),_0x57d53e['children']['addMany'](_0x1e2389),_0x57d53e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x374a24,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x57d53e['children']}),_0x57d53e['children']['delegate']('execute')['to'](this),_0x57d53e['focus']=function(){for(const _0x13f7b2 of this['children'])if(_0x13f7b2 instanceof _0x11b7c3&&_0x13f7b2['isOn'])return void _0x13f7b2['focus']();this['children']['first']['focus']();},_0x57d53e['focusTracker']=new rt(),_0x57d53e['keystrokes']=new nt(),_0x57d53e['render'](),_0x57d53e['keystrokes']['listenTo'](_0x57d53e['element']),this['children']['add'](_0x57d53e),_0x57d53e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x408d5f=this['_createStartIndexPropertyView'](),_0x4c5fb7=[_0x408d5f],_0x2d4a4c=new it(this['locale'],_0x4c5fb7);return _0x2d4a4c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2d4a4c['buttonView']['bind']('isEnabled')['toMany'](_0x4c5fb7,'isEnabled',(..._0x3cf7d8)=>_0x3cf7d8['some'](_0xb4e8cf=>_0xb4e8cf)),_0x2d4a4c['buttonView']['on']('change:isEnabled',(_0x17127a,_0x26312e,_0x160505)=>{_0x160505||(_0x2d4a4c['isCollapsed']=!0x0);}),this['children']['add'](_0x2d4a4c),[_0x408d5f,_0x2d4a4c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2d4e90=new et(this['locale'],ot);return _0x2d4e90['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2d4e90['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2d4e90['fieldView']['on']('input',()=>{const _0x4e228d=_0x2d4e90['fieldView']['element'],_0x36df77=_0x4e228d['valueAsNumber'];Number['isNaN'](_0x36df77)?_0x2d4e90['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4e228d['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x36df77}):_0x2d4e90['errorText']=t(_0x36df77<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2d4e90;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4c3f(_0x37afac,_0x903edd){var _0x13adb7=_0x13ad();return _0x4c3f=function(_0x4c3fae,_0x350de2){_0x4c3fae=_0x4c3fae-0x17e;var _0x2715de=_0x13adb7[_0x4c3fae];return _0x2715de;},_0x4c3f(_0x37afac,_0x903edd);}function _0x13ad(){var _0x31c433=['isPremiumPlugin','requires','1wAVaGm','17468165MznLwW','8435168BBTVjk','10181059pjLcLj','isOfficialPlugin','13235598oSvaRv','10wqsgOY','20SMfXOo','222155PpcGVi','FootnotesProperties','pluginName','409236oQWZlE','6ZnfJka','236982TdnJCZ'];_0x13ad=function(){return _0x31c433;};return _0x13ad();}var _0x374083=_0x4c3f;(function(_0x155e0d,_0x162e40){var _0x4daad7=_0x4c3f,_0x5baf0a=_0x155e0d();while(!![]){try{var _0x36b9aa=parseInt(_0x4daad7(0x181))/0x1*(parseInt(_0x4daad7(0x18c))/0x2)+parseInt(_0x4daad7(0x17e))/0x3*(parseInt(_0x4daad7(0x188))/0x4)+-parseInt(_0x4daad7(0x189))/0x5+parseInt(_0x4daad7(0x18d))/0x6*(parseInt(_0x4daad7(0x184))/0x7)+-parseInt(_0x4daad7(0x183))/0x8+-parseInt(_0x4daad7(0x186))/0x9*(-parseInt(_0x4daad7(0x187))/0xa)+-parseInt(_0x4daad7(0x182))/0xb;if(_0x36b9aa===_0x162e40)break;else _0x5baf0a['push'](_0x5baf0a['shift']());}catch(_0x3a1346){_0x5baf0a['push'](_0x5baf0a['shift']());}}}(_0x13ad,0xcc8ad));import{Plugin as _0x419097}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x23398e}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x29a8cb}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x419097{static get[_0x374083(0x18b)](){var _0x55d739=_0x374083;return _0x55d739(0x18a);}static get[_0x374083(0x180)](){return[_0x23398e,_0x29a8cb];}static get[_0x374083(0x185)](){return!0x0;}static get[_0x374083(0x17f)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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();}
|
|
23
|
+
const _0x1f785b=_0x1323;(function(_0x536ce0,_0x5f50c2){const _0x3f5436=_0x1323,_0xe6e1b=_0x536ce0();while(!![]){try{const _0x27d531=-parseInt(_0x3f5436(0x22f))/0x1*(-parseInt(_0x3f5436(0x23a))/0x2)+-parseInt(_0x3f5436(0x212))/0x3+-parseInt(_0x3f5436(0x1e3))/0x4*(parseInt(_0x3f5436(0x1e9))/0x5)+-parseInt(_0x3f5436(0x215))/0x6+-parseInt(_0x3f5436(0x21d))/0x7+parseInt(_0x3f5436(0x218))/0x8+-parseInt(_0x3f5436(0x201))/0x9*(-parseInt(_0x3f5436(0x239))/0xa);if(_0x27d531===_0x5f50c2)break;else _0xe6e1b['push'](_0xe6e1b['shift']());}catch(_0x1ee8a2){_0xe6e1b['push'](_0xe6e1b['shift']());}}}(_0x4fdf,0x7a18f));import{Plugin as _0x543dbd}from'ckeditor5/src/core.js';function _0x1323(_0x5b2d7c,_0x15dfcf){const _0x4fdf04=_0x4fdf();return _0x1323=function(_0x132303,_0x1b0181){_0x132303=_0x132303-0x1e1;let _0x295f0f=_0x4fdf04[_0x132303];return _0x295f0f;},_0x1323(_0x5b2d7c,_0x15dfcf);}import{ModelElementTracker as _0x24ab0e}from'./modelelementtracker.js';export class FootnotesTracker extends _0x543dbd{[_0x1f785b(0x1e4)]=[];[_0x1f785b(0x1ea)]=null;[_0x1f785b(0x222)]=null;[_0x1f785b(0x226)];[_0x1f785b(0x22a)];[_0x1f785b(0x1e7)];static get[_0x1f785b(0x1fa)](){const _0x502138=_0x1f785b;return _0x502138(0x216);}static get[_0x1f785b(0x1f8)](){return!0x0;}static get[_0x1f785b(0x1e2)](){return!0x0;}constructor(_0x233e46){const _0x1c3a83=_0x1f785b;super(_0x233e46),this[_0x1c3a83(0x226)]=new _0x24ab0e(this[_0x1c3a83(0x200)][_0x1c3a83(0x21a)],{'elementName':_0x1c3a83(0x23d),'getElementKey':()=>_0x1c3a83(0x213)}),this[_0x1c3a83(0x22a)]=new _0x24ab0e(this[_0x1c3a83(0x200)][_0x1c3a83(0x21a)],{'elementName':_0x1c3a83(0x1fd),'getElementKey':_0x361839=>_0x361839[_0x1c3a83(0x244)](_0x1c3a83(0x1ec))}),this[_0x1c3a83(0x1e7)]=new _0x24ab0e(this[_0x1c3a83(0x200)][_0x1c3a83(0x21a)],{'elementName':_0x1c3a83(0x217),'getElementKey':_0x55d9c7=>_0x55d9c7[_0x1c3a83(0x244)](_0x1c3a83(0x1ec))});}[_0x1f785b(0x21f)](){const _0xbcdf37=_0x1f785b,{editor:_0x37de42}=this,{model:_0xe86c22,data:_0x89526a}=_0x37de42;_0xe86c22[_0xbcdf37(0x203)][_0xbcdf37(0x209)](_0x3fc635=>{const _0x238eac=_0xbcdf37,_0x543c17=_0xe86c22[_0x238eac(0x203)][_0x238eac(0x233)][_0x238eac(0x1fe)]();let _0x56aaa6=!0x1;return this[_0x238eac(0x23b)](_0x3fc635,_0x543c17)&&(_0x56aaa6=!0x0),this[_0x238eac(0x204)](_0x3fc635,_0x543c17)&&(_0x56aaa6=!0x0),this[_0x238eac(0x225)](_0x3fc635,_0x543c17)&&(_0x56aaa6=!0x0),this[_0x238eac(0x20a)](_0x3fc635)&&(_0x56aaa6=!0x0),this[_0x238eac(0x1fb)](_0x3fc635)&&(_0x56aaa6=!0x0),this[_0x238eac(0x223)](_0x3fc635)&&(_0x56aaa6=!0x0),_0x56aaa6;}),this[_0xbcdf37(0x219)](_0xe86c22[_0xbcdf37(0x203)],_0xbcdf37(0x1f3),()=>{const _0x2c031e=_0xbcdf37;_0xe86c22[_0x2c031e(0x1f1)]({'isUndoable':!0x1},_0x2ed734=>{const _0x3207ea=_0x2c031e;this[_0x3207ea(0x22c)](_0x2ed734);});},{'priority':_0xbcdf37(0x22e)}),this[_0xbcdf37(0x219)](_0x89526a,_0xbcdf37(0x1ee),()=>{const _0x5efd17=_0xbcdf37;this[_0x5efd17(0x1e4)]=[],this[_0x5efd17(0x226)][_0x5efd17(0x228)](),this[_0x5efd17(0x22a)][_0x5efd17(0x228)](),this[_0x5efd17(0x1e7)][_0x5efd17(0x228)]();},{'priority':_0xbcdf37(0x20f)});}[_0x1f785b(0x205)](){const _0x2da6cb=_0x1f785b;return this[_0x2da6cb(0x1ea)];}[_0x1f785b(0x1e8)](_0x13312){const _0x548877=_0x1f785b;return this[_0x548877(0x1e4)][_0x548877(0x22d)](_0x37174c=>_0x37174c['id']===_0x13312)||null;}[_0x1f785b(0x1f4)](){const _0x4b2134=_0x1f785b;return Array[_0x4b2134(0x235)](this[_0x4b2134(0x1e4)]);}[_0x1f785b(0x206)](){const _0x2a05b7=_0x1f785b;return this[_0x2a05b7(0x222)];}[_0x1f785b(0x240)](_0x550b41){const _0x171e14=_0x1f785b;this[_0x171e14(0x222)]=_0x550b41;}[_0x1f785b(0x241)](_0x321f2c,_0x3bf114=0x0){const _0xcc9fd3=_0x1f785b;let _0x182321=!0x1;for(let _0x5939b4=_0x3bf114;_0x5939b4<this[_0xcc9fd3(0x1e4)][_0xcc9fd3(0x1e1)];_0x5939b4++)this[_0xcc9fd3(0x214)](_0x321f2c,_0x5939b4)&&(_0x182321=!0x0);return _0x182321;}[_0x1f785b(0x21b)](_0x5af627,_0x586673){const _0x2f7643=_0x1f785b,_0x361a1c=_0x5af627[_0x2f7643(0x236)](_0x2f7643(0x23d),{});return _0x5af627[_0x2f7643(0x227)](_0x361a1c,_0x586673),this[_0x2f7643(0x1ea)]=_0x361a1c,_0x361a1c;}[_0x1f785b(0x22c)](_0x3e0e47){const _0x575d6a=_0x1f785b;if(!this[_0x575d6a(0x1e4)][_0x575d6a(0x1e1)]||this[_0x575d6a(0x1ea)])return;const _0x51a38f=this[_0x575d6a(0x1e4)][0x0][_0x575d6a(0x229)][_0x575d6a(0x1e6)],_0x1daf55=this[_0x575d6a(0x21b)](_0x3e0e47,_0x51a38f);for(const _0x33c185 of this[_0x575d6a(0x1e4)])_0x33c185[_0x575d6a(0x1f7)][_0x575d6a(0x220)]||_0x3e0e47[_0x575d6a(0x1ff)](_0x33c185[_0x575d6a(0x1f7)],_0x1daf55,_0x575d6a(0x1f9));this[_0x575d6a(0x241)](_0x3e0e47);}[_0x1f785b(0x23b)](_0x260107,_0x5eb492){const _0x2c62dd=_0x1f785b;let _0x22e99e=!0x1;const {inserted:_0x2f1b1c,removed:_0x27503c,moved:_0x143794}=this[_0x2c62dd(0x226)][_0x2c62dd(0x1fe)](_0x5eb492);if(_0x143794[_0x2c62dd(0x1e1)]&&(this[_0x2c62dd(0x1ea)]=_0x143794[0x0]),_0x2f1b1c[_0x2c62dd(0x1e1)]){if(_0x2f1b1c[_0x2c62dd(0x1e1)]>0x1||this[_0x2c62dd(0x1ea)]&&_0x2f1b1c[_0x2c62dd(0x1fc)](_0x2ec6ab=>_0x2ec6ab!==this[_0x2c62dd(0x1ea)])){const _0x585244=_0x260107[_0x2c62dd(0x236)](_0x2c62dd(0x23d),{}),_0x199924=[];this[_0x2c62dd(0x1ea)]&&_0x199924[_0x2c62dd(0x231)](this[_0x2c62dd(0x1ea)]),_0x199924[_0x2c62dd(0x231)](..._0x2f1b1c),_0x260107[_0x2c62dd(0x1ff)](_0x585244,_0x199924[0x0],_0x2c62dd(0x230));for(const _0x273de1 of _0x199924)_0x260107[_0x2c62dd(0x208)](_0x260107[_0x2c62dd(0x1ed)](_0x273de1),_0x260107[_0x2c62dd(0x21e)](_0x585244,_0x2c62dd(0x1f9))),_0x260107[_0x2c62dd(0x23e)](_0x273de1);this[_0x2c62dd(0x1ea)]=_0x585244,this[_0x2c62dd(0x241)](_0x260107),_0x22e99e=!0x0;}else this[_0x2c62dd(0x1ea)]=_0x2f1b1c[0x0];}if(_0x27503c[_0x2c62dd(0x1e1)]&&_0x2c62dd(0x22b)===this[_0x2c62dd(0x1ea)]?.[_0x2c62dd(0x1e6)][_0x2c62dd(0x207)]){for(const _0x5a0b04 of this[_0x2c62dd(0x1e4)])_0x260107[_0x2c62dd(0x23e)](_0x5a0b04[_0x2c62dd(0x229)]),_0x22e99e=!0x0;this[_0x2c62dd(0x1e4)]=[],this[_0x2c62dd(0x1ea)]=null;}return _0x22e99e;}[_0x1f785b(0x204)](_0x5a0756,_0x351e02){const _0x5d016c=_0x1f785b;let _0x13defd=!0x1;const _0x1a5177=this[_0x5d016c(0x200)][_0x5d016c(0x1f6)][_0x5d016c(0x211)](_0x5d016c(0x1f5)),{inserted:_0x3ed3a2,moved:_0x1eb6dd}=this[_0x5d016c(0x1e7)][_0x5d016c(0x1fe)](_0x351e02);for(const _0xc9f43e of[..._0x1eb6dd,..._0x3ed3a2]){const _0x283d15=_0xc9f43e[_0x5d016c(0x244)](_0x5d016c(0x1ec)),_0x3615b4=this[_0x5d016c(0x1e8)](_0x283d15);_0x3615b4&&(_0x3615b4[_0x5d016c(0x1f7)]=_0xc9f43e),_(_0x5a0756,_0x1a5177,_0xc9f43e)&&(_0x13defd=!0x0);}return _0x13defd;}[_0x1f785b(0x225)](_0x497c0b,_0x35afa2){const _0x3588ad=_0x1f785b;let _0x2b9dc9=!0x1;const {removed:_0x49cd99,inserted:_0x2fb449,moved:_0x3d0976}=this[_0x3588ad(0x22a)][_0x3588ad(0x1fe)](_0x35afa2);for(const _0x1b94e2 of _0x49cd99)this[_0x3588ad(0x245)](_0x497c0b,_0x1b94e2)&&(_0x2b9dc9=!0x0);for(const _0x97020b of _0x2fb449)this[_0x3588ad(0x237)](_0x497c0b,_0x97020b)&&(_0x2b9dc9=!0x0);for(const _0x2bdd6f of _0x3d0976)this[_0x3588ad(0x242)](_0x497c0b,_0x2bdd6f)&&(_0x2b9dc9=!0x0);return _0x2b9dc9;}[_0x1f785b(0x1fb)](_0x146bb8){const _0x378746=_0x1f785b;if(!this[_0x378746(0x1ea)])return!0x1;let _0x138fe9=!0x1;if(this[_0x378746(0x1ea)][_0x378746(0x243)]!==this[_0x378746(0x1e4)][_0x378746(0x1e1)]){const _0x534959=[];for(const _0x2409e7 of this[_0x378746(0x1ea)][_0x378746(0x20e)]()){const _0xb80731=_0x2409e7[_0x378746(0x244)](_0x378746(0x1ec));this[_0x378746(0x1e8)](_0xb80731)||(_0x534959[_0x378746(0x210)](_0x2409e7),_0x138fe9=!0x0);}for(const _0x2e3d46 of _0x534959)_0x146bb8[_0x378746(0x23e)](_0x2e3d46);}const _0x5693c4=new Set(),_0xe9ef47=[];for(const _0x498602 of this[_0x378746(0x1ea)][_0x378746(0x20e)]()){const _0x210e1c=_0x498602[_0x378746(0x244)](_0x378746(0x1ec));_0x5693c4[_0x378746(0x23c)](_0x210e1c)?(_0xe9ef47[_0x378746(0x210)](_0x498602),_0x138fe9=!0x0):_0x5693c4[_0x378746(0x1f0)](_0x210e1c);}for(const _0xcb9f88 of _0xe9ef47)_0x146bb8[_0x378746(0x23e)](_0xcb9f88);return this[_0x378746(0x1ea)][_0x378746(0x243)]||(_0x146bb8[_0x378746(0x23e)](this[_0x378746(0x1ea)]),this[_0x378746(0x1ea)]=null,_0x138fe9=!0x0),_0x138fe9;}[_0x1f785b(0x237)](_0x2faa4e,_0x1ae99d){const _0x4aaffa=_0x1f785b;if(this[_0x4aaffa(0x1e4)][_0x4aaffa(0x22d)](_0xad532c=>_0xad532c[_0x4aaffa(0x229)]===_0x1ae99d))return!0x1;let _0x5527a6=!0x1;const _0x2e4a89=_0x1ae99d[_0x4aaffa(0x244)](_0x4aaffa(0x1ec)),_0x53febe=this[_0x4aaffa(0x1e4)][_0x4aaffa(0x21c)](_0x1d29a8=>_0x1d29a8['id']===_0x2e4a89);-0x1!==_0x53febe&&(_0x2faa4e[_0x4aaffa(0x23e)](this[_0x4aaffa(0x1e4)][_0x53febe][_0x4aaffa(0x229)]),this[_0x4aaffa(0x1e4)][_0x4aaffa(0x224)](_0x53febe,0x1),_0x5527a6=!0x0);let _0xca4c6a=this[_0x4aaffa(0x1ea)]?function(_0x30d4cb,_0x34c570){const _0x4f4f65=_0x4aaffa;for(const _0xae6bd6 of _0x30d4cb[_0x4f4f65(0x20e)]())if(_0xae6bd6[_0x4f4f65(0x244)](_0x4f4f65(0x1ec))===_0x34c570)return _0xae6bd6;return null;}(this[_0x4aaffa(0x1ea)],_0x2e4a89):null;_0xca4c6a||(_0xca4c6a=_0x2faa4e[_0x4aaffa(0x236)](_0x4aaffa(0x217),{'footnoteId':_0x2e4a89}),this[_0x4aaffa(0x1ea)]&&(_0x2faa4e[_0x4aaffa(0x1ff)](_0xca4c6a,this[_0x4aaffa(0x1ea)],_0x4aaffa(0x1f9)),_0x5527a6=!0x0));const _0x2c88e8={'id':_0x2e4a89,'reference':_0x1ae99d,'definition':_0xca4c6a},_0x2aab5e=I(this[_0x4aaffa(0x200)][_0x4aaffa(0x21a)],this[_0x4aaffa(0x1e4)],_0x1ae99d);this[_0x4aaffa(0x1e4)][_0x4aaffa(0x224)](_0x2aab5e,0x0,_0x2c88e8);let _0x218bc6=_0x2aab5e;return-0x1!==_0x53febe&&(_0x218bc6=Math[_0x4aaffa(0x234)](_0x2aab5e,_0x53febe)),this[_0x4aaffa(0x241)](_0x2faa4e,_0x218bc6)&&(_0x5527a6=!0x0),_0x5527a6;}[_0x1f785b(0x245)](_0x5e0d49,_0x3499d3){const _0x2c7472=_0x1f785b,_0x535d6f=this[_0x2c7472(0x1e4)][_0x2c7472(0x21c)](_0x2d2eb8=>_0x2d2eb8['id']===_0x3499d3);if(-0x1===_0x535d6f)return!0x1;let _0x2bae9e=!0x1;const _0x4f5b0a=this[_0x2c7472(0x1e4)][_0x535d6f];return _0x2c7472(0x22b)!==_0x4f5b0a[_0x2c7472(0x1f7)][_0x2c7472(0x1e6)][_0x2c7472(0x207)]&&(_0x5e0d49[_0x2c7472(0x23e)](_0x4f5b0a[_0x2c7472(0x1f7)]),_0x2bae9e=!0x0),this[_0x2c7472(0x1e4)][_0x2c7472(0x224)](_0x535d6f,0x1),this[_0x2c7472(0x241)](_0x5e0d49,_0x535d6f)&&(_0x2bae9e=!0x0),_0x2bae9e;}[_0x1f785b(0x242)](_0x235099,_0x491b93){const _0x35a77e=_0x1f785b,_0x192a2b=_0x491b93[_0x35a77e(0x244)](_0x35a77e(0x1ec)),_0x1d84f4=this[_0x35a77e(0x1e4)][_0x35a77e(0x21c)](_0xd6fc64=>_0xd6fc64['id']===_0x192a2b),_0x498c05=this[_0x35a77e(0x1e4)][_0x1d84f4];let _0x2a4589=!0x1;_0x498c05[_0x35a77e(0x229)]=_0x491b93,this[_0x35a77e(0x1e4)][_0x35a77e(0x224)](_0x1d84f4,0x1);const _0x14ef69=I(this[_0x35a77e(0x200)][_0x35a77e(0x21a)],this[_0x35a77e(0x1e4)],_0x491b93);return this[_0x35a77e(0x1e4)][_0x35a77e(0x224)](_0x14ef69,0x0,_0x498c05),this[_0x35a77e(0x241)](_0x235099,Math[_0x35a77e(0x234)](_0x1d84f4,_0x14ef69))&&(_0x2a4589=!0x0),_0x2a4589;}[_0x1f785b(0x214)](_0x30877e,_0x462c39){const _0x28e38f=_0x1f785b;if(!this[_0x28e38f(0x1ea)])return!0x1;const _0x37fa76=this[_0x28e38f(0x1e4)][_0x462c39];let _0x45fe6b;return _0x45fe6b=this[_0x28e38f(0x222)]?this[_0x28e38f(0x222)]({'footnote':_0x37fa76,'container':this[_0x28e38f(0x1ea)],'digits':String(this[_0x28e38f(0x1e4)][_0x28e38f(0x1e1)])[_0x28e38f(0x1e1)],'value':_0x462c39+0x1}):String(_0x462c39+0x1),_0x37fa76[_0x28e38f(0x229)][_0x28e38f(0x244)](_0x28e38f(0x1eb))!=_0x45fe6b&&(_0x30877e[_0x28e38f(0x1f2)](_0x28e38f(0x1eb),_0x45fe6b,_0x37fa76[_0x28e38f(0x229)]),!0x0);}[_0x1f785b(0x223)](_0x15ce23){const _0x3fd61c=_0x1f785b;if(!this[_0x3fd61c(0x1ea)]||this[_0x3fd61c(0x1e4)][_0x3fd61c(0x1e1)]<0x2)return!0x1;if(function(_0x4abcb9,_0x19cbad){const _0x2cb159=_0x3fd61c;if(_0x4abcb9[_0x2cb159(0x1e1)]!==_0x19cbad[_0x2cb159(0x1e1)])return!0x1;for(let _0x45cdd6=0x0;_0x45cdd6<_0x4abcb9[_0x2cb159(0x1e1)];_0x45cdd6++)if(_0x4abcb9[_0x45cdd6]!==_0x19cbad[_0x45cdd6])return!0x1;return!0x0;}(this[_0x3fd61c(0x1e4)][_0x3fd61c(0x238)](_0xed88cf=>_0xed88cf['id']),Array[_0x3fd61c(0x235)](this[_0x3fd61c(0x1ea)][_0x3fd61c(0x20e)]())[_0x3fd61c(0x238)](_0x84fbfc=>_0x84fbfc[_0x3fd61c(0x244)](_0x3fd61c(0x1ec)))))return!0x1;let _0x25b165=!0x1;for(let _0x539a21=0x0;_0x539a21<this[_0x3fd61c(0x1e4)][_0x3fd61c(0x1e1)];_0x539a21++){const _0x3a0986=this[_0x3fd61c(0x1e4)][_0x539a21],_0xd63c7d=_0x15ce23[_0x3fd61c(0x20b)](_0x3a0986[_0x3fd61c(0x1f7)]),_0x1f3729=_0x15ce23[_0x3fd61c(0x21e)](this[_0x3fd61c(0x1ea)],_0x539a21);_0xd63c7d[_0x3fd61c(0x23f)](_0x1f3729)||(_0x15ce23[_0x3fd61c(0x208)](_0x15ce23[_0x3fd61c(0x20d)](_0x3a0986[_0x3fd61c(0x1f7)]),_0x1f3729),_0x25b165=!0x0);}return _0x25b165;}[_0x1f785b(0x20a)](_0x513e99){const _0x42ccf9=_0x1f785b;if(!this[_0x42ccf9(0x1e4)][_0x42ccf9(0x1e1)])return!0x1;const {model:_0x528a88}=this[_0x42ccf9(0x200)];let _0x40b6e0=!0x1;for(let _0x2d20a2=0x0;_0x2d20a2<this[_0x42ccf9(0x1e4)][_0x42ccf9(0x1e1)]-0x1;_0x2d20a2++){const _0x14b039=this[_0x42ccf9(0x1e4)][_0x2d20a2],_0x53ca09=this[_0x42ccf9(0x1e4)][_0x2d20a2+0x1],_0x74a858=_0x528a88[_0x42ccf9(0x20b)](_0x14b039[_0x42ccf9(0x229)]),_0x33940c=_0x528a88[_0x42ccf9(0x20b)](_0x53ca09[_0x42ccf9(0x229)]);_0x42ccf9(0x1ef)===_0x74a858[_0x42ccf9(0x221)](_0x33940c)&&(this[_0x42ccf9(0x242)](_0x513e99,_0x14b039[_0x42ccf9(0x229)]),_0x2d20a2=-0x1,_0x40b6e0=!0x0);}return _0x40b6e0;}}function _(_0x282a14,_0x4272fc,_0x3ed227){const _0x48282b=_0x1f785b;if(_0x3ed227[_0x48282b(0x243)])return!0x1;const _0x2154e6=_0x4272fc?_0x48282b(0x202):_0x48282b(0x232);return _0x282a14[_0x48282b(0x1ff)](_0x282a14[_0x48282b(0x236)](_0x2154e6),_0x3ed227),!0x0;}function _0x4fdf(){const _0x4501d0=['_handleRemoveFootnoteReferenceById','length','isPremiumPlugin','355736hIlLNv','_footnotes','indexOf','root','_footnoteDefsTracker','getFootnote','5HeAnTa','_footnotesDefinitions','footnoteCounter','footnoteId','createRangeIn','set','after','add','enqueueChange','setAttribute','change:data','getFootnotes','footnotes.multiBlock','config','definition','isOfficialPlugin','end','pluginName','_handleFootnotesDefinitionsObjectSync','some','footnoteRef','getChanges','insert','editor','279CdyEhm','paragraph','document','_handleFootnoteDefinitionsChanges','getFootnotesDefinitionsObjectElement','getFootnotesFormatter','rootName','move','registerPostFixer','_ensureFootnotesReferencesHaveProperOrder','createPositionBefore','getRootNames','createRangeOn','getChildren','high','unshift','get','1020567cyhXMW','singleton','_updateFootnoteRefCounter','5645178ijGwpB','FootnotesTracker','footnoteDefinition','5973472XqjLBB','listenTo','model','_insertEmptyFootnotesDefinitionsContainer','findIndex','2448376SVDacs','createPositionAt','init','parent','compareWith','_footnoteFormatter','_sortFootnoteDefinitions','splice','_handleFootnoteReferencesChanges','_footnoteDefsContainerTracker','append','reset','reference','_footnoteRefsTracker','$graveyard','_ensureFootnotesDefinitionsContainerExists','find','low','1cIBEoG','before','push','footnoteInlineContent','differ','min','from','createElement','_handleInsertedFootnoteReference','map','424070srpzao','317128ePonZC','_handleFootnotesDefinitionsObjectChanges','has','footnotesDefinitions','remove','isEqual','setFootnoteFormatter','_updateFootnotesCounters','_handleMovedFootnoteReference','childCount','getAttribute'];_0x4fdf=function(){return _0x4501d0;};return _0x4fdf();}function I(_0x41754a,_0xdbd816,_0x550814){const _0x36ea5c=_0x1f785b;if(0x0===_0xdbd816[_0x36ea5c(0x1e1)])return 0x0;const _0xa3b18a=_0x41754a[_0x36ea5c(0x20b)](_0x550814);for(let _0x43337f=0x0;_0x43337f<_0xdbd816[_0x36ea5c(0x1e1)];_0x43337f++){const _0x1589a0=_0xdbd816[_0x43337f],_0x35b3f5=_0x41754a[_0x36ea5c(0x20b)](_0x1589a0[_0x36ea5c(0x229)]);if(_0x36ea5c(0x230)===_0xa3b18a[_0x36ea5c(0x221)](_0x35b3f5))return _0x43337f;}const _0x2f6f5c=_0x550814[_0x36ea5c(0x1e6)];let _0x226dc8=-0x1;for(let _0x48b94d=_0xdbd816[_0x36ea5c(0x1e1)]-0x1;_0x48b94d>=0x0;_0x48b94d--)if(_0xdbd816[_0x48b94d][_0x36ea5c(0x229)][_0x36ea5c(0x1e6)]===_0x2f6f5c){_0x226dc8=_0x48b94d;break;}if(-0x1!==_0x226dc8)return _0x226dc8+0x1;const _0x32e2f7=_0x41754a[_0x36ea5c(0x203)][_0x36ea5c(0x20c)](),_0x52f5b5=_0x32e2f7[_0x36ea5c(0x1e5)](_0x2f6f5c[_0x36ea5c(0x207)]),_0x2e22e9=_0x32e2f7[_0x52f5b5+0x1];if(_0x2e22e9){for(let _0x1c2e9a=0x0;_0x1c2e9a<_0xdbd816[_0x36ea5c(0x1e1)];_0x1c2e9a++)if(_0xdbd816[_0x1c2e9a][_0x36ea5c(0x229)][_0x36ea5c(0x1e6)][_0x36ea5c(0x207)]===_0x2e22e9)return _0x1c2e9a;}return _0xdbd816[_0x36ea5c(0x1e1)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x53df31,MenuBarMenuListItemButtonView as _0x5693c0}from'ckeditor5/src/ui.js';import{Plugin as _0x5a8db5}from'ckeditor5/src/core.js';import{IconFootnote as _0x4c38e8}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x5a8db5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c3c3f}=this,{componentFactory:_0x58ff2b}=_0x5c3c3f['ui'];_0x58ff2b['add']('insertFootnote',E(_0x5c3c3f,_0x53df31)),_0x58ff2b['add']('menuBar:insertFootnote',E(_0x5c3c3f,_0x5693c0)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xaa2e85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x186d46;for(const _0x3f983d in _0xaa2e85){const _0x15ed11=_0x3f983d,_0x486679=_0xaa2e85[_0x15ed11];if('footnotesLicenseKeyValid'==_0x486679||'footnotesLicenseKeyInvalid'==_0x486679||'footnotesLicenseKeyExpired'==_0x486679||'footnotesLicenseKeyDomainLimit'==_0x486679||'footnotesLicenseKeyNotAllowed'==_0x486679||'footnotesLicenseKeyEvaluationLimit'==_0x486679||'footnotesLicenseKeyUsageLimit'==_0x486679){delete _0xaa2e85[_0x15ed11],_0x186d46=_0x486679,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x186d46&&_0xaa2e85['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x186d46&&_0xaa2e85['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x186d46&&_0xaa2e85['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x186d46&&_0xaa2e85['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x186d46&&_0xaa2e85['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x186d46&&_0xaa2e85['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x129199,_0x5bb836){const _0x46e2b4=_0x129199['commands']['get']('insertFootnote');return _0x390bd6=>{const {t:t}=_0x390bd6,_0x48286d=new _0x5bb836(_0x390bd6),_0x3c7dbe=_0x48286d instanceof _0x5693c0;return _0x48286d['bind']('isEnabled')['to'](_0x46e2b4,'isEnabled'),_0x48286d['set']({'label':t(_0x3c7dbe?'Footnote':'Insert\x20footnote'),'icon':_0x4c38e8,'tooltip':!0x0}),_0x48286d['on']('execute',()=>{_0x46e2b4['execute'](),_0x129199['editing']['view']['focus']();}),_0x48286d;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1aa7f2,_0x56b2e2){var _0x431f15=_0x37cf,_0x4e3f71=_0x1aa7f2();while(!![]){try{var _0xd89bd4=parseInt(_0x431f15(0x1ea))/0x1+-parseInt(_0x431f15(0x1f1))/0x2+-parseInt(_0x431f15(0x1f0))/0x3+parseInt(_0x431f15(0x1eb))/0x4*(-parseInt(_0x431f15(0x1f2))/0x5)+parseInt(_0x431f15(0x1ed))/0x6+parseInt(_0x431f15(0x1ee))/0x7*(-parseInt(_0x431f15(0x1ef))/0x8)+parseInt(_0x431f15(0x1ec))/0x9;if(_0xd89bd4===_0x56b2e2)break;else _0x4e3f71['push'](_0x4e3f71['shift']());}catch(_0x53eb18){_0x4e3f71['push'](_0x4e3f71['shift']());}}}(_0x31c6,0x3201e));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';function _0x31c6(){var _0xcd7cef=['520932yTqsEB','35660LsdJDn','255261LgEblq','148qLEoHx','7621209ZQhrjr','565608FUQUbx','735455faVdpa','16EluvKi','771060jdKJNP'];_0x31c6=function(){return _0xcd7cef;};return _0x31c6();}export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';function _0x37cf(_0x1bd24f,_0x4013da){var _0x31c6e6=_0x31c6();return _0x37cf=function(_0x37cf7e,_0x2f894a){_0x37cf7e=_0x37cf7e-0x1ea;var _0xdfa8e5=_0x31c6e6[_0x37cf7e];return _0xdfa8e5;},_0x37cf(_0x1bd24f,_0x4013da);}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 _0xf5575c=_0x4ba0;function _0x4ba0(_0x8cce31,_0x4b5f76){const _0x4e5859=_0x4e58();return _0x4ba0=function(_0x4ba027,_0x12662f){_0x4ba027=_0x4ba027-0xef;let _0x3500c6=_0x4e5859[_0x4ba027];return _0x3500c6;},_0x4ba0(_0x8cce31,_0x4b5f76);}function _0x4e58(){const _0x2f4fb2=['448912YtfcjA','values','2809255vuleQg','getElementKey','name','delete','647742zVsRKs','flat','add','reset','createRangeOn','remove','position','56048lVCyWc','length','$text','set','element','12xLHxNU','16376152LlZpjV','clear','$graveyard','root','push','insert','881366oskSkQ','getItems','504590LFQGNd','elementName','35TpOPMh','rootName','type','_getElementKey','_elementName','getChanges','1ZLJMYV','from','has','_model','slice','nodeAfter','get','9vUqrtL','_trackedElements','attributes','477inEEWW','187PSajid'];_0x4e58=function(){return _0x2f4fb2;};return _0x4e58();}(function(_0x2d3e89,_0x2a3586){const _0x40e463=_0x4ba0,_0x42f082=_0x2d3e89();while(!![]){try{const _0x28fba5=-parseInt(_0x40e463(0xfe))/0x1*(-parseInt(_0x40e463(0xf4))/0x2)+parseInt(_0x40e463(0x105))/0x3*(-parseInt(_0x40e463(0x10a))/0x4)+parseInt(_0x40e463(0x10c))/0x5+-parseInt(_0x40e463(0x110))/0x6*(-parseInt(_0x40e463(0xf8))/0x7)+-parseInt(_0x40e463(0x117))/0x8*(parseInt(_0x40e463(0x108))/0x9)+parseInt(_0x40e463(0xf6))/0xa*(parseInt(_0x40e463(0x109))/0xb)+parseInt(_0x40e463(0x11c))/0xc*(-parseInt(_0x40e463(0x11d))/0xd);if(_0x28fba5===_0x2a3586)break;else _0x42f082['push'](_0x42f082['shift']());}catch(_0x12ee3b){_0x42f082['push'](_0x42f082['shift']());}}}(_0x4e58,0x69920));export class ModelElementTracker{[_0xf5575c(0x101)];[_0xf5575c(0xfc)];[_0xf5575c(0xfb)];[_0xf5575c(0x106)]=new Map();constructor(_0x4c55d4,_0x5bf581){const _0x138d87=_0xf5575c;this[_0x138d87(0x101)]=_0x4c55d4,this[_0x138d87(0xfc)]=_0x5bf581[_0x138d87(0xf7)],this[_0x138d87(0xfb)]=_0x5bf581[_0x138d87(0x10d)];}[_0xf5575c(0x113)](){const _0x174384=_0xf5575c;this[_0x174384(0x106)][_0x174384(0xef)]();}[_0xf5575c(0xfd)](_0x3ee2f7){const _0x2816b9=_0xf5575c,_0x1bfb5b=new Set(),_0xd7341d=new Map();for(const _0x577594 of _0x3ee2f7){if(_0x2816b9(0xf3)===_0x577594[_0x2816b9(0xfa)]&&_0x2816b9(0x119)!==_0x577594[_0x2816b9(0x10e)]&&_0x577594[_0x2816b9(0x116)][_0x2816b9(0x103)]){const _0x14219b=this[_0x2816b9(0x101)][_0x2816b9(0x114)](_0x577594[_0x2816b9(0x116)][_0x2816b9(0x103)]);for(const _0x44ab00 of _0x14219b[_0x2816b9(0xf5)]()){if(!_0x44ab00['is'](_0x2816b9(0x11b),this[_0x2816b9(0xfc)]))continue;const _0x2f7d7b=this[_0x2816b9(0xfb)](_0x44ab00);_0xd7341d[_0x2816b9(0x100)](_0x2f7d7b)||_0xd7341d[_0x2816b9(0x11a)](_0x2f7d7b,[]),_0xd7341d[_0x2816b9(0x104)](_0x2f7d7b)[_0x2816b9(0xf2)](_0x44ab00);}}if(_0x2816b9(0x115)===_0x577594[_0x2816b9(0xfa)]&&_0x577594[_0x2816b9(0x10e)]===this[_0x2816b9(0xfc)]){const _0x87cfd0=this[_0x2816b9(0xfb)]({'getAttribute':_0x22685f=>_0x577594[_0x2816b9(0x107)][_0x2816b9(0x104)](_0x22685f)});_0x1bfb5b[_0x2816b9(0x112)](_0x87cfd0);}}for(const [_0x3ad537,_0x239083]of this[_0x2816b9(0x106)])_0x2816b9(0xf0)===_0x239083[_0x2816b9(0xf1)][_0x2816b9(0xf9)]&&_0x1bfb5b[_0x2816b9(0x112)](_0x3ad537);for(const _0x2cbb12 of _0x1bfb5b)this[_0x2816b9(0x106)][_0x2816b9(0x10f)](_0x2cbb12);for(const [_0x525826,_0x16b9ab]of _0xd7341d)this[_0x2816b9(0x106)][_0x2816b9(0x11a)](_0x525826,_0x16b9ab[_0x16b9ab[_0x2816b9(0x118)]-0x1]);const _0x21a351=new Set();for(const [_0x5993ef,_0x24f515]of _0xd7341d)_0x1bfb5b[_0x2816b9(0x100)](_0x5993ef)&&(_0x21a351[_0x2816b9(0x112)](_0x24f515[0x0]),_0x24f515[_0x2816b9(0x118)]>0x1?_0xd7341d[_0x2816b9(0x11a)](_0x5993ef,_0x24f515[_0x2816b9(0x102)](0x1)):_0xd7341d[_0x2816b9(0x10f)](_0x5993ef),_0x1bfb5b[_0x2816b9(0x10f)](_0x5993ef));return{'removed':Array[_0x2816b9(0xff)](_0x1bfb5b),'inserted':Array[_0x2816b9(0xff)](_0xd7341d[_0x2816b9(0x10b)]())[_0x2816b9(0x111)](),'moved':Array[_0x2816b9(0xff)](_0x21a351)};}}
|