@ckeditor/ckeditor5-footnotes 47.4.0-alpha.1 → 47.4.0-alpha.3
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 _0x3e0d32}from'ckeditor5/src/core.js';import{isWidget as _0x195cfc,toWidget as _0x4eadfb,toWidgetEditable as _0x2ec041}from'ckeditor5/src/widget.js';import{uid as _0xa4ef49}from'ckeditor5/src/utils.js';import{PointerObserver as _0x309673,ClickObserver as _0x1e5efe}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1bbdb5}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x96fca8}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3e0d32{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1bbdb5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a2fa3}=this;_0x1a2fa3['config']['define']('footnotes.multiBlock',!0x0),_0x1a2fa3['commands']['add']('insertFootnote',new _0x96fca8(_0x1a2fa3)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3c6315){const _0x3dc64e=_0x50c3ff([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]),_0x52724b=0x47a28506,_0x39064b=0x47a5fb56^_0x52724b,_0x5b0da3=window[_0x50c3ff([0x44,0x61,0x74,0x65])][_0x50c3ff([0x6e,0x6f,0x77])](),_0x451ffd=_0x3c6315[_0x50c3ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcf3aba=new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff223=>{_0x451ffd[_0x50c3ff([0x6f,0x6e,0x63,0x65])](_0x50c3ff([0x72,0x65,0x61,0x64,0x79]),_0x1ff223);}),_0x5ad6d2={[_0x50c3ff([0x6b,0x74,0x79])]:_0x50c3ff([0x45,0x43]),[_0x50c3ff([0x75,0x73,0x65])]:_0x50c3ff([0x73,0x69,0x67]),[_0x50c3ff([0x63,0x72,0x76])]:_0x50c3ff([0x50,0x2d,0x32,0x35,0x36]),[_0x50c3ff([0x78])]:_0x50c3ff([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]),[_0x50c3ff([0x79])]:_0x50c3ff([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]),[_0x50c3ff([0x61,0x6c,0x67])]:_0x50c3ff([0x45,0x53,0x32,0x35,0x36])},_0x4abd45=_0x451ffd[_0x50c3ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50c3ff([0x67,0x65,0x74])](_0x50c3ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46b642(){let _0xdef55a,_0x5da6a9=null,_0xf58293=null;try{if(_0x4abd45==_0x50c3ff([0x47,0x50,0x4c]))return _0x50c3ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdef55a=_0x434e7f(),!_0xdef55a)return _0x50c3ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdef55a[_0x50c3ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf58293=_0x5ba56c(_0xdef55a[_0x50c3ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdef55a[_0x50c3ff([0x6a,0x74,0x69])])),await _0x156c32()?_0x356858()?_0x4e5cdc()?_0x50c3ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xcbd781()?(_0xdef55a[_0x50c3ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50c3ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5da6a9=_0x489b2a(_0x50c3ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x564c89()):_0x50c3ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50c3ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50c3ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x50c3ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e5cdc(){const _0x4111b2=[_0x50c3ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50c3ff([0x74,0x72,0x69,0x61,0x6c])][_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdef55a[_0x50c3ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b0da3/0x3e8:0xe10*_0x39064b;return _0xdef55a[_0x50c3ff([0x65,0x78,0x70])]<_0x4111b2;}function _0x356858(){const _0x2b3b05=_0xdef55a[_0x50c3ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b3b05&&(!!_0x2b3b05[_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c3ff([0x2a]))||!!_0x2b3b05[_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c3ff([0x46,0x4f,0x4f])));}function _0xcbd781(){const _0xd1b1ab=_0xdef55a[_0x50c3ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd1b1ab||0x0==_0xd1b1ab[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25649a}=new URL(window[_0x50c3ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd1b1ab[_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25649a))return!0x0;const _0x1ced74=_0x25649a[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])](_0x50c3ff([0x2e]));return _0xd1b1ab[_0x50c3ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e1618=>_0x1e1618[_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c3ff([0x2a])))[_0x50c3ff([0x6d,0x61,0x70])](_0x44bc16=>_0x44bc16[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])](_0x50c3ff([0x2e])))[_0x50c3ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11a5cb=>_0x11a5cb[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ced74[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50c3ff([0x6d,0x61,0x70])](_0x4e91a4=>Array(_0x1ced74[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4e91a4[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50c3ff([0x66,0x69,0x6c,0x6c])](_0x4e91a4[0x0]===_0x50c3ff([0x2a])?_0x50c3ff([0x2a]):'')[_0x50c3ff([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4e91a4))[_0x50c3ff([0x73,0x6f,0x6d,0x65])](_0x3fe696=>_0x1ced74[_0x50c3ff([0x65,0x76,0x65,0x72,0x79])]((_0x5c455a,_0x10a4c3)=>_0x3fe696[_0x10a4c3]===_0x5c455a||_0x3fe696[_0x10a4c3]===_0x50c3ff([0x2a])));}function _0x564c89(){return _0x5da6a9&&_0xf58293?new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35e093,_0x4a9527)=>{_0x5da6a9[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x35e093,_0x4a9527),_0xf58293[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x33ed7f=>{_0x33ed7f!=_0x50c3ff([0x56,0x61,0x6c,0x69,0x64])&&_0x35e093(_0x33ed7f);},_0x4a9527);}):_0x5da6a9||_0xf58293||_0x50c3ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ba56c(_0x2ac002,_0x34aaa0){return new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c38fc=>{if(_0x191dc7())return _0x5c38fc(_0x50c3ff([0x56,0x61,0x6c,0x69,0x64]));_0x3fbbde(),_0x451ffd[_0x50c3ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50c3ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e848e=!0x1;const _0x3f9dcb=_0xa4ef49();function _0x19ebb9(_0x3563a1){return!!_0x3563a1&&(typeof _0x3563a1===_0x50c3ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3563a1===_0x50c3ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3563a1[_0x50c3ff([0x74,0x68,0x65,0x6e])]===_0x50c3ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3563a1[_0x50c3ff([0x63,0x61,0x74,0x63,0x68])]===_0x50c3ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb4dede(_0x23782b){_0x136c55(_0x23782b)[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x29f40d=>{if(!_0x29f40d||_0x29f40d[_0x50c3ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50c3ff([0x6f,0x6b]))return _0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x453f9(_0xfe2500(_0x3f9dcb+_0x34aaa0))!=_0x29f40d[_0x50c3ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50c3ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x3527a9=>(_0x47e6a6(),_0x3527a9),()=>{const _0x8b2dea=_0x1fa73a();return null==_0x8b2dea?(_0x47e6a6(),_0x50c3ff([0x56,0x61,0x6c,0x69,0x64])):_0x50c3ff(_0x5b0da3-_0x8b2dea>(0x63ae0106^_0x52724b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x5c38fc)[_0x50c3ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c38fc(_0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb0f519=0x47946b86^_0x52724b;function _0x47e6a6(){const _0x53dc6f=_0x50c3ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x453f9(_0xfe2500(_0x2ac002)),_0x151950=_0xeb51ef(_0x453f9(window[_0x50c3ff([0x4d,0x61,0x74,0x68])][_0x50c3ff([0x63,0x65,0x69,0x6c])](_0x5b0da3/_0xb0f519)));window[_0x50c3ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50c3ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53dc6f,_0x151950);}function _0x1fa73a(){const _0x29ecec=_0x50c3ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x453f9(_0xfe2500(_0x2ac002)),_0x37f4b3=window[_0x50c3ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50c3ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29ecec);return _0x37f4b3?window[_0x50c3ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeb51ef(_0x37f4b3),0x10)*_0xb0f519:null;}function _0x136c55(_0x57055d){return new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a31be,_0x2ded4e)=>{_0x57055d[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x1a31be,_0x2ded4e),window[_0x50c3ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ded4e,0x47a351c6^_0x52724b);});}}_0x451ffd[_0x50c3ff([0x6f,0x6e])](_0x50c3ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a2e06,_0x1bca93)=>{if(_0x1bca93[0x0]!=_0x2ac002)return _0x5c38fc(_0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bca93[0x1]={..._0x1bca93[0x1],[_0x50c3ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f9dcb};},{[_0x50c3ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50c3ff([0x68,0x69,0x67,0x68])}),_0x451ffd[_0x50c3ff([0x6f,0x6e])](_0x50c3ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x284c87=>{_0x19ebb9(_0x284c87[_0x50c3ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e848e=!0x0,_0xb4dede(_0x284c87[_0x50c3ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50c3ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50c3ff([0x6c,0x6f,0x77])}),_0xcf3aba[_0x50c3ff([0x74,0x68,0x65,0x6e])](()=>{_0x3e848e||_0x5c38fc(_0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x191dc7(){return _0x451ffd[_0x50c3ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50c3ff([0x76,0x69,0x65,0x77])][_0x50c3ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50c3ff([0x61,0x75,0x74,0x6f]);}function _0x3fbbde(){_0x451ffd[_0x50c3ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50c3ff([0x76,0x69,0x65,0x77])][_0x50c3ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50c3ff([0x61,0x75,0x74,0x6f]);}}function _0x489b2a(_0x486ed5){const _0xda21f5=[new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45512a=>setTimeout(_0x45512a,0x47abbbca^_0x52724b)),_0xcf3aba[_0x50c3ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2a3a=>{let _0x531035=0x0;_0x451ffd[_0x50c3ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x50c3ff([0x6f,0x6e])](_0x50c3ff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4061bf,_0x29bd96)=>{_0x29bd96[0x0][_0x50c3ff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x531035++,_0x531035==(0x47a280ee^_0x52724b)&&(_0x5c2a3a(),_0x4061bf[_0x50c3ff([0x6f,0x66,0x66])]());});}))];return window[_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50c3ff([0x72,0x61,0x63,0x65])](_0xda21f5)[_0x50c3ff([0x74,0x68,0x65,0x6e])](()=>_0x486ed5);}async function _0x423d47(){await _0xcf3aba,_0x451ffd[_0x50c3ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x50c3ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57503d,_0x451ffd[_0x50c3ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x50c3ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57503d,_0x451ffd[_0x50c3ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50c3ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4532f0(_0x5bc266){const _0xa45de3=_0x5096a4();_0x451ffd[_0xa45de3]=_0x50c3ff([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5bc266,_0x5bc266!=_0x50c3ff([0x56,0x61,0x6c,0x69,0x64])&&_0x423d47();}function _0x5096a4(){const _0x1cff74=window[_0x50c3ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50c3ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50c3ff([0x6e,0x6f,0x77])]())[_0x50c3ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50c3ff([0x2e]),'');let _0x205a44=_0x50c3ff([0x75]);for(let _0x59cbca=0x0;_0x59cbca<_0x1cff74[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59cbca+=0x2){let _0x33288a=window[_0x50c3ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cff74[_0x50c3ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59cbca,_0x59cbca+0x2));_0x33288a>=_0x3dc64e[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33288a-=_0x3dc64e[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x205a44+=_0x3dc64e[_0x33288a];}return _0x205a44;}function _0x434e7f(){const _0x29f093=_0x4abd45[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])](_0x50c3ff([0x2e]));if(0x3!=_0x29f093[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x361a96(_0x29f093[0x1]);function _0x361a96(_0x4f5978){const _0x3e6a6e=_0x2b4807(_0x4f5978);return _0x3e6a6e&&_0x3a8251()?_0x3e6a6e:null;function _0x3a8251(){const _0x539bd2=_0x3e6a6e[_0x50c3ff([0x6a,0x74,0x69])],_0x3698bc=window[_0x50c3ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x539bd2[_0x50c3ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x539bd2[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fc301={..._0x3e6a6e,[_0x50c3ff([0x6a,0x74,0x69])]:_0x539bd2[_0x50c3ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x539bd2[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fc301[_0x50c3ff([0x76,0x63])],_0xfe2500(_0x1fc301)==_0x3698bc;}}}async function _0x156c32(){let _0x2121df=!0x0;try{const _0x585272=_0x4abd45[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])](_0x50c3ff([0x2e])),[_0x554a19,_0x36c3d4,_0x34f1ce]=_0x585272;return _0x576e47(_0x554a19),await _0x5e6948(_0x554a19,_0x36c3d4,_0x34f1ce),_0x2121df;}catch{return!0x1;}function _0x576e47(_0x4f24ef){const _0x1adc73=_0x2b4807(_0x4f24ef);_0x1adc73&&_0x1adc73[_0x50c3ff([0x61,0x6c,0x67])]==_0x50c3ff([0x45,0x53,0x32,0x35,0x36])||(_0x2121df=!0x1);}async function _0x5e6948(_0x452ece,_0x48d399,_0x51953a){const _0x2de296=window[_0x50c3ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50c3ff([0x66,0x72,0x6f,0x6d])](_0x15adb6(_0x51953a),_0x7ee35d=>_0x7ee35d[_0x50c3ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x478f0e=new window[(_0x50c3ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50c3ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x452ece+_0x50c3ff([0x2e])+_0x48d399),_0x382210=window[_0x50c3ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50c3ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x382210)return;const _0x257e4d=await _0x382210[_0x50c3ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50c3ff([0x6a,0x77,0x6b]),_0x5ad6d2,{[_0x50c3ff([0x6e,0x61,0x6d,0x65])]:_0x50c3ff([0x45,0x43,0x44,0x53,0x41]),[_0x50c3ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50c3ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50c3ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x382210[_0x50c3ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50c3ff([0x6e,0x61,0x6d,0x65])]:_0x50c3ff([0x45,0x43,0x44,0x53,0x41]),[_0x50c3ff([0x68,0x61,0x73,0x68])]:{[_0x50c3ff([0x6e,0x61,0x6d,0x65])]:_0x50c3ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x257e4d,_0x2de296,_0x478f0e)||(_0x2121df=!0x1);}}function _0x2b4807(_0x197bf3){return _0x197bf3[_0x50c3ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50c3ff([0x65,0x79]))?JSON[_0x50c3ff([0x70,0x61,0x72,0x73,0x65])](_0x15adb6(_0x197bf3)):null;}function _0x15adb6(_0xc51397){return window[_0x50c3ff([0x61,0x74,0x6f,0x62])](_0xc51397[_0x50c3ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50c3ff([0x2b]))[_0x50c3ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50c3ff([0x2f])));}function _0xfe2500(_0x5c6828){let _0x225802=0x1505;function _0x397cd1(_0x49d53b){for(let _0x55df4f=0x0;_0x55df4f<_0x49d53b[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55df4f++){const _0x4113b9=_0x49d53b[_0x50c3ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55df4f);_0x225802=(_0x225802<<0x5)+_0x225802+_0x4113b9,_0x225802&=_0x225802;}}function _0x114bf7(_0x2a47a3){Array[_0x50c3ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a47a3)?_0x2a47a3[_0x50c3ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x114bf7):_0x2a47a3&&typeof _0x2a47a3==_0x50c3ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50c3ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a47a3)[_0x50c3ff([0x73,0x6f,0x72,0x74])]()[_0x50c3ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23367b,_0x2cfc68])=>{_0x397cd1(_0x23367b),_0x114bf7(_0x2cfc68);}):_0x397cd1(window[_0x50c3ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a47a3));}return _0x114bf7(_0x5c6828),_0x225802>>>0x0;}function _0x453f9(_0x29e586){return _0x29e586[_0x50c3ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50c3ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50c3ff([0x30]));}function _0xeb51ef(_0x4a3b16){return _0x4a3b16[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50c3ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50c3ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x57503d(){}function _0x50c3ff(_0x2241c1){return _0x2241c1['map'](_0x5110d9=>String['fromCharCode'](_0x5110d9))['join']('');}_0x4532f0(await _0x46b642());}(this);}['_moveSelectionToFootnoteDefinition'](_0x588320){const {plugins:_0xa4c6a8,editing:_0x1debc0,model:_0x34fafc}=this['editor'],_0x5534c9=_0xa4c6a8['get'](_0x1bbdb5)['getFootnote'](_0x588320);return!!_0x5534c9&&(_0x34fafc['change'](_0x41ac53=>{_0x41ac53['setSelection'](_0x41ac53['createPositionAt'](_0x5534c9['definition'],'end'));}),_0x1debc0['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x28d85a){const {plugins:_0x3e8922,editing:_0x46a121,model:_0x2aa10c}=this['editor'],_0x16438a=_0x3e8922['get'](_0x1bbdb5)['getFootnote'](_0x28d85a);return!!_0x16438a&&(_0x2aa10c['change'](_0x17ecfd=>{_0x17ecfd['setSelection'](_0x16438a['reference'],'on');}),_0x46a121['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xff3849}=this['editor']['model'],_0x104dd6=this['editor']['config']['get']('footnotes.multiBlock');_0xff3849['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xff3849['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xff3849['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x104dd6?_0xff3849['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xff3849['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xff3849['addChildCheck'](_0x4408bb=>{for(const _0x498f39 of _0x4408bb)if('footnoteDefinition'===_0x498f39['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x44e119}=this,{conversion:_0x141b6b,editing:_0x4ad47f}=_0x44e119,{t:t}=_0x44e119['locale'];_0x141b6b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x32b175,{writer:_0x555a33,consumable:_0x550731})=>{const _0x4fe31a=_0x32b175['getChild'](0x0);if(!_0x4fe31a||!_0x4fe31a['is']('element','a'))return null;const _0x333414=_0x4fe31a['getAttribute']('href')||'';if(!_0x333414['startsWith']('#'))return null;const _0x4acf39=_0x333414['replace'](/^#/,'');if(!_0x4acf39)return null;_0x550731['consume'](_0x4fe31a,{'name':!0x0,'attributes':['href']});for(const {item:_0x493602}of _0x4ad47f['view']['createRangeIn'](_0x4fe31a))_0x493602['is']('$textProxy')?_0x550731['consume'](_0x493602['textNode'],{'name':!0x0}):_0x493602['is']('element')&&_0x550731['consume'](_0x493602,{'name':!0x0});return _0x555a33['createElement']('footnoteRef',{'footnoteId':_0x4acf39});}}),_0x141b6b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1fc1f6,{writer:_0x316ef2})=>b(_0x1fc1f6,_0x316ef2)}),_0x141b6b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x267e2d,{writer:_0x23eef2})=>{const _0xfb435=_0x267e2d['getAttribute']('footnoteCounter');return _0x4eadfb(b(_0x267e2d,_0x23eef2),_0x23eef2,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xfb435)});}});}['_defineDefinitionsConverters'](){const {editor:_0x185d8f}=this,{t:t}=_0x185d8f['locale'],{conversion:_0x109e8c}=_0x185d8f;_0x109e8c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x109e8c['for']('upcast')['add'](_0x41afbd=>{_0x41afbd['on']('element:ol',(_0x522850,_0x37d98f,_0x132dd9)=>{const _0x8d5a8f=_0x37d98f['viewItem'];if(!_0x8d5a8f['hasClass']('footnotes-list')||!_0x37d98f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x132dd9['consumable']['consume'](_0x8d5a8f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4e63fc,modelCursor:_0x1c8ea7}=_0x132dd9['convertChildren'](_0x37d98f['viewItem'],_0x37d98f['modelCursor']);_0x37d98f['modelRange']=_0x4e63fc,_0x37d98f['modelCursor']=_0x1c8ea7;}),_0x41afbd['on']('element:hr',(_0x34d261,_0x271958,_0x19c1dc)=>{const _0x3f1c4d=_0x271958['viewItem'];_0x3f1c4d['hasClass']('footnotes-divider')&&_0x271958['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x19c1dc['consumable']['consume'](_0x3f1c4d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x109e8c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x461264,{writer:_0x38007f})=>D(_0x38007f)}),_0x109e8c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x352605,{writer:_0x492afc})=>{const _0x358260=D(_0x492afc,{'data-footnotes-list-label':t('Footnotes')}),_0x1243ea=_0x4eadfb(_0x358260,_0x492afc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x492afc['setCustomProperty']('footnotesDefinitions',!0x0,_0x1243ea),_0x1243ea;}});}['_defineDefinitionConverters'](){const {editor:_0x539cb3}=this,{conversion:_0x50f386,locale:_0x481ca1}=_0x539cb3,_0x217aba=_0x539cb3['config']['get']('footnotes.multiBlock');_0x50f386['for']('upcast')['add'](_0x4d8eb9=>{_0x4d8eb9['on']('element:li',(_0x428c40,_0x59df62,_0x1a3164)=>{const _0x30384d=_0x59df62['viewItem'];if(!_0x30384d['hasClass']('footnote-definition')||!_0x30384d['getAttribute']('id'))return;const _0x4625df=_0x30384d['parent'];if(!_0x4625df['is']('element','ol')||!_0x4625df['hasClass']('footnotes-list'))return;if(!_0x1a3164['consumable']['test'](_0x30384d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4be9c4=_0x1a3164['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x30384d['getAttribute']('id')});if(!_0x1a3164['safeInsert'](_0x4be9c4,_0x59df62['modelCursor']))return;_0x1a3164['consumable']['consume'](_0x30384d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5a0549=Array['from'](_0x30384d['getChildren']())['find'](_0x16907d=>_0x16907d['is']('element')&&_0x16907d['hasClass']('footnote-content'));for(const _0x282f3f of _0x30384d['getChildren']())_0x282f3f['is']('element')&&(_0x1a3164['consumable']['consume'](_0x282f3f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1a3164['consumable']['consume'](_0x282f3f,{'name':!0x0,'classes':'footnote-content'}));if(_0x5a0549){if(_0x217aba)_0x1a3164['convertChildren'](_0x5a0549,_0x4be9c4);else{const _0x47c46d=_0x1a3164['writer']['createElement']('footnoteInlineContent');_0x1a3164['writer']['insert'](_0x47c46d,_0x4be9c4),_0x1a3164['convertChildren'](_0x5a0549,_0x47c46d);}}_0x1a3164['updateConversionResult'](_0x4be9c4,_0x59df62);});}),_0x50f386['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4f49f6,{writer:_0x1a7c14})=>y(_0x4f49f6,_0x1a7c14,_0x481ca1,{'dataPipeline':!0x0})}),_0x50f386['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x273f54,{writer:_0x1d2cfd})=>y(_0x273f54,_0x1d2cfd,_0x481ca1)});}['_defineBogusParagraphConverters'](){const {editor:_0x2370bc}=this,{conversion:_0x1164ba}=_0x2370bc;_0x2370bc['config']['get']('footnotes.multiBlock')?(_0x1164ba['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1164ba['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2370bc['model']['document'],'change:data',()=>{!function(_0x2a9654,_0x403f18){const _0x4a2eed=_0x2a9654['document']['differ'],_0x4f58d7=new Set();for(const _0x55e59b of _0x4a2eed['getChanges']()){const _0x27bf76='attribute'==_0x55e59b['type']?_0x55e59b['range']['start']['parent']:_0x55e59b['position']['parent'];_0x27bf76['is']('element','footnoteDefinition')&&_0x4f58d7['add'](_0x27bf76);}for(const _0x531b54 of _0x4f58d7['values']()){const _0x9d3418=Array['from'](_0x531b54['getChildren']())['filter'](_0x139754=>v(_0x139754,_0x403f18['mapper']));for(const _0x3d3fc5 of _0x9d3418)_0x403f18['reconvertItem'](_0x3d3fc5);}}(_0x2370bc['model'],_0x2370bc['editing']);})):(_0x1164ba['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1164ba['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xbe72bc,{writer:_0x2c21aa})=>{const _0x4a42b8=_0x2c21aa['createContainerElement']('span');return _0x2c21aa['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4a42b8),_0x4a42b8;}}));}['_defineKeyboardHandlers'](){const {editor:_0x171086}=this,{editing:_0x2059ef,t:t}=_0x171086,_0xd187cb=_0x171086['model']['document']['selection'];_0x171086['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x171086['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2059ef['view']['document'],'enter',(_0x428c71,_0x70ef28)=>{const _0x2c7305=function(_0x7e433c){const _0x1fc91a=_0x7e433c['getSelectedElement']();if(_0x1fc91a?.['is']('element','footnoteRef'))return _0x1fc91a;return null;}(_0xd187cb);if(_0x2c7305){const _0x7f449b=_0x2c7305['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x7f449b),_0x70ef28['preventDefault'](),_0x428c71['stop']();}},{'context':_0x195cfc});}['_defineClickHandlers'](){const {editor:_0x5e839f}=this,{editing:_0xf97129}=_0x5e839f;_0x5e839f['editing']['view']['addObserver'](_0x309673),_0x5e839f['editing']['view']['addObserver'](_0x1e5efe);let _0x16c9e5=!0x1;this['listenTo'](_0xf97129['view']['document'],'pointerdown',(_0x10f8fb,_0x19d561)=>{const {target:_0x3bbcd9}=_0x19d561,_0x3ca7e1=_0xf97129['view']['document']['selection'];_0x16c9e5=!!(_0x3bbcd9?.['is']('element','a')&&_0x3bbcd9['parent']?.['is']('element','sup')&&_0x3bbcd9['parent']['hasClass']('footnote'))&&_0x3ca7e1['getSelectedElement']()===_0x3bbcd9['parent'];},{'priority':'high'}),this['listenTo'](_0xf97129['view']['document'],'click',(_0x2c8ec9,_0xcacf49)=>{const {target:_0xae537e}=_0xcacf49;if(!_0xae537e?.['is']('element','a'))return;if(_0xae537e['parent']?.['is']('element','sup')&&_0xae537e['parent']['hasClass']('footnote')&&!_0x16c9e5)return void _0xcacf49['preventDefault']();let _0x9cdf25=_0xae537e['getAttribute']('href');if(!_0x9cdf25?.['startsWith']('#'))return;_0x9cdf25=_0x9cdf25['slice'](0x1);let _0x36ca2c=!0x1;(_0x9cdf25['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x9cdf25['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x9cdf25))&&(_0x36ca2c=!0x0),_0x36ca2c&&(_0xcacf49['preventDefault'](),_0x2c8ec9['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xaeb2bd}={}){return(_0x879acf,{writer:_0x3e0b87})=>{if(!g(_0x879acf))return null;if(!_0xaeb2bd)return _0x3e0b87['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x30d2f4=_0x3e0b87['createContainerElement']('p');return _0x3e0b87['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x30d2f4),_0x30d2f4;};}function g(_0x1c6124){const {parent:_0x5e6c9f}=_0x1c6124;if(!_0x5e6c9f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5e6c9f['childCount'])return!0x1;for(const _0x3442b2 of _0x1c6124['getAttributeKeys']())if(!_0x3442b2['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3442b2)return!0x1;return!0x0;}function v(_0x84f5d5,_0x4fbbe1){if(!_0x84f5d5['is']('element','paragraph'))return!0x1;const _0xb8842a=_0x4fbbe1['toViewElement'](_0x84f5d5);return!!_0xb8842a&&g(_0x84f5d5)!==_0xb8842a['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3bc4ef){return _0x195cfc(_0x3bc4ef)&&_0x3bc4ef['is']('containerElement')&&!!_0x3bc4ef['getCustomProperty']('footnotesDefinitions');}function D(_0x1bbee3,_0x17d6e4={}){const _0x528b8a=_0x1bbee3['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1b59e6=_0x1bbee3['createContainerElement']('ol',{'class':'footnotes-list'},_0x1bbee3['createSlot']());return _0x1bbee3['createContainerElement']('div',{'class':'footnotes',..._0x17d6e4},[_0x528b8a,_0x1b59e6]);}function b(_0x7294bc,_0x104660){const _0x538ef3=_0x7294bc['getAttribute']('footnoteId'),_0x5904e0=_0x7294bc['getAttribute']('footnoteCounter'),_0x340efd=_0x104660['createUIElement']('a',{'href':'#'+_0x538ef3},function(_0x3d1d62){const _0x5edb73=this['toDomElement'](_0x3d1d62);return _0x5edb73['textContent']=_0x5904e0,_0x5edb73;}),_0x2b1c02=_0x104660['createContainerElement']('sup',{'id':'ref-'+_0x538ef3,'class':'footnote'},[_0x340efd]);return _0x2b1c02['getFillerOffset']=()=>null,_0x2b1c02;}function y(_0x436f05,_0x2214ad,_0x4e4604,{dataPipeline:_0x53d6b8}={}){const {t:t}=_0x4e4604,_0x366c84=_0x436f05['getAttribute']('footnoteId'),_0x1cc781=_0x2214ad['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x366c84},function(_0x16eda9){const _0x52684=this['toDomElement'](_0x16eda9);return _0x52684['innerText']='^',_0x52684;}),_0x1ca6b3=_0x53d6b8?_0x2214ad['createContainerElement']('div',{'class':'footnote-content'}):_0x2ec041(_0x2214ad['createEditableElement']('div',{'class':'footnote-content'}),_0x2214ad,{'label':t('Footnote\x20content.')});return _0x2214ad['insert'](_0x2214ad['createPositionAt'](_0x1ca6b3,0x0),_0x2214ad['createSlot']()),_0x2214ad['createContainerElement']('li',{'class':'footnote-definition','id':_0x366c84},[_0x1cc781,_0x1ca6b3]);}
|
|
23
|
+
import{Plugin as _0x1e244b}from'ckeditor5/src/core.js';import{isWidget as _0x39686a,toWidget as _0x1bd6bc,toWidgetEditable as _0x4cf5fb}from'ckeditor5/src/widget.js';import{uid as _0x224556}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4056a3,ClickObserver as _0x2495fa}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2e6bc4}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1d80f1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1e244b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2e6bc4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20a311}=this;_0x20a311['config']['define']('footnotes.multiBlock',!0x0),_0x20a311['commands']['add']('insertFootnote',new _0x1d80f1(_0x20a311)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x470ff2){const _0xd96dd9=_0x38a7ed([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]),_0x57f33d=0x47a28506,_0x59aa0a=0x47a5fb86^_0x57f33d,_0x208b3f=window[_0x38a7ed([0x44,0x61,0x74,0x65])][_0x38a7ed([0x6e,0x6f,0x77])](),_0x268b16=_0x470ff2[_0x38a7ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x597d77=new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f213d=>{_0x268b16[_0x38a7ed([0x6f,0x6e,0x63,0x65])](_0x38a7ed([0x72,0x65,0x61,0x64,0x79]),_0x3f213d);}),_0x5c90fb={[_0x38a7ed([0x6b,0x74,0x79])]:_0x38a7ed([0x45,0x43]),[_0x38a7ed([0x75,0x73,0x65])]:_0x38a7ed([0x73,0x69,0x67]),[_0x38a7ed([0x63,0x72,0x76])]:_0x38a7ed([0x50,0x2d,0x32,0x35,0x36]),[_0x38a7ed([0x78])]:_0x38a7ed([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]),[_0x38a7ed([0x79])]:_0x38a7ed([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]),[_0x38a7ed([0x61,0x6c,0x67])]:_0x38a7ed([0x45,0x53,0x32,0x35,0x36])},_0x385365=_0x268b16[_0x38a7ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38a7ed([0x67,0x65,0x74])](_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46a4f5(){let _0x139b98,_0x34354b=null,_0xca10f7=null;try{if(_0x385365==_0x38a7ed([0x47,0x50,0x4c]))return _0x38a7ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x139b98=_0x53c651(),!_0x139b98)return _0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x139b98[_0x38a7ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xca10f7=_0x390e09(_0x139b98[_0x38a7ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x139b98[_0x38a7ed([0x6a,0x74,0x69])])),await _0x364ac0()?_0x545309()?_0x11b043()?_0x38a7ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52fee7()?(_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38a7ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34354b=_0x1656de(_0x38a7ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3bfd79()):_0x38a7ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38a7ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11b043(){const _0x294304=[_0x38a7ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38a7ed([0x74,0x72,0x69,0x61,0x6c])][_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x208b3f/0x3e8:0xe10*_0x59aa0a;return _0x139b98[_0x38a7ed([0x65,0x78,0x70])]<_0x294304;}function _0x545309(){const _0xa6f4f0=_0x139b98[_0x38a7ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa6f4f0&&(!!_0xa6f4f0[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x2a]))||!!_0xa6f4f0[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x46,0x4f,0x4f])));}function _0x52fee7(){const _0x59413c=_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59413c||0x0==_0x59413c[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cb77a}=new URL(window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59413c[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cb77a))return!0x0;const _0x4d07b9=_0x2cb77a[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e]));return _0x59413c[_0x38a7ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aaa9b=>_0x4aaa9b[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x2a])))[_0x38a7ed([0x6d,0x61,0x70])](_0x5910f6=>_0x5910f6[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e])))[_0x38a7ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bc6ea=>_0x5bc6ea[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d07b9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a7ed([0x6d,0x61,0x70])](_0x423f1b=>Array(_0x4d07b9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x423f1b[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a7ed([0x66,0x69,0x6c,0x6c])](_0x423f1b[0x0]===_0x38a7ed([0x2a])?_0x38a7ed([0x2a]):'')[_0x38a7ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x423f1b))[_0x38a7ed([0x73,0x6f,0x6d,0x65])](_0x57bd09=>_0x4d07b9[_0x38a7ed([0x65,0x76,0x65,0x72,0x79])]((_0x422ff4,_0x290470)=>_0x57bd09[_0x290470]===_0x422ff4||_0x57bd09[_0x290470]===_0x38a7ed([0x2a])));}function _0x3bfd79(){return _0x34354b&&_0xca10f7?new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x584b63,_0x14caa5)=>{_0x34354b[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x584b63,_0x14caa5),_0xca10f7[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x5107ac=>{_0x5107ac!=_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])&&_0x584b63(_0x5107ac);},_0x14caa5);}):_0x34354b||_0xca10f7||_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x390e09(_0x839c5e,_0x3b1d48){return new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322e24=>{if(_0x9af91e())return _0x322e24(_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]));_0x187c0f(),_0x268b16[_0x38a7ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43b32f=!0x1;const _0x5ba721=_0x224556();function _0x3f32bf(_0x5df4d3){return!!_0x5df4d3&&(typeof _0x5df4d3===_0x38a7ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5df4d3===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5df4d3[_0x38a7ed([0x74,0x68,0x65,0x6e])]===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5df4d3[_0x38a7ed([0x63,0x61,0x74,0x63,0x68])]===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3740ac(_0x4d0375){_0x426e08(_0x4d0375)[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x58ae1e=>{if(!_0x58ae1e||_0x58ae1e[_0x38a7ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38a7ed([0x6f,0x6b]))return _0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x557b8a(_0x1fc4b1(_0x5ba721+_0x3b1d48))!=_0x58ae1e[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x15f772=>(_0x5d2e00(),_0x15f772),()=>{const _0x5485f4=_0x4887b0();return null==_0x5485f4?(_0x5d2e00(),_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])):_0x38a7ed(_0x208b3f-_0x5485f4>(0x63ae0106^_0x57f33d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x322e24)[_0x38a7ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fee42=0x47946b86^_0x57f33d;function _0x5d2e00(){const _0x4378f7=_0x38a7ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x557b8a(_0x1fc4b1(_0x839c5e)),_0x435f24=_0x1934ef(_0x557b8a(window[_0x38a7ed([0x4d,0x61,0x74,0x68])][_0x38a7ed([0x63,0x65,0x69,0x6c])](_0x208b3f/_0x4fee42)));window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a7ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4378f7,_0x435f24);}function _0x4887b0(){const _0x46b243=_0x38a7ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x557b8a(_0x1fc4b1(_0x839c5e)),_0x479862=window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a7ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46b243);return _0x479862?window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1934ef(_0x479862),0x10)*_0x4fee42:null;}function _0x426e08(_0x3a1f5e){return new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2705ad,_0x49a398)=>{_0x3a1f5e[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x2705ad,_0x49a398),window[_0x38a7ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49a398,0x47a351c6^_0x57f33d);});}}_0x268b16[_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18a674,_0x1ca046)=>{if(_0x1ca046[0x0]!=_0x839c5e)return _0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ca046[0x1]={..._0x1ca046[0x1],[_0x38a7ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ba721};},{[_0x38a7ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a7ed([0x68,0x69,0x67,0x68])}),_0x268b16[_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x96966f=>{_0x3f32bf(_0x96966f[_0x38a7ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43b32f=!0x0,_0x3740ac(_0x96966f[_0x38a7ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38a7ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a7ed([0x6c,0x6f,0x77])}),_0x597d77[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>{_0x43b32f||_0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9af91e(){return _0x268b16[_0x38a7ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a7ed([0x76,0x69,0x65,0x77])][_0x38a7ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38a7ed([0x61,0x75,0x74,0x6f]);}function _0x187c0f(){_0x268b16[_0x38a7ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a7ed([0x76,0x69,0x65,0x77])][_0x38a7ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38a7ed([0x61,0x75,0x74,0x6f]);}}function _0x1656de(_0x3de417){const _0x429946=[new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c3ef=>setTimeout(_0x52c3ef,0x47abbbca^_0x57f33d)),_0x597d77[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x252c12=>{let _0x55a295=0x0;_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16047e,_0x5a7147)=>{_0x5a7147[0x0][_0x38a7ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55a295++,_0x55a295==(0x47a280ee^_0x57f33d)&&(_0x252c12(),_0x16047e[_0x38a7ed([0x6f,0x66,0x66])]());});}))];return window[_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38a7ed([0x72,0x61,0x63,0x65])](_0x429946)[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>_0x3de417);}async function _0x3e3b4f(){await _0x597d77,_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4708b1,_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4708b1,_0x268b16[_0x38a7ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b9fde(_0x42ea0e){const _0x311fb9=_0x588a6f();_0x268b16[_0x311fb9]=_0x38a7ed([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42ea0e,_0x42ea0e!=_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])&&_0x3e3b4f();}function _0x588a6f(){const _0x4c60e6=window[_0x38a7ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38a7ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38a7ed([0x6e,0x6f,0x77])]())[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38a7ed([0x2e]),'');let _0x11e684=_0x38a7ed([0x75]);for(let _0x119dc9=0x0;_0x119dc9<_0x4c60e6[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x119dc9+=0x2){let _0x45b5fe=window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c60e6[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x119dc9,_0x119dc9+0x2));_0x45b5fe>=_0xd96dd9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45b5fe-=_0xd96dd9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11e684+=_0xd96dd9[_0x45b5fe];}return _0x11e684;}function _0x53c651(){const _0x2e1e4e=_0x385365[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e]));if(0x3!=_0x2e1e4e[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13eff9(_0x2e1e4e[0x1]);function _0x13eff9(_0x65cb70){const _0x35f8c4=_0x30ba15(_0x65cb70);return _0x35f8c4&&_0x450103()?_0x35f8c4:null;function _0x450103(){const _0x340635=_0x35f8c4[_0x38a7ed([0x6a,0x74,0x69])],_0x23c20b=window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x340635[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x340635[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdbb2fb={..._0x35f8c4,[_0x38a7ed([0x6a,0x74,0x69])]:_0x340635[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x340635[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdbb2fb[_0x38a7ed([0x76,0x63])],_0x1fc4b1(_0xdbb2fb)==_0x23c20b;}}}async function _0x364ac0(){let _0x511ff2=!0x0;try{const _0x2911df=_0x385365[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e])),[_0xca0d55,_0x2f05a0,_0x1bffe1]=_0x2911df;return _0x534e45(_0xca0d55),await _0x3e4bb3(_0xca0d55,_0x2f05a0,_0x1bffe1),_0x511ff2;}catch{return!0x1;}function _0x534e45(_0x3153e0){const _0x33e77d=_0x30ba15(_0x3153e0);_0x33e77d&&_0x33e77d[_0x38a7ed([0x61,0x6c,0x67])]==_0x38a7ed([0x45,0x53,0x32,0x35,0x36])||(_0x511ff2=!0x1);}async function _0x3e4bb3(_0x534993,_0x259679,_0x40fda3){const _0x1ecc2c=window[_0x38a7ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38a7ed([0x66,0x72,0x6f,0x6d])](_0x579bab(_0x40fda3),_0x484c7b=>_0x484c7b[_0x38a7ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16e6ee=new window[(_0x38a7ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38a7ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x534993+_0x38a7ed([0x2e])+_0x259679),_0x260c21=window[_0x38a7ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38a7ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x260c21)return;const _0x1adefb=await _0x260c21[_0x38a7ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38a7ed([0x6a,0x77,0x6b]),_0x5c90fb,{[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x45,0x43,0x44,0x53,0x41]),[_0x38a7ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38a7ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x260c21[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x45,0x43,0x44,0x53,0x41]),[_0x38a7ed([0x68,0x61,0x73,0x68])]:{[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1adefb,_0x1ecc2c,_0x16e6ee)||(_0x511ff2=!0x1);}}function _0x30ba15(_0xdf618){return _0xdf618[_0x38a7ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38a7ed([0x65,0x79]))?JSON[_0x38a7ed([0x70,0x61,0x72,0x73,0x65])](_0x579bab(_0xdf618)):null;}function _0x579bab(_0x5f5cfa){return window[_0x38a7ed([0x61,0x74,0x6f,0x62])](_0x5f5cfa[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38a7ed([0x2b]))[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38a7ed([0x2f])));}function _0x1fc4b1(_0x1029ed){let _0x2eab57=0x1505;function _0x1b3e44(_0x5ac8b3){for(let _0x47f672=0x0;_0x47f672<_0x5ac8b3[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47f672++){const _0x59b23d=_0x5ac8b3[_0x38a7ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47f672);_0x2eab57=(_0x2eab57<<0x5)+_0x2eab57+_0x59b23d,_0x2eab57&=_0x2eab57;}}function _0x451357(_0x3596c0){Array[_0x38a7ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3596c0)?_0x3596c0[_0x38a7ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x451357):_0x3596c0&&typeof _0x3596c0==_0x38a7ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38a7ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3596c0)[_0x38a7ed([0x73,0x6f,0x72,0x74])]()[_0x38a7ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fa70b,_0x5a00ff])=>{_0x1b3e44(_0x3fa70b),_0x451357(_0x5a00ff);}):_0x1b3e44(window[_0x38a7ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3596c0));}return _0x451357(_0x1029ed),_0x2eab57>>>0x0;}function _0x557b8a(_0x40dfef){return _0x40dfef[_0x38a7ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38a7ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38a7ed([0x30]));}function _0x1934ef(_0x2a3ec2){return _0x2a3ec2[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38a7ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38a7ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x4708b1(){}function _0x38a7ed(_0x590391){return _0x590391['map'](_0x224035=>String['fromCharCode'](_0x224035))['join']('');}_0x1b9fde(await _0x46a4f5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4a9084){const {plugins:_0x3ccb83,editing:_0x3858bb,model:_0x2e2fcc}=this['editor'],_0x4947c3=_0x3ccb83['get'](_0x2e6bc4)['getFootnote'](_0x4a9084);return!!_0x4947c3&&(_0x2e2fcc['change'](_0x1d3833=>{_0x1d3833['setSelection'](_0x1d3833['createPositionAt'](_0x4947c3['definition'],'end'));}),_0x3858bb['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3b217f){const {plugins:_0x1a33c7,editing:_0x3cdae8,model:_0x4a10a6}=this['editor'],_0x2f0579=_0x1a33c7['get'](_0x2e6bc4)['getFootnote'](_0x3b217f);return!!_0x2f0579&&(_0x4a10a6['change'](_0x5c61b9=>{_0x5c61b9['setSelection'](_0x2f0579['reference'],'on');}),_0x3cdae8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x53dacf}=this['editor']['model'],_0x5685d1=this['editor']['config']['get']('footnotes.multiBlock');_0x53dacf['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x53dacf['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x53dacf['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5685d1?_0x53dacf['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x53dacf['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x53dacf['addChildCheck'](_0x2e0d19=>{for(const _0x53a9cf of _0x2e0d19)if('footnoteDefinition'===_0x53a9cf['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x33b087}=this,{conversion:_0x4ff102,editing:_0x40124c}=_0x33b087,{t:t}=_0x33b087['locale'];_0x4ff102['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x34809f,{writer:_0x1cbb82,consumable:_0x66797c})=>{const _0x2fdaf7=_0x34809f['getChild'](0x0);if(!_0x2fdaf7||!_0x2fdaf7['is']('element','a'))return null;const _0x19d4aa=_0x2fdaf7['getAttribute']('href')||'';if(!_0x19d4aa['startsWith']('#'))return null;const _0x5d1620=_0x19d4aa['replace'](/^#/,'');if(!_0x5d1620)return null;_0x66797c['consume'](_0x2fdaf7,{'name':!0x0,'attributes':['href']});for(const {item:_0x451415}of _0x40124c['view']['createRangeIn'](_0x2fdaf7))_0x451415['is']('$textProxy')?_0x66797c['consume'](_0x451415['textNode'],{'name':!0x0}):_0x451415['is']('element')&&_0x66797c['consume'](_0x451415,{'name':!0x0});return _0x1cbb82['createElement']('footnoteRef',{'footnoteId':_0x5d1620});}}),_0x4ff102['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1bfc6f,{writer:_0xd6bca5})=>b(_0x1bfc6f,_0xd6bca5)}),_0x4ff102['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x21862f,{writer:_0x27f4a1})=>{const _0x32874c=_0x21862f['getAttribute']('footnoteCounter');return _0x1bd6bc(b(_0x21862f,_0x27f4a1),_0x27f4a1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x32874c)});}});}['_defineDefinitionsConverters'](){const {editor:_0x150421}=this,{t:t}=_0x150421['locale'],{conversion:_0x5594c6}=_0x150421;_0x5594c6['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5594c6['for']('upcast')['add'](_0x525d67=>{_0x525d67['on']('element:ol',(_0x4687d6,_0x61509e,_0xaf2f20)=>{const _0x4db7e7=_0x61509e['viewItem'];if(!_0x4db7e7['hasClass']('footnotes-list')||!_0x61509e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xaf2f20['consumable']['consume'](_0x4db7e7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x55f25b,modelCursor:_0x4b3246}=_0xaf2f20['convertChildren'](_0x61509e['viewItem'],_0x61509e['modelCursor']);_0x61509e['modelRange']=_0x55f25b,_0x61509e['modelCursor']=_0x4b3246;}),_0x525d67['on']('element:hr',(_0x4b1d10,_0x3e3a1d,_0x45c5f8)=>{const _0x351e47=_0x3e3a1d['viewItem'];_0x351e47['hasClass']('footnotes-divider')&&_0x3e3a1d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x45c5f8['consumable']['consume'](_0x351e47,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5594c6['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e169e,{writer:_0x199a25})=>D(_0x199a25)}),_0x5594c6['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x213547,{writer:_0x7a60b1})=>{const _0x574e1f=D(_0x7a60b1,{'data-footnotes-list-label':t('Footnotes')}),_0x1b9d31=_0x1bd6bc(_0x574e1f,_0x7a60b1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x7a60b1['setCustomProperty']('footnotesDefinitions',!0x0,_0x1b9d31),_0x1b9d31;}});}['_defineDefinitionConverters'](){const {editor:_0x5cb035}=this,{conversion:_0x4a95b7,locale:_0x5447d3}=_0x5cb035,_0x1bc9ab=_0x5cb035['config']['get']('footnotes.multiBlock');_0x4a95b7['for']('upcast')['add'](_0x558caf=>{_0x558caf['on']('element:li',(_0x59f8be,_0x424d2f,_0x348809)=>{const _0x1ba168=_0x424d2f['viewItem'];if(!_0x1ba168['hasClass']('footnote-definition')||!_0x1ba168['getAttribute']('id'))return;const _0x43068f=_0x1ba168['parent'];if(!_0x43068f['is']('element','ol')||!_0x43068f['hasClass']('footnotes-list'))return;if(!_0x348809['consumable']['test'](_0x1ba168,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x25229c=_0x348809['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1ba168['getAttribute']('id')});if(!_0x348809['safeInsert'](_0x25229c,_0x424d2f['modelCursor']))return;_0x348809['consumable']['consume'](_0x1ba168,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x520389=Array['from'](_0x1ba168['getChildren']())['find'](_0x1999ad=>_0x1999ad['is']('element')&&_0x1999ad['hasClass']('footnote-content'));for(const _0x450b4e of _0x1ba168['getChildren']())_0x450b4e['is']('element')&&(_0x348809['consumable']['consume'](_0x450b4e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x348809['consumable']['consume'](_0x450b4e,{'name':!0x0,'classes':'footnote-content'}));if(_0x520389){if(_0x1bc9ab)_0x348809['convertChildren'](_0x520389,_0x25229c);else{const _0x14d413=_0x348809['writer']['createElement']('footnoteInlineContent');_0x348809['writer']['insert'](_0x14d413,_0x25229c),_0x348809['convertChildren'](_0x520389,_0x14d413);}}_0x348809['updateConversionResult'](_0x25229c,_0x424d2f);});}),_0x4a95b7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x52fbe3,{writer:_0x40a237})=>y(_0x52fbe3,_0x40a237,_0x5447d3,{'dataPipeline':!0x0})}),_0x4a95b7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x545830,{writer:_0x1ca4e2})=>y(_0x545830,_0x1ca4e2,_0x5447d3)});}['_defineBogusParagraphConverters'](){const {editor:_0x3933c8}=this,{conversion:_0x144f49}=_0x3933c8;_0x3933c8['config']['get']('footnotes.multiBlock')?(_0x144f49['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x144f49['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3933c8['model']['document'],'change:data',()=>{!function(_0xe0e955,_0x5b64a7){const _0x40fc06=_0xe0e955['document']['differ'],_0x168a0d=new Set();for(const _0x398409 of _0x40fc06['getChanges']()){const _0x36b44f='attribute'==_0x398409['type']?_0x398409['range']['start']['parent']:_0x398409['position']['parent'];_0x36b44f['is']('element','footnoteDefinition')&&_0x168a0d['add'](_0x36b44f);}for(const _0x34ace5 of _0x168a0d['values']()){const _0xa09466=Array['from'](_0x34ace5['getChildren']())['filter'](_0x57a786=>v(_0x57a786,_0x5b64a7['mapper']));for(const _0x401529 of _0xa09466)_0x5b64a7['reconvertItem'](_0x401529);}}(_0x3933c8['model'],_0x3933c8['editing']);})):(_0x144f49['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x144f49['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2f382a,{writer:_0x830df2})=>{const _0x317e42=_0x830df2['createContainerElement']('span');return _0x830df2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x317e42),_0x317e42;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3c7e16}=this,{editing:_0x434364,t:t}=_0x3c7e16,_0x157231=_0x3c7e16['model']['document']['selection'];_0x3c7e16['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3c7e16['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x434364['view']['document'],'enter',(_0x4c09ad,_0x1a6c63)=>{const _0x54aec5=function(_0x4068fa){const _0xccf641=_0x4068fa['getSelectedElement']();if(_0xccf641?.['is']('element','footnoteRef'))return _0xccf641;return null;}(_0x157231);if(_0x54aec5){const _0x33eaec=_0x54aec5['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x33eaec),_0x1a6c63['preventDefault'](),_0x4c09ad['stop']();}},{'context':_0x39686a});}['_defineClickHandlers'](){const {editor:_0x5c5e50}=this,{editing:_0x59cdd7}=_0x5c5e50;_0x5c5e50['editing']['view']['addObserver'](_0x4056a3),_0x5c5e50['editing']['view']['addObserver'](_0x2495fa);let _0x388a11=!0x1;this['listenTo'](_0x59cdd7['view']['document'],'pointerdown',(_0x16e4b8,_0x1317bc)=>{const {target:_0x5703ef}=_0x1317bc,_0x1cf910=_0x59cdd7['view']['document']['selection'];_0x388a11=!!(_0x5703ef?.['is']('element','a')&&_0x5703ef['parent']?.['is']('element','sup')&&_0x5703ef['parent']['hasClass']('footnote'))&&_0x1cf910['getSelectedElement']()===_0x5703ef['parent'];},{'priority':'high'}),this['listenTo'](_0x59cdd7['view']['document'],'click',(_0x267592,_0x4d0f11)=>{const {target:_0x1063f6}=_0x4d0f11;if(!_0x1063f6?.['is']('element','a'))return;if(_0x1063f6['parent']?.['is']('element','sup')&&_0x1063f6['parent']['hasClass']('footnote')&&!_0x388a11)return void _0x4d0f11['preventDefault']();let _0x11b1e6=_0x1063f6['getAttribute']('href');if(!_0x11b1e6?.['startsWith']('#'))return;_0x11b1e6=_0x11b1e6['slice'](0x1);let _0x58aae9=!0x1;(_0x11b1e6['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x11b1e6['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x11b1e6))&&(_0x58aae9=!0x0),_0x58aae9&&(_0x4d0f11['preventDefault'](),_0x267592['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x23ea6a}={}){return(_0x4a4674,{writer:_0xf8e424})=>{if(!g(_0x4a4674))return null;if(!_0x23ea6a)return _0xf8e424['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5bafc8=_0xf8e424['createContainerElement']('p');return _0xf8e424['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5bafc8),_0x5bafc8;};}function g(_0x34833e){const {parent:_0x5f30af}=_0x34833e;if(!_0x5f30af?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5f30af['childCount'])return!0x1;for(const _0xf62171 of _0x34833e['getAttributeKeys']())if(!_0xf62171['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xf62171)return!0x1;return!0x0;}function v(_0x1046ae,_0x323236){if(!_0x1046ae['is']('element','paragraph'))return!0x1;const _0x31f2dd=_0x323236['toViewElement'](_0x1046ae);return!!_0x31f2dd&&g(_0x1046ae)!==_0x31f2dd['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x37298f){return _0x39686a(_0x37298f)&&_0x37298f['is']('containerElement')&&!!_0x37298f['getCustomProperty']('footnotesDefinitions');}function D(_0x388375,_0x1aee5e={}){const _0x33ec88=_0x388375['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1e57a5=_0x388375['createContainerElement']('ol',{'class':'footnotes-list'},_0x388375['createSlot']());return _0x388375['createContainerElement']('div',{'class':'footnotes',..._0x1aee5e},[_0x33ec88,_0x1e57a5]);}function b(_0x125641,_0x35f687){const _0x4e30ca=_0x125641['getAttribute']('footnoteId'),_0xde2477=_0x125641['getAttribute']('footnoteCounter'),_0x4823ad=_0x35f687['createUIElement']('a',{'href':'#'+_0x4e30ca},function(_0x224089){const _0x4dc123=this['toDomElement'](_0x224089);return _0x4dc123['textContent']=_0xde2477,_0x4dc123;}),_0x53213f=_0x35f687['createContainerElement']('sup',{'id':'ref-'+_0x4e30ca,'class':'footnote'},[_0x4823ad]);return _0x53213f['getFillerOffset']=()=>null,_0x53213f;}function y(_0x1db3a0,_0x213529,_0x2f806d,{dataPipeline:_0x43fde8}={}){const {t:t}=_0x2f806d,_0x4aca1a=_0x1db3a0['getAttribute']('footnoteId'),_0x39ae51=_0x213529['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4aca1a},function(_0x15bd0e){const _0x8cb68f=this['toDomElement'](_0x15bd0e);return _0x8cb68f['innerText']='^',_0x8cb68f;}),_0x55d8e2=_0x43fde8?_0x213529['createContainerElement']('div',{'class':'footnote-content'}):_0x4cf5fb(_0x213529['createEditableElement']('div',{'class':'footnote-content'}),_0x213529,{'label':t('Footnote\x20content.')});return _0x213529['insert'](_0x213529['createPositionAt'](_0x55d8e2,0x0),_0x213529['createSlot']()),_0x213529['createContainerElement']('li',{'class':'footnote-definition','id':_0x4aca1a},[_0x39ae51,_0x55d8e2]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52f559=_0x4532;(function(_0x5c0d9f,_0x5b008f){const _0x354181=_0x4532,_0x446ae2=_0x5c0d9f();while(!![]){try{const _0x41adb5=-parseInt(_0x354181(0x1b6))/0x1+-parseInt(_0x354181(0x1c0))/0x2+parseInt(_0x354181(0x1ae))/0x3+parseInt(_0x354181(0x1ba))/0x4*(parseInt(_0x354181(0x1bf))/0x5)+parseInt(_0x354181(0x1ac))/0x6+parseInt(_0x354181(0x1bb))/0x7*(parseInt(_0x354181(0x1bd))/0x8)+-parseInt(_0x354181(0x1b4))/0x9;if(_0x41adb5===_0x5b008f)break;else _0x446ae2['push'](_0x446ae2['shift']());}catch(_0x34643f){_0x446ae2['push'](_0x446ae2['shift']());}}}(_0x2a8c,0xbfd4a));import{Command as _0x16f56c}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x3f611f}from'../../footnotestracker.js';function _0x4532(_0x137e62,_0x52df42){const _0x2a8c12=_0x2a8c();return _0x4532=function(_0x453215,_0x446ac0){_0x453215=_0x453215-0x1ab;let _0x57b79c=_0x2a8c12[_0x453215];return _0x57b79c;},_0x4532(_0x137e62,_0x52df42);}export class FootnotesStartCommand extends _0x16f56c{[_0x52f559(0x1b8)](){const _0x69301=_0x52f559,{editor:_0x36bd44}=this,_0x4a1636=_0x36bd44[_0x69301(0x1bc)][_0x69301(0x1b5)](_0x3f611f)[_0x69301(0x1b7)]();this[_0x69301(0x1c1)]=!!_0x4a1636,this[_0x69301(0x1b2)]=_0x4a1636?.[_0x69301(0x1b1)](_0x69301(0x1ad))??null;}[_0x52f559(0x1b9)]({value:_0x51a6dc}){const _0x5c395f=_0x52f559,{editor:_0x24f78c}=this,_0x504048=_0x24f78c[_0x5c395f(0x1bc)][_0x5c395f(0x1b5)](_0x3f611f),_0x34755c=_0x504048[_0x5c395f(0x1b7)]();_0x34755c&&Number[_0x5c395f(0x1be)](_0x51a6dc)&&_0x24f78c[_0x5c395f(0x1af)][_0x5c395f(0x1ab)](_0x3bf40d=>{const _0x1650a6=_0x5c395f;_0x3bf40d[_0x1650a6(0x1b0)](_0x1650a6(0x1ad),_0x51a6dc,_0x34755c),_0x504048[_0x1650a6(0x1b3)](_0x3bf40d);});}}function _0x2a8c(){const _0x395a97=['1179954SYZhqo','model','setAttribute','getAttribute','value','_updateFootnotesCounters','19310292dcZHZK','get','531929SSzcNG','getFootnotesDefinitionsObjectElement','refresh','execute','1683224sSMMHd','1253trpxdE','plugins','21544YGvFFh','isInteger','15GnkXoG','158936PxjZKw','isEnabled','change','8429640OPmBMQ','footnotesListStart'];_0x2a8c=function(){return _0x395a97;};return _0x2a8c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x13001b=_0x52c7;(function(_0x129f74,_0x507dd5){const _0x1d79d5=_0x52c7,_0x33f460=_0x129f74();while(!![]){try{const _0x391d8d=parseInt(_0x1d79d5(0x175))/0x1*(parseInt(_0x1d79d5(0x174))/0x2)+-parseInt(_0x1d79d5(0x168))/0x3+-parseInt(_0x1d79d5(0x165))/0x4+-parseInt(_0x1d79d5(0x166))/0x5+parseInt(_0x1d79d5(0x172))/0x6+parseInt(_0x1d79d5(0x171))/0x7+parseInt(_0x1d79d5(0x16a))/0x8;if(_0x391d8d===_0x507dd5)break;else _0x33f460['push'](_0x33f460['shift']());}catch(_0x5786da){_0x33f460['push'](_0x33f460['shift']());}}}(_0x4a33,0x8d8ea));import{Command as _0x336119}from'ckeditor5/src/core.js';function _0x52c7(_0x5637fc,_0x269b19){const _0x4a33c0=_0x4a33();return _0x52c7=function(_0x52c799,_0x538944){_0x52c799=_0x52c799-0x161;let _0x126696=_0x4a33c0[_0x52c799];return _0x126696;},_0x52c7(_0x5637fc,_0x269b19);}import{FOOTNOTES_DEFINITIONS_STYLES as _0x3881f2}from'../footnotespropertiesconfig.js';function _0x4a33(){const _0x529277=['4332312mtAfqV','model','getAttribute','getFootnotesDefinitionsObjectElement','includes','_updateFootnotesCounters','get','2502815JXWpQQ','4385832hxDhaK','footnotesListStyle','1764734vewIYK','1NojpiI','refresh','plugins','value','isEnabled','setAttribute','4636800anScsI','823915rzCTOR','execute','1825866MzXdzT','change'];_0x4a33=function(){return _0x529277;};return _0x4a33();}import{FootnotesTracker as _0x61f52f}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x336119{[_0x13001b(0x176)](){const _0x51908b=_0x13001b,{editor:_0x271595}=this,_0x2c8401=_0x271595[_0x51908b(0x161)][_0x51908b(0x170)](_0x61f52f)[_0x51908b(0x16d)]();this[_0x51908b(0x163)]=!!_0x2c8401,this[_0x51908b(0x162)]=_0x2c8401?.[_0x51908b(0x16c)](_0x51908b(0x173))??null;}[_0x13001b(0x167)]({value:_0x56b467}){const _0x238417=_0x13001b,{editor:_0x54f1ee}=this,_0x34e10a=_0x54f1ee[_0x238417(0x161)][_0x238417(0x170)](_0x61f52f),_0x4eff9d=_0x34e10a[_0x238417(0x16d)]();_0x4eff9d&&_0x3881f2[_0x238417(0x16e)](_0x56b467)&&_0x54f1ee[_0x238417(0x16b)][_0x238417(0x169)](_0x29aa3b=>{const _0x1c8c65=_0x238417;_0x29aa3b[_0x1c8c65(0x164)](_0x1c8c65(0x173),_0x56b467,_0x4eff9d),_0x34e10a[_0x1c8c65(0x16f)](_0x29aa3b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x588b98=_0x2744;function _0x5430(){const _0x42fd6a=['lower-alpha','70jOgChI','38058DfGjOz','3245232RdwFus','decimal','526339Gzbled','2091DgxtZk','474653jcpMYZ','upper-roman','1405670qVOqOE','1516atpnku','5232852zmtYFL','lower-latin','decimal-leading-zero','4QekAhu','lower-roman','upper-latin','364enEPot','upper-alpha'];_0x5430=function(){return _0x42fd6a;};return _0x5430();}(function(_0x13fc5c,_0xa064ac){const _0x4c18a2=_0x2744,_0x490750=_0x13fc5c();while(!![]){try{const _0x218c37=parseInt(_0x4c18a2(0x1d7))/0x1+-parseInt(_0x4c18a2(0x1c7))/0x2*(-parseInt(_0x4c18a2(0x1d6))/0x3)+-parseInt(_0x4c18a2(0x1cb))/0x4*(-parseInt(_0x4c18a2(0x1d9))/0x5)+parseInt(_0x4c18a2(0x1d2))/0x6*(parseInt(_0x4c18a2(0x1ce))/0x7)+-parseInt(_0x4c18a2(0x1d3))/0x8+-parseInt(_0x4c18a2(0x1c8))/0x9+-parseInt(_0x4c18a2(0x1d1))/0xa*(parseInt(_0x4c18a2(0x1d5))/0xb);if(_0x218c37===_0xa064ac)break;else _0x490750['push'](_0x490750['shift']());}catch(_0x3996c4){_0x490750['push'](_0x490750['shift']());}}}(_0x5430,0x47454));function _0x2744(_0x263503,_0x1d2347){const _0x543066=_0x5430();return _0x2744=function(_0x2744bf,_0x15c91a){_0x2744bf=_0x2744bf-0x1c7;let _0x417113=_0x543066[_0x2744bf];return _0x417113;},_0x2744(_0x263503,_0x1d2347);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x588b98(0x1d4),_0x588b98(0x1ca),_0x588b98(0x1c9),_0x588b98(0x1cd),_0x588b98(0x1d0),_0x588b98(0x1cf),_0x588b98(0x1cc),_0x588b98(0x1d8)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x40ba(_0x1f5196,_0x4d6c5d){const _0x188ec1=_0x188e();return _0x40ba=function(_0x40ba50,_0x150451){_0x40ba50=_0x40ba50-0x1cb;let _0x397b20=_0x188ec1[_0x40ba50];return _0x397b20;},_0x40ba(_0x1f5196,_0x4d6c5d);}const _0x1f9601=_0x40ba;(function(_0x3fb8e8,_0x3308a3){const _0x1c390a=_0x40ba,_0xe61986=_0x3fb8e8();while(!![]){try{const _0x37e0bf=parseInt(_0x1c390a(0x20d))/0x1*(parseInt(_0x1c390a(0x201))/0x2)+-parseInt(_0x1c390a(0x1e8))/0x3*(parseInt(_0x1c390a(0x204))/0x4)+parseInt(_0x1c390a(0x1cf))/0x5*(-parseInt(_0x1c390a(0x22f))/0x6)+parseInt(_0x1c390a(0x214))/0x7*(parseInt(_0x1c390a(0x22c))/0x8)+-parseInt(_0x1c390a(0x22b))/0x9*(parseInt(_0x1c390a(0x208))/0xa)+-parseInt(_0x1c390a(0x20f))/0xb*(parseInt(_0x1c390a(0x232))/0xc)+parseInt(_0x1c390a(0x1dd))/0xd;if(_0x37e0bf===_0x3308a3)break;else _0xe61986['push'](_0xe61986['shift']());}catch(_0x1f3400){_0xe61986['push'](_0xe61986['shift']());}}}(_0x188e,0x793cc));import{Plugin as _0x1c137d}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x30a5c8}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x25ff12}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x3dfd56}from'../footnotestracker.js';import{FootnotesEditing as _0x359a52}from'../footnotesediting.js';function _0x188e(){const _0x202c7e=['7gbCSNr','plugins','getChanges','footnotes-list','footnotesDefinitions','lower-alpha','commands','item','fromCharCode','_getDefaultListStyle','footnotesStart','$text','attribute:footnotesListStyle:footnotesDefinitions','registerPostFixer','getAttribute','max','padStart','modelCursor','find','editor','_defineSchema','define','position','9Mgawrk','5857064izJbzQ','upcast','consume','146058gZdDLo','footnotes.footnotesProperties.defaultListStyle','decimal-leading-zero','36uqaoEI','footnotesListStart','for','getChildren','schema','55ZpenhR','pluginName','removeStyle','parent','floor','_formatFootnoteListValue','model','document','viewItem','toViewElement','from','start','insert','setAttribute','15728193dTsCnB','isOfficialPlugin','lower-roman','parseInt','footnotesListStyle','list-style-type','downcast','writer','_getDefaultStartIndex','attribute:footnotesListStart:footnotesDefinitions','type','681XspLct','setFootnoteFormatter','getStyle','_defineConverters','element:ol','setStyle','element','consumable','createRangeOn','_definePostfixer','add','FootnotesPropertiesEditing','differ','isNaN','name','lower-latin','removeAttribute','checkAttribute','isPremiumPlugin','hasClass','upper-roman','_updateFootnotesCounters','getItems','extend','mapper','790892WrqHnr','nodeAfter','footnotes.footnotesProperties.defaultStartIndex','8536cKqpuL','upper-latin','get','init','9600490ojLInT','footnotesStyle','config','toUpperCase','decimal','2vuKrmV','toLowerCase','1921546kROwJk','requires','hasAttribute','upper-alpha','_defineFormatter'];_0x188e=function(){return _0x202c7e;};return _0x188e();}export class FootnotesPropertiesEditing extends _0x1c137d{static get[_0x1f9601(0x1d0)](){const _0x95aba4=_0x1f9601;return _0x95aba4(0x1f3);}static get[_0x1f9601(0x210)](){return[_0x359a52,_0x3dfd56];}static get[_0x1f9601(0x1de)](){return!0x0;}static get[_0x1f9601(0x1fa)](){return!0x0;}[_0x1f9601(0x207)](){const _0x2e6d80=_0x1f9601,{editor:_0x484a8a}=this;_0x484a8a[_0x2e6d80(0x20a)][_0x2e6d80(0x229)](_0x2e6d80(0x230),_0x2e6d80(0x20c)),_0x484a8a[_0x2e6d80(0x20a)][_0x2e6d80(0x229)](_0x2e6d80(0x203),0x1),_0x484a8a[_0x2e6d80(0x21a)][_0x2e6d80(0x1f2)](_0x2e6d80(0x209),new _0x30a5c8(_0x484a8a)),_0x484a8a[_0x2e6d80(0x21a)][_0x2e6d80(0x1f2)](_0x2e6d80(0x21e),new _0x25ff12(_0x484a8a)),this[_0x2e6d80(0x228)](),this[_0x2e6d80(0x1eb)](),this[_0x2e6d80(0x213)](),this[_0x2e6d80(0x1f1)]();}[_0x1f9601(0x228)](){const _0x22d313=_0x1f9601,{editor:_0x20be2c}=this,{schema:_0x2469f8}=_0x20be2c[_0x22d313(0x1d5)];_0x2469f8[_0x22d313(0x1ff)](_0x22d313(0x218),{'allowAttributes':[_0x22d313(0x1e1),_0x22d313(0x1cb)]});}[_0x1f9601(0x1eb)](){const _0x558fad=_0x1f9601,{editor:_0x170499}=this,{conversion:_0xdebe46,model:_0x750d0a}=_0x170499,{schema:_0x18e33a}=_0x750d0a;_0xdebe46[_0x558fad(0x1cc)](_0x558fad(0x22d))[_0x558fad(0x1f2)](_0x749aac=>{const _0x3d442e=_0x558fad;_0x749aac['on'](_0x3d442e(0x1ec),(_0x2eb6b2,_0x11a4fd,_0x17d219)=>{const _0x41d03a=_0x3d442e,_0x44d7f1=_0x11a4fd[_0x41d03a(0x1d7)],_0x3a33fc=_0x11a4fd[_0x41d03a(0x225)]?.[_0x41d03a(0x1d2)];_0x44d7f1[_0x41d03a(0x1fb)](_0x41d03a(0x217))&&_0x3a33fc?.['is'](_0x41d03a(0x1ee),_0x41d03a(0x218))&&(function(_0x401515,_0x57baaf,_0x4c2b48,_0x5cc38a){const _0x5d3aaf=_0x41d03a;if(!_0x5cc38a[_0x5d3aaf(0x1f9)](_0x57baaf,_0x5d3aaf(0x1cb)))return;let _0x370543=0x1;const _0xe84081=_0x4c2b48[_0x5d3aaf(0x1ef)][_0x5d3aaf(0x22e)](_0x401515,{'attributes':_0x5d3aaf(0x1da)});if(_0xe84081){const _0x2da4a8=Number[_0x5d3aaf(0x1e0)](_0x401515[_0x5d3aaf(0x222)](_0x5d3aaf(0x1da)),0xa);Number[_0x5d3aaf(0x1f5)](_0x2da4a8)||(_0x370543=_0x2da4a8);}!_0xe84081&&_0x57baaf[_0x5d3aaf(0x211)](_0x5d3aaf(0x1cb))||_0x4c2b48[_0x5d3aaf(0x1e4)][_0x5d3aaf(0x1dc)](_0x5d3aaf(0x1cb),_0x370543,_0x57baaf);}(_0x44d7f1,_0x3a33fc,_0x17d219,_0x18e33a),function(_0x23e93e,_0x159839,_0x241ca9,_0x309d3e){const _0x1a9124=_0x41d03a;if(!_0x309d3e[_0x1a9124(0x1f9)](_0x159839,_0x1a9124(0x1e1)))return;let _0x500a34=_0x1a9124(0x20c),_0x1137a5=!0x1;if(_0x241ca9[_0x1a9124(0x1ef)][_0x1a9124(0x22e)](_0x23e93e,{'attributes':_0x1a9124(0x1e7)})){const _0x147165={0x1:_0x1a9124(0x20c),'a':_0x1a9124(0x219),'A':_0x1a9124(0x212),'i':_0x1a9124(0x1df),'I':_0x1a9124(0x1fc)}[_0x23e93e[_0x1a9124(0x222)](_0x1a9124(0x1e7))];_0x147165&&(_0x500a34=_0x147165),_0x1137a5=!0x0;}_0x241ca9[_0x1a9124(0x1ef)][_0x1a9124(0x22e)](_0x23e93e,{'styles':_0x1a9124(0x1e2)})&&(_0x500a34=function(_0x165788){const _0x2d93ee=_0x1a9124;switch(_0x165788){case _0x2d93ee(0x219):return _0x2d93ee(0x1f7);case _0x2d93ee(0x212):return _0x2d93ee(0x205);default:return _0x165788;}}(_0x23e93e[_0x1a9124(0x1ea)](_0x1a9124(0x1e2))),_0x1137a5=!0x0),!_0x1137a5&&_0x159839[_0x1a9124(0x211)](_0x1a9124(0x1e1))||_0x241ca9[_0x1a9124(0x1e4)][_0x1a9124(0x1dc)](_0x1a9124(0x1e1),_0x500a34,_0x159839);}(_0x44d7f1,_0x3a33fc,_0x17d219,_0x18e33a));});}),_0xdebe46[_0x558fad(0x1cc)](_0x558fad(0x1e3))[_0x558fad(0x1f2)](_0x53a26c=>{const _0x42f922=_0x558fad;_0x53a26c['on'](_0x42f922(0x1e6),(_0x37f618,_0x169179,_0x3b71f8)=>{const _0x918294=_0x42f922;if(!_0x3b71f8[_0x918294(0x1ef)][_0x918294(0x22e)](_0x169179[_0x918294(0x21b)],_0x37f618[_0x918294(0x1f6)]))return;const _0x4cc8e1=M(_0x169179[_0x918294(0x21b)],_0x3b71f8[_0x918294(0x200)]),{attributeNewValue:_0x53e921}=_0x169179;null==_0x53e921||0x1===_0x53e921?_0x3b71f8[_0x918294(0x1e4)][_0x918294(0x1f8)](_0x918294(0x1da),_0x4cc8e1):_0x3b71f8[_0x918294(0x1e4)][_0x918294(0x1dc)](_0x918294(0x1da),String(_0x53e921),_0x4cc8e1);}),_0x53a26c['on'](_0x42f922(0x220),(_0x444080,_0x3c5541,_0x1554ca)=>{const _0x57d263=_0x42f922;if(!_0x1554ca[_0x57d263(0x1ef)][_0x57d263(0x22e)](_0x3c5541[_0x57d263(0x21b)],_0x444080[_0x57d263(0x1f6)]))return;const _0x5d97f3=M(_0x3c5541[_0x57d263(0x21b)],_0x1554ca[_0x57d263(0x200)]),{attributeNewValue:_0x4a1ba4}=_0x3c5541;_0x4a1ba4&&_0x57d263(0x20c)!==_0x4a1ba4?_0x1554ca[_0x57d263(0x1e4)][_0x57d263(0x1ed)](_0x57d263(0x1e2),_0x4a1ba4,_0x5d97f3):_0x1554ca[_0x57d263(0x1e4)][_0x57d263(0x1d1)](_0x57d263(0x1e2),_0x5d97f3);});});}[_0x1f9601(0x1f1)](){const _0x30dca8=_0x1f9601,{editor:_0x226978}=this,{model:_0x1afaeb}=_0x226978,_0x127cc9=_0x226978[_0x30dca8(0x215)][_0x30dca8(0x206)](_0x3dfd56),_0x377545=this[_0x30dca8(0x21d)](),_0x476d9e=this[_0x30dca8(0x1e5)]();_0x1afaeb[_0x30dca8(0x1d6)][_0x30dca8(0x221)](_0x5ae1f3=>{const _0x5db7b1=_0x30dca8,_0x584ec2=_0x1afaeb[_0x5db7b1(0x1d6)][_0x5db7b1(0x1f4)][_0x5db7b1(0x216)]();let _0x231555=!0x1;for(const _0x5a1493 of _0x584ec2){if(_0x5db7b1(0x1db)!==_0x5a1493[_0x5db7b1(0x1e7)]||_0x5db7b1(0x21f)===_0x5a1493[_0x5db7b1(0x1f6)])continue;const _0x47ca29=_0x1afaeb[_0x5db7b1(0x1f0)](_0x5a1493[_0x5db7b1(0x22a)][_0x5db7b1(0x202)]);for(const _0x3e9e9b of _0x47ca29[_0x5db7b1(0x1fe)]())_0x3e9e9b['is'](_0x5db7b1(0x1ee),_0x5db7b1(0x218))&&(!_0x3e9e9b[_0x5db7b1(0x211)](_0x5db7b1(0x1cb))&&_0x1afaeb[_0x5db7b1(0x1ce)][_0x5db7b1(0x1f9)](_0x3e9e9b,_0x5db7b1(0x1cb))&&(_0x5ae1f3[_0x5db7b1(0x1dc)](_0x5db7b1(0x1cb),_0x476d9e,_0x3e9e9b),_0x231555=!0x0),!_0x3e9e9b[_0x5db7b1(0x211)](_0x5db7b1(0x1e1))&&_0x1afaeb[_0x5db7b1(0x1ce)][_0x5db7b1(0x1f9)](_0x3e9e9b,_0x5db7b1(0x1e1))&&(_0x5ae1f3[_0x5db7b1(0x1dc)](_0x5db7b1(0x1e1),_0x377545,_0x3e9e9b),_0x231555=!0x0));}return _0x231555&&_0x127cc9[_0x5db7b1(0x1fd)](_0x5ae1f3),_0x231555;});}[_0x1f9601(0x213)](){const _0x27f252=_0x1f9601,{editor:_0x24339c}=this;_0x24339c[_0x27f252(0x215)][_0x27f252(0x206)](_0x3dfd56)[_0x27f252(0x1e9)](_0x478f9c=>this[_0x27f252(0x1d4)](_0x478f9c));}[_0x1f9601(0x21d)](){const _0x4b2dff=_0x1f9601;return this[_0x4b2dff(0x227)][_0x4b2dff(0x20a)][_0x4b2dff(0x206)](_0x4b2dff(0x230));}[_0x1f9601(0x1e5)](){const _0x2d200e=_0x1f9601;return this[_0x2d200e(0x227)][_0x2d200e(0x20a)][_0x2d200e(0x206)](_0x2d200e(0x203));}[_0x1f9601(0x1d4)]({container:_0xdcf785,value:_0x3a9916,digits:_0x2dfb9b}){const _0x10486d=_0x1f9601,_0x5dbce2=_0xdcf785[_0x10486d(0x222)](_0x10486d(0x1e1)),_0x1345b0=_0xdcf785[_0x10486d(0x222)](_0x10486d(0x1cb)),_0x3e0a50=Math[_0x10486d(0x1d3)](_0x3a9916)+(_0x1345b0??0x1)-0x1;switch(_0x5dbce2){case _0x10486d(0x231):return function(_0x27d1a3,_0x310821){const _0x5415a9=_0x10486d;return String(_0x27d1a3)[_0x5415a9(0x224)](_0x310821,'0');}(_0x3e0a50,Math[_0x10486d(0x223)](0x2,_0x2dfb9b));case _0x10486d(0x219):case _0x10486d(0x1f7):return N(_0x3e0a50,!0x1);case _0x10486d(0x212):case _0x10486d(0x205):return N(_0x3e0a50,!0x0);case _0x10486d(0x1df):return X(_0x3e0a50,!0x1);case _0x10486d(0x1fc):return X(_0x3e0a50,!0x0);default:return String(_0x3e0a50);}}}function M(_0x2b046d,_0xc4042){const _0xafa514=_0x1f9601,_0x37109e=_0xc4042[_0xafa514(0x1d8)](_0x2b046d);return Array[_0xafa514(0x1d9)](_0x37109e[_0xafa514(0x1cd)]())[_0xafa514(0x226)](_0x2fc2f7=>_0x2fc2f7['is'](_0xafa514(0x1ee),'ol')&&_0x2fc2f7[_0xafa514(0x1fb)](_0xafa514(0x217)));}function N(_0x5cd6ef,_0x3437ae){const _0x6e241a=_0x1f9601;let _0x49bac4='',_0x40de23=_0x5cd6ef;for(;_0x40de23>0x0;){const _0x53e307=(_0x40de23-0x1)%0x1a;_0x49bac4=String[_0x6e241a(0x21c)](0x61+_0x53e307)+_0x49bac4,_0x40de23=Math[_0x6e241a(0x1d3)]((_0x40de23-0x1)/0x1a);}return _0x3437ae?_0x49bac4[_0x6e241a(0x20b)]():_0x49bac4;}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(_0x5eb24c,_0x3e2709){const _0x3f7a50=_0x1f9601;let _0x431176='',_0x7ede72=_0x5eb24c;for(const {value:_0x3cbf77,numeral:_0x468259}of V)for(;_0x7ede72>=_0x3cbf77;)_0x431176+=_0x468259,_0x7ede72-=_0x3cbf77;return _0x3e2709?_0x431176:_0x431176[_0x3f7a50(0x20e)]();}
|
|
23
|
+
function _0x427b(){const _0x4cd89f=['footnotesListStyle','find','4942840lyHVfI','fromCharCode','editor','75736beoTBy','isOfficialPlugin','footnotes.footnotesProperties.defaultListStyle','floor','isPremiumPlugin','type','_getDefaultListStyle','element:ol','name','_defineFormatter','lower-latin','writer','get','81cNoOiw','config','getChanges','createRangeOn','commands','start','_defineSchema','upper-roman','1224767sDTlCY','schema','removeStyle','8842932eGWUjO','_definePostfixer','document','consumable','extend','removeAttribute','footnotesListStart','mapper','setAttribute','lower-alpha','footnotes.footnotesProperties.defaultStartIndex','FootnotesPropertiesEditing','padStart','3067911eYmYFj','upper-alpha','toViewElement','footnotesDefinitions','registerPostFixer','_defineConverters','isNaN','upcast','268279CtUXgd','modelCursor','differ','footnotesStyle','decimal-leading-zero','downcast','_formatFootnoteListValue','_getDefaultStartIndex','viewItem','lower-roman','define','attribute:footnotesListStart:footnotesDefinitions','insert','from','setStyle','pluginName','getAttribute','model','footnotes-list','parseInt','290MTXlMa','consume','getChildren','for','hasAttribute','toUpperCase','getStyle','max','plugins','hasClass','list-style-type','nodeAfter','init','getItems','$text','attribute:footnotesListStyle:footnotesDefinitions','element','upper-latin','decimal','position','item','4402578DjKoTG','setFootnoteFormatter','2butkdE','checkAttribute','footnotesStart','toLowerCase','5lEPyZs','parent','_updateFootnotesCounters','add','requires','24BKRMbn'];_0x427b=function(){return _0x4cd89f;};return _0x427b();}function _0x2d0c(_0x3caa9e,_0x5bb00e){const _0x427bee=_0x427b();return _0x2d0c=function(_0x2d0c5e,_0x5ccb5c){_0x2d0c5e=_0x2d0c5e-0xfc;let _0x3ce410=_0x427bee[_0x2d0c5e];return _0x3ce410;},_0x2d0c(_0x3caa9e,_0x5bb00e);}const _0x26b352=_0x2d0c;(function(_0x130159,_0x5b4191){const _0x180da8=_0x2d0c,_0xd8cb1e=_0x130159();while(!![]){try{const _0x1f812b=-parseInt(_0x180da8(0x13c))/0x1*(-parseInt(_0x180da8(0x118))/0x2)+-parseInt(_0x180da8(0x134))/0x3*(-parseInt(_0x180da8(0x127))/0x4)+parseInt(_0x180da8(0x11c))/0x5*(parseInt(_0x180da8(0x116))/0x6)+-parseInt(_0x180da8(0x124))/0x7+parseInt(_0x180da8(0x121))/0x8*(-parseInt(_0x180da8(0x14c))/0x9)+-parseInt(_0x180da8(0x101))/0xa*(parseInt(_0x180da8(0x154))/0xb)+parseInt(_0x180da8(0x13f))/0xc;if(_0x1f812b===_0x5b4191)break;else _0xd8cb1e['push'](_0xd8cb1e['shift']());}catch(_0x5a81cb){_0xd8cb1e['push'](_0xd8cb1e['shift']());}}}(_0x427b,0xbc23d));import{Plugin as _0x5a73b8}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x55a11e}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x340f35}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x335d6d}from'../footnotestracker.js';import{FootnotesEditing as _0x318af1}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x5a73b8{static get[_0x26b352(0xfc)](){const _0x291bb7=_0x26b352;return _0x291bb7(0x14a);}static get[_0x26b352(0x120)](){return[_0x318af1,_0x335d6d];}static get[_0x26b352(0x128)](){return!0x0;}static get[_0x26b352(0x12b)](){return!0x0;}[_0x26b352(0x10d)](){const _0x34562c=_0x26b352,{editor:_0x58cba0}=this;_0x58cba0[_0x34562c(0x135)][_0x34562c(0x15e)](_0x34562c(0x129),_0x34562c(0x113)),_0x58cba0[_0x34562c(0x135)][_0x34562c(0x15e)](_0x34562c(0x149),0x1),_0x58cba0[_0x34562c(0x138)][_0x34562c(0x11f)](_0x34562c(0x157),new _0x55a11e(_0x58cba0)),_0x58cba0[_0x34562c(0x138)][_0x34562c(0x11f)](_0x34562c(0x11a),new _0x340f35(_0x58cba0)),this[_0x34562c(0x13a)](),this[_0x34562c(0x151)](),this[_0x34562c(0x130)](),this[_0x34562c(0x140)]();}[_0x26b352(0x13a)](){const _0x4d2432=_0x26b352,{editor:_0x542023}=this,{schema:_0x18ff5e}=_0x542023[_0x4d2432(0xfe)];_0x18ff5e[_0x4d2432(0x143)](_0x4d2432(0x14f),{'allowAttributes':[_0x4d2432(0x122),_0x4d2432(0x145)]});}[_0x26b352(0x151)](){const _0x2fc69c=_0x26b352,{editor:_0xacf49a}=this,{conversion:_0x50125c,model:_0x3bc446}=_0xacf49a,{schema:_0x2b2322}=_0x3bc446;_0x50125c[_0x2fc69c(0x104)](_0x2fc69c(0x153))[_0x2fc69c(0x11f)](_0x270db5=>{const _0x20236b=_0x2fc69c;_0x270db5['on'](_0x20236b(0x12e),(_0x4c2315,_0x17d091,_0x3f4cbb)=>{const _0x16b0c1=_0x20236b,_0x2d5021=_0x17d091[_0x16b0c1(0x15c)],_0x2c31df=_0x17d091[_0x16b0c1(0x155)]?.[_0x16b0c1(0x11d)];_0x2d5021[_0x16b0c1(0x10a)](_0x16b0c1(0xff))&&_0x2c31df?.['is'](_0x16b0c1(0x111),_0x16b0c1(0x14f))&&(function(_0x1900ea,_0x36a87e,_0x19b472,_0x490b4a){const _0x14d741=_0x16b0c1;if(!_0x490b4a[_0x14d741(0x119)](_0x36a87e,_0x14d741(0x145)))return;let _0x4fecc2=0x1;const _0x50cfea=_0x19b472[_0x14d741(0x142)][_0x14d741(0x102)](_0x1900ea,{'attributes':_0x14d741(0x139)});if(_0x50cfea){const _0x525ac8=Number[_0x14d741(0x100)](_0x1900ea[_0x14d741(0xfd)](_0x14d741(0x139)),0xa);Number[_0x14d741(0x152)](_0x525ac8)||(_0x4fecc2=_0x525ac8);}!_0x50cfea&&_0x36a87e[_0x14d741(0x105)](_0x14d741(0x145))||_0x19b472[_0x14d741(0x132)][_0x14d741(0x147)](_0x14d741(0x145),_0x4fecc2,_0x36a87e);}(_0x2d5021,_0x2c31df,_0x3f4cbb,_0x2b2322),function(_0x29db46,_0x2290a5,_0x42cc1e,_0x121c2b){const _0x3c5985=_0x16b0c1;if(!_0x121c2b[_0x3c5985(0x119)](_0x2290a5,_0x3c5985(0x122)))return;let _0x26e5d0=_0x3c5985(0x113),_0x56e2a9=!0x1;if(_0x42cc1e[_0x3c5985(0x142)][_0x3c5985(0x102)](_0x29db46,{'attributes':_0x3c5985(0x12c)})){const _0x1fc895={0x1:_0x3c5985(0x113),'a':_0x3c5985(0x148),'A':_0x3c5985(0x14d),'i':_0x3c5985(0x15d),'I':_0x3c5985(0x13b)}[_0x29db46[_0x3c5985(0xfd)](_0x3c5985(0x12c))];_0x1fc895&&(_0x26e5d0=_0x1fc895),_0x56e2a9=!0x0;}_0x42cc1e[_0x3c5985(0x142)][_0x3c5985(0x102)](_0x29db46,{'styles':_0x3c5985(0x10b)})&&(_0x26e5d0=function(_0xd21f87){const _0x2232fb=_0x3c5985;switch(_0xd21f87){case _0x2232fb(0x148):return _0x2232fb(0x131);case _0x2232fb(0x14d):return _0x2232fb(0x112);default:return _0xd21f87;}}(_0x29db46[_0x3c5985(0x107)](_0x3c5985(0x10b))),_0x56e2a9=!0x0),!_0x56e2a9&&_0x2290a5[_0x3c5985(0x105)](_0x3c5985(0x122))||_0x42cc1e[_0x3c5985(0x132)][_0x3c5985(0x147)](_0x3c5985(0x122),_0x26e5d0,_0x2290a5);}(_0x2d5021,_0x2c31df,_0x3f4cbb,_0x2b2322));});}),_0x50125c[_0x2fc69c(0x104)](_0x2fc69c(0x159))[_0x2fc69c(0x11f)](_0x4281f9=>{const _0x411e31=_0x2fc69c;_0x4281f9['on'](_0x411e31(0x15f),(_0x10ec9e,_0x1e707c,_0x272812)=>{const _0x1b99f4=_0x411e31;if(!_0x272812[_0x1b99f4(0x142)][_0x1b99f4(0x102)](_0x1e707c[_0x1b99f4(0x115)],_0x10ec9e[_0x1b99f4(0x12f)]))return;const _0x4a8637=M(_0x1e707c[_0x1b99f4(0x115)],_0x272812[_0x1b99f4(0x146)]),{attributeNewValue:_0x248217}=_0x1e707c;null==_0x248217||0x1===_0x248217?_0x272812[_0x1b99f4(0x132)][_0x1b99f4(0x144)](_0x1b99f4(0x139),_0x4a8637):_0x272812[_0x1b99f4(0x132)][_0x1b99f4(0x147)](_0x1b99f4(0x139),String(_0x248217),_0x4a8637);}),_0x4281f9['on'](_0x411e31(0x110),(_0x4f5cc4,_0x5b5f90,_0x2568ea)=>{const _0x50fc51=_0x411e31;if(!_0x2568ea[_0x50fc51(0x142)][_0x50fc51(0x102)](_0x5b5f90[_0x50fc51(0x115)],_0x4f5cc4[_0x50fc51(0x12f)]))return;const _0x1e912f=M(_0x5b5f90[_0x50fc51(0x115)],_0x2568ea[_0x50fc51(0x146)]),{attributeNewValue:_0x503965}=_0x5b5f90;_0x503965&&_0x50fc51(0x113)!==_0x503965?_0x2568ea[_0x50fc51(0x132)][_0x50fc51(0x162)](_0x50fc51(0x10b),_0x503965,_0x1e912f):_0x2568ea[_0x50fc51(0x132)][_0x50fc51(0x13e)](_0x50fc51(0x10b),_0x1e912f);});});}[_0x26b352(0x140)](){const _0x2ccf59=_0x26b352,{editor:_0x232c4b}=this,{model:_0x4756e0}=_0x232c4b,_0x244105=_0x232c4b[_0x2ccf59(0x109)][_0x2ccf59(0x133)](_0x335d6d),_0x11b913=this[_0x2ccf59(0x12d)](),_0x2a9826=this[_0x2ccf59(0x15b)]();_0x4756e0[_0x2ccf59(0x141)][_0x2ccf59(0x150)](_0x35cd55=>{const _0x3969b7=_0x2ccf59,_0x45db16=_0x4756e0[_0x3969b7(0x141)][_0x3969b7(0x156)][_0x3969b7(0x136)]();let _0x10046e=!0x1;for(const _0x540ed7 of _0x45db16){if(_0x3969b7(0x160)!==_0x540ed7[_0x3969b7(0x12c)]||_0x3969b7(0x10f)===_0x540ed7[_0x3969b7(0x12f)])continue;const _0x225ba0=_0x4756e0[_0x3969b7(0x137)](_0x540ed7[_0x3969b7(0x114)][_0x3969b7(0x10c)]);for(const _0x4508f4 of _0x225ba0[_0x3969b7(0x10e)]())_0x4508f4['is'](_0x3969b7(0x111),_0x3969b7(0x14f))&&(!_0x4508f4[_0x3969b7(0x105)](_0x3969b7(0x145))&&_0x4756e0[_0x3969b7(0x13d)][_0x3969b7(0x119)](_0x4508f4,_0x3969b7(0x145))&&(_0x35cd55[_0x3969b7(0x147)](_0x3969b7(0x145),_0x2a9826,_0x4508f4),_0x10046e=!0x0),!_0x4508f4[_0x3969b7(0x105)](_0x3969b7(0x122))&&_0x4756e0[_0x3969b7(0x13d)][_0x3969b7(0x119)](_0x4508f4,_0x3969b7(0x122))&&(_0x35cd55[_0x3969b7(0x147)](_0x3969b7(0x122),_0x11b913,_0x4508f4),_0x10046e=!0x0));}return _0x10046e&&_0x244105[_0x3969b7(0x11e)](_0x35cd55),_0x10046e;});}[_0x26b352(0x130)](){const _0x56258c=_0x26b352,{editor:_0x3da900}=this;_0x3da900[_0x56258c(0x109)][_0x56258c(0x133)](_0x335d6d)[_0x56258c(0x117)](_0x36f81c=>this[_0x56258c(0x15a)](_0x36f81c));}[_0x26b352(0x12d)](){const _0xd7e99f=_0x26b352;return this[_0xd7e99f(0x126)][_0xd7e99f(0x135)][_0xd7e99f(0x133)](_0xd7e99f(0x129));}[_0x26b352(0x15b)](){const _0x3182d9=_0x26b352;return this[_0x3182d9(0x126)][_0x3182d9(0x135)][_0x3182d9(0x133)](_0x3182d9(0x149));}[_0x26b352(0x15a)]({container:_0x144bf5,value:_0x16b92f,digits:_0x1910e3}){const _0x1a2eeb=_0x26b352,_0x26af3c=_0x144bf5[_0x1a2eeb(0xfd)](_0x1a2eeb(0x122)),_0x375bfc=_0x144bf5[_0x1a2eeb(0xfd)](_0x1a2eeb(0x145)),_0x27646f=Math[_0x1a2eeb(0x12a)](_0x16b92f)+(_0x375bfc??0x1)-0x1;switch(_0x26af3c){case _0x1a2eeb(0x158):return function(_0x48d2d8,_0x18b110){const _0x2d241c=_0x1a2eeb;return String(_0x48d2d8)[_0x2d241c(0x14b)](_0x18b110,'0');}(_0x27646f,Math[_0x1a2eeb(0x108)](0x2,_0x1910e3));case _0x1a2eeb(0x148):case _0x1a2eeb(0x131):return N(_0x27646f,!0x1);case _0x1a2eeb(0x14d):case _0x1a2eeb(0x112):return N(_0x27646f,!0x0);case _0x1a2eeb(0x15d):return X(_0x27646f,!0x1);case _0x1a2eeb(0x13b):return X(_0x27646f,!0x0);default:return String(_0x27646f);}}}function M(_0x4a4e84,_0x27ae9b){const _0x588e35=_0x26b352,_0x27b957=_0x27ae9b[_0x588e35(0x14e)](_0x4a4e84);return Array[_0x588e35(0x161)](_0x27b957[_0x588e35(0x103)]())[_0x588e35(0x123)](_0x456a56=>_0x456a56['is'](_0x588e35(0x111),'ol')&&_0x456a56[_0x588e35(0x10a)](_0x588e35(0xff)));}function N(_0x5d0cc4,_0x1eb1f1){const _0x5025e8=_0x26b352;let _0x1636e0='',_0x3e3e05=_0x5d0cc4;for(;_0x3e3e05>0x0;){const _0x1bd07d=(_0x3e3e05-0x1)%0x1a;_0x1636e0=String[_0x5025e8(0x125)](0x61+_0x1bd07d)+_0x1636e0,_0x3e3e05=Math[_0x5025e8(0x12a)]((_0x3e3e05-0x1)/0x1a);}return _0x1eb1f1?_0x1636e0[_0x5025e8(0x106)]():_0x1636e0;}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(_0x5c368d,_0x51ecee){const _0x29a5ab=_0x26b352;let _0x26c51f='',_0x1ce97f=_0x5c368d;for(const {value:_0x24a541,numeral:_0x205390}of V)for(;_0x1ce97f>=_0x24a541;)_0x26c51f+=_0x205390,_0x1ce97f-=_0x24a541;return _0x51ecee?_0x26c51f:_0x26c51f[_0x29a5ab(0x11b)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x22169b,ButtonView as _0x537fb0,ContextualBalloon as _0x5c86aa,createDropdown as _0x11f53b}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x2181e2}from'ckeditor5/src/widget.js';import{Plugin as _0x2780bb}from'ckeditor5/src/core.js';import{IconFootnote as _0x51fc02,IconListStyleDecimal as _0x356350,IconListStyleDecimalLeadingZero as _0xda4ab5,IconListStyleLowerLatin as _0x5e63db,IconListStyleLowerRoman as _0x1c533e,IconListStyleUpperLatin as _0x4ec0cd,IconListStyleUpperRoman as _0x3dae8c}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x5173af}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x4d49c5}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x2780bb{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5c86aa,_0x2181e2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x335858}=this,{componentFactory:_0x17ce1f}=_0x335858['ui'];_0x335858['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x17ce1f['add']('footnotesStyle',function(_0x1af22f){return _0x138be4=>{const {t:t}=_0x138be4,_0x11598d=_0x1af22f['commands']['get']('footnotesStyle'),_0x117e91=_0x11f53b(_0x138be4),{buttonView:_0x5e18a3}=_0x117e91;return _0x117e91['class']='ck-footnotes-styles-dropdown',_0x117e91['bind']('isEnabled')['to'](_0x11598d,'isEnabled'),_0x5e18a3['set']({'label':t('Footnotes\x20style'),'icon':_0x51fc02,'tooltip':!0x0}),_0x117e91['once']('change:isOpen',()=>{const _0x3db69a=function({editor:_0x4cc175,dropdownView:_0x4c8b2b}){const {t:t}=_0x4cc175['locale'],_0x4c41ca=t('Footnotes\x20definitions\x20styles'),_0x42dc52=function(_0x2d321f){const t=_0x2d321f['locale']['t'],_0x5e0c68=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x356350},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xda4ab5},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x1c533e},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3dae8c},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5e63db},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4ec0cd}];return _0x5e0c68['map'](function(_0x3664c1){const _0x49bd00=_0x3664c1['locale'];return({label:_0x3e480f,icon:_0x3459b1,tooltip:_0x137ef8,style:_0xf75fec})=>{const _0xa2a6c0=_0x3664c1['commands']['get']('footnotesStyle'),_0x27637c=new _0x537fb0(_0x49bd00);return _0x27637c['set']({'label':_0x3e480f,'icon':_0x3459b1,'tooltip':_0x137ef8}),_0x27637c['bind']('isOn')['to'](_0xa2a6c0,'value',_0x456611=>_0x456611===_0xf75fec),_0x27637c['bind']('isEnabled')['to'](_0xa2a6c0,'isEnabled'),_0x27637c['on']('execute',()=>{_0x3664c1['execute']('footnotesStyle',{'value':_0xf75fec}),_0x3664c1['editing']['view']['focus']();}),_0x27637c;};}(_0x2d321f));}(_0x4cc175),_0x47d469=new _0x5173af(_0x4cc175['locale'],{'styleGridAriaLabel':_0x4c41ca,'styleButtonViews':_0x42dc52}),_0x57e346=_0x4cc175['commands']['get']('footnotesStart');return _0x47d469['startIndexFieldView']['bind']('isEnabled')['to'](_0x57e346),_0x47d469['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x57e346),_0x47d469['on']('footnotesListStart',(_0x1fd9de,_0x2d15a0)=>{_0x4cc175['execute']('footnotesStart',{'value':_0x2d15a0['startIndex']});}),_0x47d469['delegate']('execute')['to'](_0x4c8b2b),_0x47d469;}({'editor':_0x1af22f,'dropdownView':_0x117e91});_0x117e91['panelView']['children']['add'](_0x3db69a);}),_0x117e91;};}(_0x335858));}['afterInit'](){const {editor:_0x420160}=this,{t:t}=_0x420160['locale'],_0x5c8999=_0x420160['plugins']['get'](_0x2181e2),{defaultPositions:_0xc88964}=_0x22169b;_0x5c8999['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x420160['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x290cf6=>{let _0x15cc9d=_0x290cf6['getFirstPosition']()?.['parent'];return _0x15cc9d?.['is']('$text')&&(_0x15cc9d=_0x15cc9d['parent']),_0x15cc9d?.['is']('element')?_0x15cc9d['findAncestor'](_0x4d49c5):null;},'positions':[_0xc88964['southArrowNorth'],_0xc88964['southArrowNorthMiddleWest'],_0xc88964['southArrowNorthMiddleEast'],_0xc88964['southArrowNorthWest'],_0xc88964['southArrowNorthEast'],_0xc88964['northArrowSouth'],_0xc88964['northArrowSouthMiddleWest'],_0xc88964['northArrowSouthMiddleEast'],_0xc88964['northArrowSouthWest'],_0xc88964['northArrowSouthEast'],_0xc88964['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3b7ab6,View as _0xb0557a,ViewCollection as _0x237fa2,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0xb0557a{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x237fa2();['focusCycler'];constructor(_0x32ebdc,{styleButtonViews:_0x5852d0,styleGridAriaLabel:_0x4b245b}){super(_0x32ebdc),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5852d0,_0x4b245b),[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 _0x57f928 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x57f928['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x51fb3e=_0x59e25f=>_0x59e25f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x51fb3e),this['keystrokes']['set']('arrowleft',_0x51fb3e),this['keystrokes']['set']('arrowup',_0x51fb3e),this['keystrokes']['set']('arrowdown',_0x51fb3e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x32d2aa,_0x5e1434){const _0x69950d=new _0xb0557a(this['locale']);return _0x69950d['children']=_0x69950d['createCollection'](),_0x69950d['children']['addMany'](_0x32d2aa),_0x69950d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5e1434,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x69950d['children']}),_0x69950d['children']['delegate']('execute')['to'](this),_0x69950d['focus']=function(){for(const _0x31641a of this['children'])if(_0x31641a instanceof _0x3b7ab6&&_0x31641a['isOn'])return void _0x31641a['focus']();this['children']['first']['focus']();},_0x69950d['focusTracker']=new rt(),_0x69950d['keystrokes']=new nt(),_0x69950d['render'](),_0x69950d['keystrokes']['listenTo'](_0x69950d['element']),this['children']['add'](_0x69950d),_0x69950d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x31cd65=this['_createStartIndexPropertyView'](),_0x365c21=[_0x31cd65],_0x3f63cb=new it(this['locale'],_0x365c21);return _0x3f63cb['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3f63cb['buttonView']['bind']('isEnabled')['toMany'](_0x365c21,'isEnabled',(..._0x249367)=>_0x249367['some'](_0x110365=>_0x110365)),_0x3f63cb['buttonView']['on']('change:isEnabled',(_0x1ba7b4,_0x27db50,_0x72c134)=>{_0x72c134||(_0x3f63cb['isCollapsed']=!0x0);}),this['children']['add'](_0x3f63cb),[_0x31cd65,_0x3f63cb];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x252508=new et(this['locale'],ot);return _0x252508['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x252508['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x252508['fieldView']['on']('input',()=>{const _0x178226=_0x252508['fieldView']['element'],_0x34c288=_0x178226['valueAsNumber'];Number['isNaN'](_0x34c288)?_0x252508['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x178226['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x34c288}):_0x252508['errorText']=t(_0x34c288<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x252508;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1221d6=_0x4b79;function _0x4b79(_0x36a8ad,_0x2cdae6){var _0x1010de=_0x1010();return _0x4b79=function(_0x4b79d1,_0x500f82){_0x4b79d1=_0x4b79d1-0x1f0;var _0x52e590=_0x1010de[_0x4b79d1];return _0x52e590;},_0x4b79(_0x36a8ad,_0x2cdae6);}(function(_0xb910e9,_0x42f248){var _0x117ced=_0x4b79,_0x2f988f=_0xb910e9();while(!![]){try{var _0x136f9a=-parseInt(_0x117ced(0x1f1))/0x1*(-parseInt(_0x117ced(0x1fa))/0x2)+-parseInt(_0x117ced(0x1f3))/0x3+parseInt(_0x117ced(0x1fe))/0x4*(-parseInt(_0x117ced(0x1f6))/0x5)+-parseInt(_0x117ced(0x1f5))/0x6*(-parseInt(_0x117ced(0x1f8))/0x7)+parseInt(_0x117ced(0x1f7))/0x8+parseInt(_0x117ced(0x1fc))/0x9*(parseInt(_0x117ced(0x1ff))/0xa)+-parseInt(_0x117ced(0x1f4))/0xb;if(_0x136f9a===_0x42f248)break;else _0x2f988f['push'](_0x2f988f['shift']());}catch(_0xfdf4e3){_0x2f988f['push'](_0x2f988f['shift']());}}}(_0x1010,0xe4b02));function _0x1010(){var _0x3d1a95=['isPremiumPlugin','1606263vJWwNz','4087611rGubAR','6fvDsgL','335sAxNTx','13864360oLMQXy','1524719OBodCT','isOfficialPlugin','272GFyyDp','requires','260721rsrKEA','FootnotesProperties','98284IuAlQY','110MtEonD','pluginName','8974hwQzuN'];_0x1010=function(){return _0x3d1a95;};return _0x1010();}import{Plugin as _0x270870}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x5031dc}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0xe0d422}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x270870{static get[_0x1221d6(0x1f0)](){var _0x1bebcd=_0x1221d6;return _0x1bebcd(0x1fd);}static get[_0x1221d6(0x1fb)](){return[_0x5031dc,_0xe0d422];}static get[_0x1221d6(0x1f9)](){return!0x0;}static get[_0x1221d6(0x1f2)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x469782=_0x734c;(function(_0x58e56a,_0x4a48fb){const _0x3a6386=_0x734c,_0x272f14=_0x58e56a();while(!![]){try{const _0x55cef8=-parseInt(_0x3a6386(0x13b))/0x1+-parseInt(_0x3a6386(0x140))/0x2*(parseInt(_0x3a6386(0x130))/0x3)+parseInt(_0x3a6386(0x15c))/0x4+-parseInt(_0x3a6386(0x167))/0x5*(parseInt(_0x3a6386(0x152))/0x6)+parseInt(_0x3a6386(0x12a))/0x7*(parseInt(_0x3a6386(0x172))/0x8)+parseInt(_0x3a6386(0x151))/0x9*(-parseInt(_0x3a6386(0x141))/0xa)+-parseInt(_0x3a6386(0x17f))/0xb*(-parseInt(_0x3a6386(0x175))/0xc);if(_0x55cef8===_0x4a48fb)break;else _0x272f14['push'](_0x272f14['shift']());}catch(_0x28cc46){_0x272f14['push'](_0x272f14['shift']());}}}(_0x21f7,0x4cc01));import{Plugin as _0x2f7d03}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x52f68d}from'./modelelementtracker.js';function _0x734c(_0x5f502d,_0x356d9c){const _0x21f70e=_0x21f7();return _0x734c=function(_0x734c19,_0x5f165b){_0x734c19=_0x734c19-0x120;let _0x1590f2=_0x21f70e[_0x734c19];return _0x1590f2;},_0x734c(_0x5f502d,_0x356d9c);}function _0x21f7(){const _0x225ac3=['_handleFootnotesDefinitionsObjectSync','push','isOfficialPlugin','1213752XxUUvO','getFootnotesDefinitionsObjectElement','init','footnoteRef','footnoteCounter','reset','_sortFootnoteDefinitions','isPremiumPlugin','getChanges','min','setAttribute','67015IkvPVY','_footnoteDefsContainerTracker','change:data','paragraph','set','footnoteId','createElement','getRootNames','_handleFootnoteReferencesChanges','FootnotesTracker','_updateFootnoteRefCounter','4096024jLFqow','singleton','model','108252HQsjmh','after','setFootnoteFormatter','rootName','before','createRangeOn','pluginName','document','parent','compareWith','1507JMzuzI','footnotesDefinitions','length','indexOf','footnoteInlineContent','createPositionAt','get','_footnotes','_footnoteDefsTracker','footnotes.multiBlock','getFootnotes','footnoteDefinition','end','createPositionBefore','isEqual','_handleRemoveFootnoteReferenceById','getFootnotesFormatter','getChildren','7GybiUC','append','createRangeIn','find','enqueueChange','add','12AXzfiE','_footnoteRefsTracker','childCount','move','high','root','_updateFootnotesCounters','getAttribute','_handleMovedFootnoteReference','config','_handleFootnoteDefinitionsChanges','561835ONJnfU','_handleInsertedFootnoteReference','$graveyard','has','splice','48098cMgzEY','10ZbSTPT','_handleFootnotesDefinitionsObjectChanges','findIndex','_footnotesDefinitions','remove','low','unshift','_insertEmptyFootnotesDefinitionsContainer','editor','_ensureFootnotesDefinitionsContainerExists','registerPostFixer','reference','definition','getFootnote','_footnoteFormatter','insert','4402674ngtktx','264PBZruh','from','some','_ensureFootnotesReferencesHaveProperOrder','listenTo','map','differ'];_0x21f7=function(){return _0x225ac3;};return _0x21f7();}export class FootnotesTracker extends _0x2f7d03{[_0x469782(0x186)]=[];[_0x469782(0x144)]=null;[_0x469782(0x14f)]=null;[_0x469782(0x168)];[_0x469782(0x131)];[_0x469782(0x120)];static get[_0x469782(0x17b)](){const _0x10b57a=_0x469782;return _0x10b57a(0x170);}static get[_0x469782(0x15b)](){return!0x0;}static get[_0x469782(0x163)](){return!0x0;}constructor(_0x29a9ac){const _0x42291b=_0x469782;super(_0x29a9ac),this[_0x42291b(0x168)]=new _0x52f68d(this[_0x42291b(0x149)][_0x42291b(0x174)],{'elementName':_0x42291b(0x180),'getElementKey':()=>_0x42291b(0x173)}),this[_0x42291b(0x131)]=new _0x52f68d(this[_0x42291b(0x149)][_0x42291b(0x174)],{'elementName':_0x42291b(0x15f),'getElementKey':_0x32d840=>_0x32d840[_0x42291b(0x137)](_0x42291b(0x16c))}),this[_0x42291b(0x120)]=new _0x52f68d(this[_0x42291b(0x149)][_0x42291b(0x174)],{'elementName':_0x42291b(0x123),'getElementKey':_0x5b7b6c=>_0x5b7b6c[_0x42291b(0x137)](_0x42291b(0x16c))});}[_0x469782(0x15e)](){const _0x162e9e=_0x469782,{editor:_0x355245}=this,{model:_0x21e7c1,data:_0x1d1ad3}=_0x355245;_0x21e7c1[_0x162e9e(0x17c)][_0x162e9e(0x14b)](_0x2bef45=>{const _0x288f43=_0x162e9e,_0x347432=_0x21e7c1[_0x288f43(0x17c)][_0x288f43(0x158)][_0x288f43(0x164)]();let _0x1be9a1=!0x1;return this[_0x288f43(0x142)](_0x2bef45,_0x347432)&&(_0x1be9a1=!0x0),this[_0x288f43(0x13a)](_0x2bef45,_0x347432)&&(_0x1be9a1=!0x0),this[_0x288f43(0x16f)](_0x2bef45,_0x347432)&&(_0x1be9a1=!0x0),this[_0x288f43(0x155)](_0x2bef45)&&(_0x1be9a1=!0x0),this[_0x288f43(0x159)](_0x2bef45)&&(_0x1be9a1=!0x0),this[_0x288f43(0x162)](_0x2bef45)&&(_0x1be9a1=!0x0),_0x1be9a1;}),this[_0x162e9e(0x156)](_0x21e7c1[_0x162e9e(0x17c)],_0x162e9e(0x169),()=>{const _0x3e1193=_0x162e9e;_0x21e7c1[_0x3e1193(0x12e)]({'isUndoable':!0x1},_0x2aeba4=>{const _0x52b92f=_0x3e1193;this[_0x52b92f(0x14a)](_0x2aeba4);});},{'priority':_0x162e9e(0x146)}),this[_0x162e9e(0x156)](_0x1d1ad3,_0x162e9e(0x16b),()=>{const _0xf31a9=_0x162e9e;this[_0xf31a9(0x186)]=[],this[_0xf31a9(0x168)][_0xf31a9(0x161)](),this[_0xf31a9(0x131)][_0xf31a9(0x161)](),this[_0xf31a9(0x120)][_0xf31a9(0x161)]();},{'priority':_0x162e9e(0x134)});}[_0x469782(0x15d)](){const _0x19d6fa=_0x469782;return this[_0x19d6fa(0x144)];}[_0x469782(0x14e)](_0x5056da){const _0x37a0ee=_0x469782;return this[_0x37a0ee(0x186)][_0x37a0ee(0x12d)](_0x1c314c=>_0x1c314c['id']===_0x5056da)||null;}[_0x469782(0x122)](){const _0x2cc902=_0x469782;return Array[_0x2cc902(0x153)](this[_0x2cc902(0x186)]);}[_0x469782(0x128)](){const _0x5ed546=_0x469782;return this[_0x5ed546(0x14f)];}[_0x469782(0x177)](_0x3a29ef){const _0x14a605=_0x469782;this[_0x14a605(0x14f)]=_0x3a29ef;}[_0x469782(0x136)](_0x16a4ec,_0x19b7f9=0x0){const _0x4cc79d=_0x469782;let _0x5a0d33=!0x1;for(let _0x2cad79=_0x19b7f9;_0x2cad79<this[_0x4cc79d(0x186)][_0x4cc79d(0x181)];_0x2cad79++)this[_0x4cc79d(0x171)](_0x16a4ec,_0x2cad79)&&(_0x5a0d33=!0x0);return _0x5a0d33;}[_0x469782(0x148)](_0x9b71d4,_0x2746bc){const _0x1a37c6=_0x469782,_0x58643d=_0x9b71d4[_0x1a37c6(0x16d)](_0x1a37c6(0x180),{});return _0x9b71d4[_0x1a37c6(0x12b)](_0x58643d,_0x2746bc),this[_0x1a37c6(0x144)]=_0x58643d,_0x58643d;}[_0x469782(0x14a)](_0x30bd2b){const _0x475620=_0x469782;if(!this[_0x475620(0x186)][_0x475620(0x181)]||this[_0x475620(0x144)])return;const _0xef061=this[_0x475620(0x186)][0x0][_0x475620(0x14c)][_0x475620(0x135)],_0x132248=this[_0x475620(0x148)](_0x30bd2b,_0xef061);for(const _0x2fae88 of this[_0x475620(0x186)])_0x2fae88[_0x475620(0x14d)][_0x475620(0x17d)]||_0x30bd2b[_0x475620(0x150)](_0x2fae88[_0x475620(0x14d)],_0x132248,_0x475620(0x124));this[_0x475620(0x136)](_0x30bd2b);}[_0x469782(0x142)](_0x7f309,_0x1a5daa){const _0x4a17c0=_0x469782;let _0x51a4ee=!0x1;const {inserted:_0x1eadf4,removed:_0x450074,moved:_0x60e63d}=this[_0x4a17c0(0x168)][_0x4a17c0(0x164)](_0x1a5daa);if(_0x60e63d[_0x4a17c0(0x181)]&&(this[_0x4a17c0(0x144)]=_0x60e63d[0x0]),_0x1eadf4[_0x4a17c0(0x181)]){if(_0x1eadf4[_0x4a17c0(0x181)]>0x1||this[_0x4a17c0(0x144)]&&_0x1eadf4[_0x4a17c0(0x154)](_0x334a68=>_0x334a68!==this[_0x4a17c0(0x144)])){const _0x405780=_0x7f309[_0x4a17c0(0x16d)](_0x4a17c0(0x180),{}),_0x57e8a8=[];this[_0x4a17c0(0x144)]&&_0x57e8a8[_0x4a17c0(0x15a)](this[_0x4a17c0(0x144)]),_0x57e8a8[_0x4a17c0(0x15a)](..._0x1eadf4),_0x7f309[_0x4a17c0(0x150)](_0x405780,_0x57e8a8[0x0],_0x4a17c0(0x179));for(const _0x32da82 of _0x57e8a8)_0x7f309[_0x4a17c0(0x133)](_0x7f309[_0x4a17c0(0x12c)](_0x32da82),_0x7f309[_0x4a17c0(0x184)](_0x405780,_0x4a17c0(0x124))),_0x7f309[_0x4a17c0(0x145)](_0x32da82);this[_0x4a17c0(0x144)]=_0x405780,this[_0x4a17c0(0x136)](_0x7f309),_0x51a4ee=!0x0;}else this[_0x4a17c0(0x144)]=_0x1eadf4[0x0];}if(_0x450074[_0x4a17c0(0x181)]&&_0x4a17c0(0x13d)===this[_0x4a17c0(0x144)]?.[_0x4a17c0(0x135)][_0x4a17c0(0x178)]){for(const _0x25a97e of this[_0x4a17c0(0x186)])_0x7f309[_0x4a17c0(0x145)](_0x25a97e[_0x4a17c0(0x14c)]),_0x51a4ee=!0x0;this[_0x4a17c0(0x186)]=[],this[_0x4a17c0(0x144)]=null;}return _0x51a4ee;}[_0x469782(0x13a)](_0x2cbf13,_0xc6f539){const _0x40dc82=_0x469782;let _0x30635d=!0x1;const _0x239b33=this[_0x40dc82(0x149)][_0x40dc82(0x139)][_0x40dc82(0x185)](_0x40dc82(0x121)),{inserted:_0x2b2b4b,moved:_0x3d19eb}=this[_0x40dc82(0x120)][_0x40dc82(0x164)](_0xc6f539);for(const _0x51e679 of[..._0x3d19eb,..._0x2b2b4b]){const _0x9a2d5b=_0x51e679[_0x40dc82(0x137)](_0x40dc82(0x16c)),_0x3a7236=this[_0x40dc82(0x14e)](_0x9a2d5b);_0x3a7236&&(_0x3a7236[_0x40dc82(0x14d)]=_0x51e679),_(_0x2cbf13,_0x239b33,_0x51e679)&&(_0x30635d=!0x0);}return _0x30635d;}[_0x469782(0x16f)](_0x49cc88,_0x8402e0){const _0x33a4cb=_0x469782;let _0x1b80b3=!0x1;const {removed:_0x54cad9,inserted:_0x4d273d,moved:_0x45fa18}=this[_0x33a4cb(0x131)][_0x33a4cb(0x164)](_0x8402e0);for(const _0x22f5a3 of _0x54cad9)this[_0x33a4cb(0x127)](_0x49cc88,_0x22f5a3)&&(_0x1b80b3=!0x0);for(const _0x74c2e4 of _0x4d273d)this[_0x33a4cb(0x13c)](_0x49cc88,_0x74c2e4)&&(_0x1b80b3=!0x0);for(const _0x46dc07 of _0x45fa18)this[_0x33a4cb(0x138)](_0x49cc88,_0x46dc07)&&(_0x1b80b3=!0x0);return _0x1b80b3;}[_0x469782(0x159)](_0x48f14c){const _0x1fe6de=_0x469782;if(!this[_0x1fe6de(0x144)])return!0x1;let _0x2db2a3=!0x1;if(this[_0x1fe6de(0x144)][_0x1fe6de(0x132)]!==this[_0x1fe6de(0x186)][_0x1fe6de(0x181)]){const _0x1083c3=[];for(const _0x23fafd of this[_0x1fe6de(0x144)][_0x1fe6de(0x129)]()){const _0x4b6875=_0x23fafd[_0x1fe6de(0x137)](_0x1fe6de(0x16c));this[_0x1fe6de(0x14e)](_0x4b6875)||(_0x1083c3[_0x1fe6de(0x147)](_0x23fafd),_0x2db2a3=!0x0);}for(const _0x3bd4f2 of _0x1083c3)_0x48f14c[_0x1fe6de(0x145)](_0x3bd4f2);}const _0x475629=new Set(),_0x5455c3=[];for(const _0x43def5 of this[_0x1fe6de(0x144)][_0x1fe6de(0x129)]()){const _0x435401=_0x43def5[_0x1fe6de(0x137)](_0x1fe6de(0x16c));_0x475629[_0x1fe6de(0x13e)](_0x435401)?(_0x5455c3[_0x1fe6de(0x147)](_0x43def5),_0x2db2a3=!0x0):_0x475629[_0x1fe6de(0x12f)](_0x435401);}for(const _0x20645d of _0x5455c3)_0x48f14c[_0x1fe6de(0x145)](_0x20645d);return this[_0x1fe6de(0x144)][_0x1fe6de(0x132)]||(_0x48f14c[_0x1fe6de(0x145)](this[_0x1fe6de(0x144)]),this[_0x1fe6de(0x144)]=null,_0x2db2a3=!0x0),_0x2db2a3;}[_0x469782(0x13c)](_0x3eb7db,_0x24e1a0){const _0x2c9357=_0x469782;if(this[_0x2c9357(0x186)][_0x2c9357(0x12d)](_0x5d6b92=>_0x5d6b92[_0x2c9357(0x14c)]===_0x24e1a0))return!0x1;let _0x59818a=!0x1;const _0xd882c6=_0x24e1a0[_0x2c9357(0x137)](_0x2c9357(0x16c)),_0x139682=this[_0x2c9357(0x186)][_0x2c9357(0x143)](_0x4c8f53=>_0x4c8f53['id']===_0xd882c6);-0x1!==_0x139682&&(_0x3eb7db[_0x2c9357(0x145)](this[_0x2c9357(0x186)][_0x139682][_0x2c9357(0x14c)]),this[_0x2c9357(0x186)][_0x2c9357(0x13f)](_0x139682,0x1),_0x59818a=!0x0);let _0x2c5bb8=this[_0x2c9357(0x144)]?function(_0x45cc86,_0x5528e8){const _0x4aeb2e=_0x2c9357;for(const _0x260727 of _0x45cc86[_0x4aeb2e(0x129)]())if(_0x260727[_0x4aeb2e(0x137)](_0x4aeb2e(0x16c))===_0x5528e8)return _0x260727;return null;}(this[_0x2c9357(0x144)],_0xd882c6):null;_0x2c5bb8||(_0x2c5bb8=_0x3eb7db[_0x2c9357(0x16d)](_0x2c9357(0x123),{'footnoteId':_0xd882c6}),this[_0x2c9357(0x144)]&&(_0x3eb7db[_0x2c9357(0x150)](_0x2c5bb8,this[_0x2c9357(0x144)],_0x2c9357(0x124)),_0x59818a=!0x0));const _0x31d2c9={'id':_0xd882c6,'reference':_0x24e1a0,'definition':_0x2c5bb8},_0x35cf2c=I(this[_0x2c9357(0x149)][_0x2c9357(0x174)],this[_0x2c9357(0x186)],_0x24e1a0);this[_0x2c9357(0x186)][_0x2c9357(0x13f)](_0x35cf2c,0x0,_0x31d2c9);let _0x48d949=_0x35cf2c;return-0x1!==_0x139682&&(_0x48d949=Math[_0x2c9357(0x165)](_0x35cf2c,_0x139682)),this[_0x2c9357(0x136)](_0x3eb7db,_0x48d949)&&(_0x59818a=!0x0),_0x59818a;}[_0x469782(0x127)](_0x1af87b,_0x19b8ce){const _0x339fb9=_0x469782,_0x5b9d28=this[_0x339fb9(0x186)][_0x339fb9(0x143)](_0x25c679=>_0x25c679['id']===_0x19b8ce);if(-0x1===_0x5b9d28)return!0x1;let _0xdffe4=!0x1;const _0x44945b=this[_0x339fb9(0x186)][_0x5b9d28];return _0x339fb9(0x13d)!==_0x44945b[_0x339fb9(0x14d)][_0x339fb9(0x135)][_0x339fb9(0x178)]&&(_0x1af87b[_0x339fb9(0x145)](_0x44945b[_0x339fb9(0x14d)]),_0xdffe4=!0x0),this[_0x339fb9(0x186)][_0x339fb9(0x13f)](_0x5b9d28,0x1),this[_0x339fb9(0x136)](_0x1af87b,_0x5b9d28)&&(_0xdffe4=!0x0),_0xdffe4;}[_0x469782(0x138)](_0x4e2594,_0x48e537){const _0x1b817=_0x469782,_0x364d4c=_0x48e537[_0x1b817(0x137)](_0x1b817(0x16c)),_0x55653f=this[_0x1b817(0x186)][_0x1b817(0x143)](_0x425991=>_0x425991['id']===_0x364d4c),_0xb672ff=this[_0x1b817(0x186)][_0x55653f];let _0x391281=!0x1;_0xb672ff[_0x1b817(0x14c)]=_0x48e537,this[_0x1b817(0x186)][_0x1b817(0x13f)](_0x55653f,0x1);const _0x5d2ec7=I(this[_0x1b817(0x149)][_0x1b817(0x174)],this[_0x1b817(0x186)],_0x48e537);return this[_0x1b817(0x186)][_0x1b817(0x13f)](_0x5d2ec7,0x0,_0xb672ff),this[_0x1b817(0x136)](_0x4e2594,Math[_0x1b817(0x165)](_0x55653f,_0x5d2ec7))&&(_0x391281=!0x0),_0x391281;}[_0x469782(0x171)](_0x3936b6,_0x23bbe6){const _0x3bce08=_0x469782;if(!this[_0x3bce08(0x144)])return!0x1;const _0x534557=this[_0x3bce08(0x186)][_0x23bbe6];let _0x2ed582;return _0x2ed582=this[_0x3bce08(0x14f)]?this[_0x3bce08(0x14f)]({'footnote':_0x534557,'container':this[_0x3bce08(0x144)],'digits':String(this[_0x3bce08(0x186)][_0x3bce08(0x181)])[_0x3bce08(0x181)],'value':_0x23bbe6+0x1}):String(_0x23bbe6+0x1),_0x534557[_0x3bce08(0x14c)][_0x3bce08(0x137)](_0x3bce08(0x160))!=_0x2ed582&&(_0x3936b6[_0x3bce08(0x166)](_0x3bce08(0x160),_0x2ed582,_0x534557[_0x3bce08(0x14c)]),!0x0);}[_0x469782(0x162)](_0x3d0351){const _0x41ea0d=_0x469782;if(!this[_0x41ea0d(0x144)]||this[_0x41ea0d(0x186)][_0x41ea0d(0x181)]<0x2)return!0x1;if(function(_0x5a84b5,_0x3b6e97){const _0x2d9f14=_0x41ea0d;if(_0x5a84b5[_0x2d9f14(0x181)]!==_0x3b6e97[_0x2d9f14(0x181)])return!0x1;for(let _0x2f523b=0x0;_0x2f523b<_0x5a84b5[_0x2d9f14(0x181)];_0x2f523b++)if(_0x5a84b5[_0x2f523b]!==_0x3b6e97[_0x2f523b])return!0x1;return!0x0;}(this[_0x41ea0d(0x186)][_0x41ea0d(0x157)](_0x131635=>_0x131635['id']),Array[_0x41ea0d(0x153)](this[_0x41ea0d(0x144)][_0x41ea0d(0x129)]())[_0x41ea0d(0x157)](_0x47af3e=>_0x47af3e[_0x41ea0d(0x137)](_0x41ea0d(0x16c)))))return!0x1;let _0x421280=!0x1;for(let _0x1f196a=0x0;_0x1f196a<this[_0x41ea0d(0x186)][_0x41ea0d(0x181)];_0x1f196a++){const _0x5ace8c=this[_0x41ea0d(0x186)][_0x1f196a],_0x590feb=_0x3d0351[_0x41ea0d(0x125)](_0x5ace8c[_0x41ea0d(0x14d)]),_0x754f01=_0x3d0351[_0x41ea0d(0x184)](this[_0x41ea0d(0x144)],_0x1f196a);_0x590feb[_0x41ea0d(0x126)](_0x754f01)||(_0x3d0351[_0x41ea0d(0x133)](_0x3d0351[_0x41ea0d(0x17a)](_0x5ace8c[_0x41ea0d(0x14d)]),_0x754f01),_0x421280=!0x0);}return _0x421280;}[_0x469782(0x155)](_0x5b6951){const _0x4a0689=_0x469782;if(!this[_0x4a0689(0x186)][_0x4a0689(0x181)])return!0x1;const {model:_0x4d25d7}=this[_0x4a0689(0x149)];let _0x45cfd1=!0x1;for(let _0x3f20f5=0x0;_0x3f20f5<this[_0x4a0689(0x186)][_0x4a0689(0x181)]-0x1;_0x3f20f5++){const _0x333ae8=this[_0x4a0689(0x186)][_0x3f20f5],_0x4e787f=this[_0x4a0689(0x186)][_0x3f20f5+0x1],_0x49e551=_0x4d25d7[_0x4a0689(0x125)](_0x333ae8[_0x4a0689(0x14c)]),_0x220cde=_0x4d25d7[_0x4a0689(0x125)](_0x4e787f[_0x4a0689(0x14c)]);_0x4a0689(0x176)===_0x49e551[_0x4a0689(0x17e)](_0x220cde)&&(this[_0x4a0689(0x138)](_0x5b6951,_0x333ae8[_0x4a0689(0x14c)]),_0x3f20f5=-0x1,_0x45cfd1=!0x0);}return _0x45cfd1;}}function _(_0x1bb997,_0xeefdb9,_0x22fdbc){const _0x49d7fe=_0x469782;if(_0x22fdbc[_0x49d7fe(0x132)])return!0x1;const _0x120aed=_0xeefdb9?_0x49d7fe(0x16a):_0x49d7fe(0x183);return _0x1bb997[_0x49d7fe(0x150)](_0x1bb997[_0x49d7fe(0x16d)](_0x120aed),_0x22fdbc),!0x0;}function I(_0x65c4d5,_0x1d70a1,_0x4fb5fc){const _0x4a20b2=_0x469782;if(0x0===_0x1d70a1[_0x4a20b2(0x181)])return 0x0;const _0x2627dd=_0x65c4d5[_0x4a20b2(0x125)](_0x4fb5fc);for(let _0x5d6e3d=0x0;_0x5d6e3d<_0x1d70a1[_0x4a20b2(0x181)];_0x5d6e3d++){const _0x42ca88=_0x1d70a1[_0x5d6e3d],_0x4a2025=_0x65c4d5[_0x4a20b2(0x125)](_0x42ca88[_0x4a20b2(0x14c)]);if(_0x4a20b2(0x179)===_0x2627dd[_0x4a20b2(0x17e)](_0x4a2025))return _0x5d6e3d;}const _0x53a3ac=_0x4fb5fc[_0x4a20b2(0x135)];let _0x12d293=-0x1;for(let _0xc295f7=_0x1d70a1[_0x4a20b2(0x181)]-0x1;_0xc295f7>=0x0;_0xc295f7--)if(_0x1d70a1[_0xc295f7][_0x4a20b2(0x14c)][_0x4a20b2(0x135)]===_0x53a3ac){_0x12d293=_0xc295f7;break;}if(-0x1!==_0x12d293)return _0x12d293+0x1;const _0x1c5d70=_0x65c4d5[_0x4a20b2(0x17c)][_0x4a20b2(0x16e)](),_0x268108=_0x1c5d70[_0x4a20b2(0x182)](_0x53a3ac[_0x4a20b2(0x178)]),_0x522ab8=_0x1c5d70[_0x268108+0x1];if(_0x522ab8){for(let _0x326ec6=0x0;_0x326ec6<_0x1d70a1[_0x4a20b2(0x181)];_0x326ec6++)if(_0x1d70a1[_0x326ec6][_0x4a20b2(0x14c)][_0x4a20b2(0x135)][_0x4a20b2(0x178)]===_0x522ab8)return _0x326ec6;}return _0x1d70a1[_0x4a20b2(0x181)];}
|
|
23
|
+
const _0x1877c4=_0x4d76;(function(_0x4ad034,_0xe9989d){const _0x49494a=_0x4d76,_0x22ae40=_0x4ad034();while(!![]){try{const _0x4dc5cc=parseInt(_0x49494a(0x14e))/0x1+-parseInt(_0x49494a(0x188))/0x2+-parseInt(_0x49494a(0x16b))/0x3*(parseInt(_0x49494a(0x144))/0x4)+parseInt(_0x49494a(0x173))/0x5*(parseInt(_0x49494a(0x161))/0x6)+parseInt(_0x49494a(0x12f))/0x7+parseInt(_0x49494a(0x14d))/0x8+parseInt(_0x49494a(0x16c))/0x9*(parseInt(_0x49494a(0x183))/0xa);if(_0x4dc5cc===_0xe9989d)break;else _0x22ae40['push'](_0x22ae40['shift']());}catch(_0x449250){_0x22ae40['push'](_0x22ae40['shift']());}}}(_0x1d73,0x22dcd));import{Plugin as _0x1ba336}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x37c792}from'./modelelementtracker.js';function _0x1d73(){const _0x4f9a9b=['createRangeIn','reference','_footnotes','668390aOxUKn','footnotesDefinitions','enqueueChange','_handleFootnoteReferencesChanges','reset','388530WqsqmB','_handleFootnotesDefinitionsObjectChanges','before','getFootnotesFormatter','some','footnoteInlineContent','add','document','splice','getAttribute','indexOf','from','1501339XihKZn','compareWith','_handleMovedFootnoteReference','push','parent','getFootnote','definition','isOfficialPlugin','config','_ensureFootnotesReferencesHaveProperOrder','init','root','unshift','$graveyard','_updateFootnoteRefCounter','_handleFootnotesDefinitionsObjectSync','_handleInsertedFootnoteReference','_footnoteFormatter','low','registerPostFixer','find','502080AxDlLV','isEqual','model','listenTo','setFootnoteFormatter','min','_handleRemoveFootnoteReferenceById','change:data','editor','171976XgIWET','234262DdAhyd','set','getFootnotes','getChanges','createPositionAt','end','_footnotesDefinitions','paragraph','_footnoteDefsTracker','_updateFootnotesCounters','_ensureFootnotesDefinitionsContainerExists','footnoteRef','findIndex','after','footnotes.multiBlock','_footnoteDefsContainerTracker','singleton','getRootNames','_sortFootnoteDefinitions','6RheuBj','footnoteDefinition','footnoteCounter','rootName','FootnotesTracker','childCount','_footnoteRefsTracker','pluginName','footnoteId','insert','6GryiZS','9dcYvZd','length','move','differ','createElement','setAttribute','createPositionBefore','255135bnFYEL','isPremiumPlugin','_insertEmptyFootnotesDefinitionsContainer','append','high','remove','has','map','getFootnotesDefinitionsObjectElement','getChildren','createRangeOn','get','_handleFootnoteDefinitionsChanges'];_0x1d73=function(){return _0x4f9a9b;};return _0x1d73();}export class FootnotesTracker extends _0x1ba336{[_0x1877c4(0x182)]=[];[_0x1877c4(0x154)]=null;[_0x1877c4(0x140)]=null;[_0x1877c4(0x15d)];[_0x1877c4(0x167)];[_0x1877c4(0x156)];static get[_0x1877c4(0x168)](){const _0x506c56=_0x1877c4;return _0x506c56(0x165);}static get[_0x1877c4(0x136)](){return!0x0;}static get[_0x1877c4(0x174)](){return!0x0;}constructor(_0x30ae9a){const _0x43ede6=_0x1877c4;super(_0x30ae9a),this[_0x43ede6(0x15d)]=new _0x37c792(this[_0x43ede6(0x14c)][_0x43ede6(0x146)],{'elementName':_0x43ede6(0x184),'getElementKey':()=>_0x43ede6(0x15e)}),this[_0x43ede6(0x167)]=new _0x37c792(this[_0x43ede6(0x14c)][_0x43ede6(0x146)],{'elementName':_0x43ede6(0x159),'getElementKey':_0x5797bd=>_0x5797bd[_0x43ede6(0x191)](_0x43ede6(0x169))}),this[_0x43ede6(0x156)]=new _0x37c792(this[_0x43ede6(0x14c)][_0x43ede6(0x146)],{'elementName':_0x43ede6(0x162),'getElementKey':_0x494b3d=>_0x494b3d[_0x43ede6(0x191)](_0x43ede6(0x169))});}[_0x1877c4(0x139)](){const _0xa4ff05=_0x1877c4,{editor:_0x59b522}=this,{model:_0x3005e1,data:_0x3c24d2}=_0x59b522;_0x3005e1[_0xa4ff05(0x18f)][_0xa4ff05(0x142)](_0x21c4e4=>{const _0x12b9ff=_0xa4ff05,_0x3f70ae=_0x3005e1[_0x12b9ff(0x18f)][_0x12b9ff(0x16f)][_0x12b9ff(0x151)]();let _0x62eb57=!0x1;return this[_0x12b9ff(0x189)](_0x21c4e4,_0x3f70ae)&&(_0x62eb57=!0x0),this[_0x12b9ff(0x17f)](_0x21c4e4,_0x3f70ae)&&(_0x62eb57=!0x0),this[_0x12b9ff(0x186)](_0x21c4e4,_0x3f70ae)&&(_0x62eb57=!0x0),this[_0x12b9ff(0x138)](_0x21c4e4)&&(_0x62eb57=!0x0),this[_0x12b9ff(0x13e)](_0x21c4e4)&&(_0x62eb57=!0x0),this[_0x12b9ff(0x160)](_0x21c4e4)&&(_0x62eb57=!0x0),_0x62eb57;}),this[_0xa4ff05(0x147)](_0x3005e1[_0xa4ff05(0x18f)],_0xa4ff05(0x14b),()=>{const _0x53872c=_0xa4ff05;_0x3005e1[_0x53872c(0x185)]({'isUndoable':!0x1},_0x2d4b82=>{const _0x3259ba=_0x53872c;this[_0x3259ba(0x158)](_0x2d4b82);});},{'priority':_0xa4ff05(0x141)}),this[_0xa4ff05(0x147)](_0x3c24d2,_0xa4ff05(0x14f),()=>{const _0x54bf54=_0xa4ff05;this[_0x54bf54(0x182)]=[],this[_0x54bf54(0x15d)][_0x54bf54(0x187)](),this[_0x54bf54(0x167)][_0x54bf54(0x187)](),this[_0x54bf54(0x156)][_0x54bf54(0x187)]();},{'priority':_0xa4ff05(0x177)});}[_0x1877c4(0x17b)](){const _0x47f633=_0x1877c4;return this[_0x47f633(0x154)];}[_0x1877c4(0x134)](_0x36eb98){const _0x25e6d5=_0x1877c4;return this[_0x25e6d5(0x182)][_0x25e6d5(0x143)](_0x14523c=>_0x14523c['id']===_0x36eb98)||null;}[_0x1877c4(0x150)](){const _0x444110=_0x1877c4;return Array[_0x444110(0x193)](this[_0x444110(0x182)]);}[_0x1877c4(0x18b)](){const _0x5ecb74=_0x1877c4;return this[_0x5ecb74(0x140)];}[_0x1877c4(0x148)](_0x426060){const _0x3454de=_0x1877c4;this[_0x3454de(0x140)]=_0x426060;}[_0x1877c4(0x157)](_0x219e7c,_0x1acdbc=0x0){const _0xec1a55=_0x1877c4;let _0x4dba0c=!0x1;for(let _0x481d91=_0x1acdbc;_0x481d91<this[_0xec1a55(0x182)][_0xec1a55(0x16d)];_0x481d91++)this[_0xec1a55(0x13d)](_0x219e7c,_0x481d91)&&(_0x4dba0c=!0x0);return _0x4dba0c;}[_0x1877c4(0x175)](_0x4cac85,_0x296b4e){const _0x201c3b=_0x1877c4,_0x2ddbb2=_0x4cac85[_0x201c3b(0x170)](_0x201c3b(0x184),{});return _0x4cac85[_0x201c3b(0x176)](_0x2ddbb2,_0x296b4e),this[_0x201c3b(0x154)]=_0x2ddbb2,_0x2ddbb2;}[_0x1877c4(0x158)](_0x3e6d4e){const _0x14ddc5=_0x1877c4;if(!this[_0x14ddc5(0x182)][_0x14ddc5(0x16d)]||this[_0x14ddc5(0x154)])return;const _0xc797b5=this[_0x14ddc5(0x182)][0x0][_0x14ddc5(0x181)][_0x14ddc5(0x13a)],_0x5c2f34=this[_0x14ddc5(0x175)](_0x3e6d4e,_0xc797b5);for(const _0x1d3576 of this[_0x14ddc5(0x182)])_0x1d3576[_0x14ddc5(0x135)][_0x14ddc5(0x133)]||_0x3e6d4e[_0x14ddc5(0x16a)](_0x1d3576[_0x14ddc5(0x135)],_0x5c2f34,_0x14ddc5(0x153));this[_0x14ddc5(0x157)](_0x3e6d4e);}[_0x1877c4(0x189)](_0x5d0f9c,_0x3aec56){const _0x49758d=_0x1877c4;let _0xe2400d=!0x1;const {inserted:_0x5ea77e,removed:_0x130519,moved:_0x5a4253}=this[_0x49758d(0x15d)][_0x49758d(0x151)](_0x3aec56);if(_0x5a4253[_0x49758d(0x16d)]&&(this[_0x49758d(0x154)]=_0x5a4253[0x0]),_0x5ea77e[_0x49758d(0x16d)]){if(_0x5ea77e[_0x49758d(0x16d)]>0x1||this[_0x49758d(0x154)]&&_0x5ea77e[_0x49758d(0x18c)](_0x45687b=>_0x45687b!==this[_0x49758d(0x154)])){const _0x2cc828=_0x5d0f9c[_0x49758d(0x170)](_0x49758d(0x184),{}),_0x398648=[];this[_0x49758d(0x154)]&&_0x398648[_0x49758d(0x132)](this[_0x49758d(0x154)]),_0x398648[_0x49758d(0x132)](..._0x5ea77e),_0x5d0f9c[_0x49758d(0x16a)](_0x2cc828,_0x398648[0x0],_0x49758d(0x18a));for(const _0xc7c014 of _0x398648)_0x5d0f9c[_0x49758d(0x16e)](_0x5d0f9c[_0x49758d(0x180)](_0xc7c014),_0x5d0f9c[_0x49758d(0x152)](_0x2cc828,_0x49758d(0x153))),_0x5d0f9c[_0x49758d(0x178)](_0xc7c014);this[_0x49758d(0x154)]=_0x2cc828,this[_0x49758d(0x157)](_0x5d0f9c),_0xe2400d=!0x0;}else this[_0x49758d(0x154)]=_0x5ea77e[0x0];}if(_0x130519[_0x49758d(0x16d)]&&_0x49758d(0x13c)===this[_0x49758d(0x154)]?.[_0x49758d(0x13a)][_0x49758d(0x164)]){for(const _0xd4e287 of this[_0x49758d(0x182)])_0x5d0f9c[_0x49758d(0x178)](_0xd4e287[_0x49758d(0x181)]),_0xe2400d=!0x0;this[_0x49758d(0x182)]=[],this[_0x49758d(0x154)]=null;}return _0xe2400d;}[_0x1877c4(0x17f)](_0x35c1b6,_0x20b44f){const _0x2b4c6c=_0x1877c4;let _0x4aa8f6=!0x1;const _0x1c6fcd=this[_0x2b4c6c(0x14c)][_0x2b4c6c(0x137)][_0x2b4c6c(0x17e)](_0x2b4c6c(0x15c)),{inserted:_0x4b234d,moved:_0xaea94d}=this[_0x2b4c6c(0x156)][_0x2b4c6c(0x151)](_0x20b44f);for(const _0x99333e of[..._0xaea94d,..._0x4b234d]){const _0x15da8f=_0x99333e[_0x2b4c6c(0x191)](_0x2b4c6c(0x169)),_0x45b59b=this[_0x2b4c6c(0x134)](_0x15da8f);_0x45b59b&&(_0x45b59b[_0x2b4c6c(0x135)]=_0x99333e),_(_0x35c1b6,_0x1c6fcd,_0x99333e)&&(_0x4aa8f6=!0x0);}return _0x4aa8f6;}[_0x1877c4(0x186)](_0xae393c,_0x42525e){const _0x552cd1=_0x1877c4;let _0x66860d=!0x1;const {removed:_0x51f26f,inserted:_0x3d8455,moved:_0x46ed45}=this[_0x552cd1(0x167)][_0x552cd1(0x151)](_0x42525e);for(const _0x56a7c3 of _0x51f26f)this[_0x552cd1(0x14a)](_0xae393c,_0x56a7c3)&&(_0x66860d=!0x0);for(const _0x414936 of _0x3d8455)this[_0x552cd1(0x13f)](_0xae393c,_0x414936)&&(_0x66860d=!0x0);for(const _0x2f576e of _0x46ed45)this[_0x552cd1(0x131)](_0xae393c,_0x2f576e)&&(_0x66860d=!0x0);return _0x66860d;}[_0x1877c4(0x13e)](_0x574eef){const _0x25a863=_0x1877c4;if(!this[_0x25a863(0x154)])return!0x1;let _0x1928f4=!0x1;if(this[_0x25a863(0x154)][_0x25a863(0x166)]!==this[_0x25a863(0x182)][_0x25a863(0x16d)]){const _0x2a503f=[];for(const _0x243b53 of this[_0x25a863(0x154)][_0x25a863(0x17c)]()){const _0x11b663=_0x243b53[_0x25a863(0x191)](_0x25a863(0x169));this[_0x25a863(0x134)](_0x11b663)||(_0x2a503f[_0x25a863(0x13b)](_0x243b53),_0x1928f4=!0x0);}for(const _0x5d4d3f of _0x2a503f)_0x574eef[_0x25a863(0x178)](_0x5d4d3f);}const _0x4cb48c=new Set(),_0x16c037=[];for(const _0x2965da of this[_0x25a863(0x154)][_0x25a863(0x17c)]()){const _0x1cfc98=_0x2965da[_0x25a863(0x191)](_0x25a863(0x169));_0x4cb48c[_0x25a863(0x179)](_0x1cfc98)?(_0x16c037[_0x25a863(0x13b)](_0x2965da),_0x1928f4=!0x0):_0x4cb48c[_0x25a863(0x18e)](_0x1cfc98);}for(const _0x3d24bc of _0x16c037)_0x574eef[_0x25a863(0x178)](_0x3d24bc);return this[_0x25a863(0x154)][_0x25a863(0x166)]||(_0x574eef[_0x25a863(0x178)](this[_0x25a863(0x154)]),this[_0x25a863(0x154)]=null,_0x1928f4=!0x0),_0x1928f4;}[_0x1877c4(0x13f)](_0x328739,_0x159968){const _0x384a7f=_0x1877c4;if(this[_0x384a7f(0x182)][_0x384a7f(0x143)](_0x508880=>_0x508880[_0x384a7f(0x181)]===_0x159968))return!0x1;let _0x4e1519=!0x1;const _0x3a4cac=_0x159968[_0x384a7f(0x191)](_0x384a7f(0x169)),_0x5aa2ba=this[_0x384a7f(0x182)][_0x384a7f(0x15a)](_0x2750c7=>_0x2750c7['id']===_0x3a4cac);-0x1!==_0x5aa2ba&&(_0x328739[_0x384a7f(0x178)](this[_0x384a7f(0x182)][_0x5aa2ba][_0x384a7f(0x181)]),this[_0x384a7f(0x182)][_0x384a7f(0x190)](_0x5aa2ba,0x1),_0x4e1519=!0x0);let _0x184480=this[_0x384a7f(0x154)]?function(_0x4b0caf,_0x20b90e){const _0xffd823=_0x384a7f;for(const _0x2be3ba of _0x4b0caf[_0xffd823(0x17c)]())if(_0x2be3ba[_0xffd823(0x191)](_0xffd823(0x169))===_0x20b90e)return _0x2be3ba;return null;}(this[_0x384a7f(0x154)],_0x3a4cac):null;_0x184480||(_0x184480=_0x328739[_0x384a7f(0x170)](_0x384a7f(0x162),{'footnoteId':_0x3a4cac}),this[_0x384a7f(0x154)]&&(_0x328739[_0x384a7f(0x16a)](_0x184480,this[_0x384a7f(0x154)],_0x384a7f(0x153)),_0x4e1519=!0x0));const _0x4d8670={'id':_0x3a4cac,'reference':_0x159968,'definition':_0x184480},_0x6fb225=I(this[_0x384a7f(0x14c)][_0x384a7f(0x146)],this[_0x384a7f(0x182)],_0x159968);this[_0x384a7f(0x182)][_0x384a7f(0x190)](_0x6fb225,0x0,_0x4d8670);let _0x1a28cc=_0x6fb225;return-0x1!==_0x5aa2ba&&(_0x1a28cc=Math[_0x384a7f(0x149)](_0x6fb225,_0x5aa2ba)),this[_0x384a7f(0x157)](_0x328739,_0x1a28cc)&&(_0x4e1519=!0x0),_0x4e1519;}[_0x1877c4(0x14a)](_0x111177,_0x42eb23){const _0x54eb8d=_0x1877c4,_0x4d4a1e=this[_0x54eb8d(0x182)][_0x54eb8d(0x15a)](_0x435c9a=>_0x435c9a['id']===_0x42eb23);if(-0x1===_0x4d4a1e)return!0x1;let _0x4315c1=!0x1;const _0x4cf745=this[_0x54eb8d(0x182)][_0x4d4a1e];return _0x54eb8d(0x13c)!==_0x4cf745[_0x54eb8d(0x135)][_0x54eb8d(0x13a)][_0x54eb8d(0x164)]&&(_0x111177[_0x54eb8d(0x178)](_0x4cf745[_0x54eb8d(0x135)]),_0x4315c1=!0x0),this[_0x54eb8d(0x182)][_0x54eb8d(0x190)](_0x4d4a1e,0x1),this[_0x54eb8d(0x157)](_0x111177,_0x4d4a1e)&&(_0x4315c1=!0x0),_0x4315c1;}[_0x1877c4(0x131)](_0x5d9367,_0x3e4edd){const _0x4372ac=_0x1877c4,_0x3922a2=_0x3e4edd[_0x4372ac(0x191)](_0x4372ac(0x169)),_0x2d3775=this[_0x4372ac(0x182)][_0x4372ac(0x15a)](_0x4f79f9=>_0x4f79f9['id']===_0x3922a2),_0x16138f=this[_0x4372ac(0x182)][_0x2d3775];let _0x57bf5e=!0x1;_0x16138f[_0x4372ac(0x181)]=_0x3e4edd,this[_0x4372ac(0x182)][_0x4372ac(0x190)](_0x2d3775,0x1);const _0xb97018=I(this[_0x4372ac(0x14c)][_0x4372ac(0x146)],this[_0x4372ac(0x182)],_0x3e4edd);return this[_0x4372ac(0x182)][_0x4372ac(0x190)](_0xb97018,0x0,_0x16138f),this[_0x4372ac(0x157)](_0x5d9367,Math[_0x4372ac(0x149)](_0x2d3775,_0xb97018))&&(_0x57bf5e=!0x0),_0x57bf5e;}[_0x1877c4(0x13d)](_0x255a11,_0x2dc149){const _0x605d0=_0x1877c4;if(!this[_0x605d0(0x154)])return!0x1;const _0x40c1a4=this[_0x605d0(0x182)][_0x2dc149];let _0x25efa1;return _0x25efa1=this[_0x605d0(0x140)]?this[_0x605d0(0x140)]({'footnote':_0x40c1a4,'container':this[_0x605d0(0x154)],'digits':String(this[_0x605d0(0x182)][_0x605d0(0x16d)])[_0x605d0(0x16d)],'value':_0x2dc149+0x1}):String(_0x2dc149+0x1),_0x40c1a4[_0x605d0(0x181)][_0x605d0(0x191)](_0x605d0(0x163))!=_0x25efa1&&(_0x255a11[_0x605d0(0x171)](_0x605d0(0x163),_0x25efa1,_0x40c1a4[_0x605d0(0x181)]),!0x0);}[_0x1877c4(0x160)](_0x280c44){const _0x2d6bf2=_0x1877c4;if(!this[_0x2d6bf2(0x154)]||this[_0x2d6bf2(0x182)][_0x2d6bf2(0x16d)]<0x2)return!0x1;if(function(_0x338ba4,_0x40fc5e){const _0xbda9af=_0x2d6bf2;if(_0x338ba4[_0xbda9af(0x16d)]!==_0x40fc5e[_0xbda9af(0x16d)])return!0x1;for(let _0x434a7a=0x0;_0x434a7a<_0x338ba4[_0xbda9af(0x16d)];_0x434a7a++)if(_0x338ba4[_0x434a7a]!==_0x40fc5e[_0x434a7a])return!0x1;return!0x0;}(this[_0x2d6bf2(0x182)][_0x2d6bf2(0x17a)](_0x31c175=>_0x31c175['id']),Array[_0x2d6bf2(0x193)](this[_0x2d6bf2(0x154)][_0x2d6bf2(0x17c)]())[_0x2d6bf2(0x17a)](_0x444800=>_0x444800[_0x2d6bf2(0x191)](_0x2d6bf2(0x169)))))return!0x1;let _0x20491d=!0x1;for(let _0x100c13=0x0;_0x100c13<this[_0x2d6bf2(0x182)][_0x2d6bf2(0x16d)];_0x100c13++){const _0x5712d0=this[_0x2d6bf2(0x182)][_0x100c13],_0x27162d=_0x280c44[_0x2d6bf2(0x172)](_0x5712d0[_0x2d6bf2(0x135)]),_0x3db2a8=_0x280c44[_0x2d6bf2(0x152)](this[_0x2d6bf2(0x154)],_0x100c13);_0x27162d[_0x2d6bf2(0x145)](_0x3db2a8)||(_0x280c44[_0x2d6bf2(0x16e)](_0x280c44[_0x2d6bf2(0x17d)](_0x5712d0[_0x2d6bf2(0x135)]),_0x3db2a8),_0x20491d=!0x0);}return _0x20491d;}[_0x1877c4(0x138)](_0x3b9c6e){const _0x33036a=_0x1877c4;if(!this[_0x33036a(0x182)][_0x33036a(0x16d)])return!0x1;const {model:_0x1cb823}=this[_0x33036a(0x14c)];let _0x2516bf=!0x1;for(let _0x3bc987=0x0;_0x3bc987<this[_0x33036a(0x182)][_0x33036a(0x16d)]-0x1;_0x3bc987++){const _0xc0371e=this[_0x33036a(0x182)][_0x3bc987],_0x12c5cc=this[_0x33036a(0x182)][_0x3bc987+0x1],_0x73cf4b=_0x1cb823[_0x33036a(0x172)](_0xc0371e[_0x33036a(0x181)]),_0x2ff2a6=_0x1cb823[_0x33036a(0x172)](_0x12c5cc[_0x33036a(0x181)]);_0x33036a(0x15b)===_0x73cf4b[_0x33036a(0x130)](_0x2ff2a6)&&(this[_0x33036a(0x131)](_0x3b9c6e,_0xc0371e[_0x33036a(0x181)]),_0x3bc987=-0x1,_0x2516bf=!0x0);}return _0x2516bf;}}function _0x4d76(_0x22027b,_0x3ba397){const _0x1d7377=_0x1d73();return _0x4d76=function(_0x4d76bb,_0x4c87b3){_0x4d76bb=_0x4d76bb-0x12f;let _0x17bede=_0x1d7377[_0x4d76bb];return _0x17bede;},_0x4d76(_0x22027b,_0x3ba397);}function _(_0xc8dfe5,_0x2bf36c,_0x365122){const _0x5dc4e4=_0x1877c4;if(_0x365122[_0x5dc4e4(0x166)])return!0x1;const _0x189c73=_0x2bf36c?_0x5dc4e4(0x155):_0x5dc4e4(0x18d);return _0xc8dfe5[_0x5dc4e4(0x16a)](_0xc8dfe5[_0x5dc4e4(0x170)](_0x189c73),_0x365122),!0x0;}function I(_0x33e435,_0x2dbde5,_0x2ee536){const _0x1b04bd=_0x1877c4;if(0x0===_0x2dbde5[_0x1b04bd(0x16d)])return 0x0;const _0x283fb1=_0x33e435[_0x1b04bd(0x172)](_0x2ee536);for(let _0x4f77ae=0x0;_0x4f77ae<_0x2dbde5[_0x1b04bd(0x16d)];_0x4f77ae++){const _0x3c99a9=_0x2dbde5[_0x4f77ae],_0x57d6a4=_0x33e435[_0x1b04bd(0x172)](_0x3c99a9[_0x1b04bd(0x181)]);if(_0x1b04bd(0x18a)===_0x283fb1[_0x1b04bd(0x130)](_0x57d6a4))return _0x4f77ae;}const _0x542a7a=_0x2ee536[_0x1b04bd(0x13a)];let _0x45965b=-0x1;for(let _0x335381=_0x2dbde5[_0x1b04bd(0x16d)]-0x1;_0x335381>=0x0;_0x335381--)if(_0x2dbde5[_0x335381][_0x1b04bd(0x181)][_0x1b04bd(0x13a)]===_0x542a7a){_0x45965b=_0x335381;break;}if(-0x1!==_0x45965b)return _0x45965b+0x1;const _0x3eb802=_0x33e435[_0x1b04bd(0x18f)][_0x1b04bd(0x15f)](),_0x248703=_0x3eb802[_0x1b04bd(0x192)](_0x542a7a[_0x1b04bd(0x164)]),_0x2e8420=_0x3eb802[_0x248703+0x1];if(_0x2e8420){for(let _0xbad4dc=0x0;_0xbad4dc<_0x2dbde5[_0x1b04bd(0x16d)];_0xbad4dc++)if(_0x2dbde5[_0xbad4dc][_0x1b04bd(0x181)][_0x1b04bd(0x13a)][_0x1b04bd(0x164)]===_0x2e8420)return _0xbad4dc;}return _0x2dbde5[_0x1b04bd(0x16d)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4d058f,MenuBarMenuListItemButtonView as _0x2e5d0a}from'ckeditor5/src/ui.js';import{Plugin as _0x57b730}from'ckeditor5/src/core.js';import{IconFootnote as _0x117641}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x57b730{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x40bc78}=this,{componentFactory:_0x4c3186}=_0x40bc78['ui'];_0x4c3186['add']('insertFootnote',E(_0x40bc78,_0x4d058f)),_0x4c3186['add']('menuBar:insertFootnote',E(_0x40bc78,_0x2e5d0a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d2aaf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x400df3;for(const _0xf2e02 in _0x2d2aaf){const _0x1b7893=_0xf2e02,_0x3644fd=_0x2d2aaf[_0x1b7893];if('footnotesLicenseKeyValid'==_0x3644fd||'footnotesLicenseKeyInvalid'==_0x3644fd||'footnotesLicenseKeyExpired'==_0x3644fd||'footnotesLicenseKeyDomainLimit'==_0x3644fd||'footnotesLicenseKeyNotAllowed'==_0x3644fd||'footnotesLicenseKeyEvaluationLimit'==_0x3644fd||'footnotesLicenseKeyUsageLimit'==_0x3644fd){delete _0x2d2aaf[_0x1b7893],_0x400df3=_0x3644fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x400df3&&_0x2d2aaf['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x400df3&&_0x2d2aaf['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x400df3&&_0x2d2aaf['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x400df3&&_0x2d2aaf['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x400df3&&_0x2d2aaf['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x400df3&&_0x2d2aaf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x522757,_0x962df){const _0xd5d411=_0x522757['commands']['get']('insertFootnote');return _0x5980e0=>{const {t:t}=_0x5980e0,_0x2a047a=new _0x962df(_0x5980e0),_0x3ecb34=_0x2a047a instanceof _0x2e5d0a;return _0x2a047a['bind']('isEnabled')['to'](_0xd5d411,'isEnabled'),_0x2a047a['set']({'label':t(_0x3ecb34?'Footnote':'Insert\x20footnote'),'icon':_0x117641,'tooltip':!0x0}),_0x2a047a['on']('execute',()=>{_0xd5d411['execute'](),_0x522757['editing']['view']['focus']();}),_0x2a047a;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x21da07,_0x5e57b6){var _0xd56e76=_0x4183,_0x13d0a9=_0x21da07();while(!![]){try{var _0x3e8acc=parseInt(_0xd56e76(0xc0))/0x1*(parseInt(_0xd56e76(0xbb))/0x2)+parseInt(_0xd56e76(0xbf))/0x3+parseInt(_0xd56e76(0xb8))/0x4*(parseInt(_0xd56e76(0xbc))/0x5)+-parseInt(_0xd56e76(0xc1))/0x6+parseInt(_0xd56e76(0xba))/0x7+-parseInt(_0xd56e76(0xbe))/0x8+parseInt(_0xd56e76(0xbd))/0x9*(-parseInt(_0xd56e76(0xb9))/0xa);if(_0x3e8acc===_0x5e57b6)break;else _0x13d0a9['push'](_0x13d0a9['shift']());}catch(_0x239114){_0x13d0a9['push'](_0x13d0a9['shift']());}}}(_0x46b9,0x33a51));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';function _0x46b9(){var _0xefeb85=['1827545VKwdnF','218745XiWyLU','1882320GAFDsB','1113066hrhcjS','147WBEdae','1171896yTunLG','4BolARx','150VLLFir','1587754iRAQED','590AdQILV'];_0x46b9=function(){return _0xefeb85;};return _0x46b9();}export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';function _0x4183(_0x2ba5ad,_0x3353db){var _0x46b990=_0x46b9();return _0x4183=function(_0x418357,_0x5f039a){_0x418357=_0x418357-0xb8;var _0x48469e=_0x46b990[_0x418357];return _0x48469e;},_0x4183(_0x2ba5ad,_0x3353db);}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
|
+
function _0x3ac0(){const _0x1b1103=['values','getElementKey','has','rootName','_model','4FTtcvW','element','attributes','$graveyard','_trackedElements','createRangeOn','$text','set','2034432fSkmIF','position','690603yJkRRC','reset','getChanges','getItems','9461600eVttfj','get','remove','4361460TesKOZ','insert','nodeAfter','root','push','4428851OUXnQE','type','length','_elementName','elementName','816650XHbtLq','527WsCXIw','slice','from','clear','delete','add','1910gptmUM','name','flat','_getElementKey','8FMgCSi'];_0x3ac0=function(){return _0x1b1103;};return _0x3ac0();}const _0x1d229a=_0x56ec;(function(_0x53ae34,_0x4d5abf){const _0x19a243=_0x56ec,_0x325740=_0x53ae34();while(!![]){try{const _0x3a8e53=parseInt(_0x19a243(0x167))/0x1*(-parseInt(_0x19a243(0x16d))/0x2)+-parseInt(_0x19a243(0x181))/0x3*(-parseInt(_0x19a243(0x177))/0x4)+-parseInt(_0x19a243(0x166))/0x5+parseInt(_0x19a243(0x15c))/0x6+-parseInt(_0x19a243(0x161))/0x7*(parseInt(_0x19a243(0x171))/0x8)+-parseInt(_0x19a243(0x17f))/0x9+parseInt(_0x19a243(0x159))/0xa;if(_0x3a8e53===_0x4d5abf)break;else _0x325740['push'](_0x325740['shift']());}catch(_0x15b8f9){_0x325740['push'](_0x325740['shift']());}}}(_0x3ac0,0x5c43b));function _0x56ec(_0x252d23,_0x21f858){const _0x3ac070=_0x3ac0();return _0x56ec=function(_0x56ec11,_0x128d56){_0x56ec11=_0x56ec11-0x159;let _0x46fd66=_0x3ac070[_0x56ec11];return _0x46fd66;},_0x56ec(_0x252d23,_0x21f858);}export class ModelElementTracker{[_0x1d229a(0x176)];[_0x1d229a(0x164)];[_0x1d229a(0x170)];[_0x1d229a(0x17b)]=new Map();constructor(_0x1e9aed,_0x54de5a){const _0x62d12a=_0x1d229a;this[_0x62d12a(0x176)]=_0x1e9aed,this[_0x62d12a(0x164)]=_0x54de5a[_0x62d12a(0x165)],this[_0x62d12a(0x170)]=_0x54de5a[_0x62d12a(0x173)];}[_0x1d229a(0x182)](){const _0x2108eb=_0x1d229a;this[_0x2108eb(0x17b)][_0x2108eb(0x16a)]();}[_0x1d229a(0x183)](_0x303022){const _0x583df4=_0x1d229a,_0x50ce73=new Set(),_0x3fdfa4=new Map();for(const _0x402df4 of _0x303022){if(_0x583df4(0x15d)===_0x402df4[_0x583df4(0x162)]&&_0x583df4(0x17d)!==_0x402df4[_0x583df4(0x16e)]&&_0x402df4[_0x583df4(0x180)][_0x583df4(0x15e)]){const _0x1ec293=this[_0x583df4(0x176)][_0x583df4(0x17c)](_0x402df4[_0x583df4(0x180)][_0x583df4(0x15e)]);for(const _0x509833 of _0x1ec293[_0x583df4(0x184)]()){if(!_0x509833['is'](_0x583df4(0x178),this[_0x583df4(0x164)]))continue;const _0x25bbc9=this[_0x583df4(0x170)](_0x509833);_0x3fdfa4[_0x583df4(0x174)](_0x25bbc9)||_0x3fdfa4[_0x583df4(0x17e)](_0x25bbc9,[]),_0x3fdfa4[_0x583df4(0x15a)](_0x25bbc9)[_0x583df4(0x160)](_0x509833);}}if(_0x583df4(0x15b)===_0x402df4[_0x583df4(0x162)]&&_0x402df4[_0x583df4(0x16e)]===this[_0x583df4(0x164)]){const _0x16222d=this[_0x583df4(0x170)]({'getAttribute':_0x1d1938=>_0x402df4[_0x583df4(0x179)][_0x583df4(0x15a)](_0x1d1938)});_0x50ce73[_0x583df4(0x16c)](_0x16222d);}}for(const [_0x5196ee,_0x6f356a]of this[_0x583df4(0x17b)])_0x583df4(0x17a)===_0x6f356a[_0x583df4(0x15f)][_0x583df4(0x175)]&&_0x50ce73[_0x583df4(0x16c)](_0x5196ee);for(const _0x40f32a of _0x50ce73)this[_0x583df4(0x17b)][_0x583df4(0x16b)](_0x40f32a);for(const [_0x36a7ef,_0x4a248c]of _0x3fdfa4)this[_0x583df4(0x17b)][_0x583df4(0x17e)](_0x36a7ef,_0x4a248c[_0x4a248c[_0x583df4(0x163)]-0x1]);const _0x28b60f=new Set();for(const [_0x1b46d,_0x252c9b]of _0x3fdfa4)_0x50ce73[_0x583df4(0x174)](_0x1b46d)&&(_0x28b60f[_0x583df4(0x16c)](_0x252c9b[0x0]),_0x252c9b[_0x583df4(0x163)]>0x1?_0x3fdfa4[_0x583df4(0x17e)](_0x1b46d,_0x252c9b[_0x583df4(0x168)](0x1)):_0x3fdfa4[_0x583df4(0x16b)](_0x1b46d),_0x50ce73[_0x583df4(0x16b)](_0x1b46d));return{'removed':Array[_0x583df4(0x169)](_0x50ce73),'inserted':Array[_0x583df4(0x169)](_0x3fdfa4[_0x583df4(0x172)]())[_0x583df4(0x16f)](),'moved':Array[_0x583df4(0x169)](_0x28b60f)};}}
|