@ckeditor/ckeditor5-footnotes 47.3.0-alpha.6 → 47.3.0-alpha.7
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 _0x4a7ce7}from'ckeditor5/src/core.js';import{isWidget as _0x41bbdf,toWidget as _0x1fe759,toWidgetEditable as _0x2b3a24}from'ckeditor5/src/widget.js';import{uid as _0x595492}from'ckeditor5/src/utils.js';import{PointerObserver as _0x275f68,ClickObserver as _0xee558d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x4c5a9c}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1c7b57}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4a7ce7{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x4c5a9c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x570aff}=this;_0x570aff['config']['define']('footnotes.multiBlock',!0x0),_0x570aff['commands']['add']('insertFootnote',new _0x1c7b57(_0x570aff)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x57027e){const _0x4824eb=_0x5d7527([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]),_0x323c56=0x47a28506,_0x4ec207=0x47a5ffc6^_0x323c56,_0x8569ed=window[_0x5d7527([0x44,0x61,0x74,0x65])][_0x5d7527([0x6e,0x6f,0x77])](),_0x53cc67=_0x57027e[_0x5d7527([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54ef68=new window[(_0x5d7527([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x154553=>{_0x53cc67[_0x5d7527([0x6f,0x6e,0x63,0x65])](_0x5d7527([0x72,0x65,0x61,0x64,0x79]),_0x154553);}),_0x265db4={[_0x5d7527([0x6b,0x74,0x79])]:_0x5d7527([0x45,0x43]),[_0x5d7527([0x75,0x73,0x65])]:_0x5d7527([0x73,0x69,0x67]),[_0x5d7527([0x63,0x72,0x76])]:_0x5d7527([0x50,0x2d,0x32,0x35,0x36]),[_0x5d7527([0x78])]:_0x5d7527([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]),[_0x5d7527([0x79])]:_0x5d7527([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]),[_0x5d7527([0x61,0x6c,0x67])]:_0x5d7527([0x45,0x53,0x32,0x35,0x36])},_0xf3a30e=_0x53cc67[_0x5d7527([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d7527([0x67,0x65,0x74])](_0x5d7527([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3fc70d(){let _0xf58d31,_0xf073e3=null,_0x4e0007=null;try{if(_0xf3a30e==_0x5d7527([0x47,0x50,0x4c]))return _0x5d7527([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf58d31=_0x18449e(),!_0xf58d31)return _0x5d7527([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf58d31[_0x5d7527([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e0007=_0x2257e5(_0xf58d31[_0x5d7527([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf58d31[_0x5d7527([0x6a,0x74,0x69])])),await _0x13885e()?_0x252c00()?_0x580648()?_0x5d7527([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e3c20()?(_0xf58d31[_0x5d7527([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d7527([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf073e3=_0x597aa5(_0x5d7527([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf58d31[_0x5d7527([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d7527([0x74,0x72,0x69,0x61,0x6c])&&(_0xf073e3=_0x597aa5(_0x5d7527([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x517131()):_0x5d7527([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d7527([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d7527([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d7527([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x580648(){const _0x1e7223=[_0x5d7527([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d7527([0x74,0x72,0x69,0x61,0x6c])][_0x5d7527([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf58d31[_0x5d7527([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8569ed/0x3e8:0xe10*_0x4ec207;return _0xf58d31[_0x5d7527([0x65,0x78,0x70])]<_0x1e7223;}function _0x252c00(){const _0x457f27=_0xf58d31[_0x5d7527([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x457f27&&(!!_0x457f27[_0x5d7527([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7527([0x2a]))||!!_0x457f27[_0x5d7527([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7527([0x46,0x4f,0x4f])));}function _0x1e3c20(){const _0x50a71f=_0xf58d31[_0x5d7527([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50a71f||0x0==_0x50a71f[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1bc817}=new URL(window[_0x5d7527([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50a71f[_0x5d7527([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc817))return!0x0;const _0x5310d7=_0x1bc817[_0x5d7527([0x73,0x70,0x6c,0x69,0x74])](_0x5d7527([0x2e]));return _0x50a71f[_0x5d7527([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f3aac=>_0x5f3aac[_0x5d7527([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7527([0x2a])))[_0x5d7527([0x6d,0x61,0x70])](_0x197309=>_0x197309[_0x5d7527([0x73,0x70,0x6c,0x69,0x74])](_0x5d7527([0x2e])))[_0x5d7527([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d6c90=>_0x2d6c90[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5310d7[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d7527([0x6d,0x61,0x70])](_0x2a04aa=>Array(_0x5310d7[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a04aa[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d7527([0x66,0x69,0x6c,0x6c])](_0x2a04aa[0x0]===_0x5d7527([0x2a])?_0x5d7527([0x2a]):'')[_0x5d7527([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a04aa))[_0x5d7527([0x73,0x6f,0x6d,0x65])](_0x5b19ab=>_0x5310d7[_0x5d7527([0x65,0x76,0x65,0x72,0x79])]((_0x295cfd,_0x1df27f)=>_0x5b19ab[_0x1df27f]===_0x295cfd||_0x5b19ab[_0x1df27f]===_0x5d7527([0x2a])));}function _0x517131(){return _0xf073e3&&_0x4e0007?new window[(_0x5d7527([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x552bae,_0x5f27ab)=>{_0xf073e3[_0x5d7527([0x74,0x68,0x65,0x6e])](_0x552bae,_0x5f27ab),_0x4e0007[_0x5d7527([0x74,0x68,0x65,0x6e])](_0x185112=>{_0x185112!=_0x5d7527([0x56,0x61,0x6c,0x69,0x64])&&_0x552bae(_0x185112);},_0x5f27ab);}):_0xf073e3||_0x4e0007||_0x5d7527([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2257e5(_0x29f787,_0x5783b5){return new window[(_0x5d7527([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a1d69=>{if(_0x458bd7())return _0x5a1d69(_0x5d7527([0x56,0x61,0x6c,0x69,0x64]));_0x5f2ef2(),_0x53cc67[_0x5d7527([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d7527([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x287356=!0x1;const _0x2a8b6b=_0x595492();function _0x59e3e3(_0x381699){return!!_0x381699&&(typeof _0x381699===_0x5d7527([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x381699===_0x5d7527([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x381699[_0x5d7527([0x74,0x68,0x65,0x6e])]===_0x5d7527([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x381699[_0x5d7527([0x63,0x61,0x74,0x63,0x68])]===_0x5d7527([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x555473(_0x334067){_0x55ce73(_0x334067)[_0x5d7527([0x74,0x68,0x65,0x6e])](_0x3fbc4e=>{if(!_0x3fbc4e||_0x3fbc4e[_0x5d7527([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d7527([0x6f,0x6b]))return _0x5d7527([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40cc39(_0x496398(_0x2a8b6b+_0x5783b5))!=_0x3fbc4e[_0x5d7527([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d7527([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d7527([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d7527([0x74,0x68,0x65,0x6e])](_0x54d3a8=>(_0x50c08a(),_0x54d3a8),()=>{const _0x29a89a=_0x28925b();return null==_0x29a89a?(_0x50c08a(),_0x5d7527([0x56,0x61,0x6c,0x69,0x64])):_0x5d7527(_0x8569ed-_0x29a89a>(0x63ae0106^_0x323c56)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d7527([0x74,0x68,0x65,0x6e])](_0x5a1d69)[_0x5d7527([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a1d69(_0x5d7527([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a5ceb=0x47946b86^_0x323c56;function _0x50c08a(){const _0x133584=_0x5d7527([0x6c,0x6c,0x63,0x74,0x2d])+_0x40cc39(_0x496398(_0x29f787)),_0x387457=_0x45c66a(_0x40cc39(window[_0x5d7527([0x4d,0x61,0x74,0x68])][_0x5d7527([0x63,0x65,0x69,0x6c])](_0x8569ed/_0x4a5ceb)));window[_0x5d7527([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d7527([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x133584,_0x387457);}function _0x28925b(){const _0x471495=_0x5d7527([0x6c,0x6c,0x63,0x74,0x2d])+_0x40cc39(_0x496398(_0x29f787)),_0x137e20=window[_0x5d7527([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d7527([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x471495);return _0x137e20?window[_0x5d7527([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45c66a(_0x137e20),0x10)*_0x4a5ceb:null;}function _0x55ce73(_0x2a630b){return new window[(_0x5d7527([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a67a1,_0x56be63)=>{_0x2a630b[_0x5d7527([0x74,0x68,0x65,0x6e])](_0x4a67a1,_0x56be63),window[_0x5d7527([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56be63,0x47a351c6^_0x323c56);});}}_0x53cc67[_0x5d7527([0x6f,0x6e])](_0x5d7527([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xce9165,_0x412db8)=>{if(_0x412db8[0x0]!=_0x29f787)return _0x5a1d69(_0x5d7527([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x412db8[0x1]={..._0x412db8[0x1],[_0x5d7527([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a8b6b};},{[_0x5d7527([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d7527([0x68,0x69,0x67,0x68])}),_0x53cc67[_0x5d7527([0x6f,0x6e])](_0x5d7527([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe15b88=>{_0x59e3e3(_0xe15b88[_0x5d7527([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x287356=!0x0,_0x555473(_0xe15b88[_0x5d7527([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d7527([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d7527([0x6c,0x6f,0x77])}),_0x54ef68[_0x5d7527([0x74,0x68,0x65,0x6e])](()=>{_0x287356||_0x5a1d69(_0x5d7527([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x458bd7(){return _0x53cc67[_0x5d7527([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d7527([0x76,0x69,0x65,0x77])][_0x5d7527([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d7527([0x61,0x75,0x74,0x6f]);}function _0x5f2ef2(){_0x53cc67[_0x5d7527([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d7527([0x76,0x69,0x65,0x77])][_0x5d7527([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d7527([0x61,0x75,0x74,0x6f]);}}function _0x597aa5(_0x278bf7){const _0x5b5d25=[new window[(_0x5d7527([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15272c=>setTimeout(_0x15272c,0x47abbbca^_0x323c56)),_0x54ef68[_0x5d7527([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d7527([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf7d0dd=>{let _0x296daf=0x0;_0x53cc67[_0x5d7527([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7527([0x6f,0x6e])](_0x5d7527([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19d1f8,_0xa727cf)=>{_0xa727cf[0x0][_0x5d7527([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x296daf++,_0x296daf==(0x47a284fe^_0x323c56)&&(_0xf7d0dd(),_0x19d1f8[_0x5d7527([0x6f,0x66,0x66])]());});}))];return window[_0x5d7527([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d7527([0x72,0x61,0x63,0x65])](_0x5b5d25)[_0x5d7527([0x74,0x68,0x65,0x6e])](()=>_0x278bf7);}async function _0x34f496(){await _0x54ef68,_0x53cc67[_0x5d7527([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7527([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x110781,_0x53cc67[_0x5d7527([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7527([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x110781,_0x53cc67[_0x5d7527([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d7527([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26d11b(_0x28a05b){const _0x2f1f47=_0x5a2083();_0x53cc67[_0x2f1f47]=_0x5d7527([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28a05b,_0x28a05b!=_0x5d7527([0x56,0x61,0x6c,0x69,0x64])&&_0x34f496();}function _0x5a2083(){const _0x748367=window[_0x5d7527([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d7527([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d7527([0x6e,0x6f,0x77])]())[_0x5d7527([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d7527([0x2e]),'');let _0x54f6dc=_0x5d7527([0x75]);for(let _0x52fad7=0x0;_0x52fad7<_0x748367[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52fad7+=0x2){let _0x5725c3=window[_0x5d7527([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x748367[_0x5d7527([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52fad7,_0x52fad7+0x2));_0x5725c3>=_0x4824eb[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5725c3-=_0x4824eb[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54f6dc+=_0x4824eb[_0x5725c3];}return _0x54f6dc;}function _0x18449e(){const _0x42f72a=_0xf3a30e[_0x5d7527([0x73,0x70,0x6c,0x69,0x74])](_0x5d7527([0x2e]));if(0x3!=_0x42f72a[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x138336(_0x42f72a[0x1]);function _0x138336(_0x5e98e0){const _0xec5bed=_0x4f1053(_0x5e98e0);return _0xec5bed&&_0x539030()?_0xec5bed:null;function _0x539030(){const _0x426bad=_0xec5bed[_0x5d7527([0x6a,0x74,0x69])],_0x45abef=window[_0x5d7527([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x426bad[_0x5d7527([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x426bad[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2699f1={..._0xec5bed,[_0x5d7527([0x6a,0x74,0x69])]:_0x426bad[_0x5d7527([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x426bad[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2699f1[_0x5d7527([0x76,0x63])],_0x496398(_0x2699f1)==_0x45abef;}}}async function _0x13885e(){let _0x2fb952=!0x0;try{const _0x4548d6=_0xf3a30e[_0x5d7527([0x73,0x70,0x6c,0x69,0x74])](_0x5d7527([0x2e])),[_0x225ab1,_0x39dba2,_0x21301a]=_0x4548d6;return _0x324dc3(_0x225ab1),await _0x2de8df(_0x225ab1,_0x39dba2,_0x21301a),_0x2fb952;}catch{return!0x1;}function _0x324dc3(_0x4ef783){const _0x421454=_0x4f1053(_0x4ef783);_0x421454&&_0x421454[_0x5d7527([0x61,0x6c,0x67])]==_0x5d7527([0x45,0x53,0x32,0x35,0x36])||(_0x2fb952=!0x1);}async function _0x2de8df(_0x54cf1f,_0xff717f,_0x5e2cfb){const _0x3aaa03=window[_0x5d7527([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d7527([0x66,0x72,0x6f,0x6d])](_0x36b2d9(_0x5e2cfb),_0x13b413=>_0x13b413[_0x5d7527([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3390e7=new window[(_0x5d7527([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d7527([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54cf1f+_0x5d7527([0x2e])+_0xff717f),_0x2ea342=window[_0x5d7527([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d7527([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ea342)return;const _0x115e48=await _0x2ea342[_0x5d7527([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d7527([0x6a,0x77,0x6b]),_0x265db4,{[_0x5d7527([0x6e,0x61,0x6d,0x65])]:_0x5d7527([0x45,0x43,0x44,0x53,0x41]),[_0x5d7527([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d7527([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d7527([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ea342[_0x5d7527([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d7527([0x6e,0x61,0x6d,0x65])]:_0x5d7527([0x45,0x43,0x44,0x53,0x41]),[_0x5d7527([0x68,0x61,0x73,0x68])]:{[_0x5d7527([0x6e,0x61,0x6d,0x65])]:_0x5d7527([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x115e48,_0x3aaa03,_0x3390e7)||(_0x2fb952=!0x1);}}function _0x4f1053(_0x5c6e09){return _0x5c6e09[_0x5d7527([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d7527([0x65,0x79]))?JSON[_0x5d7527([0x70,0x61,0x72,0x73,0x65])](_0x36b2d9(_0x5c6e09)):null;}function _0x36b2d9(_0xd1a431){return window[_0x5d7527([0x61,0x74,0x6f,0x62])](_0xd1a431[_0x5d7527([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d7527([0x2b]))[_0x5d7527([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d7527([0x2f])));}function _0x496398(_0x38243c){let _0x1f63be=0x1505;function _0x500fdb(_0x34214c){for(let _0x1698d5=0x0;_0x1698d5<_0x34214c[_0x5d7527([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1698d5++){const _0x2905f3=_0x34214c[_0x5d7527([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1698d5);_0x1f63be=(_0x1f63be<<0x5)+_0x1f63be+_0x2905f3,_0x1f63be&=_0x1f63be;}}function _0x36b8cc(_0x34a5e9){Array[_0x5d7527([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34a5e9)?_0x34a5e9[_0x5d7527([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36b8cc):_0x34a5e9&&typeof _0x34a5e9==_0x5d7527([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d7527([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34a5e9)[_0x5d7527([0x73,0x6f,0x72,0x74])]()[_0x5d7527([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14be57,_0x2dbedc])=>{_0x500fdb(_0x14be57),_0x36b8cc(_0x2dbedc);}):_0x500fdb(window[_0x5d7527([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34a5e9));}return _0x36b8cc(_0x38243c),_0x1f63be>>>0x0;}function _0x40cc39(_0x4278df){return _0x4278df[_0x5d7527([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d7527([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d7527([0x30]));}function _0x45c66a(_0x11dc38){return _0x11dc38[_0x5d7527([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d7527([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d7527([0x6a,0x6f,0x69,0x6e])]('');}function _0x110781(){}function _0x5d7527(_0x16b9c0){return _0x16b9c0['map'](_0x564374=>String['fromCharCode'](_0x564374))['join']('');}_0x26d11b(await _0x3fc70d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x87453a){const {plugins:_0x25a3b1,editing:_0xed0382,model:_0x17e7f3}=this['editor'],_0x449d79=_0x25a3b1['get'](_0x4c5a9c)['getFootnote'](_0x87453a);return!!_0x449d79&&(_0x17e7f3['change'](_0x2740a7=>{_0x2740a7['setSelection'](_0x2740a7['createPositionAt'](_0x449d79['definition'],'end'));}),_0xed0382['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x299317){const {plugins:_0x473316,editing:_0x9e276f,model:_0x5c1331}=this['editor'],_0x571477=_0x473316['get'](_0x4c5a9c)['getFootnote'](_0x299317);return!!_0x571477&&(_0x5c1331['change'](_0x76234f=>{_0x76234f['setSelection'](_0x571477['reference'],'on');}),_0x9e276f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x177102}=this['editor']['model'],_0xdeb06a=this['editor']['config']['get']('footnotes.multiBlock');_0x177102['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x177102['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x177102['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xdeb06a?_0x177102['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x177102['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x177102['addChildCheck'](_0x165f2b=>{for(const _0x368a43 of _0x165f2b)if('footnoteDefinition'===_0x368a43['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5c8c93}=this,{conversion:_0x2132dd,editing:_0x1223bb}=_0x5c8c93,{t:t}=_0x5c8c93['locale'];_0x2132dd['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x52caca,{writer:_0x3888f0,consumable:_0x5d8da3})=>{const _0x161cd1=_0x52caca['getChild'](0x0);if(!_0x161cd1||!_0x161cd1['is']('element','a'))return null;const _0x7ac1f5=_0x161cd1['getAttribute']('href')||'';if(!_0x7ac1f5['startsWith']('#'))return null;const _0x29132a=_0x7ac1f5['replace'](/^#/,'');if(!_0x29132a)return null;_0x5d8da3['consume'](_0x161cd1,{'name':!0x0,'attributes':['href']});for(const {item:_0x1ba68b}of _0x1223bb['view']['createRangeIn'](_0x161cd1))_0x1ba68b['is']('$textProxy')?_0x5d8da3['consume'](_0x1ba68b['textNode'],{'name':!0x0}):_0x1ba68b['is']('element')&&_0x5d8da3['consume'](_0x1ba68b,{'name':!0x0});return _0x3888f0['createElement']('footnoteRef',{'footnoteId':_0x29132a});}}),_0x2132dd['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x9b2a4c,{writer:_0x366058})=>D(_0x9b2a4c,_0x366058)}),_0x2132dd['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1355ab,{writer:_0x441b14})=>{const _0x4444bb=_0x1355ab['getAttribute']('footnoteCounter');return _0x1fe759(D(_0x1355ab,_0x441b14),_0x441b14,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4444bb)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3e79d8}=this,{t:t}=_0x3e79d8['locale'],{conversion:_0x1c571}=_0x3e79d8;_0x1c571['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1c571['for']('upcast')['add'](_0x2e39e7=>{_0x2e39e7['on']('element:ol',(_0x311e99,_0x13dd4f,_0x255ade)=>{const _0x12feb7=_0x13dd4f['viewItem'];if(!_0x12feb7['hasClass']('footnotes-list')||!_0x13dd4f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x255ade['consumable']['consume'](_0x12feb7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3aa9df,modelCursor:_0x33b5ea}=_0x255ade['convertChildren'](_0x13dd4f['viewItem'],_0x13dd4f['modelCursor']);_0x13dd4f['modelRange']=_0x3aa9df,_0x13dd4f['modelCursor']=_0x33b5ea;}),_0x2e39e7['on']('element:hr',(_0x440f5d,_0x59434f,_0x5792f6)=>{const _0x506d39=_0x59434f['viewItem'];_0x506d39['hasClass']('footnotes-divider')&&_0x59434f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5792f6['consumable']['consume'](_0x506d39,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1c571['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x17451b,{writer:_0x38c506})=>v(_0x38c506)}),_0x1c571['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x54be17,{writer:_0x19388b})=>{const _0x3d0b03=v(_0x19388b,{'data-footnotes-list-label':t('Footnotes')}),_0x29600c=_0x1fe759(_0x3d0b03,_0x19388b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x19388b['setCustomProperty']('footnotesDefinitions',!0x0,_0x29600c),_0x29600c;}});}['_defineDefinitionConverters'](){const {editor:_0x4563f1}=this,{conversion:_0x47eb14,locale:_0x5dd4fc}=_0x4563f1,_0x50ea9f=_0x4563f1['config']['get']('footnotes.multiBlock');_0x47eb14['for']('upcast')['add'](_0x7768aa=>{_0x7768aa['on']('element:li',(_0x3c2382,_0x262c7b,_0x483519)=>{const _0x37467a=_0x262c7b['viewItem'];if(!_0x37467a['hasClass']('footnote-definition')||!_0x37467a['getAttribute']('id'))return;const _0x203f4b=_0x37467a['parent'];if(!_0x203f4b['is']('element','ol')||!_0x203f4b['hasClass']('footnotes-list'))return;if(!_0x483519['consumable']['test'](_0x37467a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3b03ef=_0x483519['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x37467a['getAttribute']('id')});if(!_0x483519['safeInsert'](_0x3b03ef,_0x262c7b['modelCursor']))return;_0x483519['consumable']['consume'](_0x37467a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x26406f=Array['from'](_0x37467a['getChildren']())['find'](_0x5561c1=>_0x5561c1['is']('element')&&_0x5561c1['hasClass']('footnote-content'));for(const _0x382767 of _0x37467a['getChildren']())_0x382767['is']('element')&&(_0x483519['consumable']['consume'](_0x382767,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x483519['consumable']['consume'](_0x382767,{'name':!0x0,'classes':'footnote-content'}));if(_0x26406f){if(_0x50ea9f)_0x483519['convertChildren'](_0x26406f,_0x3b03ef);else{const _0x3690ce=_0x483519['writer']['createElement']('footnoteInlineContent');_0x483519['writer']['insert'](_0x3690ce,_0x3b03ef),_0x483519['convertChildren'](_0x26406f,_0x3690ce);}}_0x483519['updateConversionResult'](_0x3b03ef,_0x262c7b);});}),_0x47eb14['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x38fb3c,{writer:_0x581ccb})=>b(_0x38fb3c,_0x581ccb,_0x5dd4fc,{'dataPipeline':!0x0})}),_0x47eb14['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x181064,{writer:_0x435afe})=>b(_0x181064,_0x435afe,_0x5dd4fc)});}['_defineBogusParagraphConverters'](){const {editor:_0x35710a}=this,{conversion:_0x11cac1}=_0x35710a;_0x35710a['config']['get']('footnotes.multiBlock')?(_0x11cac1['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x11cac1['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x35710a['model']['document'],'change:data',()=>{!function(_0x580643,_0x212a34){const _0x483de1=_0x580643['document']['differ'],_0xf8c2de=new Set();for(const _0x123cc1 of _0x483de1['getChanges']()){const _0xcbe79c='attribute'==_0x123cc1['type']?_0x123cc1['range']['start']['parent']:_0x123cc1['position']['parent'];_0xcbe79c['is']('element','footnoteDefinition')&&_0xf8c2de['add'](_0xcbe79c);}for(const _0x111773 of _0xf8c2de['values']()){const _0xdd3461=Array['from'](_0x111773['getChildren']())['filter'](_0x461b92=>g(_0x461b92,_0x212a34['mapper']));for(const _0x9b59d of _0xdd3461)_0x212a34['reconvertItem'](_0x9b59d);}}(_0x35710a['model'],_0x35710a['editing']);})):(_0x11cac1['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x11cac1['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1e2454,{writer:_0x56f33c})=>{const _0x3df675=_0x56f33c['createContainerElement']('span');return _0x56f33c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3df675),_0x3df675;}}));}['_defineKeyboardHandlers'](){const {editor:_0x105adb}=this,{editing:_0x53caf2,t:t}=_0x105adb,_0xb82979=_0x105adb['model']['document']['selection'];_0x105adb['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x105adb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x53caf2['view']['document'],'enter',(_0x202fda,_0x2462f2)=>{const _0x4fffbb=function(_0xb7791d){const _0x31e4d4=_0xb7791d['getSelectedElement']();if(_0x31e4d4?.['is']('element','footnoteRef'))return _0x31e4d4;return null;}(_0xb82979);if(_0x4fffbb){const _0x7edc68=_0x4fffbb['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x7edc68),_0x2462f2['preventDefault'](),_0x202fda['stop']();}},{'context':_0x41bbdf});}['_defineClickHandlers'](){const {editor:_0x5306d5}=this,{editing:_0x592b9a}=_0x5306d5;_0x5306d5['editing']['view']['addObserver'](_0x275f68),_0x5306d5['editing']['view']['addObserver'](_0xee558d);let _0x2fac9b=!0x1;this['listenTo'](_0x592b9a['view']['document'],'pointerdown',(_0x431669,_0x573306)=>{const {target:_0x10dc6e}=_0x573306,_0x3642a4=_0x592b9a['view']['document']['selection'];_0x2fac9b=!!(_0x10dc6e?.['is']('element','a')&&_0x10dc6e['parent']?.['is']('element','sup')&&_0x10dc6e['parent']['hasClass']('footnote'))&&_0x3642a4['getSelectedElement']()===_0x10dc6e['parent'];},{'priority':'high'}),this['listenTo'](_0x592b9a['view']['document'],'click',(_0x1213a0,_0x1e5067)=>{const {target:_0x5349c9}=_0x1e5067;if(!_0x5349c9?.['is']('element','a'))return;if(_0x5349c9['parent']?.['is']('element','sup')&&_0x5349c9['parent']['hasClass']('footnote')&&!_0x2fac9b)return void _0x1e5067['preventDefault']();let _0x179e23=_0x5349c9['getAttribute']('href');if(!_0x179e23?.['startsWith']('#'))return;_0x179e23=_0x179e23['slice'](0x1);let _0x574f55=!0x1;(_0x179e23['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x179e23['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x179e23))&&(_0x574f55=!0x0),_0x574f55&&(_0x1e5067['preventDefault'](),_0x1213a0['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x3058ee}={}){return(_0x472243,{writer:_0x6b6f17})=>{if(!p(_0x472243))return null;if(!_0x3058ee)return _0x6b6f17['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3750f1=_0x6b6f17['createContainerElement']('p');return _0x6b6f17['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3750f1),_0x3750f1;};}function p(_0x5447bb){const {parent:_0xa81ef8}=_0x5447bb;if(!_0xa81ef8?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0xa81ef8['childCount'])return!0x1;for(const _0x1a451a of _0x5447bb['getAttributeKeys']())if(!_0x1a451a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1a451a)return!0x1;return!0x0;}function g(_0x55124d,_0x38b619){if(!_0x55124d['is']('element','paragraph'))return!0x1;const _0x5939d1=_0x38b619['toViewElement'](_0x55124d);return!!_0x5939d1&&p(_0x55124d)!==_0x5939d1['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3a6719){return _0x41bbdf(_0x3a6719)&&_0x3a6719['is']('containerElement')&&!!_0x3a6719['getCustomProperty']('footnotesDefinitions');}function v(_0x4ecb95,_0x8ef5bb={}){const _0x46b3e8=_0x4ecb95['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x106a6a=_0x4ecb95['createContainerElement']('ol',{'class':'footnotes-list'},_0x4ecb95['createSlot']());return _0x4ecb95['createContainerElement']('div',{'class':'footnotes',..._0x8ef5bb},[_0x46b3e8,_0x106a6a]);}function D(_0x3548a4,_0x40bb5e){const _0x729463=_0x3548a4['getAttribute']('footnoteId'),_0xdcdac1=_0x3548a4['getAttribute']('footnoteCounter'),_0x5709ff=_0x40bb5e['createUIElement']('a',{'href':'#'+_0x729463},function(_0x10c497){const _0x5cc664=this['toDomElement'](_0x10c497);return _0x5cc664['textContent']=_0xdcdac1,_0x5cc664;}),_0x6c5c23=_0x40bb5e['createContainerElement']('sup',{'id':'ref-'+_0x729463,'class':'footnote'},[_0x5709ff]);return _0x6c5c23['getFillerOffset']=()=>null,_0x6c5c23;}function b(_0x2ac7c3,_0x591d74,_0x1d16a4,{dataPipeline:_0x302cc2}={}){const {t:t}=_0x1d16a4,_0x45adc2=_0x2ac7c3['getAttribute']('footnoteId'),_0x1b2874=_0x591d74['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x45adc2},function(_0x337025){const _0x55e254=this['toDomElement'](_0x337025);return _0x55e254['innerText']='^',_0x55e254;}),_0x134adc=_0x302cc2?_0x591d74['createContainerElement']('div',{'class':'footnote-content'}):_0x2b3a24(_0x591d74['createEditableElement']('div',{'class':'footnote-content'}),_0x591d74,{'label':t('Footnote\x20content.')});return _0x591d74['insert'](_0x591d74['createPositionAt'](_0x134adc,0x0),_0x591d74['createSlot']()),_0x591d74['createContainerElement']('li',{'class':'footnote-definition','id':_0x45adc2},[_0x1b2874,_0x134adc]);}
|
|
23
|
+
import{Plugin as _0x9e1e26}from'ckeditor5/src/core.js';import{isWidget as _0x7278ba,toWidget as _0x211b66,toWidgetEditable as _0x4891bf}from'ckeditor5/src/widget.js';import{uid as _0x29f49c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x20cf4d,ClickObserver as _0x24bfef}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x34a00a}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x37b531}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x9e1e26{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x34a00a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x53d1ca}=this;_0x53d1ca['config']['define']('footnotes.multiBlock',!0x0),_0x53d1ca['commands']['add']('insertFootnote',new _0x37b531(_0x53d1ca)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x23b99d){const _0x298602=_0x5683d9([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]),_0x3d56e0=0x47a28506,_0x12903e=0x47a5ffde^_0x3d56e0,_0x148926=window[_0x5683d9([0x44,0x61,0x74,0x65])][_0x5683d9([0x6e,0x6f,0x77])](),_0x47c5ac=_0x23b99d[_0x5683d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x329e36=new window[(_0x5683d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5225f3=>{_0x47c5ac[_0x5683d9([0x6f,0x6e,0x63,0x65])](_0x5683d9([0x72,0x65,0x61,0x64,0x79]),_0x5225f3);}),_0x3fa6a5={[_0x5683d9([0x6b,0x74,0x79])]:_0x5683d9([0x45,0x43]),[_0x5683d9([0x75,0x73,0x65])]:_0x5683d9([0x73,0x69,0x67]),[_0x5683d9([0x63,0x72,0x76])]:_0x5683d9([0x50,0x2d,0x32,0x35,0x36]),[_0x5683d9([0x78])]:_0x5683d9([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]),[_0x5683d9([0x79])]:_0x5683d9([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]),[_0x5683d9([0x61,0x6c,0x67])]:_0x5683d9([0x45,0x53,0x32,0x35,0x36])},_0xd96500=_0x47c5ac[_0x5683d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5683d9([0x67,0x65,0x74])](_0x5683d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x233868(){let _0x5adf73,_0x4b374a=null,_0x7133ae=null;try{if(_0xd96500==_0x5683d9([0x47,0x50,0x4c]))return _0x5683d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5adf73=_0x563aed(),!_0x5adf73)return _0x5683d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5adf73[_0x5683d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7133ae=_0x54213a(_0x5adf73[_0x5683d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5adf73[_0x5683d9([0x6a,0x74,0x69])])),await _0x3417af()?_0x5a44f0()?_0x2e7f05()?_0x5683d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x511de2()?(_0x5adf73[_0x5683d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5683d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b374a=_0x453b9e(_0x5683d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5adf73[_0x5683d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5683d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b374a=_0x453b9e(_0x5683d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c1a07()):_0x5683d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5683d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5683d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5683d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e7f05(){const _0x539f9f=[_0x5683d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5683d9([0x74,0x72,0x69,0x61,0x6c])][_0x5683d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5adf73[_0x5683d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x148926/0x3e8:0xe10*_0x12903e;return _0x5adf73[_0x5683d9([0x65,0x78,0x70])]<_0x539f9f;}function _0x5a44f0(){const _0x15bd34=_0x5adf73[_0x5683d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15bd34&&(!!_0x15bd34[_0x5683d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5683d9([0x2a]))||!!_0x15bd34[_0x5683d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5683d9([0x46,0x4f,0x4f])));}function _0x511de2(){const _0x173e45=_0x5adf73[_0x5683d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x173e45||0x0==_0x173e45[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a7d28}=new URL(window[_0x5683d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x173e45[_0x5683d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7d28))return!0x0;const _0x340af5=_0x1a7d28[_0x5683d9([0x73,0x70,0x6c,0x69,0x74])](_0x5683d9([0x2e]));return _0x173e45[_0x5683d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24a01d=>_0x24a01d[_0x5683d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5683d9([0x2a])))[_0x5683d9([0x6d,0x61,0x70])](_0x292923=>_0x292923[_0x5683d9([0x73,0x70,0x6c,0x69,0x74])](_0x5683d9([0x2e])))[_0x5683d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20ebf6=>_0x20ebf6[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x340af5[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5683d9([0x6d,0x61,0x70])](_0x1b7370=>Array(_0x340af5[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b7370[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5683d9([0x66,0x69,0x6c,0x6c])](_0x1b7370[0x0]===_0x5683d9([0x2a])?_0x5683d9([0x2a]):'')[_0x5683d9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b7370))[_0x5683d9([0x73,0x6f,0x6d,0x65])](_0x2ef486=>_0x340af5[_0x5683d9([0x65,0x76,0x65,0x72,0x79])]((_0x128f6e,_0x481688)=>_0x2ef486[_0x481688]===_0x128f6e||_0x2ef486[_0x481688]===_0x5683d9([0x2a])));}function _0x1c1a07(){return _0x4b374a&&_0x7133ae?new window[(_0x5683d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x455267,_0x2db024)=>{_0x4b374a[_0x5683d9([0x74,0x68,0x65,0x6e])](_0x455267,_0x2db024),_0x7133ae[_0x5683d9([0x74,0x68,0x65,0x6e])](_0x266cfd=>{_0x266cfd!=_0x5683d9([0x56,0x61,0x6c,0x69,0x64])&&_0x455267(_0x266cfd);},_0x2db024);}):_0x4b374a||_0x7133ae||_0x5683d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x54213a(_0x1b9577,_0x3c3ba9){return new window[(_0x5683d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4307ad=>{if(_0x4ecef9())return _0x4307ad(_0x5683d9([0x56,0x61,0x6c,0x69,0x64]));_0x539f0e(),_0x47c5ac[_0x5683d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5683d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b6463=!0x1;const _0x135d1f=_0x29f49c();function _0x1ece69(_0x231f58){return!!_0x231f58&&(typeof _0x231f58===_0x5683d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x231f58===_0x5683d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x231f58[_0x5683d9([0x74,0x68,0x65,0x6e])]===_0x5683d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x231f58[_0x5683d9([0x63,0x61,0x74,0x63,0x68])]===_0x5683d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f9c29(_0x33cfcb){_0x3f4ec1(_0x33cfcb)[_0x5683d9([0x74,0x68,0x65,0x6e])](_0x25301d=>{if(!_0x25301d||_0x25301d[_0x5683d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5683d9([0x6f,0x6b]))return _0x5683d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ba930(_0x253a7f(_0x135d1f+_0x3c3ba9))!=_0x25301d[_0x5683d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5683d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5683d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x5683d9([0x74,0x68,0x65,0x6e])](_0x2620b8=>(_0x45e952(),_0x2620b8),()=>{const _0x44cfb5=_0xe81318();return null==_0x44cfb5?(_0x45e952(),_0x5683d9([0x56,0x61,0x6c,0x69,0x64])):_0x5683d9(_0x148926-_0x44cfb5>(0x63ae0106^_0x3d56e0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5683d9([0x74,0x68,0x65,0x6e])](_0x4307ad)[_0x5683d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4307ad(_0x5683d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x481c37=0x47946b86^_0x3d56e0;function _0x45e952(){const _0x3143f8=_0x5683d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ba930(_0x253a7f(_0x1b9577)),_0x42d72d=_0x559a6c(_0x3ba930(window[_0x5683d9([0x4d,0x61,0x74,0x68])][_0x5683d9([0x63,0x65,0x69,0x6c])](_0x148926/_0x481c37)));window[_0x5683d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5683d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3143f8,_0x42d72d);}function _0xe81318(){const _0x332c7a=_0x5683d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ba930(_0x253a7f(_0x1b9577)),_0x3ab4ae=window[_0x5683d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5683d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x332c7a);return _0x3ab4ae?window[_0x5683d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x559a6c(_0x3ab4ae),0x10)*_0x481c37:null;}function _0x3f4ec1(_0x1ac44f){return new window[(_0x5683d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d0d47,_0x4cad7a)=>{_0x1ac44f[_0x5683d9([0x74,0x68,0x65,0x6e])](_0x3d0d47,_0x4cad7a),window[_0x5683d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cad7a,0x47a351c6^_0x3d56e0);});}}_0x47c5ac[_0x5683d9([0x6f,0x6e])](_0x5683d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x373b23,_0x5a1699)=>{if(_0x5a1699[0x0]!=_0x1b9577)return _0x4307ad(_0x5683d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a1699[0x1]={..._0x5a1699[0x1],[_0x5683d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x135d1f};},{[_0x5683d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5683d9([0x68,0x69,0x67,0x68])}),_0x47c5ac[_0x5683d9([0x6f,0x6e])](_0x5683d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x133067=>{_0x1ece69(_0x133067[_0x5683d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b6463=!0x0,_0x3f9c29(_0x133067[_0x5683d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5683d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5683d9([0x6c,0x6f,0x77])}),_0x329e36[_0x5683d9([0x74,0x68,0x65,0x6e])](()=>{_0x4b6463||_0x4307ad(_0x5683d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ecef9(){return _0x47c5ac[_0x5683d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5683d9([0x76,0x69,0x65,0x77])][_0x5683d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5683d9([0x61,0x75,0x74,0x6f]);}function _0x539f0e(){_0x47c5ac[_0x5683d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5683d9([0x76,0x69,0x65,0x77])][_0x5683d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5683d9([0x61,0x75,0x74,0x6f]);}}function _0x453b9e(_0x5b0c5d){const _0x2a5d52=[new window[(_0x5683d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20a6b=>setTimeout(_0x20a6b,0x47abbbca^_0x3d56e0)),_0x329e36[_0x5683d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5683d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bd62c=>{let _0x450254=0x0;_0x47c5ac[_0x5683d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5683d9([0x6f,0x6e])](_0x5683d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29bc08,_0x4fb759)=>{_0x4fb759[0x0][_0x5683d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x450254++,_0x450254==(0x47a284fe^_0x3d56e0)&&(_0x4bd62c(),_0x29bc08[_0x5683d9([0x6f,0x66,0x66])]());});}))];return window[_0x5683d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5683d9([0x72,0x61,0x63,0x65])](_0x2a5d52)[_0x5683d9([0x74,0x68,0x65,0x6e])](()=>_0x5b0c5d);}async function _0x56cc17(){await _0x329e36,_0x47c5ac[_0x5683d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5683d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x582f0e,_0x47c5ac[_0x5683d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5683d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x582f0e,_0x47c5ac[_0x5683d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5683d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x6c8f3c(_0x568155){const _0x59b237=_0x4fb08c();_0x47c5ac[_0x59b237]=_0x5683d9([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x568155,_0x568155!=_0x5683d9([0x56,0x61,0x6c,0x69,0x64])&&_0x56cc17();}function _0x4fb08c(){const _0x789e03=window[_0x5683d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5683d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5683d9([0x6e,0x6f,0x77])]())[_0x5683d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5683d9([0x2e]),'');let _0x376a3b=_0x5683d9([0x75]);for(let _0x5cfdc3=0x0;_0x5cfdc3<_0x789e03[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cfdc3+=0x2){let _0xba7885=window[_0x5683d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x789e03[_0x5683d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cfdc3,_0x5cfdc3+0x2));_0xba7885>=_0x298602[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xba7885-=_0x298602[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x376a3b+=_0x298602[_0xba7885];}return _0x376a3b;}function _0x563aed(){const _0x54f1c3=_0xd96500[_0x5683d9([0x73,0x70,0x6c,0x69,0x74])](_0x5683d9([0x2e]));if(0x3!=_0x54f1c3[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5eb8b6(_0x54f1c3[0x1]);function _0x5eb8b6(_0x1fc4c3){const _0x3449a7=_0x344b65(_0x1fc4c3);return _0x3449a7&&_0xc4ac78()?_0x3449a7:null;function _0xc4ac78(){const _0x3c61bf=_0x3449a7[_0x5683d9([0x6a,0x74,0x69])],_0x24caa1=window[_0x5683d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c61bf[_0x5683d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c61bf[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e7371={..._0x3449a7,[_0x5683d9([0x6a,0x74,0x69])]:_0x3c61bf[_0x5683d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c61bf[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e7371[_0x5683d9([0x76,0x63])],_0x253a7f(_0x3e7371)==_0x24caa1;}}}async function _0x3417af(){let _0x45f649=!0x0;try{const _0x1abd2b=_0xd96500[_0x5683d9([0x73,0x70,0x6c,0x69,0x74])](_0x5683d9([0x2e])),[_0x2d5df7,_0x810b6a,_0x388dc3]=_0x1abd2b;return _0x4d4542(_0x2d5df7),await _0x4fddfc(_0x2d5df7,_0x810b6a,_0x388dc3),_0x45f649;}catch{return!0x1;}function _0x4d4542(_0x3636b6){const _0x1d0348=_0x344b65(_0x3636b6);_0x1d0348&&_0x1d0348[_0x5683d9([0x61,0x6c,0x67])]==_0x5683d9([0x45,0x53,0x32,0x35,0x36])||(_0x45f649=!0x1);}async function _0x4fddfc(_0x57e164,_0x225b02,_0x384b59){const _0x5a4df6=window[_0x5683d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5683d9([0x66,0x72,0x6f,0x6d])](_0x38bfb6(_0x384b59),_0x1fbc26=>_0x1fbc26[_0x5683d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x494aec=new window[(_0x5683d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5683d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57e164+_0x5683d9([0x2e])+_0x225b02),_0x27db52=window[_0x5683d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5683d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27db52)return;const _0x201c2c=await _0x27db52[_0x5683d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5683d9([0x6a,0x77,0x6b]),_0x3fa6a5,{[_0x5683d9([0x6e,0x61,0x6d,0x65])]:_0x5683d9([0x45,0x43,0x44,0x53,0x41]),[_0x5683d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5683d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5683d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27db52[_0x5683d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5683d9([0x6e,0x61,0x6d,0x65])]:_0x5683d9([0x45,0x43,0x44,0x53,0x41]),[_0x5683d9([0x68,0x61,0x73,0x68])]:{[_0x5683d9([0x6e,0x61,0x6d,0x65])]:_0x5683d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x201c2c,_0x5a4df6,_0x494aec)||(_0x45f649=!0x1);}}function _0x344b65(_0x80c48e){return _0x80c48e[_0x5683d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5683d9([0x65,0x79]))?JSON[_0x5683d9([0x70,0x61,0x72,0x73,0x65])](_0x38bfb6(_0x80c48e)):null;}function _0x38bfb6(_0x2c29dd){return window[_0x5683d9([0x61,0x74,0x6f,0x62])](_0x2c29dd[_0x5683d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5683d9([0x2b]))[_0x5683d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5683d9([0x2f])));}function _0x253a7f(_0x500c8f){let _0x62d2d6=0x1505;function _0x3b44ae(_0x570396){for(let _0x1c40dc=0x0;_0x1c40dc<_0x570396[_0x5683d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c40dc++){const _0x3b3b93=_0x570396[_0x5683d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c40dc);_0x62d2d6=(_0x62d2d6<<0x5)+_0x62d2d6+_0x3b3b93,_0x62d2d6&=_0x62d2d6;}}function _0x1bc9fd(_0x53cc98){Array[_0x5683d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53cc98)?_0x53cc98[_0x5683d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bc9fd):_0x53cc98&&typeof _0x53cc98==_0x5683d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5683d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53cc98)[_0x5683d9([0x73,0x6f,0x72,0x74])]()[_0x5683d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2044ff,_0x5405aa])=>{_0x3b44ae(_0x2044ff),_0x1bc9fd(_0x5405aa);}):_0x3b44ae(window[_0x5683d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53cc98));}return _0x1bc9fd(_0x500c8f),_0x62d2d6>>>0x0;}function _0x3ba930(_0x4a7619){return _0x4a7619[_0x5683d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5683d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5683d9([0x30]));}function _0x559a6c(_0x43127b){return _0x43127b[_0x5683d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5683d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5683d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x582f0e(){}function _0x5683d9(_0x2ea465){return _0x2ea465['map'](_0x3c7a66=>String['fromCharCode'](_0x3c7a66))['join']('');}_0x6c8f3c(await _0x233868());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3e220c){const {plugins:_0x505baa,editing:_0x10267c,model:_0x33a190}=this['editor'],_0x5e7b9c=_0x505baa['get'](_0x34a00a)['getFootnote'](_0x3e220c);return!!_0x5e7b9c&&(_0x33a190['change'](_0x46608d=>{_0x46608d['setSelection'](_0x46608d['createPositionAt'](_0x5e7b9c['definition'],'end'));}),_0x10267c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x59e997){const {plugins:_0x217972,editing:_0x2f9038,model:_0x5a4fed}=this['editor'],_0x5764a7=_0x217972['get'](_0x34a00a)['getFootnote'](_0x59e997);return!!_0x5764a7&&(_0x5a4fed['change'](_0x343dcf=>{_0x343dcf['setSelection'](_0x5764a7['reference'],'on');}),_0x2f9038['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5f5983}=this['editor']['model'],_0x189975=this['editor']['config']['get']('footnotes.multiBlock');_0x5f5983['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5f5983['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5f5983['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x189975?_0x5f5983['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5f5983['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5f5983['addChildCheck'](_0x58a176=>{for(const _0x55800f of _0x58a176)if('footnoteDefinition'===_0x55800f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4bf7a1}=this,{conversion:_0x57ff1b,editing:_0x3b2934}=_0x4bf7a1,{t:t}=_0x4bf7a1['locale'];_0x57ff1b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x418fac,{writer:_0x493dcf,consumable:_0x3a5837})=>{const _0x14d6e7=_0x418fac['getChild'](0x0);if(!_0x14d6e7||!_0x14d6e7['is']('element','a'))return null;const _0x379c01=_0x14d6e7['getAttribute']('href')||'';if(!_0x379c01['startsWith']('#'))return null;const _0x341448=_0x379c01['replace'](/^#/,'');if(!_0x341448)return null;_0x3a5837['consume'](_0x14d6e7,{'name':!0x0,'attributes':['href']});for(const {item:_0x2baa15}of _0x3b2934['view']['createRangeIn'](_0x14d6e7))_0x2baa15['is']('$textProxy')?_0x3a5837['consume'](_0x2baa15['textNode'],{'name':!0x0}):_0x2baa15['is']('element')&&_0x3a5837['consume'](_0x2baa15,{'name':!0x0});return _0x493dcf['createElement']('footnoteRef',{'footnoteId':_0x341448});}}),_0x57ff1b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2041d3,{writer:_0x56e5e1})=>D(_0x2041d3,_0x56e5e1)}),_0x57ff1b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4dff3e,{writer:_0x16a31e})=>{const _0x11cc7a=_0x4dff3e['getAttribute']('footnoteCounter');return _0x211b66(D(_0x4dff3e,_0x16a31e),_0x16a31e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x11cc7a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x34b360}=this,{t:t}=_0x34b360['locale'],{conversion:_0x1c3f92}=_0x34b360;_0x1c3f92['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1c3f92['for']('upcast')['add'](_0x3602e9=>{_0x3602e9['on']('element:ol',(_0x4a89f5,_0x3aeca4,_0x2430dc)=>{const _0x12d552=_0x3aeca4['viewItem'];if(!_0x12d552['hasClass']('footnotes-list')||!_0x3aeca4['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2430dc['consumable']['consume'](_0x12d552,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x54582c,modelCursor:_0x37d7f9}=_0x2430dc['convertChildren'](_0x3aeca4['viewItem'],_0x3aeca4['modelCursor']);_0x3aeca4['modelRange']=_0x54582c,_0x3aeca4['modelCursor']=_0x37d7f9;}),_0x3602e9['on']('element:hr',(_0x174f57,_0x59a2c2,_0x2b259f)=>{const _0x18f992=_0x59a2c2['viewItem'];_0x18f992['hasClass']('footnotes-divider')&&_0x59a2c2['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2b259f['consumable']['consume'](_0x18f992,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1c3f92['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4cbe61,{writer:_0x511473})=>v(_0x511473)}),_0x1c3f92['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x81ce4b,{writer:_0xf88a8a})=>{const _0x440a4c=v(_0xf88a8a,{'data-footnotes-list-label':t('Footnotes')}),_0x537dd0=_0x211b66(_0x440a4c,_0xf88a8a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xf88a8a['setCustomProperty']('footnotesDefinitions',!0x0,_0x537dd0),_0x537dd0;}});}['_defineDefinitionConverters'](){const {editor:_0x2766ac}=this,{conversion:_0x4f9b30,locale:_0x5afa43}=_0x2766ac,_0x30b4ab=_0x2766ac['config']['get']('footnotes.multiBlock');_0x4f9b30['for']('upcast')['add'](_0xe75e61=>{_0xe75e61['on']('element:li',(_0x1dcf22,_0xfc10c1,_0x5afc9d)=>{const _0x33e651=_0xfc10c1['viewItem'];if(!_0x33e651['hasClass']('footnote-definition')||!_0x33e651['getAttribute']('id'))return;const _0x3e3238=_0x33e651['parent'];if(!_0x3e3238['is']('element','ol')||!_0x3e3238['hasClass']('footnotes-list'))return;if(!_0x5afc9d['consumable']['test'](_0x33e651,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x537dea=_0x5afc9d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x33e651['getAttribute']('id')});if(!_0x5afc9d['safeInsert'](_0x537dea,_0xfc10c1['modelCursor']))return;_0x5afc9d['consumable']['consume'](_0x33e651,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x794662=Array['from'](_0x33e651['getChildren']())['find'](_0x1dd947=>_0x1dd947['is']('element')&&_0x1dd947['hasClass']('footnote-content'));for(const _0x4ca2df of _0x33e651['getChildren']())_0x4ca2df['is']('element')&&(_0x5afc9d['consumable']['consume'](_0x4ca2df,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5afc9d['consumable']['consume'](_0x4ca2df,{'name':!0x0,'classes':'footnote-content'}));if(_0x794662){if(_0x30b4ab)_0x5afc9d['convertChildren'](_0x794662,_0x537dea);else{const _0xbedd01=_0x5afc9d['writer']['createElement']('footnoteInlineContent');_0x5afc9d['writer']['insert'](_0xbedd01,_0x537dea),_0x5afc9d['convertChildren'](_0x794662,_0xbedd01);}}_0x5afc9d['updateConversionResult'](_0x537dea,_0xfc10c1);});}),_0x4f9b30['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1d2cb0,{writer:_0x169f49})=>b(_0x1d2cb0,_0x169f49,_0x5afa43,{'dataPipeline':!0x0})}),_0x4f9b30['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x479159,{writer:_0x2a7493})=>b(_0x479159,_0x2a7493,_0x5afa43)});}['_defineBogusParagraphConverters'](){const {editor:_0x59a4c4}=this,{conversion:_0x137f9b}=_0x59a4c4;_0x59a4c4['config']['get']('footnotes.multiBlock')?(_0x137f9b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x137f9b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x59a4c4['model']['document'],'change:data',()=>{!function(_0x390682,_0xfea138){const _0x299013=_0x390682['document']['differ'],_0x475293=new Set();for(const _0x5a93b5 of _0x299013['getChanges']()){const _0x5df0e3='attribute'==_0x5a93b5['type']?_0x5a93b5['range']['start']['parent']:_0x5a93b5['position']['parent'];_0x5df0e3['is']('element','footnoteDefinition')&&_0x475293['add'](_0x5df0e3);}for(const _0x5c8f75 of _0x475293['values']()){const _0x295c4c=Array['from'](_0x5c8f75['getChildren']())['filter'](_0x389691=>g(_0x389691,_0xfea138['mapper']));for(const _0x1d7d02 of _0x295c4c)_0xfea138['reconvertItem'](_0x1d7d02);}}(_0x59a4c4['model'],_0x59a4c4['editing']);})):(_0x137f9b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x137f9b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3bc4d5,{writer:_0x306d0c})=>{const _0x103c65=_0x306d0c['createContainerElement']('span');return _0x306d0c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x103c65),_0x103c65;}}));}['_defineKeyboardHandlers'](){const {editor:_0x19c1d3}=this,{editing:_0x378397,t:t}=_0x19c1d3,_0x2a7ad1=_0x19c1d3['model']['document']['selection'];_0x19c1d3['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x19c1d3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x378397['view']['document'],'enter',(_0x42ce4c,_0x92a21)=>{const _0x2cfdd8=function(_0x5d586d){const _0x1f8b14=_0x5d586d['getSelectedElement']();if(_0x1f8b14?.['is']('element','footnoteRef'))return _0x1f8b14;return null;}(_0x2a7ad1);if(_0x2cfdd8){const _0x24b3d8=_0x2cfdd8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x24b3d8),_0x92a21['preventDefault'](),_0x42ce4c['stop']();}},{'context':_0x7278ba});}['_defineClickHandlers'](){const {editor:_0x122545}=this,{editing:_0x401265}=_0x122545;_0x122545['editing']['view']['addObserver'](_0x20cf4d),_0x122545['editing']['view']['addObserver'](_0x24bfef);let _0x270ea3=!0x1;this['listenTo'](_0x401265['view']['document'],'pointerdown',(_0x31420c,_0x14e8e3)=>{const {target:_0x22ed9b}=_0x14e8e3,_0x3ff1fc=_0x401265['view']['document']['selection'];_0x270ea3=!!(_0x22ed9b?.['is']('element','a')&&_0x22ed9b['parent']?.['is']('element','sup')&&_0x22ed9b['parent']['hasClass']('footnote'))&&_0x3ff1fc['getSelectedElement']()===_0x22ed9b['parent'];},{'priority':'high'}),this['listenTo'](_0x401265['view']['document'],'click',(_0x30036f,_0x3c2d9f)=>{const {target:_0x322115}=_0x3c2d9f;if(!_0x322115?.['is']('element','a'))return;if(_0x322115['parent']?.['is']('element','sup')&&_0x322115['parent']['hasClass']('footnote')&&!_0x270ea3)return void _0x3c2d9f['preventDefault']();let _0x53f59f=_0x322115['getAttribute']('href');if(!_0x53f59f?.['startsWith']('#'))return;_0x53f59f=_0x53f59f['slice'](0x1);let _0xae248d=!0x1;(_0x53f59f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x53f59f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x53f59f))&&(_0xae248d=!0x0),_0xae248d&&(_0x3c2d9f['preventDefault'](),_0x30036f['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x108c00}={}){return(_0x8a461c,{writer:_0x2e02be})=>{if(!p(_0x8a461c))return null;if(!_0x108c00)return _0x2e02be['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4f6573=_0x2e02be['createContainerElement']('p');return _0x2e02be['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4f6573),_0x4f6573;};}function p(_0x518c35){const {parent:_0x529271}=_0x518c35;if(!_0x529271?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x529271['childCount'])return!0x1;for(const _0x5d17ba of _0x518c35['getAttributeKeys']())if(!_0x5d17ba['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5d17ba)return!0x1;return!0x0;}function g(_0x313d89,_0x5c60c0){if(!_0x313d89['is']('element','paragraph'))return!0x1;const _0x4445d2=_0x5c60c0['toViewElement'](_0x313d89);return!!_0x4445d2&&p(_0x313d89)!==_0x4445d2['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4d0c50){return _0x7278ba(_0x4d0c50)&&_0x4d0c50['is']('containerElement')&&!!_0x4d0c50['getCustomProperty']('footnotesDefinitions');}function v(_0x43d40f,_0x260ea5={}){const _0xce1783=_0x43d40f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x13574=_0x43d40f['createContainerElement']('ol',{'class':'footnotes-list'},_0x43d40f['createSlot']());return _0x43d40f['createContainerElement']('div',{'class':'footnotes',..._0x260ea5},[_0xce1783,_0x13574]);}function D(_0x58093e,_0x2b27e6){const _0x396695=_0x58093e['getAttribute']('footnoteId'),_0x5343c9=_0x58093e['getAttribute']('footnoteCounter'),_0x59cf37=_0x2b27e6['createUIElement']('a',{'href':'#'+_0x396695},function(_0x5d4b0a){const _0xd405d4=this['toDomElement'](_0x5d4b0a);return _0xd405d4['textContent']=_0x5343c9,_0xd405d4;}),_0x1a3ba1=_0x2b27e6['createContainerElement']('sup',{'id':'ref-'+_0x396695,'class':'footnote'},[_0x59cf37]);return _0x1a3ba1['getFillerOffset']=()=>null,_0x1a3ba1;}function b(_0x42fbba,_0x402e48,_0x18196d,{dataPipeline:_0x4e93bb}={}){const {t:t}=_0x18196d,_0xbe1be3=_0x42fbba['getAttribute']('footnoteId'),_0x5b6461=_0x402e48['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xbe1be3},function(_0x383366){const _0x5deddb=this['toDomElement'](_0x383366);return _0x5deddb['innerText']='^',_0x5deddb;}),_0x59d7d6=_0x4e93bb?_0x402e48['createContainerElement']('div',{'class':'footnote-content'}):_0x4891bf(_0x402e48['createEditableElement']('div',{'class':'footnote-content'}),_0x402e48,{'label':t('Footnote\x20content.')});return _0x402e48['insert'](_0x402e48['createPositionAt'](_0x59d7d6,0x0),_0x402e48['createSlot']()),_0x402e48['createContainerElement']('li',{'class':'footnote-definition','id':_0xbe1be3},[_0x5b6461,_0x59d7d6]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10e2cd=_0x5eec;(function(_0x12d4ae,_0x200143){const _0x458bcb=_0x5eec,_0x3122b1=_0x12d4ae();while(!![]){try{const _0x304fe2=-parseInt(_0x458bcb(0x9e))/0x1*(parseInt(_0x458bcb(0xaa))/0x2)+parseInt(_0x458bcb(0x9d))/0x3*(-parseInt(_0x458bcb(0xae))/0x4)+-parseInt(_0x458bcb(0x93))/0x5*(parseInt(_0x458bcb(0x9a))/0x6)+-parseInt(_0x458bcb(0xa1))/0x7*(parseInt(_0x458bcb(0x98))/0x8)+-parseInt(_0x458bcb(0x94))/0x9*(parseInt(_0x458bcb(0x95))/0xa)+parseInt(_0x458bcb(0xa2))/0xb*(-parseInt(_0x458bcb(0xa6))/0xc)+-parseInt(_0x458bcb(0x96))/0xd*(-parseInt(_0x458bcb(0xa8))/0xe);if(_0x304fe2===_0x200143)break;else _0x3122b1['push'](_0x3122b1['shift']());}catch(_0x43b8d2){_0x3122b1['push'](_0x3122b1['shift']());}}}(_0x16c3,0x1d2ab));function _0x5eec(_0xceefb5,_0x312e38){const _0x16c306=_0x16c3();return _0x5eec=function(_0x5eec1f,_0x50e179){_0x5eec1f=_0x5eec1f-0x93;let _0x5536ce=_0x16c306[_0x5eec1f];return _0x5536ce;},_0x5eec(_0xceefb5,_0x312e38);}import{Command as _0x22163b}from'ckeditor5/src/core.js';function _0x16c3(){const _0x731c8a=['135679XJCMWi','execute','_updateFootnotesCounters','57253vhIXSt','4477LfyEML','refresh','getFootnotesDefinitionsObjectElement','plugins','4848NRIkny','footnotesListStart','3458mAcdZB','model','2nrqvBi','getAttribute','isEnabled','change','25540mxJKck','5NYjXqs','1900656vcJmbL','10MpuZed','59137nFPWPg','isInteger','112nUjbLl','value','1044114DZHzLi','get','setAttribute','96wNSFLf'];_0x16c3=function(){return _0x731c8a;};return _0x16c3();}import{FootnotesTracker as _0x3ab64a}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x22163b{[_0x10e2cd(0xa3)](){const _0x44d062=_0x10e2cd,{editor:_0x2aaa0d}=this,_0x15209d=_0x2aaa0d[_0x44d062(0xa5)][_0x44d062(0x9b)](_0x3ab64a)[_0x44d062(0xa4)]();this[_0x44d062(0xac)]=!!_0x15209d,this[_0x44d062(0x99)]=_0x15209d?.[_0x44d062(0xab)](_0x44d062(0xa7))??null;}[_0x10e2cd(0x9f)]({value:_0x1e5d5b}){const _0x5432b1=_0x10e2cd,{editor:_0x14f178}=this,_0xe50e26=_0x14f178[_0x5432b1(0xa5)][_0x5432b1(0x9b)](_0x3ab64a),_0x327555=_0xe50e26[_0x5432b1(0xa4)]();_0x327555&&Number[_0x5432b1(0x97)](_0x1e5d5b)&&_0x14f178[_0x5432b1(0xa9)][_0x5432b1(0xad)](_0x4d9c94=>{const _0x40861f=_0x5432b1;_0x4d9c94[_0x40861f(0x9c)](_0x40861f(0xa7),_0x1e5d5b,_0x327555),_0xe50e26[_0x40861f(0xa0)](_0x4d9c94);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5612e3=_0x3ddb;function _0x3ddb(_0x374510,_0x3d14dc){const _0x46cc04=_0x46cc();return _0x3ddb=function(_0x3ddb7a,_0x11dc0c){_0x3ddb7a=_0x3ddb7a-0x181;let _0x21d5de=_0x46cc04[_0x3ddb7a];return _0x21d5de;},_0x3ddb(_0x374510,_0x3d14dc);}(function(_0x258d83,_0x45a880){const _0x8e58d=_0x3ddb,_0x510be9=_0x258d83();while(!![]){try{const _0x363cbe=-parseInt(_0x8e58d(0x199))/0x1*(parseInt(_0x8e58d(0x196))/0x2)+parseInt(_0x8e58d(0x193))/0x3*(parseInt(_0x8e58d(0x187))/0x4)+parseInt(_0x8e58d(0x18d))/0x5+-parseInt(_0x8e58d(0x189))/0x6*(-parseInt(_0x8e58d(0x190))/0x7)+-parseInt(_0x8e58d(0x198))/0x8*(parseInt(_0x8e58d(0x185))/0x9)+-parseInt(_0x8e58d(0x188))/0xa*(parseInt(_0x8e58d(0x194))/0xb)+-parseInt(_0x8e58d(0x195))/0xc*(-parseInt(_0x8e58d(0x18c))/0xd);if(_0x363cbe===_0x45a880)break;else _0x510be9['push'](_0x510be9['shift']());}catch(_0xa77561){_0x510be9['push'](_0x510be9['shift']());}}}(_0x46cc,0x3c559));import{Command as _0xdfa00a}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x5c690d}from'../footnotespropertiesconfig.js';function _0x46cc(){const _0x3e684f=['isEnabled','455KLScmQ','588855nwNnCH','model','_updateFootnotesCounters','14gjAaLV','change','get','3jdHBsD','11vNkLJd','22296cUIGcs','74NxKdTl','includes','24EiqlOJ','10401mmLhPa','footnotesListStyle','execute','setAttribute','getAttribute','plugins','getFootnotesDefinitionsObjectElement','479763xyGNoi','value','1891916TRgyjr','1372390RdfUMV','820038ZRUZQb','refresh'];_0x46cc=function(){return _0x3e684f;};return _0x46cc();}import{FootnotesTracker as _0x32df67}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0xdfa00a{[_0x5612e3(0x18a)](){const _0x13ade3=_0x5612e3,{editor:_0x285281}=this,_0x2a0780=_0x285281[_0x13ade3(0x183)][_0x13ade3(0x192)](_0x32df67)[_0x13ade3(0x184)]();this[_0x13ade3(0x18b)]=!!_0x2a0780,this[_0x13ade3(0x186)]=_0x2a0780?.[_0x13ade3(0x182)](_0x13ade3(0x19a))??null;}[_0x5612e3(0x19b)]({value:_0x430edb}){const _0x9b7e14=_0x5612e3,{editor:_0xe15a19}=this,_0x9bf02=_0xe15a19[_0x9b7e14(0x183)][_0x9b7e14(0x192)](_0x32df67),_0x9a888c=_0x9bf02[_0x9b7e14(0x184)]();_0x9a888c&&_0x5c690d[_0x9b7e14(0x197)](_0x430edb)&&_0xe15a19[_0x9b7e14(0x18e)][_0x9b7e14(0x191)](_0x5c69a9=>{const _0x3d7c9b=_0x9b7e14;_0x5c69a9[_0x3d7c9b(0x181)](_0x3d7c9b(0x19a),_0x430edb,_0x9a888c),_0x9bf02[_0x3d7c9b(0x18f)](_0x5c69a9);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5c7e71=_0x1a7e;function _0x5e15(){const _0xf95005=['decimal-leading-zero','lower-latin','58911yPQASF','lower-alpha','decimal','upper-latin','upper-alpha','787860dhIhxf','lower-roman','58WEGhAM','12rZiyWr','495855XOhwaG','44dJKaVS','7167108dDALXb','upper-roman','2080540OXKpEv','88lXcJLU','777015UlZJsh','14VSsTgc','3180980kHxQtI'];_0x5e15=function(){return _0xf95005;};return _0x5e15();}function _0x1a7e(_0x4870e4,_0x51def8){const _0x5e1579=_0x5e15();return _0x1a7e=function(_0x1a7e54,_0x5ef08c){_0x1a7e54=_0x1a7e54-0x106;let _0x17db8a=_0x5e1579[_0x1a7e54];return _0x17db8a;},_0x1a7e(_0x4870e4,_0x51def8);}(function(_0x2a141f,_0xdf99dd){const _0x93e0bf=_0x1a7e,_0x1df955=_0x2a141f();while(!![]){try{const _0x53f50a=parseInt(_0x93e0bf(0x108))/0x1+parseInt(_0x93e0bf(0x114))/0x2*(-parseInt(_0x93e0bf(0x10d))/0x3)+parseInt(_0x93e0bf(0x115))/0x4*(-parseInt(_0x93e0bf(0x106))/0x5)+-parseInt(_0x93e0bf(0x112))/0x6*(-parseInt(_0x93e0bf(0x109))/0x7)+-parseInt(_0x93e0bf(0x107))/0x8*(parseInt(_0x93e0bf(0x116))/0x9)+-parseInt(_0x93e0bf(0x10a))/0xa+parseInt(_0x93e0bf(0x117))/0xb*(parseInt(_0x93e0bf(0x118))/0xc);if(_0x53f50a===_0xdf99dd)break;else _0x1df955['push'](_0x1df955['shift']());}catch(_0x1b4b8a){_0x1df955['push'](_0x1df955['shift']());}}}(_0x5e15,0xa7a8b));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x5c7e71(0x10f),_0x5c7e71(0x10b),_0x5c7e71(0x10c),_0x5c7e71(0x110),_0x5c7e71(0x10e),_0x5c7e71(0x111),_0x5c7e71(0x113),_0x5c7e71(0x119)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1b2b(){const _0x9a0df9=['attribute:footnotesListStyle:footnotesDefinitions','toViewElement','_defineSchema','1309513RoJQKW','document','removeAttribute','floor','start','7860210jqoEyu','element:ol','toUpperCase','modelCursor','upcast','footnotesListStart','footnotesDefinitions','1222002OaKwHS','add','insert','checkAttribute','_defineConverters','footnotesListStyle','getChanges','parseInt','fromCharCode','mapper','extend','setAttribute','from','parent','attribute:footnotesListStart:footnotesDefinitions','isPremiumPlugin','createRangeOn','1151196fqIRVN','upper-latin','downcast','$text','_definePostfixer','find','footnotesStyle','setStyle','name','_formatFootnoteListValue','getItems','padStart','pluginName','commands','list-style-type','hasAttribute','4498028YYGirF','config','lower-latin','writer','hasClass','decimal','_getDefaultListStyle','decimal-leading-zero','getStyle','5itRDQx','requires','FootnotesPropertiesEditing','footnotes.footnotesProperties.defaultStartIndex','lower-alpha','consume','_updateFootnotesCounters','16673232zEHBid','differ','item','upper-alpha','_getDefaultStartIndex','footnotes.footnotesProperties.defaultListStyle','for','footnotesStart','getAttribute','editor','model','isOfficialPlugin','nodeAfter','7420686wahjHc','element','init','footnotes-list','position','lower-roman','get','toLowerCase','plugins','upper-roman','_defineFormatter','isNaN','registerPostFixer','schema','removeStyle','getChildren','define','consumable','viewItem','setFootnoteFormatter','max','type'];_0x1b2b=function(){return _0x9a0df9;};return _0x1b2b();}const _0x9e7942=_0x2cbd;(function(_0xc4bab0,_0x15c098){const _0x2f2a78=_0x2cbd,_0x1e6f63=_0xc4bab0();while(!![]){try{const _0x4786da=parseInt(_0x2f2a78(0x144))/0x1+parseInt(_0x2f2a78(0xfe))/0x2+-parseInt(_0x2f2a78(0x150))/0x3+parseInt(_0x2f2a78(0x10e))/0x4+-parseInt(_0x2f2a78(0x117))/0x5*(-parseInt(_0x2f2a78(0x149))/0x6)+-parseInt(_0x2f2a78(0x12b))/0x7+-parseInt(_0x2f2a78(0x11e))/0x8;if(_0x4786da===_0x15c098)break;else _0x1e6f63['push'](_0x1e6f63['shift']());}catch(_0x10f570){_0x1e6f63['push'](_0x1e6f63['shift']());}}}(_0x1b2b,0xbb843));import{Plugin as _0x101a06}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0xa7f1c5}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x28fc84}from'./commands/footnotesstartcommand.js';function _0x2cbd(_0x46f324,_0x1874e8){const _0x1b2bc=_0x1b2b();return _0x2cbd=function(_0x2cbd89,_0x2198f8){_0x2cbd89=_0x2cbd89-0xf9;let _0x4daa5a=_0x1b2bc[_0x2cbd89];return _0x4daa5a;},_0x2cbd(_0x46f324,_0x1874e8);}import{FootnotesTracker as _0x105533}from'../footnotestracker.js';import{FootnotesEditing as _0x1c5336}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x101a06{static get[_0x9e7942(0x10a)](){const _0x2dd273=_0x9e7942;return _0x2dd273(0x119);}static get[_0x9e7942(0x118)](){return[_0x1c5336,_0x105533];}static get[_0x9e7942(0x129)](){return!0x0;}static get[_0x9e7942(0xfc)](){return!0x0;}[_0x9e7942(0x12d)](){const _0x3039a7=_0x9e7942,{editor:_0x568a6a}=this;_0x568a6a[_0x3039a7(0x10f)][_0x3039a7(0x13b)](_0x3039a7(0x123),_0x3039a7(0x113)),_0x568a6a[_0x3039a7(0x10f)][_0x3039a7(0x13b)](_0x3039a7(0x11a),0x1),_0x568a6a[_0x3039a7(0x10b)][_0x3039a7(0x151)](_0x3039a7(0x104),new _0xa7f1c5(_0x568a6a)),_0x568a6a[_0x3039a7(0x10b)][_0x3039a7(0x151)](_0x3039a7(0x125),new _0x28fc84(_0x568a6a)),this[_0x3039a7(0x143)](),this[_0x3039a7(0x154)](),this[_0x3039a7(0x135)](),this[_0x3039a7(0x102)]();}[_0x9e7942(0x143)](){const _0x126bec=_0x9e7942,{editor:_0x71d09e}=this,{schema:_0x5e5872}=_0x71d09e[_0x126bec(0x128)];_0x5e5872[_0x126bec(0x15a)](_0x126bec(0x14f),{'allowAttributes':[_0x126bec(0x155),_0x126bec(0x14e)]});}[_0x9e7942(0x154)](){const _0x548197=_0x9e7942,{editor:_0x1d20aa}=this,{conversion:_0x2ff251,model:_0x53794b}=_0x1d20aa,{schema:_0x327728}=_0x53794b;_0x2ff251[_0x548197(0x124)](_0x548197(0x14d))[_0x548197(0x151)](_0x486737=>{const _0x43a09e=_0x548197;_0x486737['on'](_0x43a09e(0x14a),(_0x290bf5,_0xb74160,_0x57bb80)=>{const _0x27364f=_0x43a09e,_0x19750b=_0xb74160[_0x27364f(0x13d)],_0x52d17e=_0xb74160[_0x27364f(0x14c)]?.[_0x27364f(0xfa)];_0x19750b[_0x27364f(0x112)](_0x27364f(0x12e))&&_0x52d17e?.['is'](_0x27364f(0x12c),_0x27364f(0x14f))&&(function(_0x305661,_0x13a24e,_0xfb989b,_0x2e5e41){const _0x59e8f6=_0x27364f;if(!_0x2e5e41[_0x59e8f6(0x153)](_0x13a24e,_0x59e8f6(0x14e)))return;let _0x5f054a=0x1;const _0x25d947=_0xfb989b[_0x59e8f6(0x13c)][_0x59e8f6(0x11c)](_0x305661,{'attributes':_0x59e8f6(0x148)});if(_0x25d947){const _0x9c8371=Number[_0x59e8f6(0x157)](_0x305661[_0x59e8f6(0x126)](_0x59e8f6(0x148)),0xa);Number[_0x59e8f6(0x136)](_0x9c8371)||(_0x5f054a=_0x9c8371);}!_0x25d947&&_0x13a24e[_0x59e8f6(0x10d)](_0x59e8f6(0x14e))||_0xfb989b[_0x59e8f6(0x111)][_0x59e8f6(0x15b)](_0x59e8f6(0x14e),_0x5f054a,_0x13a24e);}(_0x19750b,_0x52d17e,_0x57bb80,_0x327728),function(_0x3e287c,_0x315434,_0x1f6b29,_0x319ed6){const _0x1d811b=_0x27364f;if(!_0x319ed6[_0x1d811b(0x153)](_0x315434,_0x1d811b(0x155)))return;let _0x3ddc68=_0x1d811b(0x113),_0x2beb7c=!0x1;if(_0x1f6b29[_0x1d811b(0x13c)][_0x1d811b(0x11c)](_0x3e287c,{'attributes':_0x1d811b(0x140)})){const _0x11cba1={0x1:_0x1d811b(0x113),'a':_0x1d811b(0x11b),'A':_0x1d811b(0x121),'i':_0x1d811b(0x130),'I':_0x1d811b(0x134)}[_0x3e287c[_0x1d811b(0x126)](_0x1d811b(0x140))];_0x11cba1&&(_0x3ddc68=_0x11cba1),_0x2beb7c=!0x0;}_0x1f6b29[_0x1d811b(0x13c)][_0x1d811b(0x11c)](_0x3e287c,{'styles':_0x1d811b(0x10c)})&&(_0x3ddc68=function(_0x56ab8c){const _0x4e7286=_0x1d811b;switch(_0x56ab8c){case _0x4e7286(0x11b):return _0x4e7286(0x110);case _0x4e7286(0x121):return _0x4e7286(0xff);default:return _0x56ab8c;}}(_0x3e287c[_0x1d811b(0x116)](_0x1d811b(0x10c))),_0x2beb7c=!0x0),!_0x2beb7c&&_0x315434[_0x1d811b(0x10d)](_0x1d811b(0x155))||_0x1f6b29[_0x1d811b(0x111)][_0x1d811b(0x15b)](_0x1d811b(0x155),_0x3ddc68,_0x315434);}(_0x19750b,_0x52d17e,_0x57bb80,_0x327728));});}),_0x2ff251[_0x548197(0x124)](_0x548197(0x100))[_0x548197(0x151)](_0x48e4f3=>{const _0x409ff2=_0x548197;_0x48e4f3['on'](_0x409ff2(0xfb),(_0x122b4a,_0x141c38,_0x4d2cb5)=>{const _0x6945df=_0x409ff2;if(!_0x4d2cb5[_0x6945df(0x13c)][_0x6945df(0x11c)](_0x141c38[_0x6945df(0x120)],_0x122b4a[_0x6945df(0x106)]))return;const _0x4d9c65=M(_0x141c38[_0x6945df(0x120)],_0x4d2cb5[_0x6945df(0x159)]),{attributeNewValue:_0x17a7ae}=_0x141c38;null==_0x17a7ae||0x1===_0x17a7ae?_0x4d2cb5[_0x6945df(0x111)][_0x6945df(0x146)](_0x6945df(0x148),_0x4d9c65):_0x4d2cb5[_0x6945df(0x111)][_0x6945df(0x15b)](_0x6945df(0x148),String(_0x17a7ae),_0x4d9c65);}),_0x48e4f3['on'](_0x409ff2(0x141),(_0x41f4c7,_0x5a233b,_0x4137c6)=>{const _0x5656c9=_0x409ff2;if(!_0x4137c6[_0x5656c9(0x13c)][_0x5656c9(0x11c)](_0x5a233b[_0x5656c9(0x120)],_0x41f4c7[_0x5656c9(0x106)]))return;const _0x591f63=M(_0x5a233b[_0x5656c9(0x120)],_0x4137c6[_0x5656c9(0x159)]),{attributeNewValue:_0x208024}=_0x5a233b;_0x208024&&_0x5656c9(0x113)!==_0x208024?_0x4137c6[_0x5656c9(0x111)][_0x5656c9(0x105)](_0x5656c9(0x10c),_0x208024,_0x591f63):_0x4137c6[_0x5656c9(0x111)][_0x5656c9(0x139)](_0x5656c9(0x10c),_0x591f63);});});}[_0x9e7942(0x102)](){const _0x3fffb4=_0x9e7942,{editor:_0xd9c695}=this,{model:_0x7b8550}=_0xd9c695,_0x27d687=_0xd9c695[_0x3fffb4(0x133)][_0x3fffb4(0x131)](_0x105533),_0x51026c=this[_0x3fffb4(0x114)](),_0x575365=this[_0x3fffb4(0x122)]();_0x7b8550[_0x3fffb4(0x145)][_0x3fffb4(0x137)](_0x1cf490=>{const _0x218dbf=_0x3fffb4,_0x4a361b=_0x7b8550[_0x218dbf(0x145)][_0x218dbf(0x11f)][_0x218dbf(0x156)]();let _0x414363=!0x1;for(const _0x2a1fea of _0x4a361b){if(_0x218dbf(0x152)!==_0x2a1fea[_0x218dbf(0x140)]||_0x218dbf(0x101)===_0x2a1fea[_0x218dbf(0x106)])continue;const _0x172a4d=_0x7b8550[_0x218dbf(0xfd)](_0x2a1fea[_0x218dbf(0x12f)][_0x218dbf(0x12a)]);for(const _0x170159 of _0x172a4d[_0x218dbf(0x108)]())_0x170159['is'](_0x218dbf(0x12c),_0x218dbf(0x14f))&&(!_0x170159[_0x218dbf(0x10d)](_0x218dbf(0x14e))&&_0x7b8550[_0x218dbf(0x138)][_0x218dbf(0x153)](_0x170159,_0x218dbf(0x14e))&&(_0x1cf490[_0x218dbf(0x15b)](_0x218dbf(0x14e),_0x575365,_0x170159),_0x414363=!0x0),!_0x170159[_0x218dbf(0x10d)](_0x218dbf(0x155))&&_0x7b8550[_0x218dbf(0x138)][_0x218dbf(0x153)](_0x170159,_0x218dbf(0x155))&&(_0x1cf490[_0x218dbf(0x15b)](_0x218dbf(0x155),_0x51026c,_0x170159),_0x414363=!0x0));}return _0x414363&&_0x27d687[_0x218dbf(0x11d)](_0x1cf490),_0x414363;});}[_0x9e7942(0x135)](){const _0x275c78=_0x9e7942,{editor:_0x3b0622}=this;_0x3b0622[_0x275c78(0x133)][_0x275c78(0x131)](_0x105533)[_0x275c78(0x13e)](_0x264998=>this[_0x275c78(0x107)](_0x264998));}[_0x9e7942(0x114)](){const _0x17a93d=_0x9e7942;return this[_0x17a93d(0x127)][_0x17a93d(0x10f)][_0x17a93d(0x131)](_0x17a93d(0x123));}[_0x9e7942(0x122)](){const _0x5d896c=_0x9e7942;return this[_0x5d896c(0x127)][_0x5d896c(0x10f)][_0x5d896c(0x131)](_0x5d896c(0x11a));}[_0x9e7942(0x107)]({container:_0x191051,value:_0x586170,digits:_0x55c5bf}){const _0x19bf11=_0x9e7942,_0x3084d9=_0x191051[_0x19bf11(0x126)](_0x19bf11(0x155)),_0x1601d5=_0x191051[_0x19bf11(0x126)](_0x19bf11(0x14e)),_0xed9f7c=Math[_0x19bf11(0x147)](_0x586170)+(_0x1601d5??0x1)-0x1;switch(_0x3084d9){case _0x19bf11(0x115):return function(_0x1a835d,_0x506a5d){const _0x53b3fb=_0x19bf11;return String(_0x1a835d)[_0x53b3fb(0x109)](_0x506a5d,'0');}(_0xed9f7c,Math[_0x19bf11(0x13f)](0x2,_0x55c5bf));case _0x19bf11(0x11b):case _0x19bf11(0x110):return N(_0xed9f7c,!0x1);case _0x19bf11(0x121):case _0x19bf11(0xff):return N(_0xed9f7c,!0x0);case _0x19bf11(0x130):return X(_0xed9f7c,!0x1);case _0x19bf11(0x134):return X(_0xed9f7c,!0x0);default:return String(_0xed9f7c);}}}function M(_0x3a2e45,_0x21bb41){const _0x123e78=_0x9e7942,_0x4f28f9=_0x21bb41[_0x123e78(0x142)](_0x3a2e45);return Array[_0x123e78(0xf9)](_0x4f28f9[_0x123e78(0x13a)]())[_0x123e78(0x103)](_0xe2c1ab=>_0xe2c1ab['is'](_0x123e78(0x12c),'ol')&&_0xe2c1ab[_0x123e78(0x112)](_0x123e78(0x12e)));}function N(_0x1ce4ef,_0x5e1a99){const _0x3b65e6=_0x9e7942;let _0x1bf2cd='',_0xbc6244=_0x1ce4ef;for(;_0xbc6244>0x0;){const _0x1a8459=(_0xbc6244-0x1)%0x1a;_0x1bf2cd=String[_0x3b65e6(0x158)](0x61+_0x1a8459)+_0x1bf2cd,_0xbc6244=Math[_0x3b65e6(0x147)]((_0xbc6244-0x1)/0x1a);}return _0x5e1a99?_0x1bf2cd[_0x3b65e6(0x14b)]():_0x1bf2cd;}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(_0x1663b5,_0x955a85){const _0x355fde=_0x9e7942;let _0x9461e8='',_0x2507fe=_0x1663b5;for(const {value:_0x5be2a0,numeral:_0xcd9c2a}of V)for(;_0x2507fe>=_0x5be2a0;)_0x9461e8+=_0xcd9c2a,_0x2507fe-=_0x5be2a0;return _0x955a85?_0x9461e8:_0x9461e8[_0x355fde(0x132)]();}
|
|
23
|
+
function _0x5608(_0x1748f2,_0x593795){const _0x47f71a=_0x47f7();return _0x5608=function(_0x56083a,_0x37ec9f){_0x56083a=_0x56083a-0x1c6;let _0x5411f6=_0x47f71a[_0x56083a];return _0x5411f6;},_0x5608(_0x1748f2,_0x593795);}const _0x3f889d=_0x5608;(function(_0x573c69,_0x5612e1){const _0x3c4b38=_0x5608,_0x10729e=_0x573c69();while(!![]){try{const _0x5958be=-parseInt(_0x3c4b38(0x1ff))/0x1*(-parseInt(_0x3c4b38(0x205))/0x2)+-parseInt(_0x3c4b38(0x1f6))/0x3+parseInt(_0x3c4b38(0x1f8))/0x4+-parseInt(_0x3c4b38(0x1fd))/0x5*(parseInt(_0x3c4b38(0x1c6))/0x6)+-parseInt(_0x3c4b38(0x20d))/0x7*(parseInt(_0x3c4b38(0x200))/0x8)+parseInt(_0x3c4b38(0x206))/0x9*(parseInt(_0x3c4b38(0x1cb))/0xa)+-parseInt(_0x3c4b38(0x1d6))/0xb;if(_0x5958be===_0x5612e1)break;else _0x10729e['push'](_0x10729e['shift']());}catch(_0x5e6c8e){_0x10729e['push'](_0x10729e['shift']());}}}(_0x47f7,0xc3f70));import{Plugin as _0x3c430f}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x543025}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x2efb9f}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x4e3f7b}from'../footnotestracker.js';function _0x47f7(){const _0x17fea9=['decimal','floor','1000080dndPcR','getStyle','1902304zVWZmm','_formatFootnoteListValue','setStyle','max','setAttribute','50yKDlZf','document','1kVIsmX','16GBedKr','parent','mapper','toLowerCase','position','1946762wmnuOo','44883ICAcEz','find','_definePostfixer','padStart','start','_defineConverters','define','1193087oGvNXN','isPremiumPlugin','from','getChanges','lower-latin','consume','add','element:ol','fromCharCode','requires','footnotes.footnotesProperties.defaultListStyle','registerPostFixer','getChildren','getAttribute','item','$text','extend','insert','writer','lower-alpha','removeStyle','isOfficialPlugin','commands','downcast','footnotesListStart','hasAttribute','pluginName','footnotes.footnotesProperties.defaultStartIndex','attribute:footnotesListStyle:footnotesDefinitions','list-style-type','hasClass','728358PPXJZC','_defineFormatter','footnotes-list','getItems','footnotesDefinitions','2710gAXbsK','setFootnoteFormatter','model','init','editor','footnotesStyle','config','schema','plugins','get','type','1205490pfrmAm','nodeAfter','parseInt','attribute:footnotesListStart:footnotesDefinitions','viewItem','differ','decimal-leading-zero','consumable','element','toViewElement','removeAttribute','lower-roman','for','upcast','createRangeOn','_getDefaultListStyle','upper-alpha','checkAttribute','_defineSchema','isNaN','modelCursor','FootnotesPropertiesEditing','upper-latin','name','upper-roman','toUpperCase','footnotesStart','_updateFootnotesCounters','_getDefaultStartIndex','footnotesListStyle'];_0x47f7=function(){return _0x17fea9;};return _0x47f7();}import{FootnotesEditing as _0x8b1067}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x3c430f{static get[_0x3f889d(0x227)](){const _0x40d134=_0x3f889d;return _0x40d134(0x1eb);}static get[_0x3f889d(0x216)](){return[_0x8b1067,_0x4e3f7b];}static get[_0x3f889d(0x222)](){return!0x0;}static get[_0x3f889d(0x20e)](){return!0x0;}[_0x3f889d(0x1ce)](){const _0x3f4350=_0x3f889d,{editor:_0x202fdf}=this;_0x202fdf[_0x3f4350(0x1d1)][_0x3f4350(0x20c)](_0x3f4350(0x217),_0x3f4350(0x1f4)),_0x202fdf[_0x3f4350(0x1d1)][_0x3f4350(0x20c)](_0x3f4350(0x228),0x1),_0x202fdf[_0x3f4350(0x223)][_0x3f4350(0x213)](_0x3f4350(0x1d0),new _0x543025(_0x202fdf)),_0x202fdf[_0x3f4350(0x223)][_0x3f4350(0x213)](_0x3f4350(0x1f0),new _0x2efb9f(_0x202fdf)),this[_0x3f4350(0x1e8)](),this[_0x3f4350(0x20b)](),this[_0x3f4350(0x1c7)](),this[_0x3f4350(0x208)]();}[_0x3f889d(0x1e8)](){const _0x1cb4a7=_0x3f889d,{editor:_0x4ff946}=this,{schema:_0x36d86b}=_0x4ff946[_0x1cb4a7(0x1cd)];_0x36d86b[_0x1cb4a7(0x21d)](_0x1cb4a7(0x1ca),{'allowAttributes':[_0x1cb4a7(0x1f3),_0x1cb4a7(0x225)]});}[_0x3f889d(0x20b)](){const _0x5e9232=_0x3f889d,{editor:_0x7999ea}=this,{conversion:_0x44febf,model:_0x1fce3c}=_0x7999ea,{schema:_0x5b8090}=_0x1fce3c;_0x44febf[_0x5e9232(0x1e2)](_0x5e9232(0x1e3))[_0x5e9232(0x213)](_0x1cd8a1=>{const _0xff6ae4=_0x5e9232;_0x1cd8a1['on'](_0xff6ae4(0x214),(_0x2ebd8a,_0x15ef30,_0x5f3dfc)=>{const _0x378abd=_0xff6ae4,_0x544e55=_0x15ef30[_0x378abd(0x1da)],_0x4cb8e5=_0x15ef30[_0x378abd(0x1ea)]?.[_0x378abd(0x201)];_0x544e55[_0x378abd(0x22b)](_0x378abd(0x1c8))&&_0x4cb8e5?.['is'](_0x378abd(0x1de),_0x378abd(0x1ca))&&(function(_0x9e462a,_0x2fb66a,_0x4cb360,_0x41e62b){const _0x54c7a8=_0x378abd;if(!_0x41e62b[_0x54c7a8(0x1e7)](_0x2fb66a,_0x54c7a8(0x225)))return;let _0x5523f0=0x1;const _0x53c14e=_0x4cb360[_0x54c7a8(0x1dd)][_0x54c7a8(0x212)](_0x9e462a,{'attributes':_0x54c7a8(0x20a)});if(_0x53c14e){const _0x217d36=Number[_0x54c7a8(0x1d8)](_0x9e462a[_0x54c7a8(0x21a)](_0x54c7a8(0x20a)),0xa);Number[_0x54c7a8(0x1e9)](_0x217d36)||(_0x5523f0=_0x217d36);}!_0x53c14e&&_0x2fb66a[_0x54c7a8(0x226)](_0x54c7a8(0x225))||_0x4cb360[_0x54c7a8(0x21f)][_0x54c7a8(0x1fc)](_0x54c7a8(0x225),_0x5523f0,_0x2fb66a);}(_0x544e55,_0x4cb8e5,_0x5f3dfc,_0x5b8090),function(_0x42ba00,_0x57a47c,_0x342d1e,_0x42834f){const _0x5c0cc1=_0x378abd;if(!_0x42834f[_0x5c0cc1(0x1e7)](_0x57a47c,_0x5c0cc1(0x1f3)))return;let _0x5296bb=_0x5c0cc1(0x1f4),_0x3d950f=!0x1;if(_0x342d1e[_0x5c0cc1(0x1dd)][_0x5c0cc1(0x212)](_0x42ba00,{'attributes':_0x5c0cc1(0x1d5)})){const _0x1928bf={0x1:_0x5c0cc1(0x1f4),'a':_0x5c0cc1(0x220),'A':_0x5c0cc1(0x1e6),'i':_0x5c0cc1(0x1e1),'I':_0x5c0cc1(0x1ee)}[_0x42ba00[_0x5c0cc1(0x21a)](_0x5c0cc1(0x1d5))];_0x1928bf&&(_0x5296bb=_0x1928bf),_0x3d950f=!0x0;}_0x342d1e[_0x5c0cc1(0x1dd)][_0x5c0cc1(0x212)](_0x42ba00,{'styles':_0x5c0cc1(0x22a)})&&(_0x5296bb=function(_0x49dd8a){const _0x2139b5=_0x5c0cc1;switch(_0x49dd8a){case _0x2139b5(0x220):return _0x2139b5(0x211);case _0x2139b5(0x1e6):return _0x2139b5(0x1ec);default:return _0x49dd8a;}}(_0x42ba00[_0x5c0cc1(0x1f7)](_0x5c0cc1(0x22a))),_0x3d950f=!0x0),!_0x3d950f&&_0x57a47c[_0x5c0cc1(0x226)](_0x5c0cc1(0x1f3))||_0x342d1e[_0x5c0cc1(0x21f)][_0x5c0cc1(0x1fc)](_0x5c0cc1(0x1f3),_0x5296bb,_0x57a47c);}(_0x544e55,_0x4cb8e5,_0x5f3dfc,_0x5b8090));});}),_0x44febf[_0x5e9232(0x1e2)](_0x5e9232(0x224))[_0x5e9232(0x213)](_0x22859c=>{const _0x1f9f86=_0x5e9232;_0x22859c['on'](_0x1f9f86(0x1d9),(_0x2265bc,_0x5ebd32,_0x1e7597)=>{const _0xc1cffb=_0x1f9f86;if(!_0x1e7597[_0xc1cffb(0x1dd)][_0xc1cffb(0x212)](_0x5ebd32[_0xc1cffb(0x21b)],_0x2265bc[_0xc1cffb(0x1ed)]))return;const _0x4272db=M(_0x5ebd32[_0xc1cffb(0x21b)],_0x1e7597[_0xc1cffb(0x202)]),{attributeNewValue:_0xf93db}=_0x5ebd32;null==_0xf93db||0x1===_0xf93db?_0x1e7597[_0xc1cffb(0x21f)][_0xc1cffb(0x1e0)](_0xc1cffb(0x20a),_0x4272db):_0x1e7597[_0xc1cffb(0x21f)][_0xc1cffb(0x1fc)](_0xc1cffb(0x20a),String(_0xf93db),_0x4272db);}),_0x22859c['on'](_0x1f9f86(0x229),(_0x2f3a87,_0x4784cf,_0x2a42b8)=>{const _0x81758a=_0x1f9f86;if(!_0x2a42b8[_0x81758a(0x1dd)][_0x81758a(0x212)](_0x4784cf[_0x81758a(0x21b)],_0x2f3a87[_0x81758a(0x1ed)]))return;const _0x596b59=M(_0x4784cf[_0x81758a(0x21b)],_0x2a42b8[_0x81758a(0x202)]),{attributeNewValue:_0x429e38}=_0x4784cf;_0x429e38&&_0x81758a(0x1f4)!==_0x429e38?_0x2a42b8[_0x81758a(0x21f)][_0x81758a(0x1fa)](_0x81758a(0x22a),_0x429e38,_0x596b59):_0x2a42b8[_0x81758a(0x21f)][_0x81758a(0x221)](_0x81758a(0x22a),_0x596b59);});});}[_0x3f889d(0x208)](){const _0x10bfe0=_0x3f889d,{editor:_0x5bcf55}=this,{model:_0x18fef8}=_0x5bcf55,_0x18970b=_0x5bcf55[_0x10bfe0(0x1d3)][_0x10bfe0(0x1d4)](_0x4e3f7b),_0x46c4a8=this[_0x10bfe0(0x1e5)](),_0x59aa96=this[_0x10bfe0(0x1f2)]();_0x18fef8[_0x10bfe0(0x1fe)][_0x10bfe0(0x218)](_0x509402=>{const _0x4d36af=_0x10bfe0,_0x4884f6=_0x18fef8[_0x4d36af(0x1fe)][_0x4d36af(0x1db)][_0x4d36af(0x210)]();let _0x7ad8bc=!0x1;for(const _0x3a2d5e of _0x4884f6){if(_0x4d36af(0x21e)!==_0x3a2d5e[_0x4d36af(0x1d5)]||_0x4d36af(0x21c)===_0x3a2d5e[_0x4d36af(0x1ed)])continue;const _0x4b3de7=_0x18fef8[_0x4d36af(0x1e4)](_0x3a2d5e[_0x4d36af(0x204)][_0x4d36af(0x1d7)]);for(const _0x29ad49 of _0x4b3de7[_0x4d36af(0x1c9)]())_0x29ad49['is'](_0x4d36af(0x1de),_0x4d36af(0x1ca))&&(!_0x29ad49[_0x4d36af(0x226)](_0x4d36af(0x225))&&_0x18fef8[_0x4d36af(0x1d2)][_0x4d36af(0x1e7)](_0x29ad49,_0x4d36af(0x225))&&(_0x509402[_0x4d36af(0x1fc)](_0x4d36af(0x225),_0x59aa96,_0x29ad49),_0x7ad8bc=!0x0),!_0x29ad49[_0x4d36af(0x226)](_0x4d36af(0x1f3))&&_0x18fef8[_0x4d36af(0x1d2)][_0x4d36af(0x1e7)](_0x29ad49,_0x4d36af(0x1f3))&&(_0x509402[_0x4d36af(0x1fc)](_0x4d36af(0x1f3),_0x46c4a8,_0x29ad49),_0x7ad8bc=!0x0));}return _0x7ad8bc&&_0x18970b[_0x4d36af(0x1f1)](_0x509402),_0x7ad8bc;});}[_0x3f889d(0x1c7)](){const _0x61742c=_0x3f889d,{editor:_0x4306e0}=this;_0x4306e0[_0x61742c(0x1d3)][_0x61742c(0x1d4)](_0x4e3f7b)[_0x61742c(0x1cc)](_0x16f2bc=>this[_0x61742c(0x1f9)](_0x16f2bc));}[_0x3f889d(0x1e5)](){const _0x10c3c0=_0x3f889d;return this[_0x10c3c0(0x1cf)][_0x10c3c0(0x1d1)][_0x10c3c0(0x1d4)](_0x10c3c0(0x217));}[_0x3f889d(0x1f2)](){const _0x50c201=_0x3f889d;return this[_0x50c201(0x1cf)][_0x50c201(0x1d1)][_0x50c201(0x1d4)](_0x50c201(0x228));}[_0x3f889d(0x1f9)]({container:_0x3b8d72,value:_0x173328,digits:_0x26997e}){const _0x6a621c=_0x3f889d,_0x16c500=_0x3b8d72[_0x6a621c(0x21a)](_0x6a621c(0x1f3)),_0x1445ea=_0x3b8d72[_0x6a621c(0x21a)](_0x6a621c(0x225)),_0x4cf700=Math[_0x6a621c(0x1f5)](_0x173328)+(_0x1445ea??0x1)-0x1;switch(_0x16c500){case _0x6a621c(0x1dc):return function(_0x11d1ab,_0x12b09e){const _0x230dc7=_0x6a621c;return String(_0x11d1ab)[_0x230dc7(0x209)](_0x12b09e,'0');}(_0x4cf700,Math[_0x6a621c(0x1fb)](0x2,_0x26997e));case _0x6a621c(0x220):case _0x6a621c(0x211):return N(_0x4cf700,!0x1);case _0x6a621c(0x1e6):case _0x6a621c(0x1ec):return N(_0x4cf700,!0x0);case _0x6a621c(0x1e1):return X(_0x4cf700,!0x1);case _0x6a621c(0x1ee):return X(_0x4cf700,!0x0);default:return String(_0x4cf700);}}}function M(_0x4c5c77,_0x5de239){const _0x181ab4=_0x3f889d,_0x42dedd=_0x5de239[_0x181ab4(0x1df)](_0x4c5c77);return Array[_0x181ab4(0x20f)](_0x42dedd[_0x181ab4(0x219)]())[_0x181ab4(0x207)](_0x593881=>_0x593881['is'](_0x181ab4(0x1de),'ol')&&_0x593881[_0x181ab4(0x22b)](_0x181ab4(0x1c8)));}function N(_0x39260d,_0x552f1b){const _0x56cb92=_0x3f889d;let _0x1828cd='',_0x15ec33=_0x39260d;for(;_0x15ec33>0x0;){const _0x3d181a=(_0x15ec33-0x1)%0x1a;_0x1828cd=String[_0x56cb92(0x215)](0x61+_0x3d181a)+_0x1828cd,_0x15ec33=Math[_0x56cb92(0x1f5)]((_0x15ec33-0x1)/0x1a);}return _0x552f1b?_0x1828cd[_0x56cb92(0x1ef)]():_0x1828cd;}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(_0x2e46bb,_0x7eb873){const _0x134003=_0x3f889d;let _0x1c56a6='',_0x5d389e=_0x2e46bb;for(const {value:_0x4c869f,numeral:_0x4b4b72}of V)for(;_0x5d389e>=_0x4c869f;)_0x1c56a6+=_0x4b4b72,_0x5d389e-=_0x4c869f;return _0x7eb873?_0x1c56a6:_0x1c56a6[_0x134003(0x203)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x2dac1f,ButtonView as _0x50f0dd,ContextualBalloon as _0x5884a3,createDropdown as _0x15ad9e}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x2c0209}from'ckeditor5/src/widget.js';import{Plugin as _0x40290e}from'ckeditor5/src/core.js';import{IconFootnote as _0x489cd4,IconListStyleDecimal as _0x198fa8,IconListStyleDecimalLeadingZero as _0x3d5e9d,IconListStyleLowerLatin as _0x5f5110,IconListStyleLowerRoman as _0x3178b8,IconListStyleUpperLatin as _0x164dc8,IconListStyleUpperRoman as _0x326a65}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4925df}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x56b7bd}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x40290e{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5884a3,_0x2c0209];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2634e5}=this,{componentFactory:_0x394a56}=_0x2634e5['ui'];_0x2634e5['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x394a56['add']('footnotesStyle',function(_0x2af322){return _0x28530a=>{const {t:t}=_0x28530a,_0x1d4bb5=_0x2af322['commands']['get']('footnotesStyle'),_0x2a1bef=_0x15ad9e(_0x28530a),{buttonView:_0x206b5a}=_0x2a1bef;return _0x2a1bef['class']='ck-footnotes-styles-dropdown',_0x2a1bef['bind']('isEnabled')['to'](_0x1d4bb5,'isEnabled'),_0x206b5a['set']({'label':t('Footnotes\x20style'),'icon':_0x489cd4,'tooltip':!0x0}),_0x2a1bef['once']('change:isOpen',()=>{const _0x3d2119=function({editor:_0x1ba376,dropdownView:_0xdbb7bc}){const {t:t}=_0x1ba376['locale'],_0x36f47e=t('Footnotes\x20definitions\x20styles'),_0xc3d19=function(_0x34c5e9){const t=_0x34c5e9['locale']['t'],_0x3ba83d=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x198fa8},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3d5e9d},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3178b8},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x326a65},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5f5110},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x164dc8}];return _0x3ba83d['map'](function(_0x35822f){const _0x33718c=_0x35822f['locale'];return({label:_0x257627,icon:_0x5c616b,tooltip:_0x4f9fc8,style:_0x22f041})=>{const _0x557055=_0x35822f['commands']['get']('footnotesStyle'),_0x5407ae=new _0x50f0dd(_0x33718c);return _0x5407ae['set']({'label':_0x257627,'icon':_0x5c616b,'tooltip':_0x4f9fc8}),_0x5407ae['bind']('isOn')['to'](_0x557055,'value',_0x251079=>_0x251079===_0x22f041),_0x5407ae['bind']('isEnabled')['to'](_0x557055,'isEnabled'),_0x5407ae['on']('execute',()=>{_0x35822f['execute']('footnotesStyle',{'value':_0x22f041}),_0x35822f['editing']['view']['focus']();}),_0x5407ae;};}(_0x34c5e9));}(_0x1ba376),_0x45ffb0=new _0x4925df(_0x1ba376['locale'],{'styleGridAriaLabel':_0x36f47e,'styleButtonViews':_0xc3d19}),_0x17a0cb=_0x1ba376['commands']['get']('footnotesStart');return _0x45ffb0['startIndexFieldView']['bind']('isEnabled')['to'](_0x17a0cb),_0x45ffb0['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x17a0cb),_0x45ffb0['on']('footnotesListStart',(_0x3ed577,_0xd2f960)=>{_0x1ba376['execute']('footnotesStart',{'value':_0xd2f960['startIndex']});}),_0x45ffb0['delegate']('execute')['to'](_0xdbb7bc),_0x45ffb0;}({'editor':_0x2af322,'dropdownView':_0x2a1bef});_0x2a1bef['panelView']['children']['add'](_0x3d2119);}),_0x2a1bef;};}(_0x2634e5));}['afterInit'](){const {editor:_0x4837d9}=this,{t:t}=_0x4837d9['locale'],_0x190ea0=_0x4837d9['plugins']['get'](_0x2c0209),{defaultPositions:_0x65b757}=_0x2dac1f;_0x190ea0['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4837d9['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x46aa62=>{let _0x15e230=_0x46aa62['getFirstPosition']()?.['parent'];return _0x15e230?.['is']('$text')&&(_0x15e230=_0x15e230['parent']),_0x15e230?.['is']('element')?_0x15e230['findAncestor'](_0x56b7bd):null;},'positions':[_0x65b757['southArrowNorth'],_0x65b757['southArrowNorthMiddleWest'],_0x65b757['southArrowNorthMiddleEast'],_0x65b757['southArrowNorthWest'],_0x65b757['southArrowNorthEast'],_0x65b757['northArrowSouth'],_0x65b757['northArrowSouthMiddleWest'],_0x65b757['northArrowSouthMiddleEast'],_0x65b757['northArrowSouthWest'],_0x65b757['northArrowSouthEast'],_0x65b757['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x379304,View as _0x29bb76,ViewCollection as _0x3f4256,FocusCycler as _0x7bd017,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x29bb76{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x3f4256();['focusCycler'];constructor(_0x58813c,{styleButtonViews:_0x43cca8,styleGridAriaLabel:_0x37c9bb}){super(_0x58813c),(this['focusCycler']=new _0x7bd017({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x43cca8,_0x37c9bb),[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 _0x4a1ccf of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4a1ccf['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x5035f5=_0x47759f=>_0x47759f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5035f5),this['keystrokes']['set']('arrowleft',_0x5035f5),this['keystrokes']['set']('arrowup',_0x5035f5),this['keystrokes']['set']('arrowdown',_0x5035f5);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1571a1,_0x15061f){const _0x2f54cc=new _0x29bb76(this['locale']);return _0x2f54cc['children']=_0x2f54cc['createCollection'](),_0x2f54cc['children']['addMany'](_0x1571a1),_0x2f54cc['setTemplate']({'tag':'div','attributes':{'aria-label':_0x15061f,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2f54cc['children']}),_0x2f54cc['children']['delegate']('execute')['to'](this),_0x2f54cc['focus']=function(){for(const _0x146fbe of this['children'])if(_0x146fbe instanceof _0x379304&&_0x146fbe['isOn'])return void _0x146fbe['focus']();this['children']['first']['focus']();},_0x2f54cc['focusTracker']=new ot(),_0x2f54cc['keystrokes']=new rt(),_0x2f54cc['render'](),_0x2f54cc['keystrokes']['listenTo'](_0x2f54cc['element']),this['children']['add'](_0x2f54cc),_0x2f54cc;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x17ed15=this['_createStartIndexPropertyView'](),_0x12e0f0=[_0x17ed15],_0x46a5b7=new st(this['locale'],_0x12e0f0);return _0x46a5b7['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x46a5b7['buttonView']['bind']('isEnabled')['toMany'](_0x12e0f0,'isEnabled',(..._0x17579e)=>_0x17579e['some'](_0x27be3b=>_0x27be3b)),_0x46a5b7['buttonView']['on']('change:isEnabled',(_0x498296,_0x3a6b17,_0x1dbb80)=>{_0x1dbb80||(_0x46a5b7['isCollapsed']=!0x0);}),this['children']['add'](_0x46a5b7),[_0x17ed15,_0x46a5b7];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x12c5f1=new it(this['locale'],et);return _0x12c5f1['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x12c5f1['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x12c5f1['fieldView']['on']('input',()=>{const _0x2ae92f=_0x12c5f1['fieldView']['element'],_0x397be7=_0x2ae92f['valueAsNumber'];Number['isNaN'](_0x397be7)?_0x12c5f1['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2ae92f['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x397be7}):_0x12c5f1['errorText']=t(_0x397be7<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x12c5f1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3d8633=_0x33f2;(function(_0x3f838d,_0x572099){var _0x1baab4=_0x33f2,_0x1dd7be=_0x3f838d();while(!![]){try{var _0x5b8475=parseInt(_0x1baab4(0x16f))/0x1*(-parseInt(_0x1baab4(0x162))/0x2)+-parseInt(_0x1baab4(0x165))/0x3+parseInt(_0x1baab4(0x166))/0x4*(-parseInt(_0x1baab4(0x169))/0x5)+-parseInt(_0x1baab4(0x16e))/0x6*(parseInt(_0x1baab4(0x168))/0x7)+-parseInt(_0x1baab4(0x161))/0x8*(-parseInt(_0x1baab4(0x163))/0x9)+parseInt(_0x1baab4(0x16a))/0xa+-parseInt(_0x1baab4(0x167))/0xb*(-parseInt(_0x1baab4(0x164))/0xc);if(_0x5b8475===_0x572099)break;else _0x1dd7be['push'](_0x1dd7be['shift']());}catch(_0x3fa748){_0x1dd7be['push'](_0x1dd7be['shift']());}}}(_0x15d5,0x9e56c));import{Plugin as _0x2a9a2e}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x4f71ca}from'./footnotesproperties/footnotespropertiesediting.js';function _0x33f2(_0x989412,_0x526d82){var _0x15d534=_0x15d5();return _0x33f2=function(_0x33f26e,_0x1d0509){_0x33f26e=_0x33f26e-0x161;var _0x2c8470=_0x15d534[_0x33f26e];return _0x2c8470;},_0x33f2(_0x989412,_0x526d82);}import{FootnotesPropertiesUI as _0x3b9803}from'./footnotesproperties/footnotespropertiesui.js';function _0x15d5(){var _0x1a72f6=['1214808wubNkU','808836KGhEjt','88tmUzQC','132ccoSiL','679wwMiMP','229305hekqRh','11895860NqioFL','isPremiumPlugin','pluginName','FootnotesProperties','33912RzgHGp','279568axctqp','requires','isOfficialPlugin','3472GGNflf','6giZZtt','18864ffwwRC'];_0x15d5=function(){return _0x1a72f6;};return _0x15d5();}export class FootnotesProperties extends _0x2a9a2e{static get[_0x3d8633(0x16c)](){var _0x3e17bf=_0x3d8633;return _0x3e17bf(0x16d);}static get[_0x3d8633(0x170)](){return[_0x4f71ca,_0x3b9803];}static get[_0x3d8633(0x171)](){return!0x0;}static get[_0x3d8633(0x16b)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x277706=_0x3eee;(function(_0x142e9f,_0x291c42){const _0x1b2bad=_0x3eee,_0x300b57=_0x142e9f();while(!![]){try{const _0x2106fa=parseInt(_0x1b2bad(0x92))/0x1+parseInt(_0x1b2bad(0xda))/0x2+parseInt(_0x1b2bad(0xa1))/0x3+parseInt(_0x1b2bad(0xed))/0x4*(parseInt(_0x1b2bad(0xaf))/0x5)+parseInt(_0x1b2bad(0xc3))/0x6*(parseInt(_0x1b2bad(0xd0))/0x7)+parseInt(_0x1b2bad(0xa9))/0x8+parseInt(_0x1b2bad(0x8d))/0x9*(-parseInt(_0x1b2bad(0xe1))/0xa);if(_0x2106fa===_0x291c42)break;else _0x300b57['push'](_0x300b57['shift']());}catch(_0x46feb1){_0x300b57['push'](_0x300b57['shift']());}}}(_0x3518,0xbcbad));function _0x3eee(_0x2f5bdf,_0x26faf0){const _0x3518c4=_0x3518();return _0x3eee=function(_0x3eee0d,_0x24cd15){_0x3eee0d=_0x3eee0d-0x8d;let _0x480144=_0x3518c4[_0x3eee0d];return _0x480144;},_0x3eee(_0x2f5bdf,_0x26faf0);}import{Plugin as _0x34d622}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x1f0c44}from'./modelelementtracker.js';export class FootnotesTracker extends _0x34d622{[_0x277706(0xaa)]=[];[_0x277706(0x90)]=null;[_0x277706(0xec)]=null;[_0x277706(0xee)];[_0x277706(0xde)];[_0x277706(0xf1)];static get[_0x277706(0xd5)](){const _0x58abee=_0x277706;return _0x58abee(0xdf);}static get[_0x277706(0xb8)](){return!0x0;}static get[_0x277706(0xcd)](){return!0x0;}constructor(_0x328a63){const _0x114291=_0x277706;super(_0x328a63),this[_0x114291(0xee)]=new _0x1f0c44(this[_0x114291(0x8e)][_0x114291(0xb2)],{'elementName':_0x114291(0xa4),'getElementKey':()=>_0x114291(0xa8)}),this[_0x114291(0xde)]=new _0x1f0c44(this[_0x114291(0x8e)][_0x114291(0xb2)],{'elementName':_0x114291(0xcf),'getElementKey':_0x47c89a=>_0x47c89a[_0x114291(0xe5)](_0x114291(0xe4))}),this[_0x114291(0xf1)]=new _0x1f0c44(this[_0x114291(0x8e)][_0x114291(0xb2)],{'elementName':_0x114291(0xc9),'getElementKey':_0x4d2baf=>_0x4d2baf[_0x114291(0xe5)](_0x114291(0xe4))});}[_0x277706(0xc1)](){const _0x2d89f5=_0x277706,{editor:_0x249ca4}=this,{model:_0x4b6cba,data:_0x14ca05}=_0x249ca4;_0x4b6cba[_0x2d89f5(0xd9)][_0x2d89f5(0xa2)](_0x333943=>{const _0xb8357d=_0x2d89f5,_0xc0eb2a=_0x4b6cba[_0xb8357d(0xd9)][_0xb8357d(0x9d)][_0xb8357d(0xb7)]();let _0x311ebb=!0x1;return this[_0xb8357d(0x8f)](_0x333943,_0xc0eb2a)&&(_0x311ebb=!0x0),this[_0xb8357d(0x9a)](_0x333943,_0xc0eb2a)&&(_0x311ebb=!0x0),this[_0xb8357d(0xe3)](_0x333943,_0xc0eb2a)&&(_0x311ebb=!0x0),this[_0xb8357d(0xd4)](_0x333943)&&(_0x311ebb=!0x0),this[_0xb8357d(0xba)](_0x333943)&&(_0x311ebb=!0x0),this[_0xb8357d(0x9b)](_0x333943)&&(_0x311ebb=!0x0),_0x311ebb;}),this[_0x2d89f5(0x97)](_0x4b6cba[_0x2d89f5(0xd9)],_0x2d89f5(0xc2),()=>{const _0x1ca9e4=_0x2d89f5;_0x4b6cba[_0x1ca9e4(0xef)]({'isUndoable':!0x1},_0x5769b7=>{const _0x498d1f=_0x1ca9e4;this[_0x498d1f(0xa7)](_0x5769b7);});},{'priority':_0x2d89f5(0xa5)}),this[_0x2d89f5(0x97)](_0x14ca05,_0x2d89f5(0xbc),()=>{const _0x1ceea3=_0x2d89f5;this[_0x1ceea3(0xaa)]=[],this[_0x1ceea3(0xee)][_0x1ceea3(0x91)](),this[_0x1ceea3(0xde)][_0x1ceea3(0x91)](),this[_0x1ceea3(0xf1)][_0x1ceea3(0x91)]();},{'priority':_0x2d89f5(0xa0)});}[_0x277706(0xca)](){const _0x13b379=_0x277706;return this[_0x13b379(0x90)];}[_0x277706(0x9f)](_0x5445cb){const _0x544f32=_0x277706;return this[_0x544f32(0xaa)][_0x544f32(0xd6)](_0x20064e=>_0x20064e['id']===_0x5445cb)||null;}[_0x277706(0xb9)](){const _0x494d60=_0x277706;return Array[_0x494d60(0x96)](this[_0x494d60(0xaa)]);}[_0x277706(0xe0)](){const _0x59450e=_0x277706;return this[_0x59450e(0xec)];}[_0x277706(0xbf)](_0x13f38e){const _0x104769=_0x277706;this[_0x104769(0xec)]=_0x13f38e;}[_0x277706(0xc5)](_0x52816b,_0x5e1086=0x0){const _0x22a6fb=_0x277706;let _0x50cf17=!0x1;for(let _0x2748e0=_0x5e1086;_0x2748e0<this[_0x22a6fb(0xaa)][_0x22a6fb(0xdd)];_0x2748e0++)this[_0x22a6fb(0xc0)](_0x52816b,_0x2748e0)&&(_0x50cf17=!0x0);return _0x50cf17;}[_0x277706(0xad)](_0x1ab7a2,_0xcf401a){const _0x4bbe41=_0x277706,_0x98165a=_0x1ab7a2[_0x4bbe41(0xd8)](_0x4bbe41(0xa4),{});return _0x1ab7a2[_0x4bbe41(0xb4)](_0x98165a,_0xcf401a),this[_0x4bbe41(0x90)]=_0x98165a,_0x98165a;}[_0x277706(0xa7)](_0x5a2cc2){const _0x4da298=_0x277706;if(!this[_0x4da298(0xaa)][_0x4da298(0xdd)]||this[_0x4da298(0x90)])return;const _0x23f8f1=this[_0x4da298(0xaa)][0x0][_0x4da298(0xc6)][_0x4da298(0x93)],_0x49de5b=this[_0x4da298(0xad)](_0x5a2cc2,_0x23f8f1);for(const _0x2218cb of this[_0x4da298(0xaa)])_0x2218cb[_0x4da298(0xc4)][_0x4da298(0x9e)]||_0x5a2cc2[_0x4da298(0xf0)](_0x2218cb[_0x4da298(0xc4)],_0x49de5b,_0x4da298(0xd2));this[_0x4da298(0xc5)](_0x5a2cc2);}[_0x277706(0x8f)](_0x30fd92,_0x3a27ac){const _0x88c458=_0x277706;let _0x1d98de=!0x1;const {inserted:_0x3b28b5,removed:_0x58da8d,moved:_0x594270}=this[_0x88c458(0xee)][_0x88c458(0xb7)](_0x3a27ac);if(_0x594270[_0x88c458(0xdd)]&&(this[_0x88c458(0x90)]=_0x594270[0x0]),_0x3b28b5[_0x88c458(0xdd)]){if(_0x3b28b5[_0x88c458(0xdd)]>0x1||this[_0x88c458(0x90)]&&_0x3b28b5[_0x88c458(0xae)](_0x50db22=>_0x50db22!==this[_0x88c458(0x90)])){const _0x28f2c8=_0x30fd92[_0x88c458(0xd8)](_0x88c458(0xa4),{}),_0x58e06b=[];this[_0x88c458(0x90)]&&_0x58e06b[_0x88c458(0xc7)](this[_0x88c458(0x90)]),_0x58e06b[_0x88c458(0xc7)](..._0x3b28b5),_0x30fd92[_0x88c458(0xf0)](_0x28f2c8,_0x58e06b[0x0],_0x88c458(0xcc));for(const _0x1b3c91 of _0x58e06b)_0x30fd92[_0x88c458(0xe9)](_0x30fd92[_0x88c458(0xdc)](_0x1b3c91),_0x30fd92[_0x88c458(0xe8)](_0x28f2c8,_0x88c458(0xd2))),_0x30fd92[_0x88c458(0xea)](_0x1b3c91);this[_0x88c458(0x90)]=_0x28f2c8,this[_0x88c458(0xc5)](_0x30fd92),_0x1d98de=!0x0;}else this[_0x88c458(0x90)]=_0x3b28b5[0x0];}if(_0x58da8d[_0x88c458(0xdd)]&&_0x88c458(0xce)===this[_0x88c458(0x90)]?.[_0x88c458(0x93)][_0x88c458(0xe7)]){for(const _0x31877d of this[_0x88c458(0xaa)])_0x30fd92[_0x88c458(0xea)](_0x31877d[_0x88c458(0xc6)]),_0x1d98de=!0x0;this[_0x88c458(0xaa)]=[],this[_0x88c458(0x90)]=null;}return _0x1d98de;}[_0x277706(0x9a)](_0x4624c3,_0x418580){const _0x507024=_0x277706;let _0x28f231=!0x1;const _0xd5c03d=this[_0x507024(0x8e)][_0x507024(0x99)][_0x507024(0x94)](_0x507024(0xab)),{inserted:_0x1a407e,moved:_0x3d4c40}=this[_0x507024(0xf1)][_0x507024(0xb7)](_0x418580);for(const _0x2306f1 of[..._0x3d4c40,..._0x1a407e]){const _0x4dd55d=_0x2306f1[_0x507024(0xe5)](_0x507024(0xe4)),_0x21236a=this[_0x507024(0x9f)](_0x4dd55d);_0x21236a&&(_0x21236a[_0x507024(0xc4)]=_0x2306f1),_(_0x4624c3,_0xd5c03d,_0x2306f1)&&(_0x28f231=!0x0);}return _0x28f231;}[_0x277706(0xe3)](_0x1827d6,_0x37db18){const _0x32ffef=_0x277706;let _0x57c0a0=!0x1;const {removed:_0x25589c,inserted:_0x3451af,moved:_0x56a497}=this[_0x32ffef(0xde)][_0x32ffef(0xb7)](_0x37db18);for(const _0x28ed74 of _0x25589c)this[_0x32ffef(0xd3)](_0x1827d6,_0x28ed74)&&(_0x57c0a0=!0x0);for(const _0x416267 of _0x3451af)this[_0x32ffef(0xd1)](_0x1827d6,_0x416267)&&(_0x57c0a0=!0x0);for(const _0x12e46a of _0x56a497)this[_0x32ffef(0xac)](_0x1827d6,_0x12e46a)&&(_0x57c0a0=!0x0);return _0x57c0a0;}[_0x277706(0xba)](_0x43e845){const _0x42689b=_0x277706;if(!this[_0x42689b(0x90)])return!0x1;let _0x1abc00=!0x1;if(this[_0x42689b(0x90)][_0x42689b(0xcb)]!==this[_0x42689b(0xaa)][_0x42689b(0xdd)]){const _0x28c9b9=[];for(const _0x249fa4 of this[_0x42689b(0x90)][_0x42689b(0xa6)]()){const _0x544e03=_0x249fa4[_0x42689b(0xe5)](_0x42689b(0xe4));this[_0x42689b(0x9f)](_0x544e03)||(_0x28c9b9[_0x42689b(0xe6)](_0x249fa4),_0x1abc00=!0x0);}for(const _0x8da737 of _0x28c9b9)_0x43e845[_0x42689b(0xea)](_0x8da737);}const _0x4287e5=new Set(),_0x3cbbd1=[];for(const _0x148896 of this[_0x42689b(0x90)][_0x42689b(0xa6)]()){const _0x3cf7b5=_0x148896[_0x42689b(0xe5)](_0x42689b(0xe4));_0x4287e5[_0x42689b(0x98)](_0x3cf7b5)?(_0x3cbbd1[_0x42689b(0xe6)](_0x148896),_0x1abc00=!0x0):_0x4287e5[_0x42689b(0xb1)](_0x3cf7b5);}for(const _0x3559e3 of _0x3cbbd1)_0x43e845[_0x42689b(0xea)](_0x3559e3);return this[_0x42689b(0x90)][_0x42689b(0xcb)]||(_0x43e845[_0x42689b(0xea)](this[_0x42689b(0x90)]),this[_0x42689b(0x90)]=null,_0x1abc00=!0x0),_0x1abc00;}[_0x277706(0xd1)](_0x32a9a2,_0x2df8fe){const _0x1d59a7=_0x277706;if(this[_0x1d59a7(0xaa)][_0x1d59a7(0xd6)](_0x1bc838=>_0x1bc838[_0x1d59a7(0xc6)]===_0x2df8fe))return!0x1;let _0x42c86f=!0x1;const _0x349592=_0x2df8fe[_0x1d59a7(0xe5)](_0x1d59a7(0xe4)),_0x57d7e4=this[_0x1d59a7(0xaa)][_0x1d59a7(0x9c)](_0x2c4552=>_0x2c4552['id']===_0x349592);-0x1!==_0x57d7e4&&(_0x32a9a2[_0x1d59a7(0xea)](this[_0x1d59a7(0xaa)][_0x57d7e4][_0x1d59a7(0xc6)]),this[_0x1d59a7(0xaa)][_0x1d59a7(0xd7)](_0x57d7e4,0x1),_0x42c86f=!0x0);let _0x56b19a=this[_0x1d59a7(0x90)]?function(_0x70ccd6,_0x5b8ad7){const _0x1c0673=_0x1d59a7;for(const _0x398152 of _0x70ccd6[_0x1c0673(0xa6)]())if(_0x398152[_0x1c0673(0xe5)](_0x1c0673(0xe4))===_0x5b8ad7)return _0x398152;return null;}(this[_0x1d59a7(0x90)],_0x349592):null;_0x56b19a||(_0x56b19a=_0x32a9a2[_0x1d59a7(0xd8)](_0x1d59a7(0xc9),{'footnoteId':_0x349592}),this[_0x1d59a7(0x90)]&&(_0x32a9a2[_0x1d59a7(0xf0)](_0x56b19a,this[_0x1d59a7(0x90)],_0x1d59a7(0xd2)),_0x42c86f=!0x0));const _0x526b7b={'id':_0x349592,'reference':_0x2df8fe,'definition':_0x56b19a},_0x5502b4=I(this[_0x1d59a7(0x8e)][_0x1d59a7(0xb2)],this[_0x1d59a7(0xaa)],_0x2df8fe);this[_0x1d59a7(0xaa)][_0x1d59a7(0xd7)](_0x5502b4,0x0,_0x526b7b);let _0x493b2b=_0x5502b4;return-0x1!==_0x57d7e4&&(_0x493b2b=Math[_0x1d59a7(0xb3)](_0x5502b4,_0x57d7e4)),this[_0x1d59a7(0xc5)](_0x32a9a2,_0x493b2b)&&(_0x42c86f=!0x0),_0x42c86f;}[_0x277706(0xd3)](_0x41b590,_0x6b4d5a){const _0x7926b3=_0x277706,_0x22718b=this[_0x7926b3(0xaa)][_0x7926b3(0x9c)](_0x3f71c6=>_0x3f71c6['id']===_0x6b4d5a);if(-0x1===_0x22718b)return!0x1;let _0x5b88ef=!0x1;const _0x12e807=this[_0x7926b3(0xaa)][_0x22718b];return _0x7926b3(0xce)!==_0x12e807[_0x7926b3(0xc4)][_0x7926b3(0x93)][_0x7926b3(0xe7)]&&(_0x41b590[_0x7926b3(0xea)](_0x12e807[_0x7926b3(0xc4)]),_0x5b88ef=!0x0),this[_0x7926b3(0xaa)][_0x7926b3(0xd7)](_0x22718b,0x1),this[_0x7926b3(0xc5)](_0x41b590,_0x22718b)&&(_0x5b88ef=!0x0),_0x5b88ef;}[_0x277706(0xac)](_0x4b65f6,_0x1e3c2c){const _0x5005ed=_0x277706,_0x2d5d3d=_0x1e3c2c[_0x5005ed(0xe5)](_0x5005ed(0xe4)),_0x5c1a21=this[_0x5005ed(0xaa)][_0x5005ed(0x9c)](_0x1898ff=>_0x1898ff['id']===_0x2d5d3d),_0x5823b6=this[_0x5005ed(0xaa)][_0x5c1a21];let _0x3ec620=!0x1;_0x5823b6[_0x5005ed(0xc6)]=_0x1e3c2c,this[_0x5005ed(0xaa)][_0x5005ed(0xd7)](_0x5c1a21,0x1);const _0x158b8a=I(this[_0x5005ed(0x8e)][_0x5005ed(0xb2)],this[_0x5005ed(0xaa)],_0x1e3c2c);return this[_0x5005ed(0xaa)][_0x5005ed(0xd7)](_0x158b8a,0x0,_0x5823b6),this[_0x5005ed(0xc5)](_0x4b65f6,Math[_0x5005ed(0xb3)](_0x5c1a21,_0x158b8a))&&(_0x3ec620=!0x0),_0x3ec620;}[_0x277706(0xc0)](_0x1843d7,_0x3e04e7){const _0x37d277=_0x277706;if(!this[_0x37d277(0x90)])return!0x1;const _0x451fd2=this[_0x37d277(0xaa)][_0x3e04e7];let _0x429509;return _0x429509=this[_0x37d277(0xec)]?this[_0x37d277(0xec)]({'footnote':_0x451fd2,'container':this[_0x37d277(0x90)],'digits':String(this[_0x37d277(0xaa)][_0x37d277(0xdd)])[_0x37d277(0xdd)],'value':_0x3e04e7+0x1}):String(_0x3e04e7+0x1),_0x451fd2[_0x37d277(0xc6)][_0x37d277(0xe5)](_0x37d277(0xb5))!=_0x429509&&(_0x1843d7[_0x37d277(0xc8)](_0x37d277(0xb5),_0x429509,_0x451fd2[_0x37d277(0xc6)]),!0x0);}[_0x277706(0x9b)](_0x149b23){const _0x427afd=_0x277706;if(!this[_0x427afd(0x90)]||this[_0x427afd(0xaa)][_0x427afd(0xdd)]<0x2)return!0x1;if(function(_0x2bc7fc,_0x328dae){const _0x21ecee=_0x427afd;if(_0x2bc7fc[_0x21ecee(0xdd)]!==_0x328dae[_0x21ecee(0xdd)])return!0x1;for(let _0x30273a=0x0;_0x30273a<_0x2bc7fc[_0x21ecee(0xdd)];_0x30273a++)if(_0x2bc7fc[_0x30273a]!==_0x328dae[_0x30273a])return!0x1;return!0x0;}(this[_0x427afd(0xaa)][_0x427afd(0xdb)](_0x1b205f=>_0x1b205f['id']),Array[_0x427afd(0x96)](this[_0x427afd(0x90)][_0x427afd(0xa6)]())[_0x427afd(0xdb)](_0x1aecc7=>_0x1aecc7[_0x427afd(0xe5)](_0x427afd(0xe4)))))return!0x1;let _0x4207f6=!0x1;for(let _0x1d42f7=0x0;_0x1d42f7<this[_0x427afd(0xaa)][_0x427afd(0xdd)];_0x1d42f7++){const _0x4dbb4d=this[_0x427afd(0xaa)][_0x1d42f7],_0x8fe23c=_0x149b23[_0x427afd(0xbe)](_0x4dbb4d[_0x427afd(0xc4)]),_0x52d9f9=_0x149b23[_0x427afd(0xe8)](this[_0x427afd(0x90)],_0x1d42f7);_0x8fe23c[_0x427afd(0xb0)](_0x52d9f9)||(_0x149b23[_0x427afd(0xe9)](_0x149b23[_0x427afd(0xeb)](_0x4dbb4d[_0x427afd(0xc4)]),_0x52d9f9),_0x4207f6=!0x0);}return _0x4207f6;}[_0x277706(0xd4)](_0x48362d){const _0x1f1ab7=_0x277706;if(!this[_0x1f1ab7(0xaa)][_0x1f1ab7(0xdd)])return!0x1;const {model:_0x9a3cc0}=this[_0x1f1ab7(0x8e)];let _0x47736d=!0x1;for(let _0x1996b5=0x0;_0x1996b5<this[_0x1f1ab7(0xaa)][_0x1f1ab7(0xdd)]-0x1;_0x1996b5++){const _0x3fa1b2=this[_0x1f1ab7(0xaa)][_0x1996b5],_0x4905e6=this[_0x1f1ab7(0xaa)][_0x1996b5+0x1],_0x5314bc=_0x9a3cc0[_0x1f1ab7(0xbe)](_0x3fa1b2[_0x1f1ab7(0xc6)]),_0x5b21bc=_0x9a3cc0[_0x1f1ab7(0xbe)](_0x4905e6[_0x1f1ab7(0xc6)]);_0x1f1ab7(0xa3)===_0x5314bc[_0x1f1ab7(0xb6)](_0x5b21bc)&&(this[_0x1f1ab7(0xac)](_0x48362d,_0x3fa1b2[_0x1f1ab7(0xc6)]),_0x1996b5=-0x1,_0x47736d=!0x0);}return _0x47736d;}}function _(_0x5822f5,_0x41c8ef,_0x267932){const _0x47b2cc=_0x277706;if(_0x267932[_0x47b2cc(0xcb)])return!0x1;const _0x383986=_0x41c8ef?_0x47b2cc(0xe2):_0x47b2cc(0x95);return _0x5822f5[_0x47b2cc(0xf0)](_0x5822f5[_0x47b2cc(0xd8)](_0x383986),_0x267932),!0x0;}function _0x3518(){const _0x528921=['650856mDGCEl','registerPostFixer','after','footnotesDefinitions','low','getChildren','_ensureFootnotesDefinitionsContainerExists','singleton','9121208mxCaDM','_footnotes','footnotes.multiBlock','_handleMovedFootnoteReference','_insertEmptyFootnotesDefinitionsContainer','some','10rMoZDv','isEqual','add','model','min','append','footnoteCounter','compareWith','getChanges','isOfficialPlugin','getFootnotes','_handleFootnotesDefinitionsObjectSync','indexOf','set','getRootNames','createPositionBefore','setFootnoteFormatter','_updateFootnoteRefCounter','init','change:data','6yBzRab','definition','_updateFootnotesCounters','reference','push','setAttribute','footnoteDefinition','getFootnotesDefinitionsObjectElement','childCount','before','isPremiumPlugin','$graveyard','footnoteRef','5950378whGruC','_handleInsertedFootnoteReference','end','_handleRemoveFootnoteReferenceById','_ensureFootnotesReferencesHaveProperOrder','pluginName','find','splice','createElement','document','1061894ykixOq','map','createRangeIn','length','_footnoteRefsTracker','FootnotesTracker','getFootnotesFormatter','10rLBUlL','paragraph','_handleFootnoteReferencesChanges','footnoteId','getAttribute','unshift','rootName','createPositionAt','move','remove','createRangeOn','_footnoteFormatter','1111416qHEmCG','_footnoteDefsContainerTracker','enqueueChange','insert','_footnoteDefsTracker','36190701jtNJQe','editor','_handleFootnotesDefinitionsObjectChanges','_footnotesDefinitions','reset','1500414mORFXD','root','get','footnoteInlineContent','from','listenTo','has','config','_handleFootnoteDefinitionsChanges','_sortFootnoteDefinitions','findIndex','differ','parent','getFootnote','high'];_0x3518=function(){return _0x528921;};return _0x3518();}function I(_0x494bac,_0x83a430,_0x3efc76){const _0x5a4ba6=_0x277706;if(0x0===_0x83a430[_0x5a4ba6(0xdd)])return 0x0;const _0x5d78d7=_0x494bac[_0x5a4ba6(0xbe)](_0x3efc76);for(let _0x40d9a2=0x0;_0x40d9a2<_0x83a430[_0x5a4ba6(0xdd)];_0x40d9a2++){const _0x3f507e=_0x83a430[_0x40d9a2],_0x4dc503=_0x494bac[_0x5a4ba6(0xbe)](_0x3f507e[_0x5a4ba6(0xc6)]);if(_0x5a4ba6(0xcc)===_0x5d78d7[_0x5a4ba6(0xb6)](_0x4dc503))return _0x40d9a2;}const _0x4930c3=_0x3efc76[_0x5a4ba6(0x93)];let _0x5e5b03=-0x1;for(let _0x4ea6d9=_0x83a430[_0x5a4ba6(0xdd)]-0x1;_0x4ea6d9>=0x0;_0x4ea6d9--)if(_0x83a430[_0x4ea6d9][_0x5a4ba6(0xc6)][_0x5a4ba6(0x93)]===_0x4930c3){_0x5e5b03=_0x4ea6d9;break;}if(-0x1!==_0x5e5b03)return _0x5e5b03+0x1;const _0x2fa414=_0x494bac[_0x5a4ba6(0xd9)][_0x5a4ba6(0xbd)](),_0x5c81cc=_0x2fa414[_0x5a4ba6(0xbb)](_0x4930c3[_0x5a4ba6(0xe7)]),_0x49c677=_0x2fa414[_0x5c81cc+0x1];if(_0x49c677){for(let _0x3e0b20=0x0;_0x3e0b20<_0x83a430[_0x5a4ba6(0xdd)];_0x3e0b20++)if(_0x83a430[_0x3e0b20][_0x5a4ba6(0xc6)][_0x5a4ba6(0x93)][_0x5a4ba6(0xe7)]===_0x49c677)return _0x3e0b20;}return _0x83a430[_0x5a4ba6(0xdd)];}
|
|
23
|
+
const _0xdcdfb7=_0x2991;(function(_0x3ba36d,_0x4636a6){const _0x4c3418=_0x2991,_0x8fb832=_0x3ba36d();while(!![]){try{const _0x5bbbd6=-parseInt(_0x4c3418(0x15e))/0x1*(-parseInt(_0x4c3418(0x145))/0x2)+-parseInt(_0x4c3418(0x170))/0x3*(-parseInt(_0x4c3418(0x152))/0x4)+parseInt(_0x4c3418(0x199))/0x5*(-parseInt(_0x4c3418(0x18a))/0x6)+parseInt(_0x4c3418(0x149))/0x7+-parseInt(_0x4c3418(0x1a4))/0x8+parseInt(_0x4c3418(0x151))/0x9+-parseInt(_0x4c3418(0x1a2))/0xa;if(_0x5bbbd6===_0x4636a6)break;else _0x8fb832['push'](_0x8fb832['shift']());}catch(_0x272e80){_0x8fb832['push'](_0x8fb832['shift']());}}}(_0x2534,0xabb69));import{Plugin as _0x3ebace}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x4e18ce}from'./modelelementtracker.js';export class FootnotesTracker extends _0x3ebace{[_0xdcdfb7(0x162)]=[];[_0xdcdfb7(0x19c)]=null;[_0xdcdfb7(0x191)]=null;[_0xdcdfb7(0x16e)];[_0xdcdfb7(0x18d)];[_0xdcdfb7(0x142)];static get[_0xdcdfb7(0x164)](){const _0x39367b=_0xdcdfb7;return _0x39367b(0x167);}static get[_0xdcdfb7(0x16f)](){return!0x0;}static get[_0xdcdfb7(0x14b)](){return!0x0;}constructor(_0x471693){const _0x49abec=_0xdcdfb7;super(_0x471693),this[_0x49abec(0x16e)]=new _0x4e18ce(this[_0x49abec(0x19e)][_0x49abec(0x181)],{'elementName':_0x49abec(0x190),'getElementKey':()=>_0x49abec(0x155)}),this[_0x49abec(0x18d)]=new _0x4e18ce(this[_0x49abec(0x19e)][_0x49abec(0x181)],{'elementName':_0x49abec(0x16c),'getElementKey':_0x3385dc=>_0x3385dc[_0x49abec(0x193)](_0x49abec(0x166))}),this[_0x49abec(0x142)]=new _0x4e18ce(this[_0x49abec(0x19e)][_0x49abec(0x181)],{'elementName':_0x49abec(0x1a3),'getElementKey':_0x173ff7=>_0x173ff7[_0x49abec(0x193)](_0x49abec(0x166))});}[_0xdcdfb7(0x169)](){const _0x6f75e2=_0xdcdfb7,{editor:_0x14e1b1}=this,{model:_0x4950e5,data:_0x2d25a6}=_0x14e1b1;_0x4950e5[_0x6f75e2(0x14c)][_0x6f75e2(0x15b)](_0x233e9c=>{const _0xd57163=_0x6f75e2,_0xb4427a=_0x4950e5[_0xd57163(0x14c)][_0xd57163(0x184)][_0xd57163(0x180)]();let _0x42becb=!0x1;return this[_0xd57163(0x160)](_0x233e9c,_0xb4427a)&&(_0x42becb=!0x0),this[_0xd57163(0x17c)](_0x233e9c,_0xb4427a)&&(_0x42becb=!0x0),this[_0xd57163(0x183)](_0x233e9c,_0xb4427a)&&(_0x42becb=!0x0),this[_0xd57163(0x16a)](_0x233e9c)&&(_0x42becb=!0x0),this[_0xd57163(0x177)](_0x233e9c)&&(_0x42becb=!0x0),this[_0xd57163(0x197)](_0x233e9c)&&(_0x42becb=!0x0),_0x42becb;}),this[_0x6f75e2(0x1a1)](_0x4950e5[_0x6f75e2(0x14c)],_0x6f75e2(0x168),()=>{const _0x2eb12e=_0x6f75e2;_0x4950e5[_0x2eb12e(0x153)]({'isUndoable':!0x1},_0x7c5a57=>{const _0x3d2705=_0x2eb12e;this[_0x3d2705(0x186)](_0x7c5a57);});},{'priority':_0x6f75e2(0x17f)}),this[_0x6f75e2(0x1a1)](_0x2d25a6,_0x6f75e2(0x15f),()=>{const _0x5dc834=_0x6f75e2;this[_0x5dc834(0x162)]=[],this[_0x5dc834(0x16e)][_0x5dc834(0x187)](),this[_0x5dc834(0x18d)][_0x5dc834(0x187)](),this[_0x5dc834(0x142)][_0x5dc834(0x187)]();},{'priority':_0x6f75e2(0x17d)});}[_0xdcdfb7(0x157)](){const _0xf34c8f=_0xdcdfb7;return this[_0xf34c8f(0x19c)];}[_0xdcdfb7(0x179)](_0x1cce8e){const _0x522baf=_0xdcdfb7;return this[_0x522baf(0x162)][_0x522baf(0x176)](_0x23f9fb=>_0x23f9fb['id']===_0x1cce8e)||null;}[_0xdcdfb7(0x1a0)](){const _0x310ec3=_0xdcdfb7;return Array[_0x310ec3(0x188)](this[_0x310ec3(0x162)]);}[_0xdcdfb7(0x14f)](){const _0x1cddee=_0xdcdfb7;return this[_0x1cddee(0x191)];}[_0xdcdfb7(0x16b)](_0x4e3e14){const _0x5eb7ee=_0xdcdfb7;this[_0x5eb7ee(0x191)]=_0x4e3e14;}[_0xdcdfb7(0x15c)](_0x2b4e34,_0x4a20b2=0x0){const _0x71a3d0=_0xdcdfb7;let _0x20af06=!0x1;for(let _0x400670=_0x4a20b2;_0x400670<this[_0x71a3d0(0x162)][_0x71a3d0(0x19b)];_0x400670++)this[_0x71a3d0(0x144)](_0x2b4e34,_0x400670)&&(_0x20af06=!0x0);return _0x20af06;}[_0xdcdfb7(0x178)](_0x3b25fd,_0xb39c0e){const _0x391f1f=_0xdcdfb7,_0x2d479b=_0x3b25fd[_0x391f1f(0x16d)](_0x391f1f(0x190),{});return _0x3b25fd[_0x391f1f(0x171)](_0x2d479b,_0xb39c0e),this[_0x391f1f(0x19c)]=_0x2d479b,_0x2d479b;}[_0xdcdfb7(0x186)](_0xb726c5){const _0x3788e3=_0xdcdfb7;if(!this[_0x3788e3(0x162)][_0x3788e3(0x19b)]||this[_0x3788e3(0x19c)])return;const _0x556f7e=this[_0x3788e3(0x162)][0x0][_0x3788e3(0x17b)][_0x3788e3(0x18c)],_0x2ffd29=this[_0x3788e3(0x178)](_0xb726c5,_0x556f7e);for(const _0x3c01bc of this[_0x3788e3(0x162)])_0x3c01bc[_0x3788e3(0x15a)][_0x3788e3(0x158)]||_0xb726c5[_0x3788e3(0x14e)](_0x3c01bc[_0x3788e3(0x15a)],_0x2ffd29,_0x3788e3(0x15d));this[_0x3788e3(0x15c)](_0xb726c5);}[_0xdcdfb7(0x160)](_0x3f2010,_0x2ed691){const _0x3dd5ca=_0xdcdfb7;let _0x51a528=!0x1;const {inserted:_0x1e2773,removed:_0x146b31,moved:_0x12fcc4}=this[_0x3dd5ca(0x16e)][_0x3dd5ca(0x180)](_0x2ed691);if(_0x12fcc4[_0x3dd5ca(0x19b)]&&(this[_0x3dd5ca(0x19c)]=_0x12fcc4[0x0]),_0x1e2773[_0x3dd5ca(0x19b)]){if(_0x1e2773[_0x3dd5ca(0x19b)]>0x1||this[_0x3dd5ca(0x19c)]&&_0x1e2773[_0x3dd5ca(0x163)](_0x562ee7=>_0x562ee7!==this[_0x3dd5ca(0x19c)])){const _0x4c6be5=_0x3f2010[_0x3dd5ca(0x16d)](_0x3dd5ca(0x190),{}),_0x47c744=[];this[_0x3dd5ca(0x19c)]&&_0x47c744[_0x3dd5ca(0x161)](this[_0x3dd5ca(0x19c)]),_0x47c744[_0x3dd5ca(0x161)](..._0x1e2773),_0x3f2010[_0x3dd5ca(0x14e)](_0x4c6be5,_0x47c744[0x0],_0x3dd5ca(0x196));for(const _0x251509 of _0x47c744)_0x3f2010[_0x3dd5ca(0x198)](_0x3f2010[_0x3dd5ca(0x141)](_0x251509),_0x3f2010[_0x3dd5ca(0x159)](_0x4c6be5,_0x3dd5ca(0x15d))),_0x3f2010[_0x3dd5ca(0x18b)](_0x251509);this[_0x3dd5ca(0x19c)]=_0x4c6be5,this[_0x3dd5ca(0x15c)](_0x3f2010),_0x51a528=!0x0;}else this[_0x3dd5ca(0x19c)]=_0x1e2773[0x0];}if(_0x146b31[_0x3dd5ca(0x19b)]&&_0x3dd5ca(0x175)===this[_0x3dd5ca(0x19c)]?.[_0x3dd5ca(0x18c)][_0x3dd5ca(0x189)]){for(const _0x51b843 of this[_0x3dd5ca(0x162)])_0x3f2010[_0x3dd5ca(0x18b)](_0x51b843[_0x3dd5ca(0x17b)]),_0x51a528=!0x0;this[_0x3dd5ca(0x162)]=[],this[_0x3dd5ca(0x19c)]=null;}return _0x51a528;}[_0xdcdfb7(0x17c)](_0x339806,_0x355d6c){const _0x47140e=_0xdcdfb7;let _0x2cfea7=!0x1;const _0x187c53=this[_0x47140e(0x19e)][_0x47140e(0x17a)][_0x47140e(0x182)](_0x47140e(0x19f)),{inserted:_0xd3250d,moved:_0x24a0ff}=this[_0x47140e(0x142)][_0x47140e(0x180)](_0x355d6c);for(const _0x121206 of[..._0x24a0ff,..._0xd3250d]){const _0x3b2ae7=_0x121206[_0x47140e(0x193)](_0x47140e(0x166)),_0x2d03f3=this[_0x47140e(0x179)](_0x3b2ae7);_0x2d03f3&&(_0x2d03f3[_0x47140e(0x15a)]=_0x121206),_(_0x339806,_0x187c53,_0x121206)&&(_0x2cfea7=!0x0);}return _0x2cfea7;}[_0xdcdfb7(0x183)](_0x15f26e,_0x47ea53){const _0x59a79b=_0xdcdfb7;let _0x56b2cc=!0x1;const {removed:_0x58c233,inserted:_0x2cf1eb,moved:_0x163b83}=this[_0x59a79b(0x18d)][_0x59a79b(0x180)](_0x47ea53);for(const _0x17e6fa of _0x58c233)this[_0x59a79b(0x19d)](_0x15f26e,_0x17e6fa)&&(_0x56b2cc=!0x0);for(const _0x329f5f of _0x2cf1eb)this[_0x59a79b(0x18e)](_0x15f26e,_0x329f5f)&&(_0x56b2cc=!0x0);for(const _0x4a5572 of _0x163b83)this[_0x59a79b(0x185)](_0x15f26e,_0x4a5572)&&(_0x56b2cc=!0x0);return _0x56b2cc;}[_0xdcdfb7(0x177)](_0x1a6d4b){const _0x55c716=_0xdcdfb7;if(!this[_0x55c716(0x19c)])return!0x1;let _0x200fe0=!0x1;if(this[_0x55c716(0x19c)][_0x55c716(0x146)]!==this[_0x55c716(0x162)][_0x55c716(0x19b)]){const _0x3d9059=[];for(const _0x2aa3a5 of this[_0x55c716(0x19c)][_0x55c716(0x14d)]()){const _0x484a77=_0x2aa3a5[_0x55c716(0x193)](_0x55c716(0x166));this[_0x55c716(0x179)](_0x484a77)||(_0x3d9059[_0x55c716(0x156)](_0x2aa3a5),_0x200fe0=!0x0);}for(const _0x43b8f3 of _0x3d9059)_0x1a6d4b[_0x55c716(0x18b)](_0x43b8f3);}const _0x2a7e7a=new Set(),_0x4a9866=[];for(const _0x37f657 of this[_0x55c716(0x19c)][_0x55c716(0x14d)]()){const _0x19b4b2=_0x37f657[_0x55c716(0x193)](_0x55c716(0x166));_0x2a7e7a[_0x55c716(0x150)](_0x19b4b2)?(_0x4a9866[_0x55c716(0x156)](_0x37f657),_0x200fe0=!0x0):_0x2a7e7a[_0x55c716(0x172)](_0x19b4b2);}for(const _0x538a78 of _0x4a9866)_0x1a6d4b[_0x55c716(0x18b)](_0x538a78);return this[_0x55c716(0x19c)][_0x55c716(0x146)]||(_0x1a6d4b[_0x55c716(0x18b)](this[_0x55c716(0x19c)]),this[_0x55c716(0x19c)]=null,_0x200fe0=!0x0),_0x200fe0;}[_0xdcdfb7(0x18e)](_0x2b4752,_0x4771bf){const _0x5be653=_0xdcdfb7;if(this[_0x5be653(0x162)][_0x5be653(0x176)](_0x1cb028=>_0x1cb028[_0x5be653(0x17b)]===_0x4771bf))return!0x1;let _0x42ef63=!0x1;const _0x12439b=_0x4771bf[_0x5be653(0x193)](_0x5be653(0x166)),_0x431622=this[_0x5be653(0x162)][_0x5be653(0x19a)](_0x1761cb=>_0x1761cb['id']===_0x12439b);-0x1!==_0x431622&&(_0x2b4752[_0x5be653(0x18b)](this[_0x5be653(0x162)][_0x431622][_0x5be653(0x17b)]),this[_0x5be653(0x162)][_0x5be653(0x192)](_0x431622,0x1),_0x42ef63=!0x0);let _0x498464=this[_0x5be653(0x19c)]?function(_0x2200e3,_0x130dec){const _0x1b6032=_0x5be653;for(const _0x18153e of _0x2200e3[_0x1b6032(0x14d)]())if(_0x18153e[_0x1b6032(0x193)](_0x1b6032(0x166))===_0x130dec)return _0x18153e;return null;}(this[_0x5be653(0x19c)],_0x12439b):null;_0x498464||(_0x498464=_0x2b4752[_0x5be653(0x16d)](_0x5be653(0x1a3),{'footnoteId':_0x12439b}),this[_0x5be653(0x19c)]&&(_0x2b4752[_0x5be653(0x14e)](_0x498464,this[_0x5be653(0x19c)],_0x5be653(0x15d)),_0x42ef63=!0x0));const _0x66e1c2={'id':_0x12439b,'reference':_0x4771bf,'definition':_0x498464},_0x573d1c=I(this[_0x5be653(0x19e)][_0x5be653(0x181)],this[_0x5be653(0x162)],_0x4771bf);this[_0x5be653(0x162)][_0x5be653(0x192)](_0x573d1c,0x0,_0x66e1c2);let _0x10951f=_0x573d1c;return-0x1!==_0x431622&&(_0x10951f=Math[_0x5be653(0x154)](_0x573d1c,_0x431622)),this[_0x5be653(0x15c)](_0x2b4752,_0x10951f)&&(_0x42ef63=!0x0),_0x42ef63;}[_0xdcdfb7(0x19d)](_0x2d565c,_0x43a07e){const _0x46c0c3=_0xdcdfb7,_0x14f482=this[_0x46c0c3(0x162)][_0x46c0c3(0x19a)](_0x539557=>_0x539557['id']===_0x43a07e);if(-0x1===_0x14f482)return!0x1;let _0x149174=!0x1;const _0x22038a=this[_0x46c0c3(0x162)][_0x14f482];return _0x46c0c3(0x175)!==_0x22038a[_0x46c0c3(0x15a)][_0x46c0c3(0x18c)][_0x46c0c3(0x189)]&&(_0x2d565c[_0x46c0c3(0x18b)](_0x22038a[_0x46c0c3(0x15a)]),_0x149174=!0x0),this[_0x46c0c3(0x162)][_0x46c0c3(0x192)](_0x14f482,0x1),this[_0x46c0c3(0x15c)](_0x2d565c,_0x14f482)&&(_0x149174=!0x0),_0x149174;}[_0xdcdfb7(0x185)](_0xaa844e,_0x21ef70){const _0x13341a=_0xdcdfb7,_0xe84272=_0x21ef70[_0x13341a(0x193)](_0x13341a(0x166)),_0x5435f4=this[_0x13341a(0x162)][_0x13341a(0x19a)](_0x10ccda=>_0x10ccda['id']===_0xe84272),_0x4512d7=this[_0x13341a(0x162)][_0x5435f4];let _0x49a3ee=!0x1;_0x4512d7[_0x13341a(0x17b)]=_0x21ef70,this[_0x13341a(0x162)][_0x13341a(0x192)](_0x5435f4,0x1);const _0x58217b=I(this[_0x13341a(0x19e)][_0x13341a(0x181)],this[_0x13341a(0x162)],_0x21ef70);return this[_0x13341a(0x162)][_0x13341a(0x192)](_0x58217b,0x0,_0x4512d7),this[_0x13341a(0x15c)](_0xaa844e,Math[_0x13341a(0x154)](_0x5435f4,_0x58217b))&&(_0x49a3ee=!0x0),_0x49a3ee;}[_0xdcdfb7(0x144)](_0xbbb27,_0xda3a3e){const _0x41d047=_0xdcdfb7;if(!this[_0x41d047(0x19c)])return!0x1;const _0x2e8f8f=this[_0x41d047(0x162)][_0xda3a3e];let _0x452b58;return _0x452b58=this[_0x41d047(0x191)]?this[_0x41d047(0x191)]({'footnote':_0x2e8f8f,'container':this[_0x41d047(0x19c)],'digits':String(this[_0x41d047(0x162)][_0x41d047(0x19b)])[_0x41d047(0x19b)],'value':_0xda3a3e+0x1}):String(_0xda3a3e+0x1),_0x2e8f8f[_0x41d047(0x17b)][_0x41d047(0x193)](_0x41d047(0x173))!=_0x452b58&&(_0xbbb27[_0x41d047(0x165)](_0x41d047(0x173),_0x452b58,_0x2e8f8f[_0x41d047(0x17b)]),!0x0);}[_0xdcdfb7(0x197)](_0x4062b4){const _0x2b751e=_0xdcdfb7;if(!this[_0x2b751e(0x19c)]||this[_0x2b751e(0x162)][_0x2b751e(0x19b)]<0x2)return!0x1;if(function(_0x4f8523,_0x477446){const _0x3a711a=_0x2b751e;if(_0x4f8523[_0x3a711a(0x19b)]!==_0x477446[_0x3a711a(0x19b)])return!0x1;for(let _0x1b3243=0x0;_0x1b3243<_0x4f8523[_0x3a711a(0x19b)];_0x1b3243++)if(_0x4f8523[_0x1b3243]!==_0x477446[_0x1b3243])return!0x1;return!0x0;}(this[_0x2b751e(0x162)][_0x2b751e(0x147)](_0x4ecc27=>_0x4ecc27['id']),Array[_0x2b751e(0x188)](this[_0x2b751e(0x19c)][_0x2b751e(0x14d)]())[_0x2b751e(0x147)](_0x313c6d=>_0x313c6d[_0x2b751e(0x193)](_0x2b751e(0x166)))))return!0x1;let _0x26e0e9=!0x1;for(let _0x472154=0x0;_0x472154<this[_0x2b751e(0x162)][_0x2b751e(0x19b)];_0x472154++){const _0x459c9c=this[_0x2b751e(0x162)][_0x472154],_0x59e5ae=_0x4062b4[_0x2b751e(0x18f)](_0x459c9c[_0x2b751e(0x15a)]),_0x3a082d=_0x4062b4[_0x2b751e(0x159)](this[_0x2b751e(0x19c)],_0x472154);_0x59e5ae[_0x2b751e(0x143)](_0x3a082d)||(_0x4062b4[_0x2b751e(0x198)](_0x4062b4[_0x2b751e(0x195)](_0x459c9c[_0x2b751e(0x15a)]),_0x3a082d),_0x26e0e9=!0x0);}return _0x26e0e9;}[_0xdcdfb7(0x16a)](_0x1365dd){const _0xa33120=_0xdcdfb7;if(!this[_0xa33120(0x162)][_0xa33120(0x19b)])return!0x1;const {model:_0x2ede93}=this[_0xa33120(0x19e)];let _0x2e1ee2=!0x1;for(let _0x363a27=0x0;_0x363a27<this[_0xa33120(0x162)][_0xa33120(0x19b)]-0x1;_0x363a27++){const _0x52e0d6=this[_0xa33120(0x162)][_0x363a27],_0x36bf18=this[_0xa33120(0x162)][_0x363a27+0x1],_0x517229=_0x2ede93[_0xa33120(0x18f)](_0x52e0d6[_0xa33120(0x17b)]),_0x46a3ea=_0x2ede93[_0xa33120(0x18f)](_0x36bf18[_0xa33120(0x17b)]);_0xa33120(0x174)===_0x517229[_0xa33120(0x17e)](_0x46a3ea)&&(this[_0xa33120(0x185)](_0x1365dd,_0x52e0d6[_0xa33120(0x17b)]),_0x363a27=-0x1,_0x2e1ee2=!0x0);}return _0x2e1ee2;}}function _(_0x49f6e8,_0x260730,_0x555de1){const _0x100b01=_0xdcdfb7;if(_0x555de1[_0x100b01(0x146)])return!0x1;const _0xfc7049=_0x260730?_0x100b01(0x148):_0x100b01(0x194);return _0x49f6e8[_0x100b01(0x14e)](_0x49f6e8[_0x100b01(0x16d)](_0xfc7049),_0x555de1),!0x0;}function I(_0x3710ef,_0x2b33f1,_0x615223){const _0x45e4ad=_0xdcdfb7;if(0x0===_0x2b33f1[_0x45e4ad(0x19b)])return 0x0;const _0x419ca1=_0x3710ef[_0x45e4ad(0x18f)](_0x615223);for(let _0x3f9faa=0x0;_0x3f9faa<_0x2b33f1[_0x45e4ad(0x19b)];_0x3f9faa++){const _0x243f8e=_0x2b33f1[_0x3f9faa],_0x37f4a4=_0x3710ef[_0x45e4ad(0x18f)](_0x243f8e[_0x45e4ad(0x17b)]);if(_0x45e4ad(0x196)===_0x419ca1[_0x45e4ad(0x17e)](_0x37f4a4))return _0x3f9faa;}const _0x287df6=_0x615223[_0x45e4ad(0x18c)];let _0x5bea24=-0x1;for(let _0x3e1e08=_0x2b33f1[_0x45e4ad(0x19b)]-0x1;_0x3e1e08>=0x0;_0x3e1e08--)if(_0x2b33f1[_0x3e1e08][_0x45e4ad(0x17b)][_0x45e4ad(0x18c)]===_0x287df6){_0x5bea24=_0x3e1e08;break;}if(-0x1!==_0x5bea24)return _0x5bea24+0x1;const _0xc386f1=_0x3710ef[_0x45e4ad(0x14c)][_0x45e4ad(0x14a)](),_0x47efa8=_0xc386f1[_0x45e4ad(0x1a5)](_0x287df6[_0x45e4ad(0x189)]),_0x4346a8=_0xc386f1[_0x47efa8+0x1];if(_0x4346a8){for(let _0x453ed1=0x0;_0x453ed1<_0x2b33f1[_0x45e4ad(0x19b)];_0x453ed1++)if(_0x2b33f1[_0x453ed1][_0x45e4ad(0x17b)][_0x45e4ad(0x18c)][_0x45e4ad(0x189)]===_0x4346a8)return _0x453ed1;}return _0x2b33f1[_0x45e4ad(0x19b)];}function _0x2991(_0x45fa71,_0x26f125){const _0x2534d5=_0x2534();return _0x2991=function(_0x2991f4,_0x1e4d76){_0x2991f4=_0x2991f4-0x141;let _0x5a4d4d=_0x2534d5[_0x2991f4];return _0x5a4d4d;},_0x2991(_0x45fa71,_0x26f125);}function _0x2534(){const _0x4c8183=['createElement','_footnoteDefsContainerTracker','isOfficialPlugin','9amzFGZ','append','add','footnoteCounter','after','$graveyard','find','_handleFootnotesDefinitionsObjectSync','_insertEmptyFootnotesDefinitionsContainer','getFootnote','config','reference','_handleFootnoteDefinitionsChanges','high','compareWith','low','getChanges','model','get','_handleFootnoteReferencesChanges','differ','_handleMovedFootnoteReference','_ensureFootnotesDefinitionsContainerExists','reset','from','rootName','1202406EknNCl','remove','root','_footnoteRefsTracker','_handleInsertedFootnoteReference','createPositionBefore','footnotesDefinitions','_footnoteFormatter','splice','getAttribute','footnoteInlineContent','createRangeOn','before','_sortFootnoteDefinitions','move','5qnVHMX','findIndex','length','_footnotesDefinitions','_handleRemoveFootnoteReferenceById','editor','footnotes.multiBlock','getFootnotes','listenTo','15135860YHXOZj','footnoteDefinition','2782024pljkPu','indexOf','createRangeIn','_footnoteDefsTracker','isEqual','_updateFootnoteRefCounter','8XlzxOs','childCount','map','paragraph','3310034wCmRhl','getRootNames','isPremiumPlugin','document','getChildren','insert','getFootnotesFormatter','has','8783298uSMree','1184908RjyPrk','enqueueChange','min','singleton','unshift','getFootnotesDefinitionsObjectElement','parent','createPositionAt','definition','registerPostFixer','_updateFootnotesCounters','end','106903ovstQa','set','_handleFootnotesDefinitionsObjectChanges','push','_footnotes','some','pluginName','setAttribute','footnoteId','FootnotesTracker','change:data','init','_ensureFootnotesReferencesHaveProperOrder','setFootnoteFormatter','footnoteRef'];_0x2534=function(){return _0x4c8183;};return _0x2534();}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4290c5,MenuBarMenuListItemButtonView as _0x512bba}from'ckeditor5/src/ui.js';import{Plugin as _0x3db95d}from'ckeditor5/src/core.js';import{IconFootnote as _0x1c6538}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x3db95d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x13bf41}=this,{componentFactory:_0x375705}=_0x13bf41['ui'];_0x375705['add']('insertFootnote',x(_0x13bf41,_0x4290c5)),_0x375705['add']('menuBar:insertFootnote',x(_0x13bf41,_0x512bba)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a028f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x461cdc;for(const _0xa1e468 in _0x4a028f){const _0x5f3ca5=_0xa1e468,_0x37842d=_0x4a028f[_0x5f3ca5];if('footnotesLicenseKeyValid'==_0x37842d||'footnotesLicenseKeyInvalid'==_0x37842d||'footnotesLicenseKeyExpired'==_0x37842d||'footnotesLicenseKeyDomainLimit'==_0x37842d||'footnotesLicenseKeyNotAllowed'==_0x37842d||'footnotesLicenseKeyEvaluationLimit'==_0x37842d||'footnotesLicenseKeyTrialLimit'==_0x37842d||'footnotesLicenseKeyUsageLimit'==_0x37842d){delete _0x4a028f[_0x5f3ca5],_0x461cdc=_0x37842d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x461cdc&&_0x4a028f['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x461cdc&&_0x4a028f['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x461cdc&&_0x4a028f['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x461cdc&&_0x4a028f['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x461cdc&&_0x4a028f['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x461cdc&&_0x4a028f['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x461cdc&&_0x4a028f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x36a4bc,_0x58ed4f){const _0x58a637=_0x36a4bc['commands']['get']('insertFootnote');return _0x4f1375=>{const {t:t}=_0x4f1375,_0x15de6c=new _0x58ed4f(_0x4f1375),_0x550195=_0x15de6c instanceof _0x512bba;return _0x15de6c['bind']('isEnabled')['to'](_0x58a637,'isEnabled'),_0x15de6c['set']({'label':t(_0x550195?'Footnote':'Insert\x20footnote'),'icon':_0x1c6538,'tooltip':!0x0}),_0x15de6c['on']('execute',()=>{_0x58a637['execute'](),_0x36a4bc['editing']['view']['focus']();}),_0x15de6c;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x57a051,_0x2b52dc){var _0x4289f1=_0x582a,_0x1c6c59=_0x57a051();while(!![]){try{var _0x3eafe0=-parseInt(_0x4289f1(0x19d))/0x1+parseInt(_0x4289f1(0x19b))/0x2+-parseInt(_0x4289f1(0x19c))/0x3+parseInt(_0x4289f1(0x19e))/0x4+-parseInt(_0x4289f1(0x199))/0x5+-parseInt(_0x4289f1(0x1a0))/0x6*(-parseInt(_0x4289f1(0x198))/0x7)+-parseInt(_0x4289f1(0x19f))/0x8*(-parseInt(_0x4289f1(0x19a))/0x9);if(_0x3eafe0===_0x2b52dc)break;else _0x1c6c59['push'](_0x1c6c59['shift']());}catch(_0x50ba11){_0x1c6c59['push'](_0x1c6c59['shift']());}}}(_0x2793,0x67f27));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';function _0x2793(){var _0x210aef=['1209150FRLNHT','527787dWkAiJ','1285240BRVIwJ','104kuIzOw','12oVSHHu','769433GopsQS','3994850dxdwZO','674874CYkHQM','1279216hYNlyw'];_0x2793=function(){return _0x210aef;};return _0x2793();}function _0x582a(_0x43b64a,_0x49aa1d){var _0x27931e=_0x2793();return _0x582a=function(_0x582a43,_0x420200){_0x582a43=_0x582a43-0x198;var _0x3ac790=_0x27931e[_0x582a43];return _0x3ac790;},_0x582a(_0x43b64a,_0x49aa1d);}export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x147e(){const _0x4223d0=['reset','1493274wmanrD','getItems','flat','nodeAfter','_getElementKey','$graveyard','9FmiuaC','from','_model','6634655lGFKlt','delete','27974950ugxQFn','name','_trackedElements','has','get','1434183OtxmZH','add','elementName','_elementName','$text','getElementKey','139032jdWBRI','3436880mDsVAJ','root','4BhIxkl','28pVyRlU','getChanges','set','values','element','push','clear','remove','type','position','attributes','length','createRangeOn','1159440PgfBnK','insert','rootName','slice'];_0x147e=function(){return _0x4223d0;};return _0x147e();}const _0x4d05e7=_0x17a7;(function(_0x43d422,_0x572be){const _0x147143=_0x17a7,_0x199a3f=_0x43d422();while(!![]){try{const _0x24ed84=-parseInt(_0x147143(0x118))/0x1+-parseInt(_0x147143(0x129))/0x2+parseInt(_0x147143(0x13e))/0x3+parseInt(_0x147143(0x11b))/0x4*(-parseInt(_0x147143(0x137))/0x5)+-parseInt(_0x147143(0x12e))/0x6*(parseInt(_0x147143(0x11c))/0x7)+-parseInt(_0x147143(0x119))/0x8*(-parseInt(_0x147143(0x134))/0x9)+parseInt(_0x147143(0x139))/0xa;if(_0x24ed84===_0x572be)break;else _0x199a3f['push'](_0x199a3f['shift']());}catch(_0x5b7c9e){_0x199a3f['push'](_0x199a3f['shift']());}}}(_0x147e,0xa219f));function _0x17a7(_0x2a5784,_0x3ffc6c){const _0x147e5d=_0x147e();return _0x17a7=function(_0x17a7db,_0x16047c){_0x17a7db=_0x17a7db-0x113;let _0x2619a8=_0x147e5d[_0x17a7db];return _0x2619a8;},_0x17a7(_0x2a5784,_0x3ffc6c);}export class ModelElementTracker{[_0x4d05e7(0x136)];[_0x4d05e7(0x115)];[_0x4d05e7(0x132)];[_0x4d05e7(0x13b)]=new Map();constructor(_0x12b297,_0x4a6705){const _0x2417e8=_0x4d05e7;this[_0x2417e8(0x136)]=_0x12b297,this[_0x2417e8(0x115)]=_0x4a6705[_0x2417e8(0x114)],this[_0x2417e8(0x132)]=_0x4a6705[_0x2417e8(0x117)];}[_0x4d05e7(0x12d)](){const _0x27a28a=_0x4d05e7;this[_0x27a28a(0x13b)][_0x27a28a(0x122)]();}[_0x4d05e7(0x11d)](_0x1441b7){const _0x5b0e06=_0x4d05e7,_0x141336=new Set(),_0x2600a5=new Map();for(const _0x1c1595 of _0x1441b7){if(_0x5b0e06(0x12a)===_0x1c1595[_0x5b0e06(0x124)]&&_0x5b0e06(0x116)!==_0x1c1595[_0x5b0e06(0x13a)]&&_0x1c1595[_0x5b0e06(0x125)][_0x5b0e06(0x131)]){const _0x2de30f=this[_0x5b0e06(0x136)][_0x5b0e06(0x128)](_0x1c1595[_0x5b0e06(0x125)][_0x5b0e06(0x131)]);for(const _0x4aa6b7 of _0x2de30f[_0x5b0e06(0x12f)]()){if(!_0x4aa6b7['is'](_0x5b0e06(0x120),this[_0x5b0e06(0x115)]))continue;const _0x47a667=this[_0x5b0e06(0x132)](_0x4aa6b7);_0x2600a5[_0x5b0e06(0x13c)](_0x47a667)||_0x2600a5[_0x5b0e06(0x11e)](_0x47a667,[]),_0x2600a5[_0x5b0e06(0x13d)](_0x47a667)[_0x5b0e06(0x121)](_0x4aa6b7);}}if(_0x5b0e06(0x123)===_0x1c1595[_0x5b0e06(0x124)]&&_0x1c1595[_0x5b0e06(0x13a)]===this[_0x5b0e06(0x115)]){const _0x142492=this[_0x5b0e06(0x132)]({'getAttribute':_0x50a48d=>_0x1c1595[_0x5b0e06(0x126)][_0x5b0e06(0x13d)](_0x50a48d)});_0x141336[_0x5b0e06(0x113)](_0x142492);}}for(const [_0x20d39b,_0x5b71d8]of this[_0x5b0e06(0x13b)])_0x5b0e06(0x133)===_0x5b71d8[_0x5b0e06(0x11a)][_0x5b0e06(0x12b)]&&_0x141336[_0x5b0e06(0x113)](_0x20d39b);for(const _0x305595 of _0x141336)this[_0x5b0e06(0x13b)][_0x5b0e06(0x138)](_0x305595);for(const [_0x65c717,_0x44508d]of _0x2600a5)this[_0x5b0e06(0x13b)][_0x5b0e06(0x11e)](_0x65c717,_0x44508d[_0x44508d[_0x5b0e06(0x127)]-0x1]);const _0xaa6eb7=new Set();for(const [_0x1c7878,_0x4869b7]of _0x2600a5)_0x141336[_0x5b0e06(0x13c)](_0x1c7878)&&(_0xaa6eb7[_0x5b0e06(0x113)](_0x4869b7[0x0]),_0x4869b7[_0x5b0e06(0x127)]>0x1?_0x2600a5[_0x5b0e06(0x11e)](_0x1c7878,_0x4869b7[_0x5b0e06(0x12c)](0x1)):_0x2600a5[_0x5b0e06(0x138)](_0x1c7878),_0x141336[_0x5b0e06(0x138)](_0x1c7878));return{'removed':Array[_0x5b0e06(0x135)](_0x141336),'inserted':Array[_0x5b0e06(0x135)](_0x2600a5[_0x5b0e06(0x11f)]())[_0x5b0e06(0x130)](),'moved':Array[_0x5b0e06(0x135)](_0xaa6eb7)};}}
|