@ckeditor/ckeditor5-footnotes 47.6.1 → 47.6.2-alpha.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 _0x43d62d}from'ckeditor5/src/core.js';import{isWidget as _0x40feb4,toWidget as _0x2b8740,toWidgetEditable as _0x1900f5}from'ckeditor5/src/widget.js';import{uid as _0x435f23}from'ckeditor5/src/utils.js';import{PointerObserver as _0x47237e,ClickObserver as _0x3e7292}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x12d3fb}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x224aa7}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x43d62d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x12d3fb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x492641}=this;_0x492641['config']['define']('footnotes.multiBlock',!0x0),_0x492641['commands']['add']('insertFootnote',new _0x224aa7(_0x492641)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x342b81){const _0x18cbd4=_0x2cf1b4([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]),_0x314913=0x47a28506,_0x26f0e0=0x47a5010e^_0x314913,_0x5cb0af=window[_0x2cf1b4([0x44,0x61,0x74,0x65])][_0x2cf1b4([0x6e,0x6f,0x77])](),_0x1948ca=_0x342b81[_0x2cf1b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b6907=new window[(_0x2cf1b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x373d03=>{_0x1948ca[_0x2cf1b4([0x6f,0x6e,0x63,0x65])](_0x2cf1b4([0x72,0x65,0x61,0x64,0x79]),_0x373d03);}),_0x1c2f04={[_0x2cf1b4([0x6b,0x74,0x79])]:_0x2cf1b4([0x45,0x43]),[_0x2cf1b4([0x75,0x73,0x65])]:_0x2cf1b4([0x73,0x69,0x67]),[_0x2cf1b4([0x63,0x72,0x76])]:_0x2cf1b4([0x50,0x2d,0x32,0x35,0x36]),[_0x2cf1b4([0x78])]:_0x2cf1b4([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]),[_0x2cf1b4([0x79])]:_0x2cf1b4([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]),[_0x2cf1b4([0x61,0x6c,0x67])]:_0x2cf1b4([0x45,0x53,0x32,0x35,0x36])},_0x35ebbe=_0x1948ca[_0x2cf1b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cf1b4([0x67,0x65,0x74])](_0x2cf1b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a8556(){let _0x32104a,_0x4a9927=null,_0x4b4fb2=null;try{if(_0x35ebbe==_0x2cf1b4([0x47,0x50,0x4c]))return _0x2cf1b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32104a=_0x13b12c(),!_0x32104a)return _0x2cf1b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32104a[_0x2cf1b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b4fb2=_0x5cb4e5(_0x32104a[_0x2cf1b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32104a[_0x2cf1b4([0x6a,0x74,0x69])])),await _0x116cde()?_0x55be87()?_0x8e73a1()?_0x2cf1b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1809a0()?(_0x32104a[_0x2cf1b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cf1b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a9927=_0x3e7d1b(_0x2cf1b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x111d87()):_0x2cf1b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cf1b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cf1b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cf1b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8e73a1(){const _0x484df3=[_0x2cf1b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cf1b4([0x74,0x72,0x69,0x61,0x6c])][_0x2cf1b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32104a[_0x2cf1b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5cb0af/0x3e8:0xe10*_0x26f0e0;return _0x32104a[_0x2cf1b4([0x65,0x78,0x70])]<_0x484df3;}function _0x55be87(){const _0x3c03be=_0x32104a[_0x2cf1b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c03be&&(!!_0x3c03be[_0x2cf1b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cf1b4([0x2a]))||!!_0x3c03be[_0x2cf1b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cf1b4([0x46,0x4f,0x4f])));}function _0x1809a0(){const _0x214dbb=_0x32104a[_0x2cf1b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x214dbb||0x0==_0x214dbb[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4d66e7}=new URL(window[_0x2cf1b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x214dbb[_0x2cf1b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d66e7))return!0x0;const _0x1a01cc=_0x4d66e7[_0x2cf1b4([0x73,0x70,0x6c,0x69,0x74])](_0x2cf1b4([0x2e]));return _0x214dbb[_0x2cf1b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b0032=>_0x5b0032[_0x2cf1b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cf1b4([0x2a])))[_0x2cf1b4([0x6d,0x61,0x70])](_0x1d8c0a=>_0x1d8c0a[_0x2cf1b4([0x73,0x70,0x6c,0x69,0x74])](_0x2cf1b4([0x2e])))[_0x2cf1b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36a518=>_0x36a518[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a01cc[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cf1b4([0x6d,0x61,0x70])](_0x2f3cb2=>Array(_0x1a01cc[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f3cb2[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cf1b4([0x66,0x69,0x6c,0x6c])](_0x2f3cb2[0x0]===_0x2cf1b4([0x2a])?_0x2cf1b4([0x2a]):'')[_0x2cf1b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f3cb2))[_0x2cf1b4([0x73,0x6f,0x6d,0x65])](_0x2a4872=>_0x1a01cc[_0x2cf1b4([0x65,0x76,0x65,0x72,0x79])]((_0x289bc4,_0x56b912)=>_0x2a4872[_0x56b912]===_0x289bc4||_0x2a4872[_0x56b912]===_0x2cf1b4([0x2a])));}function _0x111d87(){return _0x4a9927&&_0x4b4fb2?new window[(_0x2cf1b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x63a369,_0x3266a9)=>{_0x4a9927[_0x2cf1b4([0x74,0x68,0x65,0x6e])](_0x63a369,_0x3266a9),_0x4b4fb2[_0x2cf1b4([0x74,0x68,0x65,0x6e])](_0x9a997e=>{_0x9a997e!=_0x2cf1b4([0x56,0x61,0x6c,0x69,0x64])&&_0x63a369(_0x9a997e);},_0x3266a9);}):_0x4a9927||_0x4b4fb2||_0x2cf1b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cb4e5(_0x4b02d6,_0x35b826){return new window[(_0x2cf1b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e933=>{if(_0x9a0ae6())return _0x18e933(_0x2cf1b4([0x56,0x61,0x6c,0x69,0x64]));_0x727733(),_0x1948ca[_0x2cf1b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cf1b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd1817=!0x1;const _0x28578d=_0x435f23();function _0x48422b(_0xe87e51){return!!_0xe87e51&&(typeof _0xe87e51===_0x2cf1b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe87e51===_0x2cf1b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe87e51[_0x2cf1b4([0x74,0x68,0x65,0x6e])]===_0x2cf1b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe87e51[_0x2cf1b4([0x63,0x61,0x74,0x63,0x68])]===_0x2cf1b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d1f28(_0x52637e){_0x5d96cf(_0x52637e)[_0x2cf1b4([0x74,0x68,0x65,0x6e])](_0x3eb082=>{if(!_0x3eb082||_0x3eb082[_0x2cf1b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cf1b4([0x6f,0x6b]))return _0x2cf1b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c8cdb(_0xe2d621(_0x28578d+_0x35b826))!=_0x3eb082[_0x2cf1b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cf1b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cf1b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cf1b4([0x74,0x68,0x65,0x6e])](_0x5b1453=>(_0x8555be(),_0x5b1453),()=>{const _0x1c50ed=_0x427e29();return null==_0x1c50ed?(_0x8555be(),_0x2cf1b4([0x56,0x61,0x6c,0x69,0x64])):_0x2cf1b4(_0x5cb0af-_0x1c50ed>(0x63ae0106^_0x314913)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cf1b4([0x74,0x68,0x65,0x6e])](_0x18e933)[_0x2cf1b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18e933(_0x2cf1b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f3a2c=0x47946b86^_0x314913;function _0x8555be(){const _0x7e08b5=_0x2cf1b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c8cdb(_0xe2d621(_0x4b02d6)),_0x5eb903=_0xff2dea(_0x5c8cdb(window[_0x2cf1b4([0x4d,0x61,0x74,0x68])][_0x2cf1b4([0x63,0x65,0x69,0x6c])](_0x5cb0af/_0x1f3a2c)));window[_0x2cf1b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cf1b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7e08b5,_0x5eb903);}function _0x427e29(){const _0x2ddc43=_0x2cf1b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c8cdb(_0xe2d621(_0x4b02d6)),_0x5dd3ef=window[_0x2cf1b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cf1b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ddc43);return _0x5dd3ef?window[_0x2cf1b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xff2dea(_0x5dd3ef),0x10)*_0x1f3a2c:null;}function _0x5d96cf(_0x1889f1){return new window[(_0x2cf1b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fe523,_0x2ff7bd)=>{_0x1889f1[_0x2cf1b4([0x74,0x68,0x65,0x6e])](_0x1fe523,_0x2ff7bd),window[_0x2cf1b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ff7bd,0x47a351c6^_0x314913);});}}_0x1948ca[_0x2cf1b4([0x6f,0x6e])](_0x2cf1b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15db6,_0x47f4d5)=>{if(_0x47f4d5[0x0]!=_0x4b02d6)return _0x18e933(_0x2cf1b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47f4d5[0x1]={..._0x47f4d5[0x1],[_0x2cf1b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28578d};},{[_0x2cf1b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cf1b4([0x68,0x69,0x67,0x68])}),_0x1948ca[_0x2cf1b4([0x6f,0x6e])](_0x2cf1b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x160689=>{_0x48422b(_0x160689[_0x2cf1b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd1817=!0x0,_0x1d1f28(_0x160689[_0x2cf1b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cf1b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cf1b4([0x6c,0x6f,0x77])}),_0x2b6907[_0x2cf1b4([0x74,0x68,0x65,0x6e])](()=>{_0xd1817||_0x18e933(_0x2cf1b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9a0ae6(){return _0x1948ca[_0x2cf1b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cf1b4([0x76,0x69,0x65,0x77])][_0x2cf1b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cf1b4([0x61,0x75,0x74,0x6f]);}function _0x727733(){_0x1948ca[_0x2cf1b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cf1b4([0x76,0x69,0x65,0x77])][_0x2cf1b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cf1b4([0x61,0x75,0x74,0x6f]);}}function _0x3e7d1b(_0x486b29){const _0xc04ec2=[new window[(_0x2cf1b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f965=>setTimeout(_0x30f965,0x47abbbca^_0x314913)),_0x2b6907[_0x2cf1b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cf1b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3727b3=>{let _0x4ccf95=0x0;_0x1948ca[_0x2cf1b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cf1b4([0x6f,0x6e])](_0x2cf1b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3648b9,_0x1e8520)=>{_0x1e8520[0x0][_0x2cf1b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ccf95++,_0x4ccf95==(0x47a280ee^_0x314913)&&(_0x3727b3(),_0x3648b9[_0x2cf1b4([0x6f,0x66,0x66])]());});}))];return window[_0x2cf1b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cf1b4([0x72,0x61,0x63,0x65])](_0xc04ec2)[_0x2cf1b4([0x74,0x68,0x65,0x6e])](()=>_0x486b29);}async function _0x235240(){await _0x2b6907,_0x1948ca[_0x2cf1b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cf1b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14da8b,_0x1948ca[_0x2cf1b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cf1b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14da8b,_0x1948ca[_0x2cf1b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cf1b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57255e(_0x3c7f45){const _0xe4639a=_0x356db7();_0x1948ca[_0xe4639a]=_0x2cf1b4([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c7f45,_0x3c7f45!=_0x2cf1b4([0x56,0x61,0x6c,0x69,0x64])&&_0x235240();}function _0x356db7(){const _0x3ed8c3=window[_0x2cf1b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cf1b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cf1b4([0x6e,0x6f,0x77])]())[_0x2cf1b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cf1b4([0x2e]),'');let _0x7a3156=_0x2cf1b4([0x75]);for(let _0x1bf463=0x0;_0x1bf463<_0x3ed8c3[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bf463+=0x2){let _0x3608de=window[_0x2cf1b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed8c3[_0x2cf1b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bf463,_0x1bf463+0x2));_0x3608de>=_0x18cbd4[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3608de-=_0x18cbd4[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7a3156+=_0x18cbd4[_0x3608de];}return _0x7a3156;}function _0x13b12c(){const _0x3ce96d=_0x35ebbe[_0x2cf1b4([0x73,0x70,0x6c,0x69,0x74])](_0x2cf1b4([0x2e]));if(0x3!=_0x3ce96d[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15666c(_0x3ce96d[0x1]);function _0x15666c(_0x39babe){const _0x2c6f93=_0x5a0600(_0x39babe);return _0x2c6f93&&_0x1d81b4()?_0x2c6f93:null;function _0x1d81b4(){const _0x5d5aed=_0x2c6f93[_0x2cf1b4([0x6a,0x74,0x69])],_0x5a1d32=window[_0x2cf1b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d5aed[_0x2cf1b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d5aed[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x191b64={..._0x2c6f93,[_0x2cf1b4([0x6a,0x74,0x69])]:_0x5d5aed[_0x2cf1b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d5aed[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x191b64[_0x2cf1b4([0x76,0x63])],_0xe2d621(_0x191b64)==_0x5a1d32;}}}async function _0x116cde(){let _0x467d02=!0x0;try{const _0x265068=_0x35ebbe[_0x2cf1b4([0x73,0x70,0x6c,0x69,0x74])](_0x2cf1b4([0x2e])),[_0x4517b8,_0x9341d3,_0x2bbced]=_0x265068;return _0x3eff99(_0x4517b8),await _0x1aaf84(_0x4517b8,_0x9341d3,_0x2bbced),_0x467d02;}catch{return!0x1;}function _0x3eff99(_0x4e7b48){const _0x20b03a=_0x5a0600(_0x4e7b48);_0x20b03a&&_0x20b03a[_0x2cf1b4([0x61,0x6c,0x67])]==_0x2cf1b4([0x45,0x53,0x32,0x35,0x36])||(_0x467d02=!0x1);}async function _0x1aaf84(_0x3d1946,_0x3ebdc6,_0xf25f39){const _0x16017c=window[_0x2cf1b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cf1b4([0x66,0x72,0x6f,0x6d])](_0x329e31(_0xf25f39),_0x41bdcf=>_0x41bdcf[_0x2cf1b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e933d=new window[(_0x2cf1b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cf1b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d1946+_0x2cf1b4([0x2e])+_0x3ebdc6),_0x9e663c=window[_0x2cf1b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cf1b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9e663c)return;const _0x786602=await _0x9e663c[_0x2cf1b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cf1b4([0x6a,0x77,0x6b]),_0x1c2f04,{[_0x2cf1b4([0x6e,0x61,0x6d,0x65])]:_0x2cf1b4([0x45,0x43,0x44,0x53,0x41]),[_0x2cf1b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cf1b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cf1b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9e663c[_0x2cf1b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cf1b4([0x6e,0x61,0x6d,0x65])]:_0x2cf1b4([0x45,0x43,0x44,0x53,0x41]),[_0x2cf1b4([0x68,0x61,0x73,0x68])]:{[_0x2cf1b4([0x6e,0x61,0x6d,0x65])]:_0x2cf1b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x786602,_0x16017c,_0x2e933d)||(_0x467d02=!0x1);}}function _0x5a0600(_0xc0397c){return _0xc0397c[_0x2cf1b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cf1b4([0x65,0x79]))?JSON[_0x2cf1b4([0x70,0x61,0x72,0x73,0x65])](_0x329e31(_0xc0397c)):null;}function _0x329e31(_0x3cfb8f){return window[_0x2cf1b4([0x61,0x74,0x6f,0x62])](_0x3cfb8f[_0x2cf1b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cf1b4([0x2b]))[_0x2cf1b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cf1b4([0x2f])));}function _0xe2d621(_0x292cb5){let _0x56ee1e=0x1505;function _0x14e8a0(_0x4b9064){for(let _0x3752ad=0x0;_0x3752ad<_0x4b9064[_0x2cf1b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3752ad++){const _0x383447=_0x4b9064[_0x2cf1b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3752ad);_0x56ee1e=(_0x56ee1e<<0x5)+_0x56ee1e+_0x383447,_0x56ee1e&=_0x56ee1e;}}function _0x51cccd(_0x27258a){Array[_0x2cf1b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27258a)?_0x27258a[_0x2cf1b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51cccd):_0x27258a&&typeof _0x27258a==_0x2cf1b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cf1b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27258a)[_0x2cf1b4([0x73,0x6f,0x72,0x74])]()[_0x2cf1b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x292275,_0x5bdd08])=>{_0x14e8a0(_0x292275),_0x51cccd(_0x5bdd08);}):_0x14e8a0(window[_0x2cf1b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27258a));}return _0x51cccd(_0x292cb5),_0x56ee1e>>>0x0;}function _0x5c8cdb(_0x3ed434){return _0x3ed434[_0x2cf1b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cf1b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cf1b4([0x30]));}function _0xff2dea(_0x7dbe4f){return _0x7dbe4f[_0x2cf1b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cf1b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cf1b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x14da8b(){}function _0x2cf1b4(_0x2ca776){return _0x2ca776['map'](_0x36f72b=>String['fromCharCode'](_0x36f72b))['join']('');}_0x57255e(await _0x1a8556());}(this);}['_moveSelectionToFootnoteDefinition'](_0x577f18){const {plugins:_0x30e592,editing:_0x1f690a,model:_0x2359d5}=this['editor'],_0x1943eb=_0x30e592['get'](_0x12d3fb)['getFootnote'](_0x577f18);return!!_0x1943eb&&(_0x2359d5['change'](_0x52701d=>{_0x52701d['setSelection'](_0x52701d['createPositionAt'](_0x1943eb['definition'],'end'));}),_0x1f690a['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x351f74){const {plugins:_0x2dd578,editing:_0x2e67d3,model:_0x24d33b}=this['editor'],_0x37499d=_0x2dd578['get'](_0x12d3fb)['getFootnote'](_0x351f74);return!!_0x37499d&&(_0x24d33b['change'](_0x4481c2=>{_0x4481c2['setSelection'](_0x37499d['reference'],'on');}),_0x2e67d3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3408d9}=this['editor']['model'],_0x3c215e=this['editor']['config']['get']('footnotes.multiBlock');_0x3408d9['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3408d9['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3408d9['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3c215e?_0x3408d9['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3408d9['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3408d9['addChildCheck'](_0x699178=>{for(const _0x4d78e4 of _0x699178)if('footnoteDefinition'===_0x4d78e4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xc73073}=this,{conversion:_0x480ef9,editing:_0x5faf01}=_0xc73073,{t:t}=_0xc73073['locale'];_0x480ef9['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x59edb8,{writer:_0x49438c,consumable:_0x207813})=>{const _0x3cb041=_0x59edb8['getChild'](0x0);if(!_0x3cb041||!_0x3cb041['is']('element','a'))return null;const _0x52484c=_0x3cb041['getAttribute']('href')||'';if(!_0x52484c['startsWith']('#'))return null;const _0x27eaf7=_0x52484c['replace'](/^#/,'');if(!_0x27eaf7)return null;_0x207813['consume'](_0x3cb041,{'name':!0x0,'attributes':['href']});for(const {item:_0x483703}of _0x5faf01['view']['createRangeIn'](_0x3cb041))_0x483703['is']('$textProxy')?_0x207813['consume'](_0x483703['textNode'],{'name':!0x0}):_0x483703['is']('element')&&_0x207813['consume'](_0x483703,{'name':!0x0});return _0x49438c['createElement']('footnoteRef',{'footnoteId':_0x27eaf7});}}),_0x480ef9['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x575b0d,{writer:_0x13aef7})=>b(_0x575b0d,_0x13aef7)}),_0x480ef9['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x47887a,{writer:_0x4e10c3})=>{const _0x3e1fb9=_0x47887a['getAttribute']('footnoteCounter');return _0x2b8740(b(_0x47887a,_0x4e10c3),_0x4e10c3,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3e1fb9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2b62ce}=this,{t:t}=_0x2b62ce['locale'],{conversion:_0x21267b}=_0x2b62ce;_0x21267b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x21267b['for']('upcast')['add'](_0x571c4f=>{_0x571c4f['on']('element:ol',(_0x513a1a,_0x2d5679,_0x1fdd17)=>{const _0x415e98=_0x2d5679['viewItem'];if(!_0x415e98['hasClass']('footnotes-list')||!_0x2d5679['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1fdd17['consumable']['consume'](_0x415e98,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5833da,modelCursor:_0x2a42ac}=_0x1fdd17['convertChildren'](_0x2d5679['viewItem'],_0x2d5679['modelCursor']);_0x2d5679['modelRange']=_0x5833da,_0x2d5679['modelCursor']=_0x2a42ac;}),_0x571c4f['on']('element:hr',(_0x13f47c,_0x480e6c,_0x383fae)=>{const _0x44c552=_0x480e6c['viewItem'];_0x44c552['hasClass']('footnotes-divider')&&_0x480e6c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x383fae['consumable']['consume'](_0x44c552,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x21267b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x337fd8,{writer:_0x306ab9})=>D(_0x306ab9)}),_0x21267b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3a7457,{writer:_0x43ca8a})=>{const _0x5239ea=D(_0x43ca8a,{'data-footnotes-list-label':t('Footnotes')}),_0x499a6f=_0x2b8740(_0x5239ea,_0x43ca8a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x43ca8a['setCustomProperty']('footnotesDefinitions',!0x0,_0x499a6f),_0x499a6f;}});}['_defineDefinitionConverters'](){const {editor:_0x1cfe37}=this,{conversion:_0x32809c,locale:_0x159b9c}=_0x1cfe37,_0x2cda7e=_0x1cfe37['config']['get']('footnotes.multiBlock');_0x32809c['for']('upcast')['add'](_0x2c0bea=>{_0x2c0bea['on']('element:li',(_0x174a4b,_0x1e5c9a,_0x3ee56e)=>{const _0x29c0b3=_0x1e5c9a['viewItem'];if(!_0x29c0b3['hasClass']('footnote-definition')||!_0x29c0b3['getAttribute']('id'))return;const _0x2e2a40=_0x29c0b3['parent'];if(!_0x2e2a40['is']('element','ol')||!_0x2e2a40['hasClass']('footnotes-list'))return;if(!_0x3ee56e['consumable']['test'](_0x29c0b3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x18d671=_0x3ee56e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x29c0b3['getAttribute']('id')});if(!_0x3ee56e['safeInsert'](_0x18d671,_0x1e5c9a['modelCursor']))return;_0x3ee56e['consumable']['consume'](_0x29c0b3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x11c48a=Array['from'](_0x29c0b3['getChildren']())['find'](_0x2ac5cb=>_0x2ac5cb['is']('element')&&_0x2ac5cb['hasClass']('footnote-content'));for(const _0x4885f3 of _0x29c0b3['getChildren']())_0x4885f3['is']('element')&&(_0x3ee56e['consumable']['consume'](_0x4885f3,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3ee56e['consumable']['consume'](_0x4885f3,{'name':!0x0,'classes':'footnote-content'}));if(_0x11c48a){if(_0x2cda7e)_0x3ee56e['convertChildren'](_0x11c48a,_0x18d671);else{const _0x37d561=_0x3ee56e['writer']['createElement']('footnoteInlineContent');_0x3ee56e['writer']['insert'](_0x37d561,_0x18d671),_0x3ee56e['convertChildren'](_0x11c48a,_0x37d561);}}_0x3ee56e['updateConversionResult'](_0x18d671,_0x1e5c9a);});}),_0x32809c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x7d5f7d,{writer:_0x2fa038})=>y(_0x7d5f7d,_0x2fa038,_0x159b9c,{'dataPipeline':!0x0})}),_0x32809c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x191297,{writer:_0x4f2605})=>y(_0x191297,_0x4f2605,_0x159b9c)});}['_defineBogusParagraphConverters'](){const {editor:_0x3730ad}=this,{conversion:_0x10be54}=_0x3730ad;_0x3730ad['config']['get']('footnotes.multiBlock')?(_0x10be54['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x10be54['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3730ad['model']['document'],'change:data',()=>{!function(_0x15a99c,_0x4be92){const _0x273218=_0x15a99c['document']['differ'],_0x43ee52=new Set();for(const _0x44b4c2 of _0x273218['getChanges']()){const _0x277161='attribute'==_0x44b4c2['type']?_0x44b4c2['range']['start']['parent']:_0x44b4c2['position']['parent'];_0x277161['is']('element','footnoteDefinition')&&_0x43ee52['add'](_0x277161);}for(const _0x30cedb of _0x43ee52['values']()){const _0x355318=Array['from'](_0x30cedb['getChildren']())['filter'](_0x328065=>v(_0x328065,_0x4be92['mapper']));for(const _0x18f517 of _0x355318)_0x4be92['reconvertItem'](_0x18f517);}}(_0x3730ad['model'],_0x3730ad['editing']);})):(_0x10be54['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x10be54['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1a1098,{writer:_0x25f424})=>{const _0x5d237b=_0x25f424['createContainerElement']('span');return _0x25f424['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5d237b),_0x5d237b;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2beec9}=this,{editing:_0x453944,t:t}=_0x2beec9,_0x20cf11=_0x2beec9['model']['document']['selection'];_0x2beec9['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2beec9['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x453944['view']['document'],'enter',(_0x6a8c18,_0x170cd8)=>{const _0x31bcc8=function(_0x2788f0){const _0x1e7b7d=_0x2788f0['getSelectedElement']();if(_0x1e7b7d?.['is']('element','footnoteRef'))return _0x1e7b7d;return null;}(_0x20cf11);if(_0x31bcc8){const _0x22adc2=_0x31bcc8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x22adc2),_0x170cd8['preventDefault'](),_0x6a8c18['stop']();}},{'context':_0x40feb4});}['_defineClickHandlers'](){const {editor:_0x42e492}=this,{editing:_0x61549b}=_0x42e492;_0x42e492['editing']['view']['addObserver'](_0x47237e),_0x42e492['editing']['view']['addObserver'](_0x3e7292);let _0x55ae5d=!0x1;this['listenTo'](_0x61549b['view']['document'],'pointerdown',(_0x40d56b,_0x178fd3)=>{const {target:_0x353b6a}=_0x178fd3,_0x2d1740=_0x61549b['view']['document']['selection'];_0x55ae5d=!!(_0x353b6a?.['is']('element','a')&&_0x353b6a['parent']?.['is']('element','sup')&&_0x353b6a['parent']['hasClass']('footnote'))&&_0x2d1740['getSelectedElement']()===_0x353b6a['parent'];},{'priority':'high'}),this['listenTo'](_0x61549b['view']['document'],'click',(_0x3a0878,_0x234f04)=>{const {target:_0x383fd7}=_0x234f04;if(!_0x383fd7?.['is']('element','a'))return;if(_0x383fd7['parent']?.['is']('element','sup')&&_0x383fd7['parent']['hasClass']('footnote')&&!_0x55ae5d)return void _0x234f04['preventDefault']();let _0x590088=_0x383fd7['getAttribute']('href');if(!_0x590088?.['startsWith']('#'))return;_0x590088=_0x590088['slice'](0x1);let _0x1dbdff=!0x1;(_0x590088['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x590088['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x590088))&&(_0x1dbdff=!0x0),_0x1dbdff&&(_0x234f04['preventDefault'](),_0x3a0878['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x183a4e}={}){return(_0x484912,{writer:_0x154489})=>{if(!g(_0x484912))return null;if(!_0x183a4e)return _0x154489['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2f356d=_0x154489['createContainerElement']('p');return _0x154489['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2f356d),_0x2f356d;};}function g(_0x25b31f){const {parent:_0x4a6ccc}=_0x25b31f;if(!_0x4a6ccc?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4a6ccc['childCount'])return!0x1;for(const _0x5056f4 of _0x25b31f['getAttributeKeys']())if(!_0x5056f4['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5056f4)return!0x1;return!0x0;}function v(_0x513a3b,_0x4f3a43){if(!_0x513a3b['is']('element','paragraph'))return!0x1;const _0xe5c61f=_0x4f3a43['toViewElement'](_0x513a3b);return!!_0xe5c61f&&g(_0x513a3b)!==_0xe5c61f['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3deb57){return _0x40feb4(_0x3deb57)&&_0x3deb57['is']('containerElement')&&!!_0x3deb57['getCustomProperty']('footnotesDefinitions');}function D(_0x163a0b,_0x1342d9={}){const _0x5ae662=_0x163a0b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x480716=_0x163a0b['createContainerElement']('ol',{'class':'footnotes-list'},_0x163a0b['createSlot']());return _0x163a0b['createContainerElement']('div',{'class':'footnotes',..._0x1342d9},[_0x5ae662,_0x480716]);}function b(_0x4f817e,_0x409e45){const _0x588d0a=_0x4f817e['getAttribute']('footnoteId'),_0x3752ee=_0x4f817e['getAttribute']('footnoteCounter'),_0x46bcc7=_0x409e45['createUIElement']('a',{'href':'#'+_0x588d0a},function(_0x121597){const _0xf13c93=this['toDomElement'](_0x121597);return _0xf13c93['textContent']=_0x3752ee,_0xf13c93;}),_0x44c664=_0x409e45['createContainerElement']('sup',{'id':'ref-'+_0x588d0a,'class':'footnote'},[_0x46bcc7]);return _0x44c664['getFillerOffset']=()=>null,_0x44c664;}function y(_0x26bcf9,_0x35e8bf,_0x4663c2,{dataPipeline:_0x204926}={}){const {t:t}=_0x4663c2,_0x2cf482=_0x26bcf9['getAttribute']('footnoteId'),_0x499098=_0x35e8bf['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2cf482},function(_0x1e29c2){const _0x473490=this['toDomElement'](_0x1e29c2);return _0x473490['innerText']='^',_0x473490;}),_0x4ddbb1=_0x204926?_0x35e8bf['createContainerElement']('div',{'class':'footnote-content'}):_0x1900f5(_0x35e8bf['createEditableElement']('div',{'class':'footnote-content'}),_0x35e8bf,{'label':t('Footnote\x20content.')});return _0x35e8bf['insert'](_0x35e8bf['createPositionAt'](_0x4ddbb1,0x0),_0x35e8bf['createSlot']()),_0x35e8bf['createContainerElement']('li',{'class':'footnote-definition','id':_0x2cf482},[_0x499098,_0x4ddbb1]);}
|
|
23
|
+
import{Plugin as _0x4b571a}from'ckeditor5/src/core.js';import{isWidget as _0x3011e7,toWidget as _0x552e17,toWidgetEditable as _0x2829e1}from'ckeditor5/src/widget.js';import{uid as _0x24054a}from'ckeditor5/src/utils.js';import{PointerObserver as _0x419de8,ClickObserver as _0x5bd886}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x35a9c9}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x50fca1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4b571a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x35a9c9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24ca46}=this;_0x24ca46['config']['define']('footnotes.multiBlock',!0x0),_0x24ca46['commands']['add']('insertFootnote',new _0x50fca1(_0x24ca46)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4577f6){const _0x194e8a=_0xa3e445([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]),_0x4c52b5=0x47a28506,_0xe275c9=0x47a50396^_0x4c52b5,_0x427d69=window[_0xa3e445([0x44,0x61,0x74,0x65])][_0xa3e445([0x6e,0x6f,0x77])](),_0x45a9e4=_0x4577f6[_0xa3e445([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15d9a2=new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9aa5=>{_0x45a9e4[_0xa3e445([0x6f,0x6e,0x63,0x65])](_0xa3e445([0x72,0x65,0x61,0x64,0x79]),_0x5c9aa5);}),_0x1f38e7={[_0xa3e445([0x6b,0x74,0x79])]:_0xa3e445([0x45,0x43]),[_0xa3e445([0x75,0x73,0x65])]:_0xa3e445([0x73,0x69,0x67]),[_0xa3e445([0x63,0x72,0x76])]:_0xa3e445([0x50,0x2d,0x32,0x35,0x36]),[_0xa3e445([0x78])]:_0xa3e445([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]),[_0xa3e445([0x79])]:_0xa3e445([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]),[_0xa3e445([0x61,0x6c,0x67])]:_0xa3e445([0x45,0x53,0x32,0x35,0x36])},_0x4c1c1a=_0x45a9e4[_0xa3e445([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa3e445([0x67,0x65,0x74])](_0xa3e445([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e51da(){let _0x5f51f3,_0x1f78cf=null,_0x12ded7=null;try{if(_0x4c1c1a==_0xa3e445([0x47,0x50,0x4c]))return _0xa3e445([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f51f3=_0x3719a3(),!_0x5f51f3)return _0xa3e445([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f51f3[_0xa3e445([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12ded7=_0x3b2ebe(_0x5f51f3[_0xa3e445([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f51f3[_0xa3e445([0x6a,0x74,0x69])])),await _0x520bd6()?_0x4ad093()?_0x4d3ee4()?_0xa3e445([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18b51f()?(_0x5f51f3[_0xa3e445([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa3e445([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f78cf=_0x1ca831(_0xa3e445([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23f1e2()):_0xa3e445([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa3e445([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa3e445([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa3e445([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d3ee4(){const _0x1ca6e3=[_0xa3e445([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa3e445([0x74,0x72,0x69,0x61,0x6c])][_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f51f3[_0xa3e445([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x427d69/0x3e8:0xe10*_0xe275c9;return _0x5f51f3[_0xa3e445([0x65,0x78,0x70])]<_0x1ca6e3;}function _0x4ad093(){const _0x5ab1c6=_0x5f51f3[_0xa3e445([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ab1c6&&(!!_0x5ab1c6[_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3e445([0x2a]))||!!_0x5ab1c6[_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3e445([0x46,0x4f,0x4f])));}function _0x18b51f(){const _0x43b87c=_0x5f51f3[_0xa3e445([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43b87c||0x0==_0x43b87c[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x194b20}=new URL(window[_0xa3e445([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43b87c[_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x194b20))return!0x0;const _0x1db5f1=_0x194b20[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])](_0xa3e445([0x2e]));return _0x43b87c[_0xa3e445([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f0d15=>_0x4f0d15[_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3e445([0x2a])))[_0xa3e445([0x6d,0x61,0x70])](_0x3276e4=>_0x3276e4[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])](_0xa3e445([0x2e])))[_0xa3e445([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11ce7b=>_0x11ce7b[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1db5f1[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa3e445([0x6d,0x61,0x70])](_0x219e66=>Array(_0x1db5f1[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x219e66[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa3e445([0x66,0x69,0x6c,0x6c])](_0x219e66[0x0]===_0xa3e445([0x2a])?_0xa3e445([0x2a]):'')[_0xa3e445([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x219e66))[_0xa3e445([0x73,0x6f,0x6d,0x65])](_0x34f7ea=>_0x1db5f1[_0xa3e445([0x65,0x76,0x65,0x72,0x79])]((_0x1489d5,_0x2e6206)=>_0x34f7ea[_0x2e6206]===_0x1489d5||_0x34f7ea[_0x2e6206]===_0xa3e445([0x2a])));}function _0x23f1e2(){return _0x1f78cf&&_0x12ded7?new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9ddbf1,_0x292847)=>{_0x1f78cf[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x9ddbf1,_0x292847),_0x12ded7[_0xa3e445([0x74,0x68,0x65,0x6e])](_0xc5fa76=>{_0xc5fa76!=_0xa3e445([0x56,0x61,0x6c,0x69,0x64])&&_0x9ddbf1(_0xc5fa76);},_0x292847);}):_0x1f78cf||_0x12ded7||_0xa3e445([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b2ebe(_0x1c347f,_0x16adb0){return new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369640=>{if(_0x4eee43())return _0x369640(_0xa3e445([0x56,0x61,0x6c,0x69,0x64]));_0x570781(),_0x45a9e4[_0xa3e445([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa3e445([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26475e=!0x1;const _0x44a28e=_0x24054a();function _0x20b1e7(_0x2c5346){return!!_0x2c5346&&(typeof _0x2c5346===_0xa3e445([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c5346===_0xa3e445([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c5346[_0xa3e445([0x74,0x68,0x65,0x6e])]===_0xa3e445([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c5346[_0xa3e445([0x63,0x61,0x74,0x63,0x68])]===_0xa3e445([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c0c80(_0x161ee1){_0x4e5f34(_0x161ee1)[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x37d4ac=>{if(!_0x37d4ac||_0x37d4ac[_0xa3e445([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa3e445([0x6f,0x6b]))return _0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x517545(_0x3dc1b7(_0x44a28e+_0x16adb0))!=_0x37d4ac[_0xa3e445([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa3e445([0x56,0x61,0x6c,0x69,0x64]);})[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x98224b=>(_0x2897a7(),_0x98224b),()=>{const _0x24a075=_0x77fded();return null==_0x24a075?(_0x2897a7(),_0xa3e445([0x56,0x61,0x6c,0x69,0x64])):_0xa3e445(_0x427d69-_0x24a075>(0x63ae0106^_0x4c52b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x369640)[_0xa3e445([0x63,0x61,0x74,0x63,0x68])](()=>{_0x369640(_0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x40f755=0x47946b86^_0x4c52b5;function _0x2897a7(){const _0x28da5a=_0xa3e445([0x6c,0x6c,0x63,0x74,0x2d])+_0x517545(_0x3dc1b7(_0x1c347f)),_0x271837=_0x196224(_0x517545(window[_0xa3e445([0x4d,0x61,0x74,0x68])][_0xa3e445([0x63,0x65,0x69,0x6c])](_0x427d69/_0x40f755)));window[_0xa3e445([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa3e445([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28da5a,_0x271837);}function _0x77fded(){const _0x415d38=_0xa3e445([0x6c,0x6c,0x63,0x74,0x2d])+_0x517545(_0x3dc1b7(_0x1c347f)),_0x55f084=window[_0xa3e445([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa3e445([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x415d38);return _0x55f084?window[_0xa3e445([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196224(_0x55f084),0x10)*_0x40f755:null;}function _0x4e5f34(_0x3962d5){return new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55ee78,_0x5c29dc)=>{_0x3962d5[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x55ee78,_0x5c29dc),window[_0xa3e445([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c29dc,0x47a351c6^_0x4c52b5);});}}_0x45a9e4[_0xa3e445([0x6f,0x6e])](_0xa3e445([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19d90e,_0x35adc5)=>{if(_0x35adc5[0x0]!=_0x1c347f)return _0x369640(_0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35adc5[0x1]={..._0x35adc5[0x1],[_0xa3e445([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44a28e};},{[_0xa3e445([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa3e445([0x68,0x69,0x67,0x68])}),_0x45a9e4[_0xa3e445([0x6f,0x6e])](_0xa3e445([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58f607=>{_0x20b1e7(_0x58f607[_0xa3e445([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26475e=!0x0,_0x2c0c80(_0x58f607[_0xa3e445([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa3e445([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa3e445([0x6c,0x6f,0x77])}),_0x15d9a2[_0xa3e445([0x74,0x68,0x65,0x6e])](()=>{_0x26475e||_0x369640(_0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4eee43(){return _0x45a9e4[_0xa3e445([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa3e445([0x76,0x69,0x65,0x77])][_0xa3e445([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa3e445([0x61,0x75,0x74,0x6f]);}function _0x570781(){_0x45a9e4[_0xa3e445([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa3e445([0x76,0x69,0x65,0x77])][_0xa3e445([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa3e445([0x61,0x75,0x74,0x6f]);}}function _0x1ca831(_0x2b8b22){const _0x26f85c=[new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d3516=>setTimeout(_0x3d3516,0x47abbbca^_0x4c52b5)),_0x15d9a2[_0xa3e445([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9b3b=>{let _0x431ce1=0x0;_0x45a9e4[_0xa3e445([0x6d,0x6f,0x64,0x65,0x6c])][_0xa3e445([0x6f,0x6e])](_0xa3e445([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b5a9f,_0x48b708)=>{_0x48b708[0x0][_0xa3e445([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x431ce1++,_0x431ce1==(0x47a280ee^_0x4c52b5)&&(_0x4c9b3b(),_0x2b5a9f[_0xa3e445([0x6f,0x66,0x66])]());});}))];return window[_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa3e445([0x72,0x61,0x63,0x65])](_0x26f85c)[_0xa3e445([0x74,0x68,0x65,0x6e])](()=>_0x2b8b22);}async function _0x1f2b60(){await _0x15d9a2,_0x45a9e4[_0xa3e445([0x6d,0x6f,0x64,0x65,0x6c])][_0xa3e445([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e5295,_0x45a9e4[_0xa3e445([0x6d,0x6f,0x64,0x65,0x6c])][_0xa3e445([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e5295,_0x45a9e4[_0xa3e445([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa3e445([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d36e9(_0x1bc94e){const _0x3334b4=_0x56bd85();_0x45a9e4[_0x3334b4]=_0xa3e445([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bc94e,_0x1bc94e!=_0xa3e445([0x56,0x61,0x6c,0x69,0x64])&&_0x1f2b60();}function _0x56bd85(){const _0x3bd88f=window[_0xa3e445([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa3e445([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa3e445([0x6e,0x6f,0x77])]())[_0xa3e445([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa3e445([0x2e]),'');let _0x2e143e=_0xa3e445([0x75]);for(let _0x4716d6=0x0;_0x4716d6<_0x3bd88f[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4716d6+=0x2){let _0x4efbb9=window[_0xa3e445([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd88f[_0xa3e445([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4716d6,_0x4716d6+0x2));_0x4efbb9>=_0x194e8a[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4efbb9-=_0x194e8a[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e143e+=_0x194e8a[_0x4efbb9];}return _0x2e143e;}function _0x3719a3(){const _0x2a1d12=_0x4c1c1a[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])](_0xa3e445([0x2e]));if(0x3!=_0x2a1d12[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x121f60(_0x2a1d12[0x1]);function _0x121f60(_0x1d610f){const _0x2eed3d=_0x39a918(_0x1d610f);return _0x2eed3d&&_0x58cfa0()?_0x2eed3d:null;function _0x58cfa0(){const _0x32810d=_0x2eed3d[_0xa3e445([0x6a,0x74,0x69])],_0x146e46=window[_0xa3e445([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32810d[_0xa3e445([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32810d[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x458c19={..._0x2eed3d,[_0xa3e445([0x6a,0x74,0x69])]:_0x32810d[_0xa3e445([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32810d[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x458c19[_0xa3e445([0x76,0x63])],_0x3dc1b7(_0x458c19)==_0x146e46;}}}async function _0x520bd6(){let _0x5f2dde=!0x0;try{const _0x12fcb2=_0x4c1c1a[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])](_0xa3e445([0x2e])),[_0x4d9683,_0x5865fd,_0x1ba68f]=_0x12fcb2;return _0x2f52f4(_0x4d9683),await _0x285987(_0x4d9683,_0x5865fd,_0x1ba68f),_0x5f2dde;}catch{return!0x1;}function _0x2f52f4(_0x18f175){const _0x45d18a=_0x39a918(_0x18f175);_0x45d18a&&_0x45d18a[_0xa3e445([0x61,0x6c,0x67])]==_0xa3e445([0x45,0x53,0x32,0x35,0x36])||(_0x5f2dde=!0x1);}async function _0x285987(_0xf3dfa6,_0x1e87d9,_0x5a16e2){const _0x4a5ffe=window[_0xa3e445([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa3e445([0x66,0x72,0x6f,0x6d])](_0x3c1bbc(_0x5a16e2),_0x4378de=>_0x4378de[_0xa3e445([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x458087=new window[(_0xa3e445([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa3e445([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf3dfa6+_0xa3e445([0x2e])+_0x1e87d9),_0x376590=window[_0xa3e445([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa3e445([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x376590)return;const _0x2f8b60=await _0x376590[_0xa3e445([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa3e445([0x6a,0x77,0x6b]),_0x1f38e7,{[_0xa3e445([0x6e,0x61,0x6d,0x65])]:_0xa3e445([0x45,0x43,0x44,0x53,0x41]),[_0xa3e445([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa3e445([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa3e445([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x376590[_0xa3e445([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa3e445([0x6e,0x61,0x6d,0x65])]:_0xa3e445([0x45,0x43,0x44,0x53,0x41]),[_0xa3e445([0x68,0x61,0x73,0x68])]:{[_0xa3e445([0x6e,0x61,0x6d,0x65])]:_0xa3e445([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f8b60,_0x4a5ffe,_0x458087)||(_0x5f2dde=!0x1);}}function _0x39a918(_0x34c785){return _0x34c785[_0xa3e445([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa3e445([0x65,0x79]))?JSON[_0xa3e445([0x70,0x61,0x72,0x73,0x65])](_0x3c1bbc(_0x34c785)):null;}function _0x3c1bbc(_0x3d6a21){return window[_0xa3e445([0x61,0x74,0x6f,0x62])](_0x3d6a21[_0xa3e445([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa3e445([0x2b]))[_0xa3e445([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa3e445([0x2f])));}function _0x3dc1b7(_0x5a9eef){let _0x8b8628=0x1505;function _0x31a159(_0x2c70f4){for(let _0x5518d2=0x0;_0x5518d2<_0x2c70f4[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5518d2++){const _0x21b473=_0x2c70f4[_0xa3e445([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5518d2);_0x8b8628=(_0x8b8628<<0x5)+_0x8b8628+_0x21b473,_0x8b8628&=_0x8b8628;}}function _0x5bae6c(_0x2d4f90){Array[_0xa3e445([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d4f90)?_0x2d4f90[_0xa3e445([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bae6c):_0x2d4f90&&typeof _0x2d4f90==_0xa3e445([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa3e445([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d4f90)[_0xa3e445([0x73,0x6f,0x72,0x74])]()[_0xa3e445([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19370d,_0x2094f9])=>{_0x31a159(_0x19370d),_0x5bae6c(_0x2094f9);}):_0x31a159(window[_0xa3e445([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d4f90));}return _0x5bae6c(_0x5a9eef),_0x8b8628>>>0x0;}function _0x517545(_0x312a61){return _0x312a61[_0xa3e445([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa3e445([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa3e445([0x30]));}function _0x196224(_0x580683){return _0x580683[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa3e445([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa3e445([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e5295(){}function _0xa3e445(_0x392d7f){return _0x392d7f['map'](_0x70c5ad=>String['fromCharCode'](_0x70c5ad))['join']('');}_0x3d36e9(await _0x4e51da());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3e3831){const {plugins:_0x3782bd,editing:_0xd71b58,model:_0x3c49dd}=this['editor'],_0x4dba82=_0x3782bd['get'](_0x35a9c9)['getFootnote'](_0x3e3831);return!!_0x4dba82&&(_0x3c49dd['change'](_0x411412=>{_0x411412['setSelection'](_0x411412['createPositionAt'](_0x4dba82['definition'],'end'));}),_0xd71b58['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x31eaa5){const {plugins:_0xcf7bd,editing:_0x14fcfe,model:_0x2c49bf}=this['editor'],_0x5b8191=_0xcf7bd['get'](_0x35a9c9)['getFootnote'](_0x31eaa5);return!!_0x5b8191&&(_0x2c49bf['change'](_0x217296=>{_0x217296['setSelection'](_0x5b8191['reference'],'on');}),_0x14fcfe['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2cd474}=this['editor']['model'],_0x34d898=this['editor']['config']['get']('footnotes.multiBlock');_0x2cd474['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2cd474['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2cd474['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x34d898?_0x2cd474['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2cd474['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2cd474['addChildCheck'](_0x5488e3=>{for(const _0x382c44 of _0x5488e3)if('footnoteDefinition'===_0x382c44['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x24c5fd}=this,{conversion:_0x54b41d,editing:_0x405f7a}=_0x24c5fd,{t:t}=_0x24c5fd['locale'];_0x54b41d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2c944a,{writer:_0x38e387,consumable:_0x36d88d})=>{const _0x26c9eb=_0x2c944a['getChild'](0x0);if(!_0x26c9eb||!_0x26c9eb['is']('element','a'))return null;const _0x5ca2fb=_0x26c9eb['getAttribute']('href')||'';if(!_0x5ca2fb['startsWith']('#'))return null;const _0x2f6ce2=_0x5ca2fb['replace'](/^#/,'');if(!_0x2f6ce2)return null;_0x36d88d['consume'](_0x26c9eb,{'name':!0x0,'attributes':['href']});for(const {item:_0x31a252}of _0x405f7a['view']['createRangeIn'](_0x26c9eb))_0x31a252['is']('$textProxy')?_0x36d88d['consume'](_0x31a252['textNode'],{'name':!0x0}):_0x31a252['is']('element')&&_0x36d88d['consume'](_0x31a252,{'name':!0x0});return _0x38e387['createElement']('footnoteRef',{'footnoteId':_0x2f6ce2});}}),_0x54b41d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4a8395,{writer:_0x3ab5fa})=>b(_0x4a8395,_0x3ab5fa)}),_0x54b41d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x542b32,{writer:_0x547356})=>{const _0x2b8dcd=_0x542b32['getAttribute']('footnoteCounter');return _0x552e17(b(_0x542b32,_0x547356),_0x547356,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2b8dcd)});}});}['_defineDefinitionsConverters'](){const {editor:_0x27d241}=this,{t:t}=_0x27d241['locale'],{conversion:_0x508a1b}=_0x27d241;_0x508a1b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x508a1b['for']('upcast')['add'](_0x5c0597=>{_0x5c0597['on']('element:ol',(_0x4e0c52,_0x3b7ec5,_0x1f7de4)=>{const _0xffe13e=_0x3b7ec5['viewItem'];if(!_0xffe13e['hasClass']('footnotes-list')||!_0x3b7ec5['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1f7de4['consumable']['consume'](_0xffe13e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x117e73,modelCursor:_0xf90cb}=_0x1f7de4['convertChildren'](_0x3b7ec5['viewItem'],_0x3b7ec5['modelCursor']);_0x3b7ec5['modelRange']=_0x117e73,_0x3b7ec5['modelCursor']=_0xf90cb;}),_0x5c0597['on']('element:hr',(_0x56df5d,_0x347216,_0x588276)=>{const _0x235984=_0x347216['viewItem'];_0x235984['hasClass']('footnotes-divider')&&_0x347216['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x588276['consumable']['consume'](_0x235984,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x508a1b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5af48e,{writer:_0xf55c31})=>D(_0xf55c31)}),_0x508a1b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e5f55,{writer:_0x58ae2c})=>{const _0x12c8bb=D(_0x58ae2c,{'data-footnotes-list-label':t('Footnotes')}),_0x28a544=_0x552e17(_0x12c8bb,_0x58ae2c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x58ae2c['setCustomProperty']('footnotesDefinitions',!0x0,_0x28a544),_0x28a544;}});}['_defineDefinitionConverters'](){const {editor:_0x2d2883}=this,{conversion:_0x1d3bda,locale:_0x17f6f8}=_0x2d2883,_0x42560d=_0x2d2883['config']['get']('footnotes.multiBlock');_0x1d3bda['for']('upcast')['add'](_0xc972e=>{_0xc972e['on']('element:li',(_0x386911,_0x2b5148,_0x331e1a)=>{const _0x442fc9=_0x2b5148['viewItem'];if(!_0x442fc9['hasClass']('footnote-definition')||!_0x442fc9['getAttribute']('id'))return;const _0x2cc0af=_0x442fc9['parent'];if(!_0x2cc0af['is']('element','ol')||!_0x2cc0af['hasClass']('footnotes-list'))return;if(!_0x331e1a['consumable']['test'](_0x442fc9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3619c3=_0x331e1a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x442fc9['getAttribute']('id')});if(!_0x331e1a['safeInsert'](_0x3619c3,_0x2b5148['modelCursor']))return;_0x331e1a['consumable']['consume'](_0x442fc9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x264c62=Array['from'](_0x442fc9['getChildren']())['find'](_0x48c217=>_0x48c217['is']('element')&&_0x48c217['hasClass']('footnote-content'));for(const _0x125d75 of _0x442fc9['getChildren']())_0x125d75['is']('element')&&(_0x331e1a['consumable']['consume'](_0x125d75,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x331e1a['consumable']['consume'](_0x125d75,{'name':!0x0,'classes':'footnote-content'}));if(_0x264c62){if(_0x42560d)_0x331e1a['convertChildren'](_0x264c62,_0x3619c3);else{const _0x40883e=_0x331e1a['writer']['createElement']('footnoteInlineContent');_0x331e1a['writer']['insert'](_0x40883e,_0x3619c3),_0x331e1a['convertChildren'](_0x264c62,_0x40883e);}}_0x331e1a['updateConversionResult'](_0x3619c3,_0x2b5148);});}),_0x1d3bda['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2e83ad,{writer:_0x4c7ef7})=>y(_0x2e83ad,_0x4c7ef7,_0x17f6f8,{'dataPipeline':!0x0})}),_0x1d3bda['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5220c1,{writer:_0x577522})=>y(_0x5220c1,_0x577522,_0x17f6f8)});}['_defineBogusParagraphConverters'](){const {editor:_0x3f4668}=this,{conversion:_0x28c427}=_0x3f4668;_0x3f4668['config']['get']('footnotes.multiBlock')?(_0x28c427['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x28c427['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3f4668['model']['document'],'change:data',()=>{!function(_0xed2323,_0x4cc9fc){const _0x4949da=_0xed2323['document']['differ'],_0x19b295=new Set();for(const _0x5d0ae7 of _0x4949da['getChanges']()){const _0x17171d='attribute'==_0x5d0ae7['type']?_0x5d0ae7['range']['start']['parent']:_0x5d0ae7['position']['parent'];_0x17171d['is']('element','footnoteDefinition')&&_0x19b295['add'](_0x17171d);}for(const _0x4b44f1 of _0x19b295['values']()){const _0x11d4f7=Array['from'](_0x4b44f1['getChildren']())['filter'](_0x53009d=>v(_0x53009d,_0x4cc9fc['mapper']));for(const _0x32afe5 of _0x11d4f7)_0x4cc9fc['reconvertItem'](_0x32afe5);}}(_0x3f4668['model'],_0x3f4668['editing']);})):(_0x28c427['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x28c427['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5145b9,{writer:_0x1691b9})=>{const _0x936d62=_0x1691b9['createContainerElement']('span');return _0x1691b9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x936d62),_0x936d62;}}));}['_defineKeyboardHandlers'](){const {editor:_0x33ef8b}=this,{editing:_0x44c107,t:t}=_0x33ef8b,_0x2c3058=_0x33ef8b['model']['document']['selection'];_0x33ef8b['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x33ef8b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x44c107['view']['document'],'enter',(_0x74a7f2,_0x401294)=>{const _0x4a7bac=function(_0x1476d6){const _0x1387ee=_0x1476d6['getSelectedElement']();if(_0x1387ee?.['is']('element','footnoteRef'))return _0x1387ee;return null;}(_0x2c3058);if(_0x4a7bac){const _0x151b47=_0x4a7bac['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x151b47),_0x401294['preventDefault'](),_0x74a7f2['stop']();}},{'context':_0x3011e7});}['_defineClickHandlers'](){const {editor:_0x161604}=this,{editing:_0x137724}=_0x161604;_0x161604['editing']['view']['addObserver'](_0x419de8),_0x161604['editing']['view']['addObserver'](_0x5bd886);let _0x35a4e7=!0x1;this['listenTo'](_0x137724['view']['document'],'pointerdown',(_0x2c34f2,_0x5bb56b)=>{const {target:_0x5728e0}=_0x5bb56b,_0x4d20bd=_0x137724['view']['document']['selection'];_0x35a4e7=!!(_0x5728e0?.['is']('element','a')&&_0x5728e0['parent']?.['is']('element','sup')&&_0x5728e0['parent']['hasClass']('footnote'))&&_0x4d20bd['getSelectedElement']()===_0x5728e0['parent'];},{'priority':'high'}),this['listenTo'](_0x137724['view']['document'],'click',(_0xc089e9,_0x3784e9)=>{const {target:_0x632b92}=_0x3784e9;if(!_0x632b92?.['is']('element','a'))return;if(_0x632b92['parent']?.['is']('element','sup')&&_0x632b92['parent']['hasClass']('footnote')&&!_0x35a4e7)return void _0x3784e9['preventDefault']();let _0x3d80ef=_0x632b92['getAttribute']('href');if(!_0x3d80ef?.['startsWith']('#'))return;_0x3d80ef=_0x3d80ef['slice'](0x1);let _0x225f57=!0x1;(_0x3d80ef['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3d80ef['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3d80ef))&&(_0x225f57=!0x0),_0x225f57&&(_0x3784e9['preventDefault'](),_0xc089e9['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x11ff0e}={}){return(_0x200834,{writer:_0x414529})=>{if(!g(_0x200834))return null;if(!_0x11ff0e)return _0x414529['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x384408=_0x414529['createContainerElement']('p');return _0x414529['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x384408),_0x384408;};}function g(_0x3a4012){const {parent:_0x413769}=_0x3a4012;if(!_0x413769?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x413769['childCount'])return!0x1;for(const _0x33d487 of _0x3a4012['getAttributeKeys']())if(!_0x33d487['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x33d487)return!0x1;return!0x0;}function v(_0x566625,_0x39280a){if(!_0x566625['is']('element','paragraph'))return!0x1;const _0x5bf4e7=_0x39280a['toViewElement'](_0x566625);return!!_0x5bf4e7&&g(_0x566625)!==_0x5bf4e7['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x241c15){return _0x3011e7(_0x241c15)&&_0x241c15['is']('containerElement')&&!!_0x241c15['getCustomProperty']('footnotesDefinitions');}function D(_0x58fc37,_0x29f830={}){const _0x263ed8=_0x58fc37['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x494b8d=_0x58fc37['createContainerElement']('ol',{'class':'footnotes-list'},_0x58fc37['createSlot']());return _0x58fc37['createContainerElement']('div',{'class':'footnotes',..._0x29f830},[_0x263ed8,_0x494b8d]);}function b(_0x3febd8,_0xf08d3){const _0x14a725=_0x3febd8['getAttribute']('footnoteId'),_0x4e1cc8=_0x3febd8['getAttribute']('footnoteCounter'),_0x4c662c=_0xf08d3['createUIElement']('a',{'href':'#'+_0x14a725},function(_0x30d67a){const _0x53f369=this['toDomElement'](_0x30d67a);return _0x53f369['textContent']=_0x4e1cc8,_0x53f369;}),_0x1c6453=_0xf08d3['createContainerElement']('sup',{'id':'ref-'+_0x14a725,'class':'footnote'},[_0x4c662c]);return _0x1c6453['getFillerOffset']=()=>null,_0x1c6453;}function y(_0x282a36,_0xc602e,_0x37fa62,{dataPipeline:_0x41b183}={}){const {t:t}=_0x37fa62,_0x4c3ff7=_0x282a36['getAttribute']('footnoteId'),_0x794c3c=_0xc602e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4c3ff7},function(_0x54e60c){const _0x49653b=this['toDomElement'](_0x54e60c);return _0x49653b['innerText']='^',_0x49653b;}),_0x3aa508=_0x41b183?_0xc602e['createContainerElement']('div',{'class':'footnote-content'}):_0x2829e1(_0xc602e['createEditableElement']('div',{'class':'footnote-content'}),_0xc602e,{'label':t('Footnote\x20content.')});return _0xc602e['insert'](_0xc602e['createPositionAt'](_0x3aa508,0x0),_0xc602e['createSlot']()),_0xc602e['createContainerElement']('li',{'class':'footnote-definition','id':_0x4c3ff7},[_0x794c3c,_0x3aa508]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x45bc2d=_0xae80;(function(_0x4c3d6b,_0x5072c7){const _0x42861d=_0xae80,_0x411a7f=_0x4c3d6b();while(!![]){try{const _0x34fcce=parseInt(_0x42861d(0xef))/0x1+-parseInt(_0x42861d(0xdf))/0x2+parseInt(_0x42861d(0xe0))/0x3*(parseInt(_0x42861d(0xf4))/0x4)+parseInt(_0x42861d(0xe3))/0x5+parseInt(_0x42861d(0xed))/0x6*(parseInt(_0x42861d(0xe4))/0x7)+parseInt(_0x42861d(0xec))/0x8*(-parseInt(_0x42861d(0xe5))/0x9)+-parseInt(_0x42861d(0xe8))/0xa*(-parseInt(_0x42861d(0xf6))/0xb);if(_0x34fcce===_0x5072c7)break;else _0x411a7f['push'](_0x411a7f['shift']());}catch(_0x40ea58){_0x411a7f['push'](_0x411a7f['shift']());}}}(_0x4420,0xe4bf3));import{Command as _0xad74d7}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x874800}from'../../footnotestracker.js';function _0xae80(_0x5069f5,_0x196a68){const _0x442083=_0x4420();return _0xae80=function(_0xae809e,_0x54dfbc){_0xae809e=_0xae809e-0xdf;let _0x59096f=_0x442083[_0xae809e];return _0x59096f;},_0xae80(_0x5069f5,_0x196a68);}function _0x4420(){const _0x3b3bc0=['get','8ifBsxR','6GhMJXN','model','155026boCNVd','refresh','plugins','getAttribute','getFootnotesDefinitionsObjectElement','32TYNWjO','execute','1177MGHygB','_updateFootnotesCounters','2423334PEWSdQ','24747KfCHRv','setAttribute','change','5540950OzQpkw','2152367QvITur','12571632BUVUid','footnotesListStart','value','178390UtjvRD','isInteger','isEnabled'];_0x4420=function(){return _0x3b3bc0;};return _0x4420();}export class FootnotesStartCommand extends _0xad74d7{[_0x45bc2d(0xf0)](){const _0x355418=_0x45bc2d,{editor:_0x4108df}=this,_0x5b3da0=_0x4108df[_0x355418(0xf1)][_0x355418(0xeb)](_0x874800)[_0x355418(0xf3)]();this[_0x355418(0xea)]=!!_0x5b3da0,this[_0x355418(0xe7)]=_0x5b3da0?.[_0x355418(0xf2)](_0x355418(0xe6))??null;}[_0x45bc2d(0xf5)]({value:_0x357435}){const _0xd6c0d0=_0x45bc2d,{editor:_0x334bbc}=this,_0x788698=_0x334bbc[_0xd6c0d0(0xf1)][_0xd6c0d0(0xeb)](_0x874800),_0xc3f5ef=_0x788698[_0xd6c0d0(0xf3)]();_0xc3f5ef&&Number[_0xd6c0d0(0xe9)](_0x357435)&&_0x334bbc[_0xd6c0d0(0xee)][_0xd6c0d0(0xe2)](_0x1d8f40=>{const _0x1bf1e2=_0xd6c0d0;_0x1d8f40[_0x1bf1e2(0xe1)](_0x1bf1e2(0xe6),_0x357435,_0xc3f5ef),_0x788698[_0x1bf1e2(0xf7)](_0x1d8f40);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2757(_0x5cb5ec,_0x164aed){const _0x419520=_0x4195();return _0x2757=function(_0x27573a,_0x189c63){_0x27573a=_0x27573a-0xce;let _0x1f15df=_0x419520[_0x27573a];return _0x1f15df;},_0x2757(_0x5cb5ec,_0x164aed);}function _0x4195(){const _0x37e808=['getAttribute','isEnabled','model','get','121420snITQn','718464RzUGKh','getFootnotesDefinitionsObjectElement','3579mRRaXk','1344590tnCOaC','change','82XhdFIs','footnotesListStyle','refresh','20axRaJM','_updateFootnotesCounters','includes','147456PGqyJq','execute','615654GBgPhR','value','7XsxoIe','204658KtXokQ','plugins','setAttribute'];_0x4195=function(){return _0x37e808;};return _0x4195();}const _0x2da9f2=_0x2757;(function(_0x27eaee,_0x4df7cb){const _0x3889ee=_0x2757,_0x3eece3=_0x27eaee();while(!![]){try{const _0x6da704=-parseInt(_0x3889ee(0xe2))/0x1+parseInt(_0x3889ee(0xd7))/0x2*(parseInt(_0x3889ee(0xd4))/0x3)+-parseInt(_0x3889ee(0xda))/0x4*(-parseInt(_0x3889ee(0xd1))/0x5)+parseInt(_0x3889ee(0xdd))/0x6+parseInt(_0x3889ee(0xe1))/0x7*(-parseInt(_0x3889ee(0xd2))/0x8)+parseInt(_0x3889ee(0xdf))/0x9+parseInt(_0x3889ee(0xd5))/0xa;if(_0x6da704===_0x4df7cb)break;else _0x3eece3['push'](_0x3eece3['shift']());}catch(_0xdd5c4c){_0x3eece3['push'](_0x3eece3['shift']());}}}(_0x4195,0x1938c));import{Command as _0x34b92a}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x5d8205}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x3876c4}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x34b92a{[_0x2da9f2(0xd9)](){const _0x85f961=_0x2da9f2,{editor:_0x13dfb5}=this,_0x17e723=_0x13dfb5[_0x85f961(0xe3)][_0x85f961(0xd0)](_0x3876c4)[_0x85f961(0xd3)]();this[_0x85f961(0xce)]=!!_0x17e723,this[_0x85f961(0xe0)]=_0x17e723?.[_0x85f961(0xe5)](_0x85f961(0xd8))??null;}[_0x2da9f2(0xde)]({value:_0x3eae63}){const _0x542501=_0x2da9f2,{editor:_0x3c4913}=this,_0x47c125=_0x3c4913[_0x542501(0xe3)][_0x542501(0xd0)](_0x3876c4),_0x478654=_0x47c125[_0x542501(0xd3)]();_0x478654&&_0x5d8205[_0x542501(0xdc)](_0x3eae63)&&_0x3c4913[_0x542501(0xcf)][_0x542501(0xd6)](_0x4c06ac=>{const _0x5eebc5=_0x542501;_0x4c06ac[_0x5eebc5(0xe4)](_0x5eebc5(0xd8),_0x3eae63,_0x478654),_0x47c125[_0x5eebc5(0xdb)](_0x4c06ac);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x416f48=_0x4196;(function(_0xfd0a14,_0x47dbbd){const _0x158764=_0x4196,_0x18ef8e=_0xfd0a14();while(!![]){try{const _0x488691=parseInt(_0x158764(0x6d))/0x1+parseInt(_0x158764(0x73))/0x2+parseInt(_0x158764(0x6f))/0x3+-parseInt(_0x158764(0x77))/0x4*(-parseInt(_0x158764(0x7b))/0x5)+-parseInt(_0x158764(0x7c))/0x6+parseInt(_0x158764(0x72))/0x7+-parseInt(_0x158764(0x79))/0x8*(parseInt(_0x158764(0x6c))/0x9);if(_0x488691===_0x47dbbd)break;else _0x18ef8e['push'](_0x18ef8e['shift']());}catch(_0x133288){_0x18ef8e['push'](_0x18ef8e['shift']());}}}(_0x365b,0x6d99a));function _0x4196(_0x574cdc,_0x17b5c1){const _0x365bbd=_0x365b();return _0x4196=function(_0x419695,_0x3b285f){_0x419695=_0x419695-0x6c;let _0x29526e=_0x365bbd[_0x419695];return _0x29526e;},_0x4196(_0x574cdc,_0x17b5c1);}function _0x365b(){const _0x7681b=['upper-alpha','9516JxvEUP','lower-alpha','15472AfwmKQ','decimal-leading-zero','1085SOvgSJ','2128836fEtaZb','6813cPRapD','488252JIuyqV','lower-latin','340704tZBDlC','upper-roman','upper-latin','6247017Xlnsoo','514544wlfWng','decimal','lower-roman'];_0x365b=function(){return _0x7681b;};return _0x365b();}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x416f48(0x74),_0x416f48(0x7a),_0x416f48(0x6e),_0x416f48(0x71),_0x416f48(0x78),_0x416f48(0x76),_0x416f48(0x75),_0x416f48(0x70)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xc1018b=_0x2eff;function _0x30ac(){const _0x387124=['_getDefaultStartIndex','footnotesDefinitions','type','createRangeOn','consumable','footnotesStyle','1404666BUMgoN','lower-roman','model','decimal','1083483QWRAKc','start','_formatFootnoteListValue','writer','removeAttribute','position','upper-roman','nodeAfter','upper-alpha','getChanges','3CFNeaQ','removeStyle','consume','_updateFootnotesCounters','162PfDPek','pluginName','lower-alpha','setStyle','_definePostfixer','getAttribute','isPremiumPlugin','registerPostFixer','hasAttribute','hasClass','attribute:footnotesListStyle:footnotesDefinitions','config','getItems','checkAttribute','decimal-leading-zero','insert','_defineConverters','downcast','footnotesListStyle','749682UKskSY','modelCursor','max','document','_getDefaultListStyle','929797oncAnN','fromCharCode','parent','$text','7863344cXTCAD','setAttribute','footnotesListStart','attribute:footnotesListStart:footnotesDefinitions','differ','toLowerCase','isNaN','118839gVrRNs','list-style-type','footnotesStart','for','isOfficialPlugin','viewItem','936596MDabfu','mapper','getChildren','170umqIHV','extend','_defineFormatter','add','25wRdpdd','footnotes-list','_defineSchema','upper-latin','commands','lower-latin','upcast','toViewElement','from','schema','parseInt','find','editor','define','plugins','floor','element','requires','getStyle','padStart','footnotes.footnotesProperties.defaultListStyle','name','item','get','element:ol','toUpperCase','footnotes.footnotesProperties.defaultStartIndex','setFootnoteFormatter','FootnotesPropertiesEditing','init'];_0x30ac=function(){return _0x387124;};return _0x30ac();}(function(_0xbf2d25,_0x401685){const _0x1792a5=_0x2eff,_0x339b84=_0xbf2d25();while(!![]){try{const _0x3a5705=-parseInt(_0x1792a5(0x108))/0x1+-parseInt(_0x1792a5(0x104))/0x2*(-parseInt(_0x1792a5(0x112))/0x3)+parseInt(_0x1792a5(0xd9))/0x4*(parseInt(_0x1792a5(0xe0))/0x5)+parseInt(_0x1792a5(0x116))/0x6*(parseInt(_0x1792a5(0xd3))/0x7)+parseInt(_0x1792a5(0xcc))/0x8+parseInt(_0x1792a5(0xc3))/0x9*(-parseInt(_0x1792a5(0xdc))/0xa)+parseInt(_0x1792a5(0xc8))/0xb;if(_0x3a5705===_0x401685)break;else _0x339b84['push'](_0x339b84['shift']());}catch(_0xb8574b){_0x339b84['push'](_0x339b84['shift']());}}}(_0x30ac,0xdb919));function _0x2eff(_0x4df38f,_0x287576){const _0x30acdb=_0x30ac();return _0x2eff=function(_0x2eff8a,_0x4ff07c){_0x2eff8a=_0x2eff8a-0xb7;let _0x21d67e=_0x30acdb[_0x2eff8a];return _0x21d67e;},_0x2eff(_0x4df38f,_0x287576);}import{Plugin as _0x472b35}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x3bd254}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x24853f}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x2cccc9}from'../footnotestracker.js';import{FootnotesEditing as _0x5d8ad6}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x472b35{static get[_0xc1018b(0x117)](){const _0x37ea46=_0xc1018b;return _0x37ea46(0xfc);}static get[_0xc1018b(0xf1)](){return[_0x5d8ad6,_0x2cccc9];}static get[_0xc1018b(0xd7)](){return!0x0;}static get[_0xc1018b(0x11c)](){return!0x0;}[_0xc1018b(0xfd)](){const _0x422f41=_0xc1018b,{editor:_0x3247b0}=this;_0x3247b0[_0x422f41(0xbb)][_0x422f41(0xed)](_0x422f41(0xf4),_0x422f41(0x107)),_0x3247b0[_0x422f41(0xbb)][_0x422f41(0xed)](_0x422f41(0xfa),0x1),_0x3247b0[_0x422f41(0xe4)][_0x422f41(0xdf)](_0x422f41(0x103),new _0x3bd254(_0x3247b0)),_0x3247b0[_0x422f41(0xe4)][_0x422f41(0xdf)](_0x422f41(0xd5),new _0x24853f(_0x3247b0)),this[_0x422f41(0xe2)](),this[_0x422f41(0xc0)](),this[_0x422f41(0xde)](),this[_0x422f41(0x11a)]();}[_0xc1018b(0xe2)](){const _0x4c52e5=_0xc1018b,{editor:_0x433dfb}=this,{schema:_0x44e3f7}=_0x433dfb[_0x4c52e5(0x106)];_0x44e3f7[_0x4c52e5(0xdd)](_0x4c52e5(0xff),{'allowAttributes':[_0x4c52e5(0xc2),_0x4c52e5(0xce)]});}[_0xc1018b(0xc0)](){const _0x2d5ca8=_0xc1018b,{editor:_0xb0a960}=this,{conversion:_0x49d69a,model:_0x197ed5}=_0xb0a960,{schema:_0x154569}=_0x197ed5;_0x49d69a[_0x2d5ca8(0xd6)](_0x2d5ca8(0xe6))[_0x2d5ca8(0xdf)](_0x21ff1c=>{const _0x522b7d=_0x2d5ca8;_0x21ff1c['on'](_0x522b7d(0xf8),(_0x1e15e8,_0x3f5554,_0x4b5c71)=>{const _0x51fae4=_0x522b7d,_0x375b79=_0x3f5554[_0x51fae4(0xd8)],_0x4c60ea=_0x3f5554[_0x51fae4(0xc4)]?.[_0x51fae4(0xca)];_0x375b79[_0x51fae4(0xb9)](_0x51fae4(0xe1))&&_0x4c60ea?.['is'](_0x51fae4(0xf0),_0x51fae4(0xff))&&(function(_0x445f64,_0x3b74a7,_0x28bb04,_0x5427a8){const _0x304e6e=_0x51fae4;if(!_0x5427a8[_0x304e6e(0xbd)](_0x3b74a7,_0x304e6e(0xce)))return;let _0x19abf3=0x1;const _0x992bca=_0x28bb04[_0x304e6e(0x102)][_0x304e6e(0x114)](_0x445f64,{'attributes':_0x304e6e(0x109)});if(_0x992bca){const _0x14fd3b=Number[_0x304e6e(0xea)](_0x445f64[_0x304e6e(0x11b)](_0x304e6e(0x109)),0xa);Number[_0x304e6e(0xd2)](_0x14fd3b)||(_0x19abf3=_0x14fd3b);}!_0x992bca&&_0x3b74a7[_0x304e6e(0xb8)](_0x304e6e(0xce))||_0x28bb04[_0x304e6e(0x10b)][_0x304e6e(0xcd)](_0x304e6e(0xce),_0x19abf3,_0x3b74a7);}(_0x375b79,_0x4c60ea,_0x4b5c71,_0x154569),function(_0x34ed2d,_0x2cf683,_0x5334c8,_0x219ffd){const _0x3ed6ba=_0x51fae4;if(!_0x219ffd[_0x3ed6ba(0xbd)](_0x2cf683,_0x3ed6ba(0xc2)))return;let _0x5b53bf=_0x3ed6ba(0x107),_0x43ab0a=!0x1;if(_0x5334c8[_0x3ed6ba(0x102)][_0x3ed6ba(0x114)](_0x34ed2d,{'attributes':_0x3ed6ba(0x100)})){const _0x2ad17d={0x1:_0x3ed6ba(0x107),'a':_0x3ed6ba(0x118),'A':_0x3ed6ba(0x110),'i':_0x3ed6ba(0x105),'I':_0x3ed6ba(0x10e)}[_0x34ed2d[_0x3ed6ba(0x11b)](_0x3ed6ba(0x100))];_0x2ad17d&&(_0x5b53bf=_0x2ad17d),_0x43ab0a=!0x0;}_0x5334c8[_0x3ed6ba(0x102)][_0x3ed6ba(0x114)](_0x34ed2d,{'styles':_0x3ed6ba(0xd4)})&&(_0x5b53bf=function(_0x5505b4){const _0x48b6d5=_0x3ed6ba;switch(_0x5505b4){case _0x48b6d5(0x118):return _0x48b6d5(0xe5);case _0x48b6d5(0x110):return _0x48b6d5(0xe3);default:return _0x5505b4;}}(_0x34ed2d[_0x3ed6ba(0xf2)](_0x3ed6ba(0xd4))),_0x43ab0a=!0x0),!_0x43ab0a&&_0x2cf683[_0x3ed6ba(0xb8)](_0x3ed6ba(0xc2))||_0x5334c8[_0x3ed6ba(0x10b)][_0x3ed6ba(0xcd)](_0x3ed6ba(0xc2),_0x5b53bf,_0x2cf683);}(_0x375b79,_0x4c60ea,_0x4b5c71,_0x154569));});}),_0x49d69a[_0x2d5ca8(0xd6)](_0x2d5ca8(0xc1))[_0x2d5ca8(0xdf)](_0x180b00=>{const _0x8b4826=_0x2d5ca8;_0x180b00['on'](_0x8b4826(0xcf),(_0x254dc0,_0x4a776e,_0x1448b1)=>{const _0xb89cd6=_0x8b4826;if(!_0x1448b1[_0xb89cd6(0x102)][_0xb89cd6(0x114)](_0x4a776e[_0xb89cd6(0xf6)],_0x254dc0[_0xb89cd6(0xf5)]))return;const _0x1dea36=M(_0x4a776e[_0xb89cd6(0xf6)],_0x1448b1[_0xb89cd6(0xda)]),{attributeNewValue:_0x491fc7}=_0x4a776e;null==_0x491fc7||0x1===_0x491fc7?_0x1448b1[_0xb89cd6(0x10b)][_0xb89cd6(0x10c)](_0xb89cd6(0x109),_0x1dea36):_0x1448b1[_0xb89cd6(0x10b)][_0xb89cd6(0xcd)](_0xb89cd6(0x109),String(_0x491fc7),_0x1dea36);}),_0x180b00['on'](_0x8b4826(0xba),(_0x496e4a,_0x8b8dcf,_0x44ea3c)=>{const _0x36d5d7=_0x8b4826;if(!_0x44ea3c[_0x36d5d7(0x102)][_0x36d5d7(0x114)](_0x8b8dcf[_0x36d5d7(0xf6)],_0x496e4a[_0x36d5d7(0xf5)]))return;const _0x1ecc17=M(_0x8b8dcf[_0x36d5d7(0xf6)],_0x44ea3c[_0x36d5d7(0xda)]),{attributeNewValue:_0x2bca12}=_0x8b8dcf;_0x2bca12&&_0x36d5d7(0x107)!==_0x2bca12?_0x44ea3c[_0x36d5d7(0x10b)][_0x36d5d7(0x119)](_0x36d5d7(0xd4),_0x2bca12,_0x1ecc17):_0x44ea3c[_0x36d5d7(0x10b)][_0x36d5d7(0x113)](_0x36d5d7(0xd4),_0x1ecc17);});});}[_0xc1018b(0x11a)](){const _0x17be6f=_0xc1018b,{editor:_0x101abe}=this,{model:_0x5bfa54}=_0x101abe,_0x555b05=_0x101abe[_0x17be6f(0xee)][_0x17be6f(0xf7)](_0x2cccc9),_0x2ae5d6=this[_0x17be6f(0xc7)](),_0x59c75f=this[_0x17be6f(0xfe)]();_0x5bfa54[_0x17be6f(0xc6)][_0x17be6f(0xb7)](_0x30cdd8=>{const _0x325cef=_0x17be6f,_0x51ac68=_0x5bfa54[_0x325cef(0xc6)][_0x325cef(0xd0)][_0x325cef(0x111)]();let _0x434dae=!0x1;for(const _0x32a1b2 of _0x51ac68){if(_0x325cef(0xbf)!==_0x32a1b2[_0x325cef(0x100)]||_0x325cef(0xcb)===_0x32a1b2[_0x325cef(0xf5)])continue;const _0x51da3c=_0x5bfa54[_0x325cef(0x101)](_0x32a1b2[_0x325cef(0x10d)][_0x325cef(0x10f)]);for(const _0x573114 of _0x51da3c[_0x325cef(0xbc)]())_0x573114['is'](_0x325cef(0xf0),_0x325cef(0xff))&&(!_0x573114[_0x325cef(0xb8)](_0x325cef(0xce))&&_0x5bfa54[_0x325cef(0xe9)][_0x325cef(0xbd)](_0x573114,_0x325cef(0xce))&&(_0x30cdd8[_0x325cef(0xcd)](_0x325cef(0xce),_0x59c75f,_0x573114),_0x434dae=!0x0),!_0x573114[_0x325cef(0xb8)](_0x325cef(0xc2))&&_0x5bfa54[_0x325cef(0xe9)][_0x325cef(0xbd)](_0x573114,_0x325cef(0xc2))&&(_0x30cdd8[_0x325cef(0xcd)](_0x325cef(0xc2),_0x2ae5d6,_0x573114),_0x434dae=!0x0));}return _0x434dae&&_0x555b05[_0x325cef(0x115)](_0x30cdd8),_0x434dae;});}[_0xc1018b(0xde)](){const _0x20a05c=_0xc1018b,{editor:_0x25b42b}=this;_0x25b42b[_0x20a05c(0xee)][_0x20a05c(0xf7)](_0x2cccc9)[_0x20a05c(0xfb)](_0x291680=>this[_0x20a05c(0x10a)](_0x291680));}[_0xc1018b(0xc7)](){const _0x330920=_0xc1018b;return this[_0x330920(0xec)][_0x330920(0xbb)][_0x330920(0xf7)](_0x330920(0xf4));}[_0xc1018b(0xfe)](){const _0x20a2af=_0xc1018b;return this[_0x20a2af(0xec)][_0x20a2af(0xbb)][_0x20a2af(0xf7)](_0x20a2af(0xfa));}[_0xc1018b(0x10a)]({container:_0x100746,value:_0x440cd2,digits:_0x569788}){const _0x19c767=_0xc1018b,_0x270714=_0x100746[_0x19c767(0x11b)](_0x19c767(0xc2)),_0x23bc3e=_0x100746[_0x19c767(0x11b)](_0x19c767(0xce)),_0x3f0365=Math[_0x19c767(0xef)](_0x440cd2)+(_0x23bc3e??0x1)-0x1;switch(_0x270714){case _0x19c767(0xbe):return function(_0x486cf5,_0x5e851f){const _0x335229=_0x19c767;return String(_0x486cf5)[_0x335229(0xf3)](_0x5e851f,'0');}(_0x3f0365,Math[_0x19c767(0xc5)](0x2,_0x569788));case _0x19c767(0x118):case _0x19c767(0xe5):return N(_0x3f0365,!0x1);case _0x19c767(0x110):case _0x19c767(0xe3):return N(_0x3f0365,!0x0);case _0x19c767(0x105):return X(_0x3f0365,!0x1);case _0x19c767(0x10e):return X(_0x3f0365,!0x0);default:return String(_0x3f0365);}}}function M(_0xb81274,_0x2dc347){const _0x48c292=_0xc1018b,_0xbc9386=_0x2dc347[_0x48c292(0xe7)](_0xb81274);return Array[_0x48c292(0xe8)](_0xbc9386[_0x48c292(0xdb)]())[_0x48c292(0xeb)](_0x158a39=>_0x158a39['is'](_0x48c292(0xf0),'ol')&&_0x158a39[_0x48c292(0xb9)](_0x48c292(0xe1)));}function N(_0x24b00b,_0x4e342f){const _0x574131=_0xc1018b;let _0x2ea603='',_0x2c6b4d=_0x24b00b;for(;_0x2c6b4d>0x0;){const _0x2be3ec=(_0x2c6b4d-0x1)%0x1a;_0x2ea603=String[_0x574131(0xc9)](0x61+_0x2be3ec)+_0x2ea603,_0x2c6b4d=Math[_0x574131(0xef)]((_0x2c6b4d-0x1)/0x1a);}return _0x4e342f?_0x2ea603[_0x574131(0xf9)]():_0x2ea603;}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(_0x197dda,_0x550235){const _0x12a31f=_0xc1018b;let _0x10fe27='',_0x12af42=_0x197dda;for(const {value:_0x2785cd,numeral:_0xe93483}of V)for(;_0x12af42>=_0x2785cd;)_0x10fe27+=_0xe93483,_0x12af42-=_0x2785cd;return _0x550235?_0x10fe27:_0x10fe27[_0x12a31f(0xd1)]();}
|
|
23
|
+
const _0x33697c=_0x4173;(function(_0x1d4f5b,_0x45ff92){const _0x36799f=_0x4173,_0x48f401=_0x1d4f5b();while(!![]){try{const _0x2352c3=-parseInt(_0x36799f(0x1cd))/0x1+parseInt(_0x36799f(0x194))/0x2*(-parseInt(_0x36799f(0x1db))/0x3)+-parseInt(_0x36799f(0x1ca))/0x4*(parseInt(_0x36799f(0x1c8))/0x5)+parseInt(_0x36799f(0x1ae))/0x6+-parseInt(_0x36799f(0x1ab))/0x7*(parseInt(_0x36799f(0x19c))/0x8)+parseInt(_0x36799f(0x1af))/0x9*(-parseInt(_0x36799f(0x1c0))/0xa)+parseInt(_0x36799f(0x1c5))/0xb*(parseInt(_0x36799f(0x198))/0xc);if(_0x2352c3===_0x45ff92)break;else _0x48f401['push'](_0x48f401['shift']());}catch(_0x1713f8){_0x48f401['push'](_0x48f401['shift']());}}}(_0x5a46,0xbd734));function _0x4173(_0x226329,_0x556875){const _0x5a463c=_0x5a46();return _0x4173=function(_0x417342,_0x139cf){_0x417342=_0x417342-0x180;let _0x382e1c=_0x5a463c[_0x417342];return _0x382e1c;},_0x4173(_0x226329,_0x556875);}import{Plugin as _0x21bd6b}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x39b34e}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x1344e5}from'./commands/footnotesstartcommand.js';function _0x5a46(){const _0x479b3c=['upcast','pluginName','insert','2YbQIZo','init','removeAttribute','setAttribute','2126916Fdkevz','parseInt','footnotes.footnotesProperties.defaultListStyle','isNaN','120bvdYYs','hasClass','isOfficialPlugin','decimal','decimal-leading-zero','checkAttribute','getChildren','hasAttribute','footnotes-list','commands','fromCharCode','upper-roman','_getDefaultStartIndex','define','_defineSchema','44065QvmVlB','isPremiumPlugin','lower-latin','4981188DaeVGJ','9nEYvdL','nodeAfter','_getDefaultListStyle','document','_updateFootnotesCounters','_defineFormatter','createRangeOn','element','from','editor','name','toLowerCase','$text','element:ol','removeStyle','start','parent','14951770KsCteB','differ','consumable','getStyle','writer','209DFtymU','lower-alpha','toViewElement','3898540mqqBDu','plugins','4WPKGrb','registerPostFixer','footnotesStart','87814fNfpRi','upper-alpha','upper-latin','list-style-type','model','find','attribute:footnotesListStart:footnotesDefinitions','item','getChanges','_defineConverters','add','get','modelCursor','footnotesStyle','2894109PlcUik','getAttribute','mapper','footnotes.footnotesProperties.defaultStartIndex','footnotesListStart','for','getItems','type','downcast','toUpperCase','consume','schema','viewItem','padStart','_definePostfixer','extend','footnotesDefinitions','floor','lower-roman','config','setStyle','FootnotesPropertiesEditing','position','_formatFootnoteListValue','requires','max','setFootnoteFormatter','attribute:footnotesListStyle:footnotesDefinitions','footnotesListStyle'];_0x5a46=function(){return _0x479b3c;};return _0x5a46();}import{FootnotesTracker as _0x2dca82}from'../footnotestracker.js';import{FootnotesEditing as _0x4e6222}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x21bd6b{static get[_0x33697c(0x192)](){const _0x199c69=_0x33697c;return _0x199c69(0x189);}static get[_0x33697c(0x18c)](){return[_0x4e6222,_0x2dca82];}static get[_0x33697c(0x19e)](){return!0x0;}static get[_0x33697c(0x1ac)](){return!0x0;}[_0x33697c(0x195)](){const _0x234c71=_0x33697c,{editor:_0x217636}=this;_0x217636[_0x234c71(0x187)][_0x234c71(0x1a9)](_0x234c71(0x19a),_0x234c71(0x19f)),_0x217636[_0x234c71(0x187)][_0x234c71(0x1a9)](_0x234c71(0x1de),0x1),_0x217636[_0x234c71(0x1a5)][_0x234c71(0x1d7)](_0x234c71(0x1da),new _0x39b34e(_0x217636)),_0x217636[_0x234c71(0x1a5)][_0x234c71(0x1d7)](_0x234c71(0x1cc),new _0x1344e5(_0x217636)),this[_0x234c71(0x1aa)](),this[_0x234c71(0x1d6)](),this[_0x234c71(0x1b4)](),this[_0x234c71(0x182)]();}[_0x33697c(0x1aa)](){const _0x169dbc=_0x33697c,{editor:_0x5470f6}=this,{schema:_0x4239f0}=_0x5470f6[_0x169dbc(0x1d1)];_0x4239f0[_0x169dbc(0x183)](_0x169dbc(0x184),{'allowAttributes':[_0x169dbc(0x190),_0x169dbc(0x1df)]});}[_0x33697c(0x1d6)](){const _0x25b370=_0x33697c,{editor:_0x5906e4}=this,{conversion:_0x25fde7,model:_0x787ef3}=_0x5906e4,{schema:_0x2e7391}=_0x787ef3;_0x25fde7[_0x25b370(0x1e0)](_0x25b370(0x191))[_0x25b370(0x1d7)](_0x235eaf=>{const _0x25f02e=_0x25b370;_0x235eaf['on'](_0x25f02e(0x1bc),(_0x54ca85,_0x497836,_0x33fef5)=>{const _0x103f89=_0x25f02e,_0x38904a=_0x497836[_0x103f89(0x180)],_0x288e6d=_0x497836[_0x103f89(0x1d9)]?.[_0x103f89(0x1bf)];_0x38904a[_0x103f89(0x19d)](_0x103f89(0x1a4))&&_0x288e6d?.['is'](_0x103f89(0x1b6),_0x103f89(0x184))&&(function(_0x3fa1b6,_0x331624,_0x51a910,_0x37a13f){const _0x3538af=_0x103f89;if(!_0x37a13f[_0x3538af(0x1a1)](_0x331624,_0x3538af(0x1df)))return;let _0x58547b=0x1;const _0x3dda13=_0x51a910[_0x3538af(0x1c2)][_0x3538af(0x1e5)](_0x3fa1b6,{'attributes':_0x3538af(0x1be)});if(_0x3dda13){const _0x57787b=Number[_0x3538af(0x199)](_0x3fa1b6[_0x3538af(0x1dc)](_0x3538af(0x1be)),0xa);Number[_0x3538af(0x19b)](_0x57787b)||(_0x58547b=_0x57787b);}!_0x3dda13&&_0x331624[_0x3538af(0x1a3)](_0x3538af(0x1df))||_0x51a910[_0x3538af(0x1c4)][_0x3538af(0x197)](_0x3538af(0x1df),_0x58547b,_0x331624);}(_0x38904a,_0x288e6d,_0x33fef5,_0x2e7391),function(_0x298d16,_0x4195e9,_0x534aa9,_0x112889){const _0x2fb417=_0x103f89;if(!_0x112889[_0x2fb417(0x1a1)](_0x4195e9,_0x2fb417(0x190)))return;let _0x4b1ad4=_0x2fb417(0x19f),_0x438bc2=!0x1;if(_0x534aa9[_0x2fb417(0x1c2)][_0x2fb417(0x1e5)](_0x298d16,{'attributes':_0x2fb417(0x1e2)})){const _0x426838={0x1:_0x2fb417(0x19f),'a':_0x2fb417(0x1c6),'A':_0x2fb417(0x1ce),'i':_0x2fb417(0x186),'I':_0x2fb417(0x1a7)}[_0x298d16[_0x2fb417(0x1dc)](_0x2fb417(0x1e2))];_0x426838&&(_0x4b1ad4=_0x426838),_0x438bc2=!0x0;}_0x534aa9[_0x2fb417(0x1c2)][_0x2fb417(0x1e5)](_0x298d16,{'styles':_0x2fb417(0x1d0)})&&(_0x4b1ad4=function(_0x26aaec){const _0xe1de24=_0x2fb417;switch(_0x26aaec){case _0xe1de24(0x1c6):return _0xe1de24(0x1ad);case _0xe1de24(0x1ce):return _0xe1de24(0x1cf);default:return _0x26aaec;}}(_0x298d16[_0x2fb417(0x1c3)](_0x2fb417(0x1d0))),_0x438bc2=!0x0),!_0x438bc2&&_0x4195e9[_0x2fb417(0x1a3)](_0x2fb417(0x190))||_0x534aa9[_0x2fb417(0x1c4)][_0x2fb417(0x197)](_0x2fb417(0x190),_0x4b1ad4,_0x4195e9);}(_0x38904a,_0x288e6d,_0x33fef5,_0x2e7391));});}),_0x25fde7[_0x25b370(0x1e0)](_0x25b370(0x1e3))[_0x25b370(0x1d7)](_0x32d261=>{const _0x446190=_0x25b370;_0x32d261['on'](_0x446190(0x1d3),(_0x24e87a,_0xe9a596,_0x2f9234)=>{const _0x32c949=_0x446190;if(!_0x2f9234[_0x32c949(0x1c2)][_0x32c949(0x1e5)](_0xe9a596[_0x32c949(0x1d4)],_0x24e87a[_0x32c949(0x1b9)]))return;const _0x5ab22a=M(_0xe9a596[_0x32c949(0x1d4)],_0x2f9234[_0x32c949(0x1dd)]),{attributeNewValue:_0x21a1b8}=_0xe9a596;null==_0x21a1b8||0x1===_0x21a1b8?_0x2f9234[_0x32c949(0x1c4)][_0x32c949(0x196)](_0x32c949(0x1be),_0x5ab22a):_0x2f9234[_0x32c949(0x1c4)][_0x32c949(0x197)](_0x32c949(0x1be),String(_0x21a1b8),_0x5ab22a);}),_0x32d261['on'](_0x446190(0x18f),(_0x367ed7,_0x1e55ab,_0x1bbb1a)=>{const _0x3f2fdd=_0x446190;if(!_0x1bbb1a[_0x3f2fdd(0x1c2)][_0x3f2fdd(0x1e5)](_0x1e55ab[_0x3f2fdd(0x1d4)],_0x367ed7[_0x3f2fdd(0x1b9)]))return;const _0x196fe4=M(_0x1e55ab[_0x3f2fdd(0x1d4)],_0x1bbb1a[_0x3f2fdd(0x1dd)]),{attributeNewValue:_0x5ef8ac}=_0x1e55ab;_0x5ef8ac&&_0x3f2fdd(0x19f)!==_0x5ef8ac?_0x1bbb1a[_0x3f2fdd(0x1c4)][_0x3f2fdd(0x188)](_0x3f2fdd(0x1d0),_0x5ef8ac,_0x196fe4):_0x1bbb1a[_0x3f2fdd(0x1c4)][_0x3f2fdd(0x1bd)](_0x3f2fdd(0x1d0),_0x196fe4);});});}[_0x33697c(0x182)](){const _0x2d3df7=_0x33697c,{editor:_0x2516dd}=this,{model:_0x13230b}=_0x2516dd,_0x3fbc24=_0x2516dd[_0x2d3df7(0x1c9)][_0x2d3df7(0x1d8)](_0x2dca82),_0x4f6bed=this[_0x2d3df7(0x1b1)](),_0x241a93=this[_0x2d3df7(0x1a8)]();_0x13230b[_0x2d3df7(0x1b2)][_0x2d3df7(0x1cb)](_0x4107b3=>{const _0xdeea59=_0x2d3df7,_0xb2a61b=_0x13230b[_0xdeea59(0x1b2)][_0xdeea59(0x1c1)][_0xdeea59(0x1d5)]();let _0x411b7a=!0x1;for(const _0x457bbc of _0xb2a61b){if(_0xdeea59(0x193)!==_0x457bbc[_0xdeea59(0x1e2)]||_0xdeea59(0x1bb)===_0x457bbc[_0xdeea59(0x1b9)])continue;const _0x498cb1=_0x13230b[_0xdeea59(0x1b5)](_0x457bbc[_0xdeea59(0x18a)][_0xdeea59(0x1b0)]);for(const _0x1afd18 of _0x498cb1[_0xdeea59(0x1e1)]())_0x1afd18['is'](_0xdeea59(0x1b6),_0xdeea59(0x184))&&(!_0x1afd18[_0xdeea59(0x1a3)](_0xdeea59(0x1df))&&_0x13230b[_0xdeea59(0x1e6)][_0xdeea59(0x1a1)](_0x1afd18,_0xdeea59(0x1df))&&(_0x4107b3[_0xdeea59(0x197)](_0xdeea59(0x1df),_0x241a93,_0x1afd18),_0x411b7a=!0x0),!_0x1afd18[_0xdeea59(0x1a3)](_0xdeea59(0x190))&&_0x13230b[_0xdeea59(0x1e6)][_0xdeea59(0x1a1)](_0x1afd18,_0xdeea59(0x190))&&(_0x4107b3[_0xdeea59(0x197)](_0xdeea59(0x190),_0x4f6bed,_0x1afd18),_0x411b7a=!0x0));}return _0x411b7a&&_0x3fbc24[_0xdeea59(0x1b3)](_0x4107b3),_0x411b7a;});}[_0x33697c(0x1b4)](){const _0x37f7db=_0x33697c,{editor:_0x536f2b}=this;_0x536f2b[_0x37f7db(0x1c9)][_0x37f7db(0x1d8)](_0x2dca82)[_0x37f7db(0x18e)](_0x13ffcb=>this[_0x37f7db(0x18b)](_0x13ffcb));}[_0x33697c(0x1b1)](){const _0x1764d4=_0x33697c;return this[_0x1764d4(0x1b8)][_0x1764d4(0x187)][_0x1764d4(0x1d8)](_0x1764d4(0x19a));}[_0x33697c(0x1a8)](){const _0x4637af=_0x33697c;return this[_0x4637af(0x1b8)][_0x4637af(0x187)][_0x4637af(0x1d8)](_0x4637af(0x1de));}[_0x33697c(0x18b)]({container:_0x47cf00,value:_0x396cbb,digits:_0x1015e4}){const _0x3a585f=_0x33697c,_0x126257=_0x47cf00[_0x3a585f(0x1dc)](_0x3a585f(0x190)),_0x438798=_0x47cf00[_0x3a585f(0x1dc)](_0x3a585f(0x1df)),_0x4b95f8=Math[_0x3a585f(0x185)](_0x396cbb)+(_0x438798??0x1)-0x1;switch(_0x126257){case _0x3a585f(0x1a0):return function(_0x48e7c1,_0x5ba175){const _0x4e2b0d=_0x3a585f;return String(_0x48e7c1)[_0x4e2b0d(0x181)](_0x5ba175,'0');}(_0x4b95f8,Math[_0x3a585f(0x18d)](0x2,_0x1015e4));case _0x3a585f(0x1c6):case _0x3a585f(0x1ad):return N(_0x4b95f8,!0x1);case _0x3a585f(0x1ce):case _0x3a585f(0x1cf):return N(_0x4b95f8,!0x0);case _0x3a585f(0x186):return X(_0x4b95f8,!0x1);case _0x3a585f(0x1a7):return X(_0x4b95f8,!0x0);default:return String(_0x4b95f8);}}}function M(_0x4e2ba1,_0x505625){const _0x4f5b86=_0x33697c,_0x37f130=_0x505625[_0x4f5b86(0x1c7)](_0x4e2ba1);return Array[_0x4f5b86(0x1b7)](_0x37f130[_0x4f5b86(0x1a2)]())[_0x4f5b86(0x1d2)](_0x364f41=>_0x364f41['is'](_0x4f5b86(0x1b6),'ol')&&_0x364f41[_0x4f5b86(0x19d)](_0x4f5b86(0x1a4)));}function N(_0x73fa39,_0x374416){const _0x2ac56=_0x33697c;let _0x52b93d='',_0x23b52f=_0x73fa39;for(;_0x23b52f>0x0;){const _0x12f5d0=(_0x23b52f-0x1)%0x1a;_0x52b93d=String[_0x2ac56(0x1a6)](0x61+_0x12f5d0)+_0x52b93d,_0x23b52f=Math[_0x2ac56(0x185)]((_0x23b52f-0x1)/0x1a);}return _0x374416?_0x52b93d[_0x2ac56(0x1e4)]():_0x52b93d;}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(_0x18241e,_0x30fee7){const _0x29e3ad=_0x33697c;let _0x3fbf61='',_0x499e08=_0x18241e;for(const {value:_0xd03a4c,numeral:_0x22b586}of V)for(;_0x499e08>=_0xd03a4c;)_0x3fbf61+=_0x22b586,_0x499e08-=_0xd03a4c;return _0x30fee7?_0x3fbf61:_0x3fbf61[_0x29e3ad(0x1ba)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x12a4c9,ButtonView as _0x1d420d,ContextualBalloon as _0x1f7aea,createDropdown as _0x2cf6c3}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x3b6576}from'ckeditor5/src/widget.js';import{Plugin as _0x4743dc}from'ckeditor5/src/core.js';import{IconFootnote as _0x46cefe,IconListStyleDecimal as _0x378d58,IconListStyleDecimalLeadingZero as _0x1eb50c,IconListStyleLowerLatin as _0x4781b0,IconListStyleLowerRoman as _0x20974b,IconListStyleUpperLatin as _0x5d6940,IconListStyleUpperRoman as _0x2b05f3}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x3107f9}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0xcb508c}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x4743dc{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1f7aea,_0x3b6576];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x11feee}=this,{componentFactory:_0x373b94}=_0x11feee['ui'];_0x11feee['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x373b94['add']('footnotesStyle',function(_0x4aa057){return _0x2bf576=>{const {t:t}=_0x2bf576,_0x55fb00=_0x4aa057['commands']['get']('footnotesStyle'),_0x3c6ec9=_0x2cf6c3(_0x2bf576),{buttonView:_0x3669c1}=_0x3c6ec9;return _0x3c6ec9['class']='ck-footnotes-styles-dropdown',_0x3c6ec9['bind']('isEnabled')['to'](_0x55fb00,'isEnabled'),_0x3669c1['set']({'label':t('Footnotes\x20style'),'icon':_0x46cefe,'tooltip':!0x0}),_0x3c6ec9['once']('change:isOpen',()=>{const _0x10beb2=function({editor:_0x340468,dropdownView:_0x4ac1f1}){const {t:t}=_0x340468['locale'],_0xb666d1=t('Footnotes\x20definitions\x20styles'),_0x39d842=function(_0x4c51a8){const t=_0x4c51a8['locale']['t'],_0x2df6d6=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x378d58},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1eb50c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x20974b},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2b05f3},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4781b0},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5d6940}];return _0x2df6d6['map'](function(_0x314133){const _0x223b8f=_0x314133['locale'];return({label:_0x1225ed,icon:_0x39d344,tooltip:_0x2858ae,style:_0xa0eb3f})=>{const _0x3c454b=_0x314133['commands']['get']('footnotesStyle'),_0xccf4bf=new _0x1d420d(_0x223b8f);return _0xccf4bf['set']({'label':_0x1225ed,'icon':_0x39d344,'tooltip':_0x2858ae}),_0xccf4bf['bind']('isOn')['to'](_0x3c454b,'value',_0x40425f=>_0x40425f===_0xa0eb3f),_0xccf4bf['bind']('isEnabled')['to'](_0x3c454b,'isEnabled'),_0xccf4bf['on']('execute',()=>{_0x314133['execute']('footnotesStyle',{'value':_0xa0eb3f}),_0x314133['editing']['view']['focus']();}),_0xccf4bf;};}(_0x4c51a8));}(_0x340468),_0x20ff9c=new _0x3107f9(_0x340468['locale'],{'styleGridAriaLabel':_0xb666d1,'styleButtonViews':_0x39d842}),_0x5e841c=_0x340468['commands']['get']('footnotesStart');return _0x20ff9c['startIndexFieldView']['bind']('isEnabled')['to'](_0x5e841c),_0x20ff9c['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5e841c),_0x20ff9c['on']('footnotesListStart',(_0x3c0a56,_0x56342d)=>{_0x340468['execute']('footnotesStart',{'value':_0x56342d['startIndex']});}),_0x20ff9c['delegate']('execute')['to'](_0x4ac1f1),_0x20ff9c;}({'editor':_0x4aa057,'dropdownView':_0x3c6ec9});_0x3c6ec9['panelView']['children']['add'](_0x10beb2);}),_0x3c6ec9;};}(_0x11feee));}['afterInit'](){const {editor:_0x503c50}=this,{t:t}=_0x503c50['locale'],_0x4b869e=_0x503c50['plugins']['get'](_0x3b6576),{defaultPositions:_0xe5bc1a}=_0x12a4c9;_0x4b869e['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x503c50['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1948e4=>{let _0x48da33=_0x1948e4['getFirstPosition']()?.['parent'];return _0x48da33?.['is']('$text')&&(_0x48da33=_0x48da33['parent']),_0x48da33?.['is']('element')?_0x48da33['findAncestor'](_0xcb508c):null;},'positions':[_0xe5bc1a['southArrowNorth'],_0xe5bc1a['southArrowNorthMiddleWest'],_0xe5bc1a['southArrowNorthMiddleEast'],_0xe5bc1a['southArrowNorthWest'],_0xe5bc1a['southArrowNorthEast'],_0xe5bc1a['northArrowSouth'],_0xe5bc1a['northArrowSouthMiddleWest'],_0xe5bc1a['northArrowSouthMiddleEast'],_0xe5bc1a['northArrowSouthWest'],_0xe5bc1a['northArrowSouthEast'],_0xe5bc1a['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1c8394,View as _0x512993,ViewCollection as _0x768e1b,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x512993{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x768e1b();['focusCycler'];constructor(_0x49a5da,{styleButtonViews:_0x181f45,styleGridAriaLabel:_0x10ebf6}){super(_0x49a5da),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x181f45,_0x10ebf6),[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 _0x194d80 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x194d80['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x44aa94=_0x2839e6=>_0x2839e6['stopPropagation']();this['keystrokes']['set']('arrowright',_0x44aa94),this['keystrokes']['set']('arrowleft',_0x44aa94),this['keystrokes']['set']('arrowup',_0x44aa94),this['keystrokes']['set']('arrowdown',_0x44aa94);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x8b07b8,_0x46969f){const _0x222305=new _0x512993(this['locale']);return _0x222305['children']=_0x222305['createCollection'](),_0x222305['children']['addMany'](_0x8b07b8),_0x222305['setTemplate']({'tag':'div','attributes':{'aria-label':_0x46969f,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x222305['children']}),_0x222305['children']['delegate']('execute')['to'](this),_0x222305['focus']=function(){for(const _0x5af69e of this['children'])if(_0x5af69e instanceof _0x1c8394&&_0x5af69e['isOn'])return void _0x5af69e['focus']();this['children']['first']['focus']();},_0x222305['focusTracker']=new rt(),_0x222305['keystrokes']=new nt(),_0x222305['render'](),_0x222305['keystrokes']['listenTo'](_0x222305['element']),this['children']['add'](_0x222305),_0x222305;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x19dbac=this['_createStartIndexPropertyView'](),_0x229be5=[_0x19dbac],_0x29e82d=new it(this['locale'],_0x229be5);return _0x29e82d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x29e82d['buttonView']['bind']('isEnabled')['toMany'](_0x229be5,'isEnabled',(..._0x45afc8)=>_0x45afc8['some'](_0x32ec0d=>_0x32ec0d)),_0x29e82d['buttonView']['on']('change:isEnabled',(_0xa5cc07,_0x483406,_0x5a3340)=>{_0x5a3340||(_0x29e82d['isCollapsed']=!0x0);}),this['children']['add'](_0x29e82d),[_0x19dbac,_0x29e82d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3cf9c6=new et(this['locale'],ot);return _0x3cf9c6['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3cf9c6['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3cf9c6['fieldView']['on']('input',()=>{const _0x34d67a=_0x3cf9c6['fieldView']['element'],_0x567d55=_0x34d67a['valueAsNumber'];Number['isNaN'](_0x567d55)?_0x3cf9c6['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x34d67a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x567d55}):_0x3cf9c6['errorText']=t(_0x567d55<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3cf9c6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x41d0(){var _0x3fb74d=['isPremiumPlugin','5472594KQNuaz','851662iMNQMb','319707eIMAOn','pluginName','276540bBVLJS','110bvCmaw','7jOomFL','isOfficialPlugin','2566473NAKkxj','23090400ISzXdX','112RZxrdK','requires','FootnotesProperties','338576kRRcbj'];_0x41d0=function(){return _0x3fb74d;};return _0x41d0();}var _0x5195d2=_0x2cbe;(function(_0x53ed90,_0x7355e7){var _0x5aba33=_0x2cbe,_0x379127=_0x53ed90();while(!![]){try{var _0x20ef21=parseInt(_0x5aba33(0x1a1))/0x1+parseInt(_0x5aba33(0x19e))/0x2+-parseInt(_0x5aba33(0x1a8))/0x3+-parseInt(_0x5aba33(0x1a4))/0x4*(-parseInt(_0x5aba33(0x1a5))/0x5)+parseInt(_0x5aba33(0x1a0))/0x6*(parseInt(_0x5aba33(0x1a6))/0x7)+parseInt(_0x5aba33(0x19b))/0x8*(parseInt(_0x5aba33(0x1a2))/0x9)+-parseInt(_0x5aba33(0x1a9))/0xa;if(_0x20ef21===_0x7355e7)break;else _0x379127['push'](_0x379127['shift']());}catch(_0x5c1392){_0x379127['push'](_0x379127['shift']());}}}(_0x41d0,0xc017a));function _0x2cbe(_0x432983,_0x227d8e){var _0x41d08f=_0x41d0();return _0x2cbe=function(_0x2cbe58,_0x6442ec){_0x2cbe58=_0x2cbe58-0x19b;var _0x53398a=_0x41d08f[_0x2cbe58];return _0x53398a;},_0x2cbe(_0x432983,_0x227d8e);}import{Plugin as _0x17cb62}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x855b28}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x1cbb18}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x17cb62{static get[_0x5195d2(0x1a3)](){var _0x4c4b23=_0x5195d2;return _0x4c4b23(0x19d);}static get[_0x5195d2(0x19c)](){return[_0x855b28,_0x1cbb18];}static get[_0x5195d2(0x1a7)](){return!0x0;}static get[_0x5195d2(0x19f)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5f26(_0x34add1,_0x3b047c){const _0x20956a=_0x2095();return _0x5f26=function(_0x5f2682,_0x313682){_0x5f2682=_0x5f2682-0x1f4;let _0x57fdd3=_0x20956a[_0x5f2682];return _0x57fdd3;},_0x5f26(_0x34add1,_0x3b047c);}const _0xfba318=_0x5f26;(function(_0x2da277,_0x1d04a9){const _0x374003=_0x5f26,_0x2823c8=_0x2da277();while(!![]){try{const _0x5b609d=parseInt(_0x374003(0x247))/0x1*(parseInt(_0x374003(0x23d))/0x2)+-parseInt(_0x374003(0x24c))/0x3+parseInt(_0x374003(0x246))/0x4*(parseInt(_0x374003(0x1fa))/0x5)+-parseInt(_0x374003(0x239))/0x6+-parseInt(_0x374003(0x219))/0x7+parseInt(_0x374003(0x237))/0x8*(parseInt(_0x374003(0x22d))/0x9)+-parseInt(_0x374003(0x241))/0xa*(parseInt(_0x374003(0x23e))/0xb);if(_0x5b609d===_0x1d04a9)break;else _0x2823c8['push'](_0x2823c8['shift']());}catch(_0x440779){_0x2823c8['push'](_0x2823c8['shift']());}}}(_0x2095,0x24004));function _0x2095(){const _0x1b5256=['_footnotes','splice','has','_sortFootnoteDefinitions','find','_handleRemoveFootnoteReferenceById','footnoteInlineContent','length','107562jdhTnG','_handleFootnoteReferencesChanges','_handleInsertedFootnoteReference','paragraph','before','insert','parent','_insertEmptyFootnotesDefinitionsContainer','config','_footnoteFormatter','singleton','footnoteCounter','reset','createElement','remove','unshift','map','findIndex','differ','reference','438579hEWbTq','_handleFootnoteDefinitionsChanges','_handleFootnotesDefinitionsObjectSync','pluginName','from','setFootnoteFormatter','isPremiumPlugin','isOfficialPlugin','setAttribute','definition','24NjsXlq','add','964128qesSHD','_updateFootnoteRefCounter','registerPostFixer','createRangeOn','2jefDUS','11IseDYa','init','childCount','1167830XwvQba','getChanges','change:data','createPositionBefore','_footnotesDefinitions','4bKGPFl','190298UqmegS','getFootnotesDefinitionsObjectElement','get','root','footnoteId','120969gXqMpS','indexOf','footnotes.multiBlock','high','getFootnote','_handleMovedFootnoteReference','getChildren','push','model','editor','document','rootName','enqueueChange','_footnoteDefsTracker','_ensureFootnotesDefinitionsContainerExists','min','createRangeIn','low','move','append','720645pBpZMf','footnoteRef','getAttribute','_footnoteRefsTracker','FootnotesTracker','$graveyard','getFootnotes','_footnoteDefsContainerTracker','some','set','compareWith','after','listenTo','_handleFootnotesDefinitionsObjectChanges','end','getFootnotesFormatter','footnotesDefinitions','getRootNames','_ensureFootnotesReferencesHaveProperOrder','isEqual','footnoteDefinition','createPositionAt','_updateFootnotesCounters'];_0x2095=function(){return _0x1b5256;};return _0x2095();}import{Plugin as _0x2c9810}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x5acfad}from'./modelelementtracker.js';export class FootnotesTracker extends _0x2c9810{[_0xfba318(0x211)]=[];[_0xfba318(0x245)]=null;[_0xfba318(0x222)]=null;[_0xfba318(0x201)];[_0xfba318(0x1fd)];[_0xfba318(0x259)];static get[_0xfba318(0x230)](){const _0xaa6135=_0xfba318;return _0xaa6135(0x1fe);}static get[_0xfba318(0x234)](){return!0x0;}static get[_0xfba318(0x233)](){return!0x0;}constructor(_0x424dfa){const _0x12b13f=_0xfba318;super(_0x424dfa),this[_0x12b13f(0x201)]=new _0x5acfad(this[_0x12b13f(0x255)][_0x12b13f(0x254)],{'elementName':_0x12b13f(0x20a),'getElementKey':()=>_0x12b13f(0x223)}),this[_0x12b13f(0x1fd)]=new _0x5acfad(this[_0x12b13f(0x255)][_0x12b13f(0x254)],{'elementName':_0x12b13f(0x1fb),'getElementKey':_0x361e56=>_0x361e56[_0x12b13f(0x1fc)](_0x12b13f(0x24b))}),this[_0x12b13f(0x259)]=new _0x5acfad(this[_0x12b13f(0x255)][_0x12b13f(0x254)],{'elementName':_0x12b13f(0x20e),'getElementKey':_0x90989b=>_0x90989b[_0x12b13f(0x1fc)](_0x12b13f(0x24b))});}[_0xfba318(0x23f)](){const _0x20995a=_0xfba318,{editor:_0x1c0a0d}=this,{model:_0x5f50bc,data:_0x2c1168}=_0x1c0a0d;_0x5f50bc[_0x20995a(0x256)][_0x20995a(0x23b)](_0x395ca2=>{const _0x2cbce5=_0x20995a,_0xe9a70b=_0x5f50bc[_0x2cbce5(0x256)][_0x2cbce5(0x22b)][_0x2cbce5(0x242)]();let _0x44c55f=!0x1;return this[_0x2cbce5(0x207)](_0x395ca2,_0xe9a70b)&&(_0x44c55f=!0x0),this[_0x2cbce5(0x22e)](_0x395ca2,_0xe9a70b)&&(_0x44c55f=!0x0),this[_0x2cbce5(0x21a)](_0x395ca2,_0xe9a70b)&&(_0x44c55f=!0x0),this[_0x2cbce5(0x20c)](_0x395ca2)&&(_0x44c55f=!0x0),this[_0x2cbce5(0x22f)](_0x395ca2)&&(_0x44c55f=!0x0),this[_0x2cbce5(0x214)](_0x395ca2)&&(_0x44c55f=!0x0),_0x44c55f;}),this[_0x20995a(0x206)](_0x5f50bc[_0x20995a(0x256)],_0x20995a(0x243),()=>{const _0x2d15ef=_0x20995a;_0x5f50bc[_0x2d15ef(0x258)]({'isUndoable':!0x1},_0x5807b7=>{const _0x581a3b=_0x2d15ef;this[_0x581a3b(0x1f4)](_0x5807b7);});},{'priority':_0x20995a(0x1f7)}),this[_0x20995a(0x206)](_0x2c1168,_0x20995a(0x203),()=>{const _0x3d6f66=_0x20995a;this[_0x3d6f66(0x211)]=[],this[_0x3d6f66(0x201)][_0x3d6f66(0x225)](),this[_0x3d6f66(0x1fd)][_0x3d6f66(0x225)](),this[_0x3d6f66(0x259)][_0x3d6f66(0x225)]();},{'priority':_0x20995a(0x24f)});}[_0xfba318(0x248)](){const _0x4adc60=_0xfba318;return this[_0x4adc60(0x245)];}[_0xfba318(0x250)](_0x1d6de9){const _0x54c132=_0xfba318;return this[_0x54c132(0x211)][_0x54c132(0x215)](_0x242a2e=>_0x242a2e['id']===_0x1d6de9)||null;}[_0xfba318(0x200)](){const _0x2179e4=_0xfba318;return Array[_0x2179e4(0x231)](this[_0x2179e4(0x211)]);}[_0xfba318(0x209)](){const _0x2ddb9d=_0xfba318;return this[_0x2ddb9d(0x222)];}[_0xfba318(0x232)](_0x193d65){const _0x471120=_0xfba318;this[_0x471120(0x222)]=_0x193d65;}[_0xfba318(0x210)](_0x13bbaa,_0x35093f=0x0){const _0xb920ab=_0xfba318;let _0x5b456f=!0x1;for(let _0x11ba93=_0x35093f;_0x11ba93<this[_0xb920ab(0x211)][_0xb920ab(0x218)];_0x11ba93++)this[_0xb920ab(0x23a)](_0x13bbaa,_0x11ba93)&&(_0x5b456f=!0x0);return _0x5b456f;}[_0xfba318(0x220)](_0x477949,_0x36e936){const _0x18f2df=_0xfba318,_0x32e742=_0x477949[_0x18f2df(0x226)](_0x18f2df(0x20a),{});return _0x477949[_0x18f2df(0x1f9)](_0x32e742,_0x36e936),this[_0x18f2df(0x245)]=_0x32e742,_0x32e742;}[_0xfba318(0x1f4)](_0x135244){const _0x223b85=_0xfba318;if(!this[_0x223b85(0x211)][_0x223b85(0x218)]||this[_0x223b85(0x245)])return;const _0x53784d=this[_0x223b85(0x211)][0x0][_0x223b85(0x22c)][_0x223b85(0x24a)],_0x2bbfad=this[_0x223b85(0x220)](_0x135244,_0x53784d);for(const _0x13ff71 of this[_0x223b85(0x211)])_0x13ff71[_0x223b85(0x236)][_0x223b85(0x21f)]||_0x135244[_0x223b85(0x21e)](_0x13ff71[_0x223b85(0x236)],_0x2bbfad,_0x223b85(0x208));this[_0x223b85(0x210)](_0x135244);}[_0xfba318(0x207)](_0x1d6840,_0x3944c9){const _0x196116=_0xfba318;let _0x4c9b3c=!0x1;const {inserted:_0x956532,removed:_0x482b85,moved:_0x2fb99c}=this[_0x196116(0x201)][_0x196116(0x242)](_0x3944c9);if(_0x2fb99c[_0x196116(0x218)]&&(this[_0x196116(0x245)]=_0x2fb99c[0x0]),_0x956532[_0x196116(0x218)]){if(_0x956532[_0x196116(0x218)]>0x1||this[_0x196116(0x245)]&&_0x956532[_0x196116(0x202)](_0x462ee1=>_0x462ee1!==this[_0x196116(0x245)])){const _0x2d02e3=_0x1d6840[_0x196116(0x226)](_0x196116(0x20a),{}),_0x33ef3f=[];this[_0x196116(0x245)]&&_0x33ef3f[_0x196116(0x253)](this[_0x196116(0x245)]),_0x33ef3f[_0x196116(0x253)](..._0x956532),_0x1d6840[_0x196116(0x21e)](_0x2d02e3,_0x33ef3f[0x0],_0x196116(0x21d));for(const _0x20173b of _0x33ef3f)_0x1d6840[_0x196116(0x1f8)](_0x1d6840[_0x196116(0x1f6)](_0x20173b),_0x1d6840[_0x196116(0x20f)](_0x2d02e3,_0x196116(0x208))),_0x1d6840[_0x196116(0x227)](_0x20173b);this[_0x196116(0x245)]=_0x2d02e3,this[_0x196116(0x210)](_0x1d6840),_0x4c9b3c=!0x0;}else this[_0x196116(0x245)]=_0x956532[0x0];}if(_0x482b85[_0x196116(0x218)]&&_0x196116(0x1ff)===this[_0x196116(0x245)]?.[_0x196116(0x24a)][_0x196116(0x257)]){for(const _0x4807ea of this[_0x196116(0x211)])_0x1d6840[_0x196116(0x227)](_0x4807ea[_0x196116(0x22c)]),_0x4c9b3c=!0x0;this[_0x196116(0x211)]=[],this[_0x196116(0x245)]=null;}return _0x4c9b3c;}[_0xfba318(0x22e)](_0x261e81,_0x1fbd49){const _0x47437c=_0xfba318;let _0x18301d=!0x1;const _0x3c1999=this[_0x47437c(0x255)][_0x47437c(0x221)][_0x47437c(0x249)](_0x47437c(0x24e)),{inserted:_0xd9b922,moved:_0x11dab6}=this[_0x47437c(0x259)][_0x47437c(0x242)](_0x1fbd49);for(const _0x14f693 of[..._0x11dab6,..._0xd9b922]){const _0x1f850a=_0x14f693[_0x47437c(0x1fc)](_0x47437c(0x24b)),_0x1b2dc3=this[_0x47437c(0x250)](_0x1f850a);_0x1b2dc3&&(_0x1b2dc3[_0x47437c(0x236)]=_0x14f693),_(_0x261e81,_0x3c1999,_0x14f693)&&(_0x18301d=!0x0);}return _0x18301d;}[_0xfba318(0x21a)](_0x13194c,_0x3f28ea){const _0x4d83d9=_0xfba318;let _0x1f6e6c=!0x1;const {removed:_0x626940,inserted:_0x46c720,moved:_0x577640}=this[_0x4d83d9(0x1fd)][_0x4d83d9(0x242)](_0x3f28ea);for(const _0x3eace6 of _0x626940)this[_0x4d83d9(0x216)](_0x13194c,_0x3eace6)&&(_0x1f6e6c=!0x0);for(const _0xf9ef3a of _0x46c720)this[_0x4d83d9(0x21b)](_0x13194c,_0xf9ef3a)&&(_0x1f6e6c=!0x0);for(const _0x571904 of _0x577640)this[_0x4d83d9(0x251)](_0x13194c,_0x571904)&&(_0x1f6e6c=!0x0);return _0x1f6e6c;}[_0xfba318(0x22f)](_0xf6b48c){const _0x102ac0=_0xfba318;if(!this[_0x102ac0(0x245)])return!0x1;let _0x4ea281=!0x1;if(this[_0x102ac0(0x245)][_0x102ac0(0x240)]!==this[_0x102ac0(0x211)][_0x102ac0(0x218)]){const _0x4d454c=[];for(const _0x25a1cb of this[_0x102ac0(0x245)][_0x102ac0(0x252)]()){const _0x5db0db=_0x25a1cb[_0x102ac0(0x1fc)](_0x102ac0(0x24b));this[_0x102ac0(0x250)](_0x5db0db)||(_0x4d454c[_0x102ac0(0x228)](_0x25a1cb),_0x4ea281=!0x0);}for(const _0x5872ac of _0x4d454c)_0xf6b48c[_0x102ac0(0x227)](_0x5872ac);}const _0x49f37d=new Set(),_0x1bc2c7=[];for(const _0x109176 of this[_0x102ac0(0x245)][_0x102ac0(0x252)]()){const _0x1a60f1=_0x109176[_0x102ac0(0x1fc)](_0x102ac0(0x24b));_0x49f37d[_0x102ac0(0x213)](_0x1a60f1)?(_0x1bc2c7[_0x102ac0(0x228)](_0x109176),_0x4ea281=!0x0):_0x49f37d[_0x102ac0(0x238)](_0x1a60f1);}for(const _0x1215b2 of _0x1bc2c7)_0xf6b48c[_0x102ac0(0x227)](_0x1215b2);return this[_0x102ac0(0x245)][_0x102ac0(0x240)]||(_0xf6b48c[_0x102ac0(0x227)](this[_0x102ac0(0x245)]),this[_0x102ac0(0x245)]=null,_0x4ea281=!0x0),_0x4ea281;}[_0xfba318(0x21b)](_0x3b35ee,_0x57bb64){const _0x24c383=_0xfba318;if(this[_0x24c383(0x211)][_0x24c383(0x215)](_0x57ceb1=>_0x57ceb1[_0x24c383(0x22c)]===_0x57bb64))return!0x1;let _0x4eb6fd=!0x1;const _0xf25e8f=_0x57bb64[_0x24c383(0x1fc)](_0x24c383(0x24b)),_0x430da3=this[_0x24c383(0x211)][_0x24c383(0x22a)](_0x4e3d14=>_0x4e3d14['id']===_0xf25e8f);-0x1!==_0x430da3&&(_0x3b35ee[_0x24c383(0x227)](this[_0x24c383(0x211)][_0x430da3][_0x24c383(0x22c)]),this[_0x24c383(0x211)][_0x24c383(0x212)](_0x430da3,0x1),_0x4eb6fd=!0x0);let _0xc961fe=this[_0x24c383(0x245)]?function(_0x3054c5,_0x387690){const _0x29547f=_0x24c383;for(const _0x10e1e0 of _0x3054c5[_0x29547f(0x252)]())if(_0x10e1e0[_0x29547f(0x1fc)](_0x29547f(0x24b))===_0x387690)return _0x10e1e0;return null;}(this[_0x24c383(0x245)],_0xf25e8f):null;_0xc961fe||(_0xc961fe=_0x3b35ee[_0x24c383(0x226)](_0x24c383(0x20e),{'footnoteId':_0xf25e8f}),this[_0x24c383(0x245)]&&(_0x3b35ee[_0x24c383(0x21e)](_0xc961fe,this[_0x24c383(0x245)],_0x24c383(0x208)),_0x4eb6fd=!0x0));const _0x52166f={'id':_0xf25e8f,'reference':_0x57bb64,'definition':_0xc961fe},_0xc6870c=I(this[_0x24c383(0x255)][_0x24c383(0x254)],this[_0x24c383(0x211)],_0x57bb64);this[_0x24c383(0x211)][_0x24c383(0x212)](_0xc6870c,0x0,_0x52166f);let _0x4d3d60=_0xc6870c;return-0x1!==_0x430da3&&(_0x4d3d60=Math[_0x24c383(0x1f5)](_0xc6870c,_0x430da3)),this[_0x24c383(0x210)](_0x3b35ee,_0x4d3d60)&&(_0x4eb6fd=!0x0),_0x4eb6fd;}[_0xfba318(0x216)](_0x434239,_0x39f72c){const _0x2ebf4e=_0xfba318,_0x4ca831=this[_0x2ebf4e(0x211)][_0x2ebf4e(0x22a)](_0x124777=>_0x124777['id']===_0x39f72c);if(-0x1===_0x4ca831)return!0x1;let _0x1fb254=!0x1;const _0x423aee=this[_0x2ebf4e(0x211)][_0x4ca831];return _0x2ebf4e(0x1ff)!==_0x423aee[_0x2ebf4e(0x236)][_0x2ebf4e(0x24a)][_0x2ebf4e(0x257)]&&(_0x434239[_0x2ebf4e(0x227)](_0x423aee[_0x2ebf4e(0x236)]),_0x1fb254=!0x0),this[_0x2ebf4e(0x211)][_0x2ebf4e(0x212)](_0x4ca831,0x1),this[_0x2ebf4e(0x210)](_0x434239,_0x4ca831)&&(_0x1fb254=!0x0),_0x1fb254;}[_0xfba318(0x251)](_0x376206,_0xd49390){const _0xeb3599=_0xfba318,_0x5cbccc=_0xd49390[_0xeb3599(0x1fc)](_0xeb3599(0x24b)),_0x12364c=this[_0xeb3599(0x211)][_0xeb3599(0x22a)](_0x1320de=>_0x1320de['id']===_0x5cbccc),_0xf6c424=this[_0xeb3599(0x211)][_0x12364c];let _0x49e4ee=!0x1;_0xf6c424[_0xeb3599(0x22c)]=_0xd49390,this[_0xeb3599(0x211)][_0xeb3599(0x212)](_0x12364c,0x1);const _0x2a884e=I(this[_0xeb3599(0x255)][_0xeb3599(0x254)],this[_0xeb3599(0x211)],_0xd49390);return this[_0xeb3599(0x211)][_0xeb3599(0x212)](_0x2a884e,0x0,_0xf6c424),this[_0xeb3599(0x210)](_0x376206,Math[_0xeb3599(0x1f5)](_0x12364c,_0x2a884e))&&(_0x49e4ee=!0x0),_0x49e4ee;}[_0xfba318(0x23a)](_0x286e0a,_0xca7bf3){const _0xcba71=_0xfba318;if(!this[_0xcba71(0x245)])return!0x1;const _0x148aa3=this[_0xcba71(0x211)][_0xca7bf3];let _0x22506f;return _0x22506f=this[_0xcba71(0x222)]?this[_0xcba71(0x222)]({'footnote':_0x148aa3,'container':this[_0xcba71(0x245)],'digits':String(this[_0xcba71(0x211)][_0xcba71(0x218)])[_0xcba71(0x218)],'value':_0xca7bf3+0x1}):String(_0xca7bf3+0x1),_0x148aa3[_0xcba71(0x22c)][_0xcba71(0x1fc)](_0xcba71(0x224))!=_0x22506f&&(_0x286e0a[_0xcba71(0x235)](_0xcba71(0x224),_0x22506f,_0x148aa3[_0xcba71(0x22c)]),!0x0);}[_0xfba318(0x214)](_0x130371){const _0x2912d8=_0xfba318;if(!this[_0x2912d8(0x245)]||this[_0x2912d8(0x211)][_0x2912d8(0x218)]<0x2)return!0x1;if(function(_0x4e404b,_0x3120cb){const _0x194360=_0x2912d8;if(_0x4e404b[_0x194360(0x218)]!==_0x3120cb[_0x194360(0x218)])return!0x1;for(let _0x7afaee=0x0;_0x7afaee<_0x4e404b[_0x194360(0x218)];_0x7afaee++)if(_0x4e404b[_0x7afaee]!==_0x3120cb[_0x7afaee])return!0x1;return!0x0;}(this[_0x2912d8(0x211)][_0x2912d8(0x229)](_0x3c7892=>_0x3c7892['id']),Array[_0x2912d8(0x231)](this[_0x2912d8(0x245)][_0x2912d8(0x252)]())[_0x2912d8(0x229)](_0x338451=>_0x338451[_0x2912d8(0x1fc)](_0x2912d8(0x24b)))))return!0x1;let _0x183902=!0x1;for(let _0x234013=0x0;_0x234013<this[_0x2912d8(0x211)][_0x2912d8(0x218)];_0x234013++){const _0x9c9544=this[_0x2912d8(0x211)][_0x234013],_0x235f4e=_0x130371[_0x2912d8(0x244)](_0x9c9544[_0x2912d8(0x236)]),_0x163407=_0x130371[_0x2912d8(0x20f)](this[_0x2912d8(0x245)],_0x234013);_0x235f4e[_0x2912d8(0x20d)](_0x163407)||(_0x130371[_0x2912d8(0x1f8)](_0x130371[_0x2912d8(0x23c)](_0x9c9544[_0x2912d8(0x236)]),_0x163407),_0x183902=!0x0);}return _0x183902;}[_0xfba318(0x20c)](_0x3a0037){const _0x37ea69=_0xfba318;if(!this[_0x37ea69(0x211)][_0x37ea69(0x218)])return!0x1;const {model:_0x859e83}=this[_0x37ea69(0x255)];let _0x58f5ec=!0x1;for(let _0x3bab77=0x0;_0x3bab77<this[_0x37ea69(0x211)][_0x37ea69(0x218)]-0x1;_0x3bab77++){const _0x2ad6e9=this[_0x37ea69(0x211)][_0x3bab77],_0x36f620=this[_0x37ea69(0x211)][_0x3bab77+0x1],_0x2108ef=_0x859e83[_0x37ea69(0x244)](_0x2ad6e9[_0x37ea69(0x22c)]),_0x157f88=_0x859e83[_0x37ea69(0x244)](_0x36f620[_0x37ea69(0x22c)]);_0x37ea69(0x205)===_0x2108ef[_0x37ea69(0x204)](_0x157f88)&&(this[_0x37ea69(0x251)](_0x3a0037,_0x2ad6e9[_0x37ea69(0x22c)]),_0x3bab77=-0x1,_0x58f5ec=!0x0);}return _0x58f5ec;}}function _(_0x538115,_0x214aba,_0x2f0482){const _0x697fc3=_0xfba318;if(_0x2f0482[_0x697fc3(0x240)])return!0x1;const _0x24bc85=_0x214aba?_0x697fc3(0x21c):_0x697fc3(0x217);return _0x538115[_0x697fc3(0x21e)](_0x538115[_0x697fc3(0x226)](_0x24bc85),_0x2f0482),!0x0;}function I(_0x170f1e,_0x2ce294,_0x15ce18){const _0xf7b641=_0xfba318;if(0x0===_0x2ce294[_0xf7b641(0x218)])return 0x0;const _0x488014=_0x170f1e[_0xf7b641(0x244)](_0x15ce18);for(let _0x42cc39=0x0;_0x42cc39<_0x2ce294[_0xf7b641(0x218)];_0x42cc39++){const _0x5e8799=_0x2ce294[_0x42cc39],_0x5d7321=_0x170f1e[_0xf7b641(0x244)](_0x5e8799[_0xf7b641(0x22c)]);if(_0xf7b641(0x21d)===_0x488014[_0xf7b641(0x204)](_0x5d7321))return _0x42cc39;}const _0x3e31e6=_0x15ce18[_0xf7b641(0x24a)];let _0x222881=-0x1;for(let _0x496175=_0x2ce294[_0xf7b641(0x218)]-0x1;_0x496175>=0x0;_0x496175--)if(_0x2ce294[_0x496175][_0xf7b641(0x22c)][_0xf7b641(0x24a)]===_0x3e31e6){_0x222881=_0x496175;break;}if(-0x1!==_0x222881)return _0x222881+0x1;const _0x544e31=_0x170f1e[_0xf7b641(0x256)][_0xf7b641(0x20b)](),_0x4eefbf=_0x544e31[_0xf7b641(0x24d)](_0x3e31e6[_0xf7b641(0x257)]),_0x3f91ce=_0x544e31[_0x4eefbf+0x1];if(_0x3f91ce){for(let _0x5b0ac2=0x0;_0x5b0ac2<_0x2ce294[_0xf7b641(0x218)];_0x5b0ac2++)if(_0x2ce294[_0x5b0ac2][_0xf7b641(0x22c)][_0xf7b641(0x24a)][_0xf7b641(0x257)]===_0x3f91ce)return _0x5b0ac2;}return _0x2ce294[_0xf7b641(0x218)];}
|
|
23
|
+
const _0x56f5b0=_0x5c22;function _0x2061(){const _0x439ba9=['_footnoteDefsTracker','end','_sortFootnoteDefinitions','getAttribute','registerPostFixer','getFootnotes','47021nAESuo','getRootNames','init','createPositionAt','push','footnoteId','375330QNUtfL','FootnotesTracker','_handleFootnotesDefinitionsObjectChanges','low','createRangeOn','getFootnotesFormatter','paragraph','length','getFootnotesDefinitionsObjectElement','definition','_footnotes','map','change:data','_handleFootnoteDefinitionsChanges','_handleRemoveFootnoteReferenceById','insert','parent','add','append','footnotesDefinitions','getChanges','setFootnoteFormatter','_updateFootnotesCounters','isPremiumPlugin','631694hRZrYB','pluginName','enqueueChange','405HxLBUf','120wPKkRH','unshift','createRangeIn','set','has','isOfficialPlugin','findIndex','document','_updateFootnoteRefCounter','differ','363eYiHUY','compareWith','listenTo','rootName','root','262047pWGYqn','_footnoteDefsContainerTracker','4bqtIoR','_ensureFootnotesDefinitionsContainerExists','23196MuoJDM','_ensureFootnotesReferencesHaveProperOrder','getChildren','remove','createPositionBefore','setAttribute','high','editor','singleton','indexOf','_footnoteRefsTracker','isEqual','24uqsyFB','reference','_handleFootnotesDefinitionsObjectSync','config','666CjKtSs','footnotes.multiBlock','1552149QuwOji','model','footnoteRef','getFootnote','footnoteDefinition','reset','footnoteCounter','$graveyard','_insertEmptyFootnotesDefinitionsContainer','min','before','get','splice','from','some','childCount','createElement','move','_footnoteFormatter','find','106232WrJEgw','_handleMovedFootnoteReference','_handleFootnoteReferencesChanges','_handleInsertedFootnoteReference','_footnotesDefinitions','after','footnoteInlineContent'];_0x2061=function(){return _0x439ba9;};return _0x2061();}(function(_0x16d7f8,_0x2815ca){const _0x1e4373=_0x5c22,_0x53fac4=_0x16d7f8();while(!![]){try{const _0x4e46c0=-parseInt(_0x1e4373(0x12b))/0x1*(-parseInt(_0x1e4373(0x12d))/0x2)+parseInt(_0x1e4373(0x141))/0x3+-parseInt(_0x1e4373(0x12f))/0x4*(parseInt(_0x1e4373(0x11b))/0x5)+parseInt(_0x1e4373(0x13b))/0x6*(parseInt(_0x1e4373(0x118))/0x7)+-parseInt(_0x1e4373(0x155))/0x8*(-parseInt(_0x1e4373(0x13f))/0x9)+parseInt(_0x1e4373(0x168))/0xa*(-parseInt(_0x1e4373(0x126))/0xb)+parseInt(_0x1e4373(0x11c))/0xc*(-parseInt(_0x1e4373(0x162))/0xd);if(_0x4e46c0===_0x2815ca)break;else _0x53fac4['push'](_0x53fac4['shift']());}catch(_0x10d9f8){_0x53fac4['push'](_0x53fac4['shift']());}}}(_0x2061,0x9c665));import{Plugin as _0x12ffdf}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x2135c1}from'./modelelementtracker.js';function _0x5c22(_0x8136e4,_0x2ce7dc){const _0x2061b6=_0x2061();return _0x5c22=function(_0x5c22c0,_0x1097a3){_0x5c22c0=_0x5c22c0-0x10f;let _0x95677d=_0x2061b6[_0x5c22c0];return _0x95677d;},_0x5c22(_0x8136e4,_0x2ce7dc);}export class FootnotesTracker extends _0x12ffdf{[_0x56f5b0(0x172)]=[];[_0x56f5b0(0x159)]=null;[_0x56f5b0(0x153)]=null;[_0x56f5b0(0x12c)];[_0x56f5b0(0x139)];[_0x56f5b0(0x15c)];static get[_0x56f5b0(0x119)](){const _0x3bc377=_0x56f5b0;return _0x3bc377(0x169);}static get[_0x56f5b0(0x121)](){return!0x0;}static get[_0x56f5b0(0x117)](){return!0x0;}constructor(_0x1833b3){const _0x31e1b3=_0x56f5b0;super(_0x1833b3),this[_0x31e1b3(0x12c)]=new _0x2135c1(this[_0x31e1b3(0x136)][_0x31e1b3(0x142)],{'elementName':_0x31e1b3(0x113),'getElementKey':()=>_0x31e1b3(0x137)}),this[_0x31e1b3(0x139)]=new _0x2135c1(this[_0x31e1b3(0x136)][_0x31e1b3(0x142)],{'elementName':_0x31e1b3(0x143),'getElementKey':_0x452ad9=>_0x452ad9[_0x31e1b3(0x15f)](_0x31e1b3(0x167))}),this[_0x31e1b3(0x15c)]=new _0x2135c1(this[_0x31e1b3(0x136)][_0x31e1b3(0x142)],{'elementName':_0x31e1b3(0x145),'getElementKey':_0xff07fc=>_0xff07fc[_0x31e1b3(0x15f)](_0x31e1b3(0x167))});}[_0x56f5b0(0x164)](){const _0xf7be5d=_0x56f5b0,{editor:_0x3bb4af}=this,{model:_0x45b7b0,data:_0x629be6}=_0x3bb4af;_0x45b7b0[_0xf7be5d(0x123)][_0xf7be5d(0x160)](_0x2dd414=>{const _0x146cd7=_0xf7be5d,_0x3621db=_0x45b7b0[_0x146cd7(0x123)][_0x146cd7(0x125)][_0x146cd7(0x114)]();let _0x580cdc=!0x1;return this[_0x146cd7(0x16a)](_0x2dd414,_0x3621db)&&(_0x580cdc=!0x0),this[_0x146cd7(0x175)](_0x2dd414,_0x3621db)&&(_0x580cdc=!0x0),this[_0x146cd7(0x157)](_0x2dd414,_0x3621db)&&(_0x580cdc=!0x0),this[_0x146cd7(0x130)](_0x2dd414)&&(_0x580cdc=!0x0),this[_0x146cd7(0x13d)](_0x2dd414)&&(_0x580cdc=!0x0),this[_0x146cd7(0x15e)](_0x2dd414)&&(_0x580cdc=!0x0),_0x580cdc;}),this[_0xf7be5d(0x128)](_0x45b7b0[_0xf7be5d(0x123)],_0xf7be5d(0x174),()=>{const _0x5202af=_0xf7be5d;_0x45b7b0[_0x5202af(0x11a)]({'isUndoable':!0x1},_0x8b19ba=>{const _0x4575b2=_0x5202af;this[_0x4575b2(0x12e)](_0x8b19ba);});},{'priority':_0xf7be5d(0x16b)}),this[_0xf7be5d(0x128)](_0x629be6,_0xf7be5d(0x11f),()=>{const _0x13ce0a=_0xf7be5d;this[_0x13ce0a(0x172)]=[],this[_0x13ce0a(0x12c)][_0x13ce0a(0x146)](),this[_0x13ce0a(0x139)][_0x13ce0a(0x146)](),this[_0x13ce0a(0x15c)][_0x13ce0a(0x146)]();},{'priority':_0xf7be5d(0x135)});}[_0x56f5b0(0x170)](){const _0x289c24=_0x56f5b0;return this[_0x289c24(0x159)];}[_0x56f5b0(0x144)](_0x41552e){const _0x122c99=_0x56f5b0;return this[_0x122c99(0x172)][_0x122c99(0x154)](_0x505978=>_0x505978['id']===_0x41552e)||null;}[_0x56f5b0(0x161)](){const _0x403f90=_0x56f5b0;return Array[_0x403f90(0x14e)](this[_0x403f90(0x172)]);}[_0x56f5b0(0x16d)](){const _0xb2f70d=_0x56f5b0;return this[_0xb2f70d(0x153)];}[_0x56f5b0(0x115)](_0xf97d5a){const _0x6f55eb=_0x56f5b0;this[_0x6f55eb(0x153)]=_0xf97d5a;}[_0x56f5b0(0x116)](_0x5aad83,_0x2c2064=0x0){const _0x32cbe3=_0x56f5b0;let _0x177bc3=!0x1;for(let _0x3d89fa=_0x2c2064;_0x3d89fa<this[_0x32cbe3(0x172)][_0x32cbe3(0x16f)];_0x3d89fa++)this[_0x32cbe3(0x124)](_0x5aad83,_0x3d89fa)&&(_0x177bc3=!0x0);return _0x177bc3;}[_0x56f5b0(0x149)](_0x37b684,_0x10b6b8){const _0x440360=_0x56f5b0,_0x4d37d1=_0x37b684[_0x440360(0x151)](_0x440360(0x113),{});return _0x37b684[_0x440360(0x112)](_0x4d37d1,_0x10b6b8),this[_0x440360(0x159)]=_0x4d37d1,_0x4d37d1;}[_0x56f5b0(0x12e)](_0x511548){const _0x461934=_0x56f5b0;if(!this[_0x461934(0x172)][_0x461934(0x16f)]||this[_0x461934(0x159)])return;const _0x3b3e6c=this[_0x461934(0x172)][0x0][_0x461934(0x13c)][_0x461934(0x12a)],_0x3fdcbe=this[_0x461934(0x149)](_0x511548,_0x3b3e6c);for(const _0x36b58a of this[_0x461934(0x172)])_0x36b58a[_0x461934(0x171)][_0x461934(0x110)]||_0x511548[_0x461934(0x10f)](_0x36b58a[_0x461934(0x171)],_0x3fdcbe,_0x461934(0x15d));this[_0x461934(0x116)](_0x511548);}[_0x56f5b0(0x16a)](_0x1831ca,_0x4ca449){const _0x37b934=_0x56f5b0;let _0x1fa7ce=!0x1;const {inserted:_0x3cda32,removed:_0xf7da07,moved:_0x327258}=this[_0x37b934(0x12c)][_0x37b934(0x114)](_0x4ca449);if(_0x327258[_0x37b934(0x16f)]&&(this[_0x37b934(0x159)]=_0x327258[0x0]),_0x3cda32[_0x37b934(0x16f)]){if(_0x3cda32[_0x37b934(0x16f)]>0x1||this[_0x37b934(0x159)]&&_0x3cda32[_0x37b934(0x14f)](_0x371e8a=>_0x371e8a!==this[_0x37b934(0x159)])){const _0x272aea=_0x1831ca[_0x37b934(0x151)](_0x37b934(0x113),{}),_0x2b6040=[];this[_0x37b934(0x159)]&&_0x2b6040[_0x37b934(0x166)](this[_0x37b934(0x159)]),_0x2b6040[_0x37b934(0x166)](..._0x3cda32),_0x1831ca[_0x37b934(0x10f)](_0x272aea,_0x2b6040[0x0],_0x37b934(0x14b));for(const _0x1f1c95 of _0x2b6040)_0x1831ca[_0x37b934(0x152)](_0x1831ca[_0x37b934(0x11e)](_0x1f1c95),_0x1831ca[_0x37b934(0x165)](_0x272aea,_0x37b934(0x15d))),_0x1831ca[_0x37b934(0x132)](_0x1f1c95);this[_0x37b934(0x159)]=_0x272aea,this[_0x37b934(0x116)](_0x1831ca),_0x1fa7ce=!0x0;}else this[_0x37b934(0x159)]=_0x3cda32[0x0];}if(_0xf7da07[_0x37b934(0x16f)]&&_0x37b934(0x148)===this[_0x37b934(0x159)]?.[_0x37b934(0x12a)][_0x37b934(0x129)]){for(const _0x104db5 of this[_0x37b934(0x172)])_0x1831ca[_0x37b934(0x132)](_0x104db5[_0x37b934(0x13c)]),_0x1fa7ce=!0x0;this[_0x37b934(0x172)]=[],this[_0x37b934(0x159)]=null;}return _0x1fa7ce;}[_0x56f5b0(0x175)](_0x5de76a,_0x1ba16b){const _0x2e303a=_0x56f5b0;let _0x54eafd=!0x1;const _0x13d327=this[_0x2e303a(0x136)][_0x2e303a(0x13e)][_0x2e303a(0x14c)](_0x2e303a(0x140)),{inserted:_0x115851,moved:_0x2a561b}=this[_0x2e303a(0x15c)][_0x2e303a(0x114)](_0x1ba16b);for(const _0x4c2456 of[..._0x2a561b,..._0x115851]){const _0x2c2872=_0x4c2456[_0x2e303a(0x15f)](_0x2e303a(0x167)),_0x5433bf=this[_0x2e303a(0x144)](_0x2c2872);_0x5433bf&&(_0x5433bf[_0x2e303a(0x171)]=_0x4c2456),_(_0x5de76a,_0x13d327,_0x4c2456)&&(_0x54eafd=!0x0);}return _0x54eafd;}[_0x56f5b0(0x157)](_0x12a3b9,_0x3ed216){const _0x5429f7=_0x56f5b0;let _0x1f09e9=!0x1;const {removed:_0x34b0df,inserted:_0x39ca48,moved:_0x2f8425}=this[_0x5429f7(0x139)][_0x5429f7(0x114)](_0x3ed216);for(const _0x1313de of _0x34b0df)this[_0x5429f7(0x176)](_0x12a3b9,_0x1313de)&&(_0x1f09e9=!0x0);for(const _0x1e885b of _0x39ca48)this[_0x5429f7(0x158)](_0x12a3b9,_0x1e885b)&&(_0x1f09e9=!0x0);for(const _0x29f7b4 of _0x2f8425)this[_0x5429f7(0x156)](_0x12a3b9,_0x29f7b4)&&(_0x1f09e9=!0x0);return _0x1f09e9;}[_0x56f5b0(0x13d)](_0x2ab9bd){const _0x347e92=_0x56f5b0;if(!this[_0x347e92(0x159)])return!0x1;let _0xedb589=!0x1;if(this[_0x347e92(0x159)][_0x347e92(0x150)]!==this[_0x347e92(0x172)][_0x347e92(0x16f)]){const _0x3346f2=[];for(const _0x2bc35b of this[_0x347e92(0x159)][_0x347e92(0x131)]()){const _0x51ef47=_0x2bc35b[_0x347e92(0x15f)](_0x347e92(0x167));this[_0x347e92(0x144)](_0x51ef47)||(_0x3346f2[_0x347e92(0x11d)](_0x2bc35b),_0xedb589=!0x0);}for(const _0x1179b6 of _0x3346f2)_0x2ab9bd[_0x347e92(0x132)](_0x1179b6);}const _0x10e2f5=new Set(),_0x125e42=[];for(const _0x312e34 of this[_0x347e92(0x159)][_0x347e92(0x131)]()){const _0x12cc39=_0x312e34[_0x347e92(0x15f)](_0x347e92(0x167));_0x10e2f5[_0x347e92(0x120)](_0x12cc39)?(_0x125e42[_0x347e92(0x11d)](_0x312e34),_0xedb589=!0x0):_0x10e2f5[_0x347e92(0x111)](_0x12cc39);}for(const _0x1c870b of _0x125e42)_0x2ab9bd[_0x347e92(0x132)](_0x1c870b);return this[_0x347e92(0x159)][_0x347e92(0x150)]||(_0x2ab9bd[_0x347e92(0x132)](this[_0x347e92(0x159)]),this[_0x347e92(0x159)]=null,_0xedb589=!0x0),_0xedb589;}[_0x56f5b0(0x158)](_0x31706f,_0x1ea50b){const _0x4b8e30=_0x56f5b0;if(this[_0x4b8e30(0x172)][_0x4b8e30(0x154)](_0x370d35=>_0x370d35[_0x4b8e30(0x13c)]===_0x1ea50b))return!0x1;let _0x4ff49d=!0x1;const _0x39acd6=_0x1ea50b[_0x4b8e30(0x15f)](_0x4b8e30(0x167)),_0x492b7b=this[_0x4b8e30(0x172)][_0x4b8e30(0x122)](_0x4eec20=>_0x4eec20['id']===_0x39acd6);-0x1!==_0x492b7b&&(_0x31706f[_0x4b8e30(0x132)](this[_0x4b8e30(0x172)][_0x492b7b][_0x4b8e30(0x13c)]),this[_0x4b8e30(0x172)][_0x4b8e30(0x14d)](_0x492b7b,0x1),_0x4ff49d=!0x0);let _0x5dbef4=this[_0x4b8e30(0x159)]?function(_0x33b780,_0x2a12b6){const _0x30668e=_0x4b8e30;for(const _0x31c9f5 of _0x33b780[_0x30668e(0x131)]())if(_0x31c9f5[_0x30668e(0x15f)](_0x30668e(0x167))===_0x2a12b6)return _0x31c9f5;return null;}(this[_0x4b8e30(0x159)],_0x39acd6):null;_0x5dbef4||(_0x5dbef4=_0x31706f[_0x4b8e30(0x151)](_0x4b8e30(0x145),{'footnoteId':_0x39acd6}),this[_0x4b8e30(0x159)]&&(_0x31706f[_0x4b8e30(0x10f)](_0x5dbef4,this[_0x4b8e30(0x159)],_0x4b8e30(0x15d)),_0x4ff49d=!0x0));const _0x3fb4c8={'id':_0x39acd6,'reference':_0x1ea50b,'definition':_0x5dbef4},_0x4c9860=I(this[_0x4b8e30(0x136)][_0x4b8e30(0x142)],this[_0x4b8e30(0x172)],_0x1ea50b);this[_0x4b8e30(0x172)][_0x4b8e30(0x14d)](_0x4c9860,0x0,_0x3fb4c8);let _0xa191a5=_0x4c9860;return-0x1!==_0x492b7b&&(_0xa191a5=Math[_0x4b8e30(0x14a)](_0x4c9860,_0x492b7b)),this[_0x4b8e30(0x116)](_0x31706f,_0xa191a5)&&(_0x4ff49d=!0x0),_0x4ff49d;}[_0x56f5b0(0x176)](_0x587181,_0x52797f){const _0x311535=_0x56f5b0,_0x580c28=this[_0x311535(0x172)][_0x311535(0x122)](_0x462d6a=>_0x462d6a['id']===_0x52797f);if(-0x1===_0x580c28)return!0x1;let _0x4b4bae=!0x1;const _0x30119a=this[_0x311535(0x172)][_0x580c28];return _0x311535(0x148)!==_0x30119a[_0x311535(0x171)][_0x311535(0x12a)][_0x311535(0x129)]&&(_0x587181[_0x311535(0x132)](_0x30119a[_0x311535(0x171)]),_0x4b4bae=!0x0),this[_0x311535(0x172)][_0x311535(0x14d)](_0x580c28,0x1),this[_0x311535(0x116)](_0x587181,_0x580c28)&&(_0x4b4bae=!0x0),_0x4b4bae;}[_0x56f5b0(0x156)](_0x2704ea,_0x3fe22d){const _0x18511e=_0x56f5b0,_0xd5da=_0x3fe22d[_0x18511e(0x15f)](_0x18511e(0x167)),_0x15ff2a=this[_0x18511e(0x172)][_0x18511e(0x122)](_0x507271=>_0x507271['id']===_0xd5da),_0x69e1a7=this[_0x18511e(0x172)][_0x15ff2a];let _0x4ba4b5=!0x1;_0x69e1a7[_0x18511e(0x13c)]=_0x3fe22d,this[_0x18511e(0x172)][_0x18511e(0x14d)](_0x15ff2a,0x1);const _0xad5eef=I(this[_0x18511e(0x136)][_0x18511e(0x142)],this[_0x18511e(0x172)],_0x3fe22d);return this[_0x18511e(0x172)][_0x18511e(0x14d)](_0xad5eef,0x0,_0x69e1a7),this[_0x18511e(0x116)](_0x2704ea,Math[_0x18511e(0x14a)](_0x15ff2a,_0xad5eef))&&(_0x4ba4b5=!0x0),_0x4ba4b5;}[_0x56f5b0(0x124)](_0x404a1c,_0x300d0b){const _0x18c349=_0x56f5b0;if(!this[_0x18c349(0x159)])return!0x1;const _0x582c4a=this[_0x18c349(0x172)][_0x300d0b];let _0x3ab2ff;return _0x3ab2ff=this[_0x18c349(0x153)]?this[_0x18c349(0x153)]({'footnote':_0x582c4a,'container':this[_0x18c349(0x159)],'digits':String(this[_0x18c349(0x172)][_0x18c349(0x16f)])[_0x18c349(0x16f)],'value':_0x300d0b+0x1}):String(_0x300d0b+0x1),_0x582c4a[_0x18c349(0x13c)][_0x18c349(0x15f)](_0x18c349(0x147))!=_0x3ab2ff&&(_0x404a1c[_0x18c349(0x134)](_0x18c349(0x147),_0x3ab2ff,_0x582c4a[_0x18c349(0x13c)]),!0x0);}[_0x56f5b0(0x15e)](_0x423866){const _0x2f9b2e=_0x56f5b0;if(!this[_0x2f9b2e(0x159)]||this[_0x2f9b2e(0x172)][_0x2f9b2e(0x16f)]<0x2)return!0x1;if(function(_0x58b6f9,_0x10b1ed){const _0x1eb7f1=_0x2f9b2e;if(_0x58b6f9[_0x1eb7f1(0x16f)]!==_0x10b1ed[_0x1eb7f1(0x16f)])return!0x1;for(let _0x148835=0x0;_0x148835<_0x58b6f9[_0x1eb7f1(0x16f)];_0x148835++)if(_0x58b6f9[_0x148835]!==_0x10b1ed[_0x148835])return!0x1;return!0x0;}(this[_0x2f9b2e(0x172)][_0x2f9b2e(0x173)](_0x288dd4=>_0x288dd4['id']),Array[_0x2f9b2e(0x14e)](this[_0x2f9b2e(0x159)][_0x2f9b2e(0x131)]())[_0x2f9b2e(0x173)](_0x4a4a78=>_0x4a4a78[_0x2f9b2e(0x15f)](_0x2f9b2e(0x167)))))return!0x1;let _0x4a45c4=!0x1;for(let _0x161192=0x0;_0x161192<this[_0x2f9b2e(0x172)][_0x2f9b2e(0x16f)];_0x161192++){const _0xf9ec1e=this[_0x2f9b2e(0x172)][_0x161192],_0x5882e1=_0x423866[_0x2f9b2e(0x133)](_0xf9ec1e[_0x2f9b2e(0x171)]),_0x466e8e=_0x423866[_0x2f9b2e(0x165)](this[_0x2f9b2e(0x159)],_0x161192);_0x5882e1[_0x2f9b2e(0x13a)](_0x466e8e)||(_0x423866[_0x2f9b2e(0x152)](_0x423866[_0x2f9b2e(0x16c)](_0xf9ec1e[_0x2f9b2e(0x171)]),_0x466e8e),_0x4a45c4=!0x0);}return _0x4a45c4;}[_0x56f5b0(0x130)](_0x5712ad){const _0x2377a5=_0x56f5b0;if(!this[_0x2377a5(0x172)][_0x2377a5(0x16f)])return!0x1;const {model:_0x182c22}=this[_0x2377a5(0x136)];let _0x13bfef=!0x1;for(let _0x16fcd5=0x0;_0x16fcd5<this[_0x2377a5(0x172)][_0x2377a5(0x16f)]-0x1;_0x16fcd5++){const _0x3201ac=this[_0x2377a5(0x172)][_0x16fcd5],_0x1decee=this[_0x2377a5(0x172)][_0x16fcd5+0x1],_0x4266f2=_0x182c22[_0x2377a5(0x133)](_0x3201ac[_0x2377a5(0x13c)]),_0x5db289=_0x182c22[_0x2377a5(0x133)](_0x1decee[_0x2377a5(0x13c)]);_0x2377a5(0x15a)===_0x4266f2[_0x2377a5(0x127)](_0x5db289)&&(this[_0x2377a5(0x156)](_0x5712ad,_0x3201ac[_0x2377a5(0x13c)]),_0x16fcd5=-0x1,_0x13bfef=!0x0);}return _0x13bfef;}}function _(_0xedbc82,_0x14ab85,_0x317a4e){const _0x2831a0=_0x56f5b0;if(_0x317a4e[_0x2831a0(0x150)])return!0x1;const _0x137c5d=_0x14ab85?_0x2831a0(0x16e):_0x2831a0(0x15b);return _0xedbc82[_0x2831a0(0x10f)](_0xedbc82[_0x2831a0(0x151)](_0x137c5d),_0x317a4e),!0x0;}function I(_0x27a08c,_0x368ad7,_0x198695){const _0x4d7dfc=_0x56f5b0;if(0x0===_0x368ad7[_0x4d7dfc(0x16f)])return 0x0;const _0x46327b=_0x27a08c[_0x4d7dfc(0x133)](_0x198695);for(let _0x29edad=0x0;_0x29edad<_0x368ad7[_0x4d7dfc(0x16f)];_0x29edad++){const _0x14fb76=_0x368ad7[_0x29edad],_0x16dde3=_0x27a08c[_0x4d7dfc(0x133)](_0x14fb76[_0x4d7dfc(0x13c)]);if(_0x4d7dfc(0x14b)===_0x46327b[_0x4d7dfc(0x127)](_0x16dde3))return _0x29edad;}const _0x8c8745=_0x198695[_0x4d7dfc(0x12a)];let _0x376888=-0x1;for(let _0x1b4f99=_0x368ad7[_0x4d7dfc(0x16f)]-0x1;_0x1b4f99>=0x0;_0x1b4f99--)if(_0x368ad7[_0x1b4f99][_0x4d7dfc(0x13c)][_0x4d7dfc(0x12a)]===_0x8c8745){_0x376888=_0x1b4f99;break;}if(-0x1!==_0x376888)return _0x376888+0x1;const _0x3f055e=_0x27a08c[_0x4d7dfc(0x123)][_0x4d7dfc(0x163)](),_0x1cf0b7=_0x3f055e[_0x4d7dfc(0x138)](_0x8c8745[_0x4d7dfc(0x129)]),_0x637387=_0x3f055e[_0x1cf0b7+0x1];if(_0x637387){for(let _0x204f75=0x0;_0x204f75<_0x368ad7[_0x4d7dfc(0x16f)];_0x204f75++)if(_0x368ad7[_0x204f75][_0x4d7dfc(0x13c)][_0x4d7dfc(0x12a)][_0x4d7dfc(0x129)]===_0x637387)return _0x204f75;}return _0x368ad7[_0x4d7dfc(0x16f)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1bc7bf,MenuBarMenuListItemButtonView as _0x3d66d7}from'ckeditor5/src/ui.js';import{Plugin as _0xa94d42}from'ckeditor5/src/core.js';import{IconFootnote as _0x2a8195}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0xa94d42{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x344f2f}=this,{componentFactory:_0x579495}=_0x344f2f['ui'];_0x579495['add']('insertFootnote',E(_0x344f2f,_0x1bc7bf)),_0x579495['add']('menuBar:insertFootnote',E(_0x344f2f,_0x3d66d7)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ed100=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x340202;for(const _0x5d41c1 in _0x5ed100){const _0xe638ff=_0x5d41c1,_0x377648=_0x5ed100[_0xe638ff];if('footnotesLicenseKeyValid'==_0x377648||'footnotesLicenseKeyInvalid'==_0x377648||'footnotesLicenseKeyExpired'==_0x377648||'footnotesLicenseKeyDomainLimit'==_0x377648||'footnotesLicenseKeyNotAllowed'==_0x377648||'footnotesLicenseKeyEvaluationLimit'==_0x377648||'footnotesLicenseKeyUsageLimit'==_0x377648){delete _0x5ed100[_0xe638ff],_0x340202=_0x377648,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x340202&&_0x5ed100['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x340202&&_0x5ed100['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x340202&&_0x5ed100['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x340202&&_0x5ed100['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x340202&&_0x5ed100['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x340202&&_0x5ed100['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x21a1e1,_0x55dbd8){const _0x3f11ca=_0x21a1e1['commands']['get']('insertFootnote');return _0x5a6c8e=>{const {t:t}=_0x5a6c8e,_0x420059=new _0x55dbd8(_0x5a6c8e),_0x564db5=_0x420059 instanceof _0x3d66d7;return _0x420059['bind']('isEnabled')['to'](_0x3f11ca,'isEnabled'),_0x420059['set']({'label':t(_0x564db5?'Footnote':'Insert\x20footnote'),'icon':_0x2a8195,'tooltip':!0x0}),_0x420059['on']('execute',()=>{_0x3f11ca['execute'](),_0x21a1e1['editing']['view']['focus']();}),_0x420059;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x577f95,_0x28a251){var _0x311ff1=_0x18fb,_0x48f8d9=_0x577f95();while(!![]){try{var _0x5c2ab9=parseInt(_0x311ff1(0x1e3))/0x1+parseInt(_0x311ff1(0x1e1))/0x2*(-parseInt(_0x311ff1(0x1e2))/0x3)+-parseInt(_0x311ff1(0x1dd))/0x4*(parseInt(_0x311ff1(0x1de))/0x5)+parseInt(_0x311ff1(0x1e0))/0x6*(-parseInt(_0x311ff1(0x1e4))/0x7)+-parseInt(_0x311ff1(0x1e7))/0x8+parseInt(_0x311ff1(0x1e5))/0x9*(-parseInt(_0x311ff1(0x1e6))/0xa)+parseInt(_0x311ff1(0x1df))/0xb;if(_0x5c2ab9===_0x28a251)break;else _0x48f8d9['push'](_0x48f8d9['shift']());}catch(_0x435f56){_0x48f8d9['push'](_0x48f8d9['shift']());}}}(_0x2d07,0xab18d));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';function _0x2d07(){var _0x3e5cfd=['21976aeMhSe','745XnyuVU','18188203FawEmH','6aRkphn','38elfKlV','4473ESxWmC','1154363jlDMvh','845341UNzUuT','295794rdTwUQ','20zmpyIc','8588744QZJhyu'];_0x2d07=function(){return _0x3e5cfd;};return _0x2d07();}export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';function _0x18fb(_0x59a8fb,_0x594ad3){var _0x2d07ca=_0x2d07();return _0x18fb=function(_0x18fb72,_0x2948ee){_0x18fb72=_0x18fb72-0x1dd;var _0x22a5e6=_0x2d07ca[_0x18fb72];return _0x22a5e6;},_0x18fb(_0x59a8fb,_0x594ad3);}export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2fa1(_0x3326a5,_0x3b33f1){const _0x5bd039=_0x5bd0();return _0x2fa1=function(_0x2fa167,_0x494d3a){_0x2fa167=_0x2fa167-0x172;let _0x541d32=_0x5bd039[_0x2fa167];return _0x541d32;},_0x2fa1(_0x3326a5,_0x3b33f1);}function _0x5bd0(){const _0x4b7f1a=['3PSOicY','_model','delete','root','attributes','getChanges','717979CXFwMc','4744GnnhZi','777TEbAuH','getItems','4007277CwanjO','length','type','rootName','insert','elementName','$graveyard','reset','clear','add','slice','nodeAfter','name','3048400yIdgjC','4092268knULNH','values','get','_getElementKey','_trackedElements','createRangeOn','remove','6viExUB','position','2804992wxoFIC','push','from','set','19361680AvSjGn','element','$text','_elementName','flat','has','getElementKey'];_0x5bd0=function(){return _0x4b7f1a;};return _0x5bd0();}const _0x4fecf5=_0x2fa1;(function(_0x29ce3a,_0x13b679){const _0x4392ab=_0x2fa1,_0x45878c=_0x29ce3a();while(!![]){try{const _0x51ecca=-parseInt(_0x4392ab(0x185))/0x1+-parseInt(_0x4392ab(0x174))/0x2+parseInt(_0x4392ab(0x17f))/0x3*(parseInt(_0x4392ab(0x197))/0x4)+parseInt(_0x4392ab(0x196))/0x5*(-parseInt(_0x4392ab(0x172))/0x6)+parseInt(_0x4392ab(0x187))/0x7*(parseInt(_0x4392ab(0x186))/0x8)+parseInt(_0x4392ab(0x189))/0x9+parseInt(_0x4392ab(0x178))/0xa;if(_0x51ecca===_0x13b679)break;else _0x45878c['push'](_0x45878c['shift']());}catch(_0x30255f){_0x45878c['push'](_0x45878c['shift']());}}}(_0x5bd0,0xb4b3c));export class ModelElementTracker{[_0x4fecf5(0x180)];[_0x4fecf5(0x17b)];[_0x4fecf5(0x19a)];[_0x4fecf5(0x19b)]=new Map();constructor(_0x242afa,_0x51f74f){const _0xdaad47=_0x4fecf5;this[_0xdaad47(0x180)]=_0x242afa,this[_0xdaad47(0x17b)]=_0x51f74f[_0xdaad47(0x18e)],this[_0xdaad47(0x19a)]=_0x51f74f[_0xdaad47(0x17e)];}[_0x4fecf5(0x190)](){const _0x28e79e=_0x4fecf5;this[_0x28e79e(0x19b)][_0x28e79e(0x191)]();}[_0x4fecf5(0x184)](_0x2d1c02){const _0x433e19=_0x4fecf5,_0x1a5cf3=new Set(),_0x1ae063=new Map();for(const _0x4e5ef8 of _0x2d1c02){if(_0x433e19(0x18d)===_0x4e5ef8[_0x433e19(0x18b)]&&_0x433e19(0x17a)!==_0x4e5ef8[_0x433e19(0x195)]&&_0x4e5ef8[_0x433e19(0x173)][_0x433e19(0x194)]){const _0x2669a3=this[_0x433e19(0x180)][_0x433e19(0x19c)](_0x4e5ef8[_0x433e19(0x173)][_0x433e19(0x194)]);for(const _0x14274b of _0x2669a3[_0x433e19(0x188)]()){if(!_0x14274b['is'](_0x433e19(0x179),this[_0x433e19(0x17b)]))continue;const _0x1016d5=this[_0x433e19(0x19a)](_0x14274b);_0x1ae063[_0x433e19(0x17d)](_0x1016d5)||_0x1ae063[_0x433e19(0x177)](_0x1016d5,[]),_0x1ae063[_0x433e19(0x199)](_0x1016d5)[_0x433e19(0x175)](_0x14274b);}}if(_0x433e19(0x19d)===_0x4e5ef8[_0x433e19(0x18b)]&&_0x4e5ef8[_0x433e19(0x195)]===this[_0x433e19(0x17b)]){const _0x58964f=this[_0x433e19(0x19a)]({'getAttribute':_0x2b88ea=>_0x4e5ef8[_0x433e19(0x183)][_0x433e19(0x199)](_0x2b88ea)});_0x1a5cf3[_0x433e19(0x192)](_0x58964f);}}for(const [_0x4748bb,_0x302f2d]of this[_0x433e19(0x19b)])_0x433e19(0x18f)===_0x302f2d[_0x433e19(0x182)][_0x433e19(0x18c)]&&_0x1a5cf3[_0x433e19(0x192)](_0x4748bb);for(const _0x16f909 of _0x1a5cf3)this[_0x433e19(0x19b)][_0x433e19(0x181)](_0x16f909);for(const [_0x39ad58,_0x429f8c]of _0x1ae063)this[_0x433e19(0x19b)][_0x433e19(0x177)](_0x39ad58,_0x429f8c[_0x429f8c[_0x433e19(0x18a)]-0x1]);const _0xe365b3=new Set();for(const [_0x5bd945,_0x1c1e7f]of _0x1ae063)_0x1a5cf3[_0x433e19(0x17d)](_0x5bd945)&&(_0xe365b3[_0x433e19(0x192)](_0x1c1e7f[0x0]),_0x1c1e7f[_0x433e19(0x18a)]>0x1?_0x1ae063[_0x433e19(0x177)](_0x5bd945,_0x1c1e7f[_0x433e19(0x193)](0x1)):_0x1ae063[_0x433e19(0x181)](_0x5bd945),_0x1a5cf3[_0x433e19(0x181)](_0x5bd945));return{'removed':Array[_0x433e19(0x176)](_0x1a5cf3),'inserted':Array[_0x433e19(0x176)](_0x1ae063[_0x433e19(0x198)]())[_0x433e19(0x17c)](),'moved':Array[_0x433e19(0x176)](_0xe365b3)};}}
|