@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251120.0 → 0.0.0-nightly-20251122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x192a91}from'ckeditor5/src/core.js';import{isWidget as _0x18c4cb,toWidget as _0x9ea284,toWidgetEditable as _0x325df6}from'ckeditor5/src/widget.js';import{uid as _0x5ccbf2}from'ckeditor5/src/utils.js';import{PointerObserver as _0x46643b,ClickObserver as _0x4b2338}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3f2ef7}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5a1880}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x192a91{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3f2ef7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x38039e}=this;_0x38039e['config']['define']('footnotes.multiBlock',!0x0),_0x38039e['commands']['add']('insertFootnote',new _0x5a1880(_0x38039e)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d8ed3){const _0x238f5d=_0x2ae9a8([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]),_0x36e74e=0x47a28506,_0x27116=0x47a5fca6^_0x36e74e,_0x5a944b=window[_0x2ae9a8([0x44,0x61,0x74,0x65])][_0x2ae9a8([0x6e,0x6f,0x77])](),_0x48efaa=_0x4d8ed3[_0x2ae9a8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a5c54=new window[(_0x2ae9a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d02ae=>{_0x48efaa[_0x2ae9a8([0x6f,0x6e,0x63,0x65])](_0x2ae9a8([0x72,0x65,0x61,0x64,0x79]),_0x2d02ae);}),_0x4fef17={[_0x2ae9a8([0x6b,0x74,0x79])]:_0x2ae9a8([0x45,0x43]),[_0x2ae9a8([0x75,0x73,0x65])]:_0x2ae9a8([0x73,0x69,0x67]),[_0x2ae9a8([0x63,0x72,0x76])]:_0x2ae9a8([0x50,0x2d,0x32,0x35,0x36]),[_0x2ae9a8([0x78])]:_0x2ae9a8([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]),[_0x2ae9a8([0x79])]:_0x2ae9a8([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]),[_0x2ae9a8([0x61,0x6c,0x67])]:_0x2ae9a8([0x45,0x53,0x32,0x35,0x36])},_0x4afe0c=_0x48efaa[_0x2ae9a8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ae9a8([0x67,0x65,0x74])](_0x2ae9a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56053a(){let _0x3ccd3a,_0xec227a=null,_0x5d8074=null;try{if(_0x4afe0c==_0x2ae9a8([0x47,0x50,0x4c]))return _0x2ae9a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ccd3a=_0x357ce8(),!_0x3ccd3a)return _0x2ae9a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ccd3a[_0x2ae9a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d8074=_0x4c44ee(_0x3ccd3a[_0x2ae9a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ccd3a[_0x2ae9a8([0x6a,0x74,0x69])])),await _0x194172()?_0x483b0c()?_0x376b7c()?_0x2ae9a8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xcecf09()?(_0x3ccd3a[_0x2ae9a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ae9a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xec227a=_0x3c1e10(_0x2ae9a8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ccd3a[_0x2ae9a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ae9a8([0x74,0x72,0x69,0x61,0x6c])&&(_0xec227a=_0x3c1e10(_0x2ae9a8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58c9ea()):_0x2ae9a8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ae9a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ae9a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ae9a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x376b7c(){const _0x319480=[_0x2ae9a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ae9a8([0x74,0x72,0x69,0x61,0x6c])][_0x2ae9a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ccd3a[_0x2ae9a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a944b/0x3e8:0xe10*_0x27116;return _0x3ccd3a[_0x2ae9a8([0x65,0x78,0x70])]<_0x319480;}function _0x483b0c(){const _0x2d15c5=_0x3ccd3a[_0x2ae9a8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d15c5&&(!!_0x2d15c5[_0x2ae9a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae9a8([0x2a]))||!!_0x2d15c5[_0x2ae9a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae9a8([0x46,0x4f,0x4f])));}function _0xcecf09(){const _0x307ed0=_0x3ccd3a[_0x2ae9a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x307ed0||0x0==_0x307ed0[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50cbc6}=new URL(window[_0x2ae9a8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x307ed0[_0x2ae9a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50cbc6))return!0x0;const _0x40b64f=_0x50cbc6[_0x2ae9a8([0x73,0x70,0x6c,0x69,0x74])](_0x2ae9a8([0x2e]));return _0x307ed0[_0x2ae9a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11efb4=>_0x11efb4[_0x2ae9a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae9a8([0x2a])))[_0x2ae9a8([0x6d,0x61,0x70])](_0x3d481e=>_0x3d481e[_0x2ae9a8([0x73,0x70,0x6c,0x69,0x74])](_0x2ae9a8([0x2e])))[_0x2ae9a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x585dfa=>_0x585dfa[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40b64f[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ae9a8([0x6d,0x61,0x70])](_0x269133=>Array(_0x40b64f[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x269133[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ae9a8([0x66,0x69,0x6c,0x6c])](_0x269133[0x0]===_0x2ae9a8([0x2a])?_0x2ae9a8([0x2a]):'')[_0x2ae9a8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x269133))[_0x2ae9a8([0x73,0x6f,0x6d,0x65])](_0x55cd57=>_0x40b64f[_0x2ae9a8([0x65,0x76,0x65,0x72,0x79])]((_0x208214,_0x5fffd1)=>_0x55cd57[_0x5fffd1]===_0x208214||_0x55cd57[_0x5fffd1]===_0x2ae9a8([0x2a])));}function _0x58c9ea(){return _0xec227a&&_0x5d8074?new window[(_0x2ae9a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dd818,_0x29ab3a)=>{_0xec227a[_0x2ae9a8([0x74,0x68,0x65,0x6e])](_0x2dd818,_0x29ab3a),_0x5d8074[_0x2ae9a8([0x74,0x68,0x65,0x6e])](_0x4789c4=>{_0x4789c4!=_0x2ae9a8([0x56,0x61,0x6c,0x69,0x64])&&_0x2dd818(_0x4789c4);},_0x29ab3a);}):_0xec227a||_0x5d8074||_0x2ae9a8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c44ee(_0x35d323,_0x4c23f6){return new window[(_0x2ae9a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b95d=>{if(_0x32a772())return _0x56b95d(_0x2ae9a8([0x56,0x61,0x6c,0x69,0x64]));_0x1012af(),_0x48efaa[_0x2ae9a8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ae9a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x475558=!0x1;const _0x2c5924=_0x5ccbf2();function _0x583a6c(_0x57f9fd){return!!_0x57f9fd&&(typeof _0x57f9fd===_0x2ae9a8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57f9fd===_0x2ae9a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57f9fd[_0x2ae9a8([0x74,0x68,0x65,0x6e])]===_0x2ae9a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57f9fd[_0x2ae9a8([0x63,0x61,0x74,0x63,0x68])]===_0x2ae9a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f4c34(_0x38e557){_0x599f97(_0x38e557)[_0x2ae9a8([0x74,0x68,0x65,0x6e])](_0x4d242c=>{if(!_0x4d242c||_0x4d242c[_0x2ae9a8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ae9a8([0x6f,0x6b]))return _0x2ae9a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a2702(_0x51c918(_0x2c5924+_0x4c23f6))!=_0x4d242c[_0x2ae9a8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ae9a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ae9a8([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ae9a8([0x74,0x68,0x65,0x6e])](_0x30489d=>(_0x1c33ae(),_0x30489d),()=>{const _0x395258=_0x45aa89();return null==_0x395258?(_0x1c33ae(),_0x2ae9a8([0x56,0x61,0x6c,0x69,0x64])):_0x2ae9a8(_0x5a944b-_0x395258>(0x63ae0106^_0x36e74e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ae9a8([0x74,0x68,0x65,0x6e])](_0x56b95d)[_0x2ae9a8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56b95d(_0x2ae9a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5088d5=0x47946b86^_0x36e74e;function _0x1c33ae(){const _0x11a0cb=_0x2ae9a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a2702(_0x51c918(_0x35d323)),_0x546e41=_0x4b5eb7(_0x4a2702(window[_0x2ae9a8([0x4d,0x61,0x74,0x68])][_0x2ae9a8([0x63,0x65,0x69,0x6c])](_0x5a944b/_0x5088d5)));window[_0x2ae9a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ae9a8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11a0cb,_0x546e41);}function _0x45aa89(){const _0x2b1a1a=_0x2ae9a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a2702(_0x51c918(_0x35d323)),_0x3b20ae=window[_0x2ae9a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ae9a8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b1a1a);return _0x3b20ae?window[_0x2ae9a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b5eb7(_0x3b20ae),0x10)*_0x5088d5:null;}function _0x599f97(_0x1a0cde){return new window[(_0x2ae9a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b0cdb,_0x1c60c0)=>{_0x1a0cde[_0x2ae9a8([0x74,0x68,0x65,0x6e])](_0x2b0cdb,_0x1c60c0),window[_0x2ae9a8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c60c0,0x47a351c6^_0x36e74e);});}}_0x48efaa[_0x2ae9a8([0x6f,0x6e])](_0x2ae9a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ea4db,_0x37b90b)=>{if(_0x37b90b[0x0]!=_0x35d323)return _0x56b95d(_0x2ae9a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37b90b[0x1]={..._0x37b90b[0x1],[_0x2ae9a8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c5924};},{[_0x2ae9a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ae9a8([0x68,0x69,0x67,0x68])}),_0x48efaa[_0x2ae9a8([0x6f,0x6e])](_0x2ae9a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1edac3=>{_0x583a6c(_0x1edac3[_0x2ae9a8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x475558=!0x0,_0x3f4c34(_0x1edac3[_0x2ae9a8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ae9a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ae9a8([0x6c,0x6f,0x77])}),_0x4a5c54[_0x2ae9a8([0x74,0x68,0x65,0x6e])](()=>{_0x475558||_0x56b95d(_0x2ae9a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32a772(){return _0x48efaa[_0x2ae9a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ae9a8([0x76,0x69,0x65,0x77])][_0x2ae9a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ae9a8([0x61,0x75,0x74,0x6f]);}function _0x1012af(){_0x48efaa[_0x2ae9a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ae9a8([0x76,0x69,0x65,0x77])][_0x2ae9a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ae9a8([0x61,0x75,0x74,0x6f]);}}function _0x3c1e10(_0x40cff7){const _0x2cff44=[new window[(_0x2ae9a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x477c40=>setTimeout(_0x477c40,0x47abbbca^_0x36e74e)),_0x4a5c54[_0x2ae9a8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ae9a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9ba7ea=>{let _0x45652f=0x0;_0x48efaa[_0x2ae9a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ae9a8([0x6f,0x6e])](_0x2ae9a8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a03f5,_0x56efd8)=>{_0x56efd8[0x0][_0x2ae9a8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x45652f++,_0x45652f==(0x47a284fe^_0x36e74e)&&(_0x9ba7ea(),_0x3a03f5[_0x2ae9a8([0x6f,0x66,0x66])]());});}))];return window[_0x2ae9a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ae9a8([0x72,0x61,0x63,0x65])](_0x2cff44)[_0x2ae9a8([0x74,0x68,0x65,0x6e])](()=>_0x40cff7);}async function _0x2efcaa(){await _0x4a5c54,_0x48efaa[_0x2ae9a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ae9a8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb594ae,_0x48efaa[_0x2ae9a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ae9a8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb594ae,_0x48efaa[_0x2ae9a8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ae9a8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d9c30(_0x58e996){const _0x2bed08=_0x8c1f88();_0x48efaa[_0x2bed08]=_0x2ae9a8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58e996,_0x58e996!=_0x2ae9a8([0x56,0x61,0x6c,0x69,0x64])&&_0x2efcaa();}function _0x8c1f88(){const _0x5a65f9=window[_0x2ae9a8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ae9a8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ae9a8([0x6e,0x6f,0x77])]())[_0x2ae9a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ae9a8([0x2e]),'');let _0x15d88a=_0x2ae9a8([0x75]);for(let _0x35ad41=0x0;_0x35ad41<_0x5a65f9[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35ad41+=0x2){let _0x2bd079=window[_0x2ae9a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a65f9[_0x2ae9a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35ad41,_0x35ad41+0x2));_0x2bd079>=_0x238f5d[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2bd079-=_0x238f5d[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15d88a+=_0x238f5d[_0x2bd079];}return _0x15d88a;}function _0x357ce8(){const _0x30597f=_0x4afe0c[_0x2ae9a8([0x73,0x70,0x6c,0x69,0x74])](_0x2ae9a8([0x2e]));if(0x3!=_0x30597f[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x525c0c(_0x30597f[0x1]);function _0x525c0c(_0x34c0d9){const _0x212ba9=_0x30958b(_0x34c0d9);return _0x212ba9&&_0x47f0d4()?_0x212ba9:null;function _0x47f0d4(){const _0x6760d8=_0x212ba9[_0x2ae9a8([0x6a,0x74,0x69])],_0x2fcb4b=window[_0x2ae9a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6760d8[_0x2ae9a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6760d8[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18df44={..._0x212ba9,[_0x2ae9a8([0x6a,0x74,0x69])]:_0x6760d8[_0x2ae9a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6760d8[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18df44[_0x2ae9a8([0x76,0x63])],_0x51c918(_0x18df44)==_0x2fcb4b;}}}async function _0x194172(){let _0x1ca5d4=!0x0;try{const _0x5d7cdb=_0x4afe0c[_0x2ae9a8([0x73,0x70,0x6c,0x69,0x74])](_0x2ae9a8([0x2e])),[_0x2aa578,_0x2454cf,_0x9a7510]=_0x5d7cdb;return _0x3aa565(_0x2aa578),await _0x18c467(_0x2aa578,_0x2454cf,_0x9a7510),_0x1ca5d4;}catch{return!0x1;}function _0x3aa565(_0x5325d4){const _0xde7ede=_0x30958b(_0x5325d4);_0xde7ede&&_0xde7ede[_0x2ae9a8([0x61,0x6c,0x67])]==_0x2ae9a8([0x45,0x53,0x32,0x35,0x36])||(_0x1ca5d4=!0x1);}async function _0x18c467(_0x229446,_0x80ce1c,_0x21c7a0){const _0x617ff4=window[_0x2ae9a8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ae9a8([0x66,0x72,0x6f,0x6d])](_0xe53b47(_0x21c7a0),_0x36b531=>_0x36b531[_0x2ae9a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x337d7d=new window[(_0x2ae9a8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ae9a8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x229446+_0x2ae9a8([0x2e])+_0x80ce1c),_0x24c6d8=window[_0x2ae9a8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ae9a8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24c6d8)return;const _0xd2b4f7=await _0x24c6d8[_0x2ae9a8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ae9a8([0x6a,0x77,0x6b]),_0x4fef17,{[_0x2ae9a8([0x6e,0x61,0x6d,0x65])]:_0x2ae9a8([0x45,0x43,0x44,0x53,0x41]),[_0x2ae9a8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ae9a8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ae9a8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24c6d8[_0x2ae9a8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ae9a8([0x6e,0x61,0x6d,0x65])]:_0x2ae9a8([0x45,0x43,0x44,0x53,0x41]),[_0x2ae9a8([0x68,0x61,0x73,0x68])]:{[_0x2ae9a8([0x6e,0x61,0x6d,0x65])]:_0x2ae9a8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd2b4f7,_0x617ff4,_0x337d7d)||(_0x1ca5d4=!0x1);}}function _0x30958b(_0x4f9d){return _0x4f9d[_0x2ae9a8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ae9a8([0x65,0x79]))?JSON[_0x2ae9a8([0x70,0x61,0x72,0x73,0x65])](_0xe53b47(_0x4f9d)):null;}function _0xe53b47(_0x35345e){return window[_0x2ae9a8([0x61,0x74,0x6f,0x62])](_0x35345e[_0x2ae9a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ae9a8([0x2b]))[_0x2ae9a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ae9a8([0x2f])));}function _0x51c918(_0x2b955b){let _0x959380=0x1505;function _0x5f28ad(_0x1340f5){for(let _0x23571c=0x0;_0x23571c<_0x1340f5[_0x2ae9a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23571c++){const _0x4d85c6=_0x1340f5[_0x2ae9a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23571c);_0x959380=(_0x959380<<0x5)+_0x959380+_0x4d85c6,_0x959380&=_0x959380;}}function _0x5b8ffc(_0x731921){Array[_0x2ae9a8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x731921)?_0x731921[_0x2ae9a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b8ffc):_0x731921&&typeof _0x731921==_0x2ae9a8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ae9a8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x731921)[_0x2ae9a8([0x73,0x6f,0x72,0x74])]()[_0x2ae9a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc13709,_0x3cb6da])=>{_0x5f28ad(_0xc13709),_0x5b8ffc(_0x3cb6da);}):_0x5f28ad(window[_0x2ae9a8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x731921));}return _0x5b8ffc(_0x2b955b),_0x959380>>>0x0;}function _0x4a2702(_0x28dda1){return _0x28dda1[_0x2ae9a8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ae9a8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ae9a8([0x30]));}function _0x4b5eb7(_0x5f1d84){return _0x5f1d84[_0x2ae9a8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ae9a8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ae9a8([0x6a,0x6f,0x69,0x6e])]('');}function _0xb594ae(){}function _0x2ae9a8(_0x507d88){return _0x507d88['map'](_0x4d22d8=>String['fromCharCode'](_0x4d22d8))['join']('');}_0x2d9c30(await _0x56053a());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2d70a2){const {plugins:_0x363e85,editing:_0xa6ee9b,model:_0x143a18}=this['editor'],_0x28f981=_0x363e85['get'](_0x3f2ef7)['getFootnote'](_0x2d70a2);return!!_0x28f981&&(_0x143a18['change'](_0x191e21=>{_0x191e21['setSelection'](_0x191e21['createPositionAt'](_0x28f981['definition'],'end'));}),_0xa6ee9b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x102ca9){const {plugins:_0x82c135,editing:_0x257ca5,model:_0x545b38}=this['editor'],_0x1a73bf=_0x82c135['get'](_0x3f2ef7)['getFootnote'](_0x102ca9);return!!_0x1a73bf&&(_0x545b38['change'](_0x1a5a67=>{_0x1a5a67['setSelection'](_0x1a73bf['reference'],'on');}),_0x257ca5['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4ac0f0}=this['editor']['model'],_0xbc2b5c=this['editor']['config']['get']('footnotes.multiBlock');_0x4ac0f0['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4ac0f0['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4ac0f0['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xbc2b5c?_0x4ac0f0['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4ac0f0['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4ac0f0['addChildCheck'](_0x14801d=>{for(const _0x477794 of _0x14801d)if('footnoteDefinition'===_0x477794['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5bb664}=this,{conversion:_0x35dc75,editing:_0x52b262}=_0x5bb664,{t:t}=_0x5bb664['locale'];_0x35dc75['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2ac11d,{writer:_0x452b53,consumable:_0x7a118c})=>{const _0x223d0b=_0x2ac11d['getChild'](0x0);if(!_0x223d0b||!_0x223d0b['is']('element','a'))return null;const _0x5e59be=_0x223d0b['getAttribute']('href')||'';if(!_0x5e59be['startsWith']('#'))return null;const _0x513732=_0x5e59be['replace'](/^#/,'');if(!_0x513732)return null;_0x7a118c['consume'](_0x223d0b,{'name':!0x0,'attributes':['href']});for(const {item:_0x29fcd4}of _0x52b262['view']['createRangeIn'](_0x223d0b))_0x29fcd4['is']('$textProxy')?_0x7a118c['consume'](_0x29fcd4['textNode'],{'name':!0x0}):_0x29fcd4['is']('element')&&_0x7a118c['consume'](_0x29fcd4,{'name':!0x0});return _0x452b53['createElement']('footnoteRef',{'footnoteId':_0x513732});}}),_0x35dc75['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x937ba6,{writer:_0x1e2728})=>D(_0x937ba6,_0x1e2728)}),_0x35dc75['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3f555f,{writer:_0x5848ca})=>{const _0x1aa6a1=_0x3f555f['getAttribute']('footnoteCounter');return _0x9ea284(D(_0x3f555f,_0x5848ca),_0x5848ca,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1aa6a1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1c058e}=this,{t:t}=_0x1c058e['locale'],{conversion:_0x4a6989}=_0x1c058e;_0x4a6989['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4a6989['for']('upcast')['add'](_0x185c6c=>{_0x185c6c['on']('element:ol',(_0x39cc59,_0x489b1b,_0x4aab3c)=>{const _0x2778e8=_0x489b1b['viewItem'];if(!_0x2778e8['hasClass']('footnotes-list')||!_0x489b1b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4aab3c['consumable']['consume'](_0x2778e8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x26e875,modelCursor:_0x17ee3d}=_0x4aab3c['convertChildren'](_0x489b1b['viewItem'],_0x489b1b['modelCursor']);_0x489b1b['modelRange']=_0x26e875,_0x489b1b['modelCursor']=_0x17ee3d;}),_0x185c6c['on']('element:hr',(_0x2ee5f7,_0x300ac0,_0x373278)=>{const _0x543047=_0x300ac0['viewItem'];_0x543047['hasClass']('footnotes-divider')&&_0x300ac0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x373278['consumable']['consume'](_0x543047,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4a6989['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x517d41,{writer:_0x3dea31})=>v(_0x3dea31)}),_0x4a6989['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x482d21,{writer:_0x5317ee})=>{const _0x58f21f=v(_0x5317ee,{'data-footnotes-list-label':t('Footnotes')}),_0x18895f=_0x9ea284(_0x58f21f,_0x5317ee,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5317ee['setCustomProperty']('footnotesDefinitions',!0x0,_0x18895f),_0x18895f;}});}['_defineDefinitionConverters'](){const {editor:_0x412422}=this,{conversion:_0x1f2672,locale:_0x19e8a4}=_0x412422,_0x2f36c0=_0x412422['config']['get']('footnotes.multiBlock');_0x1f2672['for']('upcast')['add'](_0x560fee=>{_0x560fee['on']('element:li',(_0x3b9f36,_0x1289ba,_0x19d4ce)=>{const _0x49f64f=_0x1289ba['viewItem'];if(!_0x49f64f['hasClass']('footnote-definition')||!_0x49f64f['getAttribute']('id'))return;const _0x2b34d5=_0x49f64f['parent'];if(!_0x2b34d5['is']('element','ol')||!_0x2b34d5['hasClass']('footnotes-list'))return;if(!_0x19d4ce['consumable']['test'](_0x49f64f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x28286e=_0x19d4ce['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x49f64f['getAttribute']('id')});if(!_0x19d4ce['safeInsert'](_0x28286e,_0x1289ba['modelCursor']))return;_0x19d4ce['consumable']['consume'](_0x49f64f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2f303f=Array['from'](_0x49f64f['getChildren']())['find'](_0x4a4420=>_0x4a4420['is']('element')&&_0x4a4420['hasClass']('footnote-content'));for(const _0x34cb52 of _0x49f64f['getChildren']())_0x34cb52['is']('element')&&(_0x19d4ce['consumable']['consume'](_0x34cb52,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x19d4ce['consumable']['consume'](_0x34cb52,{'name':!0x0,'classes':'footnote-content'}));if(_0x2f303f){if(_0x2f36c0)_0x19d4ce['convertChildren'](_0x2f303f,_0x28286e);else{const _0x2b1613=_0x19d4ce['writer']['createElement']('footnoteInlineContent');_0x19d4ce['writer']['insert'](_0x2b1613,_0x28286e),_0x19d4ce['convertChildren'](_0x2f303f,_0x2b1613);}}_0x19d4ce['updateConversionResult'](_0x28286e,_0x1289ba);});}),_0x1f2672['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x16e473,{writer:_0x24858d})=>b(_0x16e473,_0x24858d,_0x19e8a4,{'dataPipeline':!0x0})}),_0x1f2672['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x279288,{writer:_0x352f79})=>b(_0x279288,_0x352f79,_0x19e8a4)});}['_defineBogusParagraphConverters'](){const {editor:_0x1734fb}=this,{conversion:_0x186e8a}=_0x1734fb;_0x1734fb['config']['get']('footnotes.multiBlock')?(_0x186e8a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x186e8a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1734fb['model']['document'],'change:data',()=>{!function(_0x2cc911,_0x32b020){const _0x2b9152=_0x2cc911['document']['differ'],_0xee046=new Set();for(const _0x4cf6fb of _0x2b9152['getChanges']()){const _0xd2642a='attribute'==_0x4cf6fb['type']?_0x4cf6fb['range']['start']['parent']:_0x4cf6fb['position']['parent'];_0xd2642a['is']('element','footnoteDefinition')&&_0xee046['add'](_0xd2642a);}for(const _0xdec2ee of _0xee046['values']()){const _0x18fbb9=Array['from'](_0xdec2ee['getChildren']())['filter'](_0x50cc4e=>g(_0x50cc4e,_0x32b020['mapper']));for(const _0x1076a2 of _0x18fbb9)_0x32b020['reconvertItem'](_0x1076a2);}}(_0x1734fb['model'],_0x1734fb['editing']);})):(_0x186e8a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x186e8a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3a0437,{writer:_0x4a15da})=>{const _0x12f232=_0x4a15da['createContainerElement']('span');return _0x4a15da['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x12f232),_0x12f232;}}));}['_defineKeyboardHandlers'](){const {editor:_0x14eca7}=this,{editing:_0x3c1afd,t:t}=_0x14eca7,_0x458fdf=_0x14eca7['model']['document']['selection'];_0x14eca7['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x14eca7['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3c1afd['view']['document'],'enter',(_0xf2520f,_0x1235e4)=>{const _0x1e20fb=function(_0x2f7ccb){const _0x5f1062=_0x2f7ccb['getSelectedElement']();if(_0x5f1062?.['is']('element','footnoteRef'))return _0x5f1062;return null;}(_0x458fdf);if(_0x1e20fb){const _0x5a815f=_0x1e20fb['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5a815f),_0x1235e4['preventDefault'](),_0xf2520f['stop']();}},{'context':_0x18c4cb});}['_defineClickHandlers'](){const {editor:_0x3c85cc}=this,{editing:_0x47c570}=_0x3c85cc;_0x3c85cc['editing']['view']['addObserver'](_0x46643b),_0x3c85cc['editing']['view']['addObserver'](_0x4b2338);let _0x13d8b9=!0x1;this['listenTo'](_0x47c570['view']['document'],'pointerdown',(_0x1756b8,_0x499e81)=>{const {target:_0x42a8f6}=_0x499e81,_0x5dde6c=_0x47c570['view']['document']['selection'];_0x13d8b9=!!(_0x42a8f6?.['is']('element','a')&&_0x42a8f6['parent']?.['is']('element','sup')&&_0x42a8f6['parent']['hasClass']('footnote'))&&_0x5dde6c['getSelectedElement']()===_0x42a8f6['parent'];},{'priority':'high'}),this['listenTo'](_0x47c570['view']['document'],'click',(_0x3d0536,_0x487cf3)=>{const {target:_0x5d7804}=_0x487cf3;if(!_0x5d7804?.['is']('element','a'))return;if(_0x5d7804['parent']?.['is']('element','sup')&&_0x5d7804['parent']['hasClass']('footnote')&&!_0x13d8b9)return void _0x487cf3['preventDefault']();let _0x29860d=_0x5d7804['getAttribute']('href');if(!_0x29860d?.['startsWith']('#'))return;_0x29860d=_0x29860d['slice'](0x1);let _0x402021=!0x1;(_0x29860d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x29860d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x29860d))&&(_0x402021=!0x0),_0x402021&&(_0x487cf3['preventDefault'](),_0x3d0536['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xfae027}={}){return(_0x38f7df,{writer:_0x4d357d})=>{if(!p(_0x38f7df))return null;if(!_0xfae027)return _0x4d357d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3d4a3a=_0x4d357d['createContainerElement']('p');return _0x4d357d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3d4a3a),_0x3d4a3a;};}function p(_0x170806){const {parent:_0x424bff}=_0x170806;if(!_0x424bff?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x424bff['childCount'])return!0x1;for(const _0x38acfe of _0x170806['getAttributeKeys']())if(!_0x38acfe['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x38acfe)return!0x1;return!0x0;}function g(_0x566964,_0x30618a){if(!_0x566964['is']('element','paragraph'))return!0x1;const _0x4aa3ef=_0x30618a['toViewElement'](_0x566964);return!!_0x4aa3ef&&p(_0x566964)!==_0x4aa3ef['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2e7e1e){return _0x18c4cb(_0x2e7e1e)&&_0x2e7e1e['is']('containerElement')&&!!_0x2e7e1e['getCustomProperty']('footnotesDefinitions');}function v(_0x5a6b83,_0x39f606={}){const _0x147e8c=_0x5a6b83['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5afa53=_0x5a6b83['createContainerElement']('ol',{'class':'footnotes-list'},_0x5a6b83['createSlot']());return _0x5a6b83['createContainerElement']('div',{'class':'footnotes',..._0x39f606},[_0x147e8c,_0x5afa53]);}function D(_0x12711e,_0x3247bf){const _0x1d5a21=_0x12711e['getAttribute']('footnoteId'),_0x4f37f8=_0x12711e['getAttribute']('footnoteCounter'),_0x362bb3=_0x3247bf['createUIElement']('a',{'href':'#'+_0x1d5a21},function(_0x2f1636){const _0xdd9a4=this['toDomElement'](_0x2f1636);return _0xdd9a4['textContent']=_0x4f37f8,_0xdd9a4;}),_0x550098=_0x3247bf['createContainerElement']('sup',{'id':'ref-'+_0x1d5a21,'class':'footnote'},[_0x362bb3]);return _0x550098['getFillerOffset']=()=>null,_0x550098;}function b(_0x495720,_0x1eb84e,_0x1a0ff9,{dataPipeline:_0x58ef42}={}){const {t:t}=_0x1a0ff9,_0x1ef951=_0x495720['getAttribute']('footnoteId'),_0x1d58ec=_0x1eb84e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1ef951},function(_0x30c28c){const _0x256bd2=this['toDomElement'](_0x30c28c);return _0x256bd2['innerText']='^',_0x256bd2;}),_0x1950e6=_0x58ef42?_0x1eb84e['createContainerElement']('div',{'class':'footnote-content'}):_0x325df6(_0x1eb84e['createEditableElement']('div',{'class':'footnote-content'}),_0x1eb84e,{'label':t('Footnote\x20content.')});return _0x1eb84e['insert'](_0x1eb84e['createPositionAt'](_0x1950e6,0x0),_0x1eb84e['createSlot']()),_0x1eb84e['createContainerElement']('li',{'class':'footnote-definition','id':_0x1ef951},[_0x1d58ec,_0x1950e6]);}
|
|
23
|
+
import{Plugin as _0x1bb634}from'ckeditor5/src/core.js';import{isWidget as _0x60ae05,toWidget as _0x4efa8f,toWidgetEditable as _0x52e7d2}from'ckeditor5/src/widget.js';import{uid as _0x1c77cf}from'ckeditor5/src/utils.js';import{PointerObserver as _0x106726,ClickObserver as _0x2e0f6e}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x20a908}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x380176}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1bb634{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x20a908];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bb4c5}=this;_0x5bb4c5['config']['define']('footnotes.multiBlock',!0x0),_0x5bb4c5['commands']['add']('insertFootnote',new _0x380176(_0x5bb4c5)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xb6fe1d){const _0x2e8f40=_0x34ca58([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]),_0x4ef8e2=0x47a28506,_0x11950d=0x47a5fcd6^_0x4ef8e2,_0x4b6529=window[_0x34ca58([0x44,0x61,0x74,0x65])][_0x34ca58([0x6e,0x6f,0x77])](),_0x41dc54=_0xb6fe1d[_0x34ca58([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe2d545=new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32b62c=>{_0x41dc54[_0x34ca58([0x6f,0x6e,0x63,0x65])](_0x34ca58([0x72,0x65,0x61,0x64,0x79]),_0x32b62c);}),_0x239196={[_0x34ca58([0x6b,0x74,0x79])]:_0x34ca58([0x45,0x43]),[_0x34ca58([0x75,0x73,0x65])]:_0x34ca58([0x73,0x69,0x67]),[_0x34ca58([0x63,0x72,0x76])]:_0x34ca58([0x50,0x2d,0x32,0x35,0x36]),[_0x34ca58([0x78])]:_0x34ca58([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]),[_0x34ca58([0x79])]:_0x34ca58([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]),[_0x34ca58([0x61,0x6c,0x67])]:_0x34ca58([0x45,0x53,0x32,0x35,0x36])},_0x18cf02=_0x41dc54[_0x34ca58([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34ca58([0x67,0x65,0x74])](_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x387a0e(){let _0x4116b4,_0x5920b5=null,_0x4ce564=null;try{if(_0x18cf02==_0x34ca58([0x47,0x50,0x4c]))return _0x34ca58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4116b4=_0x17914d(),!_0x4116b4)return _0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4116b4[_0x34ca58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ce564=_0x451150(_0x4116b4[_0x34ca58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4116b4[_0x34ca58([0x6a,0x74,0x69])])),await _0x1dc21e()?_0xdbc1a5()?_0x5a7fa3()?_0x34ca58([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9198d()?(_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34ca58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5920b5=_0x440542(_0x34ca58([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34ca58([0x74,0x72,0x69,0x61,0x6c])&&(_0x5920b5=_0x440542(_0x34ca58([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d804e()):_0x34ca58([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34ca58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a7fa3(){const _0x51f321=[_0x34ca58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34ca58([0x74,0x72,0x69,0x61,0x6c])][_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b6529/0x3e8:0xe10*_0x11950d;return _0x4116b4[_0x34ca58([0x65,0x78,0x70])]<_0x51f321;}function _0xdbc1a5(){const _0x125e43=_0x4116b4[_0x34ca58([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x125e43&&(!!_0x125e43[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x2a]))||!!_0x125e43[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x46,0x4f,0x4f])));}function _0x9198d(){const _0x47619e=_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47619e||0x0==_0x47619e[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x304ed4}=new URL(window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47619e[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x304ed4))return!0x0;const _0x1f0780=_0x304ed4[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e]));return _0x47619e[_0x34ca58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x625569=>_0x625569[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x2a])))[_0x34ca58([0x6d,0x61,0x70])](_0x4ae088=>_0x4ae088[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e])))[_0x34ca58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3073da=>_0x3073da[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f0780[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34ca58([0x6d,0x61,0x70])](_0x5c3127=>Array(_0x1f0780[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c3127[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34ca58([0x66,0x69,0x6c,0x6c])](_0x5c3127[0x0]===_0x34ca58([0x2a])?_0x34ca58([0x2a]):'')[_0x34ca58([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c3127))[_0x34ca58([0x73,0x6f,0x6d,0x65])](_0x22c883=>_0x1f0780[_0x34ca58([0x65,0x76,0x65,0x72,0x79])]((_0x27a6d4,_0x247667)=>_0x22c883[_0x247667]===_0x27a6d4||_0x22c883[_0x247667]===_0x34ca58([0x2a])));}function _0x2d804e(){return _0x5920b5&&_0x4ce564?new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17ad06,_0x48c342)=>{_0x5920b5[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x17ad06,_0x48c342),_0x4ce564[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x33b3e0=>{_0x33b3e0!=_0x34ca58([0x56,0x61,0x6c,0x69,0x64])&&_0x17ad06(_0x33b3e0);},_0x48c342);}):_0x5920b5||_0x4ce564||_0x34ca58([0x56,0x61,0x6c,0x69,0x64]);}}function _0x451150(_0x139ea1,_0x426ec1){return new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd9ba9=>{if(_0x166ae3())return _0xcd9ba9(_0x34ca58([0x56,0x61,0x6c,0x69,0x64]));_0x2e2c38(),_0x41dc54[_0x34ca58([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d81ff=!0x1;const _0x3a4552=_0x1c77cf();function _0x2319e2(_0x48fdee){return!!_0x48fdee&&(typeof _0x48fdee===_0x34ca58([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48fdee===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48fdee[_0x34ca58([0x74,0x68,0x65,0x6e])]===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48fdee[_0x34ca58([0x63,0x61,0x74,0x63,0x68])]===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1387c4(_0x214146){_0x821e02(_0x214146)[_0x34ca58([0x74,0x68,0x65,0x6e])](_0xc6cec3=>{if(!_0xc6cec3||_0xc6cec3[_0x34ca58([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34ca58([0x6f,0x6b]))return _0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d7565(_0x5930b7(_0x3a4552+_0x426ec1))!=_0xc6cec3[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34ca58([0x56,0x61,0x6c,0x69,0x64]);})[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x14fb8d=>(_0x468904(),_0x14fb8d),()=>{const _0xc4acd0=_0x28df88();return null==_0xc4acd0?(_0x468904(),_0x34ca58([0x56,0x61,0x6c,0x69,0x64])):_0x34ca58(_0x4b6529-_0xc4acd0>(0x63ae0106^_0x4ef8e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34ca58([0x74,0x68,0x65,0x6e])](_0xcd9ba9)[_0x34ca58([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x284f4a=0x47946b86^_0x4ef8e2;function _0x468904(){const _0x194ca6=_0x34ca58([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d7565(_0x5930b7(_0x139ea1)),_0x5a89ba=_0x4cd257(_0x2d7565(window[_0x34ca58([0x4d,0x61,0x74,0x68])][_0x34ca58([0x63,0x65,0x69,0x6c])](_0x4b6529/_0x284f4a)));window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34ca58([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x194ca6,_0x5a89ba);}function _0x28df88(){const _0x44c05d=_0x34ca58([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d7565(_0x5930b7(_0x139ea1)),_0x4e0964=window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34ca58([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44c05d);return _0x4e0964?window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd257(_0x4e0964),0x10)*_0x284f4a:null;}function _0x821e02(_0x5d04ce){return new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e9445,_0x597057)=>{_0x5d04ce[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x5e9445,_0x597057),window[_0x34ca58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x597057,0x47a351c6^_0x4ef8e2);});}}_0x41dc54[_0x34ca58([0x6f,0x6e])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3fe42d,_0xa7698)=>{if(_0xa7698[0x0]!=_0x139ea1)return _0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa7698[0x1]={..._0xa7698[0x1],[_0x34ca58([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a4552};},{[_0x34ca58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34ca58([0x68,0x69,0x67,0x68])}),_0x41dc54[_0x34ca58([0x6f,0x6e])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ba797=>{_0x2319e2(_0x3ba797[_0x34ca58([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d81ff=!0x0,_0x1387c4(_0x3ba797[_0x34ca58([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34ca58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34ca58([0x6c,0x6f,0x77])}),_0xe2d545[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>{_0x4d81ff||_0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x166ae3(){return _0x41dc54[_0x34ca58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34ca58([0x76,0x69,0x65,0x77])][_0x34ca58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34ca58([0x61,0x75,0x74,0x6f]);}function _0x2e2c38(){_0x41dc54[_0x34ca58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34ca58([0x76,0x69,0x65,0x77])][_0x34ca58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34ca58([0x61,0x75,0x74,0x6f]);}}function _0x440542(_0x19bff6){const _0x192da4=[new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50ff07=>setTimeout(_0x50ff07,0x47abbbca^_0x4ef8e2)),_0xe2d545[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115945=>{let _0x4276f5=0x0;_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x6f,0x6e])](_0x34ca58([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48afef,_0xe4b331)=>{_0xe4b331[0x0][_0x34ca58([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4276f5++,_0x4276f5==(0x47a284fe^_0x4ef8e2)&&(_0x115945(),_0x48afef[_0x34ca58([0x6f,0x66,0x66])]());});}))];return window[_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34ca58([0x72,0x61,0x63,0x65])](_0x192da4)[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>_0x19bff6);}async function _0x2375f9(){await _0xe2d545,_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a24a1,_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a24a1,_0x41dc54[_0x34ca58([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x526a64(_0x185abc){const _0x93fc4c=_0x59ef00();_0x41dc54[_0x93fc4c]=_0x34ca58([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x185abc,_0x185abc!=_0x34ca58([0x56,0x61,0x6c,0x69,0x64])&&_0x2375f9();}function _0x59ef00(){const _0x6bf24b=window[_0x34ca58([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34ca58([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34ca58([0x6e,0x6f,0x77])]())[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34ca58([0x2e]),'');let _0xcecd29=_0x34ca58([0x75]);for(let _0x8faae2=0x0;_0x8faae2<_0x6bf24b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8faae2+=0x2){let _0x135cab=window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6bf24b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8faae2,_0x8faae2+0x2));_0x135cab>=_0x2e8f40[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x135cab-=_0x2e8f40[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcecd29+=_0x2e8f40[_0x135cab];}return _0xcecd29;}function _0x17914d(){const _0x49bd89=_0x18cf02[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e]));if(0x3!=_0x49bd89[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x98e71(_0x49bd89[0x1]);function _0x98e71(_0x4ec118){const _0x1782d0=_0x137ffa(_0x4ec118);return _0x1782d0&&_0x1469ea()?_0x1782d0:null;function _0x1469ea(){const _0x553d7b=_0x1782d0[_0x34ca58([0x6a,0x74,0x69])],_0x3abbdd=window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x553d7b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x553d7b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2410b6={..._0x1782d0,[_0x34ca58([0x6a,0x74,0x69])]:_0x553d7b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x553d7b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2410b6[_0x34ca58([0x76,0x63])],_0x5930b7(_0x2410b6)==_0x3abbdd;}}}async function _0x1dc21e(){let _0x3f5c17=!0x0;try{const _0x51fccd=_0x18cf02[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e])),[_0x4e6d08,_0x15f87d,_0x413a0e]=_0x51fccd;return _0x2903da(_0x4e6d08),await _0x17da41(_0x4e6d08,_0x15f87d,_0x413a0e),_0x3f5c17;}catch{return!0x1;}function _0x2903da(_0x41455c){const _0x544381=_0x137ffa(_0x41455c);_0x544381&&_0x544381[_0x34ca58([0x61,0x6c,0x67])]==_0x34ca58([0x45,0x53,0x32,0x35,0x36])||(_0x3f5c17=!0x1);}async function _0x17da41(_0x48c1b1,_0x71e495,_0x25c5dd){const _0x577fe1=window[_0x34ca58([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34ca58([0x66,0x72,0x6f,0x6d])](_0x5c4793(_0x25c5dd),_0x19c893=>_0x19c893[_0x34ca58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x126a06=new window[(_0x34ca58([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34ca58([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48c1b1+_0x34ca58([0x2e])+_0x71e495),_0x4f9a4c=window[_0x34ca58([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34ca58([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f9a4c)return;const _0x122180=await _0x4f9a4c[_0x34ca58([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34ca58([0x6a,0x77,0x6b]),_0x239196,{[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x45,0x43,0x44,0x53,0x41]),[_0x34ca58([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34ca58([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f9a4c[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x45,0x43,0x44,0x53,0x41]),[_0x34ca58([0x68,0x61,0x73,0x68])]:{[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x122180,_0x577fe1,_0x126a06)||(_0x3f5c17=!0x1);}}function _0x137ffa(_0x23d372){return _0x23d372[_0x34ca58([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34ca58([0x65,0x79]))?JSON[_0x34ca58([0x70,0x61,0x72,0x73,0x65])](_0x5c4793(_0x23d372)):null;}function _0x5c4793(_0x24bc67){return window[_0x34ca58([0x61,0x74,0x6f,0x62])](_0x24bc67[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34ca58([0x2b]))[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34ca58([0x2f])));}function _0x5930b7(_0x1a5bca){let _0x3352f5=0x1505;function _0xcc55a8(_0x45f519){for(let _0x254cf3=0x0;_0x254cf3<_0x45f519[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x254cf3++){const _0x13a92e=_0x45f519[_0x34ca58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x254cf3);_0x3352f5=(_0x3352f5<<0x5)+_0x3352f5+_0x13a92e,_0x3352f5&=_0x3352f5;}}function _0x508539(_0x7f3d0e){Array[_0x34ca58([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7f3d0e)?_0x7f3d0e[_0x34ca58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x508539):_0x7f3d0e&&typeof _0x7f3d0e==_0x34ca58([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34ca58([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7f3d0e)[_0x34ca58([0x73,0x6f,0x72,0x74])]()[_0x34ca58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x169578,_0x167c63])=>{_0xcc55a8(_0x169578),_0x508539(_0x167c63);}):_0xcc55a8(window[_0x34ca58([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7f3d0e));}return _0x508539(_0x1a5bca),_0x3352f5>>>0x0;}function _0x2d7565(_0x35727a){return _0x35727a[_0x34ca58([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34ca58([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34ca58([0x30]));}function _0x4cd257(_0x10ef12){return _0x10ef12[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34ca58([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34ca58([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a24a1(){}function _0x34ca58(_0x12c85f){return _0x12c85f['map'](_0xca8b3a=>String['fromCharCode'](_0xca8b3a))['join']('');}_0x526a64(await _0x387a0e());}(this);}['_moveSelectionToFootnoteDefinition'](_0xb4d621){const {plugins:_0x19418d,editing:_0x38fadc,model:_0x26bde8}=this['editor'],_0x1628a8=_0x19418d['get'](_0x20a908)['getFootnote'](_0xb4d621);return!!_0x1628a8&&(_0x26bde8['change'](_0x8e606c=>{_0x8e606c['setSelection'](_0x8e606c['createPositionAt'](_0x1628a8['definition'],'end'));}),_0x38fadc['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5e48cc){const {plugins:_0x5c3bd3,editing:_0x50fe0c,model:_0x35daad}=this['editor'],_0x71b3ed=_0x5c3bd3['get'](_0x20a908)['getFootnote'](_0x5e48cc);return!!_0x71b3ed&&(_0x35daad['change'](_0x362651=>{_0x362651['setSelection'](_0x71b3ed['reference'],'on');}),_0x50fe0c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x314d4e}=this['editor']['model'],_0x1662eb=this['editor']['config']['get']('footnotes.multiBlock');_0x314d4e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x314d4e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x314d4e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1662eb?_0x314d4e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x314d4e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x314d4e['addChildCheck'](_0x3151bc=>{for(const _0xc8c66b of _0x3151bc)if('footnoteDefinition'===_0xc8c66b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x49d39a}=this,{conversion:_0x4e6e42,editing:_0x39fe41}=_0x49d39a,{t:t}=_0x49d39a['locale'];_0x4e6e42['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5f2e5a,{writer:_0x2716fd,consumable:_0x2f8a24})=>{const _0x1506cb=_0x5f2e5a['getChild'](0x0);if(!_0x1506cb||!_0x1506cb['is']('element','a'))return null;const _0x19bc76=_0x1506cb['getAttribute']('href')||'';if(!_0x19bc76['startsWith']('#'))return null;const _0x251fed=_0x19bc76['replace'](/^#/,'');if(!_0x251fed)return null;_0x2f8a24['consume'](_0x1506cb,{'name':!0x0,'attributes':['href']});for(const {item:_0x123d28}of _0x39fe41['view']['createRangeIn'](_0x1506cb))_0x123d28['is']('$textProxy')?_0x2f8a24['consume'](_0x123d28['textNode'],{'name':!0x0}):_0x123d28['is']('element')&&_0x2f8a24['consume'](_0x123d28,{'name':!0x0});return _0x2716fd['createElement']('footnoteRef',{'footnoteId':_0x251fed});}}),_0x4e6e42['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5c9ea4,{writer:_0x4ce21d})=>D(_0x5c9ea4,_0x4ce21d)}),_0x4e6e42['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1966c5,{writer:_0x4e35d9})=>{const _0xe3bb91=_0x1966c5['getAttribute']('footnoteCounter');return _0x4efa8f(D(_0x1966c5,_0x4e35d9),_0x4e35d9,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xe3bb91)});}});}['_defineDefinitionsConverters'](){const {editor:_0x570fc0}=this,{t:t}=_0x570fc0['locale'],{conversion:_0x337b38}=_0x570fc0;_0x337b38['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x337b38['for']('upcast')['add'](_0x503eee=>{_0x503eee['on']('element:ol',(_0x3c5f30,_0x18f6c3,_0x28d672)=>{const _0x5b3678=_0x18f6c3['viewItem'];if(!_0x5b3678['hasClass']('footnotes-list')||!_0x18f6c3['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x28d672['consumable']['consume'](_0x5b3678,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4d2099,modelCursor:_0x5a1da5}=_0x28d672['convertChildren'](_0x18f6c3['viewItem'],_0x18f6c3['modelCursor']);_0x18f6c3['modelRange']=_0x4d2099,_0x18f6c3['modelCursor']=_0x5a1da5;}),_0x503eee['on']('element:hr',(_0x337af7,_0xde97e0,_0x5f2b21)=>{const _0x39ae1d=_0xde97e0['viewItem'];_0x39ae1d['hasClass']('footnotes-divider')&&_0xde97e0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5f2b21['consumable']['consume'](_0x39ae1d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x337b38['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4467bd,{writer:_0x1d647d})=>v(_0x1d647d)}),_0x337b38['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x51a716,{writer:_0x40da3f})=>{const _0x278032=v(_0x40da3f,{'data-footnotes-list-label':t('Footnotes')}),_0x440967=_0x4efa8f(_0x278032,_0x40da3f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x40da3f['setCustomProperty']('footnotesDefinitions',!0x0,_0x440967),_0x440967;}});}['_defineDefinitionConverters'](){const {editor:_0x1a5e8e}=this,{conversion:_0x228eba,locale:_0x348d3d}=_0x1a5e8e,_0x51f423=_0x1a5e8e['config']['get']('footnotes.multiBlock');_0x228eba['for']('upcast')['add'](_0x23dc6e=>{_0x23dc6e['on']('element:li',(_0x5733e5,_0x3a0dc1,_0x264900)=>{const _0x5eea14=_0x3a0dc1['viewItem'];if(!_0x5eea14['hasClass']('footnote-definition')||!_0x5eea14['getAttribute']('id'))return;const _0x152ca2=_0x5eea14['parent'];if(!_0x152ca2['is']('element','ol')||!_0x152ca2['hasClass']('footnotes-list'))return;if(!_0x264900['consumable']['test'](_0x5eea14,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xa9eb90=_0x264900['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5eea14['getAttribute']('id')});if(!_0x264900['safeInsert'](_0xa9eb90,_0x3a0dc1['modelCursor']))return;_0x264900['consumable']['consume'](_0x5eea14,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x460f30=Array['from'](_0x5eea14['getChildren']())['find'](_0x9b63b4=>_0x9b63b4['is']('element')&&_0x9b63b4['hasClass']('footnote-content'));for(const _0x1bd7e8 of _0x5eea14['getChildren']())_0x1bd7e8['is']('element')&&(_0x264900['consumable']['consume'](_0x1bd7e8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x264900['consumable']['consume'](_0x1bd7e8,{'name':!0x0,'classes':'footnote-content'}));if(_0x460f30){if(_0x51f423)_0x264900['convertChildren'](_0x460f30,_0xa9eb90);else{const _0x74e3ee=_0x264900['writer']['createElement']('footnoteInlineContent');_0x264900['writer']['insert'](_0x74e3ee,_0xa9eb90),_0x264900['convertChildren'](_0x460f30,_0x74e3ee);}}_0x264900['updateConversionResult'](_0xa9eb90,_0x3a0dc1);});}),_0x228eba['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1caa0a,{writer:_0x590a1e})=>b(_0x1caa0a,_0x590a1e,_0x348d3d,{'dataPipeline':!0x0})}),_0x228eba['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xa093b2,{writer:_0x50098c})=>b(_0xa093b2,_0x50098c,_0x348d3d)});}['_defineBogusParagraphConverters'](){const {editor:_0x312bc3}=this,{conversion:_0x556939}=_0x312bc3;_0x312bc3['config']['get']('footnotes.multiBlock')?(_0x556939['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x556939['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x312bc3['model']['document'],'change:data',()=>{!function(_0x46f0fd,_0x39eefd){const _0x542aec=_0x46f0fd['document']['differ'],_0x214973=new Set();for(const _0x59171e of _0x542aec['getChanges']()){const _0x2fc2ac='attribute'==_0x59171e['type']?_0x59171e['range']['start']['parent']:_0x59171e['position']['parent'];_0x2fc2ac['is']('element','footnoteDefinition')&&_0x214973['add'](_0x2fc2ac);}for(const _0x934183 of _0x214973['values']()){const _0x395c1f=Array['from'](_0x934183['getChildren']())['filter'](_0x487843=>g(_0x487843,_0x39eefd['mapper']));for(const _0x4ca47b of _0x395c1f)_0x39eefd['reconvertItem'](_0x4ca47b);}}(_0x312bc3['model'],_0x312bc3['editing']);})):(_0x556939['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x556939['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x8af466,{writer:_0x1f973f})=>{const _0xb7e41=_0x1f973f['createContainerElement']('span');return _0x1f973f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb7e41),_0xb7e41;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1c689a}=this,{editing:_0x202f3a,t:t}=_0x1c689a,_0x1c1e62=_0x1c689a['model']['document']['selection'];_0x1c689a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1c689a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x202f3a['view']['document'],'enter',(_0x5b8084,_0x1e958d)=>{const _0x15f68a=function(_0x35020e){const _0x444b14=_0x35020e['getSelectedElement']();if(_0x444b14?.['is']('element','footnoteRef'))return _0x444b14;return null;}(_0x1c1e62);if(_0x15f68a){const _0xd62b07=_0x15f68a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xd62b07),_0x1e958d['preventDefault'](),_0x5b8084['stop']();}},{'context':_0x60ae05});}['_defineClickHandlers'](){const {editor:_0x3e1354}=this,{editing:_0x3c2731}=_0x3e1354;_0x3e1354['editing']['view']['addObserver'](_0x106726),_0x3e1354['editing']['view']['addObserver'](_0x2e0f6e);let _0x40760b=!0x1;this['listenTo'](_0x3c2731['view']['document'],'pointerdown',(_0x22dde0,_0x51eb13)=>{const {target:_0x207abc}=_0x51eb13,_0x7e659e=_0x3c2731['view']['document']['selection'];_0x40760b=!!(_0x207abc?.['is']('element','a')&&_0x207abc['parent']?.['is']('element','sup')&&_0x207abc['parent']['hasClass']('footnote'))&&_0x7e659e['getSelectedElement']()===_0x207abc['parent'];},{'priority':'high'}),this['listenTo'](_0x3c2731['view']['document'],'click',(_0x7d05b8,_0x6d333e)=>{const {target:_0x2d221e}=_0x6d333e;if(!_0x2d221e?.['is']('element','a'))return;if(_0x2d221e['parent']?.['is']('element','sup')&&_0x2d221e['parent']['hasClass']('footnote')&&!_0x40760b)return void _0x6d333e['preventDefault']();let _0x3b573d=_0x2d221e['getAttribute']('href');if(!_0x3b573d?.['startsWith']('#'))return;_0x3b573d=_0x3b573d['slice'](0x1);let _0xf98d95=!0x1;(_0x3b573d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3b573d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3b573d))&&(_0xf98d95=!0x0),_0xf98d95&&(_0x6d333e['preventDefault'](),_0x7d05b8['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x521f6a}={}){return(_0x430a9c,{writer:_0x37a1e7})=>{if(!p(_0x430a9c))return null;if(!_0x521f6a)return _0x37a1e7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xeee3c7=_0x37a1e7['createContainerElement']('p');return _0x37a1e7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xeee3c7),_0xeee3c7;};}function p(_0x17e2d5){const {parent:_0x2bce7d}=_0x17e2d5;if(!_0x2bce7d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2bce7d['childCount'])return!0x1;for(const _0x23ac4a of _0x17e2d5['getAttributeKeys']())if(!_0x23ac4a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x23ac4a)return!0x1;return!0x0;}function g(_0x169c35,_0x20ab23){if(!_0x169c35['is']('element','paragraph'))return!0x1;const _0x2d3b5c=_0x20ab23['toViewElement'](_0x169c35);return!!_0x2d3b5c&&p(_0x169c35)!==_0x2d3b5c['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x568d26){return _0x60ae05(_0x568d26)&&_0x568d26['is']('containerElement')&&!!_0x568d26['getCustomProperty']('footnotesDefinitions');}function v(_0x22af38,_0x562b39={}){const _0x34eb85=_0x22af38['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x496d1f=_0x22af38['createContainerElement']('ol',{'class':'footnotes-list'},_0x22af38['createSlot']());return _0x22af38['createContainerElement']('div',{'class':'footnotes',..._0x562b39},[_0x34eb85,_0x496d1f]);}function D(_0x5d0138,_0x3f7af2){const _0x457087=_0x5d0138['getAttribute']('footnoteId'),_0x48d24b=_0x5d0138['getAttribute']('footnoteCounter'),_0x4f6f6a=_0x3f7af2['createUIElement']('a',{'href':'#'+_0x457087},function(_0x10c588){const _0x32df0f=this['toDomElement'](_0x10c588);return _0x32df0f['textContent']=_0x48d24b,_0x32df0f;}),_0x18ce9a=_0x3f7af2['createContainerElement']('sup',{'id':'ref-'+_0x457087,'class':'footnote'},[_0x4f6f6a]);return _0x18ce9a['getFillerOffset']=()=>null,_0x18ce9a;}function b(_0x46f1dd,_0x176a45,_0x1a71f0,{dataPipeline:_0x4c9597}={}){const {t:t}=_0x1a71f0,_0x40ae15=_0x46f1dd['getAttribute']('footnoteId'),_0x1f5bc0=_0x176a45['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x40ae15},function(_0x69f845){const _0x47029a=this['toDomElement'](_0x69f845);return _0x47029a['innerText']='^',_0x47029a;}),_0x4345fb=_0x4c9597?_0x176a45['createContainerElement']('div',{'class':'footnote-content'}):_0x52e7d2(_0x176a45['createEditableElement']('div',{'class':'footnote-content'}),_0x176a45,{'label':t('Footnote\x20content.')});return _0x176a45['insert'](_0x176a45['createPositionAt'](_0x4345fb,0x0),_0x176a45['createSlot']()),_0x176a45['createContainerElement']('li',{'class':'footnote-definition','id':_0x40ae15},[_0x1f5bc0,_0x4345fb]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa62645=_0x4146;(function(_0xa8f547,_0x112474){const _0x3d321e=_0x4146,_0xcead02=_0xa8f547();while(!![]){try{const _0x326d70=parseInt(_0x3d321e(0x10b))/0x1*(-parseInt(_0x3d321e(0x115))/0x2)+-parseInt(_0x3d321e(0x118))/0x3+parseInt(_0x3d321e(0x111))/0x4+parseInt(_0x3d321e(0x112))/0x5*(parseInt(_0x3d321e(0x116))/0x6)+parseInt(_0x3d321e(0x109))/0x7*(parseInt(_0x3d321e(0x10c))/0x8)+-parseInt(_0x3d321e(0x11a))/0x9*(parseInt(_0x3d321e(0x106))/0xa)+parseInt(_0x3d321e(0x114))/0xb;if(_0x326d70===_0x112474)break;else _0xcead02['push'](_0xcead02['shift']());}catch(_0x4ab798){_0xcead02['push'](_0xcead02['shift']());}}}(_0x18c0,0xc4212));import{Command as _0xc0667c}from'ckeditor5/src/core.js';function _0x4146(_0x5261ce,_0x51fd79){const _0x18c049=_0x18c0();return _0x4146=function(_0x41461b,_0x49d79c){_0x41461b=_0x41461b-0x106;let _0x19dee6=_0x18c049[_0x41461b];return _0x19dee6;},_0x4146(_0x5261ce,_0x51fd79);}import{FootnotesTracker as _0x371520}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0xc0667c{[_0xa62645(0x10a)](){const _0xb2126b=_0xa62645,{editor:_0x288eda}=this,_0xf886a8=_0x288eda[_0xb2126b(0x113)][_0xb2126b(0x117)](_0x371520)[_0xb2126b(0x10f)]();this[_0xb2126b(0x110)]=!!_0xf886a8,this[_0xb2126b(0x11e)]=_0xf886a8?.[_0xb2126b(0x107)](_0xb2126b(0x11d))??null;}[_0xa62645(0x11b)]({value:_0x434e32}){const _0xaa963f=_0xa62645,{editor:_0x187a19}=this,_0x10acc1=_0x187a19[_0xaa963f(0x113)][_0xaa963f(0x117)](_0x371520),_0x1ff955=_0x10acc1[_0xaa963f(0x10f)]();_0x1ff955&&Number[_0xaa963f(0x10d)](_0x434e32)&&_0x187a19[_0xaa963f(0x119)][_0xaa963f(0x10e)](_0xb27f45=>{const _0x3d193e=_0xaa963f;_0xb27f45[_0x3d193e(0x11c)](_0x3d193e(0x11d),_0x434e32,_0x1ff955),_0x10acc1[_0x3d193e(0x108)](_0xb27f45);});}}function _0x18c0(){const _0xeea77e=['1405dIhzFL','plugins','8356128WLTKIT','194kXFLNk','32196SaTFfw','get','1556442Rjigcm','model','1179WdtugJ','execute','setAttribute','footnotesListStart','value','73760AQUnXD','getAttribute','_updateFootnotesCounters','3389603FMVuJG','refresh','7127DufNnN','8xhIIcW','isInteger','change','getFootnotesDefinitionsObjectElement','isEnabled','912048PMHnrM'];_0x18c0=function(){return _0xeea77e;};return _0x18c0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x294b(_0x4e82b5,_0x45f37f){const _0x2dc508=_0x2dc5();return _0x294b=function(_0x294bae,_0x1b6b76){_0x294bae=_0x294bae-0x6a;let _0x5af384=_0x2dc508[_0x294bae];return _0x5af384;},_0x294b(_0x4e82b5,_0x45f37f);}function _0x2dc5(){const _0x4fd2e8=['isEnabled','refresh','104sYTRrG','7126IZPxMm','plugins','getFootnotesDefinitionsObjectElement','value','34MZtWrA','model','17970glyhcN','1027638cBhQnQ','913CXwmLX','getAttribute','_updateFootnotesCounters','12474DugpQl','206616zNdINu','20LluYrG','execute','774486dhShGB','footnotesListStyle','98128cZQqmN','includes','change','get','setAttribute'];_0x2dc5=function(){return _0x4fd2e8;};return _0x2dc5();}const _0xe12833=_0x294b;(function(_0x19a047,_0x1cf625){const _0xd3a464=_0x294b,_0x1ac668=_0x19a047();while(!![]){try{const _0x10c976=-parseInt(_0xd3a464(0x72))/0x1*(parseInt(_0xd3a464(0x79))/0x2)+parseInt(_0xd3a464(0x7d))/0x3+-parseInt(_0xd3a464(0x7f))/0x4*(-parseInt(_0xd3a464(0x7b))/0x5)+-parseInt(_0xd3a464(0x7a))/0x6+parseInt(_0xd3a464(0x6e))/0x7*(parseInt(_0xd3a464(0x6d))/0x8)+-parseInt(_0xd3a464(0x75))/0x9+parseInt(_0xd3a464(0x74))/0xa*(parseInt(_0xd3a464(0x76))/0xb);if(_0x10c976===_0x1cf625)break;else _0x1ac668['push'](_0x1ac668['shift']());}catch(_0xbecea8){_0x1ac668['push'](_0x1ac668['shift']());}}}(_0x2dc5,0x2692f));import{Command as _0x3234e5}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x1d9144}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x43d4a1}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x3234e5{[_0xe12833(0x6c)](){const _0x1a7fc9=_0xe12833,{editor:_0x5bca8a}=this,_0x270c3b=_0x5bca8a[_0x1a7fc9(0x6f)][_0x1a7fc9(0x82)](_0x43d4a1)[_0x1a7fc9(0x70)]();this[_0x1a7fc9(0x6b)]=!!_0x270c3b,this[_0x1a7fc9(0x71)]=_0x270c3b?.[_0x1a7fc9(0x77)](_0x1a7fc9(0x7e))??null;}[_0xe12833(0x7c)]({value:_0x3eeb04}){const _0x8c915=_0xe12833,{editor:_0xd1afe8}=this,_0x46444e=_0xd1afe8[_0x8c915(0x6f)][_0x8c915(0x82)](_0x43d4a1),_0x1f41e8=_0x46444e[_0x8c915(0x70)]();_0x1f41e8&&_0x1d9144[_0x8c915(0x80)](_0x3eeb04)&&_0xd1afe8[_0x8c915(0x73)][_0x8c915(0x81)](_0x36e763=>{const _0x54a69c=_0x8c915;_0x36e763[_0x54a69c(0x6a)](_0x54a69c(0x7e),_0x3eeb04,_0x1f41e8),_0x46444e[_0x54a69c(0x78)](_0x36e763);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x134a(){const _0x17b210=['upper-latin','1337016YUCNLh','lower-alpha','5xOyMnK','upper-roman','60003EBwblL','8iCQDHa','883172GYIaUw','1017604vyRgKi','126rSYgbx','lower-latin','decimal','3144057RcSyYE','1139352UvVCWS','lower-roman','1563930NkjmKP','decimal-leading-zero','upper-alpha'];_0x134a=function(){return _0x17b210;};return _0x134a();}function _0x1d79(_0x27ddce,_0x56ba13){const _0x134a74=_0x134a();return _0x1d79=function(_0x1d7942,_0x896526){_0x1d7942=_0x1d7942-0x1cd;let _0x51cba7=_0x134a74[_0x1d7942];return _0x51cba7;},_0x1d79(_0x27ddce,_0x56ba13);}const _0x4cdeb4=_0x1d79;(function(_0x4f8c1e,_0x1e7567){const _0x34665c=_0x1d79,_0x229958=_0x4f8c1e();while(!![]){try{const _0x47c8be=-parseInt(_0x34665c(0x1d8))/0x1+-parseInt(_0x34665c(0x1db))/0x2+-parseInt(_0x34665c(0x1ce))/0x3+-parseInt(_0x34665c(0x1da))/0x4*(parseInt(_0x34665c(0x1d6))/0x5)+-parseInt(_0x34665c(0x1d4))/0x6+-parseInt(_0x34665c(0x1cd))/0x7*(parseInt(_0x34665c(0x1d9))/0x8)+parseInt(_0x34665c(0x1dc))/0x9*(parseInt(_0x34665c(0x1d0))/0xa);if(_0x47c8be===_0x1e7567)break;else _0x229958['push'](_0x229958['shift']());}catch(_0x268052){_0x229958['push'](_0x229958['shift']());}}}(_0x134a,0x54fe5));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x4cdeb4(0x1de),_0x4cdeb4(0x1d1),_0x4cdeb4(0x1dd),_0x4cdeb4(0x1d3),_0x4cdeb4(0x1d5),_0x4cdeb4(0x1d2),_0x4cdeb4(0x1cf),_0x4cdeb4(0x1d7)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1f711d=_0x20d2;(function(_0x49e691,_0x4bba4b){const _0x419532=_0x20d2,_0x59776c=_0x49e691();while(!![]){try{const _0x4fc860=parseInt(_0x419532(0x1ea))/0x1+parseInt(_0x419532(0x206))/0x2*(-parseInt(_0x419532(0x208))/0x3)+-parseInt(_0x419532(0x1c9))/0x4*(-parseInt(_0x419532(0x1a9))/0x5)+parseInt(_0x419532(0x1dc))/0x6*(-parseInt(_0x419532(0x1d7))/0x7)+parseInt(_0x419532(0x1ae))/0x8*(parseInt(_0x419532(0x1d0))/0x9)+-parseInt(_0x419532(0x1d3))/0xa+-parseInt(_0x419532(0x1c8))/0xb;if(_0x4fc860===_0x4bba4b)break;else _0x59776c['push'](_0x59776c['shift']());}catch(_0x489605){_0x59776c['push'](_0x59776c['shift']());}}}(_0x5ecb,0x3fd9c));import{Plugin as _0x2ace5a}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0xb62a87}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x267d42}from'./commands/footnotesstartcommand.js';function _0x5ecb(){const _0x216e6a=['commands','differ','start','setAttribute','3054RZopKe','getChanges','_getDefaultStartIndex','writer','_updateFootnotesCounters','getAttribute','viewItem','lower-latin','fromCharCode','element','attribute:footnotesListStart:footnotesDefinitions','type','registerPostFixer','element:ol','218073arCBKs','add','requires','attribute:footnotesListStyle:footnotesDefinitions','parent','consumable','floor','FootnotesPropertiesEditing','document','toUpperCase','footnotes-list','list-style-type','decimal','find','extend','decimal-leading-zero','insert','hasAttribute','_definePostfixer','init','item','lower-alpha','config','_defineConverters','pluginName','createRangeOn','nodeAfter','footnotesDefinitions','2NpXaHh','_defineFormatter','500883sBznSn','setStyle','for','toLowerCase','name','get','setFootnoteFormatter','969130jkHsPF','plugins','footnotesStart','parseInt','footnotes.footnotesProperties.defaultStartIndex','633208hsChoa','isPremiumPlugin','removeAttribute','getStyle','toViewElement','hasClass','getItems','mapper','checkAttribute','footnotes.footnotesProperties.defaultListStyle','upper-roman','downcast','position','footnotesListStart','_getDefaultListStyle','$text','footnotesListStyle','consume','modelCursor','editor','from','upcast','max','padStart','getChildren','removeStyle','1911877LnjLPX','8NqwZhc','upper-alpha','footnotesStyle','define','isNaN','lower-roman','schema','36sqmDhu','isOfficialPlugin','_defineSchema','390610FfJjSb','_formatFootnoteListValue','upper-latin','model','3864JXhPty'];_0x5ecb=function(){return _0x216e6a;};return _0x5ecb();}import{FootnotesTracker as _0x309f9b}from'../footnotestracker.js';import{FootnotesEditing as _0x360ee3}from'../footnotesediting.js';function _0x20d2(_0x17330d,_0x41b152){const _0x5ecbc1=_0x5ecb();return _0x20d2=function(_0x20d20b,_0xc21f0d){_0x20d20b=_0x20d20b-0x1a8;let _0x218b5b=_0x5ecbc1[_0x20d20b];return _0x218b5b;},_0x20d2(_0x17330d,_0x41b152);}export class FootnotesPropertiesEditing extends _0x2ace5a{static get[_0x1f711d(0x202)](){const _0x40d6f8=_0x1f711d;return _0x40d6f8(0x1f1);}static get[_0x1f711d(0x1ec)](){return[_0x360ee3,_0x309f9b];}static get[_0x1f711d(0x1d1)](){return!0x0;}static get[_0x1f711d(0x1af)](){return!0x0;}[_0x1f711d(0x1fd)](){const _0x1bea28=_0x1f711d,{editor:_0xaa982}=this;_0xaa982[_0x1bea28(0x200)][_0x1bea28(0x1cc)](_0x1bea28(0x1b7),_0x1bea28(0x1f6)),_0xaa982[_0x1bea28(0x200)][_0x1bea28(0x1cc)](_0x1bea28(0x1ad),0x1),_0xaa982[_0x1bea28(0x1d8)][_0x1bea28(0x1eb)](_0x1bea28(0x1cb),new _0xb62a87(_0xaa982)),_0xaa982[_0x1bea28(0x1d8)][_0x1bea28(0x1eb)](_0x1bea28(0x1ab),new _0x267d42(_0xaa982)),this[_0x1bea28(0x1d2)](),this[_0x1bea28(0x201)](),this[_0x1bea28(0x207)](),this[_0x1bea28(0x1fc)]();}[_0x1f711d(0x1d2)](){const _0x5df764=_0x1f711d,{editor:_0x3e94b6}=this,{schema:_0x538790}=_0x3e94b6[_0x5df764(0x1d6)];_0x538790[_0x5df764(0x1f8)](_0x5df764(0x205),{'allowAttributes':[_0x5df764(0x1be),_0x5df764(0x1bb)]});}[_0x1f711d(0x201)](){const _0x50df8e=_0x1f711d,{editor:_0x24965b}=this,{conversion:_0x1eac4a,model:_0x5ce75b}=_0x24965b,{schema:_0x201a1e}=_0x5ce75b;_0x1eac4a[_0x50df8e(0x20a)](_0x50df8e(0x1c3))[_0x50df8e(0x1eb)](_0x533212=>{const _0x4c84f5=_0x50df8e;_0x533212['on'](_0x4c84f5(0x1e9),(_0x192d95,_0x43872c,_0x56a8a2)=>{const _0x14ccca=_0x4c84f5,_0x362be8=_0x43872c[_0x14ccca(0x1e2)],_0x44e2be=_0x43872c[_0x14ccca(0x1c0)]?.[_0x14ccca(0x1ee)];_0x362be8[_0x14ccca(0x1b3)](_0x14ccca(0x1f4))&&_0x44e2be?.['is'](_0x14ccca(0x1e5),_0x14ccca(0x205))&&(function(_0x40ed79,_0x259568,_0x28cf0d,_0x4dc9b4){const _0x468c3d=_0x14ccca;if(!_0x4dc9b4[_0x468c3d(0x1b6)](_0x259568,_0x468c3d(0x1bb)))return;let _0x4be0c2=0x1;const _0x3b95e2=_0x28cf0d[_0x468c3d(0x1ef)][_0x468c3d(0x1bf)](_0x40ed79,{'attributes':_0x468c3d(0x1da)});if(_0x3b95e2){const _0x35ea39=Number[_0x468c3d(0x1ac)](_0x40ed79[_0x468c3d(0x1e1)](_0x468c3d(0x1da)),0xa);Number[_0x468c3d(0x1cd)](_0x35ea39)||(_0x4be0c2=_0x35ea39);}!_0x3b95e2&&_0x259568[_0x468c3d(0x1fb)](_0x468c3d(0x1bb))||_0x28cf0d[_0x468c3d(0x1df)][_0x468c3d(0x1db)](_0x468c3d(0x1bb),_0x4be0c2,_0x259568);}(_0x362be8,_0x44e2be,_0x56a8a2,_0x201a1e),function(_0x85ea86,_0x5d8c36,_0x4dac1a,_0x51645b){const _0x5ba747=_0x14ccca;if(!_0x51645b[_0x5ba747(0x1b6)](_0x5d8c36,_0x5ba747(0x1be)))return;let _0x1c4812=_0x5ba747(0x1f6),_0x5d12d0=!0x1;if(_0x4dac1a[_0x5ba747(0x1ef)][_0x5ba747(0x1bf)](_0x85ea86,{'attributes':_0x5ba747(0x1e7)})){const _0xbcd3d4={0x1:_0x5ba747(0x1f6),'a':_0x5ba747(0x1ff),'A':_0x5ba747(0x1ca),'i':_0x5ba747(0x1ce),'I':_0x5ba747(0x1b8)}[_0x85ea86[_0x5ba747(0x1e1)](_0x5ba747(0x1e7))];_0xbcd3d4&&(_0x1c4812=_0xbcd3d4),_0x5d12d0=!0x0;}_0x4dac1a[_0x5ba747(0x1ef)][_0x5ba747(0x1bf)](_0x85ea86,{'styles':_0x5ba747(0x1f5)})&&(_0x1c4812=_0x85ea86[_0x5ba747(0x1b1)](_0x5ba747(0x1f5)),_0x5d12d0=!0x0),!_0x5d12d0&&_0x5d8c36[_0x5ba747(0x1fb)](_0x5ba747(0x1be))||_0x4dac1a[_0x5ba747(0x1df)][_0x5ba747(0x1db)](_0x5ba747(0x1be),_0x1c4812,_0x5d8c36);}(_0x362be8,_0x44e2be,_0x56a8a2,_0x201a1e));});}),_0x1eac4a[_0x50df8e(0x20a)](_0x50df8e(0x1b9))[_0x50df8e(0x1eb)](_0x2186d1=>{const _0x18d92f=_0x50df8e;_0x2186d1['on'](_0x18d92f(0x1e6),(_0x2e7f7d,_0x224ddb,_0x47f651)=>{const _0x5bdc80=_0x18d92f;if(!_0x47f651[_0x5bdc80(0x1ef)][_0x5bdc80(0x1bf)](_0x224ddb[_0x5bdc80(0x1fe)],_0x2e7f7d[_0x5bdc80(0x20c)]))return;const _0x3acb12=M(_0x224ddb[_0x5bdc80(0x1fe)],_0x47f651[_0x5bdc80(0x1b5)]),{attributeNewValue:_0x900081}=_0x224ddb;null==_0x900081||0x1===_0x900081?_0x47f651[_0x5bdc80(0x1df)][_0x5bdc80(0x1b0)](_0x5bdc80(0x1da),_0x3acb12):_0x47f651[_0x5bdc80(0x1df)][_0x5bdc80(0x1db)](_0x5bdc80(0x1da),String(_0x900081),_0x3acb12);}),_0x2186d1['on'](_0x18d92f(0x1ed),(_0x56b986,_0x37586b,_0x5412a3)=>{const _0x154cea=_0x18d92f;if(!_0x5412a3[_0x154cea(0x1ef)][_0x154cea(0x1bf)](_0x37586b[_0x154cea(0x1fe)],_0x56b986[_0x154cea(0x20c)]))return;const _0x478cf6=M(_0x37586b[_0x154cea(0x1fe)],_0x5412a3[_0x154cea(0x1b5)]),{attributeNewValue:_0x27e209}=_0x37586b;_0x27e209&&_0x154cea(0x1f6)!==_0x27e209?_0x5412a3[_0x154cea(0x1df)][_0x154cea(0x209)](_0x154cea(0x1f5),_0x27e209,_0x478cf6):_0x5412a3[_0x154cea(0x1df)][_0x154cea(0x1c7)](_0x154cea(0x1f5),_0x478cf6);});});}[_0x1f711d(0x1fc)](){const _0x442622=_0x1f711d,{editor:_0x2a9055}=this,{model:_0x4c4b4f}=_0x2a9055,_0x1adfc8=_0x2a9055[_0x442622(0x1aa)][_0x442622(0x20d)](_0x309f9b),_0x184e7f=this[_0x442622(0x1bc)](),_0x4331fd=this[_0x442622(0x1de)]();_0x4c4b4f[_0x442622(0x1f2)][_0x442622(0x1e8)](_0x5ae545=>{const _0x4339a6=_0x442622,_0x3ce80f=_0x4c4b4f[_0x4339a6(0x1f2)][_0x4339a6(0x1d9)][_0x4339a6(0x1dd)]();let _0x28cc27=!0x1;for(const _0x23a1cb of _0x3ce80f){if(_0x4339a6(0x1fa)!==_0x23a1cb[_0x4339a6(0x1e7)]||_0x4339a6(0x1bd)===_0x23a1cb[_0x4339a6(0x20c)])continue;const _0x231315=_0x4c4b4f[_0x4339a6(0x203)](_0x23a1cb[_0x4339a6(0x1ba)][_0x4339a6(0x204)]);for(const _0x436bc1 of _0x231315[_0x4339a6(0x1b4)]())_0x436bc1['is'](_0x4339a6(0x1e5),_0x4339a6(0x205))&&(!_0x436bc1[_0x4339a6(0x1fb)](_0x4339a6(0x1bb))&&_0x4c4b4f[_0x4339a6(0x1cf)][_0x4339a6(0x1b6)](_0x436bc1,_0x4339a6(0x1bb))&&(_0x5ae545[_0x4339a6(0x1db)](_0x4339a6(0x1bb),_0x4331fd,_0x436bc1),_0x28cc27=!0x0),!_0x436bc1[_0x4339a6(0x1fb)](_0x4339a6(0x1be))&&_0x4c4b4f[_0x4339a6(0x1cf)][_0x4339a6(0x1b6)](_0x436bc1,_0x4339a6(0x1be))&&(_0x5ae545[_0x4339a6(0x1db)](_0x4339a6(0x1be),_0x184e7f,_0x436bc1),_0x28cc27=!0x0));}return _0x28cc27&&_0x1adfc8[_0x4339a6(0x1e0)](_0x5ae545),_0x28cc27;});}[_0x1f711d(0x207)](){const _0x1bced7=_0x1f711d,{editor:_0x465eee}=this;_0x465eee[_0x1bced7(0x1aa)][_0x1bced7(0x20d)](_0x309f9b)[_0x1bced7(0x1a8)](_0x3af445=>this[_0x1bced7(0x1d4)](_0x3af445));}[_0x1f711d(0x1bc)](){const _0x375b45=_0x1f711d;return this[_0x375b45(0x1c1)][_0x375b45(0x200)][_0x375b45(0x20d)](_0x375b45(0x1b7));}[_0x1f711d(0x1de)](){const _0xe9522=_0x1f711d;return this[_0xe9522(0x1c1)][_0xe9522(0x200)][_0xe9522(0x20d)](_0xe9522(0x1ad));}[_0x1f711d(0x1d4)]({container:_0x2c2ca9,value:_0x2f2e87,digits:_0x4f4396}){const _0x3db1a1=_0x1f711d,_0x48e037=_0x2c2ca9[_0x3db1a1(0x1e1)](_0x3db1a1(0x1be)),_0x480f13=_0x2c2ca9[_0x3db1a1(0x1e1)](_0x3db1a1(0x1bb)),_0x144366=Math[_0x3db1a1(0x1f0)](_0x2f2e87)+(_0x480f13??0x1)-0x1;switch(_0x48e037){case _0x3db1a1(0x1f9):return function(_0x24c8d7,_0x4bd4d5){const _0x4c995d=_0x3db1a1;return String(_0x24c8d7)[_0x4c995d(0x1c5)](_0x4bd4d5,'0');}(_0x144366,Math[_0x3db1a1(0x1c4)](0x2,_0x4f4396));case _0x3db1a1(0x1ff):case _0x3db1a1(0x1e3):return N(_0x144366,!0x1);case _0x3db1a1(0x1ca):case _0x3db1a1(0x1d5):return N(_0x144366,!0x0);case _0x3db1a1(0x1ce):return X(_0x144366,!0x1);case _0x3db1a1(0x1b8):return X(_0x144366,!0x0);default:return String(_0x144366);}}}function M(_0x3de968,_0xb4bd77){const _0x55ac02=_0x1f711d,_0x4b6148=_0xb4bd77[_0x55ac02(0x1b2)](_0x3de968);return Array[_0x55ac02(0x1c2)](_0x4b6148[_0x55ac02(0x1c6)]())[_0x55ac02(0x1f7)](_0x4e98f8=>_0x4e98f8['is'](_0x55ac02(0x1e5),'ol')&&_0x4e98f8[_0x55ac02(0x1b3)](_0x55ac02(0x1f4)));}function N(_0x17c72d,_0x41d898){const _0x452ee1=_0x1f711d;let _0x309889='',_0x46f60a=_0x17c72d;for(;_0x46f60a>0x0;){const _0x347339=(_0x46f60a-0x1)%0x1a;_0x309889=String[_0x452ee1(0x1e4)](0x61+_0x347339)+_0x309889,_0x46f60a=Math[_0x452ee1(0x1f0)]((_0x46f60a-0x1)/0x1a);}return _0x41d898?_0x309889[_0x452ee1(0x1f3)]():_0x309889;}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(_0x2be3ce,_0x303525){const _0x1a6cc2=_0x1f711d;let _0x49a2a5='',_0x55e353=_0x2be3ce;for(const {value:_0x1c5f0b,numeral:_0x361038}of V)for(;_0x55e353>=_0x1c5f0b;)_0x49a2a5+=_0x361038,_0x55e353-=_0x1c5f0b;return _0x303525?_0x49a2a5:_0x49a2a5[_0x1a6cc2(0x20b)]();}
|
|
23
|
+
function _0x36d6(_0x26cd19,_0x42402f){const _0x185f88=_0x185f();return _0x36d6=function(_0x36d6b2,_0x490b59){_0x36d6b2=_0x36d6b2-0xfd;let _0x18df3b=_0x185f88[_0x36d6b2];return _0x18df3b;},_0x36d6(_0x26cd19,_0x42402f);}const _0x5570d0=_0x36d6;(function(_0x68d246,_0xcfe822){const _0x46e9f0=_0x36d6,_0x1ee853=_0x68d246();while(!![]){try{const _0x2f5d05=-parseInt(_0x46e9f0(0x14b))/0x1+-parseInt(_0x46e9f0(0x113))/0x2+parseInt(_0x46e9f0(0x10a))/0x3*(-parseInt(_0x46e9f0(0x150))/0x4)+-parseInt(_0x46e9f0(0x146))/0x5*(parseInt(_0x46e9f0(0x106))/0x6)+parseInt(_0x46e9f0(0x128))/0x7+-parseInt(_0x46e9f0(0x148))/0x8*(-parseInt(_0x46e9f0(0x152))/0x9)+-parseInt(_0x46e9f0(0x118))/0xa*(-parseInt(_0x46e9f0(0x132))/0xb);if(_0x2f5d05===_0xcfe822)break;else _0x1ee853['push'](_0x1ee853['shift']());}catch(_0x5369fa){_0x1ee853['push'](_0x1ee853['shift']());}}}(_0x185f,0x5487f));import{Plugin as _0x25a32f}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x44acb2}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x59d453}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x5254d1}from'../footnotestracker.js';import{FootnotesEditing as _0x22a92a}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x25a32f{static get[_0x5570d0(0x117)](){const _0x1f998b=_0x5570d0;return _0x1f998b(0x12b);}static get[_0x5570d0(0x140)](){return[_0x22a92a,_0x5254d1];}static get[_0x5570d0(0x15f)](){return!0x0;}static get[_0x5570d0(0x103)](){return!0x0;}[_0x5570d0(0x138)](){const _0x187bdf=_0x5570d0,{editor:_0x3af6e6}=this;_0x3af6e6[_0x187bdf(0x135)][_0x187bdf(0x120)](_0x187bdf(0x12e),_0x187bdf(0x15d)),_0x3af6e6[_0x187bdf(0x135)][_0x187bdf(0x120)](_0x187bdf(0x104),0x1),_0x3af6e6[_0x187bdf(0x14a)][_0x187bdf(0x154)](_0x187bdf(0x110),new _0x44acb2(_0x3af6e6)),_0x3af6e6[_0x187bdf(0x14a)][_0x187bdf(0x154)](_0x187bdf(0x153),new _0x59d453(_0x3af6e6)),this[_0x187bdf(0x108)](),this[_0x187bdf(0x111)](),this[_0x187bdf(0x124)](),this[_0x187bdf(0x13e)]();}[_0x5570d0(0x108)](){const _0x42f441=_0x5570d0,{editor:_0x469904}=this,{schema:_0x134ac8}=_0x469904[_0x42f441(0x119)];_0x134ac8[_0x42f441(0x10b)](_0x42f441(0x116),{'allowAttributes':[_0x42f441(0x134),_0x42f441(0x101)]});}[_0x5570d0(0x111)](){const _0x2474f5=_0x5570d0,{editor:_0x35b455}=this,{conversion:_0x4056e9,model:_0xeee6c3}=_0x35b455,{schema:_0x104d80}=_0xeee6c3;_0x4056e9[_0x2474f5(0x157)](_0x2474f5(0x15a))[_0x2474f5(0x154)](_0x3faac6=>{const _0x58db0c=_0x2474f5;_0x3faac6['on'](_0x58db0c(0x123),(_0x1632cb,_0x66bcb,_0x1561a0)=>{const _0xf915e3=_0x58db0c,_0x33a357=_0x66bcb[_0xf915e3(0x112)],_0xdae1f3=_0x66bcb[_0xf915e3(0x105)]?.[_0xf915e3(0x145)];_0x33a357[_0xf915e3(0x158)](_0xf915e3(0x155))&&_0xdae1f3?.['is'](_0xf915e3(0xff),_0xf915e3(0x116))&&(function(_0x17f990,_0xf1981f,_0x5d8a19,_0x35f654){const _0x13dc85=_0xf915e3;if(!_0x35f654[_0x13dc85(0x151)](_0xf1981f,_0x13dc85(0x101)))return;let _0x280bff=0x1;const _0x1983b6=_0x5d8a19[_0x13dc85(0x14e)][_0x13dc85(0x114)](_0x17f990,{'attributes':_0x13dc85(0x11b)});if(_0x1983b6){const _0x5b0c4b=Number[_0x13dc85(0x10c)](_0x17f990[_0x13dc85(0x107)](_0x13dc85(0x11b)),0xa);Number[_0x13dc85(0x14f)](_0x5b0c4b)||(_0x280bff=_0x5b0c4b);}!_0x1983b6&&_0xf1981f[_0x13dc85(0x161)](_0x13dc85(0x101))||_0x5d8a19[_0x13dc85(0x13d)][_0x13dc85(0x11f)](_0x13dc85(0x101),_0x280bff,_0xf1981f);}(_0x33a357,_0xdae1f3,_0x1561a0,_0x104d80),function(_0x1c5cb8,_0x27fb63,_0x2c826e,_0x2b37d6){const _0xa3c432=_0xf915e3;if(!_0x2b37d6[_0xa3c432(0x151)](_0x27fb63,_0xa3c432(0x134)))return;let _0x569bce=_0xa3c432(0x15d),_0x49462a=!0x1;if(_0x2c826e[_0xa3c432(0x14e)][_0xa3c432(0x114)](_0x1c5cb8,{'attributes':_0xa3c432(0x126)})){const _0x45696b={0x1:_0xa3c432(0x15d),'a':_0xa3c432(0x115),'A':_0xa3c432(0x144),'i':_0xa3c432(0x121),'I':_0xa3c432(0x13b)}[_0x1c5cb8[_0xa3c432(0x107)](_0xa3c432(0x126))];_0x45696b&&(_0x569bce=_0x45696b),_0x49462a=!0x0;}_0x2c826e[_0xa3c432(0x14e)][_0xa3c432(0x114)](_0x1c5cb8,{'styles':_0xa3c432(0x162)})&&(_0x569bce=_0x1c5cb8[_0xa3c432(0x160)](_0xa3c432(0x162)),_0x49462a=!0x0),!_0x49462a&&_0x27fb63[_0xa3c432(0x161)](_0xa3c432(0x134))||_0x2c826e[_0xa3c432(0x13d)][_0xa3c432(0x11f)](_0xa3c432(0x134),_0x569bce,_0x27fb63);}(_0x33a357,_0xdae1f3,_0x1561a0,_0x104d80));});}),_0x4056e9[_0x2474f5(0x157)](_0x2474f5(0x131))[_0x2474f5(0x154)](_0xee0fe6=>{const _0x264f29=_0x2474f5;_0xee0fe6['on'](_0x264f29(0x11d),(_0x5bb770,_0x3de727,_0x3242f3)=>{const _0x1ec369=_0x264f29;if(!_0x3242f3[_0x1ec369(0x14e)][_0x1ec369(0x114)](_0x3de727[_0x1ec369(0x125)],_0x5bb770[_0x1ec369(0x130)]))return;const _0x3b5db9=M(_0x3de727[_0x1ec369(0x125)],_0x3242f3[_0x1ec369(0x14c)]),{attributeNewValue:_0xcd64bc}=_0x3de727;null==_0xcd64bc||0x1===_0xcd64bc?_0x3242f3[_0x1ec369(0x13d)][_0x1ec369(0x11c)](_0x1ec369(0x11b),_0x3b5db9):_0x3242f3[_0x1ec369(0x13d)][_0x1ec369(0x11f)](_0x1ec369(0x11b),String(_0xcd64bc),_0x3b5db9);}),_0xee0fe6['on'](_0x264f29(0x12f),(_0x24b82a,_0x37d378,_0x2fc1c7)=>{const _0x17dc85=_0x264f29;if(!_0x2fc1c7[_0x17dc85(0x14e)][_0x17dc85(0x114)](_0x37d378[_0x17dc85(0x125)],_0x24b82a[_0x17dc85(0x130)]))return;const _0x5275c6=M(_0x37d378[_0x17dc85(0x125)],_0x2fc1c7[_0x17dc85(0x14c)]),{attributeNewValue:_0x43f5d8}=_0x37d378;_0x43f5d8&&_0x17dc85(0x15d)!==_0x43f5d8?_0x2fc1c7[_0x17dc85(0x13d)][_0x17dc85(0x133)](_0x17dc85(0x162),_0x43f5d8,_0x5275c6):_0x2fc1c7[_0x17dc85(0x13d)][_0x17dc85(0x12a)](_0x17dc85(0x162),_0x5275c6);});});}[_0x5570d0(0x13e)](){const _0x5b5945=_0x5570d0,{editor:_0x5eb0f3}=this,{model:_0x50f880}=_0x5eb0f3,_0x5c14be=_0x5eb0f3[_0x5b5945(0x127)][_0x5b5945(0x15b)](_0x5254d1),_0x554a6c=this[_0x5b5945(0x139)](),_0xc0e6b=this[_0x5b5945(0x13a)]();_0x50f880[_0x5b5945(0x10f)][_0x5b5945(0x100)](_0x5c7205=>{const _0x38606c=_0x5b5945,_0x52f7cc=_0x50f880[_0x38606c(0x10f)][_0x38606c(0x137)][_0x38606c(0x109)]();let _0x52e027=!0x1;for(const _0x37ddc8 of _0x52f7cc){if(_0x38606c(0x129)!==_0x37ddc8[_0x38606c(0x126)]||_0x38606c(0x147)===_0x37ddc8[_0x38606c(0x130)])continue;const _0x55954d=_0x50f880[_0x38606c(0x12c)](_0x37ddc8[_0x38606c(0x11e)][_0x38606c(0x15e)]);for(const _0x36132b of _0x55954d[_0x38606c(0x12d)]())_0x36132b['is'](_0x38606c(0xff),_0x38606c(0x116))&&(!_0x36132b[_0x38606c(0x161)](_0x38606c(0x101))&&_0x50f880[_0x38606c(0x159)][_0x38606c(0x151)](_0x36132b,_0x38606c(0x101))&&(_0x5c7205[_0x38606c(0x11f)](_0x38606c(0x101),_0xc0e6b,_0x36132b),_0x52e027=!0x0),!_0x36132b[_0x38606c(0x161)](_0x38606c(0x134))&&_0x50f880[_0x38606c(0x159)][_0x38606c(0x151)](_0x36132b,_0x38606c(0x134))&&(_0x5c7205[_0x38606c(0x11f)](_0x38606c(0x134),_0x554a6c,_0x36132b),_0x52e027=!0x0));}return _0x52e027&&_0x5c14be[_0x38606c(0x13c)](_0x5c7205),_0x52e027;});}[_0x5570d0(0x124)](){const _0x41d084=_0x5570d0,{editor:_0x5d5bf7}=this;_0x5d5bf7[_0x41d084(0x127)][_0x41d084(0x15b)](_0x5254d1)[_0x41d084(0xfd)](_0x3f00b8=>this[_0x41d084(0x11a)](_0x3f00b8));}[_0x5570d0(0x139)](){const _0x1f33ba=_0x5570d0;return this[_0x1f33ba(0x102)][_0x1f33ba(0x135)][_0x1f33ba(0x15b)](_0x1f33ba(0x12e));}[_0x5570d0(0x13a)](){const _0x338abc=_0x5570d0;return this[_0x338abc(0x102)][_0x338abc(0x135)][_0x338abc(0x15b)](_0x338abc(0x104));}[_0x5570d0(0x11a)]({container:_0x5d34b1,value:_0x5beb58,digits:_0x47039c}){const _0xcb161a=_0x5570d0,_0x1c69ba=_0x5d34b1[_0xcb161a(0x107)](_0xcb161a(0x134)),_0x25dd19=_0x5d34b1[_0xcb161a(0x107)](_0xcb161a(0x101)),_0x361d74=Math[_0xcb161a(0x14d)](_0x5beb58)+(_0x25dd19??0x1)-0x1;switch(_0x1c69ba){case _0xcb161a(0x10d):return function(_0x5ab0b1,_0x50d028){const _0x46f470=_0xcb161a;return String(_0x5ab0b1)[_0x46f470(0x143)](_0x50d028,'0');}(_0x361d74,Math[_0xcb161a(0x13f)](0x2,_0x47039c));case _0xcb161a(0x115):case _0xcb161a(0x156):return N(_0x361d74,!0x1);case _0xcb161a(0x144):case _0xcb161a(0xfe):return N(_0x361d74,!0x0);case _0xcb161a(0x121):return X(_0x361d74,!0x1);case _0xcb161a(0x13b):return X(_0x361d74,!0x0);default:return String(_0x361d74);}}}function M(_0x2b0be4,_0x436be3){const _0x5d0b98=_0x5570d0,_0x5a29b3=_0x436be3[_0x5d0b98(0x142)](_0x2b0be4);return Array[_0x5d0b98(0x10e)](_0x5a29b3[_0x5d0b98(0x149)]())[_0x5d0b98(0x141)](_0x5e8890=>_0x5e8890['is'](_0x5d0b98(0xff),'ol')&&_0x5e8890[_0x5d0b98(0x158)](_0x5d0b98(0x155)));}function N(_0x3b1100,_0x10741c){const _0x2b49b5=_0x5570d0;let _0x4c0843='',_0x5718e0=_0x3b1100;for(;_0x5718e0>0x0;){const _0x19a27e=(_0x5718e0-0x1)%0x1a;_0x4c0843=String[_0x2b49b5(0x122)](0x61+_0x19a27e)+_0x4c0843,_0x5718e0=Math[_0x2b49b5(0x14d)]((_0x5718e0-0x1)/0x1a);}return _0x10741c?_0x4c0843[_0x2b49b5(0x15c)]():_0x4c0843;}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 _0x185f(){const _0xcb79fa=['getAttribute','_defineSchema','getChanges','3aCeIeX','extend','parseInt','decimal-leading-zero','from','document','footnotesStyle','_defineConverters','viewItem','1038540TqNJcQ','consume','lower-alpha','footnotesDefinitions','pluginName','12105440aFEhCh','model','_formatFootnoteListValue','start','removeAttribute','attribute:footnotesListStart:footnotesDefinitions','position','setAttribute','define','lower-roman','fromCharCode','element:ol','_defineFormatter','item','type','plugins','393358tNaHsR','insert','removeStyle','FootnotesPropertiesEditing','createRangeOn','getItems','footnotes.footnotesProperties.defaultListStyle','attribute:footnotesListStyle:footnotesDefinitions','name','downcast','11vtJWmh','setStyle','footnotesListStyle','config','toLowerCase','differ','init','_getDefaultListStyle','_getDefaultStartIndex','upper-roman','_updateFootnotesCounters','writer','_definePostfixer','max','requires','find','toViewElement','padStart','upper-alpha','parent','10XhoRNq','$text','4936016SBGFkO','getChildren','commands','463990fkRtbg','mapper','floor','consumable','isNaN','566156RharKo','checkAttribute','9XMUFgJ','footnotesStart','add','footnotes-list','lower-latin','for','hasClass','schema','upcast','get','toUpperCase','decimal','nodeAfter','isOfficialPlugin','getStyle','hasAttribute','list-style-type','setFootnoteFormatter','upper-latin','element','registerPostFixer','footnotesListStart','editor','isPremiumPlugin','footnotes.footnotesProperties.defaultStartIndex','modelCursor','1238106yXgBWS'];_0x185f=function(){return _0xcb79fa;};return _0x185f();}function X(_0x44c6cd,_0x270ce6){const _0x98f8b4=_0x5570d0;let _0x2d8828='',_0x19b591=_0x44c6cd;for(const {value:_0x238ef5,numeral:_0x3374dc}of V)for(;_0x19b591>=_0x238ef5;)_0x2d8828+=_0x3374dc,_0x19b591-=_0x238ef5;return _0x270ce6?_0x2d8828:_0x2d8828[_0x98f8b4(0x136)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x4e8324,ButtonView as _0x28cb74,ContextualBalloon as _0x462d6a,createDropdown as _0x3cdf8e}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x49ac1f}from'ckeditor5/src/widget.js';import{Plugin as _0xefdae4}from'ckeditor5/src/core.js';import{IconFootnote as _0x17877b,IconListStyleDecimal as _0x126572,IconListStyleDecimalLeadingZero as _0x58a53d,IconListStyleLowerLatin as _0x53c593,IconListStyleLowerRoman as _0x5d1f5a,IconListStyleUpperLatin as _0x21cfd7,IconListStyleUpperRoman as _0x2aa979}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x58bb5f}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x24ccf2}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0xefdae4{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x462d6a,_0x49ac1f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x110318}=this,{componentFactory:_0x4d8e3e}=_0x110318['ui'];_0x110318['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4d8e3e['add']('footnotesStyle',function(_0x8be9b1){return _0x10b7c6=>{const {t:t}=_0x10b7c6,_0xa82a5a=_0x8be9b1['commands']['get']('footnotesStyle'),_0x2cf043=_0x3cdf8e(_0x10b7c6),{buttonView:_0x55680d}=_0x2cf043;return _0x2cf043['class']='ck-footnotes-styles-dropdown',_0x2cf043['bind']('isEnabled')['to'](_0xa82a5a,'isEnabled'),_0x55680d['set']({'label':t('Footnotes\x20style'),'icon':_0x17877b,'tooltip':!0x0}),_0x2cf043['once']('change:isOpen',()=>{const _0x95a330=function({editor:_0x2ad4a6,dropdownView:_0x24fbb7}){const {t:t}=_0x2ad4a6['locale'],_0x56e028=t('Footnotes\x20definitions\x20styles'),_0x4d76cd=function(_0x42f79a){const t=_0x42f79a['locale']['t'],_0x4718f6=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x126572},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x58a53d},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5d1f5a},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2aa979},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x53c593},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x21cfd7}];return _0x4718f6['map'](function(_0x2d71ed){const _0x262ea3=_0x2d71ed['locale'];return({label:_0x1abdbd,icon:_0x4ff9a5,tooltip:_0x19838f,style:_0x210f92})=>{const _0x4591b7=_0x2d71ed['commands']['get']('footnotesStyle'),_0x462555=new _0x28cb74(_0x262ea3);return _0x462555['set']({'label':_0x1abdbd,'icon':_0x4ff9a5,'tooltip':_0x19838f}),_0x462555['bind']('isOn')['to'](_0x4591b7,'value',_0x3e1cec=>_0x3e1cec===_0x210f92),_0x462555['bind']('isEnabled')['to'](_0x4591b7,'isEnabled'),_0x462555['on']('execute',()=>{_0x2d71ed['execute']('footnotesStyle',{'value':_0x210f92}),_0x2d71ed['editing']['view']['focus']();}),_0x462555;};}(_0x42f79a));}(_0x2ad4a6),_0x1068cf=new _0x58bb5f(_0x2ad4a6['locale'],{'styleGridAriaLabel':_0x56e028,'styleButtonViews':_0x4d76cd});return _0x1068cf['delegate']('execute')['to'](_0x24fbb7),_0x1068cf['on']('footnotesListStart',(_0x1b02c6,_0x4816f6)=>{_0x2ad4a6['execute']('footnotesStart',{'value':_0x4816f6['startIndex']});}),_0x1068cf;}({'editor':_0x8be9b1,'dropdownView':_0x2cf043});_0x2cf043['panelView']['children']['add'](_0x95a330);}),_0x2cf043;};}(_0x110318));}['afterInit'](){const {editor:_0xcbbdeb}=this,{t:t}=_0xcbbdeb['locale'],_0x43a1c4=_0xcbbdeb['plugins']['get'](_0x49ac1f),{defaultPositions:_0x242493}=_0x4e8324;_0x43a1c4['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xcbbdeb['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x16f010=>{let _0x2cb1bc=_0x16f010['getFirstPosition']()?.['parent'];return _0x2cb1bc?.['is']('$text')&&(_0x2cb1bc=_0x2cb1bc['parent']),_0x2cb1bc?.['is']('element')?_0x2cb1bc['findAncestor'](_0x24ccf2):null;},'positions':[_0x242493['southArrowNorth'],_0x242493['southArrowNorthMiddleWest'],_0x242493['southArrowNorthMiddleEast'],_0x242493['southArrowNorthWest'],_0x242493['southArrowNorthEast'],_0x242493['northArrowSouth'],_0x242493['northArrowSouthMiddleWest'],_0x242493['northArrowSouthMiddleEast'],_0x242493['northArrowSouthWest'],_0x242493['northArrowSouthEast'],_0x242493['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4bde13,View as _0x56d459,ViewCollection as _0x13fff5,FocusCycler as _0xa9e860,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x56d459{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x13fff5();['focusCycler'];constructor(_0x63c81d,{styleButtonViews:_0x47078e,styleGridAriaLabel:_0x47ec1e}){super(_0x63c81d),(this['focusCycler']=new _0xa9e860({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x47078e,_0x47ec1e),[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 _0x4fbabd of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4fbabd['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x579b95=_0x2c028b=>_0x2c028b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x579b95),this['keystrokes']['set']('arrowleft',_0x579b95),this['keystrokes']['set']('arrowup',_0x579b95),this['keystrokes']['set']('arrowdown',_0x579b95);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x188f1d,_0x58f0ae){const _0x87615c=new _0x56d459(this['locale']);return _0x87615c['children']=_0x87615c['createCollection'](),_0x87615c['children']['addMany'](_0x188f1d),_0x87615c['setTemplate']({'tag':'div','attributes':{'aria-label':_0x58f0ae,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x87615c['children']}),_0x87615c['children']['delegate']('execute')['to'](this),_0x87615c['focus']=function(){for(const _0x21aa71 of this['children'])if(_0x21aa71 instanceof _0x4bde13&&_0x21aa71['isOn'])return void _0x21aa71['focus']();this['children']['first']['focus']();},_0x87615c['focusTracker']=new ot(),_0x87615c['keystrokes']=new rt(),_0x87615c['render'](),_0x87615c['keystrokes']['listenTo'](_0x87615c['element']),this['children']['add'](_0x87615c),_0x87615c;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x395bee=this['_createStartIndexPropertyView'](),_0xe92850=[_0x395bee],_0xce9cf8=new st(this['locale'],_0xe92850);return _0xce9cf8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xce9cf8['buttonView']['bind']('isEnabled')['toMany'](_0xe92850,'isEnabled',(..._0x3c1a0b)=>_0x3c1a0b['some'](_0x13f52c=>_0x13f52c)),_0xce9cf8['buttonView']['on']('change:isEnabled',(_0x4cbe58,_0x23742a,_0x4b67b4)=>{_0x4b67b4||(_0xce9cf8['isCollapsed']=!0x0);}),this['children']['add'](_0xce9cf8),[_0x395bee,_0xce9cf8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1db54b=new it(this['locale'],et);return _0x1db54b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1db54b['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1db54b['fieldView']['on']('input',()=>{const _0x22dfcb=_0x1db54b['fieldView']['element'],_0x1404d5=_0x22dfcb['valueAsNumber'];Number['isNaN'](_0x1404d5)?_0x1db54b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x22dfcb['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1404d5}):_0x1db54b['errorText']=t(_0x1404d5<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1db54b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x1f5614=_0x3181;(function(_0x3e7a25,_0x3ce8c1){var _0x4ef66c=_0x3181,_0x232efe=_0x3e7a25();while(!![]){try{var _0x58d33a=-parseInt(_0x4ef66c(0x117))/0x1*(parseInt(_0x4ef66c(0x114))/0x2)+-parseInt(_0x4ef66c(0x10a))/0x3+parseInt(_0x4ef66c(0x10c))/0x4*(-parseInt(_0x4ef66c(0x111))/0x5)+-parseInt(_0x4ef66c(0x10e))/0x6*(-parseInt(_0x4ef66c(0x115))/0x7)+-parseInt(_0x4ef66c(0x118))/0x8+parseInt(_0x4ef66c(0x112))/0x9*(-parseInt(_0x4ef66c(0x10d))/0xa)+-parseInt(_0x4ef66c(0x10f))/0xb*(-parseInt(_0x4ef66c(0x109))/0xc);if(_0x58d33a===_0x3ce8c1)break;else _0x232efe['push'](_0x232efe['shift']());}catch(_0x93b8a5){_0x232efe['push'](_0x232efe['shift']());}}}(_0x52fc,0x6a284));function _0x52fc(){var _0x4d3525=['10ZPYPJG','205326PIdfKc','2173941ZGkDCw','isOfficialPlugin','425YxRdnc','4338531ioPnfx','pluginName','4664IqntGO','70RRlYao','FootnotesProperties','153xXflwc','767152SNLOuI','isPremiumPlugin','84DOTwEC','396504SmuNGZ','requires','10536dZJbbD'];_0x52fc=function(){return _0x4d3525;};return _0x52fc();}function _0x3181(_0x2193a7,_0x5ea4f6){var _0x52fc9e=_0x52fc();return _0x3181=function(_0x3181b4,_0x50eae1){_0x3181b4=_0x3181b4-0x108;var _0x19a530=_0x52fc9e[_0x3181b4];return _0x19a530;},_0x3181(_0x2193a7,_0x5ea4f6);}import{Plugin as _0x10de82}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x2f98c9}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x3015e2}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x10de82{static get[_0x1f5614(0x113)](){var _0x2555a3=_0x1f5614;return _0x2555a3(0x116);}static get[_0x1f5614(0x10b)](){return[_0x2f98c9,_0x3015e2];}static get[_0x1f5614(0x110)](){return!0x0;}static get[_0x1f5614(0x108)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x237a(_0x2330d6,_0x42fd0a){const _0x10b9c6=_0x10b9();return _0x237a=function(_0x237a76,_0x3bba93){_0x237a76=_0x237a76-0x1d2;let _0x4fce00=_0x10b9c6[_0x237a76];return _0x4fce00;},_0x237a(_0x2330d6,_0x42fd0a);}const _0x3e01e2=_0x237a;(function(_0x2b99ae,_0x575c33){const _0xb60899=_0x237a,_0x59f4b1=_0x2b99ae();while(!![]){try{const _0x5efd34=-parseInt(_0xb60899(0x1d2))/0x1*(-parseInt(_0xb60899(0x1dc))/0x2)+parseInt(_0xb60899(0x223))/0x3+parseInt(_0xb60899(0x1f2))/0x4*(parseInt(_0xb60899(0x213))/0x5)+parseInt(_0xb60899(0x1f0))/0x6*(-parseInt(_0xb60899(0x1f8))/0x7)+-parseInt(_0xb60899(0x1da))/0x8*(parseInt(_0xb60899(0x1de))/0x9)+-parseInt(_0xb60899(0x1ee))/0xa*(parseInt(_0xb60899(0x1d9))/0xb)+parseInt(_0xb60899(0x20d))/0xc*(parseInt(_0xb60899(0x205))/0xd);if(_0x5efd34===_0x575c33)break;else _0x59f4b1['push'](_0x59f4b1['shift']());}catch(_0x5d02c2){_0x59f4b1['push'](_0x59f4b1['shift']());}}}(_0x10b9,0x1bdc2));import{Plugin as _0x3d00ae}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x1206b5}from'./modelelementtracker.js';function _0x10b9(){const _0x3b5a36=['getFootnotesDefinitionsObjectElement','footnotes.multiBlock','isEqual','35PranVG','singleton','indexOf','from','document','remove','parent','high','getAttribute','setAttribute','getChanges','_footnoteFormatter','createPositionBefore','createRangeOn','footnotesDefinitions','getFootnote','350151fKxtOm','length','model','reference','config','footnoteInlineContent','_updateFootnoteRefCounter','differ','registerPostFixer','unshift','find','_handleRemoveFootnoteReferenceById','createRangeIn','insert','FootnotesTracker','paragraph','set','listenTo','$graveyard','_ensureFootnotesDefinitionsContainerExists','_handleFootnotesDefinitionsObjectChanges','move','rootName','3CqqWwu','footnoteCounter','_footnoteDefsContainerTracker','_handleFootnoteDefinitionsChanges','childCount','reset','change:data','484LhLeck','29448ELJIAZ','get','44698FmMbJu','some','387LYoWKg','min','splice','init','after','getChildren','editor','_handleMovedFootnoteReference','_footnoteRefsTracker','_ensureFootnotesReferencesHaveProperOrder','_footnotesDefinitions','pluginName','_footnotes','getFootnotesFormatter','_updateFootnotesCounters','_handleFootnotesDefinitionsObjectSync','21220ApTway','push','9162xuSLyk','getRootNames','1372YlrZsK','end','definition','before','_footnoteDefsTracker','_handleInsertedFootnoteReference','21HryyKI','isOfficialPlugin','low','getFootnotes','footnoteDefinition','_handleFootnoteReferencesChanges','_sortFootnoteDefinitions','createElement','_insertEmptyFootnotesDefinitionsContainer','append','enqueueChange','add','isPremiumPlugin','13jwuOOV','findIndex','has','createPositionAt','compareWith','footnoteId','map','footnoteRef','2210172Yyiiss','setFootnoteFormatter','root'];_0x10b9=function(){return _0x3b5a36;};return _0x10b9();}export class FootnotesTracker extends _0x3d00ae{[_0x3e01e2(0x1ea)]=[];[_0x3e01e2(0x1e8)]=null;[_0x3e01e2(0x21e)]=null;[_0x3e01e2(0x1d4)];[_0x3e01e2(0x1e6)];[_0x3e01e2(0x1f6)];static get[_0x3e01e2(0x1e9)](){const _0x5cf947=_0x3e01e2;return _0x5cf947(0x231);}static get[_0x3e01e2(0x1f9)](){return!0x0;}static get[_0x3e01e2(0x204)](){return!0x0;}constructor(_0x280951){const _0x3223fe=_0x3e01e2;super(_0x280951),this[_0x3223fe(0x1d4)]=new _0x1206b5(this[_0x3223fe(0x1e4)][_0x3223fe(0x225)],{'elementName':_0x3223fe(0x221),'getElementKey':()=>_0x3223fe(0x214)}),this[_0x3223fe(0x1e6)]=new _0x1206b5(this[_0x3223fe(0x1e4)][_0x3223fe(0x225)],{'elementName':_0x3223fe(0x20c),'getElementKey':_0x4481cb=>_0x4481cb[_0x3223fe(0x21b)](_0x3223fe(0x20a))}),this[_0x3223fe(0x1f6)]=new _0x1206b5(this[_0x3223fe(0x1e4)][_0x3223fe(0x225)],{'elementName':_0x3223fe(0x1fc),'getElementKey':_0x20d242=>_0x20d242[_0x3223fe(0x21b)](_0x3223fe(0x20a))});}[_0x3e01e2(0x1e1)](){const _0x17fc52=_0x3e01e2,{editor:_0x39fd31}=this,{model:_0x21d4c3,data:_0x2c647e}=_0x39fd31;_0x21d4c3[_0x17fc52(0x217)][_0x17fc52(0x22b)](_0x42f681=>{const _0x2bc433=_0x17fc52,_0x27f9df=_0x21d4c3[_0x2bc433(0x217)][_0x2bc433(0x22a)][_0x2bc433(0x21d)]();let _0x3948e0=!0x1;return this[_0x2bc433(0x237)](_0x42f681,_0x27f9df)&&(_0x3948e0=!0x0),this[_0x2bc433(0x1d5)](_0x42f681,_0x27f9df)&&(_0x3948e0=!0x0),this[_0x2bc433(0x1fd)](_0x42f681,_0x27f9df)&&(_0x3948e0=!0x0),this[_0x2bc433(0x1e7)](_0x42f681)&&(_0x3948e0=!0x0),this[_0x2bc433(0x1ed)](_0x42f681)&&(_0x3948e0=!0x0),this[_0x2bc433(0x1fe)](_0x42f681)&&(_0x3948e0=!0x0),_0x3948e0;}),this[_0x17fc52(0x234)](_0x21d4c3[_0x17fc52(0x217)],_0x17fc52(0x1d8),()=>{const _0x1f0a07=_0x17fc52;_0x21d4c3[_0x1f0a07(0x202)]({'isUndoable':!0x1},_0x8937be=>{const _0x346e54=_0x1f0a07;this[_0x346e54(0x236)](_0x8937be);});},{'priority':_0x17fc52(0x1fa)}),this[_0x17fc52(0x234)](_0x2c647e,_0x17fc52(0x233),()=>{const _0x306bf1=_0x17fc52;this[_0x306bf1(0x1ea)]=[],this[_0x306bf1(0x1d4)][_0x306bf1(0x1d7)](),this[_0x306bf1(0x1e6)][_0x306bf1(0x1d7)](),this[_0x306bf1(0x1f6)][_0x306bf1(0x1d7)]();},{'priority':_0x17fc52(0x21a)});}[_0x3e01e2(0x210)](){const _0x57040f=_0x3e01e2;return this[_0x57040f(0x1e8)];}[_0x3e01e2(0x222)](_0xe1b0d8){const _0x1cc83a=_0x3e01e2;return this[_0x1cc83a(0x1ea)][_0x1cc83a(0x22d)](_0x4e7940=>_0x4e7940['id']===_0xe1b0d8)||null;}[_0x3e01e2(0x1fb)](){const _0x1ccf43=_0x3e01e2;return Array[_0x1ccf43(0x216)](this[_0x1ccf43(0x1ea)]);}[_0x3e01e2(0x1eb)](){const _0x7da938=_0x3e01e2;return this[_0x7da938(0x21e)];}[_0x3e01e2(0x20e)](_0x19ff49){const _0x170b9b=_0x3e01e2;this[_0x170b9b(0x21e)]=_0x19ff49;}[_0x3e01e2(0x1ec)](_0x5a0121,_0x56d78b=0x0){const _0x2f29a9=_0x3e01e2;let _0x550c7b=!0x1;for(let _0x3ab8e9=_0x56d78b;_0x3ab8e9<this[_0x2f29a9(0x1ea)][_0x2f29a9(0x224)];_0x3ab8e9++)this[_0x2f29a9(0x229)](_0x5a0121,_0x3ab8e9)&&(_0x550c7b=!0x0);return _0x550c7b;}[_0x3e01e2(0x200)](_0x4ba488,_0x4c4af9){const _0x3acbf0=_0x3e01e2,_0x935b31=_0x4ba488[_0x3acbf0(0x1ff)](_0x3acbf0(0x221),{});return _0x4ba488[_0x3acbf0(0x201)](_0x935b31,_0x4c4af9),this[_0x3acbf0(0x1e8)]=_0x935b31,_0x935b31;}[_0x3e01e2(0x236)](_0x2b4585){const _0x5a9918=_0x3e01e2;if(!this[_0x5a9918(0x1ea)][_0x5a9918(0x224)]||this[_0x5a9918(0x1e8)])return;const _0x2702f7=this[_0x5a9918(0x1ea)][0x0][_0x5a9918(0x226)][_0x5a9918(0x20f)],_0x38f185=this[_0x5a9918(0x200)](_0x2b4585,_0x2702f7);for(const _0x114816 of this[_0x5a9918(0x1ea)])_0x114816[_0x5a9918(0x1f4)][_0x5a9918(0x219)]||_0x2b4585[_0x5a9918(0x230)](_0x114816[_0x5a9918(0x1f4)],_0x38f185,_0x5a9918(0x1f3));this[_0x5a9918(0x1ec)](_0x2b4585);}[_0x3e01e2(0x237)](_0x431606,_0x4812ac){const _0x38cf7a=_0x3e01e2;let _0x3d0700=!0x1;const {inserted:_0x40cfdf,removed:_0x1d6db0,moved:_0x5ddb4b}=this[_0x38cf7a(0x1d4)][_0x38cf7a(0x21d)](_0x4812ac);if(_0x5ddb4b[_0x38cf7a(0x224)]&&(this[_0x38cf7a(0x1e8)]=_0x5ddb4b[0x0]),_0x40cfdf[_0x38cf7a(0x224)]){if(_0x40cfdf[_0x38cf7a(0x224)]>0x1||this[_0x38cf7a(0x1e8)]&&_0x40cfdf[_0x38cf7a(0x1dd)](_0x4b35c0=>_0x4b35c0!==this[_0x38cf7a(0x1e8)])){const _0x48330e=_0x431606[_0x38cf7a(0x1ff)](_0x38cf7a(0x221),{}),_0x9592c=[];this[_0x38cf7a(0x1e8)]&&_0x9592c[_0x38cf7a(0x1ef)](this[_0x38cf7a(0x1e8)]),_0x9592c[_0x38cf7a(0x1ef)](..._0x40cfdf),_0x431606[_0x38cf7a(0x230)](_0x48330e,_0x9592c[0x0],_0x38cf7a(0x1f5));for(const _0x3616a1 of _0x9592c)_0x431606[_0x38cf7a(0x238)](_0x431606[_0x38cf7a(0x22f)](_0x3616a1),_0x431606[_0x38cf7a(0x208)](_0x48330e,_0x38cf7a(0x1f3))),_0x431606[_0x38cf7a(0x218)](_0x3616a1);this[_0x38cf7a(0x1e8)]=_0x48330e,this[_0x38cf7a(0x1ec)](_0x431606),_0x3d0700=!0x0;}else this[_0x38cf7a(0x1e8)]=_0x40cfdf[0x0];}if(_0x1d6db0[_0x38cf7a(0x224)]&&_0x38cf7a(0x235)===this[_0x38cf7a(0x1e8)]?.[_0x38cf7a(0x20f)][_0x38cf7a(0x239)]){for(const _0x4f8c63 of this[_0x38cf7a(0x1ea)])_0x431606[_0x38cf7a(0x218)](_0x4f8c63[_0x38cf7a(0x226)]),_0x3d0700=!0x0;this[_0x38cf7a(0x1ea)]=[],this[_0x38cf7a(0x1e8)]=null;}return _0x3d0700;}[_0x3e01e2(0x1d5)](_0x3e52d5,_0x47a165){const _0x291696=_0x3e01e2;let _0x2b0f08=!0x1;const _0x568144=this[_0x291696(0x1e4)][_0x291696(0x227)][_0x291696(0x1db)](_0x291696(0x211)),{inserted:_0x5ee343,moved:_0x3b135c}=this[_0x291696(0x1f6)][_0x291696(0x21d)](_0x47a165);for(const _0x388096 of[..._0x3b135c,..._0x5ee343]){const _0x4caf6e=_0x388096[_0x291696(0x21b)](_0x291696(0x20a)),_0x355f6e=this[_0x291696(0x222)](_0x4caf6e);_0x355f6e&&(_0x355f6e[_0x291696(0x1f4)]=_0x388096),_(_0x3e52d5,_0x568144,_0x388096)&&(_0x2b0f08=!0x0);}return _0x2b0f08;}[_0x3e01e2(0x1fd)](_0x31267d,_0x201306){const _0x4cf4ad=_0x3e01e2;let _0x211d20=!0x1;const {removed:_0x11ebc3,inserted:_0x41a2ab,moved:_0x34e408}=this[_0x4cf4ad(0x1e6)][_0x4cf4ad(0x21d)](_0x201306);for(const _0x294fb8 of _0x11ebc3)this[_0x4cf4ad(0x22e)](_0x31267d,_0x294fb8)&&(_0x211d20=!0x0);for(const _0x14579c of _0x41a2ab)this[_0x4cf4ad(0x1f7)](_0x31267d,_0x14579c)&&(_0x211d20=!0x0);for(const _0x2d1766 of _0x34e408)this[_0x4cf4ad(0x1e5)](_0x31267d,_0x2d1766)&&(_0x211d20=!0x0);return _0x211d20;}[_0x3e01e2(0x1ed)](_0x21643a){const _0x5b2b00=_0x3e01e2;if(!this[_0x5b2b00(0x1e8)])return!0x1;let _0x567ac6=!0x1;if(this[_0x5b2b00(0x1e8)][_0x5b2b00(0x1d6)]!==this[_0x5b2b00(0x1ea)][_0x5b2b00(0x224)]){const _0x258131=[];for(const _0x461a28 of this[_0x5b2b00(0x1e8)][_0x5b2b00(0x1e3)]()){const _0x1242c5=_0x461a28[_0x5b2b00(0x21b)](_0x5b2b00(0x20a));this[_0x5b2b00(0x222)](_0x1242c5)||(_0x258131[_0x5b2b00(0x22c)](_0x461a28),_0x567ac6=!0x0);}for(const _0x449a60 of _0x258131)_0x21643a[_0x5b2b00(0x218)](_0x449a60);}const _0x52e405=new Set(),_0x6508f8=[];for(const _0x1f7b63 of this[_0x5b2b00(0x1e8)][_0x5b2b00(0x1e3)]()){const _0x2b12e1=_0x1f7b63[_0x5b2b00(0x21b)](_0x5b2b00(0x20a));_0x52e405[_0x5b2b00(0x207)](_0x2b12e1)?(_0x6508f8[_0x5b2b00(0x22c)](_0x1f7b63),_0x567ac6=!0x0):_0x52e405[_0x5b2b00(0x203)](_0x2b12e1);}for(const _0xadb407 of _0x6508f8)_0x21643a[_0x5b2b00(0x218)](_0xadb407);return this[_0x5b2b00(0x1e8)][_0x5b2b00(0x1d6)]||(_0x21643a[_0x5b2b00(0x218)](this[_0x5b2b00(0x1e8)]),this[_0x5b2b00(0x1e8)]=null,_0x567ac6=!0x0),_0x567ac6;}[_0x3e01e2(0x1f7)](_0x1f7c57,_0x367ee8){const _0x4a25d3=_0x3e01e2;if(this[_0x4a25d3(0x1ea)][_0x4a25d3(0x22d)](_0x1cd96c=>_0x1cd96c[_0x4a25d3(0x226)]===_0x367ee8))return!0x1;let _0xdc682d=!0x1;const _0x2e3e45=_0x367ee8[_0x4a25d3(0x21b)](_0x4a25d3(0x20a)),_0x3aa198=this[_0x4a25d3(0x1ea)][_0x4a25d3(0x206)](_0x47d79d=>_0x47d79d['id']===_0x2e3e45);-0x1!==_0x3aa198&&(_0x1f7c57[_0x4a25d3(0x218)](this[_0x4a25d3(0x1ea)][_0x3aa198][_0x4a25d3(0x226)]),this[_0x4a25d3(0x1ea)][_0x4a25d3(0x1e0)](_0x3aa198,0x1),_0xdc682d=!0x0);let _0x24fb6d=this[_0x4a25d3(0x1e8)]?function(_0x509378,_0x3a7493){const _0x4b81f=_0x4a25d3;for(const _0x19c4a6 of _0x509378[_0x4b81f(0x1e3)]())if(_0x19c4a6[_0x4b81f(0x21b)](_0x4b81f(0x20a))===_0x3a7493)return _0x19c4a6;return null;}(this[_0x4a25d3(0x1e8)],_0x2e3e45):null;_0x24fb6d||(_0x24fb6d=_0x1f7c57[_0x4a25d3(0x1ff)](_0x4a25d3(0x1fc),{'footnoteId':_0x2e3e45}),this[_0x4a25d3(0x1e8)]&&(_0x1f7c57[_0x4a25d3(0x230)](_0x24fb6d,this[_0x4a25d3(0x1e8)],_0x4a25d3(0x1f3)),_0xdc682d=!0x0));const _0x340e8a={'id':_0x2e3e45,'reference':_0x367ee8,'definition':_0x24fb6d},_0x534726=I(this[_0x4a25d3(0x1e4)][_0x4a25d3(0x225)],this[_0x4a25d3(0x1ea)],_0x367ee8);this[_0x4a25d3(0x1ea)][_0x4a25d3(0x1e0)](_0x534726,0x0,_0x340e8a);let _0x372ead=_0x534726;return-0x1!==_0x3aa198&&(_0x372ead=Math[_0x4a25d3(0x1df)](_0x534726,_0x3aa198)),this[_0x4a25d3(0x1ec)](_0x1f7c57,_0x372ead)&&(_0xdc682d=!0x0),_0xdc682d;}[_0x3e01e2(0x22e)](_0x1d957e,_0x532619){const _0x4acbbb=_0x3e01e2,_0x321ca1=this[_0x4acbbb(0x1ea)][_0x4acbbb(0x206)](_0x280a92=>_0x280a92['id']===_0x532619);if(-0x1===_0x321ca1)return!0x1;let _0x4d131b=!0x1;const _0x3ccf83=this[_0x4acbbb(0x1ea)][_0x321ca1];return _0x4acbbb(0x235)!==_0x3ccf83[_0x4acbbb(0x1f4)][_0x4acbbb(0x20f)][_0x4acbbb(0x239)]&&(_0x1d957e[_0x4acbbb(0x218)](_0x3ccf83[_0x4acbbb(0x1f4)]),_0x4d131b=!0x0),this[_0x4acbbb(0x1ea)][_0x4acbbb(0x1e0)](_0x321ca1,0x1),this[_0x4acbbb(0x1ec)](_0x1d957e,_0x321ca1)&&(_0x4d131b=!0x0),_0x4d131b;}[_0x3e01e2(0x1e5)](_0x58a91f,_0x16c292){const _0x51e197=_0x3e01e2,_0x3a19cc=_0x16c292[_0x51e197(0x21b)](_0x51e197(0x20a)),_0x74042a=this[_0x51e197(0x1ea)][_0x51e197(0x206)](_0x320ec1=>_0x320ec1['id']===_0x3a19cc),_0x31dcea=this[_0x51e197(0x1ea)][_0x74042a];let _0x26e2a1=!0x1;_0x31dcea[_0x51e197(0x226)]=_0x16c292,this[_0x51e197(0x1ea)][_0x51e197(0x1e0)](_0x74042a,0x1);const _0x30770d=I(this[_0x51e197(0x1e4)][_0x51e197(0x225)],this[_0x51e197(0x1ea)],_0x16c292);return this[_0x51e197(0x1ea)][_0x51e197(0x1e0)](_0x30770d,0x0,_0x31dcea),this[_0x51e197(0x1ec)](_0x58a91f,Math[_0x51e197(0x1df)](_0x74042a,_0x30770d))&&(_0x26e2a1=!0x0),_0x26e2a1;}[_0x3e01e2(0x229)](_0x300860,_0xd6b841){const _0x5b0950=_0x3e01e2;if(!this[_0x5b0950(0x1e8)])return!0x1;const _0x206bc4=this[_0x5b0950(0x1ea)][_0xd6b841];let _0x82f41d;return _0x82f41d=this[_0x5b0950(0x21e)]?this[_0x5b0950(0x21e)]({'footnote':_0x206bc4,'container':this[_0x5b0950(0x1e8)],'digits':String(this[_0x5b0950(0x1ea)][_0x5b0950(0x224)])[_0x5b0950(0x224)],'value':_0xd6b841+0x1}):String(_0xd6b841+0x1),_0x206bc4[_0x5b0950(0x226)][_0x5b0950(0x21b)](_0x5b0950(0x1d3))!=_0x82f41d&&(_0x300860[_0x5b0950(0x21c)](_0x5b0950(0x1d3),_0x82f41d,_0x206bc4[_0x5b0950(0x226)]),!0x0);}[_0x3e01e2(0x1fe)](_0x5055c1){const _0x567aae=_0x3e01e2;if(!this[_0x567aae(0x1e8)]||this[_0x567aae(0x1ea)][_0x567aae(0x224)]<0x2)return!0x1;if(function(_0x3d86fd,_0x39a120){const _0x2dfa56=_0x567aae;if(_0x3d86fd[_0x2dfa56(0x224)]!==_0x39a120[_0x2dfa56(0x224)])return!0x1;for(let _0x599ac6=0x0;_0x599ac6<_0x3d86fd[_0x2dfa56(0x224)];_0x599ac6++)if(_0x3d86fd[_0x599ac6]!==_0x39a120[_0x599ac6])return!0x1;return!0x0;}(this[_0x567aae(0x1ea)][_0x567aae(0x20b)](_0x2efd5a=>_0x2efd5a['id']),Array[_0x567aae(0x216)](this[_0x567aae(0x1e8)][_0x567aae(0x1e3)]())[_0x567aae(0x20b)](_0x20cec3=>_0x20cec3[_0x567aae(0x21b)](_0x567aae(0x20a)))))return!0x1;let _0xa3e804=!0x1;for(let _0x58e733=0x0;_0x58e733<this[_0x567aae(0x1ea)][_0x567aae(0x224)];_0x58e733++){const _0x2088e7=this[_0x567aae(0x1ea)][_0x58e733],_0x309776=_0x5055c1[_0x567aae(0x21f)](_0x2088e7[_0x567aae(0x1f4)]),_0x45bbae=_0x5055c1[_0x567aae(0x208)](this[_0x567aae(0x1e8)],_0x58e733);_0x309776[_0x567aae(0x212)](_0x45bbae)||(_0x5055c1[_0x567aae(0x238)](_0x5055c1[_0x567aae(0x220)](_0x2088e7[_0x567aae(0x1f4)]),_0x45bbae),_0xa3e804=!0x0);}return _0xa3e804;}[_0x3e01e2(0x1e7)](_0x17364c){const _0x271dba=_0x3e01e2;if(!this[_0x271dba(0x1ea)][_0x271dba(0x224)])return!0x1;const {model:_0x3cb11e}=this[_0x271dba(0x1e4)];let _0x5410c8=!0x1;for(let _0x294ea8=0x0;_0x294ea8<this[_0x271dba(0x1ea)][_0x271dba(0x224)]-0x1;_0x294ea8++){const _0x5c27ba=this[_0x271dba(0x1ea)][_0x294ea8],_0x5781f9=this[_0x271dba(0x1ea)][_0x294ea8+0x1],_0x37a75d=_0x3cb11e[_0x271dba(0x21f)](_0x5c27ba[_0x271dba(0x226)]),_0x1ac0b5=_0x3cb11e[_0x271dba(0x21f)](_0x5781f9[_0x271dba(0x226)]);_0x271dba(0x1e2)===_0x37a75d[_0x271dba(0x209)](_0x1ac0b5)&&(this[_0x271dba(0x1e5)](_0x17364c,_0x5c27ba[_0x271dba(0x226)]),_0x294ea8=-0x1,_0x5410c8=!0x0);}return _0x5410c8;}}function _(_0x52b718,_0xbdae88,_0x9c2bce){const _0x183f13=_0x3e01e2;if(_0x9c2bce[_0x183f13(0x1d6)])return!0x1;const _0x2a8c37=_0xbdae88?_0x183f13(0x232):_0x183f13(0x228);return _0x52b718[_0x183f13(0x230)](_0x52b718[_0x183f13(0x1ff)](_0x2a8c37),_0x9c2bce),!0x0;}function I(_0x242e5a,_0x35e4e5,_0x3696e7){const _0x2d8433=_0x3e01e2;if(0x0===_0x35e4e5[_0x2d8433(0x224)])return 0x0;const _0x5ef674=_0x242e5a[_0x2d8433(0x21f)](_0x3696e7);for(let _0x4a967b=0x0;_0x4a967b<_0x35e4e5[_0x2d8433(0x224)];_0x4a967b++){const _0x3b792b=_0x35e4e5[_0x4a967b],_0x1c610f=_0x242e5a[_0x2d8433(0x21f)](_0x3b792b[_0x2d8433(0x226)]);if(_0x2d8433(0x1f5)===_0x5ef674[_0x2d8433(0x209)](_0x1c610f))return _0x4a967b;}const _0x126333=_0x3696e7[_0x2d8433(0x20f)];let _0x37675=-0x1;for(let _0x1e62d8=_0x35e4e5[_0x2d8433(0x224)]-0x1;_0x1e62d8>=0x0;_0x1e62d8--)if(_0x35e4e5[_0x1e62d8][_0x2d8433(0x226)][_0x2d8433(0x20f)]===_0x126333){_0x37675=_0x1e62d8;break;}if(-0x1!==_0x37675)return _0x37675+0x1;const _0xc68fe8=_0x242e5a[_0x2d8433(0x217)][_0x2d8433(0x1f1)](),_0x7f039=_0xc68fe8[_0x2d8433(0x215)](_0x126333[_0x2d8433(0x239)]),_0xda23db=_0xc68fe8[_0x7f039+0x1];if(_0xda23db){for(let _0x384e7f=0x0;_0x384e7f<_0x35e4e5[_0x2d8433(0x224)];_0x384e7f++)if(_0x35e4e5[_0x384e7f][_0x2d8433(0x226)][_0x2d8433(0x20f)][_0x2d8433(0x239)]===_0xda23db)return _0x384e7f;}return _0x35e4e5[_0x2d8433(0x224)];}
|
|
23
|
+
const _0x584ec0=_0x292d;(function(_0x336349,_0x42739f){const _0x1a973a=_0x292d,_0x13996c=_0x336349();while(!![]){try{const _0x430a7d=parseInt(_0x1a973a(0x1b5))/0x1+parseInt(_0x1a973a(0x19d))/0x2*(parseInt(_0x1a973a(0x18f))/0x3)+parseInt(_0x1a973a(0x1aa))/0x4*(parseInt(_0x1a973a(0x19f))/0x5)+parseInt(_0x1a973a(0x17c))/0x6+-parseInt(_0x1a973a(0x1a5))/0x7+parseInt(_0x1a973a(0x1c3))/0x8+-parseInt(_0x1a973a(0x1bb))/0x9;if(_0x430a7d===_0x42739f)break;else _0x13996c['push'](_0x13996c['shift']());}catch(_0x199c81){_0x13996c['push'](_0x13996c['shift']());}}}(_0x30b4,0x1f068));import{Plugin as _0x54b784}from'ckeditor5/src/core.js';function _0x30b4(){const _0x409a19=['footnoteRef','setFootnoteFormatter','footnotesDefinitions','4pPhrCx','push','after','remove','footnotes.multiBlock','$graveyard','_handleFootnotesDefinitionsObjectChanges','isEqual','_ensureFootnotesDefinitionsContainerExists','footnoteDefinition','getChanges','138005WqBTGg','get','_footnotesDefinitions','_insertEmptyFootnotesDefinitionsContainer','footnoteInlineContent','editor','3722787PUPlCC','find','compareWith','childCount','high','model','document','getFootnotesDefinitionsObjectElement','31224zPvWTx','move','config','reference','set','min','getFootnote','differ','from','footnoteId','add','indexOf','init','change:data','map','pluginName','_footnoteRefsTracker','_handleRemoveFootnoteReferenceById','end','createRangeOn','some','_updateFootnotesCounters','singleton','paragraph','getFootnotes','_handleFootnoteReferencesChanges','_sortFootnoteDefinitions','enqueueChange','createPositionBefore','976620OMcTAX','_footnoteDefsTracker','parent','setAttribute','createRangeIn','registerPostFixer','footnoteCounter','insert','isPremiumPlugin','_handleInsertedFootnoteReference','_handleFootnoteDefinitionsChanges','isOfficialPlugin','definition','listenTo','rootName','root','has','FootnotesTracker','findIndex','3KYvsRb','unshift','_footnotes','low','_ensureFootnotesReferencesHaveProperOrder','getRootNames','getChildren','_footnoteDefsContainerTracker','append','getAttribute','createPositionAt','_handleMovedFootnoteReference','_handleFootnotesDefinitionsObjectSync','reset','81766hBaMZh','splice','1016035YMsNrD','length','getFootnotesFormatter','createElement','before','_footnoteFormatter','56315OctbiW','_updateFootnoteRefCounter'];_0x30b4=function(){return _0x409a19;};return _0x30b4();}import{ModelElementTracker as _0x4cc8bd}from'./modelelementtracker.js';export class FootnotesTracker extends _0x54b784{[_0x584ec0(0x191)]=[];[_0x584ec0(0x1b7)]=null;[_0x584ec0(0x1a4)]=null;[_0x584ec0(0x196)];[_0x584ec0(0x1d3)];[_0x584ec0(0x17d)];static get[_0x584ec0(0x1d2)](){const _0x47fd07=_0x584ec0;return _0x47fd07(0x18d);}static get[_0x584ec0(0x187)](){return!0x0;}static get[_0x584ec0(0x184)](){return!0x0;}constructor(_0x2dc42c){const _0x54861c=_0x584ec0;super(_0x2dc42c),this[_0x54861c(0x196)]=new _0x4cc8bd(this[_0x54861c(0x1ba)][_0x54861c(0x1c0)],{'elementName':_0x54861c(0x1a9),'getElementKey':()=>_0x54861c(0x1d9)}),this[_0x54861c(0x1d3)]=new _0x4cc8bd(this[_0x54861c(0x1ba)][_0x54861c(0x1c0)],{'elementName':_0x54861c(0x1a7),'getElementKey':_0x38f5b9=>_0x38f5b9[_0x54861c(0x198)](_0x54861c(0x1cc))}),this[_0x54861c(0x17d)]=new _0x4cc8bd(this[_0x54861c(0x1ba)][_0x54861c(0x1c0)],{'elementName':_0x54861c(0x1b3),'getElementKey':_0x428399=>_0x428399[_0x54861c(0x198)](_0x54861c(0x1cc))});}[_0x584ec0(0x1cf)](){const _0x245bfd=_0x584ec0,{editor:_0x44c886}=this,{model:_0x5d4c66,data:_0x4e3831}=_0x44c886;_0x5d4c66[_0x245bfd(0x1c1)][_0x245bfd(0x181)](_0x4d5d39=>{const _0x1c75d6=_0x245bfd,_0x4e408a=_0x5d4c66[_0x1c75d6(0x1c1)][_0x1c75d6(0x1ca)][_0x1c75d6(0x1b4)]();let _0xf3849=!0x1;return this[_0x1c75d6(0x1b0)](_0x4d5d39,_0x4e408a)&&(_0xf3849=!0x0),this[_0x1c75d6(0x186)](_0x4d5d39,_0x4e408a)&&(_0xf3849=!0x0),this[_0x1c75d6(0x1dc)](_0x4d5d39,_0x4e408a)&&(_0xf3849=!0x0),this[_0x1c75d6(0x193)](_0x4d5d39)&&(_0xf3849=!0x0),this[_0x1c75d6(0x19b)](_0x4d5d39)&&(_0xf3849=!0x0),this[_0x1c75d6(0x1dd)](_0x4d5d39)&&(_0xf3849=!0x0),_0xf3849;}),this[_0x245bfd(0x189)](_0x5d4c66[_0x245bfd(0x1c1)],_0x245bfd(0x1d0),()=>{const _0x44b892=_0x245bfd;_0x5d4c66[_0x44b892(0x17a)]({'isUndoable':!0x1},_0x470787=>{const _0x2898eb=_0x44b892;this[_0x2898eb(0x1b2)](_0x470787);});},{'priority':_0x245bfd(0x192)}),this[_0x245bfd(0x189)](_0x4e3831,_0x245bfd(0x1c7),()=>{const _0x5630bc=_0x245bfd;this[_0x5630bc(0x191)]=[],this[_0x5630bc(0x196)][_0x5630bc(0x19c)](),this[_0x5630bc(0x1d3)][_0x5630bc(0x19c)](),this[_0x5630bc(0x17d)][_0x5630bc(0x19c)]();},{'priority':_0x245bfd(0x1bf)});}[_0x584ec0(0x1c2)](){const _0xe3b9e=_0x584ec0;return this[_0xe3b9e(0x1b7)];}[_0x584ec0(0x1c9)](_0x32cacf){const _0x353f45=_0x584ec0;return this[_0x353f45(0x191)][_0x353f45(0x1bc)](_0x2383ad=>_0x2383ad['id']===_0x32cacf)||null;}[_0x584ec0(0x1db)](){const _0x42cf28=_0x584ec0;return Array[_0x42cf28(0x1cb)](this[_0x42cf28(0x191)]);}[_0x584ec0(0x1a1)](){const _0x3f79da=_0x584ec0;return this[_0x3f79da(0x1a4)];}[_0x584ec0(0x1a8)](_0x2881c1){const _0x50ba8e=_0x584ec0;this[_0x50ba8e(0x1a4)]=_0x2881c1;}[_0x584ec0(0x1d8)](_0x112948,_0x457cf9=0x0){const _0x54c606=_0x584ec0;let _0x21dcd9=!0x1;for(let _0x1e8982=_0x457cf9;_0x1e8982<this[_0x54c606(0x191)][_0x54c606(0x1a0)];_0x1e8982++)this[_0x54c606(0x1a6)](_0x112948,_0x1e8982)&&(_0x21dcd9=!0x0);return _0x21dcd9;}[_0x584ec0(0x1b8)](_0x2652ea,_0x50af7b){const _0x4c072a=_0x584ec0,_0x5169ff=_0x2652ea[_0x4c072a(0x1a2)](_0x4c072a(0x1a9),{});return _0x2652ea[_0x4c072a(0x197)](_0x5169ff,_0x50af7b),this[_0x4c072a(0x1b7)]=_0x5169ff,_0x5169ff;}[_0x584ec0(0x1b2)](_0xaaaf3f){const _0x150d2f=_0x584ec0;if(!this[_0x150d2f(0x191)][_0x150d2f(0x1a0)]||this[_0x150d2f(0x1b7)])return;const _0x1505c5=this[_0x150d2f(0x191)][0x0][_0x150d2f(0x1c6)][_0x150d2f(0x18b)],_0x681af5=this[_0x150d2f(0x1b8)](_0xaaaf3f,_0x1505c5);for(const _0x14b041 of this[_0x150d2f(0x191)])_0x14b041[_0x150d2f(0x188)][_0x150d2f(0x17e)]||_0xaaaf3f[_0x150d2f(0x183)](_0x14b041[_0x150d2f(0x188)],_0x681af5,_0x150d2f(0x1d5));this[_0x150d2f(0x1d8)](_0xaaaf3f);}[_0x584ec0(0x1b0)](_0x475fed,_0x418fb8){const _0x126b93=_0x584ec0;let _0x5a7227=!0x1;const {inserted:_0x289fce,removed:_0x418c13,moved:_0x194620}=this[_0x126b93(0x196)][_0x126b93(0x1b4)](_0x418fb8);if(_0x194620[_0x126b93(0x1a0)]&&(this[_0x126b93(0x1b7)]=_0x194620[0x0]),_0x289fce[_0x126b93(0x1a0)]){if(_0x289fce[_0x126b93(0x1a0)]>0x1||this[_0x126b93(0x1b7)]&&_0x289fce[_0x126b93(0x1d7)](_0xceb231=>_0xceb231!==this[_0x126b93(0x1b7)])){const _0x58fcfd=_0x475fed[_0x126b93(0x1a2)](_0x126b93(0x1a9),{}),_0x42d676=[];this[_0x126b93(0x1b7)]&&_0x42d676[_0x126b93(0x1ab)](this[_0x126b93(0x1b7)]),_0x42d676[_0x126b93(0x1ab)](..._0x289fce),_0x475fed[_0x126b93(0x183)](_0x58fcfd,_0x42d676[0x0],_0x126b93(0x1a3));for(const _0x582f3b of _0x42d676)_0x475fed[_0x126b93(0x1c4)](_0x475fed[_0x126b93(0x180)](_0x582f3b),_0x475fed[_0x126b93(0x199)](_0x58fcfd,_0x126b93(0x1d5))),_0x475fed[_0x126b93(0x1ad)](_0x582f3b);this[_0x126b93(0x1b7)]=_0x58fcfd,this[_0x126b93(0x1d8)](_0x475fed),_0x5a7227=!0x0;}else this[_0x126b93(0x1b7)]=_0x289fce[0x0];}if(_0x418c13[_0x126b93(0x1a0)]&&_0x126b93(0x1af)===this[_0x126b93(0x1b7)]?.[_0x126b93(0x18b)][_0x126b93(0x18a)]){for(const _0xb44259 of this[_0x126b93(0x191)])_0x475fed[_0x126b93(0x1ad)](_0xb44259[_0x126b93(0x1c6)]),_0x5a7227=!0x0;this[_0x126b93(0x191)]=[],this[_0x126b93(0x1b7)]=null;}return _0x5a7227;}[_0x584ec0(0x186)](_0x18257e,_0x5cb7d7){const _0x10524f=_0x584ec0;let _0x4b9b10=!0x1;const _0x346cd8=this[_0x10524f(0x1ba)][_0x10524f(0x1c5)][_0x10524f(0x1b6)](_0x10524f(0x1ae)),{inserted:_0x175508,moved:_0x51f065}=this[_0x10524f(0x17d)][_0x10524f(0x1b4)](_0x5cb7d7);for(const _0x5696cf of[..._0x51f065,..._0x175508]){const _0x573322=_0x5696cf[_0x10524f(0x198)](_0x10524f(0x1cc)),_0x59a7dc=this[_0x10524f(0x1c9)](_0x573322);_0x59a7dc&&(_0x59a7dc[_0x10524f(0x188)]=_0x5696cf),_(_0x18257e,_0x346cd8,_0x5696cf)&&(_0x4b9b10=!0x0);}return _0x4b9b10;}[_0x584ec0(0x1dc)](_0x299ad2,_0xf177e9){const _0xd0dabf=_0x584ec0;let _0x3b0344=!0x1;const {removed:_0x5b4437,inserted:_0x461857,moved:_0x25856f}=this[_0xd0dabf(0x1d3)][_0xd0dabf(0x1b4)](_0xf177e9);for(const _0x2cf3bb of _0x5b4437)this[_0xd0dabf(0x1d4)](_0x299ad2,_0x2cf3bb)&&(_0x3b0344=!0x0);for(const _0xe9030d of _0x461857)this[_0xd0dabf(0x185)](_0x299ad2,_0xe9030d)&&(_0x3b0344=!0x0);for(const _0x484833 of _0x25856f)this[_0xd0dabf(0x19a)](_0x299ad2,_0x484833)&&(_0x3b0344=!0x0);return _0x3b0344;}[_0x584ec0(0x19b)](_0x494c82){const _0x193392=_0x584ec0;if(!this[_0x193392(0x1b7)])return!0x1;let _0x2d779c=!0x1;if(this[_0x193392(0x1b7)][_0x193392(0x1be)]!==this[_0x193392(0x191)][_0x193392(0x1a0)]){const _0x4cb0ef=[];for(const _0x158840 of this[_0x193392(0x1b7)][_0x193392(0x195)]()){const _0xb2949e=_0x158840[_0x193392(0x198)](_0x193392(0x1cc));this[_0x193392(0x1c9)](_0xb2949e)||(_0x4cb0ef[_0x193392(0x190)](_0x158840),_0x2d779c=!0x0);}for(const _0x39954e of _0x4cb0ef)_0x494c82[_0x193392(0x1ad)](_0x39954e);}const _0x246352=new Set(),_0x479887=[];for(const _0x57fcca of this[_0x193392(0x1b7)][_0x193392(0x195)]()){const _0x47f904=_0x57fcca[_0x193392(0x198)](_0x193392(0x1cc));_0x246352[_0x193392(0x18c)](_0x47f904)?(_0x479887[_0x193392(0x190)](_0x57fcca),_0x2d779c=!0x0):_0x246352[_0x193392(0x1cd)](_0x47f904);}for(const _0x217682 of _0x479887)_0x494c82[_0x193392(0x1ad)](_0x217682);return this[_0x193392(0x1b7)][_0x193392(0x1be)]||(_0x494c82[_0x193392(0x1ad)](this[_0x193392(0x1b7)]),this[_0x193392(0x1b7)]=null,_0x2d779c=!0x0),_0x2d779c;}[_0x584ec0(0x185)](_0xf21eb2,_0x241866){const _0x4d92f2=_0x584ec0;if(this[_0x4d92f2(0x191)][_0x4d92f2(0x1bc)](_0xeeef50=>_0xeeef50[_0x4d92f2(0x1c6)]===_0x241866))return!0x1;let _0xa1ea72=!0x1;const _0x1bcc9a=_0x241866[_0x4d92f2(0x198)](_0x4d92f2(0x1cc)),_0x1747de=this[_0x4d92f2(0x191)][_0x4d92f2(0x18e)](_0x457872=>_0x457872['id']===_0x1bcc9a);-0x1!==_0x1747de&&(_0xf21eb2[_0x4d92f2(0x1ad)](this[_0x4d92f2(0x191)][_0x1747de][_0x4d92f2(0x1c6)]),this[_0x4d92f2(0x191)][_0x4d92f2(0x19e)](_0x1747de,0x1),_0xa1ea72=!0x0);let _0x13cef9=this[_0x4d92f2(0x1b7)]?function(_0x73b890,_0x138b4d){const _0x35ca69=_0x4d92f2;for(const _0x2a37e3 of _0x73b890[_0x35ca69(0x195)]())if(_0x2a37e3[_0x35ca69(0x198)](_0x35ca69(0x1cc))===_0x138b4d)return _0x2a37e3;return null;}(this[_0x4d92f2(0x1b7)],_0x1bcc9a):null;_0x13cef9||(_0x13cef9=_0xf21eb2[_0x4d92f2(0x1a2)](_0x4d92f2(0x1b3),{'footnoteId':_0x1bcc9a}),this[_0x4d92f2(0x1b7)]&&(_0xf21eb2[_0x4d92f2(0x183)](_0x13cef9,this[_0x4d92f2(0x1b7)],_0x4d92f2(0x1d5)),_0xa1ea72=!0x0));const _0x1ae71e={'id':_0x1bcc9a,'reference':_0x241866,'definition':_0x13cef9},_0x4e0fc5=I(this[_0x4d92f2(0x1ba)][_0x4d92f2(0x1c0)],this[_0x4d92f2(0x191)],_0x241866);this[_0x4d92f2(0x191)][_0x4d92f2(0x19e)](_0x4e0fc5,0x0,_0x1ae71e);let _0x5b750b=_0x4e0fc5;return-0x1!==_0x1747de&&(_0x5b750b=Math[_0x4d92f2(0x1c8)](_0x4e0fc5,_0x1747de)),this[_0x4d92f2(0x1d8)](_0xf21eb2,_0x5b750b)&&(_0xa1ea72=!0x0),_0xa1ea72;}[_0x584ec0(0x1d4)](_0x3b5d6a,_0x58beef){const _0xca4755=_0x584ec0,_0x11de26=this[_0xca4755(0x191)][_0xca4755(0x18e)](_0x40a7cc=>_0x40a7cc['id']===_0x58beef);if(-0x1===_0x11de26)return!0x1;let _0x4c20a7=!0x1;const _0x117952=this[_0xca4755(0x191)][_0x11de26];return _0xca4755(0x1af)!==_0x117952[_0xca4755(0x188)][_0xca4755(0x18b)][_0xca4755(0x18a)]&&(_0x3b5d6a[_0xca4755(0x1ad)](_0x117952[_0xca4755(0x188)]),_0x4c20a7=!0x0),this[_0xca4755(0x191)][_0xca4755(0x19e)](_0x11de26,0x1),this[_0xca4755(0x1d8)](_0x3b5d6a,_0x11de26)&&(_0x4c20a7=!0x0),_0x4c20a7;}[_0x584ec0(0x19a)](_0x23f318,_0x4ed9d9){const _0x246de0=_0x584ec0,_0x579d82=_0x4ed9d9[_0x246de0(0x198)](_0x246de0(0x1cc)),_0x526377=this[_0x246de0(0x191)][_0x246de0(0x18e)](_0x2a2df0=>_0x2a2df0['id']===_0x579d82),_0x326e15=this[_0x246de0(0x191)][_0x526377];let _0x17e44e=!0x1;_0x326e15[_0x246de0(0x1c6)]=_0x4ed9d9,this[_0x246de0(0x191)][_0x246de0(0x19e)](_0x526377,0x1);const _0x3a90ce=I(this[_0x246de0(0x1ba)][_0x246de0(0x1c0)],this[_0x246de0(0x191)],_0x4ed9d9);return this[_0x246de0(0x191)][_0x246de0(0x19e)](_0x3a90ce,0x0,_0x326e15),this[_0x246de0(0x1d8)](_0x23f318,Math[_0x246de0(0x1c8)](_0x526377,_0x3a90ce))&&(_0x17e44e=!0x0),_0x17e44e;}[_0x584ec0(0x1a6)](_0x5c80ab,_0x7bc70c){const _0x27edb9=_0x584ec0;if(!this[_0x27edb9(0x1b7)])return!0x1;const _0x1ad8fa=this[_0x27edb9(0x191)][_0x7bc70c];let _0x39222a;return _0x39222a=this[_0x27edb9(0x1a4)]?this[_0x27edb9(0x1a4)]({'footnote':_0x1ad8fa,'container':this[_0x27edb9(0x1b7)],'digits':String(this[_0x27edb9(0x191)][_0x27edb9(0x1a0)])[_0x27edb9(0x1a0)],'value':_0x7bc70c+0x1}):String(_0x7bc70c+0x1),_0x1ad8fa[_0x27edb9(0x1c6)][_0x27edb9(0x198)](_0x27edb9(0x182))!=_0x39222a&&(_0x5c80ab[_0x27edb9(0x17f)](_0x27edb9(0x182),_0x39222a,_0x1ad8fa[_0x27edb9(0x1c6)]),!0x0);}[_0x584ec0(0x1dd)](_0x117a26){const _0x437f34=_0x584ec0;if(!this[_0x437f34(0x1b7)]||this[_0x437f34(0x191)][_0x437f34(0x1a0)]<0x2)return!0x1;if(function(_0x46132d,_0x4112ad){const _0x500aa6=_0x437f34;if(_0x46132d[_0x500aa6(0x1a0)]!==_0x4112ad[_0x500aa6(0x1a0)])return!0x1;for(let _0x452bae=0x0;_0x452bae<_0x46132d[_0x500aa6(0x1a0)];_0x452bae++)if(_0x46132d[_0x452bae]!==_0x4112ad[_0x452bae])return!0x1;return!0x0;}(this[_0x437f34(0x191)][_0x437f34(0x1d1)](_0x36416d=>_0x36416d['id']),Array[_0x437f34(0x1cb)](this[_0x437f34(0x1b7)][_0x437f34(0x195)]())[_0x437f34(0x1d1)](_0x494ff9=>_0x494ff9[_0x437f34(0x198)](_0x437f34(0x1cc)))))return!0x1;let _0x4ee93c=!0x1;for(let _0x4ae516=0x0;_0x4ae516<this[_0x437f34(0x191)][_0x437f34(0x1a0)];_0x4ae516++){const _0x4087bd=this[_0x437f34(0x191)][_0x4ae516],_0x3dc096=_0x117a26[_0x437f34(0x17b)](_0x4087bd[_0x437f34(0x188)]),_0x3e8ff4=_0x117a26[_0x437f34(0x199)](this[_0x437f34(0x1b7)],_0x4ae516);_0x3dc096[_0x437f34(0x1b1)](_0x3e8ff4)||(_0x117a26[_0x437f34(0x1c4)](_0x117a26[_0x437f34(0x1d6)](_0x4087bd[_0x437f34(0x188)]),_0x3e8ff4),_0x4ee93c=!0x0);}return _0x4ee93c;}[_0x584ec0(0x193)](_0x4b7ec4){const _0x173919=_0x584ec0;if(!this[_0x173919(0x191)][_0x173919(0x1a0)])return!0x1;const {model:_0x5b8493}=this[_0x173919(0x1ba)];let _0x359a40=!0x1;for(let _0xf85d81=0x0;_0xf85d81<this[_0x173919(0x191)][_0x173919(0x1a0)]-0x1;_0xf85d81++){const _0x4910b3=this[_0x173919(0x191)][_0xf85d81],_0x25a1ad=this[_0x173919(0x191)][_0xf85d81+0x1],_0x1442c1=_0x5b8493[_0x173919(0x17b)](_0x4910b3[_0x173919(0x1c6)]),_0x432d32=_0x5b8493[_0x173919(0x17b)](_0x25a1ad[_0x173919(0x1c6)]);_0x173919(0x1ac)===_0x1442c1[_0x173919(0x1bd)](_0x432d32)&&(this[_0x173919(0x19a)](_0x4b7ec4,_0x4910b3[_0x173919(0x1c6)]),_0xf85d81=-0x1,_0x359a40=!0x0);}return _0x359a40;}}function _(_0x1dd544,_0x15eaaf,_0x1c1a2a){const _0xb8241a=_0x584ec0;if(_0x1c1a2a[_0xb8241a(0x1be)])return!0x1;const _0x1ccbce=_0x15eaaf?_0xb8241a(0x1da):_0xb8241a(0x1b9);return _0x1dd544[_0xb8241a(0x183)](_0x1dd544[_0xb8241a(0x1a2)](_0x1ccbce),_0x1c1a2a),!0x0;}function _0x292d(_0x2159a3,_0x3e6b76){const _0x30b45d=_0x30b4();return _0x292d=function(_0x292de9,_0x13558c){_0x292de9=_0x292de9-0x17a;let _0x7ec890=_0x30b45d[_0x292de9];return _0x7ec890;},_0x292d(_0x2159a3,_0x3e6b76);}function I(_0x100668,_0x124a6f,_0x4d3417){const _0x3f2997=_0x584ec0;if(0x0===_0x124a6f[_0x3f2997(0x1a0)])return 0x0;const _0x5c9fee=_0x100668[_0x3f2997(0x17b)](_0x4d3417);for(let _0x4e1e4c=0x0;_0x4e1e4c<_0x124a6f[_0x3f2997(0x1a0)];_0x4e1e4c++){const _0x2c3448=_0x124a6f[_0x4e1e4c],_0x226fca=_0x100668[_0x3f2997(0x17b)](_0x2c3448[_0x3f2997(0x1c6)]);if(_0x3f2997(0x1a3)===_0x5c9fee[_0x3f2997(0x1bd)](_0x226fca))return _0x4e1e4c;}const _0x2be977=_0x4d3417[_0x3f2997(0x18b)];let _0x53e11c=-0x1;for(let _0x360b2c=_0x124a6f[_0x3f2997(0x1a0)]-0x1;_0x360b2c>=0x0;_0x360b2c--)if(_0x124a6f[_0x360b2c][_0x3f2997(0x1c6)][_0x3f2997(0x18b)]===_0x2be977){_0x53e11c=_0x360b2c;break;}if(-0x1!==_0x53e11c)return _0x53e11c+0x1;const _0xa65d34=_0x100668[_0x3f2997(0x1c1)][_0x3f2997(0x194)](),_0x5390e9=_0xa65d34[_0x3f2997(0x1ce)](_0x2be977[_0x3f2997(0x18a)]),_0x643125=_0xa65d34[_0x5390e9+0x1];if(_0x643125){for(let _0x2ae4be=0x0;_0x2ae4be<_0x124a6f[_0x3f2997(0x1a0)];_0x2ae4be++)if(_0x124a6f[_0x2ae4be][_0x3f2997(0x1c6)][_0x3f2997(0x18b)][_0x3f2997(0x18a)]===_0x643125)return _0x2ae4be;}return _0x124a6f[_0x3f2997(0x1a0)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2e2b41,MenuBarMenuListItemButtonView as _0x29ae13}from'ckeditor5/src/ui.js';import{Plugin as _0x1ad2f2}from'ckeditor5/src/core.js';import{IconFootnote as _0xeee26b}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x1ad2f2{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xff012f}=this,{componentFactory:_0x3833be}=_0xff012f['ui'];_0x3833be['add']('insertFootnote',x(_0xff012f,_0x2e2b41)),_0x3833be['add']('menuBar:insertFootnote',x(_0xff012f,_0x29ae13)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d451d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc6587b;for(const _0x2c7822 in _0x4d451d){const _0x46874b=_0x2c7822,_0x569100=_0x4d451d[_0x46874b];if('footnotesLicenseKeyValid'==_0x569100||'footnotesLicenseKeyInvalid'==_0x569100||'footnotesLicenseKeyExpired'==_0x569100||'footnotesLicenseKeyDomainLimit'==_0x569100||'footnotesLicenseKeyNotAllowed'==_0x569100||'footnotesLicenseKeyEvaluationLimit'==_0x569100||'footnotesLicenseKeyTrialLimit'==_0x569100||'footnotesLicenseKeyUsageLimit'==_0x569100){delete _0x4d451d[_0x46874b],_0xc6587b=_0x569100,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xc6587b&&_0x4d451d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xc6587b&&_0x4d451d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xc6587b&&_0x4d451d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xc6587b&&_0x4d451d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xc6587b&&_0x4d451d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xc6587b&&_0x4d451d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xc6587b&&_0x4d451d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x5e3030,_0x864cec){const _0x329a3b=_0x5e3030['commands']['get']('insertFootnote');return _0x20a305=>{const {t:t}=_0x20a305,_0x56c9bc=new _0x864cec(_0x20a305),_0x1a8a76=_0x56c9bc instanceof _0x29ae13;return _0x56c9bc['bind']('isEnabled')['to'](_0x329a3b,'isEnabled'),_0x56c9bc['set']({'label':t(_0x1a8a76?'Footnote':'Insert\x20footnote'),'icon':_0xeee26b,'tooltip':!0x0}),_0x56c9bc['on']('execute',()=>{_0x329a3b['execute'](),_0x5e3030['editing']['view']['focus']();}),_0x56c9bc;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x428442,_0x3f023d){var _0x1404e9=_0x2a3d,_0x2fe20a=_0x428442();while(!![]){try{var _0x1b974e=parseInt(_0x1404e9(0x80))/0x1+-parseInt(_0x1404e9(0x85))/0x2*(-parseInt(_0x1404e9(0x7a))/0x3)+parseInt(_0x1404e9(0x7e))/0x4+parseInt(_0x1404e9(0x82))/0x5*(parseInt(_0x1404e9(0x84))/0x6)+parseInt(_0x1404e9(0x81))/0x7*(-parseInt(_0x1404e9(0x83))/0x8)+parseInt(_0x1404e9(0x7c))/0x9*(parseInt(_0x1404e9(0x7d))/0xa)+parseInt(_0x1404e9(0x7f))/0xb*(-parseInt(_0x1404e9(0x7b))/0xc);if(_0x1b974e===_0x3f023d)break;else _0x2fe20a['push'](_0x2fe20a['shift']());}catch(_0xa05812){_0x2fe20a['push'](_0x2fe20a['shift']());}}}(_0x5f21,0x7912b));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';function _0x2a3d(_0x537999,_0x35b433){var _0x5f2154=_0x5f21();return _0x2a3d=function(_0x2a3d04,_0x4cb55d){_0x2a3d04=_0x2a3d04-0x7a;var _0x3e3fdb=_0x5f2154[_0x2a3d04];return _0x3e3fdb;},_0x2a3d(_0x537999,_0x35b433);}export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';function _0x5f21(){var _0x23dbaa=['40ysuEGc','6ZPcMLK','599384EYNdtL','6hxVpkP','11100kJzrpm','9SYbaRI','280510VgKRwE','3866048pPqYKR','30206iPIeup','991341VLptqz','363650yVjgdX','3552135CgyCMt'];_0x5f21=function(){return _0x23dbaa;};return _0x5f21();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4ba7c6=_0x4804;function _0x118a(){const _0x15815f=['$text','558573ZVQJVJ','has','4639590Ddmnzb','from','reset','_model','flat','remove','7386yHavnz','10uKkJqK','type','_trackedElements','push','767522uMIPrW','$graveyard','1465ozprox','createRangeOn','add','_elementName','getElementKey','slice','set','39XwjnvB','rootName','insert','getItems','_getElementKey','8rAOsFW','elementName','length','delete','root','9XVldGd','1419sRuvhZ','values','name','50057HMrrrO','nodeAfter','element','14424wZkXpX','8QOstxy','attributes','clear','get','2407748NZlpiX','position','getChanges'];_0x118a=function(){return _0x15815f;};return _0x118a();}function _0x4804(_0x4af518,_0xb99303){const _0x118a58=_0x118a();return _0x4804=function(_0x480453,_0xfd1a6b){_0x480453=_0x480453-0x11f;let _0x41ff65=_0x118a58[_0x480453];return _0x41ff65;},_0x4804(_0x4af518,_0xb99303);}(function(_0x5b1d3b,_0x463229){const _0x10b077=_0x4804,_0x50f471=_0x5b1d3b();while(!![]){try{const _0x5d9caa=parseInt(_0x10b077(0x147))/0x1*(parseInt(_0x10b077(0x12c))/0x2)+-parseInt(_0x10b077(0x123))/0x3*(parseInt(_0x10b077(0x13e))/0x4)+-parseInt(_0x10b077(0x132))/0x5*(-parseInt(_0x10b077(0x12b))/0x6)+-parseInt(_0x10b077(0x130))/0x7*(parseInt(_0x10b077(0x14b))/0x8)+-parseInt(_0x10b077(0x143))/0x9*(parseInt(_0x10b077(0x125))/0xa)+-parseInt(_0x10b077(0x144))/0xb*(-parseInt(_0x10b077(0x14a))/0xc)+-parseInt(_0x10b077(0x139))/0xd*(-parseInt(_0x10b077(0x11f))/0xe);if(_0x5d9caa===_0x463229)break;else _0x50f471['push'](_0x50f471['shift']());}catch(_0x2b7606){_0x50f471['push'](_0x50f471['shift']());}}}(_0x118a,0x52071));export class ModelElementTracker{[_0x4ba7c6(0x128)];[_0x4ba7c6(0x135)];[_0x4ba7c6(0x13d)];[_0x4ba7c6(0x12e)]=new Map();constructor(_0x324829,_0x1fab59){const _0x3fb1ca=_0x4ba7c6;this[_0x3fb1ca(0x128)]=_0x324829,this[_0x3fb1ca(0x135)]=_0x1fab59[_0x3fb1ca(0x13f)],this[_0x3fb1ca(0x13d)]=_0x1fab59[_0x3fb1ca(0x136)];}[_0x4ba7c6(0x127)](){const _0x893360=_0x4ba7c6;this[_0x893360(0x12e)][_0x893360(0x14d)]();}[_0x4ba7c6(0x121)](_0x43a0d1){const _0x3291ec=_0x4ba7c6,_0x30e932=new Set(),_0x80eaee=new Map();for(const _0x2e6cdc of _0x43a0d1){if(_0x3291ec(0x13b)===_0x2e6cdc[_0x3291ec(0x12d)]&&_0x3291ec(0x122)!==_0x2e6cdc[_0x3291ec(0x146)]&&_0x2e6cdc[_0x3291ec(0x120)][_0x3291ec(0x148)]){const _0x496c49=this[_0x3291ec(0x128)][_0x3291ec(0x133)](_0x2e6cdc[_0x3291ec(0x120)][_0x3291ec(0x148)]);for(const _0x49cbaa of _0x496c49[_0x3291ec(0x13c)]()){if(!_0x49cbaa['is'](_0x3291ec(0x149),this[_0x3291ec(0x135)]))continue;const _0x365aca=this[_0x3291ec(0x13d)](_0x49cbaa);_0x80eaee[_0x3291ec(0x124)](_0x365aca)||_0x80eaee[_0x3291ec(0x138)](_0x365aca,[]),_0x80eaee[_0x3291ec(0x14e)](_0x365aca)[_0x3291ec(0x12f)](_0x49cbaa);}}if(_0x3291ec(0x12a)===_0x2e6cdc[_0x3291ec(0x12d)]&&_0x2e6cdc[_0x3291ec(0x146)]===this[_0x3291ec(0x135)]){const _0x52dac5=this[_0x3291ec(0x13d)]({'getAttribute':_0x23aafb=>_0x2e6cdc[_0x3291ec(0x14c)][_0x3291ec(0x14e)](_0x23aafb)});_0x30e932[_0x3291ec(0x134)](_0x52dac5);}}for(const [_0x2e2321,_0x137b2a]of this[_0x3291ec(0x12e)])_0x3291ec(0x131)===_0x137b2a[_0x3291ec(0x142)][_0x3291ec(0x13a)]&&_0x30e932[_0x3291ec(0x134)](_0x2e2321);for(const _0x3d582a of _0x30e932)this[_0x3291ec(0x12e)][_0x3291ec(0x141)](_0x3d582a);for(const [_0x446bfb,_0x1646f1]of _0x80eaee)this[_0x3291ec(0x12e)][_0x3291ec(0x138)](_0x446bfb,_0x1646f1[_0x1646f1[_0x3291ec(0x140)]-0x1]);const _0x1f0100=new Set();for(const [_0x20d756,_0x11228b]of _0x80eaee)_0x30e932[_0x3291ec(0x124)](_0x20d756)&&(_0x1f0100[_0x3291ec(0x134)](_0x11228b[0x0]),_0x11228b[_0x3291ec(0x140)]>0x1?_0x80eaee[_0x3291ec(0x138)](_0x20d756,_0x11228b[_0x3291ec(0x137)](0x1)):_0x80eaee[_0x3291ec(0x141)](_0x20d756),_0x30e932[_0x3291ec(0x141)](_0x20d756));return{'removed':Array[_0x3291ec(0x126)](_0x30e932),'inserted':Array[_0x3291ec(0x126)](_0x80eaee[_0x3291ec(0x145)]())[_0x3291ec(0x129)](),'moved':Array[_0x3291ec(0x126)](_0x1f0100)};}}
|