@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251125.1 → 0.0.0-nightly-20251127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4ece7a}from'ckeditor5/src/core.js';import{isWidget as _0x24016d,toWidget as _0x455d8b,toWidgetEditable as _0x4fcb4c}from'ckeditor5/src/widget.js';import{uid as _0x2fda2c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x41e22c,ClickObserver as _0x1195aa}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1b8c3a}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4cbf61}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4ece7a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1b8c3a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x7ae6e4}=this;_0x7ae6e4['config']['define']('footnotes.multiBlock',!0x0),_0x7ae6e4['commands']['add']('insertFootnote',new _0x4cbf61(_0x7ae6e4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3389c7){const _0x511265=_0x954bd6([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]),_0x55eb1a=0x47a28506,_0x22ab25=0x47a5ff1e^_0x55eb1a,_0x2ea26c=window[_0x954bd6([0x44,0x61,0x74,0x65])][_0x954bd6([0x6e,0x6f,0x77])](),_0x245236=_0x3389c7[_0x954bd6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x103970=new window[(_0x954bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x616104=>{_0x245236[_0x954bd6([0x6f,0x6e,0x63,0x65])](_0x954bd6([0x72,0x65,0x61,0x64,0x79]),_0x616104);}),_0x4736b2={[_0x954bd6([0x6b,0x74,0x79])]:_0x954bd6([0x45,0x43]),[_0x954bd6([0x75,0x73,0x65])]:_0x954bd6([0x73,0x69,0x67]),[_0x954bd6([0x63,0x72,0x76])]:_0x954bd6([0x50,0x2d,0x32,0x35,0x36]),[_0x954bd6([0x78])]:_0x954bd6([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]),[_0x954bd6([0x79])]:_0x954bd6([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]),[_0x954bd6([0x61,0x6c,0x67])]:_0x954bd6([0x45,0x53,0x32,0x35,0x36])},_0x4d9e77=_0x245236[_0x954bd6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x954bd6([0x67,0x65,0x74])](_0x954bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21c17e(){let _0x441848,_0x5ae7d8=null,_0x9c8bbe=null;try{if(_0x4d9e77==_0x954bd6([0x47,0x50,0x4c]))return _0x954bd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x441848=_0x2fc241(),!_0x441848)return _0x954bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x441848[_0x954bd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9c8bbe=_0x1e3c95(_0x441848[_0x954bd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x441848[_0x954bd6([0x6a,0x74,0x69])])),await _0xec8f19()?_0x30f82a()?_0x26c9c4()?_0x954bd6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f037b()?(_0x441848[_0x954bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x954bd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ae7d8=_0x527f2d(_0x954bd6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x441848[_0x954bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x954bd6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ae7d8=_0x527f2d(_0x954bd6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43685a()):_0x954bd6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x954bd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x954bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x954bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26c9c4(){const _0x17141c=[_0x954bd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x954bd6([0x74,0x72,0x69,0x61,0x6c])][_0x954bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441848[_0x954bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ea26c/0x3e8:0xe10*_0x22ab25;return _0x441848[_0x954bd6([0x65,0x78,0x70])]<_0x17141c;}function _0x30f82a(){const _0x79607e=_0x441848[_0x954bd6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x79607e&&(!!_0x79607e[_0x954bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x954bd6([0x2a]))||!!_0x79607e[_0x954bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x954bd6([0x46,0x4f,0x4f])));}function _0x4f037b(){const _0x18016c=_0x441848[_0x954bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18016c||0x0==_0x18016c[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4af4c4}=new URL(window[_0x954bd6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18016c[_0x954bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af4c4))return!0x0;const _0x298ae0=_0x4af4c4[_0x954bd6([0x73,0x70,0x6c,0x69,0x74])](_0x954bd6([0x2e]));return _0x18016c[_0x954bd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b1eec=>_0x3b1eec[_0x954bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x954bd6([0x2a])))[_0x954bd6([0x6d,0x61,0x70])](_0x17d4dd=>_0x17d4dd[_0x954bd6([0x73,0x70,0x6c,0x69,0x74])](_0x954bd6([0x2e])))[_0x954bd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a4a25=>_0x5a4a25[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x298ae0[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x954bd6([0x6d,0x61,0x70])](_0x2c07b3=>Array(_0x298ae0[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c07b3[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x954bd6([0x66,0x69,0x6c,0x6c])](_0x2c07b3[0x0]===_0x954bd6([0x2a])?_0x954bd6([0x2a]):'')[_0x954bd6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c07b3))[_0x954bd6([0x73,0x6f,0x6d,0x65])](_0x38226a=>_0x298ae0[_0x954bd6([0x65,0x76,0x65,0x72,0x79])]((_0x5b65ec,_0x310263)=>_0x38226a[_0x310263]===_0x5b65ec||_0x38226a[_0x310263]===_0x954bd6([0x2a])));}function _0x43685a(){return _0x5ae7d8&&_0x9c8bbe?new window[(_0x954bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x395925,_0x210fd3)=>{_0x5ae7d8[_0x954bd6([0x74,0x68,0x65,0x6e])](_0x395925,_0x210fd3),_0x9c8bbe[_0x954bd6([0x74,0x68,0x65,0x6e])](_0x1596cc=>{_0x1596cc!=_0x954bd6([0x56,0x61,0x6c,0x69,0x64])&&_0x395925(_0x1596cc);},_0x210fd3);}):_0x5ae7d8||_0x9c8bbe||_0x954bd6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e3c95(_0x2056d9,_0x4ea528){return new window[(_0x954bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dd69b=>{if(_0x1e5a40())return _0x5dd69b(_0x954bd6([0x56,0x61,0x6c,0x69,0x64]));_0x4c7111(),_0x245236[_0x954bd6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x954bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e3f84=!0x1;const _0x29a369=_0x2fda2c();function _0x3ca342(_0x211db9){return!!_0x211db9&&(typeof _0x211db9===_0x954bd6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x211db9===_0x954bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x211db9[_0x954bd6([0x74,0x68,0x65,0x6e])]===_0x954bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x211db9[_0x954bd6([0x63,0x61,0x74,0x63,0x68])]===_0x954bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x412c1d(_0x5b1a91){_0x93f330(_0x5b1a91)[_0x954bd6([0x74,0x68,0x65,0x6e])](_0xaf60bf=>{if(!_0xaf60bf||_0xaf60bf[_0x954bd6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x954bd6([0x6f,0x6b]))return _0x954bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c6c94(_0x536d0c(_0x29a369+_0x4ea528))!=_0xaf60bf[_0x954bd6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x954bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x954bd6([0x56,0x61,0x6c,0x69,0x64]);})[_0x954bd6([0x74,0x68,0x65,0x6e])](_0x2471b6=>(_0x5a8009(),_0x2471b6),()=>{const _0x544532=_0x85b26a();return null==_0x544532?(_0x5a8009(),_0x954bd6([0x56,0x61,0x6c,0x69,0x64])):_0x954bd6(_0x2ea26c-_0x544532>(0x63ae0106^_0x55eb1a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x954bd6([0x74,0x68,0x65,0x6e])](_0x5dd69b)[_0x954bd6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5dd69b(_0x954bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57ef9f=0x47946b86^_0x55eb1a;function _0x5a8009(){const _0x568255=_0x954bd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c6c94(_0x536d0c(_0x2056d9)),_0x3544fb=_0x26eb82(_0x4c6c94(window[_0x954bd6([0x4d,0x61,0x74,0x68])][_0x954bd6([0x63,0x65,0x69,0x6c])](_0x2ea26c/_0x57ef9f)));window[_0x954bd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x954bd6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x568255,_0x3544fb);}function _0x85b26a(){const _0x46f5ce=_0x954bd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c6c94(_0x536d0c(_0x2056d9)),_0x1ea004=window[_0x954bd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x954bd6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46f5ce);return _0x1ea004?window[_0x954bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26eb82(_0x1ea004),0x10)*_0x57ef9f:null;}function _0x93f330(_0xa1a8ec){return new window[(_0x954bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21cc68,_0x1321f0)=>{_0xa1a8ec[_0x954bd6([0x74,0x68,0x65,0x6e])](_0x21cc68,_0x1321f0),window[_0x954bd6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1321f0,0x47a351c6^_0x55eb1a);});}}_0x245236[_0x954bd6([0x6f,0x6e])](_0x954bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47ed76,_0x9730f2)=>{if(_0x9730f2[0x0]!=_0x2056d9)return _0x5dd69b(_0x954bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9730f2[0x1]={..._0x9730f2[0x1],[_0x954bd6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29a369};},{[_0x954bd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x954bd6([0x68,0x69,0x67,0x68])}),_0x245236[_0x954bd6([0x6f,0x6e])](_0x954bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbd1e5d=>{_0x3ca342(_0xbd1e5d[_0x954bd6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e3f84=!0x0,_0x412c1d(_0xbd1e5d[_0x954bd6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x954bd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x954bd6([0x6c,0x6f,0x77])}),_0x103970[_0x954bd6([0x74,0x68,0x65,0x6e])](()=>{_0x5e3f84||_0x5dd69b(_0x954bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e5a40(){return _0x245236[_0x954bd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x954bd6([0x76,0x69,0x65,0x77])][_0x954bd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x954bd6([0x61,0x75,0x74,0x6f]);}function _0x4c7111(){_0x245236[_0x954bd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x954bd6([0x76,0x69,0x65,0x77])][_0x954bd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x954bd6([0x61,0x75,0x74,0x6f]);}}function _0x527f2d(_0x116028){const _0x27bd7a=[new window[(_0x954bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa840e1=>setTimeout(_0xa840e1,0x47abbbca^_0x55eb1a)),_0x103970[_0x954bd6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x954bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x169ddd=>{let _0x50c88e=0x0;_0x245236[_0x954bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x954bd6([0x6f,0x6e])](_0x954bd6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5cff88,_0x42d7c8)=>{_0x42d7c8[0x0][_0x954bd6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50c88e++,_0x50c88e==(0x47a284fe^_0x55eb1a)&&(_0x169ddd(),_0x5cff88[_0x954bd6([0x6f,0x66,0x66])]());});}))];return window[_0x954bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x954bd6([0x72,0x61,0x63,0x65])](_0x27bd7a)[_0x954bd6([0x74,0x68,0x65,0x6e])](()=>_0x116028);}async function _0x496816(){await _0x103970,_0x245236[_0x954bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x954bd6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x473676,_0x245236[_0x954bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x954bd6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x473676,_0x245236[_0x954bd6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x954bd6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d41f7(_0x29aed8){const _0x410d0d=_0x47e276();_0x245236[_0x410d0d]=_0x954bd6([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29aed8,_0x29aed8!=_0x954bd6([0x56,0x61,0x6c,0x69,0x64])&&_0x496816();}function _0x47e276(){const _0x247c61=window[_0x954bd6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x954bd6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x954bd6([0x6e,0x6f,0x77])]())[_0x954bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x954bd6([0x2e]),'');let _0x49d888=_0x954bd6([0x75]);for(let _0x23a092=0x0;_0x23a092<_0x247c61[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23a092+=0x2){let _0x4cb9fd=window[_0x954bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x247c61[_0x954bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23a092,_0x23a092+0x2));_0x4cb9fd>=_0x511265[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cb9fd-=_0x511265[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49d888+=_0x511265[_0x4cb9fd];}return _0x49d888;}function _0x2fc241(){const _0x55f158=_0x4d9e77[_0x954bd6([0x73,0x70,0x6c,0x69,0x74])](_0x954bd6([0x2e]));if(0x3!=_0x55f158[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x220308(_0x55f158[0x1]);function _0x220308(_0x4388d5){const _0xe03d14=_0x291ff1(_0x4388d5);return _0xe03d14&&_0x138574()?_0xe03d14:null;function _0x138574(){const _0x56984e=_0xe03d14[_0x954bd6([0x6a,0x74,0x69])],_0x3aad49=window[_0x954bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56984e[_0x954bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56984e[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53bb4a={..._0xe03d14,[_0x954bd6([0x6a,0x74,0x69])]:_0x56984e[_0x954bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56984e[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53bb4a[_0x954bd6([0x76,0x63])],_0x536d0c(_0x53bb4a)==_0x3aad49;}}}async function _0xec8f19(){let _0x116f70=!0x0;try{const _0x557f45=_0x4d9e77[_0x954bd6([0x73,0x70,0x6c,0x69,0x74])](_0x954bd6([0x2e])),[_0x27c489,_0x18f7fc,_0x306f5e]=_0x557f45;return _0x427383(_0x27c489),await _0x313a38(_0x27c489,_0x18f7fc,_0x306f5e),_0x116f70;}catch{return!0x1;}function _0x427383(_0x4ad74d){const _0x1e8aaf=_0x291ff1(_0x4ad74d);_0x1e8aaf&&_0x1e8aaf[_0x954bd6([0x61,0x6c,0x67])]==_0x954bd6([0x45,0x53,0x32,0x35,0x36])||(_0x116f70=!0x1);}async function _0x313a38(_0x251b8c,_0xf4da2c,_0x161563){const _0x10b6c9=window[_0x954bd6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x954bd6([0x66,0x72,0x6f,0x6d])](_0x4d051a(_0x161563),_0x507ae0=>_0x507ae0[_0x954bd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42381a=new window[(_0x954bd6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x954bd6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x251b8c+_0x954bd6([0x2e])+_0xf4da2c),_0x3e31b7=window[_0x954bd6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x954bd6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e31b7)return;const _0x57e40c=await _0x3e31b7[_0x954bd6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x954bd6([0x6a,0x77,0x6b]),_0x4736b2,{[_0x954bd6([0x6e,0x61,0x6d,0x65])]:_0x954bd6([0x45,0x43,0x44,0x53,0x41]),[_0x954bd6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x954bd6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x954bd6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e31b7[_0x954bd6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x954bd6([0x6e,0x61,0x6d,0x65])]:_0x954bd6([0x45,0x43,0x44,0x53,0x41]),[_0x954bd6([0x68,0x61,0x73,0x68])]:{[_0x954bd6([0x6e,0x61,0x6d,0x65])]:_0x954bd6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57e40c,_0x10b6c9,_0x42381a)||(_0x116f70=!0x1);}}function _0x291ff1(_0x5beb8b){return _0x5beb8b[_0x954bd6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x954bd6([0x65,0x79]))?JSON[_0x954bd6([0x70,0x61,0x72,0x73,0x65])](_0x4d051a(_0x5beb8b)):null;}function _0x4d051a(_0x271971){return window[_0x954bd6([0x61,0x74,0x6f,0x62])](_0x271971[_0x954bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x954bd6([0x2b]))[_0x954bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x954bd6([0x2f])));}function _0x536d0c(_0x1ecab9){let _0x3e8966=0x1505;function _0x330641(_0x49b96c){for(let _0x570db0=0x0;_0x570db0<_0x49b96c[_0x954bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x570db0++){const _0x2dfb26=_0x49b96c[_0x954bd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x570db0);_0x3e8966=(_0x3e8966<<0x5)+_0x3e8966+_0x2dfb26,_0x3e8966&=_0x3e8966;}}function _0x49d978(_0x262232){Array[_0x954bd6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x262232)?_0x262232[_0x954bd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49d978):_0x262232&&typeof _0x262232==_0x954bd6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x954bd6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x262232)[_0x954bd6([0x73,0x6f,0x72,0x74])]()[_0x954bd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x594e45,_0x59c62d])=>{_0x330641(_0x594e45),_0x49d978(_0x59c62d);}):_0x330641(window[_0x954bd6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x262232));}return _0x49d978(_0x1ecab9),_0x3e8966>>>0x0;}function _0x4c6c94(_0x1ae39e){return _0x1ae39e[_0x954bd6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x954bd6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x954bd6([0x30]));}function _0x26eb82(_0x1f9f3d){return _0x1f9f3d[_0x954bd6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x954bd6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x954bd6([0x6a,0x6f,0x69,0x6e])]('');}function _0x473676(){}function _0x954bd6(_0x5c4215){return _0x5c4215['map'](_0x5b5831=>String['fromCharCode'](_0x5b5831))['join']('');}_0x2d41f7(await _0x21c17e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x36fc5d){const {plugins:_0x125bdb,editing:_0x512e23,model:_0x44bc3e}=this['editor'],_0x4eeae4=_0x125bdb['get'](_0x1b8c3a)['getFootnote'](_0x36fc5d);return!!_0x4eeae4&&(_0x44bc3e['change'](_0x194c2e=>{_0x194c2e['setSelection'](_0x194c2e['createPositionAt'](_0x4eeae4['definition'],'end'));}),_0x512e23['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x40d121){const {plugins:_0x31b5bf,editing:_0x42d83f,model:_0x58136b}=this['editor'],_0xe9eafb=_0x31b5bf['get'](_0x1b8c3a)['getFootnote'](_0x40d121);return!!_0xe9eafb&&(_0x58136b['change'](_0x3e29f1=>{_0x3e29f1['setSelection'](_0xe9eafb['reference'],'on');}),_0x42d83f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x59dfa4}=this['editor']['model'],_0xb9fa73=this['editor']['config']['get']('footnotes.multiBlock');_0x59dfa4['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x59dfa4['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x59dfa4['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xb9fa73?_0x59dfa4['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x59dfa4['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x59dfa4['addChildCheck'](_0x20bc9c=>{for(const _0x55745c of _0x20bc9c)if('footnoteDefinition'===_0x55745c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x43e6a7}=this,{conversion:_0x113095,editing:_0x550180}=_0x43e6a7,{t:t}=_0x43e6a7['locale'];_0x113095['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3169d7,{writer:_0x567f42,consumable:_0x3bc479})=>{const _0xf4f219=_0x3169d7['getChild'](0x0);if(!_0xf4f219||!_0xf4f219['is']('element','a'))return null;const _0x2cde36=_0xf4f219['getAttribute']('href')||'';if(!_0x2cde36['startsWith']('#'))return null;const _0x579db8=_0x2cde36['replace'](/^#/,'');if(!_0x579db8)return null;_0x3bc479['consume'](_0xf4f219,{'name':!0x0,'attributes':['href']});for(const {item:_0x41de01}of _0x550180['view']['createRangeIn'](_0xf4f219))_0x41de01['is']('$textProxy')?_0x3bc479['consume'](_0x41de01['textNode'],{'name':!0x0}):_0x41de01['is']('element')&&_0x3bc479['consume'](_0x41de01,{'name':!0x0});return _0x567f42['createElement']('footnoteRef',{'footnoteId':_0x579db8});}}),_0x113095['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x53147d,{writer:_0x1ff811})=>D(_0x53147d,_0x1ff811)}),_0x113095['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x58933d,{writer:_0x31c628})=>{const _0x33292a=_0x58933d['getAttribute']('footnoteCounter');return _0x455d8b(D(_0x58933d,_0x31c628),_0x31c628,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x33292a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1b0b83}=this,{t:t}=_0x1b0b83['locale'],{conversion:_0x34934c}=_0x1b0b83;_0x34934c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x34934c['for']('upcast')['add'](_0xb80ce2=>{_0xb80ce2['on']('element:ol',(_0x4b1997,_0x4f25b1,_0x5b804b)=>{const _0x1f170c=_0x4f25b1['viewItem'];if(!_0x1f170c['hasClass']('footnotes-list')||!_0x4f25b1['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5b804b['consumable']['consume'](_0x1f170c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4b5433,modelCursor:_0x277361}=_0x5b804b['convertChildren'](_0x4f25b1['viewItem'],_0x4f25b1['modelCursor']);_0x4f25b1['modelRange']=_0x4b5433,_0x4f25b1['modelCursor']=_0x277361;}),_0xb80ce2['on']('element:hr',(_0x2203ae,_0x428f5f,_0x24b2e5)=>{const _0xb7bbff=_0x428f5f['viewItem'];_0xb7bbff['hasClass']('footnotes-divider')&&_0x428f5f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x24b2e5['consumable']['consume'](_0xb7bbff,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x34934c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1d4533,{writer:_0x4c81de})=>v(_0x4c81de)}),_0x34934c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3b2c81,{writer:_0x1751c8})=>{const _0xbbd73d=v(_0x1751c8,{'data-footnotes-list-label':t('Footnotes')}),_0x353221=_0x455d8b(_0xbbd73d,_0x1751c8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1751c8['setCustomProperty']('footnotesDefinitions',!0x0,_0x353221),_0x353221;}});}['_defineDefinitionConverters'](){const {editor:_0x533904}=this,{conversion:_0xc5172d,locale:_0x2da668}=_0x533904,_0x16da6a=_0x533904['config']['get']('footnotes.multiBlock');_0xc5172d['for']('upcast')['add'](_0x51ec5f=>{_0x51ec5f['on']('element:li',(_0x5982e4,_0x17a355,_0xf40f7b)=>{const _0x5ea013=_0x17a355['viewItem'];if(!_0x5ea013['hasClass']('footnote-definition')||!_0x5ea013['getAttribute']('id'))return;const _0xfcd0b7=_0x5ea013['parent'];if(!_0xfcd0b7['is']('element','ol')||!_0xfcd0b7['hasClass']('footnotes-list'))return;if(!_0xf40f7b['consumable']['test'](_0x5ea013,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xd916c0=_0xf40f7b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5ea013['getAttribute']('id')});if(!_0xf40f7b['safeInsert'](_0xd916c0,_0x17a355['modelCursor']))return;_0xf40f7b['consumable']['consume'](_0x5ea013,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2c23b7=Array['from'](_0x5ea013['getChildren']())['find'](_0x2556fa=>_0x2556fa['is']('element')&&_0x2556fa['hasClass']('footnote-content'));for(const _0x5efce0 of _0x5ea013['getChildren']())_0x5efce0['is']('element')&&(_0xf40f7b['consumable']['consume'](_0x5efce0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xf40f7b['consumable']['consume'](_0x5efce0,{'name':!0x0,'classes':'footnote-content'}));if(_0x2c23b7){if(_0x16da6a)_0xf40f7b['convertChildren'](_0x2c23b7,_0xd916c0);else{const _0x22b914=_0xf40f7b['writer']['createElement']('footnoteInlineContent');_0xf40f7b['writer']['insert'](_0x22b914,_0xd916c0),_0xf40f7b['convertChildren'](_0x2c23b7,_0x22b914);}}_0xf40f7b['updateConversionResult'](_0xd916c0,_0x17a355);});}),_0xc5172d['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ce29d,{writer:_0x2ae3a1})=>b(_0x4ce29d,_0x2ae3a1,_0x2da668,{'dataPipeline':!0x0})}),_0xc5172d['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4bfc96,{writer:_0x27fd93})=>b(_0x4bfc96,_0x27fd93,_0x2da668)});}['_defineBogusParagraphConverters'](){const {editor:_0x579ebc}=this,{conversion:_0x4cfa22}=_0x579ebc;_0x579ebc['config']['get']('footnotes.multiBlock')?(_0x4cfa22['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x4cfa22['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x579ebc['model']['document'],'change:data',()=>{!function(_0x76140e,_0x1e0977){const _0xddc906=_0x76140e['document']['differ'],_0x1eaea4=new Set();for(const _0x38bbb4 of _0xddc906['getChanges']()){const _0x1aad6a='attribute'==_0x38bbb4['type']?_0x38bbb4['range']['start']['parent']:_0x38bbb4['position']['parent'];_0x1aad6a['is']('element','footnoteDefinition')&&_0x1eaea4['add'](_0x1aad6a);}for(const _0x23d177 of _0x1eaea4['values']()){const _0x1c1511=Array['from'](_0x23d177['getChildren']())['filter'](_0x3f135e=>g(_0x3f135e,_0x1e0977['mapper']));for(const _0x1697f2 of _0x1c1511)_0x1e0977['reconvertItem'](_0x1697f2);}}(_0x579ebc['model'],_0x579ebc['editing']);})):(_0x4cfa22['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x4cfa22['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x187dee,{writer:_0x51022a})=>{const _0x196b02=_0x51022a['createContainerElement']('span');return _0x51022a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x196b02),_0x196b02;}}));}['_defineKeyboardHandlers'](){const {editor:_0x320417}=this,{editing:_0xc63e0d,t:t}=_0x320417,_0x435a0a=_0x320417['model']['document']['selection'];_0x320417['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x320417['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xc63e0d['view']['document'],'enter',(_0x5dff11,_0x549961)=>{const _0x5b7fef=function(_0xb9e6e2){const _0x290e00=_0xb9e6e2['getSelectedElement']();if(_0x290e00?.['is']('element','footnoteRef'))return _0x290e00;return null;}(_0x435a0a);if(_0x5b7fef){const _0x56e118=_0x5b7fef['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x56e118),_0x549961['preventDefault'](),_0x5dff11['stop']();}},{'context':_0x24016d});}['_defineClickHandlers'](){const {editor:_0x2f933b}=this,{editing:_0x43f952}=_0x2f933b;_0x2f933b['editing']['view']['addObserver'](_0x41e22c),_0x2f933b['editing']['view']['addObserver'](_0x1195aa);let _0x158c18=!0x1;this['listenTo'](_0x43f952['view']['document'],'pointerdown',(_0x41bcb0,_0x37eb2d)=>{const {target:_0x2a161}=_0x37eb2d,_0xec9aed=_0x43f952['view']['document']['selection'];_0x158c18=!!(_0x2a161?.['is']('element','a')&&_0x2a161['parent']?.['is']('element','sup')&&_0x2a161['parent']['hasClass']('footnote'))&&_0xec9aed['getSelectedElement']()===_0x2a161['parent'];},{'priority':'high'}),this['listenTo'](_0x43f952['view']['document'],'click',(_0x79708a,_0x3891a2)=>{const {target:_0x50b07e}=_0x3891a2;if(!_0x50b07e?.['is']('element','a'))return;if(_0x50b07e['parent']?.['is']('element','sup')&&_0x50b07e['parent']['hasClass']('footnote')&&!_0x158c18)return void _0x3891a2['preventDefault']();let _0x37c834=_0x50b07e['getAttribute']('href');if(!_0x37c834?.['startsWith']('#'))return;_0x37c834=_0x37c834['slice'](0x1);let _0x878dc6=!0x1;(_0x37c834['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x37c834['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x37c834))&&(_0x878dc6=!0x0),_0x878dc6&&(_0x3891a2['preventDefault'](),_0x79708a['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1c6197}={}){return(_0x19d245,{writer:_0x69d099})=>{if(!p(_0x19d245))return null;if(!_0x1c6197)return _0x69d099['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1fd449=_0x69d099['createContainerElement']('p');return _0x69d099['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1fd449),_0x1fd449;};}function p(_0x4c163f){const {parent:_0x20e6a2}=_0x4c163f;if(!_0x20e6a2?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x20e6a2['childCount'])return!0x1;for(const _0x3cbfc4 of _0x4c163f['getAttributeKeys']())if(!_0x3cbfc4['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3cbfc4)return!0x1;return!0x0;}function g(_0x475d06,_0x4e3e6f){if(!_0x475d06['is']('element','paragraph'))return!0x1;const _0x4e2bfa=_0x4e3e6f['toViewElement'](_0x475d06);return!!_0x4e2bfa&&p(_0x475d06)!==_0x4e2bfa['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x42bc9d){return _0x24016d(_0x42bc9d)&&_0x42bc9d['is']('containerElement')&&!!_0x42bc9d['getCustomProperty']('footnotesDefinitions');}function v(_0x393978,_0x59e24={}){const _0x3bf7d2=_0x393978['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xd431e0=_0x393978['createContainerElement']('ol',{'class':'footnotes-list'},_0x393978['createSlot']());return _0x393978['createContainerElement']('div',{'class':'footnotes',..._0x59e24},[_0x3bf7d2,_0xd431e0]);}function D(_0x58a5de,_0x112491){const _0x5eefba=_0x58a5de['getAttribute']('footnoteId'),_0x542203=_0x58a5de['getAttribute']('footnoteCounter'),_0x133849=_0x112491['createUIElement']('a',{'href':'#'+_0x5eefba},function(_0x1a5673){const _0x10a8e8=this['toDomElement'](_0x1a5673);return _0x10a8e8['textContent']=_0x542203,_0x10a8e8;}),_0xc22a0e=_0x112491['createContainerElement']('sup',{'id':'ref-'+_0x5eefba,'class':'footnote'},[_0x133849]);return _0xc22a0e['getFillerOffset']=()=>null,_0xc22a0e;}function b(_0xea9c06,_0x5aa4e6,_0x1738a9,{dataPipeline:_0x4488e3}={}){const {t:t}=_0x1738a9,_0x350073=_0xea9c06['getAttribute']('footnoteId'),_0x99b47c=_0x5aa4e6['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x350073},function(_0x4689c8){const _0xbbe606=this['toDomElement'](_0x4689c8);return _0xbbe606['innerText']='^',_0xbbe606;}),_0x3dcc09=_0x4488e3?_0x5aa4e6['createContainerElement']('div',{'class':'footnote-content'}):_0x4fcb4c(_0x5aa4e6['createEditableElement']('div',{'class':'footnote-content'}),_0x5aa4e6,{'label':t('Footnote\x20content.')});return _0x5aa4e6['insert'](_0x5aa4e6['createPositionAt'](_0x3dcc09,0x0),_0x5aa4e6['createSlot']()),_0x5aa4e6['createContainerElement']('li',{'class':'footnote-definition','id':_0x350073},[_0x99b47c,_0x3dcc09]);}
|
|
23
|
+
import{Plugin as _0x1cc16c}from'ckeditor5/src/core.js';import{isWidget as _0x2f321f,toWidget as _0x1cc65a,toWidgetEditable as _0x41fca0}from'ckeditor5/src/widget.js';import{uid as _0x4dac05}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4bb29e,ClickObserver as _0x208f48}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x44dbe9}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x22334e}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1cc16c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x44dbe9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3cbeaa}=this;_0x3cbeaa['config']['define']('footnotes.multiBlock',!0x0),_0x3cbeaa['commands']['add']('insertFootnote',new _0x22334e(_0x3cbeaa)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4986f5){const _0x5c75ba=_0x3d3ea2([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]),_0x16602f=0x47a28506,_0x327c73=0x47a5ff4e^_0x16602f,_0x41f35e=window[_0x3d3ea2([0x44,0x61,0x74,0x65])][_0x3d3ea2([0x6e,0x6f,0x77])](),_0x584795=_0x4986f5[_0x3d3ea2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x203536=new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x129f9c=>{_0x584795[_0x3d3ea2([0x6f,0x6e,0x63,0x65])](_0x3d3ea2([0x72,0x65,0x61,0x64,0x79]),_0x129f9c);}),_0x3b2244={[_0x3d3ea2([0x6b,0x74,0x79])]:_0x3d3ea2([0x45,0x43]),[_0x3d3ea2([0x75,0x73,0x65])]:_0x3d3ea2([0x73,0x69,0x67]),[_0x3d3ea2([0x63,0x72,0x76])]:_0x3d3ea2([0x50,0x2d,0x32,0x35,0x36]),[_0x3d3ea2([0x78])]:_0x3d3ea2([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]),[_0x3d3ea2([0x79])]:_0x3d3ea2([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]),[_0x3d3ea2([0x61,0x6c,0x67])]:_0x3d3ea2([0x45,0x53,0x32,0x35,0x36])},_0x40fa4b=_0x584795[_0x3d3ea2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d3ea2([0x67,0x65,0x74])](_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2915db(){let _0x26d663,_0x3dcc06=null,_0x13e5ea=null;try{if(_0x40fa4b==_0x3d3ea2([0x47,0x50,0x4c]))return _0x3d3ea2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26d663=_0x17857b(),!_0x26d663)return _0x3d3ea2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26d663[_0x3d3ea2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13e5ea=_0x3e33f8(_0x26d663[_0x3d3ea2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26d663[_0x3d3ea2([0x6a,0x74,0x69])])),await _0x4ab2fe()?_0x2d6dc4()?_0x1cc2d3()?_0x3d3ea2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32705b()?(_0x26d663[_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3ea2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3dcc06=_0x353918(_0x3d3ea2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26d663[_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3ea2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3dcc06=_0x353918(_0x3d3ea2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17685b()):_0x3d3ea2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3ea2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d3ea2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d3ea2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cc2d3(){const _0x20397e=[_0x3d3ea2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d3ea2([0x74,0x72,0x69,0x61,0x6c])][_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26d663[_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41f35e/0x3e8:0xe10*_0x327c73;return _0x26d663[_0x3d3ea2([0x65,0x78,0x70])]<_0x20397e;}function _0x2d6dc4(){const _0x2b4411=_0x26d663[_0x3d3ea2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b4411&&(!!_0x2b4411[_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3ea2([0x2a]))||!!_0x2b4411[_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3ea2([0x46,0x4f,0x4f])));}function _0x32705b(){const _0x3be545=_0x26d663[_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3be545||0x0==_0x3be545[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb20236}=new URL(window[_0x3d3ea2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3be545[_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb20236))return!0x0;const _0x443a64=_0xb20236[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])](_0x3d3ea2([0x2e]));return _0x3be545[_0x3d3ea2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bc961=>_0x5bc961[_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3ea2([0x2a])))[_0x3d3ea2([0x6d,0x61,0x70])](_0x4c3856=>_0x4c3856[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])](_0x3d3ea2([0x2e])))[_0x3d3ea2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26383a=>_0x26383a[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x443a64[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3ea2([0x6d,0x61,0x70])](_0x41de5e=>Array(_0x443a64[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x41de5e[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3ea2([0x66,0x69,0x6c,0x6c])](_0x41de5e[0x0]===_0x3d3ea2([0x2a])?_0x3d3ea2([0x2a]):'')[_0x3d3ea2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x41de5e))[_0x3d3ea2([0x73,0x6f,0x6d,0x65])](_0x1353f7=>_0x443a64[_0x3d3ea2([0x65,0x76,0x65,0x72,0x79])]((_0x37053a,_0x277f1d)=>_0x1353f7[_0x277f1d]===_0x37053a||_0x1353f7[_0x277f1d]===_0x3d3ea2([0x2a])));}function _0x17685b(){return _0x3dcc06&&_0x13e5ea?new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x461b3f,_0x3864d4)=>{_0x3dcc06[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x461b3f,_0x3864d4),_0x13e5ea[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x5888ba=>{_0x5888ba!=_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64])&&_0x461b3f(_0x5888ba);},_0x3864d4);}):_0x3dcc06||_0x13e5ea||_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e33f8(_0x4c8fdd,_0x2f13bd){return new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ca74b=>{if(_0xb619e3())return _0x1ca74b(_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64]));_0x232b24(),_0x584795[_0x3d3ea2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d3ea2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x352248=!0x1;const _0x304249=_0x4dac05();function _0x1cceae(_0x2bbf34){return!!_0x2bbf34&&(typeof _0x2bbf34===_0x3d3ea2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2bbf34===_0x3d3ea2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2bbf34[_0x3d3ea2([0x74,0x68,0x65,0x6e])]===_0x3d3ea2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2bbf34[_0x3d3ea2([0x63,0x61,0x74,0x63,0x68])]===_0x3d3ea2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45c0dc(_0x4060a2){_0x4f1bf5(_0x4060a2)[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x4d6366=>{if(!_0x4d6366||_0x4d6366[_0x3d3ea2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d3ea2([0x6f,0x6b]))return _0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2801d8(_0x39c0bb(_0x304249+_0x2f13bd))!=_0x4d6366[_0x3d3ea2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x1874e3=>(_0xe115e1(),_0x1874e3),()=>{const _0x26d7cb=_0x3636e3();return null==_0x26d7cb?(_0xe115e1(),_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64])):_0x3d3ea2(_0x41f35e-_0x26d7cb>(0x63ae0106^_0x16602f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x1ca74b)[_0x3d3ea2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ca74b(_0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c245d=0x47946b86^_0x16602f;function _0xe115e1(){const _0x535f1e=_0x3d3ea2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2801d8(_0x39c0bb(_0x4c8fdd)),_0x41abaf=_0x14750e(_0x2801d8(window[_0x3d3ea2([0x4d,0x61,0x74,0x68])][_0x3d3ea2([0x63,0x65,0x69,0x6c])](_0x41f35e/_0x3c245d)));window[_0x3d3ea2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3ea2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x535f1e,_0x41abaf);}function _0x3636e3(){const _0x26a51e=_0x3d3ea2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2801d8(_0x39c0bb(_0x4c8fdd)),_0x3e6323=window[_0x3d3ea2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3ea2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26a51e);return _0x3e6323?window[_0x3d3ea2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14750e(_0x3e6323),0x10)*_0x3c245d:null;}function _0x4f1bf5(_0x525f38){return new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fd47b,_0xb7257b)=>{_0x525f38[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x3fd47b,_0xb7257b),window[_0x3d3ea2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb7257b,0x47a351c6^_0x16602f);});}}_0x584795[_0x3d3ea2([0x6f,0x6e])](_0x3d3ea2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bf9dc,_0x437a45)=>{if(_0x437a45[0x0]!=_0x4c8fdd)return _0x1ca74b(_0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x437a45[0x1]={..._0x437a45[0x1],[_0x3d3ea2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x304249};},{[_0x3d3ea2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3ea2([0x68,0x69,0x67,0x68])}),_0x584795[_0x3d3ea2([0x6f,0x6e])](_0x3d3ea2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b414a=>{_0x1cceae(_0x1b414a[_0x3d3ea2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x352248=!0x0,_0x45c0dc(_0x1b414a[_0x3d3ea2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d3ea2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3ea2([0x6c,0x6f,0x77])}),_0x203536[_0x3d3ea2([0x74,0x68,0x65,0x6e])](()=>{_0x352248||_0x1ca74b(_0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb619e3(){return _0x584795[_0x3d3ea2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3ea2([0x76,0x69,0x65,0x77])][_0x3d3ea2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d3ea2([0x61,0x75,0x74,0x6f]);}function _0x232b24(){_0x584795[_0x3d3ea2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3ea2([0x76,0x69,0x65,0x77])][_0x3d3ea2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3ea2([0x61,0x75,0x74,0x6f]);}}function _0x353918(_0x28bc04){const _0x5d1031=[new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa0c95e=>setTimeout(_0xa0c95e,0x47abbbca^_0x16602f)),_0x203536[_0x3d3ea2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a9baf=>{let _0x524359=0x0;_0x584795[_0x3d3ea2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3ea2([0x6f,0x6e])](_0x3d3ea2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1de35a,_0x5dc9ff)=>{_0x5dc9ff[0x0][_0x3d3ea2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x524359++,_0x524359==(0x47a284fe^_0x16602f)&&(_0x1a9baf(),_0x1de35a[_0x3d3ea2([0x6f,0x66,0x66])]());});}))];return window[_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3ea2([0x72,0x61,0x63,0x65])](_0x5d1031)[_0x3d3ea2([0x74,0x68,0x65,0x6e])](()=>_0x28bc04);}async function _0x53b7a4(){await _0x203536,_0x584795[_0x3d3ea2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3ea2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x586a5b,_0x584795[_0x3d3ea2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3ea2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x586a5b,_0x584795[_0x3d3ea2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d3ea2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15aa31(_0x584181){const _0x43938a=_0xe52af5();_0x584795[_0x43938a]=_0x3d3ea2([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x584181,_0x584181!=_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64])&&_0x53b7a4();}function _0xe52af5(){const _0x2fb699=window[_0x3d3ea2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d3ea2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d3ea2([0x6e,0x6f,0x77])]())[_0x3d3ea2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d3ea2([0x2e]),'');let _0xbbeaa7=_0x3d3ea2([0x75]);for(let _0xa0b471=0x0;_0xa0b471<_0x2fb699[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa0b471+=0x2){let _0x3fff9b=window[_0x3d3ea2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fb699[_0x3d3ea2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa0b471,_0xa0b471+0x2));_0x3fff9b>=_0x5c75ba[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fff9b-=_0x5c75ba[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xbbeaa7+=_0x5c75ba[_0x3fff9b];}return _0xbbeaa7;}function _0x17857b(){const _0x27ae10=_0x40fa4b[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])](_0x3d3ea2([0x2e]));if(0x3!=_0x27ae10[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x265edb(_0x27ae10[0x1]);function _0x265edb(_0x514f2e){const _0x3dd72d=_0x45782e(_0x514f2e);return _0x3dd72d&&_0x3aa996()?_0x3dd72d:null;function _0x3aa996(){const _0x24dc1e=_0x3dd72d[_0x3d3ea2([0x6a,0x74,0x69])],_0x110a63=window[_0x3d3ea2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24dc1e[_0x3d3ea2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24dc1e[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd31ced={..._0x3dd72d,[_0x3d3ea2([0x6a,0x74,0x69])]:_0x24dc1e[_0x3d3ea2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24dc1e[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd31ced[_0x3d3ea2([0x76,0x63])],_0x39c0bb(_0xd31ced)==_0x110a63;}}}async function _0x4ab2fe(){let _0x1ac1ae=!0x0;try{const _0x4dc70d=_0x40fa4b[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])](_0x3d3ea2([0x2e])),[_0x2451e5,_0x2b94ab,_0x4979df]=_0x4dc70d;return _0x3a48ac(_0x2451e5),await _0x37c58f(_0x2451e5,_0x2b94ab,_0x4979df),_0x1ac1ae;}catch{return!0x1;}function _0x3a48ac(_0x7aa957){const _0x27ce41=_0x45782e(_0x7aa957);_0x27ce41&&_0x27ce41[_0x3d3ea2([0x61,0x6c,0x67])]==_0x3d3ea2([0x45,0x53,0x32,0x35,0x36])||(_0x1ac1ae=!0x1);}async function _0x37c58f(_0x2d5e13,_0xbef811,_0x4c1a66){const _0x535c1b=window[_0x3d3ea2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d3ea2([0x66,0x72,0x6f,0x6d])](_0x172ca9(_0x4c1a66),_0x4a3db2=>_0x4a3db2[_0x3d3ea2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x233ae3=new window[(_0x3d3ea2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d3ea2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d5e13+_0x3d3ea2([0x2e])+_0xbef811),_0x57ac77=window[_0x3d3ea2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d3ea2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57ac77)return;const _0x583056=await _0x57ac77[_0x3d3ea2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d3ea2([0x6a,0x77,0x6b]),_0x3b2244,{[_0x3d3ea2([0x6e,0x61,0x6d,0x65])]:_0x3d3ea2([0x45,0x43,0x44,0x53,0x41]),[_0x3d3ea2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d3ea2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d3ea2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57ac77[_0x3d3ea2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d3ea2([0x6e,0x61,0x6d,0x65])]:_0x3d3ea2([0x45,0x43,0x44,0x53,0x41]),[_0x3d3ea2([0x68,0x61,0x73,0x68])]:{[_0x3d3ea2([0x6e,0x61,0x6d,0x65])]:_0x3d3ea2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x583056,_0x535c1b,_0x233ae3)||(_0x1ac1ae=!0x1);}}function _0x45782e(_0x2d96aa){return _0x2d96aa[_0x3d3ea2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d3ea2([0x65,0x79]))?JSON[_0x3d3ea2([0x70,0x61,0x72,0x73,0x65])](_0x172ca9(_0x2d96aa)):null;}function _0x172ca9(_0x31c474){return window[_0x3d3ea2([0x61,0x74,0x6f,0x62])](_0x31c474[_0x3d3ea2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d3ea2([0x2b]))[_0x3d3ea2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d3ea2([0x2f])));}function _0x39c0bb(_0x506028){let _0x296e3f=0x1505;function _0x368dc8(_0xacb296){for(let _0x2881f7=0x0;_0x2881f7<_0xacb296[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2881f7++){const _0x1acbe6=_0xacb296[_0x3d3ea2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2881f7);_0x296e3f=(_0x296e3f<<0x5)+_0x296e3f+_0x1acbe6,_0x296e3f&=_0x296e3f;}}function _0x541fc5(_0xae7c26){Array[_0x3d3ea2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xae7c26)?_0xae7c26[_0x3d3ea2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x541fc5):_0xae7c26&&typeof _0xae7c26==_0x3d3ea2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d3ea2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xae7c26)[_0x3d3ea2([0x73,0x6f,0x72,0x74])]()[_0x3d3ea2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59173c,_0x1e7c6d])=>{_0x368dc8(_0x59173c),_0x541fc5(_0x1e7c6d);}):_0x368dc8(window[_0x3d3ea2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xae7c26));}return _0x541fc5(_0x506028),_0x296e3f>>>0x0;}function _0x2801d8(_0x367edc){return _0x367edc[_0x3d3ea2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d3ea2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d3ea2([0x30]));}function _0x14750e(_0x1ab83f){return _0x1ab83f[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d3ea2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d3ea2([0x6a,0x6f,0x69,0x6e])]('');}function _0x586a5b(){}function _0x3d3ea2(_0x3b2adb){return _0x3b2adb['map'](_0x470c5b=>String['fromCharCode'](_0x470c5b))['join']('');}_0x15aa31(await _0x2915db());}(this);}['_moveSelectionToFootnoteDefinition'](_0x34895c){const {plugins:_0x522ffc,editing:_0x1a1ae5,model:_0x492e42}=this['editor'],_0x1316e3=_0x522ffc['get'](_0x44dbe9)['getFootnote'](_0x34895c);return!!_0x1316e3&&(_0x492e42['change'](_0x1807ef=>{_0x1807ef['setSelection'](_0x1807ef['createPositionAt'](_0x1316e3['definition'],'end'));}),_0x1a1ae5['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x575108){const {plugins:_0xf0b1c7,editing:_0x9b360d,model:_0x47d5cf}=this['editor'],_0x329d09=_0xf0b1c7['get'](_0x44dbe9)['getFootnote'](_0x575108);return!!_0x329d09&&(_0x47d5cf['change'](_0x31f6f1=>{_0x31f6f1['setSelection'](_0x329d09['reference'],'on');}),_0x9b360d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xe94478}=this['editor']['model'],_0x551d5e=this['editor']['config']['get']('footnotes.multiBlock');_0xe94478['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xe94478['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xe94478['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x551d5e?_0xe94478['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xe94478['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xe94478['addChildCheck'](_0x3e7212=>{for(const _0x496f7f of _0x3e7212)if('footnoteDefinition'===_0x496f7f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xcdb3d1}=this,{conversion:_0x53fc9d,editing:_0x188895}=_0xcdb3d1,{t:t}=_0xcdb3d1['locale'];_0x53fc9d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x50c09e,{writer:_0x196dc8,consumable:_0x52cda1})=>{const _0x2dd56b=_0x50c09e['getChild'](0x0);if(!_0x2dd56b||!_0x2dd56b['is']('element','a'))return null;const _0x363592=_0x2dd56b['getAttribute']('href')||'';if(!_0x363592['startsWith']('#'))return null;const _0x2157a2=_0x363592['replace'](/^#/,'');if(!_0x2157a2)return null;_0x52cda1['consume'](_0x2dd56b,{'name':!0x0,'attributes':['href']});for(const {item:_0x45f875}of _0x188895['view']['createRangeIn'](_0x2dd56b))_0x45f875['is']('$textProxy')?_0x52cda1['consume'](_0x45f875['textNode'],{'name':!0x0}):_0x45f875['is']('element')&&_0x52cda1['consume'](_0x45f875,{'name':!0x0});return _0x196dc8['createElement']('footnoteRef',{'footnoteId':_0x2157a2});}}),_0x53fc9d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xc39a14,{writer:_0x35df63})=>D(_0xc39a14,_0x35df63)}),_0x53fc9d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1f1e2e,{writer:_0x3e48ee})=>{const _0x2bf8ca=_0x1f1e2e['getAttribute']('footnoteCounter');return _0x1cc65a(D(_0x1f1e2e,_0x3e48ee),_0x3e48ee,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2bf8ca)});}});}['_defineDefinitionsConverters'](){const {editor:_0x486f25}=this,{t:t}=_0x486f25['locale'],{conversion:_0x245f75}=_0x486f25;_0x245f75['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x245f75['for']('upcast')['add'](_0x51b918=>{_0x51b918['on']('element:ol',(_0x5304cf,_0x1c18f6,_0x55d5d2)=>{const _0x1b831e=_0x1c18f6['viewItem'];if(!_0x1b831e['hasClass']('footnotes-list')||!_0x1c18f6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x55d5d2['consumable']['consume'](_0x1b831e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x212bed,modelCursor:_0x26e7bc}=_0x55d5d2['convertChildren'](_0x1c18f6['viewItem'],_0x1c18f6['modelCursor']);_0x1c18f6['modelRange']=_0x212bed,_0x1c18f6['modelCursor']=_0x26e7bc;}),_0x51b918['on']('element:hr',(_0x2bccc9,_0x1cbd93,_0x54fc84)=>{const _0xadf1fe=_0x1cbd93['viewItem'];_0xadf1fe['hasClass']('footnotes-divider')&&_0x1cbd93['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x54fc84['consumable']['consume'](_0xadf1fe,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x245f75['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e282c,{writer:_0x30f963})=>v(_0x30f963)}),_0x245f75['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1baa42,{writer:_0x3bd320})=>{const _0x204730=v(_0x3bd320,{'data-footnotes-list-label':t('Footnotes')}),_0x2265c4=_0x1cc65a(_0x204730,_0x3bd320,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3bd320['setCustomProperty']('footnotesDefinitions',!0x0,_0x2265c4),_0x2265c4;}});}['_defineDefinitionConverters'](){const {editor:_0x371834}=this,{conversion:_0x71774a,locale:_0xb4d34}=_0x371834,_0xff0ec2=_0x371834['config']['get']('footnotes.multiBlock');_0x71774a['for']('upcast')['add'](_0x3252a0=>{_0x3252a0['on']('element:li',(_0x1d35e1,_0x571766,_0x40cd69)=>{const _0x42a166=_0x571766['viewItem'];if(!_0x42a166['hasClass']('footnote-definition')||!_0x42a166['getAttribute']('id'))return;const _0x590a94=_0x42a166['parent'];if(!_0x590a94['is']('element','ol')||!_0x590a94['hasClass']('footnotes-list'))return;if(!_0x40cd69['consumable']['test'](_0x42a166,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x59a5cd=_0x40cd69['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x42a166['getAttribute']('id')});if(!_0x40cd69['safeInsert'](_0x59a5cd,_0x571766['modelCursor']))return;_0x40cd69['consumable']['consume'](_0x42a166,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2085e4=Array['from'](_0x42a166['getChildren']())['find'](_0x395f85=>_0x395f85['is']('element')&&_0x395f85['hasClass']('footnote-content'));for(const _0x162f55 of _0x42a166['getChildren']())_0x162f55['is']('element')&&(_0x40cd69['consumable']['consume'](_0x162f55,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x40cd69['consumable']['consume'](_0x162f55,{'name':!0x0,'classes':'footnote-content'}));if(_0x2085e4){if(_0xff0ec2)_0x40cd69['convertChildren'](_0x2085e4,_0x59a5cd);else{const _0x4735da=_0x40cd69['writer']['createElement']('footnoteInlineContent');_0x40cd69['writer']['insert'](_0x4735da,_0x59a5cd),_0x40cd69['convertChildren'](_0x2085e4,_0x4735da);}}_0x40cd69['updateConversionResult'](_0x59a5cd,_0x571766);});}),_0x71774a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3a8e4b,{writer:_0x204415})=>b(_0x3a8e4b,_0x204415,_0xb4d34,{'dataPipeline':!0x0})}),_0x71774a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x43a0e6,{writer:_0x324980})=>b(_0x43a0e6,_0x324980,_0xb4d34)});}['_defineBogusParagraphConverters'](){const {editor:_0x3ac3d8}=this,{conversion:_0x1e588f}=_0x3ac3d8;_0x3ac3d8['config']['get']('footnotes.multiBlock')?(_0x1e588f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1e588f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3ac3d8['model']['document'],'change:data',()=>{!function(_0x57cf73,_0x2212db){const _0x206c4a=_0x57cf73['document']['differ'],_0x3aebfa=new Set();for(const _0x5a1aca of _0x206c4a['getChanges']()){const _0x5bf59a='attribute'==_0x5a1aca['type']?_0x5a1aca['range']['start']['parent']:_0x5a1aca['position']['parent'];_0x5bf59a['is']('element','footnoteDefinition')&&_0x3aebfa['add'](_0x5bf59a);}for(const _0x29d803 of _0x3aebfa['values']()){const _0x1217f7=Array['from'](_0x29d803['getChildren']())['filter'](_0x562c3b=>g(_0x562c3b,_0x2212db['mapper']));for(const _0x24ee0b of _0x1217f7)_0x2212db['reconvertItem'](_0x24ee0b);}}(_0x3ac3d8['model'],_0x3ac3d8['editing']);})):(_0x1e588f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1e588f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x54ba38,{writer:_0x2dfb9a})=>{const _0x582e25=_0x2dfb9a['createContainerElement']('span');return _0x2dfb9a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x582e25),_0x582e25;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3f62cc}=this,{editing:_0x67d666,t:t}=_0x3f62cc,_0x280b3e=_0x3f62cc['model']['document']['selection'];_0x3f62cc['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3f62cc['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x67d666['view']['document'],'enter',(_0x35b724,_0x165cd0)=>{const _0x40b5a2=function(_0x5d32d4){const _0xc00916=_0x5d32d4['getSelectedElement']();if(_0xc00916?.['is']('element','footnoteRef'))return _0xc00916;return null;}(_0x280b3e);if(_0x40b5a2){const _0x117449=_0x40b5a2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x117449),_0x165cd0['preventDefault'](),_0x35b724['stop']();}},{'context':_0x2f321f});}['_defineClickHandlers'](){const {editor:_0x5bdc9a}=this,{editing:_0x2066a8}=_0x5bdc9a;_0x5bdc9a['editing']['view']['addObserver'](_0x4bb29e),_0x5bdc9a['editing']['view']['addObserver'](_0x208f48);let _0x4b0a7=!0x1;this['listenTo'](_0x2066a8['view']['document'],'pointerdown',(_0x42f06d,_0x311fb0)=>{const {target:_0x350669}=_0x311fb0,_0x356321=_0x2066a8['view']['document']['selection'];_0x4b0a7=!!(_0x350669?.['is']('element','a')&&_0x350669['parent']?.['is']('element','sup')&&_0x350669['parent']['hasClass']('footnote'))&&_0x356321['getSelectedElement']()===_0x350669['parent'];},{'priority':'high'}),this['listenTo'](_0x2066a8['view']['document'],'click',(_0x3e836a,_0x282b5e)=>{const {target:_0x11ac1a}=_0x282b5e;if(!_0x11ac1a?.['is']('element','a'))return;if(_0x11ac1a['parent']?.['is']('element','sup')&&_0x11ac1a['parent']['hasClass']('footnote')&&!_0x4b0a7)return void _0x282b5e['preventDefault']();let _0xf0887=_0x11ac1a['getAttribute']('href');if(!_0xf0887?.['startsWith']('#'))return;_0xf0887=_0xf0887['slice'](0x1);let _0x5aa959=!0x1;(_0xf0887['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xf0887['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xf0887))&&(_0x5aa959=!0x0),_0x5aa959&&(_0x282b5e['preventDefault'](),_0x3e836a['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1d771b}={}){return(_0x388145,{writer:_0x1f6543})=>{if(!p(_0x388145))return null;if(!_0x1d771b)return _0x1f6543['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x911d6c=_0x1f6543['createContainerElement']('p');return _0x1f6543['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x911d6c),_0x911d6c;};}function p(_0x41605f){const {parent:_0x550562}=_0x41605f;if(!_0x550562?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x550562['childCount'])return!0x1;for(const _0x687553 of _0x41605f['getAttributeKeys']())if(!_0x687553['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x687553)return!0x1;return!0x0;}function g(_0x1749c0,_0x186f71){if(!_0x1749c0['is']('element','paragraph'))return!0x1;const _0x38ba62=_0x186f71['toViewElement'](_0x1749c0);return!!_0x38ba62&&p(_0x1749c0)!==_0x38ba62['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3877cf){return _0x2f321f(_0x3877cf)&&_0x3877cf['is']('containerElement')&&!!_0x3877cf['getCustomProperty']('footnotesDefinitions');}function v(_0x455d1a,_0x56d55c={}){const _0x2be6dc=_0x455d1a['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1c8b1c=_0x455d1a['createContainerElement']('ol',{'class':'footnotes-list'},_0x455d1a['createSlot']());return _0x455d1a['createContainerElement']('div',{'class':'footnotes',..._0x56d55c},[_0x2be6dc,_0x1c8b1c]);}function D(_0x374141,_0x28961a){const _0x343a99=_0x374141['getAttribute']('footnoteId'),_0x27ea97=_0x374141['getAttribute']('footnoteCounter'),_0x12bee4=_0x28961a['createUIElement']('a',{'href':'#'+_0x343a99},function(_0x222832){const _0x5e7f25=this['toDomElement'](_0x222832);return _0x5e7f25['textContent']=_0x27ea97,_0x5e7f25;}),_0x1ee969=_0x28961a['createContainerElement']('sup',{'id':'ref-'+_0x343a99,'class':'footnote'},[_0x12bee4]);return _0x1ee969['getFillerOffset']=()=>null,_0x1ee969;}function b(_0x42962b,_0x3d62ad,_0x5719b3,{dataPipeline:_0x1594f0}={}){const {t:t}=_0x5719b3,_0x38f17c=_0x42962b['getAttribute']('footnoteId'),_0x1a9573=_0x3d62ad['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x38f17c},function(_0x13cdc2){const _0x1da22e=this['toDomElement'](_0x13cdc2);return _0x1da22e['innerText']='^',_0x1da22e;}),_0x1ed255=_0x1594f0?_0x3d62ad['createContainerElement']('div',{'class':'footnote-content'}):_0x41fca0(_0x3d62ad['createEditableElement']('div',{'class':'footnote-content'}),_0x3d62ad,{'label':t('Footnote\x20content.')});return _0x3d62ad['insert'](_0x3d62ad['createPositionAt'](_0x1ed255,0x0),_0x3d62ad['createSlot']()),_0x3d62ad['createContainerElement']('li',{'class':'footnote-definition','id':_0x38f17c},[_0x1a9573,_0x1ed255]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x291b(){const _0x17aa75=['value','isInteger','change','4VYbFCt','10NjkgfO','6015690YvMCXu','getAttribute','execute','64780NapTsK','8200171UUtENo','_updateFootnotesCounters','9271493MSiFVy','model','plugins','setAttribute','6574976spWPGQ','get','footnotesListStart','refresh','1635222lWReQB','isEnabled','961513wFHdOA','85svIQyI','getFootnotesDefinitionsObjectElement','6lSFSuu'];_0x291b=function(){return _0x17aa75;};return _0x291b();}const _0x57c711=_0x4358;(function(_0x2daecc,_0x17ac6f){const _0x2fadc2=_0x4358,_0x3e3d5a=_0x2daecc();while(!![]){try{const _0x4f7b82=parseInt(_0x2fadc2(0x1ea))/0x1+-parseInt(_0x2fadc2(0x1f1))/0x2*(parseInt(_0x2fadc2(0x1e8))/0x3)+-parseInt(_0x2fadc2(0x1dd))/0x4*(-parseInt(_0x2fadc2(0x1eb))/0x5)+-parseInt(_0x2fadc2(0x1ed))/0x6*(-parseInt(_0x2fadc2(0x1de))/0x7)+-parseInt(_0x2fadc2(0x1e4))/0x8+-parseInt(_0x2fadc2(0x1f3))/0x9*(parseInt(_0x2fadc2(0x1f2))/0xa)+parseInt(_0x2fadc2(0x1e0))/0xb;if(_0x4f7b82===_0x17ac6f)break;else _0x3e3d5a['push'](_0x3e3d5a['shift']());}catch(_0x1077f1){_0x3e3d5a['push'](_0x3e3d5a['shift']());}}}(_0x291b,0xa3bfa));function _0x4358(_0x1750b8,_0x357825){const _0x291bdd=_0x291b();return _0x4358=function(_0x43588b,_0x285d46){_0x43588b=_0x43588b-0x1db;let _0x49f037=_0x291bdd[_0x43588b];return _0x49f037;},_0x4358(_0x1750b8,_0x357825);}import{Command as _0x250042}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x21770f}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x250042{[_0x57c711(0x1e7)](){const _0x50f067=_0x57c711,{editor:_0x33c2d8}=this,_0x3b3808=_0x33c2d8[_0x50f067(0x1e2)][_0x50f067(0x1e5)](_0x21770f)[_0x50f067(0x1ec)]();this[_0x50f067(0x1e9)]=!!_0x3b3808,this[_0x50f067(0x1ee)]=_0x3b3808?.[_0x50f067(0x1db)](_0x50f067(0x1e6))??null;}[_0x57c711(0x1dc)]({value:_0x327ba2}){const _0xc58dae=_0x57c711,{editor:_0x308533}=this,_0x319400=_0x308533[_0xc58dae(0x1e2)][_0xc58dae(0x1e5)](_0x21770f),_0x37e42c=_0x319400[_0xc58dae(0x1ec)]();_0x37e42c&&Number[_0xc58dae(0x1ef)](_0x327ba2)&&_0x308533[_0xc58dae(0x1e1)][_0xc58dae(0x1f0)](_0x431178=>{const _0x121f21=_0xc58dae;_0x431178[_0x121f21(0x1e3)](_0x121f21(0x1e6),_0x327ba2,_0x37e42c),_0x319400[_0x121f21(0x1df)](_0x431178);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3d5f(_0x40d725,_0x54035a){const _0x164d07=_0x164d();return _0x3d5f=function(_0x3d5f26,_0x2b5258){_0x3d5f26=_0x3d5f26-0x93;let _0x1e3fdd=_0x164d07[_0x3d5f26];return _0x1e3fdd;},_0x3d5f(_0x40d725,_0x54035a);}const _0x598696=_0x3d5f;(function(_0x362e7c,_0x3019b8){const _0x375e0c=_0x3d5f,_0x25baaf=_0x362e7c();while(!![]){try{const _0x3b58ce=-parseInt(_0x375e0c(0xa2))/0x1+parseInt(_0x375e0c(0x9d))/0x2*(-parseInt(_0x375e0c(0x9b))/0x3)+parseInt(_0x375e0c(0xa3))/0x4+-parseInt(_0x375e0c(0xa5))/0x5+parseInt(_0x375e0c(0x9c))/0x6+-parseInt(_0x375e0c(0x94))/0x7+-parseInt(_0x375e0c(0xa9))/0x8*(-parseInt(_0x375e0c(0x9e))/0x9);if(_0x3b58ce===_0x3019b8)break;else _0x25baaf['push'](_0x25baaf['shift']());}catch(_0x267581){_0x25baaf['push'](_0x25baaf['shift']());}}}(_0x164d,0x88895));import{Command as _0x3bab7b}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x300da0}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x1011be}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x3bab7b{[_0x598696(0x9f)](){const _0x4f8593=_0x598696,{editor:_0x491f87}=this,_0x5eef22=_0x491f87[_0x4f8593(0xa4)][_0x4f8593(0x9a)](_0x1011be)[_0x4f8593(0xa6)]();this[_0x4f8593(0x95)]=!!_0x5eef22,this[_0x4f8593(0x93)]=_0x5eef22?.[_0x4f8593(0xa7)](_0x4f8593(0xa0))??null;}[_0x598696(0x98)]({value:_0x3e1501}){const _0x1341ca=_0x598696,{editor:_0x50242b}=this,_0x2d7dac=_0x50242b[_0x1341ca(0xa4)][_0x1341ca(0x9a)](_0x1011be),_0x58cb11=_0x2d7dac[_0x1341ca(0xa6)]();_0x58cb11&&_0x300da0[_0x1341ca(0xa8)](_0x3e1501)&&_0x50242b[_0x1341ca(0x97)][_0x1341ca(0x96)](_0xa3f69f=>{const _0x154ec5=_0x1341ca;_0xa3f69f[_0x154ec5(0xa1)](_0x154ec5(0xa0),_0x3e1501,_0x58cb11),_0x2d7dac[_0x154ec5(0x99)](_0xa3f69f);});}}function _0x164d(){const _0x4f31fd=['getAttribute','includes','35776retOcH','value','6956488GQLXHF','isEnabled','change','model','execute','_updateFootnotesCounters','get','1410522lUQgcz','266094mRnoUY','2fYpepD','4419nolYee','refresh','footnotesListStyle','setAttribute','965873XjbhiB','3854352TZQyWE','plugins','1073025rPKJUj','getFootnotesDefinitionsObjectElement'];_0x164d=function(){return _0x4f31fd;};return _0x164d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dee53=_0x4cdb;(function(_0x5ed69b,_0x134333){const _0x4f78f5=_0x4cdb,_0x55b3bf=_0x5ed69b();while(!![]){try{const _0x1d5ff9=parseInt(_0x4f78f5(0x1f5))/0x1*(parseInt(_0x4f78f5(0x1f8))/0x2)+-parseInt(_0x4f78f5(0x1f4))/0x3*(parseInt(_0x4f78f5(0x1f2))/0x4)+-parseInt(_0x4f78f5(0x1fb))/0x5*(-parseInt(_0x4f78f5(0x1fa))/0x6)+parseInt(_0x4f78f5(0x1fc))/0x7+parseInt(_0x4f78f5(0x1f7))/0x8*(parseInt(_0x4f78f5(0x1ff))/0x9)+parseInt(_0x4f78f5(0x1fd))/0xa+-parseInt(_0x4f78f5(0x1f1))/0xb;if(_0x1d5ff9===_0x134333)break;else _0x55b3bf['push'](_0x55b3bf['shift']());}catch(_0x41a384){_0x55b3bf['push'](_0x55b3bf['shift']());}}}(_0x5f54,0x62c41));function _0x5f54(){const _0x3839f0=['34786GsVCYf','upper-latin','7374ZKAqCO','1445NygWIn','1975344UsxAdA','1375590fMzkCf','lower-alpha','595071nZPeyU','upper-alpha','lower-roman','upper-roman','lower-latin','9095493HHmPuj','476fhiWWQ','decimal-leading-zero','12615CxHXZK','17loMcFh','decimal','80Azhwru'];_0x5f54=function(){return _0x3839f0;};return _0x5f54();}function _0x4cdb(_0x42d5d6,_0x101a0c){const _0x5f5414=_0x5f54();return _0x4cdb=function(_0x4cdb4b,_0x557395){_0x4cdb4b=_0x4cdb4b-0x1f0;let _0x56619a=_0x5f5414[_0x4cdb4b];return _0x56619a;},_0x4cdb(_0x42d5d6,_0x101a0c);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x5dee53(0x1f6),_0x5dee53(0x1f3),_0x5dee53(0x1f0),_0x5dee53(0x1f9),_0x5dee53(0x1fe),_0x5dee53(0x200),_0x5dee53(0x201),_0x5dee53(0x202)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x42b3f9=_0x3e5c;(function(_0x2bb2cb,_0x486388){const _0x3a35fe=_0x3e5c,_0xbe2540=_0x2bb2cb();while(!![]){try{const _0x5b987d=-parseInt(_0x3a35fe(0x209))/0x1+parseInt(_0x3a35fe(0x1e9))/0x2+-parseInt(_0x3a35fe(0x1d0))/0x3*(-parseInt(_0x3a35fe(0x1c2))/0x4)+parseInt(_0x3a35fe(0x1fb))/0x5*(-parseInt(_0x3a35fe(0x1da))/0x6)+-parseInt(_0x3a35fe(0x1c5))/0x7+parseInt(_0x3a35fe(0x20a))/0x8*(-parseInt(_0x3a35fe(0x1bf))/0x9)+-parseInt(_0x3a35fe(0x1c8))/0xa*(-parseInt(_0x3a35fe(0x200))/0xb);if(_0x5b987d===_0x486388)break;else _0xbe2540['push'](_0xbe2540['shift']());}catch(_0x4f7566){_0xbe2540['push'](_0xbe2540['shift']());}}}(_0x86b5,0xac847));import{Plugin as _0x4e6cb8}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x27c510}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x30c699}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x275238}from'../footnotestracker.js';import{FootnotesEditing as _0x1ee36a}from'../footnotesediting.js';function _0x86b5(){const _0x3abf98=['element:ol','footnotesListStart','getChildren','footnotesDefinitions','isNaN','start','footnotesListStyle','getStyle','getChanges','registerPostFixer','createRangeOn','commands','footnotes.footnotesProperties.defaultStartIndex','requires','1989802Nhqvfu','element','fromCharCode','max','checkAttribute','downcast','extend','removeStyle','add','type','hasAttribute','plugins','_getDefaultStartIndex','_formatFootnoteListValue','get','mapper','setAttribute','differ','5GQbqod','footnotesStart','upper-latin','upcast','_getDefaultListStyle','341UvPbNH','insert','_defineConverters','decimal-leading-zero','attribute:footnotesListStart:footnotesDefinitions','lower-alpha','list-style-type','decimal','attribute:footnotesListStyle:footnotesDefinitions','348562zvBkcj','8vecDXN','getAttribute','upper-alpha','name','define','upper-roman','nodeAfter','footnotes-list','document','$text','footnotes.footnotesProperties.defaultListStyle','_defineFormatter','schema','_updateFootnotesCounters','init','item','hasClass','floor','parent','setFootnoteFormatter','toViewElement','_defineSchema','find','pluginName','consume','_definePostfixer','config','8123211zFaxAG','modelCursor','from','2196pcXxTm','position','toUpperCase','2335781SmeXQm','viewItem','isPremiumPlugin','447890IRwVMU','model','setStyle','writer','toLowerCase','for','editor','lower-roman','1206LpBtil','removeAttribute','isOfficialPlugin','parseInt','getItems','padStart','lower-latin','consumable','FootnotesPropertiesEditing','footnotesStyle','1875618eqPmvS'];_0x86b5=function(){return _0x3abf98;};return _0x86b5();}function _0x3e5c(_0x55cdbb,_0x1bbf19){const _0x86b5e=_0x86b5();return _0x3e5c=function(_0x3e5c6a,_0x1f502b){_0x3e5c6a=_0x3e5c6a-0x1bc;let _0x238172=_0x86b5e[_0x3e5c6a];return _0x238172;},_0x3e5c(_0x55cdbb,_0x1bbf19);}export class FootnotesPropertiesEditing extends _0x4e6cb8{static get[_0x42b3f9(0x221)](){const _0x24a91a=_0x42b3f9;return _0x24a91a(0x1d8);}static get[_0x42b3f9(0x1e8)](){return[_0x1ee36a,_0x275238];}static get[_0x42b3f9(0x1d2)](){return!0x0;}static get[_0x42b3f9(0x1c7)](){return!0x0;}[_0x42b3f9(0x218)](){const _0x20892f=_0x42b3f9,{editor:_0x13e917}=this;_0x13e917[_0x20892f(0x1be)][_0x20892f(0x20e)](_0x20892f(0x214),_0x20892f(0x207)),_0x13e917[_0x20892f(0x1be)][_0x20892f(0x20e)](_0x20892f(0x1e7),0x1),_0x13e917[_0x20892f(0x1e6)][_0x20892f(0x1f1)](_0x20892f(0x1d9),new _0x27c510(_0x13e917)),_0x13e917[_0x20892f(0x1e6)][_0x20892f(0x1f1)](_0x20892f(0x1fc),new _0x30c699(_0x13e917)),this[_0x20892f(0x21f)](),this[_0x20892f(0x202)](),this[_0x20892f(0x215)](),this[_0x20892f(0x1bd)]();}[_0x42b3f9(0x21f)](){const _0x38223f=_0x42b3f9,{editor:_0x48462e}=this,{schema:_0x1be66a}=_0x48462e[_0x38223f(0x1c9)];_0x1be66a[_0x38223f(0x1ef)](_0x38223f(0x1de),{'allowAttributes':[_0x38223f(0x1e1),_0x38223f(0x1dc)]});}[_0x42b3f9(0x202)](){const _0x3faf6e=_0x42b3f9,{editor:_0x517639}=this,{conversion:_0x213590,model:_0x19a398}=_0x517639,{schema:_0x4660c6}=_0x19a398;_0x213590[_0x3faf6e(0x1cd)](_0x3faf6e(0x1fe))[_0x3faf6e(0x1f1)](_0x57380e=>{const _0x1dd743=_0x3faf6e;_0x57380e['on'](_0x1dd743(0x1db),(_0x166d64,_0x982ba2,_0x1421a7)=>{const _0x29c74d=_0x1dd743,_0x170d71=_0x982ba2[_0x29c74d(0x1c6)],_0x36cb9e=_0x982ba2[_0x29c74d(0x1c0)]?.[_0x29c74d(0x21c)];_0x170d71[_0x29c74d(0x21a)](_0x29c74d(0x211))&&_0x36cb9e?.['is'](_0x29c74d(0x1ea),_0x29c74d(0x1de))&&(function(_0x21f8ff,_0x13197f,_0x5800e9,_0x1ec3dd){const _0x376fdf=_0x29c74d;if(!_0x1ec3dd[_0x376fdf(0x1ed)](_0x13197f,_0x376fdf(0x1dc)))return;let _0x5ac0eb=0x1;const _0x42fed5=_0x5800e9[_0x376fdf(0x1d7)][_0x376fdf(0x1bc)](_0x21f8ff,{'attributes':_0x376fdf(0x1e0)});if(_0x42fed5){const _0x3d0468=Number[_0x376fdf(0x1d3)](_0x21f8ff[_0x376fdf(0x20b)](_0x376fdf(0x1e0)),0xa);Number[_0x376fdf(0x1df)](_0x3d0468)||(_0x5ac0eb=_0x3d0468);}!_0x42fed5&&_0x13197f[_0x376fdf(0x1f3)](_0x376fdf(0x1dc))||_0x5800e9[_0x376fdf(0x1cb)][_0x376fdf(0x1f9)](_0x376fdf(0x1dc),_0x5ac0eb,_0x13197f);}(_0x170d71,_0x36cb9e,_0x1421a7,_0x4660c6),function(_0x3144e6,_0x3299f7,_0x4a05e6,_0x22298a){const _0x461b2e=_0x29c74d;if(!_0x22298a[_0x461b2e(0x1ed)](_0x3299f7,_0x461b2e(0x1e1)))return;let _0x56ecd3=_0x461b2e(0x207),_0xff3d75=!0x1;if(_0x4a05e6[_0x461b2e(0x1d7)][_0x461b2e(0x1bc)](_0x3144e6,{'attributes':_0x461b2e(0x1f2)})){const _0x279d64={0x1:_0x461b2e(0x207),'a':_0x461b2e(0x205),'A':_0x461b2e(0x20c),'i':_0x461b2e(0x1cf),'I':_0x461b2e(0x20f)}[_0x3144e6[_0x461b2e(0x20b)](_0x461b2e(0x1f2))];_0x279d64&&(_0x56ecd3=_0x279d64),_0xff3d75=!0x0;}_0x4a05e6[_0x461b2e(0x1d7)][_0x461b2e(0x1bc)](_0x3144e6,{'styles':_0x461b2e(0x206)})&&(_0x56ecd3=_0x3144e6[_0x461b2e(0x1e2)](_0x461b2e(0x206)),_0xff3d75=!0x0),!_0xff3d75&&_0x3299f7[_0x461b2e(0x1f3)](_0x461b2e(0x1e1))||_0x4a05e6[_0x461b2e(0x1cb)][_0x461b2e(0x1f9)](_0x461b2e(0x1e1),_0x56ecd3,_0x3299f7);}(_0x170d71,_0x36cb9e,_0x1421a7,_0x4660c6));});}),_0x213590[_0x3faf6e(0x1cd)](_0x3faf6e(0x1ee))[_0x3faf6e(0x1f1)](_0x54816f=>{const _0x4679b3=_0x3faf6e;_0x54816f['on'](_0x4679b3(0x204),(_0x50732f,_0x18760c,_0x311e70)=>{const _0x1ede77=_0x4679b3;if(!_0x311e70[_0x1ede77(0x1d7)][_0x1ede77(0x1bc)](_0x18760c[_0x1ede77(0x219)],_0x50732f[_0x1ede77(0x20d)]))return;const _0x505316=M(_0x18760c[_0x1ede77(0x219)],_0x311e70[_0x1ede77(0x1f8)]),{attributeNewValue:_0x2bed56}=_0x18760c;null==_0x2bed56||0x1===_0x2bed56?_0x311e70[_0x1ede77(0x1cb)][_0x1ede77(0x1d1)](_0x1ede77(0x1e0),_0x505316):_0x311e70[_0x1ede77(0x1cb)][_0x1ede77(0x1f9)](_0x1ede77(0x1e0),String(_0x2bed56),_0x505316);}),_0x54816f['on'](_0x4679b3(0x208),(_0x47d913,_0x283954,_0x17764b)=>{const _0x113120=_0x4679b3;if(!_0x17764b[_0x113120(0x1d7)][_0x113120(0x1bc)](_0x283954[_0x113120(0x219)],_0x47d913[_0x113120(0x20d)]))return;const _0x356dc7=M(_0x283954[_0x113120(0x219)],_0x17764b[_0x113120(0x1f8)]),{attributeNewValue:_0x3629e9}=_0x283954;_0x3629e9&&_0x113120(0x207)!==_0x3629e9?_0x17764b[_0x113120(0x1cb)][_0x113120(0x1ca)](_0x113120(0x206),_0x3629e9,_0x356dc7):_0x17764b[_0x113120(0x1cb)][_0x113120(0x1f0)](_0x113120(0x206),_0x356dc7);});});}[_0x42b3f9(0x1bd)](){const _0x42aca3=_0x42b3f9,{editor:_0x2b0730}=this,{model:_0x259b94}=_0x2b0730,_0x595a52=_0x2b0730[_0x42aca3(0x1f4)][_0x42aca3(0x1f7)](_0x275238),_0x24cfa2=this[_0x42aca3(0x1ff)](),_0x3b4fb4=this[_0x42aca3(0x1f5)]();_0x259b94[_0x42aca3(0x212)][_0x42aca3(0x1e4)](_0x1fa2b1=>{const _0x36452d=_0x42aca3,_0x4d2cff=_0x259b94[_0x36452d(0x212)][_0x36452d(0x1fa)][_0x36452d(0x1e3)]();let _0x5178b8=!0x1;for(const _0x17fbc5 of _0x4d2cff){if(_0x36452d(0x201)!==_0x17fbc5[_0x36452d(0x1f2)]||_0x36452d(0x213)===_0x17fbc5[_0x36452d(0x20d)])continue;const _0x2ac773=_0x259b94[_0x36452d(0x1e5)](_0x17fbc5[_0x36452d(0x1c3)][_0x36452d(0x210)]);for(const _0x1a013f of _0x2ac773[_0x36452d(0x1d4)]())_0x1a013f['is'](_0x36452d(0x1ea),_0x36452d(0x1de))&&(!_0x1a013f[_0x36452d(0x1f3)](_0x36452d(0x1dc))&&_0x259b94[_0x36452d(0x216)][_0x36452d(0x1ed)](_0x1a013f,_0x36452d(0x1dc))&&(_0x1fa2b1[_0x36452d(0x1f9)](_0x36452d(0x1dc),_0x3b4fb4,_0x1a013f),_0x5178b8=!0x0),!_0x1a013f[_0x36452d(0x1f3)](_0x36452d(0x1e1))&&_0x259b94[_0x36452d(0x216)][_0x36452d(0x1ed)](_0x1a013f,_0x36452d(0x1e1))&&(_0x1fa2b1[_0x36452d(0x1f9)](_0x36452d(0x1e1),_0x24cfa2,_0x1a013f),_0x5178b8=!0x0));}return _0x5178b8&&_0x595a52[_0x36452d(0x217)](_0x1fa2b1),_0x5178b8;});}[_0x42b3f9(0x215)](){const _0x4960f6=_0x42b3f9,{editor:_0x5bb63c}=this;_0x5bb63c[_0x4960f6(0x1f4)][_0x4960f6(0x1f7)](_0x275238)[_0x4960f6(0x21d)](_0x1652fd=>this[_0x4960f6(0x1f6)](_0x1652fd));}[_0x42b3f9(0x1ff)](){const _0x439d18=_0x42b3f9;return this[_0x439d18(0x1ce)][_0x439d18(0x1be)][_0x439d18(0x1f7)](_0x439d18(0x214));}[_0x42b3f9(0x1f5)](){const _0x3fbfba=_0x42b3f9;return this[_0x3fbfba(0x1ce)][_0x3fbfba(0x1be)][_0x3fbfba(0x1f7)](_0x3fbfba(0x1e7));}[_0x42b3f9(0x1f6)]({container:_0x55f6bb,value:_0x15b078,digits:_0x4ba9b0}){const _0x16afb4=_0x42b3f9,_0xda028a=_0x55f6bb[_0x16afb4(0x20b)](_0x16afb4(0x1e1)),_0xc3b3d7=_0x55f6bb[_0x16afb4(0x20b)](_0x16afb4(0x1dc)),_0x17ad39=Math[_0x16afb4(0x21b)](_0x15b078)+(_0xc3b3d7??0x1)-0x1;switch(_0xda028a){case _0x16afb4(0x203):return function(_0x3d2f9c,_0x311b0c){const _0x4a3d32=_0x16afb4;return String(_0x3d2f9c)[_0x4a3d32(0x1d5)](_0x311b0c,'0');}(_0x17ad39,Math[_0x16afb4(0x1ec)](0x2,_0x4ba9b0));case _0x16afb4(0x205):case _0x16afb4(0x1d6):return N(_0x17ad39,!0x1);case _0x16afb4(0x20c):case _0x16afb4(0x1fd):return N(_0x17ad39,!0x0);case _0x16afb4(0x1cf):return X(_0x17ad39,!0x1);case _0x16afb4(0x20f):return X(_0x17ad39,!0x0);default:return String(_0x17ad39);}}}function M(_0x47dc47,_0x5adb4c){const _0x33ea92=_0x42b3f9,_0x3d564b=_0x5adb4c[_0x33ea92(0x21e)](_0x47dc47);return Array[_0x33ea92(0x1c1)](_0x3d564b[_0x33ea92(0x1dd)]())[_0x33ea92(0x220)](_0x5204a4=>_0x5204a4['is'](_0x33ea92(0x1ea),'ol')&&_0x5204a4[_0x33ea92(0x21a)](_0x33ea92(0x211)));}function N(_0x5bab63,_0x19c231){const _0x2e3076=_0x42b3f9;let _0x48f7b7='',_0x58480d=_0x5bab63;for(;_0x58480d>0x0;){const _0x222403=(_0x58480d-0x1)%0x1a;_0x48f7b7=String[_0x2e3076(0x1eb)](0x61+_0x222403)+_0x48f7b7,_0x58480d=Math[_0x2e3076(0x21b)]((_0x58480d-0x1)/0x1a);}return _0x19c231?_0x48f7b7[_0x2e3076(0x1c4)]():_0x48f7b7;}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(_0x25b522,_0x406b71){const _0x1c3c2d=_0x42b3f9;let _0x4beea3='',_0x4a1f3d=_0x25b522;for(const {value:_0x3407a0,numeral:_0x47a175}of V)for(;_0x4a1f3d>=_0x3407a0;)_0x4beea3+=_0x47a175,_0x4a1f3d-=_0x3407a0;return _0x406b71?_0x4beea3:_0x4beea3[_0x1c3c2d(0x1cc)]();}
|
|
23
|
+
const _0x2953f8=_0x1a38;function _0x1a38(_0x146bc1,_0x5d9cd7){const _0x56942a=_0x5694();return _0x1a38=function(_0x1a3869,_0x37bb19){_0x1a3869=_0x1a3869-0x13c;let _0x29aa72=_0x56942a[_0x1a3869];return _0x29aa72;},_0x1a38(_0x146bc1,_0x5d9cd7);}(function(_0x1649fd,_0x5d695e){const _0x3d7b0c=_0x1a38,_0x57aa3e=_0x1649fd();while(!![]){try{const _0x1c1ff8=parseInt(_0x3d7b0c(0x19b))/0x1*(-parseInt(_0x3d7b0c(0x160))/0x2)+-parseInt(_0x3d7b0c(0x16e))/0x3+-parseInt(_0x3d7b0c(0x1a0))/0x4+-parseInt(_0x3d7b0c(0x16b))/0x5*(parseInt(_0x3d7b0c(0x1a2))/0x6)+parseInt(_0x3d7b0c(0x197))/0x7*(parseInt(_0x3d7b0c(0x141))/0x8)+-parseInt(_0x3d7b0c(0x181))/0x9*(parseInt(_0x3d7b0c(0x15f))/0xa)+-parseInt(_0x3d7b0c(0x143))/0xb*(-parseInt(_0x3d7b0c(0x17e))/0xc);if(_0x1c1ff8===_0x5d695e)break;else _0x57aa3e['push'](_0x57aa3e['shift']());}catch(_0x1dbee2){_0x57aa3e['push'](_0x57aa3e['shift']());}}}(_0x5694,0x5c2e4));import{Plugin as _0x5ce8a0}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x3e6d6}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x1c5535}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x18483b}from'../footnotestracker.js';import{FootnotesEditing as _0x455b42}from'../footnotesediting.js';function _0x5694(){const _0x50ccca=['define','62652axNCON','_getDefaultStartIndex','toViewElement','1035702OuRyyy','padStart','setStyle','getChildren','max','writer','isPremiumPlugin','type','upper-roman','start','setAttribute','consume','add','model','element','footnotesListStyle','FootnotesPropertiesEditing','_defineConverters','differ','insert','commands','checkAttribute','322HesPdK','_defineSchema','plugins','downcast','19982yEKuUf','nodeAfter','pluginName','fromCharCode','getItems','1556628WPCMOL','modelCursor','434922rRCWit','consumable','editor','decimal-leading-zero','requires','lower-roman','52424LBECfC','createRangeOn','2519ehJBFY','viewItem','footnotesStyle','toLowerCase','footnotesDefinitions','schema','_updateFootnotesCounters','footnotes-list','getStyle','document','setFootnoteFormatter','parseInt','_getDefaultListStyle','for','footnotesListStart','name','item','upper-alpha','extend','toUpperCase','attribute:footnotesListStyle:footnotesDefinitions','isNaN','removeAttribute','footnotes.footnotesProperties.defaultStartIndex','find','registerPostFixer','lower-latin','lower-alpha','10aZIwxx','2uQeXfw','_defineFormatter','from','config','hasClass','footnotesStart','$text','removeStyle','upper-latin','element:ol','get','5PJyNFe','floor','getAttribute','1568313CKjAoG','upcast','list-style-type','_definePostfixer','init','isOfficialPlugin','getChanges','attribute:footnotesListStart:footnotesDefinitions','parent','mapper','position','footnotes.footnotesProperties.defaultListStyle','_formatFootnoteListValue','decimal','hasAttribute'];_0x5694=function(){return _0x50ccca;};return _0x5694();}export class FootnotesPropertiesEditing extends _0x5ce8a0{static get[_0x2953f8(0x19d)](){const _0x4d86a2=_0x2953f8;return _0x4d86a2(0x191);}static get[_0x2953f8(0x13f)](){return[_0x455b42,_0x18483b];}static get[_0x2953f8(0x173)](){return!0x0;}static get[_0x2953f8(0x187)](){return!0x0;}[_0x2953f8(0x172)](){const _0x3a16c7=_0x2953f8,{editor:_0x327540}=this;_0x327540[_0x3a16c7(0x163)][_0x3a16c7(0x17d)](_0x3a16c7(0x179),_0x3a16c7(0x17b)),_0x327540[_0x3a16c7(0x163)][_0x3a16c7(0x17d)](_0x3a16c7(0x15a),0x1),_0x327540[_0x3a16c7(0x195)][_0x3a16c7(0x18d)](_0x3a16c7(0x145),new _0x3e6d6(_0x327540)),_0x327540[_0x3a16c7(0x195)][_0x3a16c7(0x18d)](_0x3a16c7(0x165),new _0x1c5535(_0x327540)),this[_0x3a16c7(0x198)](),this[_0x3a16c7(0x192)](),this[_0x3a16c7(0x161)](),this[_0x3a16c7(0x171)]();}[_0x2953f8(0x198)](){const _0x82d6ab=_0x2953f8,{editor:_0x30d62e}=this,{schema:_0x26bda3}=_0x30d62e[_0x82d6ab(0x18e)];_0x26bda3[_0x82d6ab(0x155)](_0x82d6ab(0x147),{'allowAttributes':[_0x82d6ab(0x190),_0x82d6ab(0x151)]});}[_0x2953f8(0x192)](){const _0x311549=_0x2953f8,{editor:_0x4e3925}=this,{conversion:_0x5830d3,model:_0x3c4db9}=_0x4e3925,{schema:_0x2ce932}=_0x3c4db9;_0x5830d3[_0x311549(0x150)](_0x311549(0x16f))[_0x311549(0x18d)](_0x3c2969=>{const _0x472606=_0x311549;_0x3c2969['on'](_0x472606(0x169),(_0x36c433,_0x21ac1e,_0x3c348c)=>{const _0x43e7e3=_0x472606,_0x52b591=_0x21ac1e[_0x43e7e3(0x144)],_0x28dda1=_0x21ac1e[_0x43e7e3(0x1a1)]?.[_0x43e7e3(0x176)];_0x52b591[_0x43e7e3(0x164)](_0x43e7e3(0x14a))&&_0x28dda1?.['is'](_0x43e7e3(0x18f),_0x43e7e3(0x147))&&(function(_0x7cf415,_0x4661d5,_0x707fce,_0x227b80){const _0xdbce5e=_0x43e7e3;if(!_0x227b80[_0xdbce5e(0x196)](_0x4661d5,_0xdbce5e(0x151)))return;let _0x89273=0x1;const _0x2056b6=_0x707fce[_0xdbce5e(0x13c)][_0xdbce5e(0x18c)](_0x7cf415,{'attributes':_0xdbce5e(0x18a)});if(_0x2056b6){const _0x14cc2a=Number[_0xdbce5e(0x14e)](_0x7cf415[_0xdbce5e(0x16d)](_0xdbce5e(0x18a)),0xa);Number[_0xdbce5e(0x158)](_0x14cc2a)||(_0x89273=_0x14cc2a);}!_0x2056b6&&_0x4661d5[_0xdbce5e(0x17c)](_0xdbce5e(0x151))||_0x707fce[_0xdbce5e(0x186)][_0xdbce5e(0x18b)](_0xdbce5e(0x151),_0x89273,_0x4661d5);}(_0x52b591,_0x28dda1,_0x3c348c,_0x2ce932),function(_0x1155f0,_0x53714b,_0x181f9b,_0x598e52){const _0x25a7e1=_0x43e7e3;if(!_0x598e52[_0x25a7e1(0x196)](_0x53714b,_0x25a7e1(0x190)))return;let _0x5785ad=_0x25a7e1(0x17b),_0x3381af=!0x1;if(_0x181f9b[_0x25a7e1(0x13c)][_0x25a7e1(0x18c)](_0x1155f0,{'attributes':_0x25a7e1(0x188)})){const _0x57a48e={0x1:_0x25a7e1(0x17b),'a':_0x25a7e1(0x15e),'A':_0x25a7e1(0x154),'i':_0x25a7e1(0x140),'I':_0x25a7e1(0x189)}[_0x1155f0[_0x25a7e1(0x16d)](_0x25a7e1(0x188))];_0x57a48e&&(_0x5785ad=_0x57a48e),_0x3381af=!0x0;}_0x181f9b[_0x25a7e1(0x13c)][_0x25a7e1(0x18c)](_0x1155f0,{'styles':_0x25a7e1(0x170)})&&(_0x5785ad=_0x1155f0[_0x25a7e1(0x14b)](_0x25a7e1(0x170)),_0x3381af=!0x0),!_0x3381af&&_0x53714b[_0x25a7e1(0x17c)](_0x25a7e1(0x190))||_0x181f9b[_0x25a7e1(0x186)][_0x25a7e1(0x18b)](_0x25a7e1(0x190),_0x5785ad,_0x53714b);}(_0x52b591,_0x28dda1,_0x3c348c,_0x2ce932));});}),_0x5830d3[_0x311549(0x150)](_0x311549(0x19a))[_0x311549(0x18d)](_0x51ff28=>{const _0x588317=_0x311549;_0x51ff28['on'](_0x588317(0x175),(_0x5e2d4e,_0x45069a,_0x4f0ac1)=>{const _0x58b877=_0x588317;if(!_0x4f0ac1[_0x58b877(0x13c)][_0x58b877(0x18c)](_0x45069a[_0x58b877(0x153)],_0x5e2d4e[_0x58b877(0x152)]))return;const _0x1c3485=M(_0x45069a[_0x58b877(0x153)],_0x4f0ac1[_0x58b877(0x177)]),{attributeNewValue:_0x20b22d}=_0x45069a;null==_0x20b22d||0x1===_0x20b22d?_0x4f0ac1[_0x58b877(0x186)][_0x58b877(0x159)](_0x58b877(0x18a),_0x1c3485):_0x4f0ac1[_0x58b877(0x186)][_0x58b877(0x18b)](_0x58b877(0x18a),String(_0x20b22d),_0x1c3485);}),_0x51ff28['on'](_0x588317(0x157),(_0xb622c6,_0x37eb4a,_0xa7bae0)=>{const _0x214de1=_0x588317;if(!_0xa7bae0[_0x214de1(0x13c)][_0x214de1(0x18c)](_0x37eb4a[_0x214de1(0x153)],_0xb622c6[_0x214de1(0x152)]))return;const _0x117a6c=M(_0x37eb4a[_0x214de1(0x153)],_0xa7bae0[_0x214de1(0x177)]),{attributeNewValue:_0x2ab82e}=_0x37eb4a;_0x2ab82e&&_0x214de1(0x17b)!==_0x2ab82e?_0xa7bae0[_0x214de1(0x186)][_0x214de1(0x183)](_0x214de1(0x170),_0x2ab82e,_0x117a6c):_0xa7bae0[_0x214de1(0x186)][_0x214de1(0x167)](_0x214de1(0x170),_0x117a6c);});});}[_0x2953f8(0x171)](){const _0x40799b=_0x2953f8,{editor:_0x5f1d1e}=this,{model:_0x424643}=_0x5f1d1e,_0x277512=_0x5f1d1e[_0x40799b(0x199)][_0x40799b(0x16a)](_0x18483b),_0x36996d=this[_0x40799b(0x14f)](),_0x2a8ad1=this[_0x40799b(0x17f)]();_0x424643[_0x40799b(0x14c)][_0x40799b(0x15c)](_0x11ccce=>{const _0x51d9df=_0x40799b,_0x3eb1c5=_0x424643[_0x51d9df(0x14c)][_0x51d9df(0x193)][_0x51d9df(0x174)]();let _0x2b4143=!0x1;for(const _0x1070b7 of _0x3eb1c5){if(_0x51d9df(0x194)!==_0x1070b7[_0x51d9df(0x188)]||_0x51d9df(0x166)===_0x1070b7[_0x51d9df(0x152)])continue;const _0x23cd24=_0x424643[_0x51d9df(0x142)](_0x1070b7[_0x51d9df(0x178)][_0x51d9df(0x19c)]);for(const _0x119b43 of _0x23cd24[_0x51d9df(0x19f)]())_0x119b43['is'](_0x51d9df(0x18f),_0x51d9df(0x147))&&(!_0x119b43[_0x51d9df(0x17c)](_0x51d9df(0x151))&&_0x424643[_0x51d9df(0x148)][_0x51d9df(0x196)](_0x119b43,_0x51d9df(0x151))&&(_0x11ccce[_0x51d9df(0x18b)](_0x51d9df(0x151),_0x2a8ad1,_0x119b43),_0x2b4143=!0x0),!_0x119b43[_0x51d9df(0x17c)](_0x51d9df(0x190))&&_0x424643[_0x51d9df(0x148)][_0x51d9df(0x196)](_0x119b43,_0x51d9df(0x190))&&(_0x11ccce[_0x51d9df(0x18b)](_0x51d9df(0x190),_0x36996d,_0x119b43),_0x2b4143=!0x0));}return _0x2b4143&&_0x277512[_0x51d9df(0x149)](_0x11ccce),_0x2b4143;});}[_0x2953f8(0x161)](){const _0x428328=_0x2953f8,{editor:_0x4a449a}=this;_0x4a449a[_0x428328(0x199)][_0x428328(0x16a)](_0x18483b)[_0x428328(0x14d)](_0x1b39c3=>this[_0x428328(0x17a)](_0x1b39c3));}[_0x2953f8(0x14f)](){const _0x2dea55=_0x2953f8;return this[_0x2dea55(0x13d)][_0x2dea55(0x163)][_0x2dea55(0x16a)](_0x2dea55(0x179));}[_0x2953f8(0x17f)](){const _0x12f0c5=_0x2953f8;return this[_0x12f0c5(0x13d)][_0x12f0c5(0x163)][_0x12f0c5(0x16a)](_0x12f0c5(0x15a));}[_0x2953f8(0x17a)]({container:_0x514115,value:_0x28ff79,digits:_0x281d3e}){const _0x599ad4=_0x2953f8,_0x23f05c=_0x514115[_0x599ad4(0x16d)](_0x599ad4(0x190)),_0x5eba2d=_0x514115[_0x599ad4(0x16d)](_0x599ad4(0x151)),_0x2459a0=Math[_0x599ad4(0x16c)](_0x28ff79)+(_0x5eba2d??0x1)-0x1;switch(_0x23f05c){case _0x599ad4(0x13e):return function(_0x46d799,_0x72e95f){const _0xfe8ec6=_0x599ad4;return String(_0x46d799)[_0xfe8ec6(0x182)](_0x72e95f,'0');}(_0x2459a0,Math[_0x599ad4(0x185)](0x2,_0x281d3e));case _0x599ad4(0x15e):case _0x599ad4(0x15d):return N(_0x2459a0,!0x1);case _0x599ad4(0x154):case _0x599ad4(0x168):return N(_0x2459a0,!0x0);case _0x599ad4(0x140):return X(_0x2459a0,!0x1);case _0x599ad4(0x189):return X(_0x2459a0,!0x0);default:return String(_0x2459a0);}}}function M(_0x2e4dba,_0x4f747c){const _0x553260=_0x2953f8,_0xa3c2eb=_0x4f747c[_0x553260(0x180)](_0x2e4dba);return Array[_0x553260(0x162)](_0xa3c2eb[_0x553260(0x184)]())[_0x553260(0x15b)](_0x24e1ee=>_0x24e1ee['is'](_0x553260(0x18f),'ol')&&_0x24e1ee[_0x553260(0x164)](_0x553260(0x14a)));}function N(_0x40440b,_0x22eef4){const _0x496954=_0x2953f8;let _0x21c6d1='',_0x3126b2=_0x40440b;for(;_0x3126b2>0x0;){const _0x4c9113=(_0x3126b2-0x1)%0x1a;_0x21c6d1=String[_0x496954(0x19e)](0x61+_0x4c9113)+_0x21c6d1,_0x3126b2=Math[_0x496954(0x16c)]((_0x3126b2-0x1)/0x1a);}return _0x22eef4?_0x21c6d1[_0x496954(0x156)]():_0x21c6d1;}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(_0x7378f4,_0x4797bc){const _0x3870f0=_0x2953f8;let _0x41d134='',_0x44e505=_0x7378f4;for(const {value:_0xd58e25,numeral:_0xb41ef3}of V)for(;_0x44e505>=_0xd58e25;)_0x41d134+=_0xb41ef3,_0x44e505-=_0xd58e25;return _0x4797bc?_0x41d134:_0x41d134[_0x3870f0(0x146)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x414104,ButtonView as _0x3ebd20,ContextualBalloon as _0x415e39,createDropdown as _0x33fa19}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x7e688c}from'ckeditor5/src/widget.js';import{Plugin as _0x58dca0}from'ckeditor5/src/core.js';import{IconFootnote as _0x5ed75b,IconListStyleDecimal as _0x13c7aa,IconListStyleDecimalLeadingZero as _0x49ee2a,IconListStyleLowerLatin as _0x2c76f2,IconListStyleLowerRoman as _0x13760f,IconListStyleUpperLatin as _0x57a916,IconListStyleUpperRoman as _0xfc8ad}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x54890a}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x2ebc62}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x58dca0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x415e39,_0x7e688c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x42028b}=this,{componentFactory:_0x28eaac}=_0x42028b['ui'];_0x42028b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x28eaac['add']('footnotesStyle',function(_0x2d7438){return _0x177678=>{const {t:t}=_0x177678,_0x153ee0=_0x2d7438['commands']['get']('footnotesStyle'),_0x42e338=_0x33fa19(_0x177678),{buttonView:_0x22ca62}=_0x42e338;return _0x42e338['class']='ck-footnotes-styles-dropdown',_0x42e338['bind']('isEnabled')['to'](_0x153ee0,'isEnabled'),_0x22ca62['set']({'label':t('Footnotes\x20style'),'icon':_0x5ed75b,'tooltip':!0x0}),_0x42e338['once']('change:isOpen',()=>{const _0x27f4d1=function({editor:_0x780c16,dropdownView:_0x402ef4}){const {t:t}=_0x780c16['locale'],_0x39ed5f=t('Footnotes\x20definitions\x20styles'),_0x5921ed=function(_0x18eeae){const t=_0x18eeae['locale']['t'],_0x15b2e4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x13c7aa},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x49ee2a},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x13760f},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xfc8ad},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2c76f2},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x57a916}];return _0x15b2e4['map'](function(_0x513b90){const _0x43eed2=_0x513b90['locale'];return({label:_0xadbf6f,icon:_0x15f436,tooltip:_0x2e11cc,style:_0x3f6d56})=>{const _0x2a79cd=_0x513b90['commands']['get']('footnotesStyle'),_0x3c456d=new _0x3ebd20(_0x43eed2);return _0x3c456d['set']({'label':_0xadbf6f,'icon':_0x15f436,'tooltip':_0x2e11cc}),_0x3c456d['bind']('isOn')['to'](_0x2a79cd,'value',_0x494cb4=>_0x494cb4===_0x3f6d56),_0x3c456d['bind']('isEnabled')['to'](_0x2a79cd,'isEnabled'),_0x3c456d['on']('execute',()=>{_0x513b90['execute']('footnotesStyle',{'value':_0x3f6d56}),_0x513b90['editing']['view']['focus']();}),_0x3c456d;};}(_0x18eeae));}(_0x780c16),_0x71a6fe=new _0x54890a(_0x780c16['locale'],{'styleGridAriaLabel':_0x39ed5f,'styleButtonViews':_0x5921ed});return _0x71a6fe['delegate']('execute')['to'](_0x402ef4),_0x71a6fe['on']('footnotesListStart',(_0x384980,_0x1a7c3e)=>{_0x780c16['execute']('footnotesStart',{'value':_0x1a7c3e['startIndex']});}),_0x71a6fe;}({'editor':_0x2d7438,'dropdownView':_0x42e338});_0x42e338['panelView']['children']['add'](_0x27f4d1);}),_0x42e338;};}(_0x42028b));}['afterInit'](){const {editor:_0x385c31}=this,{t:t}=_0x385c31['locale'],_0x4d6856=_0x385c31['plugins']['get'](_0x7e688c),{defaultPositions:_0x1385f4}=_0x414104;_0x4d6856['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x385c31['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x50a8d8=>{let _0x45d8b3=_0x50a8d8['getFirstPosition']()?.['parent'];return _0x45d8b3?.['is']('$text')&&(_0x45d8b3=_0x45d8b3['parent']),_0x45d8b3?.['is']('element')?_0x45d8b3['findAncestor'](_0x2ebc62):null;},'positions':[_0x1385f4['southArrowNorth'],_0x1385f4['southArrowNorthMiddleWest'],_0x1385f4['southArrowNorthMiddleEast'],_0x1385f4['southArrowNorthWest'],_0x1385f4['southArrowNorthEast'],_0x1385f4['northArrowSouth'],_0x1385f4['northArrowSouthMiddleWest'],_0x1385f4['northArrowSouthMiddleEast'],_0x1385f4['northArrowSouthWest'],_0x1385f4['northArrowSouthEast'],_0x1385f4['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4f9f08,View as _0x13375e,ViewCollection as _0x2b997b,FocusCycler as _0x3720d5,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 _0x13375e{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x2b997b();['focusCycler'];constructor(_0x3d85a6,{styleButtonViews:_0x3a9f59,styleGridAriaLabel:_0x171b5e}){super(_0x3d85a6),(this['focusCycler']=new _0x3720d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3a9f59,_0x171b5e),[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 _0xe68fbb of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0xe68fbb['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 _0x130f48=_0x2a66a9=>_0x2a66a9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x130f48),this['keystrokes']['set']('arrowleft',_0x130f48),this['keystrokes']['set']('arrowup',_0x130f48),this['keystrokes']['set']('arrowdown',_0x130f48);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x328518,_0x31631a){const _0x327c93=new _0x13375e(this['locale']);return _0x327c93['children']=_0x327c93['createCollection'](),_0x327c93['children']['addMany'](_0x328518),_0x327c93['setTemplate']({'tag':'div','attributes':{'aria-label':_0x31631a,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x327c93['children']}),_0x327c93['children']['delegate']('execute')['to'](this),_0x327c93['focus']=function(){for(const _0x5ef1d8 of this['children'])if(_0x5ef1d8 instanceof _0x4f9f08&&_0x5ef1d8['isOn'])return void _0x5ef1d8['focus']();this['children']['first']['focus']();},_0x327c93['focusTracker']=new ot(),_0x327c93['keystrokes']=new rt(),_0x327c93['render'](),_0x327c93['keystrokes']['listenTo'](_0x327c93['element']),this['children']['add'](_0x327c93),_0x327c93;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3bab9a=this['_createStartIndexPropertyView'](),_0x11bc8d=[_0x3bab9a],_0x895d5c=new st(this['locale'],_0x11bc8d);return _0x895d5c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x895d5c['buttonView']['bind']('isEnabled')['toMany'](_0x11bc8d,'isEnabled',(..._0x380e6b)=>_0x380e6b['some'](_0x32c395=>_0x32c395)),_0x895d5c['buttonView']['on']('change:isEnabled',(_0xafdba7,_0x5373fa,_0x36b5f3)=>{_0x36b5f3||(_0x895d5c['isCollapsed']=!0x0);}),this['children']['add'](_0x895d5c),[_0x3bab9a,_0x895d5c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xc3b49b=new it(this['locale'],et);return _0xc3b49b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xc3b49b['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xc3b49b['fieldView']['on']('input',()=>{const _0x2b1981=_0xc3b49b['fieldView']['element'],_0x26fe2a=_0x2b1981['valueAsNumber'];Number['isNaN'](_0x26fe2a)?_0xc3b49b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2b1981['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x26fe2a}):_0xc3b49b['errorText']=t(_0x26fe2a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xc3b49b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1d808f=_0x31e9;(function(_0x4641e2,_0x25a642){var _0x43eb51=_0x31e9,_0x27a400=_0x4641e2();while(!![]){try{var _0x77b5e7=-parseInt(_0x43eb51(0xd7))/0x1+-parseInt(_0x43eb51(0xd4))/0x2+-parseInt(_0x43eb51(0xd8))/0x3*(parseInt(_0x43eb51(0xd1))/0x4)+-parseInt(_0x43eb51(0xcd))/0x5*(-parseInt(_0x43eb51(0xca))/0x6)+parseInt(_0x43eb51(0xcb))/0x7*(parseInt(_0x43eb51(0xcc))/0x8)+-parseInt(_0x43eb51(0xd6))/0x9*(parseInt(_0x43eb51(0xce))/0xa)+-parseInt(_0x43eb51(0xd2))/0xb*(-parseInt(_0x43eb51(0xda))/0xc);if(_0x77b5e7===_0x25a642)break;else _0x27a400['push'](_0x27a400['shift']());}catch(_0x201801){_0x27a400['push'](_0x27a400['shift']());}}}(_0x467f,0x32344));import{Plugin as _0x1dfd52}from'ckeditor5/src/core.js';function _0x31e9(_0x1f0a8e,_0xe85e8d){var _0x467fd8=_0x467f();return _0x31e9=function(_0x31e9db,_0x31bb3a){_0x31e9db=_0x31e9db-0xca;var _0x3312f5=_0x467fd8[_0x31e9db];return _0x3312f5;},_0x31e9(_0x1f0a8e,_0xe85e8d);}import{FootnotesPropertiesEditing as _0x246415}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x378a3f}from'./footnotesproperties/footnotespropertiesui.js';function _0x467f(){var _0x4014d4=['687412GiWEhQ','FootnotesProperties','355851CviBxQ','337709aEprOZ','3IPqMIR','isOfficialPlugin','371304zJqKaK','258MNCxQP','587055umPXQx','32hJbEsy','13255HksAyA','70wNCJex','requires','isPremiumPlugin','484252niESUG','297OSEOIB','pluginName'];_0x467f=function(){return _0x4014d4;};return _0x467f();}export class FootnotesProperties extends _0x1dfd52{static get[_0x1d808f(0xd3)](){var _0x593bf0=_0x1d808f;return _0x593bf0(0xd5);}static get[_0x1d808f(0xcf)](){return[_0x246415,_0x378a3f];}static get[_0x1d808f(0xd9)](){return!0x0;}static get[_0x1d808f(0xd0)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2995(_0x3e0edd,_0x5c3a5d){const _0x588dcf=_0x588d();return _0x2995=function(_0x299566,_0x59100c){_0x299566=_0x299566-0x168;let _0x2bf45c=_0x588dcf[_0x299566];return _0x2bf45c;},_0x2995(_0x3e0edd,_0x5c3a5d);}const _0x58ed39=_0x2995;(function(_0x30875f,_0xaf0472){const _0x431911=_0x2995,_0x27d76d=_0x30875f();while(!![]){try{const _0x1428a8=-parseInt(_0x431911(0x1b4))/0x1*(parseInt(_0x431911(0x1c8))/0x2)+-parseInt(_0x431911(0x1ad))/0x3+-parseInt(_0x431911(0x1c6))/0x4+-parseInt(_0x431911(0x18a))/0x5+parseInt(_0x431911(0x1be))/0x6*(parseInt(_0x431911(0x1b2))/0x7)+parseInt(_0x431911(0x181))/0x8+parseInt(_0x431911(0x1c2))/0x9;if(_0x1428a8===_0xaf0472)break;else _0x27d76d['push'](_0x27d76d['shift']());}catch(_0x15aabd){_0x27d76d['push'](_0x27d76d['shift']());}}}(_0x588d,0xbc8e9));function _0x588d(){const _0x2f313b=['121395nesmpK','_handleRemoveFootnoteReferenceById','set','after','model','231oGUPFv','_handleInsertedFootnoteReference','185775dztzKv','FootnotesTracker','getFootnote','$graveyard','map','_footnotesDefinitions','low','rootName','config','_insertEmptyFootnotesDefinitionsContainer','194262FsFIht','getChildren','find','append','10774314OUaAtW','root','has','getRootNames','3947516BdHYPI','move','2LyeQhO','push','setFootnoteFormatter','change:data','_updateFootnoteRefCounter','footnotes.multiBlock','from','some','isEqual','insert','get','editor','unshift','add','_handleMovedFootnoteReference','createRangeOn','getFootnotesDefinitionsObjectElement','childCount','setAttribute','isPremiumPlugin','definition','_footnoteDefsTracker','createRangeIn','_ensureFootnotesDefinitionsContainerExists','registerPostFixer','document','end','_footnoteDefsContainerTracker','enqueueChange','3439264oYJSEC','createPositionBefore','compareWith','createElement','min','footnoteDefinition','_footnoteFormatter','getFootnotes','isOfficialPlugin','3550235qgyCay','before','high','footnoteInlineContent','reference','paragraph','findIndex','createPositionAt','_handleFootnoteDefinitionsChanges','_handleFootnoteReferencesChanges','reset','splice','_sortFootnoteDefinitions','_handleFootnotesDefinitionsObjectChanges','indexOf','parent','pluginName','getChanges','_footnoteRefsTracker','footnoteId','footnoteRef','footnoteCounter','_ensureFootnotesReferencesHaveProperOrder','_footnotes','listenTo','init','remove','_handleFootnotesDefinitionsObjectSync','footnotesDefinitions','getFootnotesFormatter','_updateFootnotesCounters','getAttribute','differ','length','singleton'];_0x588d=function(){return _0x2f313b;};return _0x588d();}import{Plugin as _0x42e62a}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x5e9196}from'./modelelementtracker.js';export class FootnotesTracker extends _0x42e62a{[_0x58ed39(0x1a1)]=[];[_0x58ed39(0x1b9)]=null;[_0x58ed39(0x187)]=null;[_0x58ed39(0x17f)];[_0x58ed39(0x19c)];[_0x58ed39(0x179)];static get[_0x58ed39(0x19a)](){const _0x5a3e46=_0x58ed39;return _0x5a3e46(0x1b5);}static get[_0x58ed39(0x189)](){return!0x0;}static get[_0x58ed39(0x177)](){return!0x0;}constructor(_0x1fb5ee){const _0x5934ed=_0x58ed39;super(_0x1fb5ee),this[_0x5934ed(0x17f)]=new _0x5e9196(this[_0x5934ed(0x16f)][_0x5934ed(0x1b1)],{'elementName':_0x5934ed(0x1a6),'getElementKey':()=>_0x5934ed(0x1ac)}),this[_0x5934ed(0x19c)]=new _0x5e9196(this[_0x5934ed(0x16f)][_0x5934ed(0x1b1)],{'elementName':_0x5934ed(0x19e),'getElementKey':_0x1fbd61=>_0x1fbd61[_0x5934ed(0x1a9)](_0x5934ed(0x19d))}),this[_0x5934ed(0x179)]=new _0x5e9196(this[_0x5934ed(0x16f)][_0x5934ed(0x1b1)],{'elementName':_0x5934ed(0x186),'getElementKey':_0x3b559b=>_0x3b559b[_0x5934ed(0x1a9)](_0x5934ed(0x19d))});}[_0x58ed39(0x1a3)](){const _0x1e53c1=_0x58ed39,{editor:_0xa8c00e}=this,{model:_0xcdfcde,data:_0x14b49a}=_0xa8c00e;_0xcdfcde[_0x1e53c1(0x17d)][_0x1e53c1(0x17c)](_0x298d57=>{const _0x5dc60f=_0x1e53c1,_0x28cd96=_0xcdfcde[_0x5dc60f(0x17d)][_0x5dc60f(0x1aa)][_0x5dc60f(0x19b)]();let _0x155f36=!0x1;return this[_0x5dc60f(0x197)](_0x298d57,_0x28cd96)&&(_0x155f36=!0x0),this[_0x5dc60f(0x192)](_0x298d57,_0x28cd96)&&(_0x155f36=!0x0),this[_0x5dc60f(0x193)](_0x298d57,_0x28cd96)&&(_0x155f36=!0x0),this[_0x5dc60f(0x1a0)](_0x298d57)&&(_0x155f36=!0x0),this[_0x5dc60f(0x1a5)](_0x298d57)&&(_0x155f36=!0x0),this[_0x5dc60f(0x196)](_0x298d57)&&(_0x155f36=!0x0),_0x155f36;}),this[_0x1e53c1(0x1a2)](_0xcdfcde[_0x1e53c1(0x17d)],_0x1e53c1(0x1cb),()=>{const _0x3b1ff6=_0x1e53c1;_0xcdfcde[_0x3b1ff6(0x180)]({'isUndoable':!0x1},_0x444817=>{const _0x414441=_0x3b1ff6;this[_0x414441(0x17b)](_0x444817);});},{'priority':_0x1e53c1(0x1ba)}),this[_0x1e53c1(0x1a2)](_0x14b49a,_0x1e53c1(0x1af),()=>{const _0x20d8f6=_0x1e53c1;this[_0x20d8f6(0x1a1)]=[],this[_0x20d8f6(0x17f)][_0x20d8f6(0x194)](),this[_0x20d8f6(0x19c)][_0x20d8f6(0x194)](),this[_0x20d8f6(0x179)][_0x20d8f6(0x194)]();},{'priority':_0x1e53c1(0x18c)});}[_0x58ed39(0x174)](){const _0x4bcee5=_0x58ed39;return this[_0x4bcee5(0x1b9)];}[_0x58ed39(0x1b6)](_0x3f69ef){const _0x381c67=_0x58ed39;return this[_0x381c67(0x1a1)][_0x381c67(0x1c0)](_0xdf3f6a=>_0xdf3f6a['id']===_0x3f69ef)||null;}[_0x58ed39(0x188)](){const _0x81ce14=_0x58ed39;return Array[_0x81ce14(0x16a)](this[_0x81ce14(0x1a1)]);}[_0x58ed39(0x1a7)](){const _0x2c1d38=_0x58ed39;return this[_0x2c1d38(0x187)];}[_0x58ed39(0x1ca)](_0x4bc44d){const _0x336084=_0x58ed39;this[_0x336084(0x187)]=_0x4bc44d;}[_0x58ed39(0x1a8)](_0x3b76a0,_0x494d21=0x0){const _0x2b975f=_0x58ed39;let _0x8154bc=!0x1;for(let _0x29cd82=_0x494d21;_0x29cd82<this[_0x2b975f(0x1a1)][_0x2b975f(0x1ab)];_0x29cd82++)this[_0x2b975f(0x168)](_0x3b76a0,_0x29cd82)&&(_0x8154bc=!0x0);return _0x8154bc;}[_0x58ed39(0x1bd)](_0x381087,_0x2fec0a){const _0x5d7aa1=_0x58ed39,_0x18d394=_0x381087[_0x5d7aa1(0x184)](_0x5d7aa1(0x1a6),{});return _0x381087[_0x5d7aa1(0x1c1)](_0x18d394,_0x2fec0a),this[_0x5d7aa1(0x1b9)]=_0x18d394,_0x18d394;}[_0x58ed39(0x17b)](_0x17530e){const _0x4b6f34=_0x58ed39;if(!this[_0x4b6f34(0x1a1)][_0x4b6f34(0x1ab)]||this[_0x4b6f34(0x1b9)])return;const _0x40a180=this[_0x4b6f34(0x1a1)][0x0][_0x4b6f34(0x18e)][_0x4b6f34(0x1c3)],_0x416586=this[_0x4b6f34(0x1bd)](_0x17530e,_0x40a180);for(const _0x5e52e3 of this[_0x4b6f34(0x1a1)])_0x5e52e3[_0x4b6f34(0x178)][_0x4b6f34(0x199)]||_0x17530e[_0x4b6f34(0x16d)](_0x5e52e3[_0x4b6f34(0x178)],_0x416586,_0x4b6f34(0x17e));this[_0x4b6f34(0x1a8)](_0x17530e);}[_0x58ed39(0x197)](_0x52624d,_0x34074e){const _0x24561a=_0x58ed39;let _0x203633=!0x1;const {inserted:_0x571b7b,removed:_0x567fe8,moved:_0x1c6253}=this[_0x24561a(0x17f)][_0x24561a(0x19b)](_0x34074e);if(_0x1c6253[_0x24561a(0x1ab)]&&(this[_0x24561a(0x1b9)]=_0x1c6253[0x0]),_0x571b7b[_0x24561a(0x1ab)]){if(_0x571b7b[_0x24561a(0x1ab)]>0x1||this[_0x24561a(0x1b9)]&&_0x571b7b[_0x24561a(0x16b)](_0x3f5b78=>_0x3f5b78!==this[_0x24561a(0x1b9)])){const _0x364aab=_0x52624d[_0x24561a(0x184)](_0x24561a(0x1a6),{}),_0x4eee1f=[];this[_0x24561a(0x1b9)]&&_0x4eee1f[_0x24561a(0x1c9)](this[_0x24561a(0x1b9)]),_0x4eee1f[_0x24561a(0x1c9)](..._0x571b7b),_0x52624d[_0x24561a(0x16d)](_0x364aab,_0x4eee1f[0x0],_0x24561a(0x18b));for(const _0x33841d of _0x4eee1f)_0x52624d[_0x24561a(0x1c7)](_0x52624d[_0x24561a(0x17a)](_0x33841d),_0x52624d[_0x24561a(0x191)](_0x364aab,_0x24561a(0x17e))),_0x52624d[_0x24561a(0x1a4)](_0x33841d);this[_0x24561a(0x1b9)]=_0x364aab,this[_0x24561a(0x1a8)](_0x52624d),_0x203633=!0x0;}else this[_0x24561a(0x1b9)]=_0x571b7b[0x0];}if(_0x567fe8[_0x24561a(0x1ab)]&&_0x24561a(0x1b7)===this[_0x24561a(0x1b9)]?.[_0x24561a(0x1c3)][_0x24561a(0x1bb)]){for(const _0x567ed6 of this[_0x24561a(0x1a1)])_0x52624d[_0x24561a(0x1a4)](_0x567ed6[_0x24561a(0x18e)]),_0x203633=!0x0;this[_0x24561a(0x1a1)]=[],this[_0x24561a(0x1b9)]=null;}return _0x203633;}[_0x58ed39(0x192)](_0x263831,_0x397c37){const _0x1e98d0=_0x58ed39;let _0x3e4f0c=!0x1;const _0x95e3a3=this[_0x1e98d0(0x16f)][_0x1e98d0(0x1bc)][_0x1e98d0(0x16e)](_0x1e98d0(0x169)),{inserted:_0x956b6a,moved:_0x150286}=this[_0x1e98d0(0x179)][_0x1e98d0(0x19b)](_0x397c37);for(const _0x36598a of[..._0x150286,..._0x956b6a]){const _0x3543f1=_0x36598a[_0x1e98d0(0x1a9)](_0x1e98d0(0x19d)),_0x1c9984=this[_0x1e98d0(0x1b6)](_0x3543f1);_0x1c9984&&(_0x1c9984[_0x1e98d0(0x178)]=_0x36598a),_(_0x263831,_0x95e3a3,_0x36598a)&&(_0x3e4f0c=!0x0);}return _0x3e4f0c;}[_0x58ed39(0x193)](_0x58ae87,_0x18c1c7){const _0x4e52e1=_0x58ed39;let _0x34e2d4=!0x1;const {removed:_0x5914a5,inserted:_0x53a836,moved:_0x63a9d8}=this[_0x4e52e1(0x19c)][_0x4e52e1(0x19b)](_0x18c1c7);for(const _0x2b12dc of _0x5914a5)this[_0x4e52e1(0x1ae)](_0x58ae87,_0x2b12dc)&&(_0x34e2d4=!0x0);for(const _0x39942d of _0x53a836)this[_0x4e52e1(0x1b3)](_0x58ae87,_0x39942d)&&(_0x34e2d4=!0x0);for(const _0x251310 of _0x63a9d8)this[_0x4e52e1(0x172)](_0x58ae87,_0x251310)&&(_0x34e2d4=!0x0);return _0x34e2d4;}[_0x58ed39(0x1a5)](_0x5b9f1a){const _0x4b1eb4=_0x58ed39;if(!this[_0x4b1eb4(0x1b9)])return!0x1;let _0x52acdd=!0x1;if(this[_0x4b1eb4(0x1b9)][_0x4b1eb4(0x175)]!==this[_0x4b1eb4(0x1a1)][_0x4b1eb4(0x1ab)]){const _0x8fd0c7=[];for(const _0x5a34d5 of this[_0x4b1eb4(0x1b9)][_0x4b1eb4(0x1bf)]()){const _0x401594=_0x5a34d5[_0x4b1eb4(0x1a9)](_0x4b1eb4(0x19d));this[_0x4b1eb4(0x1b6)](_0x401594)||(_0x8fd0c7[_0x4b1eb4(0x170)](_0x5a34d5),_0x52acdd=!0x0);}for(const _0x153d3c of _0x8fd0c7)_0x5b9f1a[_0x4b1eb4(0x1a4)](_0x153d3c);}const _0x236eda=new Set(),_0x36852f=[];for(const _0x35e0f8 of this[_0x4b1eb4(0x1b9)][_0x4b1eb4(0x1bf)]()){const _0x98215f=_0x35e0f8[_0x4b1eb4(0x1a9)](_0x4b1eb4(0x19d));_0x236eda[_0x4b1eb4(0x1c4)](_0x98215f)?(_0x36852f[_0x4b1eb4(0x170)](_0x35e0f8),_0x52acdd=!0x0):_0x236eda[_0x4b1eb4(0x171)](_0x98215f);}for(const _0x5cbdb6 of _0x36852f)_0x5b9f1a[_0x4b1eb4(0x1a4)](_0x5cbdb6);return this[_0x4b1eb4(0x1b9)][_0x4b1eb4(0x175)]||(_0x5b9f1a[_0x4b1eb4(0x1a4)](this[_0x4b1eb4(0x1b9)]),this[_0x4b1eb4(0x1b9)]=null,_0x52acdd=!0x0),_0x52acdd;}[_0x58ed39(0x1b3)](_0x323598,_0x4a365d){const _0x186108=_0x58ed39;if(this[_0x186108(0x1a1)][_0x186108(0x1c0)](_0xa54740=>_0xa54740[_0x186108(0x18e)]===_0x4a365d))return!0x1;let _0x4a5c8d=!0x1;const _0x55fd45=_0x4a365d[_0x186108(0x1a9)](_0x186108(0x19d)),_0x4f60d8=this[_0x186108(0x1a1)][_0x186108(0x190)](_0x3a0c5a=>_0x3a0c5a['id']===_0x55fd45);-0x1!==_0x4f60d8&&(_0x323598[_0x186108(0x1a4)](this[_0x186108(0x1a1)][_0x4f60d8][_0x186108(0x18e)]),this[_0x186108(0x1a1)][_0x186108(0x195)](_0x4f60d8,0x1),_0x4a5c8d=!0x0);let _0x5e2d92=this[_0x186108(0x1b9)]?function(_0x34cf38,_0x53f5c9){const _0x2c2f64=_0x186108;for(const _0x142388 of _0x34cf38[_0x2c2f64(0x1bf)]())if(_0x142388[_0x2c2f64(0x1a9)](_0x2c2f64(0x19d))===_0x53f5c9)return _0x142388;return null;}(this[_0x186108(0x1b9)],_0x55fd45):null;_0x5e2d92||(_0x5e2d92=_0x323598[_0x186108(0x184)](_0x186108(0x186),{'footnoteId':_0x55fd45}),this[_0x186108(0x1b9)]&&(_0x323598[_0x186108(0x16d)](_0x5e2d92,this[_0x186108(0x1b9)],_0x186108(0x17e)),_0x4a5c8d=!0x0));const _0x329356={'id':_0x55fd45,'reference':_0x4a365d,'definition':_0x5e2d92},_0x2ead18=I(this[_0x186108(0x16f)][_0x186108(0x1b1)],this[_0x186108(0x1a1)],_0x4a365d);this[_0x186108(0x1a1)][_0x186108(0x195)](_0x2ead18,0x0,_0x329356);let _0x2e8801=_0x2ead18;return-0x1!==_0x4f60d8&&(_0x2e8801=Math[_0x186108(0x185)](_0x2ead18,_0x4f60d8)),this[_0x186108(0x1a8)](_0x323598,_0x2e8801)&&(_0x4a5c8d=!0x0),_0x4a5c8d;}[_0x58ed39(0x1ae)](_0x12380f,_0x1ad847){const _0x1e4772=_0x58ed39,_0x5ed7af=this[_0x1e4772(0x1a1)][_0x1e4772(0x190)](_0x3a51d8=>_0x3a51d8['id']===_0x1ad847);if(-0x1===_0x5ed7af)return!0x1;let _0x1f88a9=!0x1;const _0x2d5b8e=this[_0x1e4772(0x1a1)][_0x5ed7af];return _0x1e4772(0x1b7)!==_0x2d5b8e[_0x1e4772(0x178)][_0x1e4772(0x1c3)][_0x1e4772(0x1bb)]&&(_0x12380f[_0x1e4772(0x1a4)](_0x2d5b8e[_0x1e4772(0x178)]),_0x1f88a9=!0x0),this[_0x1e4772(0x1a1)][_0x1e4772(0x195)](_0x5ed7af,0x1),this[_0x1e4772(0x1a8)](_0x12380f,_0x5ed7af)&&(_0x1f88a9=!0x0),_0x1f88a9;}[_0x58ed39(0x172)](_0xc75189,_0x1d9b9b){const _0x2a2a6d=_0x58ed39,_0x5a18f9=_0x1d9b9b[_0x2a2a6d(0x1a9)](_0x2a2a6d(0x19d)),_0x1f13f8=this[_0x2a2a6d(0x1a1)][_0x2a2a6d(0x190)](_0x4f0ae9=>_0x4f0ae9['id']===_0x5a18f9),_0x302e5d=this[_0x2a2a6d(0x1a1)][_0x1f13f8];let _0x3d2b8d=!0x1;_0x302e5d[_0x2a2a6d(0x18e)]=_0x1d9b9b,this[_0x2a2a6d(0x1a1)][_0x2a2a6d(0x195)](_0x1f13f8,0x1);const _0xc4cd87=I(this[_0x2a2a6d(0x16f)][_0x2a2a6d(0x1b1)],this[_0x2a2a6d(0x1a1)],_0x1d9b9b);return this[_0x2a2a6d(0x1a1)][_0x2a2a6d(0x195)](_0xc4cd87,0x0,_0x302e5d),this[_0x2a2a6d(0x1a8)](_0xc75189,Math[_0x2a2a6d(0x185)](_0x1f13f8,_0xc4cd87))&&(_0x3d2b8d=!0x0),_0x3d2b8d;}[_0x58ed39(0x168)](_0x2a9522,_0xde03e0){const _0x1935c1=_0x58ed39;if(!this[_0x1935c1(0x1b9)])return!0x1;const _0x581b0=this[_0x1935c1(0x1a1)][_0xde03e0];let _0x3936e3;return _0x3936e3=this[_0x1935c1(0x187)]?this[_0x1935c1(0x187)]({'footnote':_0x581b0,'container':this[_0x1935c1(0x1b9)],'digits':String(this[_0x1935c1(0x1a1)][_0x1935c1(0x1ab)])[_0x1935c1(0x1ab)],'value':_0xde03e0+0x1}):String(_0xde03e0+0x1),_0x581b0[_0x1935c1(0x18e)][_0x1935c1(0x1a9)](_0x1935c1(0x19f))!=_0x3936e3&&(_0x2a9522[_0x1935c1(0x176)](_0x1935c1(0x19f),_0x3936e3,_0x581b0[_0x1935c1(0x18e)]),!0x0);}[_0x58ed39(0x196)](_0x367a06){const _0x514df3=_0x58ed39;if(!this[_0x514df3(0x1b9)]||this[_0x514df3(0x1a1)][_0x514df3(0x1ab)]<0x2)return!0x1;if(function(_0xc8cc1e,_0x30cf75){const _0x5ed097=_0x514df3;if(_0xc8cc1e[_0x5ed097(0x1ab)]!==_0x30cf75[_0x5ed097(0x1ab)])return!0x1;for(let _0x16dfdf=0x0;_0x16dfdf<_0xc8cc1e[_0x5ed097(0x1ab)];_0x16dfdf++)if(_0xc8cc1e[_0x16dfdf]!==_0x30cf75[_0x16dfdf])return!0x1;return!0x0;}(this[_0x514df3(0x1a1)][_0x514df3(0x1b8)](_0x5f451f=>_0x5f451f['id']),Array[_0x514df3(0x16a)](this[_0x514df3(0x1b9)][_0x514df3(0x1bf)]())[_0x514df3(0x1b8)](_0x2a40c8=>_0x2a40c8[_0x514df3(0x1a9)](_0x514df3(0x19d)))))return!0x1;let _0x3ffd58=!0x1;for(let _0x43517d=0x0;_0x43517d<this[_0x514df3(0x1a1)][_0x514df3(0x1ab)];_0x43517d++){const _0xa4007e=this[_0x514df3(0x1a1)][_0x43517d],_0x8c2aa7=_0x367a06[_0x514df3(0x182)](_0xa4007e[_0x514df3(0x178)]),_0x5682c1=_0x367a06[_0x514df3(0x191)](this[_0x514df3(0x1b9)],_0x43517d);_0x8c2aa7[_0x514df3(0x16c)](_0x5682c1)||(_0x367a06[_0x514df3(0x1c7)](_0x367a06[_0x514df3(0x173)](_0xa4007e[_0x514df3(0x178)]),_0x5682c1),_0x3ffd58=!0x0);}return _0x3ffd58;}[_0x58ed39(0x1a0)](_0x11cbc9){const _0x96e01a=_0x58ed39;if(!this[_0x96e01a(0x1a1)][_0x96e01a(0x1ab)])return!0x1;const {model:_0x54cd05}=this[_0x96e01a(0x16f)];let _0x4ae5f0=!0x1;for(let _0x2405a1=0x0;_0x2405a1<this[_0x96e01a(0x1a1)][_0x96e01a(0x1ab)]-0x1;_0x2405a1++){const _0x156866=this[_0x96e01a(0x1a1)][_0x2405a1],_0x5cb7d8=this[_0x96e01a(0x1a1)][_0x2405a1+0x1],_0x12bf79=_0x54cd05[_0x96e01a(0x182)](_0x156866[_0x96e01a(0x18e)]),_0x1d528e=_0x54cd05[_0x96e01a(0x182)](_0x5cb7d8[_0x96e01a(0x18e)]);_0x96e01a(0x1b0)===_0x12bf79[_0x96e01a(0x183)](_0x1d528e)&&(this[_0x96e01a(0x172)](_0x11cbc9,_0x156866[_0x96e01a(0x18e)]),_0x2405a1=-0x1,_0x4ae5f0=!0x0);}return _0x4ae5f0;}}function _(_0x575e71,_0x4838d1,_0x4676f9){const _0x361b92=_0x58ed39;if(_0x4676f9[_0x361b92(0x175)])return!0x1;const _0x5edc45=_0x4838d1?_0x361b92(0x18f):_0x361b92(0x18d);return _0x575e71[_0x361b92(0x16d)](_0x575e71[_0x361b92(0x184)](_0x5edc45),_0x4676f9),!0x0;}function I(_0x54ef73,_0xbc55a3,_0x340adc){const _0x5e369f=_0x58ed39;if(0x0===_0xbc55a3[_0x5e369f(0x1ab)])return 0x0;const _0x30d221=_0x54ef73[_0x5e369f(0x182)](_0x340adc);for(let _0x281840=0x0;_0x281840<_0xbc55a3[_0x5e369f(0x1ab)];_0x281840++){const _0x33f44e=_0xbc55a3[_0x281840],_0x582690=_0x54ef73[_0x5e369f(0x182)](_0x33f44e[_0x5e369f(0x18e)]);if(_0x5e369f(0x18b)===_0x30d221[_0x5e369f(0x183)](_0x582690))return _0x281840;}const _0x20f89c=_0x340adc[_0x5e369f(0x1c3)];let _0x3c5bb2=-0x1;for(let _0x17cde1=_0xbc55a3[_0x5e369f(0x1ab)]-0x1;_0x17cde1>=0x0;_0x17cde1--)if(_0xbc55a3[_0x17cde1][_0x5e369f(0x18e)][_0x5e369f(0x1c3)]===_0x20f89c){_0x3c5bb2=_0x17cde1;break;}if(-0x1!==_0x3c5bb2)return _0x3c5bb2+0x1;const _0x5362d3=_0x54ef73[_0x5e369f(0x17d)][_0x5e369f(0x1c5)](),_0x47cbc6=_0x5362d3[_0x5e369f(0x198)](_0x20f89c[_0x5e369f(0x1bb)]),_0x19caec=_0x5362d3[_0x47cbc6+0x1];if(_0x19caec){for(let _0x479703=0x0;_0x479703<_0xbc55a3[_0x5e369f(0x1ab)];_0x479703++)if(_0xbc55a3[_0x479703][_0x5e369f(0x18e)][_0x5e369f(0x1c3)][_0x5e369f(0x1bb)]===_0x19caec)return _0x479703;}return _0xbc55a3[_0x5e369f(0x1ab)];}
|
|
23
|
+
const _0x54bf7f=_0x1f1f;(function(_0x3a9a4e,_0x408dca){const _0x429107=_0x1f1f,_0x1afdc9=_0x3a9a4e();while(!![]){try{const _0x2a8a00=parseInt(_0x429107(0x129))/0x1*(-parseInt(_0x429107(0x106))/0x2)+parseInt(_0x429107(0x11e))/0x3+parseInt(_0x429107(0x148))/0x4*(parseInt(_0x429107(0xfb))/0x5)+parseInt(_0x429107(0x130))/0x6*(parseInt(_0x429107(0x138))/0x7)+parseInt(_0x429107(0x137))/0x8*(-parseInt(_0x429107(0x102))/0x9)+-parseInt(_0x429107(0x12b))/0xa*(-parseInt(_0x429107(0x105))/0xb)+parseInt(_0x429107(0x14b))/0xc*(-parseInt(_0x429107(0xfe))/0xd);if(_0x2a8a00===_0x408dca)break;else _0x1afdc9['push'](_0x1afdc9['shift']());}catch(_0x335afb){_0x1afdc9['push'](_0x1afdc9['shift']());}}}(_0xc316,0x84a48));import{Plugin as _0x454273}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x3dd8d1}from'./modelelementtracker.js';function _0x1f1f(_0x2d6d42,_0x560747){const _0xc316dd=_0xc316();return _0x1f1f=function(_0x1f1f62,_0x47e616){_0x1f1f62=_0x1f1f62-0xe7;let _0xddc456=_0xc316dd[_0x1f1f62];return _0xddc456;},_0x1f1f(_0x2d6d42,_0x560747);}export class FootnotesTracker extends _0x454273{[_0x54bf7f(0x119)]=[];[_0x54bf7f(0xf9)]=null;[_0x54bf7f(0x11b)]=null;[_0x54bf7f(0x104)];[_0x54bf7f(0x13b)];[_0x54bf7f(0xf4)];static get[_0x54bf7f(0xf6)](){const _0x46608c=_0x54bf7f;return _0x46608c(0x103);}static get[_0x54bf7f(0x134)](){return!0x0;}static get[_0x54bf7f(0x113)](){return!0x0;}constructor(_0x48369c){const _0x241448=_0x54bf7f;super(_0x48369c),this[_0x241448(0x104)]=new _0x3dd8d1(this[_0x241448(0xff)][_0x241448(0x120)],{'elementName':_0x241448(0x139),'getElementKey':()=>_0x241448(0x13a)}),this[_0x241448(0x13b)]=new _0x3dd8d1(this[_0x241448(0xff)][_0x241448(0x120)],{'elementName':_0x241448(0x10b),'getElementKey':_0x4e763e=>_0x4e763e[_0x241448(0x14d)](_0x241448(0x14c))}),this[_0x241448(0xf4)]=new _0x3dd8d1(this[_0x241448(0xff)][_0x241448(0x120)],{'elementName':_0x241448(0xf8),'getElementKey':_0x1d4219=>_0x1d4219[_0x241448(0x14d)](_0x241448(0x14c))});}[_0x54bf7f(0x128)](){const _0x19bb5b=_0x54bf7f,{editor:_0x1763a5}=this,{model:_0x104b5d,data:_0x261c42}=_0x1763a5;_0x104b5d[_0x19bb5b(0x10f)][_0x19bb5b(0xee)](_0x3b6e53=>{const _0x423055=_0x19bb5b,_0x2d2d66=_0x104b5d[_0x423055(0x10f)][_0x423055(0x108)][_0x423055(0x109)]();let _0x3df4c3=!0x1;return this[_0x423055(0x13c)](_0x3b6e53,_0x2d2d66)&&(_0x3df4c3=!0x0),this[_0x423055(0x112)](_0x3b6e53,_0x2d2d66)&&(_0x3df4c3=!0x0),this[_0x423055(0xea)](_0x3b6e53,_0x2d2d66)&&(_0x3df4c3=!0x0),this[_0x423055(0x146)](_0x3b6e53)&&(_0x3df4c3=!0x0),this[_0x423055(0xeb)](_0x3b6e53)&&(_0x3df4c3=!0x0),this[_0x423055(0xec)](_0x3b6e53)&&(_0x3df4c3=!0x0),_0x3df4c3;}),this[_0x19bb5b(0x13f)](_0x104b5d[_0x19bb5b(0x10f)],_0x19bb5b(0xe7),()=>{const _0x150a9a=_0x19bb5b;_0x104b5d[_0x150a9a(0x142)]({'isUndoable':!0x1},_0x1802ae=>{const _0x56d650=_0x150a9a;this[_0x56d650(0x122)](_0x1802ae);});},{'priority':_0x19bb5b(0xe8)}),this[_0x19bb5b(0x13f)](_0x261c42,_0x19bb5b(0x135),()=>{const _0xbcceed=_0x19bb5b;this[_0xbcceed(0x119)]=[],this[_0xbcceed(0x104)][_0xbcceed(0x111)](),this[_0xbcceed(0x13b)][_0xbcceed(0x111)](),this[_0xbcceed(0xf4)][_0xbcceed(0x111)]();},{'priority':_0x19bb5b(0xf3)});}[_0x54bf7f(0x10a)](){const _0x3ee266=_0x54bf7f;return this[_0x3ee266(0xf9)];}[_0x54bf7f(0x147)](_0x82e220){const _0x3efb24=_0x54bf7f;return this[_0x3efb24(0x119)][_0x3efb24(0x141)](_0x2b95a5=>_0x2b95a5['id']===_0x82e220)||null;}[_0x54bf7f(0x100)](){const _0x255bab=_0x54bf7f;return Array[_0x255bab(0xe9)](this[_0x255bab(0x119)]);}[_0x54bf7f(0x12c)](){const _0x2c74eb=_0x54bf7f;return this[_0x2c74eb(0x11b)];}[_0x54bf7f(0x11d)](_0x57e365){const _0x13560c=_0x54bf7f;this[_0x13560c(0x11b)]=_0x57e365;}[_0x54bf7f(0x133)](_0x3f8a98,_0x42b46a=0x0){const _0x41d879=_0x54bf7f;let _0x2da9cd=!0x1;for(let _0x36f751=_0x42b46a;_0x36f751<this[_0x41d879(0x119)][_0x41d879(0x14e)];_0x36f751++)this[_0x41d879(0xf1)](_0x3f8a98,_0x36f751)&&(_0x2da9cd=!0x0);return _0x2da9cd;}[_0x54bf7f(0x14a)](_0x110b96,_0x522a4e){const _0x1b8514=_0x54bf7f,_0x557c88=_0x110b96[_0x1b8514(0x126)](_0x1b8514(0x139),{});return _0x110b96[_0x1b8514(0xfd)](_0x557c88,_0x522a4e),this[_0x1b8514(0xf9)]=_0x557c88,_0x557c88;}[_0x54bf7f(0x122)](_0x1b906d){const _0x4ebbb6=_0x54bf7f;if(!this[_0x4ebbb6(0x119)][_0x4ebbb6(0x14e)]||this[_0x4ebbb6(0xf9)])return;const _0x3e56e6=this[_0x4ebbb6(0x119)][0x0][_0x4ebbb6(0x115)][_0x4ebbb6(0x12d)],_0x4ff990=this[_0x4ebbb6(0x14a)](_0x1b906d,_0x3e56e6);for(const _0x340502 of this[_0x4ebbb6(0x119)])_0x340502[_0x4ebbb6(0x10d)][_0x4ebbb6(0xf2)]||_0x1b906d[_0x4ebbb6(0x118)](_0x340502[_0x4ebbb6(0x10d)],_0x4ff990,_0x4ebbb6(0x10e));this[_0x4ebbb6(0x133)](_0x1b906d);}[_0x54bf7f(0x13c)](_0x3eec7f,_0x5e57a8){const _0x17a777=_0x54bf7f;let _0x417136=!0x1;const {inserted:_0x2621ec,removed:_0x408a38,moved:_0x33ba3b}=this[_0x17a777(0x104)][_0x17a777(0x109)](_0x5e57a8);if(_0x33ba3b[_0x17a777(0x14e)]&&(this[_0x17a777(0xf9)]=_0x33ba3b[0x0]),_0x2621ec[_0x17a777(0x14e)]){if(_0x2621ec[_0x17a777(0x14e)]>0x1||this[_0x17a777(0xf9)]&&_0x2621ec[_0x17a777(0x11c)](_0x3ab1ee=>_0x3ab1ee!==this[_0x17a777(0xf9)])){const _0x47f904=_0x3eec7f[_0x17a777(0x126)](_0x17a777(0x139),{}),_0x5173d6=[];this[_0x17a777(0xf9)]&&_0x5173d6[_0x17a777(0x11f)](this[_0x17a777(0xf9)]),_0x5173d6[_0x17a777(0x11f)](..._0x2621ec),_0x3eec7f[_0x17a777(0x118)](_0x47f904,_0x5173d6[0x0],_0x17a777(0x132));for(const _0x63771a of _0x5173d6)_0x3eec7f[_0x17a777(0x10c)](_0x3eec7f[_0x17a777(0x114)](_0x63771a),_0x3eec7f[_0x17a777(0x140)](_0x47f904,_0x17a777(0x10e))),_0x3eec7f[_0x17a777(0xf7)](_0x63771a);this[_0x17a777(0xf9)]=_0x47f904,this[_0x17a777(0x133)](_0x3eec7f),_0x417136=!0x0;}else this[_0x17a777(0xf9)]=_0x2621ec[0x0];}if(_0x408a38[_0x17a777(0x14e)]&&_0x17a777(0x12a)===this[_0x17a777(0xf9)]?.[_0x17a777(0x12d)][_0x17a777(0x12e)]){for(const _0x3338cc of this[_0x17a777(0x119)])_0x3eec7f[_0x17a777(0xf7)](_0x3338cc[_0x17a777(0x115)]),_0x417136=!0x0;this[_0x17a777(0x119)]=[],this[_0x17a777(0xf9)]=null;}return _0x417136;}[_0x54bf7f(0x112)](_0x50c79a,_0x56054f){const _0x3e5f58=_0x54bf7f;let _0x38bc5=!0x1;const _0x37113b=this[_0x3e5f58(0xff)][_0x3e5f58(0x136)][_0x3e5f58(0x124)](_0x3e5f58(0x13e)),{inserted:_0x22cf8f,moved:_0x17f86f}=this[_0x3e5f58(0xf4)][_0x3e5f58(0x109)](_0x56054f);for(const _0x403dbc of[..._0x17f86f,..._0x22cf8f]){const _0x477222=_0x403dbc[_0x3e5f58(0x14d)](_0x3e5f58(0x14c)),_0x545d10=this[_0x3e5f58(0x147)](_0x477222);_0x545d10&&(_0x545d10[_0x3e5f58(0x10d)]=_0x403dbc),_(_0x50c79a,_0x37113b,_0x403dbc)&&(_0x38bc5=!0x0);}return _0x38bc5;}[_0x54bf7f(0xea)](_0x52a6a7,_0x4af8a9){const _0x22d832=_0x54bf7f;let _0x3e59ed=!0x1;const {removed:_0x344e70,inserted:_0x21b226,moved:_0xda5b62}=this[_0x22d832(0x13b)][_0x22d832(0x109)](_0x4af8a9);for(const _0x48258d of _0x344e70)this[_0x22d832(0x101)](_0x52a6a7,_0x48258d)&&(_0x3e59ed=!0x0);for(const _0x518695 of _0x21b226)this[_0x22d832(0xf0)](_0x52a6a7,_0x518695)&&(_0x3e59ed=!0x0);for(const _0xe8d23b of _0xda5b62)this[_0x22d832(0x13d)](_0x52a6a7,_0xe8d23b)&&(_0x3e59ed=!0x0);return _0x3e59ed;}[_0x54bf7f(0xeb)](_0x32995f){const _0x3779f1=_0x54bf7f;if(!this[_0x3779f1(0xf9)])return!0x1;let _0x43b94e=!0x1;if(this[_0x3779f1(0xf9)][_0x3779f1(0x117)]!==this[_0x3779f1(0x119)][_0x3779f1(0x14e)]){const _0x13c3bf=[];for(const _0x5518eb of this[_0x3779f1(0xf9)][_0x3779f1(0xfc)]()){const _0x1ac692=_0x5518eb[_0x3779f1(0x14d)](_0x3779f1(0x14c));this[_0x3779f1(0x147)](_0x1ac692)||(_0x13c3bf[_0x3779f1(0x11a)](_0x5518eb),_0x43b94e=!0x0);}for(const _0x59cce1 of _0x13c3bf)_0x32995f[_0x3779f1(0xf7)](_0x59cce1);}const _0x325b1b=new Set(),_0x55e340=[];for(const _0xb25716 of this[_0x3779f1(0xf9)][_0x3779f1(0xfc)]()){const _0x560b62=_0xb25716[_0x3779f1(0x14d)](_0x3779f1(0x14c));_0x325b1b[_0x3779f1(0xef)](_0x560b62)?(_0x55e340[_0x3779f1(0x11a)](_0xb25716),_0x43b94e=!0x0):_0x325b1b[_0x3779f1(0xf5)](_0x560b62);}for(const _0x52fc16 of _0x55e340)_0x32995f[_0x3779f1(0xf7)](_0x52fc16);return this[_0x3779f1(0xf9)][_0x3779f1(0x117)]||(_0x32995f[_0x3779f1(0xf7)](this[_0x3779f1(0xf9)]),this[_0x3779f1(0xf9)]=null,_0x43b94e=!0x0),_0x43b94e;}[_0x54bf7f(0xf0)](_0xf1e51e,_0x517a29){const _0xdde1d2=_0x54bf7f;if(this[_0xdde1d2(0x119)][_0xdde1d2(0x141)](_0x55e4db=>_0x55e4db[_0xdde1d2(0x115)]===_0x517a29))return!0x1;let _0x43c849=!0x1;const _0x39e199=_0x517a29[_0xdde1d2(0x14d)](_0xdde1d2(0x14c)),_0x192c60=this[_0xdde1d2(0x119)][_0xdde1d2(0x144)](_0x3a5087=>_0x3a5087['id']===_0x39e199);-0x1!==_0x192c60&&(_0xf1e51e[_0xdde1d2(0xf7)](this[_0xdde1d2(0x119)][_0x192c60][_0xdde1d2(0x115)]),this[_0xdde1d2(0x119)][_0xdde1d2(0x12f)](_0x192c60,0x1),_0x43c849=!0x0);let _0x6e582e=this[_0xdde1d2(0xf9)]?function(_0x407cd2,_0x2a0240){const _0x3eb145=_0xdde1d2;for(const _0x390732 of _0x407cd2[_0x3eb145(0xfc)]())if(_0x390732[_0x3eb145(0x14d)](_0x3eb145(0x14c))===_0x2a0240)return _0x390732;return null;}(this[_0xdde1d2(0xf9)],_0x39e199):null;_0x6e582e||(_0x6e582e=_0xf1e51e[_0xdde1d2(0x126)](_0xdde1d2(0xf8),{'footnoteId':_0x39e199}),this[_0xdde1d2(0xf9)]&&(_0xf1e51e[_0xdde1d2(0x118)](_0x6e582e,this[_0xdde1d2(0xf9)],_0xdde1d2(0x10e)),_0x43c849=!0x0));const _0x392d06={'id':_0x39e199,'reference':_0x517a29,'definition':_0x6e582e},_0x5e290b=I(this[_0xdde1d2(0xff)][_0xdde1d2(0x120)],this[_0xdde1d2(0x119)],_0x517a29);this[_0xdde1d2(0x119)][_0xdde1d2(0x12f)](_0x5e290b,0x0,_0x392d06);let _0x12d54d=_0x5e290b;return-0x1!==_0x192c60&&(_0x12d54d=Math[_0xdde1d2(0x125)](_0x5e290b,_0x192c60)),this[_0xdde1d2(0x133)](_0xf1e51e,_0x12d54d)&&(_0x43c849=!0x0),_0x43c849;}[_0x54bf7f(0x101)](_0x557a4a,_0x29dd1e){const _0x42d375=_0x54bf7f,_0x5a3e52=this[_0x42d375(0x119)][_0x42d375(0x144)](_0x4fe84a=>_0x4fe84a['id']===_0x29dd1e);if(-0x1===_0x5a3e52)return!0x1;let _0x2fc639=!0x1;const _0x4bdc09=this[_0x42d375(0x119)][_0x5a3e52];return _0x42d375(0x12a)!==_0x4bdc09[_0x42d375(0x10d)][_0x42d375(0x12d)][_0x42d375(0x12e)]&&(_0x557a4a[_0x42d375(0xf7)](_0x4bdc09[_0x42d375(0x10d)]),_0x2fc639=!0x0),this[_0x42d375(0x119)][_0x42d375(0x12f)](_0x5a3e52,0x1),this[_0x42d375(0x133)](_0x557a4a,_0x5a3e52)&&(_0x2fc639=!0x0),_0x2fc639;}[_0x54bf7f(0x13d)](_0x3abd53,_0x3377a2){const _0x548042=_0x54bf7f,_0x450ae7=_0x3377a2[_0x548042(0x14d)](_0x548042(0x14c)),_0x58ac5a=this[_0x548042(0x119)][_0x548042(0x144)](_0x3be32=>_0x3be32['id']===_0x450ae7),_0x2f6a39=this[_0x548042(0x119)][_0x58ac5a];let _0x18e6e8=!0x1;_0x2f6a39[_0x548042(0x115)]=_0x3377a2,this[_0x548042(0x119)][_0x548042(0x12f)](_0x58ac5a,0x1);const _0xc89644=I(this[_0x548042(0xff)][_0x548042(0x120)],this[_0x548042(0x119)],_0x3377a2);return this[_0x548042(0x119)][_0x548042(0x12f)](_0xc89644,0x0,_0x2f6a39),this[_0x548042(0x133)](_0x3abd53,Math[_0x548042(0x125)](_0x58ac5a,_0xc89644))&&(_0x18e6e8=!0x0),_0x18e6e8;}[_0x54bf7f(0xf1)](_0x35a75b,_0x12f2ef){const _0x65e788=_0x54bf7f;if(!this[_0x65e788(0xf9)])return!0x1;const _0x328f52=this[_0x65e788(0x119)][_0x12f2ef];let _0x3d8550;return _0x3d8550=this[_0x65e788(0x11b)]?this[_0x65e788(0x11b)]({'footnote':_0x328f52,'container':this[_0x65e788(0xf9)],'digits':String(this[_0x65e788(0x119)][_0x65e788(0x14e)])[_0x65e788(0x14e)],'value':_0x12f2ef+0x1}):String(_0x12f2ef+0x1),_0x328f52[_0x65e788(0x115)][_0x65e788(0x14d)](_0x65e788(0x123))!=_0x3d8550&&(_0x35a75b[_0x65e788(0x149)](_0x65e788(0x123),_0x3d8550,_0x328f52[_0x65e788(0x115)]),!0x0);}[_0x54bf7f(0xec)](_0x54c33e){const _0x4fbd4e=_0x54bf7f;if(!this[_0x4fbd4e(0xf9)]||this[_0x4fbd4e(0x119)][_0x4fbd4e(0x14e)]<0x2)return!0x1;if(function(_0x61c8ca,_0x34de89){const _0x1036e3=_0x4fbd4e;if(_0x61c8ca[_0x1036e3(0x14e)]!==_0x34de89[_0x1036e3(0x14e)])return!0x1;for(let _0x339f24=0x0;_0x339f24<_0x61c8ca[_0x1036e3(0x14e)];_0x339f24++)if(_0x61c8ca[_0x339f24]!==_0x34de89[_0x339f24])return!0x1;return!0x0;}(this[_0x4fbd4e(0x119)][_0x4fbd4e(0x131)](_0x56ca7c=>_0x56ca7c['id']),Array[_0x4fbd4e(0xe9)](this[_0x4fbd4e(0xf9)][_0x4fbd4e(0xfc)]())[_0x4fbd4e(0x131)](_0x4d1e2c=>_0x4d1e2c[_0x4fbd4e(0x14d)](_0x4fbd4e(0x14c)))))return!0x1;let _0x4a3dab=!0x1;for(let _0x282604=0x0;_0x282604<this[_0x4fbd4e(0x119)][_0x4fbd4e(0x14e)];_0x282604++){const _0x351882=this[_0x4fbd4e(0x119)][_0x282604],_0x466cbb=_0x54c33e[_0x4fbd4e(0x127)](_0x351882[_0x4fbd4e(0x10d)]),_0x46a1ff=_0x54c33e[_0x4fbd4e(0x140)](this[_0x4fbd4e(0xf9)],_0x282604);_0x466cbb[_0x4fbd4e(0x143)](_0x46a1ff)||(_0x54c33e[_0x4fbd4e(0x10c)](_0x54c33e[_0x4fbd4e(0xfa)](_0x351882[_0x4fbd4e(0x10d)]),_0x46a1ff),_0x4a3dab=!0x0);}return _0x4a3dab;}[_0x54bf7f(0x146)](_0x313143){const _0x2a791e=_0x54bf7f;if(!this[_0x2a791e(0x119)][_0x2a791e(0x14e)])return!0x1;const {model:_0x1fac25}=this[_0x2a791e(0xff)];let _0x284048=!0x1;for(let _0x18182e=0x0;_0x18182e<this[_0x2a791e(0x119)][_0x2a791e(0x14e)]-0x1;_0x18182e++){const _0x425fe6=this[_0x2a791e(0x119)][_0x18182e],_0x1f1b1e=this[_0x2a791e(0x119)][_0x18182e+0x1],_0x14ca86=_0x1fac25[_0x2a791e(0x127)](_0x425fe6[_0x2a791e(0x115)]),_0x3612b6=_0x1fac25[_0x2a791e(0x127)](_0x1f1b1e[_0x2a791e(0x115)]);_0x2a791e(0x121)===_0x14ca86[_0x2a791e(0x116)](_0x3612b6)&&(this[_0x2a791e(0x13d)](_0x313143,_0x425fe6[_0x2a791e(0x115)]),_0x18182e=-0x1,_0x284048=!0x0);}return _0x284048;}}function _0xc316(){const _0x43473c=['min','createElement','createPositionBefore','init','1052957AYJDSt','$graveyard','10fFNQcl','getFootnotesFormatter','root','rootName','splice','6PRGRfz','map','before','_updateFootnotesCounters','isOfficialPlugin','set','config','8GSJcgi','3556182wtIShC','footnotesDefinitions','singleton','_footnoteRefsTracker','_handleFootnotesDefinitionsObjectChanges','_handleMovedFootnoteReference','footnotes.multiBlock','listenTo','createPositionAt','find','enqueueChange','isEqual','findIndex','paragraph','_ensureFootnotesReferencesHaveProperOrder','getFootnote','4162124JOSady','setAttribute','_insertEmptyFootnotesDefinitionsContainer','12KgtFKZ','footnoteId','getAttribute','length','change:data','low','from','_handleFootnoteReferencesChanges','_handleFootnotesDefinitionsObjectSync','_sortFootnoteDefinitions','footnoteInlineContent','registerPostFixer','has','_handleInsertedFootnoteReference','_updateFootnoteRefCounter','parent','high','_footnoteDefsTracker','add','pluginName','remove','footnoteDefinition','_footnotesDefinitions','createRangeOn','5sDtoYx','getChildren','append','21041501BkDhSI','editor','getFootnotes','_handleRemoveFootnoteReferenceById','962514ARKSIy','FootnotesTracker','_footnoteDefsContainerTracker','8451773nDCxsl','2HFHPgM','getRootNames','differ','getChanges','getFootnotesDefinitionsObjectElement','footnoteRef','move','definition','end','document','indexOf','reset','_handleFootnoteDefinitionsChanges','isPremiumPlugin','createRangeIn','reference','compareWith','childCount','insert','_footnotes','unshift','_footnoteFormatter','some','setFootnoteFormatter','3014652GOXCPQ','push','model','after','_ensureFootnotesDefinitionsContainerExists','footnoteCounter','get'];_0xc316=function(){return _0x43473c;};return _0xc316();}function _(_0x1143c3,_0x2bd240,_0x205ccc){const _0x3e96f3=_0x54bf7f;if(_0x205ccc[_0x3e96f3(0x117)])return!0x1;const _0x3a8e43=_0x2bd240?_0x3e96f3(0x145):_0x3e96f3(0xed);return _0x1143c3[_0x3e96f3(0x118)](_0x1143c3[_0x3e96f3(0x126)](_0x3a8e43),_0x205ccc),!0x0;}function I(_0x272a09,_0x4149ca,_0x3c6470){const _0x57331a=_0x54bf7f;if(0x0===_0x4149ca[_0x57331a(0x14e)])return 0x0;const _0x257903=_0x272a09[_0x57331a(0x127)](_0x3c6470);for(let _0x2259a9=0x0;_0x2259a9<_0x4149ca[_0x57331a(0x14e)];_0x2259a9++){const _0x2d2dc1=_0x4149ca[_0x2259a9],_0x2d4dbe=_0x272a09[_0x57331a(0x127)](_0x2d2dc1[_0x57331a(0x115)]);if(_0x57331a(0x132)===_0x257903[_0x57331a(0x116)](_0x2d4dbe))return _0x2259a9;}const _0x2e564f=_0x3c6470[_0x57331a(0x12d)];let _0x2aef9e=-0x1;for(let _0x916b25=_0x4149ca[_0x57331a(0x14e)]-0x1;_0x916b25>=0x0;_0x916b25--)if(_0x4149ca[_0x916b25][_0x57331a(0x115)][_0x57331a(0x12d)]===_0x2e564f){_0x2aef9e=_0x916b25;break;}if(-0x1!==_0x2aef9e)return _0x2aef9e+0x1;const _0x22cbc5=_0x272a09[_0x57331a(0x10f)][_0x57331a(0x107)](),_0x456931=_0x22cbc5[_0x57331a(0x110)](_0x2e564f[_0x57331a(0x12e)]),_0x637687=_0x22cbc5[_0x456931+0x1];if(_0x637687){for(let _0x381fce=0x0;_0x381fce<_0x4149ca[_0x57331a(0x14e)];_0x381fce++)if(_0x4149ca[_0x381fce][_0x57331a(0x115)][_0x57331a(0x12d)][_0x57331a(0x12e)]===_0x637687)return _0x381fce;}return _0x4149ca[_0x57331a(0x14e)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x67c848,MenuBarMenuListItemButtonView as _0xd5139a}from'ckeditor5/src/ui.js';import{Plugin as _0x53357a}from'ckeditor5/src/core.js';import{IconFootnote as _0xaf3e33}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x53357a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1decf1}=this,{componentFactory:_0x3502ea}=_0x1decf1['ui'];_0x3502ea['add']('insertFootnote',x(_0x1decf1,_0x67c848)),_0x3502ea['add']('menuBar:insertFootnote',x(_0x1decf1,_0xd5139a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43aebc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bbd24;for(const _0x14a4b9 in _0x43aebc){const _0x42d407=_0x14a4b9,_0xef3dce=_0x43aebc[_0x42d407];if('footnotesLicenseKeyValid'==_0xef3dce||'footnotesLicenseKeyInvalid'==_0xef3dce||'footnotesLicenseKeyExpired'==_0xef3dce||'footnotesLicenseKeyDomainLimit'==_0xef3dce||'footnotesLicenseKeyNotAllowed'==_0xef3dce||'footnotesLicenseKeyEvaluationLimit'==_0xef3dce||'footnotesLicenseKeyTrialLimit'==_0xef3dce||'footnotesLicenseKeyUsageLimit'==_0xef3dce){delete _0x43aebc[_0x42d407],_0x1bbd24=_0xef3dce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1bbd24&&_0x43aebc['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1bbd24&&_0x43aebc['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1bbd24&&_0x43aebc['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1bbd24&&_0x43aebc['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1bbd24&&_0x43aebc['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1bbd24&&_0x43aebc['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1bbd24&&_0x43aebc['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4163c1,_0x6adfa1){const _0x231267=_0x4163c1['commands']['get']('insertFootnote');return _0x420be8=>{const {t:t}=_0x420be8,_0x41a486=new _0x6adfa1(_0x420be8),_0x889df4=_0x41a486 instanceof _0xd5139a;return _0x41a486['bind']('isEnabled')['to'](_0x231267,'isEnabled'),_0x41a486['set']({'label':t(_0x889df4?'Footnote':'Insert\x20footnote'),'icon':_0xaf3e33,'tooltip':!0x0}),_0x41a486['on']('execute',()=>{_0x231267['execute'](),_0x4163c1['editing']['view']['focus']();}),_0x41a486;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x62d5e,_0x483e35){var _0x3abc9a=_0x4cfc,_0xdf62e=_0x62d5e();while(!![]){try{var _0x28ff44=parseInt(_0x3abc9a(0x1bb))/0x1*(parseInt(_0x3abc9a(0x1b9))/0x2)+parseInt(_0x3abc9a(0x1b4))/0x3+-parseInt(_0x3abc9a(0x1b3))/0x4+parseInt(_0x3abc9a(0x1bc))/0x5*(-parseInt(_0x3abc9a(0x1b5))/0x6)+-parseInt(_0x3abc9a(0x1b2))/0x7*(-parseInt(_0x3abc9a(0x1ba))/0x8)+parseInt(_0x3abc9a(0x1b7))/0x9+-parseInt(_0x3abc9a(0x1b8))/0xa*(parseInt(_0x3abc9a(0x1b6))/0xb);if(_0x28ff44===_0x483e35)break;else _0xdf62e['push'](_0xdf62e['shift']());}catch(_0x16d018){_0xdf62e['push'](_0xdf62e['shift']());}}}(_0x4245,0xed09c));import'./augmentation.js';function _0x4cfc(_0x35cf9c,_0x5204bb){var _0x42455c=_0x4245();return _0x4cfc=function(_0x4cfc5f,_0xce6fb2){_0x4cfc5f=_0x4cfc5f-0x1b2;var _0x2da262=_0x42455c[_0x4cfc5f];return _0x2da262;},_0x4cfc(_0x35cf9c,_0x5204bb);}function _0x4245(){var _0x4f02b9=['1749786uLYNWh','22MDYaTy','10517418XYxImK','8632360McDoqQ','3265586MGjmkb','14095736eMhIVh','1gBHAom','10kkmeOl','7bqTxsO','6151516adPaFI','765477RLeezo'];_0x4245=function(){return _0x4f02b9;};return _0x4245();}export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x29ac3d=_0x1f17;(function(_0x5876a3,_0x2f5183){const _0x49645d=_0x1f17,_0x5c7c15=_0x5876a3();while(!![]){try{const _0xb188e=-parseInt(_0x49645d(0x92))/0x1+-parseInt(_0x49645d(0x87))/0x2+-parseInt(_0x49645d(0x84))/0x3+-parseInt(_0x49645d(0x7b))/0x4*(parseInt(_0x49645d(0x8d))/0x5)+parseInt(_0x49645d(0x9b))/0x6+parseInt(_0x49645d(0x90))/0x7*(parseInt(_0x49645d(0x94))/0x8)+parseInt(_0x49645d(0x7d))/0x9*(parseInt(_0x49645d(0x8b))/0xa);if(_0xb188e===_0x2f5183)break;else _0x5c7c15['push'](_0x5c7c15['shift']());}catch(_0x5464d3){_0x5c7c15['push'](_0x5c7c15['shift']());}}}(_0x3765,0xf17ca));export class ModelElementTracker{[_0x29ac3d(0x8a)];[_0x29ac3d(0x7f)];[_0x29ac3d(0x80)];[_0x29ac3d(0x8c)]=new Map();constructor(_0x223e1a,_0x55ca87){const _0x33a011=_0x29ac3d;this[_0x33a011(0x8a)]=_0x223e1a,this[_0x33a011(0x7f)]=_0x55ca87[_0x33a011(0x78)],this[_0x33a011(0x80)]=_0x55ca87[_0x33a011(0x95)];}[_0x29ac3d(0x9c)](){const _0x2a18dd=_0x29ac3d;this[_0x2a18dd(0x8c)][_0x2a18dd(0x82)]();}[_0x29ac3d(0xa0)](_0x33fc6a){const _0x4988af=_0x29ac3d,_0xb3553d=new Set(),_0x36b71d=new Map();for(const _0xb89a6 of _0x33fc6a){if(_0x4988af(0x9a)===_0xb89a6[_0x4988af(0x97)]&&_0x4988af(0x77)!==_0xb89a6[_0x4988af(0x9f)]&&_0xb89a6[_0x4988af(0x86)][_0x4988af(0x93)]){const _0x1d451d=this[_0x4988af(0x8a)][_0x4988af(0x76)](_0xb89a6[_0x4988af(0x86)][_0x4988af(0x93)]);for(const _0x59d419 of _0x1d451d[_0x4988af(0x7a)]()){if(!_0x59d419['is'](_0x4988af(0x85),this[_0x4988af(0x7f)]))continue;const _0x3c35c6=this[_0x4988af(0x80)](_0x59d419);_0x36b71d[_0x4988af(0x89)](_0x3c35c6)||_0x36b71d[_0x4988af(0x88)](_0x3c35c6,[]),_0x36b71d[_0x4988af(0x91)](_0x3c35c6)[_0x4988af(0xa1)](_0x59d419);}}if(_0x4988af(0x8f)===_0xb89a6[_0x4988af(0x97)]&&_0xb89a6[_0x4988af(0x9f)]===this[_0x4988af(0x7f)]){const _0x1a700d=this[_0x4988af(0x80)]({'getAttribute':_0x5140f5=>_0xb89a6[_0x4988af(0x99)][_0x4988af(0x91)](_0x5140f5)});_0xb3553d[_0x4988af(0x7e)](_0x1a700d);}}for(const [_0x29d01c,_0x409f35]of this[_0x4988af(0x8c)])_0x4988af(0x98)===_0x409f35[_0x4988af(0x83)][_0x4988af(0x9d)]&&_0xb3553d[_0x4988af(0x7e)](_0x29d01c);for(const _0x2972ce of _0xb3553d)this[_0x4988af(0x8c)][_0x4988af(0x8e)](_0x2972ce);for(const [_0x2c5057,_0x9b5fa1]of _0x36b71d)this[_0x4988af(0x8c)][_0x4988af(0x88)](_0x2c5057,_0x9b5fa1[_0x9b5fa1[_0x4988af(0x9e)]-0x1]);const _0x4f9c9e=new Set();for(const [_0x80e8f5,_0x31e988]of _0x36b71d)_0xb3553d[_0x4988af(0x89)](_0x80e8f5)&&(_0x4f9c9e[_0x4988af(0x7e)](_0x31e988[0x0]),_0x31e988[_0x4988af(0x9e)]>0x1?_0x36b71d[_0x4988af(0x88)](_0x80e8f5,_0x31e988[_0x4988af(0x96)](0x1)):_0x36b71d[_0x4988af(0x8e)](_0x80e8f5),_0xb3553d[_0x4988af(0x8e)](_0x80e8f5));return{'removed':Array[_0x4988af(0x7c)](_0xb3553d),'inserted':Array[_0x4988af(0x7c)](_0x36b71d[_0x4988af(0x81)]())[_0x4988af(0x79)](),'moved':Array[_0x4988af(0x7c)](_0x4f9c9e)};}}function _0x1f17(_0x466a5d,_0x1b7b3c){const _0x3765dc=_0x3765();return _0x1f17=function(_0x1f1782,_0x29f8ea){_0x1f1782=_0x1f1782-0x76;let _0x4761fd=_0x3765dc[_0x1f1782];return _0x4761fd;},_0x1f17(_0x466a5d,_0x1b7b3c);}function _0x3765(){const _0xbb3c0=['_trackedElements','160NGnIEz','delete','remove','21xnWEYG','get','1227960JvEqRD','nodeAfter','3098816FerbDC','getElementKey','slice','type','$graveyard','attributes','insert','7577910GNLqyf','reset','rootName','length','name','getChanges','push','createRangeOn','$text','elementName','flat','getItems','201124ARxWXN','from','275841pTPHHX','add','_elementName','_getElementKey','values','clear','root','5390679tRcCVu','element','position','3473110LdBOAy','set','has','_model','1610IhNNOQ'];_0x3765=function(){return _0xbb3c0;};return _0x3765();}
|