@ckeditor/ckeditor5-footnotes 47.3.0-alpha.0 → 47.3.0-alpha.2
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 _0x8572a9}from'ckeditor5/src/core.js';import{isWidget as _0x59a34c,toWidget as _0x45445f,toWidgetEditable as _0x357d76}from'ckeditor5/src/widget.js';import{uid as _0x31f20c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x592a32,ClickObserver as _0x59771c}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1a4ea5}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x3754a4}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x8572a9{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1a4ea5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1982be}=this;_0x1982be['config']['define']('footnotes.multiBlock',!0x0),_0x1982be['commands']['add']('insertFootnote',new _0x3754a4(_0x1982be)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x443fae){const _0x277865=_0xb6ab2f([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]),_0x417202=0x47a28506,_0x55f485=0x47a5ff36^_0x417202,_0x2fcf5b=window[_0xb6ab2f([0x44,0x61,0x74,0x65])][_0xb6ab2f([0x6e,0x6f,0x77])](),_0x4d2433=_0x443fae[_0xb6ab2f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe966b9=new window[(_0xb6ab2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22e3d2=>{_0x4d2433[_0xb6ab2f([0x6f,0x6e,0x63,0x65])](_0xb6ab2f([0x72,0x65,0x61,0x64,0x79]),_0x22e3d2);}),_0x1905e7={[_0xb6ab2f([0x6b,0x74,0x79])]:_0xb6ab2f([0x45,0x43]),[_0xb6ab2f([0x75,0x73,0x65])]:_0xb6ab2f([0x73,0x69,0x67]),[_0xb6ab2f([0x63,0x72,0x76])]:_0xb6ab2f([0x50,0x2d,0x32,0x35,0x36]),[_0xb6ab2f([0x78])]:_0xb6ab2f([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]),[_0xb6ab2f([0x79])]:_0xb6ab2f([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]),[_0xb6ab2f([0x61,0x6c,0x67])]:_0xb6ab2f([0x45,0x53,0x32,0x35,0x36])},_0x3ab3ac=_0x4d2433[_0xb6ab2f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb6ab2f([0x67,0x65,0x74])](_0xb6ab2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2856b6(){let _0x127546,_0x5b2504=null,_0x37c68d=null;try{if(_0x3ab3ac==_0xb6ab2f([0x47,0x50,0x4c]))return _0xb6ab2f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x127546=_0x951365(),!_0x127546)return _0xb6ab2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x127546[_0xb6ab2f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37c68d=_0x4c9c42(_0x127546[_0xb6ab2f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x127546[_0xb6ab2f([0x6a,0x74,0x69])])),await _0x132255()?_0x298c80()?_0x448293()?_0xb6ab2f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x590c1a()?(_0x127546[_0xb6ab2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6ab2f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b2504=_0xf0268d(_0xb6ab2f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x127546[_0xb6ab2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6ab2f([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b2504=_0xf0268d(_0xb6ab2f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50fc7d()):_0xb6ab2f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb6ab2f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb6ab2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb6ab2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x448293(){const _0x12b6b0=[_0xb6ab2f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb6ab2f([0x74,0x72,0x69,0x61,0x6c])][_0xb6ab2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127546[_0xb6ab2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fcf5b/0x3e8:0xe10*_0x55f485;return _0x127546[_0xb6ab2f([0x65,0x78,0x70])]<_0x12b6b0;}function _0x298c80(){const _0x2b5b7e=_0x127546[_0xb6ab2f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b5b7e&&(!!_0x2b5b7e[_0xb6ab2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6ab2f([0x2a]))||!!_0x2b5b7e[_0xb6ab2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6ab2f([0x46,0x4f,0x4f])));}function _0x590c1a(){const _0x3f4020=_0x127546[_0xb6ab2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f4020||0x0==_0x3f4020[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x541fba}=new URL(window[_0xb6ab2f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f4020[_0xb6ab2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541fba))return!0x0;const _0x15e523=_0x541fba[_0xb6ab2f([0x73,0x70,0x6c,0x69,0x74])](_0xb6ab2f([0x2e]));return _0x3f4020[_0xb6ab2f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32ba5f=>_0x32ba5f[_0xb6ab2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6ab2f([0x2a])))[_0xb6ab2f([0x6d,0x61,0x70])](_0x1aafb8=>_0x1aafb8[_0xb6ab2f([0x73,0x70,0x6c,0x69,0x74])](_0xb6ab2f([0x2e])))[_0xb6ab2f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b71ec=>_0x2b71ec[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x15e523[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb6ab2f([0x6d,0x61,0x70])](_0x8fd809=>Array(_0x15e523[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x8fd809[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb6ab2f([0x66,0x69,0x6c,0x6c])](_0x8fd809[0x0]===_0xb6ab2f([0x2a])?_0xb6ab2f([0x2a]):'')[_0xb6ab2f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x8fd809))[_0xb6ab2f([0x73,0x6f,0x6d,0x65])](_0x13e527=>_0x15e523[_0xb6ab2f([0x65,0x76,0x65,0x72,0x79])]((_0x53330a,_0x518998)=>_0x13e527[_0x518998]===_0x53330a||_0x13e527[_0x518998]===_0xb6ab2f([0x2a])));}function _0x50fc7d(){return _0x5b2504&&_0x37c68d?new window[(_0xb6ab2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x388650,_0x2f4b81)=>{_0x5b2504[_0xb6ab2f([0x74,0x68,0x65,0x6e])](_0x388650,_0x2f4b81),_0x37c68d[_0xb6ab2f([0x74,0x68,0x65,0x6e])](_0x2bc338=>{_0x2bc338!=_0xb6ab2f([0x56,0x61,0x6c,0x69,0x64])&&_0x388650(_0x2bc338);},_0x2f4b81);}):_0x5b2504||_0x37c68d||_0xb6ab2f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c9c42(_0x41aa81,_0x5b7ae4){return new window[(_0xb6ab2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x72948e=>{if(_0x1bfb7e())return _0x72948e(_0xb6ab2f([0x56,0x61,0x6c,0x69,0x64]));_0x29e015(),_0x4d2433[_0xb6ab2f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb6ab2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2425a1=!0x1;const _0x568b6a=_0x31f20c();function _0x41fc63(_0x1aff4f){return!!_0x1aff4f&&(typeof _0x1aff4f===_0xb6ab2f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1aff4f===_0xb6ab2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1aff4f[_0xb6ab2f([0x74,0x68,0x65,0x6e])]===_0xb6ab2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1aff4f[_0xb6ab2f([0x63,0x61,0x74,0x63,0x68])]===_0xb6ab2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46e36c(_0x4f5c76){_0x5314f4(_0x4f5c76)[_0xb6ab2f([0x74,0x68,0x65,0x6e])](_0x14d28e=>{if(!_0x14d28e||_0x14d28e[_0xb6ab2f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb6ab2f([0x6f,0x6b]))return _0xb6ab2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x334226(_0x1c252c(_0x568b6a+_0x5b7ae4))!=_0x14d28e[_0xb6ab2f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb6ab2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb6ab2f([0x56,0x61,0x6c,0x69,0x64]);})[_0xb6ab2f([0x74,0x68,0x65,0x6e])](_0x59f978=>(_0x40a538(),_0x59f978),()=>{const _0x2f8c53=_0x3775f5();return null==_0x2f8c53?(_0x40a538(),_0xb6ab2f([0x56,0x61,0x6c,0x69,0x64])):_0xb6ab2f(_0x2fcf5b-_0x2f8c53>(0x63ae0106^_0x417202)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb6ab2f([0x74,0x68,0x65,0x6e])](_0x72948e)[_0xb6ab2f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x72948e(_0xb6ab2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e25b0=0x47946b86^_0x417202;function _0x40a538(){const _0x5dbb03=_0xb6ab2f([0x6c,0x6c,0x63,0x74,0x2d])+_0x334226(_0x1c252c(_0x41aa81)),_0x95f3c2=_0x803bf5(_0x334226(window[_0xb6ab2f([0x4d,0x61,0x74,0x68])][_0xb6ab2f([0x63,0x65,0x69,0x6c])](_0x2fcf5b/_0x3e25b0)));window[_0xb6ab2f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6ab2f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5dbb03,_0x95f3c2);}function _0x3775f5(){const _0x1bc7b8=_0xb6ab2f([0x6c,0x6c,0x63,0x74,0x2d])+_0x334226(_0x1c252c(_0x41aa81)),_0x396872=window[_0xb6ab2f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6ab2f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bc7b8);return _0x396872?window[_0xb6ab2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x803bf5(_0x396872),0x10)*_0x3e25b0:null;}function _0x5314f4(_0x125a2f){return new window[(_0xb6ab2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd87939,_0x30c3a2)=>{_0x125a2f[_0xb6ab2f([0x74,0x68,0x65,0x6e])](_0xd87939,_0x30c3a2),window[_0xb6ab2f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30c3a2,0x47a351c6^_0x417202);});}}_0x4d2433[_0xb6ab2f([0x6f,0x6e])](_0xb6ab2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x65749a,_0x1b8605)=>{if(_0x1b8605[0x0]!=_0x41aa81)return _0x72948e(_0xb6ab2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b8605[0x1]={..._0x1b8605[0x1],[_0xb6ab2f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x568b6a};},{[_0xb6ab2f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6ab2f([0x68,0x69,0x67,0x68])}),_0x4d2433[_0xb6ab2f([0x6f,0x6e])](_0xb6ab2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38cae9=>{_0x41fc63(_0x38cae9[_0xb6ab2f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2425a1=!0x0,_0x46e36c(_0x38cae9[_0xb6ab2f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb6ab2f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6ab2f([0x6c,0x6f,0x77])}),_0xe966b9[_0xb6ab2f([0x74,0x68,0x65,0x6e])](()=>{_0x2425a1||_0x72948e(_0xb6ab2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bfb7e(){return _0x4d2433[_0xb6ab2f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6ab2f([0x76,0x69,0x65,0x77])][_0xb6ab2f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb6ab2f([0x61,0x75,0x74,0x6f]);}function _0x29e015(){_0x4d2433[_0xb6ab2f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6ab2f([0x76,0x69,0x65,0x77])][_0xb6ab2f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb6ab2f([0x61,0x75,0x74,0x6f]);}}function _0xf0268d(_0x8b7495){const _0x2f19b9=[new window[(_0xb6ab2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb796e2=>setTimeout(_0xb796e2,0x47abbbca^_0x417202)),_0xe966b9[_0xb6ab2f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb6ab2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23752e=>{let _0x43aa0d=0x0;_0x4d2433[_0xb6ab2f([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6ab2f([0x6f,0x6e])](_0xb6ab2f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ef49f,_0x7a39ed)=>{_0x7a39ed[0x0][_0xb6ab2f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43aa0d++,_0x43aa0d==(0x47a284fe^_0x417202)&&(_0x23752e(),_0x2ef49f[_0xb6ab2f([0x6f,0x66,0x66])]());});}))];return window[_0xb6ab2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb6ab2f([0x72,0x61,0x63,0x65])](_0x2f19b9)[_0xb6ab2f([0x74,0x68,0x65,0x6e])](()=>_0x8b7495);}async function _0x3660ae(){await _0xe966b9,_0x4d2433[_0xb6ab2f([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6ab2f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1550f3,_0x4d2433[_0xb6ab2f([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6ab2f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1550f3,_0x4d2433[_0xb6ab2f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb6ab2f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x129e56(_0x5d5bda){const _0x41b361=_0x21816a();_0x4d2433[_0x41b361]=_0xb6ab2f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d5bda,_0x5d5bda!=_0xb6ab2f([0x56,0x61,0x6c,0x69,0x64])&&_0x3660ae();}function _0x21816a(){const _0x51bc0e=window[_0xb6ab2f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb6ab2f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb6ab2f([0x6e,0x6f,0x77])]())[_0xb6ab2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb6ab2f([0x2e]),'');let _0x3eb835=_0xb6ab2f([0x75]);for(let _0x1cb5f8=0x0;_0x1cb5f8<_0x51bc0e[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cb5f8+=0x2){let _0x22c765=window[_0xb6ab2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51bc0e[_0xb6ab2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cb5f8,_0x1cb5f8+0x2));_0x22c765>=_0x277865[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22c765-=_0x277865[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3eb835+=_0x277865[_0x22c765];}return _0x3eb835;}function _0x951365(){const _0x2f2f31=_0x3ab3ac[_0xb6ab2f([0x73,0x70,0x6c,0x69,0x74])](_0xb6ab2f([0x2e]));if(0x3!=_0x2f2f31[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x257dcc(_0x2f2f31[0x1]);function _0x257dcc(_0x371308){const _0x23ab21=_0x2e7bbf(_0x371308);return _0x23ab21&&_0x780c43()?_0x23ab21:null;function _0x780c43(){const _0x3037b4=_0x23ab21[_0xb6ab2f([0x6a,0x74,0x69])],_0x4ea88e=window[_0xb6ab2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3037b4[_0xb6ab2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3037b4[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58f919={..._0x23ab21,[_0xb6ab2f([0x6a,0x74,0x69])]:_0x3037b4[_0xb6ab2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3037b4[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58f919[_0xb6ab2f([0x76,0x63])],_0x1c252c(_0x58f919)==_0x4ea88e;}}}async function _0x132255(){let _0x4ac1fc=!0x0;try{const _0x538617=_0x3ab3ac[_0xb6ab2f([0x73,0x70,0x6c,0x69,0x74])](_0xb6ab2f([0x2e])),[_0x1f4d5b,_0x31e885,_0x400c2f]=_0x538617;return _0x2cdf6f(_0x1f4d5b),await _0x2ee328(_0x1f4d5b,_0x31e885,_0x400c2f),_0x4ac1fc;}catch{return!0x1;}function _0x2cdf6f(_0x452635){const _0x3e8ebe=_0x2e7bbf(_0x452635);_0x3e8ebe&&_0x3e8ebe[_0xb6ab2f([0x61,0x6c,0x67])]==_0xb6ab2f([0x45,0x53,0x32,0x35,0x36])||(_0x4ac1fc=!0x1);}async function _0x2ee328(_0x46ef3b,_0x24ab4d,_0x4ff9a4){const _0x3571a8=window[_0xb6ab2f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb6ab2f([0x66,0x72,0x6f,0x6d])](_0x4bee19(_0x4ff9a4),_0x328384=>_0x328384[_0xb6ab2f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1defbb=new window[(_0xb6ab2f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb6ab2f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46ef3b+_0xb6ab2f([0x2e])+_0x24ab4d),_0x2f1694=window[_0xb6ab2f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb6ab2f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f1694)return;const _0xa774=await _0x2f1694[_0xb6ab2f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb6ab2f([0x6a,0x77,0x6b]),_0x1905e7,{[_0xb6ab2f([0x6e,0x61,0x6d,0x65])]:_0xb6ab2f([0x45,0x43,0x44,0x53,0x41]),[_0xb6ab2f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb6ab2f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb6ab2f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f1694[_0xb6ab2f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb6ab2f([0x6e,0x61,0x6d,0x65])]:_0xb6ab2f([0x45,0x43,0x44,0x53,0x41]),[_0xb6ab2f([0x68,0x61,0x73,0x68])]:{[_0xb6ab2f([0x6e,0x61,0x6d,0x65])]:_0xb6ab2f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa774,_0x3571a8,_0x1defbb)||(_0x4ac1fc=!0x1);}}function _0x2e7bbf(_0x35bf02){return _0x35bf02[_0xb6ab2f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb6ab2f([0x65,0x79]))?JSON[_0xb6ab2f([0x70,0x61,0x72,0x73,0x65])](_0x4bee19(_0x35bf02)):null;}function _0x4bee19(_0xdc3584){return window[_0xb6ab2f([0x61,0x74,0x6f,0x62])](_0xdc3584[_0xb6ab2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb6ab2f([0x2b]))[_0xb6ab2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb6ab2f([0x2f])));}function _0x1c252c(_0x151986){let _0x4c7646=0x1505;function _0x7001c9(_0x44521f){for(let _0x1fa00c=0x0;_0x1fa00c<_0x44521f[_0xb6ab2f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fa00c++){const _0x3bbcb6=_0x44521f[_0xb6ab2f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fa00c);_0x4c7646=(_0x4c7646<<0x5)+_0x4c7646+_0x3bbcb6,_0x4c7646&=_0x4c7646;}}function _0x1d39ea(_0x598543){Array[_0xb6ab2f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x598543)?_0x598543[_0xb6ab2f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d39ea):_0x598543&&typeof _0x598543==_0xb6ab2f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb6ab2f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x598543)[_0xb6ab2f([0x73,0x6f,0x72,0x74])]()[_0xb6ab2f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1028d4,_0x4b3d28])=>{_0x7001c9(_0x1028d4),_0x1d39ea(_0x4b3d28);}):_0x7001c9(window[_0xb6ab2f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x598543));}return _0x1d39ea(_0x151986),_0x4c7646>>>0x0;}function _0x334226(_0xbfd73a){return _0xbfd73a[_0xb6ab2f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb6ab2f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb6ab2f([0x30]));}function _0x803bf5(_0x2cbd33){return _0x2cbd33[_0xb6ab2f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb6ab2f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb6ab2f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1550f3(){}function _0xb6ab2f(_0x57367c){return _0x57367c['map'](_0x4f5063=>String['fromCharCode'](_0x4f5063))['join']('');}_0x129e56(await _0x2856b6());}(this);}['_moveSelectionToFootnoteDefinition'](_0xc31e1c){const {plugins:_0x56216d,editing:_0x268fe6,model:_0x598714}=this['editor'],_0x1103dc=_0x56216d['get'](_0x1a4ea5)['getFootnote'](_0xc31e1c);return!!_0x1103dc&&(_0x598714['change'](_0x4a9c89=>{_0x4a9c89['setSelection'](_0x4a9c89['createPositionAt'](_0x1103dc['definition'],'end'));}),_0x268fe6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2d98d0){const {plugins:_0x59e6b4,editing:_0x2498fc,model:_0x1a7d5c}=this['editor'],_0x50ce12=_0x59e6b4['get'](_0x1a4ea5)['getFootnote'](_0x2d98d0);return!!_0x50ce12&&(_0x1a7d5c['change'](_0x1d81ac=>{_0x1d81ac['setSelection'](_0x50ce12['reference'],'on');}),_0x2498fc['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x32fc94}=this['editor']['model'],_0x4a9a43=this['editor']['config']['get']('footnotes.multiBlock');_0x32fc94['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x32fc94['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x32fc94['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4a9a43?_0x32fc94['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x32fc94['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x32fc94['addChildCheck'](_0x23124e=>{for(const _0x431d81 of _0x23124e)if('footnoteDefinition'===_0x431d81['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x9391d1}=this,{conversion:_0x3835ec,editing:_0xa2dee5}=_0x9391d1,{t:t}=_0x9391d1['locale'];_0x3835ec['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3c1b94,{writer:_0x456051,consumable:_0x442e46})=>{const _0x418ce6=_0x3c1b94['getChild'](0x0);if(!_0x418ce6||!_0x418ce6['is']('element','a'))return null;const _0x17fc81=_0x418ce6['getAttribute']('href')||'';if(!_0x17fc81['startsWith']('#'))return null;const _0x4d1c19=_0x17fc81['replace'](/^#/,'');if(!_0x4d1c19)return null;_0x442e46['consume'](_0x418ce6,{'name':!0x0,'attributes':['href']});for(const {item:_0x1ab087}of _0xa2dee5['view']['createRangeIn'](_0x418ce6))_0x1ab087['is']('$textProxy')?_0x442e46['consume'](_0x1ab087['textNode'],{'name':!0x0}):_0x1ab087['is']('element')&&_0x442e46['consume'](_0x1ab087,{'name':!0x0});return _0x456051['createElement']('footnoteRef',{'footnoteId':_0x4d1c19});}}),_0x3835ec['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5b087c,{writer:_0x49632b})=>D(_0x5b087c,_0x49632b)}),_0x3835ec['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x212966,{writer:_0x2989d9})=>{const _0x2a2549=_0x212966['getAttribute']('footnoteCounter');return _0x45445f(D(_0x212966,_0x2989d9),_0x2989d9,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2a2549)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1c9152}=this,{t:t}=_0x1c9152['locale'],{conversion:_0x217300}=_0x1c9152;_0x217300['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x217300['for']('upcast')['add'](_0x1dfb1a=>{_0x1dfb1a['on']('element:ol',(_0x5b0ac0,_0x18ee1c,_0x3af315)=>{const _0x5efa02=_0x18ee1c['viewItem'];if(!_0x5efa02['hasClass']('footnotes-list')||!_0x18ee1c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3af315['consumable']['consume'](_0x5efa02,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x11626d,modelCursor:_0x288b25}=_0x3af315['convertChildren'](_0x18ee1c['viewItem'],_0x18ee1c['modelCursor']);_0x18ee1c['modelRange']=_0x11626d,_0x18ee1c['modelCursor']=_0x288b25;}),_0x1dfb1a['on']('element:hr',(_0x52c618,_0x1c685d,_0x41fb72)=>{const _0x10beb6=_0x1c685d['viewItem'];_0x10beb6['hasClass']('footnotes-divider')&&_0x1c685d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x41fb72['consumable']['consume'](_0x10beb6,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x217300['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x24f685,{writer:_0x959c18})=>v(_0x959c18)}),_0x217300['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1fad25,{writer:_0x463ec2})=>{const _0x24f47d=v(_0x463ec2,{'data-footnotes-list-label':t('Footnotes')}),_0x5237a4=_0x45445f(_0x24f47d,_0x463ec2,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x463ec2['setCustomProperty']('footnotesDefinitions',!0x0,_0x5237a4),_0x5237a4;}});}['_defineDefinitionConverters'](){const {editor:_0x51e67b}=this,{conversion:_0x7e8b78,locale:_0x39d276}=_0x51e67b,_0x4e282a=_0x51e67b['config']['get']('footnotes.multiBlock');_0x7e8b78['for']('upcast')['add'](_0x3448cc=>{_0x3448cc['on']('element:li',(_0x5e0e39,_0x135f15,_0x1a4616)=>{const _0x4e2eb4=_0x135f15['viewItem'];if(!_0x4e2eb4['hasClass']('footnote-definition')||!_0x4e2eb4['getAttribute']('id'))return;const _0x3155af=_0x4e2eb4['parent'];if(!_0x3155af['is']('element','ol')||!_0x3155af['hasClass']('footnotes-list'))return;if(!_0x1a4616['consumable']['test'](_0x4e2eb4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3c8b78=_0x1a4616['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4e2eb4['getAttribute']('id')});if(!_0x1a4616['safeInsert'](_0x3c8b78,_0x135f15['modelCursor']))return;_0x1a4616['consumable']['consume'](_0x4e2eb4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x28ca0f=Array['from'](_0x4e2eb4['getChildren']())['find'](_0x13ee0b=>_0x13ee0b['is']('element')&&_0x13ee0b['hasClass']('footnote-content'));for(const _0x4dbcf0 of _0x4e2eb4['getChildren']())_0x4dbcf0['is']('element')&&(_0x1a4616['consumable']['consume'](_0x4dbcf0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1a4616['consumable']['consume'](_0x4dbcf0,{'name':!0x0,'classes':'footnote-content'}));if(_0x28ca0f){if(_0x4e282a)_0x1a4616['convertChildren'](_0x28ca0f,_0x3c8b78);else{const _0x1ff6f6=_0x1a4616['writer']['createElement']('footnoteInlineContent');_0x1a4616['writer']['insert'](_0x1ff6f6,_0x3c8b78),_0x1a4616['convertChildren'](_0x28ca0f,_0x1ff6f6);}}_0x1a4616['updateConversionResult'](_0x3c8b78,_0x135f15);});}),_0x7e8b78['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4f53fb,{writer:_0x1345aa})=>b(_0x4f53fb,_0x1345aa,_0x39d276,{'dataPipeline':!0x0})}),_0x7e8b78['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3041bb,{writer:_0x1cd7f1})=>b(_0x3041bb,_0x1cd7f1,_0x39d276)});}['_defineBogusParagraphConverters'](){const {editor:_0x62fa73}=this,{conversion:_0x4a1fde}=_0x62fa73;_0x62fa73['config']['get']('footnotes.multiBlock')?(_0x4a1fde['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x4a1fde['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x62fa73['model']['document'],'change:data',()=>{!function(_0x5c37f8,_0x5b1fb7){const _0xeb4067=_0x5c37f8['document']['differ'],_0x343baa=new Set();for(const _0x32f2f0 of _0xeb4067['getChanges']()){const _0x474ef8='attribute'==_0x32f2f0['type']?_0x32f2f0['range']['start']['parent']:_0x32f2f0['position']['parent'];_0x474ef8['is']('element','footnoteDefinition')&&_0x343baa['add'](_0x474ef8);}for(const _0x4e45ff of _0x343baa['values']()){const _0xfc6e30=Array['from'](_0x4e45ff['getChildren']())['filter'](_0x3e9845=>g(_0x3e9845,_0x5b1fb7['mapper']));for(const _0x23caeb of _0xfc6e30)_0x5b1fb7['reconvertItem'](_0x23caeb);}}(_0x62fa73['model'],_0x62fa73['editing']);})):(_0x4a1fde['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x4a1fde['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2d788e,{writer:_0x17ef42})=>{const _0x4d9175=_0x17ef42['createContainerElement']('span');return _0x17ef42['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4d9175),_0x4d9175;}}));}['_defineKeyboardHandlers'](){const {editor:_0x13fb81}=this,{editing:_0x5d1ed2,t:t}=_0x13fb81,_0x70c0dd=_0x13fb81['model']['document']['selection'];_0x13fb81['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x13fb81['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5d1ed2['view']['document'],'enter',(_0xcd1f78,_0xbb0a20)=>{const _0x4fd5d5=function(_0x1206b7){const _0x8f8d5a=_0x1206b7['getSelectedElement']();if(_0x8f8d5a?.['is']('element','footnoteRef'))return _0x8f8d5a;return null;}(_0x70c0dd);if(_0x4fd5d5){const _0x5584a6=_0x4fd5d5['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5584a6),_0xbb0a20['preventDefault'](),_0xcd1f78['stop']();}},{'context':_0x59a34c});}['_defineClickHandlers'](){const {editor:_0x5d36bb}=this,{editing:_0x25248c}=_0x5d36bb;_0x5d36bb['editing']['view']['addObserver'](_0x592a32),_0x5d36bb['editing']['view']['addObserver'](_0x59771c);let _0x2483e1=!0x1;this['listenTo'](_0x25248c['view']['document'],'pointerdown',(_0x136f16,_0x29be29)=>{const {target:_0x152a72}=_0x29be29,_0x5014be=_0x25248c['view']['document']['selection'];_0x2483e1=!!(_0x152a72?.['is']('element','a')&&_0x152a72['parent']?.['is']('element','sup')&&_0x152a72['parent']['hasClass']('footnote'))&&_0x5014be['getSelectedElement']()===_0x152a72['parent'];},{'priority':'high'}),this['listenTo'](_0x25248c['view']['document'],'click',(_0x3935a3,_0x493b54)=>{const {target:_0x45ccd0}=_0x493b54;if(!_0x45ccd0?.['is']('element','a'))return;if(_0x45ccd0['parent']?.['is']('element','sup')&&_0x45ccd0['parent']['hasClass']('footnote')&&!_0x2483e1)return void _0x493b54['preventDefault']();let _0x53354c=_0x45ccd0['getAttribute']('href');if(!_0x53354c?.['startsWith']('#'))return;_0x53354c=_0x53354c['slice'](0x1);let _0x37c0e1=!0x1;(_0x53354c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x53354c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x53354c))&&(_0x37c0e1=!0x0),_0x37c0e1&&(_0x493b54['preventDefault'](),_0x3935a3['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x38acf2}={}){return(_0x13c065,{writer:_0x48c797})=>{if(!p(_0x13c065))return null;if(!_0x38acf2)return _0x48c797['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x102f9f=_0x48c797['createContainerElement']('p');return _0x48c797['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x102f9f),_0x102f9f;};}function p(_0x484b70){const {parent:_0x4e8141}=_0x484b70;if(!_0x4e8141?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4e8141['childCount'])return!0x1;for(const _0x188045 of _0x484b70['getAttributeKeys']())if(!_0x188045['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x188045)return!0x1;return!0x0;}function g(_0x33798d,_0x4be6a2){if(!_0x33798d['is']('element','paragraph'))return!0x1;const _0xe8066f=_0x4be6a2['toViewElement'](_0x33798d);return!!_0xe8066f&&p(_0x33798d)!==_0xe8066f['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x26510d){return _0x59a34c(_0x26510d)&&_0x26510d['is']('containerElement')&&!!_0x26510d['getCustomProperty']('footnotesDefinitions');}function v(_0x113b5d,_0x40d717={}){const _0x5a78f8=_0x113b5d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x264845=_0x113b5d['createContainerElement']('ol',{'class':'footnotes-list'},_0x113b5d['createSlot']());return _0x113b5d['createContainerElement']('div',{'class':'footnotes',..._0x40d717},[_0x5a78f8,_0x264845]);}function D(_0x8a8a9f,_0x23ab0b){const _0x3898c8=_0x8a8a9f['getAttribute']('footnoteId'),_0x35705e=_0x8a8a9f['getAttribute']('footnoteCounter'),_0x4f293b=_0x23ab0b['createUIElement']('a',{'href':'#'+_0x3898c8},function(_0x571dae){const _0x391507=this['toDomElement'](_0x571dae);return _0x391507['textContent']=_0x35705e,_0x391507;}),_0x591fe4=_0x23ab0b['createContainerElement']('sup',{'id':'ref-'+_0x3898c8,'class':'footnote'},[_0x4f293b]);return _0x591fe4['getFillerOffset']=()=>null,_0x591fe4;}function b(_0x293247,_0x51174e,_0x17e565,{dataPipeline:_0x48bf4e}={}){const {t:t}=_0x17e565,_0xb1e301=_0x293247['getAttribute']('footnoteId'),_0x974b01=_0x51174e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xb1e301},function(_0x4e4da2){const _0x2e9638=this['toDomElement'](_0x4e4da2);return _0x2e9638['innerText']='^',_0x2e9638;}),_0x54c346=_0x48bf4e?_0x51174e['createContainerElement']('div',{'class':'footnote-content'}):_0x357d76(_0x51174e['createEditableElement']('div',{'class':'footnote-content'}),_0x51174e,{'label':t('Footnote\x20content.')});return _0x51174e['insert'](_0x51174e['createPositionAt'](_0x54c346,0x0),_0x51174e['createSlot']()),_0x51174e['createContainerElement']('li',{'class':'footnote-definition','id':_0xb1e301},[_0x974b01,_0x54c346]);}
|
|
23
|
+
import{Plugin as _0x5adadb}from'ckeditor5/src/core.js';import{isWidget as _0x291337,toWidget as _0x59a580,toWidgetEditable as _0x25f0de}from'ckeditor5/src/widget.js';import{uid as _0x351ebe}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4a499d,ClickObserver as _0x5a2ad2}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xbc4219}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5d443c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5adadb{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xbc4219];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2bf47a}=this;_0x2bf47a['config']['define']('footnotes.multiBlock',!0x0),_0x2bf47a['commands']['add']('insertFootnote',new _0x5d443c(_0x2bf47a)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5365c8){const _0x1c6234=_0x5e7d10([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]),_0x2b23ba=0x47a28506,_0xa9119e=0x47a5ff66^_0x2b23ba,_0x4142fc=window[_0x5e7d10([0x44,0x61,0x74,0x65])][_0x5e7d10([0x6e,0x6f,0x77])](),_0x488091=_0x5365c8[_0x5e7d10([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x400037=new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be020=>{_0x488091[_0x5e7d10([0x6f,0x6e,0x63,0x65])](_0x5e7d10([0x72,0x65,0x61,0x64,0x79]),_0x2be020);}),_0xe492fb={[_0x5e7d10([0x6b,0x74,0x79])]:_0x5e7d10([0x45,0x43]),[_0x5e7d10([0x75,0x73,0x65])]:_0x5e7d10([0x73,0x69,0x67]),[_0x5e7d10([0x63,0x72,0x76])]:_0x5e7d10([0x50,0x2d,0x32,0x35,0x36]),[_0x5e7d10([0x78])]:_0x5e7d10([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]),[_0x5e7d10([0x79])]:_0x5e7d10([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]),[_0x5e7d10([0x61,0x6c,0x67])]:_0x5e7d10([0x45,0x53,0x32,0x35,0x36])},_0x39ac0b=_0x488091[_0x5e7d10([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e7d10([0x67,0x65,0x74])](_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4937d6(){let _0x2c9c93,_0x19fd58=null,_0x554add=null;try{if(_0x39ac0b==_0x5e7d10([0x47,0x50,0x4c]))return _0x5e7d10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c9c93=_0x387767(),!_0x2c9c93)return _0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c9c93[_0x5e7d10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x554add=_0x2a0d5c(_0x2c9c93[_0x5e7d10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c9c93[_0x5e7d10([0x6a,0x74,0x69])])),await _0x24a355()?_0x566f9c()?_0x3434b3()?_0x5e7d10([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x170e9c()?(_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e7d10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19fd58=_0x5989c8(_0x5e7d10([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e7d10([0x74,0x72,0x69,0x61,0x6c])&&(_0x19fd58=_0x5989c8(_0x5e7d10([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10489c()):_0x5e7d10([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e7d10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3434b3(){const _0x50d42e=[_0x5e7d10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e7d10([0x74,0x72,0x69,0x61,0x6c])][_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4142fc/0x3e8:0xe10*_0xa9119e;return _0x2c9c93[_0x5e7d10([0x65,0x78,0x70])]<_0x50d42e;}function _0x566f9c(){const _0x2a0219=_0x2c9c93[_0x5e7d10([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a0219&&(!!_0x2a0219[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x2a]))||!!_0x2a0219[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x46,0x4f,0x4f])));}function _0x170e9c(){const _0xb1f2ba=_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb1f2ba||0x0==_0xb1f2ba[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x76ef9c}=new URL(window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb1f2ba[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76ef9c))return!0x0;const _0x40d5f1=_0x76ef9c[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e]));return _0xb1f2ba[_0x5e7d10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x356edc=>_0x356edc[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x2a])))[_0x5e7d10([0x6d,0x61,0x70])](_0x25e736=>_0x25e736[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e])))[_0x5e7d10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d0288=>_0x5d0288[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40d5f1[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e7d10([0x6d,0x61,0x70])](_0x102ff9=>Array(_0x40d5f1[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x102ff9[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e7d10([0x66,0x69,0x6c,0x6c])](_0x102ff9[0x0]===_0x5e7d10([0x2a])?_0x5e7d10([0x2a]):'')[_0x5e7d10([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x102ff9))[_0x5e7d10([0x73,0x6f,0x6d,0x65])](_0x3f0cdc=>_0x40d5f1[_0x5e7d10([0x65,0x76,0x65,0x72,0x79])]((_0x31a9bf,_0x56ceb4)=>_0x3f0cdc[_0x56ceb4]===_0x31a9bf||_0x3f0cdc[_0x56ceb4]===_0x5e7d10([0x2a])));}function _0x10489c(){return _0x19fd58&&_0x554add?new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a3e2e,_0x159f12)=>{_0x19fd58[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x3a3e2e,_0x159f12),_0x554add[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x4a7498=>{_0x4a7498!=_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])&&_0x3a3e2e(_0x4a7498);},_0x159f12);}):_0x19fd58||_0x554add||_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a0d5c(_0x50e65c,_0x3626c2){return new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c6c0=>{if(_0x15128a())return _0x19c6c0(_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]));_0xd959dd(),_0x488091[_0x5e7d10([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f8c6f=!0x1;const _0x21e398=_0x351ebe();function _0x1cd0bb(_0x3019d5){return!!_0x3019d5&&(typeof _0x3019d5===_0x5e7d10([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3019d5===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3019d5[_0x5e7d10([0x74,0x68,0x65,0x6e])]===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3019d5[_0x5e7d10([0x63,0x61,0x74,0x63,0x68])]===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31a95a(_0x2475f1){_0x262190(_0x2475f1)[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x585647=>{if(!_0x585647||_0x585647[_0x5e7d10([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e7d10([0x6f,0x6b]))return _0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4de0f9(_0x4cff71(_0x21e398+_0x3626c2))!=_0x585647[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x1bc7a4=>(_0xad88e5(),_0x1bc7a4),()=>{const _0x2d69d1=_0x39a26f();return null==_0x2d69d1?(_0xad88e5(),_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])):_0x5e7d10(_0x4142fc-_0x2d69d1>(0x63ae0106^_0x2b23ba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x19c6c0)[_0x5e7d10([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21c888=0x47946b86^_0x2b23ba;function _0xad88e5(){const _0x1aa989=_0x5e7d10([0x6c,0x6c,0x63,0x74,0x2d])+_0x4de0f9(_0x4cff71(_0x50e65c)),_0x128c55=_0x260751(_0x4de0f9(window[_0x5e7d10([0x4d,0x61,0x74,0x68])][_0x5e7d10([0x63,0x65,0x69,0x6c])](_0x4142fc/_0x21c888)));window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e7d10([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1aa989,_0x128c55);}function _0x39a26f(){const _0x12a4f3=_0x5e7d10([0x6c,0x6c,0x63,0x74,0x2d])+_0x4de0f9(_0x4cff71(_0x50e65c)),_0x4bbafa=window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e7d10([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12a4f3);return _0x4bbafa?window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260751(_0x4bbafa),0x10)*_0x21c888:null;}function _0x262190(_0xcb1bd6){return new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x120e18,_0x57d314)=>{_0xcb1bd6[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x120e18,_0x57d314),window[_0x5e7d10([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57d314,0x47a351c6^_0x2b23ba);});}}_0x488091[_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13f181,_0x5e89e5)=>{if(_0x5e89e5[0x0]!=_0x50e65c)return _0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e89e5[0x1]={..._0x5e89e5[0x1],[_0x5e7d10([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21e398};},{[_0x5e7d10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e7d10([0x68,0x69,0x67,0x68])}),_0x488091[_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x260987=>{_0x1cd0bb(_0x260987[_0x5e7d10([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f8c6f=!0x0,_0x31a95a(_0x260987[_0x5e7d10([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e7d10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e7d10([0x6c,0x6f,0x77])}),_0x400037[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>{_0x1f8c6f||_0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15128a(){return _0x488091[_0x5e7d10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e7d10([0x76,0x69,0x65,0x77])][_0x5e7d10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e7d10([0x61,0x75,0x74,0x6f]);}function _0xd959dd(){_0x488091[_0x5e7d10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e7d10([0x76,0x69,0x65,0x77])][_0x5e7d10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e7d10([0x61,0x75,0x74,0x6f]);}}function _0x5989c8(_0x3580fd){const _0x4ded35=[new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10ca2c=>setTimeout(_0x10ca2c,0x47abbbca^_0x2b23ba)),_0x400037[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdfafec=>{let _0x4c45de=0x0;_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e3462,_0x1b200b)=>{_0x1b200b[0x0][_0x5e7d10([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c45de++,_0x4c45de==(0x47a284fe^_0x2b23ba)&&(_0xdfafec(),_0x3e3462[_0x5e7d10([0x6f,0x66,0x66])]());});}))];return window[_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e7d10([0x72,0x61,0x63,0x65])](_0x4ded35)[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>_0x3580fd);}async function _0x4dc37c(){await _0x400037,_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c595e,_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c595e,_0x488091[_0x5e7d10([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58028e(_0x5c2a94){const _0x13583b=_0x43615a();_0x488091[_0x13583b]=_0x5e7d10([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c2a94,_0x5c2a94!=_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])&&_0x4dc37c();}function _0x43615a(){const _0x5d1b14=window[_0x5e7d10([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e7d10([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e7d10([0x6e,0x6f,0x77])]())[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e7d10([0x2e]),'');let _0x39d31a=_0x5e7d10([0x75]);for(let _0x401e10=0x0;_0x401e10<_0x5d1b14[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x401e10+=0x2){let _0x557342=window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1b14[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x401e10,_0x401e10+0x2));_0x557342>=_0x1c6234[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x557342-=_0x1c6234[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39d31a+=_0x1c6234[_0x557342];}return _0x39d31a;}function _0x387767(){const _0x23a3eb=_0x39ac0b[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e]));if(0x3!=_0x23a3eb[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bc200(_0x23a3eb[0x1]);function _0x2bc200(_0x59c898){const _0x1f29ee=_0x3a0898(_0x59c898);return _0x1f29ee&&_0x3a2929()?_0x1f29ee:null;function _0x3a2929(){const _0x4a528f=_0x1f29ee[_0x5e7d10([0x6a,0x74,0x69])],_0x47f43f=window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a528f[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a528f[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc69233={..._0x1f29ee,[_0x5e7d10([0x6a,0x74,0x69])]:_0x4a528f[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a528f[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc69233[_0x5e7d10([0x76,0x63])],_0x4cff71(_0xc69233)==_0x47f43f;}}}async function _0x24a355(){let _0x52b27c=!0x0;try{const _0x5c5347=_0x39ac0b[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e])),[_0x44312c,_0x16913a,_0x2fb08f]=_0x5c5347;return _0x1a1fdc(_0x44312c),await _0x28d0d0(_0x44312c,_0x16913a,_0x2fb08f),_0x52b27c;}catch{return!0x1;}function _0x1a1fdc(_0x207e34){const _0x28aea3=_0x3a0898(_0x207e34);_0x28aea3&&_0x28aea3[_0x5e7d10([0x61,0x6c,0x67])]==_0x5e7d10([0x45,0x53,0x32,0x35,0x36])||(_0x52b27c=!0x1);}async function _0x28d0d0(_0x41039d,_0x30d19c,_0x23a8e7){const _0x4c32c6=window[_0x5e7d10([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e7d10([0x66,0x72,0x6f,0x6d])](_0x135fdf(_0x23a8e7),_0x32ca6f=>_0x32ca6f[_0x5e7d10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa75721=new window[(_0x5e7d10([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e7d10([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41039d+_0x5e7d10([0x2e])+_0x30d19c),_0x2fec2b=window[_0x5e7d10([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e7d10([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fec2b)return;const _0x2b8eb5=await _0x2fec2b[_0x5e7d10([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e7d10([0x6a,0x77,0x6b]),_0xe492fb,{[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x45,0x43,0x44,0x53,0x41]),[_0x5e7d10([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e7d10([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fec2b[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x45,0x43,0x44,0x53,0x41]),[_0x5e7d10([0x68,0x61,0x73,0x68])]:{[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b8eb5,_0x4c32c6,_0xa75721)||(_0x52b27c=!0x1);}}function _0x3a0898(_0x25546f){return _0x25546f[_0x5e7d10([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e7d10([0x65,0x79]))?JSON[_0x5e7d10([0x70,0x61,0x72,0x73,0x65])](_0x135fdf(_0x25546f)):null;}function _0x135fdf(_0x4f572e){return window[_0x5e7d10([0x61,0x74,0x6f,0x62])](_0x4f572e[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e7d10([0x2b]))[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e7d10([0x2f])));}function _0x4cff71(_0x54a6a3){let _0x417405=0x1505;function _0x2c075f(_0x1bc884){for(let _0x2e80ea=0x0;_0x2e80ea<_0x1bc884[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e80ea++){const _0x1a669f=_0x1bc884[_0x5e7d10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e80ea);_0x417405=(_0x417405<<0x5)+_0x417405+_0x1a669f,_0x417405&=_0x417405;}}function _0x43d0f6(_0x128632){Array[_0x5e7d10([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x128632)?_0x128632[_0x5e7d10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43d0f6):_0x128632&&typeof _0x128632==_0x5e7d10([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e7d10([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x128632)[_0x5e7d10([0x73,0x6f,0x72,0x74])]()[_0x5e7d10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30c755,_0x588f0c])=>{_0x2c075f(_0x30c755),_0x43d0f6(_0x588f0c);}):_0x2c075f(window[_0x5e7d10([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x128632));}return _0x43d0f6(_0x54a6a3),_0x417405>>>0x0;}function _0x4de0f9(_0x2f85a3){return _0x2f85a3[_0x5e7d10([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e7d10([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e7d10([0x30]));}function _0x260751(_0x46938f){return _0x46938f[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e7d10([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e7d10([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c595e(){}function _0x5e7d10(_0xb10f1f){return _0xb10f1f['map'](_0x18d32a=>String['fromCharCode'](_0x18d32a))['join']('');}_0x58028e(await _0x4937d6());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3539b9){const {plugins:_0x1bbb34,editing:_0x615788,model:_0x24e9b9}=this['editor'],_0x238ade=_0x1bbb34['get'](_0xbc4219)['getFootnote'](_0x3539b9);return!!_0x238ade&&(_0x24e9b9['change'](_0x143849=>{_0x143849['setSelection'](_0x143849['createPositionAt'](_0x238ade['definition'],'end'));}),_0x615788['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x48c404){const {plugins:_0x46ccc1,editing:_0x40271f,model:_0x187dd6}=this['editor'],_0x3ed80c=_0x46ccc1['get'](_0xbc4219)['getFootnote'](_0x48c404);return!!_0x3ed80c&&(_0x187dd6['change'](_0x1259ba=>{_0x1259ba['setSelection'](_0x3ed80c['reference'],'on');}),_0x40271f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xdee1c0}=this['editor']['model'],_0x5d3190=this['editor']['config']['get']('footnotes.multiBlock');_0xdee1c0['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xdee1c0['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xdee1c0['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5d3190?_0xdee1c0['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xdee1c0['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xdee1c0['addChildCheck'](_0x267297=>{for(const _0x300987 of _0x267297)if('footnoteDefinition'===_0x300987['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b9972}=this,{conversion:_0x3ab32c,editing:_0x1f5785}=_0x2b9972,{t:t}=_0x2b9972['locale'];_0x3ab32c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xcb5050,{writer:_0x25bb7f,consumable:_0x199d9b})=>{const _0x212c65=_0xcb5050['getChild'](0x0);if(!_0x212c65||!_0x212c65['is']('element','a'))return null;const _0x330833=_0x212c65['getAttribute']('href')||'';if(!_0x330833['startsWith']('#'))return null;const _0x40dd60=_0x330833['replace'](/^#/,'');if(!_0x40dd60)return null;_0x199d9b['consume'](_0x212c65,{'name':!0x0,'attributes':['href']});for(const {item:_0x42e488}of _0x1f5785['view']['createRangeIn'](_0x212c65))_0x42e488['is']('$textProxy')?_0x199d9b['consume'](_0x42e488['textNode'],{'name':!0x0}):_0x42e488['is']('element')&&_0x199d9b['consume'](_0x42e488,{'name':!0x0});return _0x25bb7f['createElement']('footnoteRef',{'footnoteId':_0x40dd60});}}),_0x3ab32c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e742b,{writer:_0x4dc48f})=>D(_0x3e742b,_0x4dc48f)}),_0x3ab32c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x307098,{writer:_0x1c6428})=>{const _0x2536ec=_0x307098['getAttribute']('footnoteCounter');return _0x59a580(D(_0x307098,_0x1c6428),_0x1c6428,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2536ec)});}});}['_defineDefinitionsConverters'](){const {editor:_0x15927a}=this,{t:t}=_0x15927a['locale'],{conversion:_0x390c79}=_0x15927a;_0x390c79['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x390c79['for']('upcast')['add'](_0x484926=>{_0x484926['on']('element:ol',(_0x33cf62,_0x4e4b9b,_0x4459e7)=>{const _0x23979a=_0x4e4b9b['viewItem'];if(!_0x23979a['hasClass']('footnotes-list')||!_0x4e4b9b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4459e7['consumable']['consume'](_0x23979a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x171ed7,modelCursor:_0x43ce4b}=_0x4459e7['convertChildren'](_0x4e4b9b['viewItem'],_0x4e4b9b['modelCursor']);_0x4e4b9b['modelRange']=_0x171ed7,_0x4e4b9b['modelCursor']=_0x43ce4b;}),_0x484926['on']('element:hr',(_0x25092c,_0x31b0bc,_0x43d192)=>{const _0x5444d0=_0x31b0bc['viewItem'];_0x5444d0['hasClass']('footnotes-divider')&&_0x31b0bc['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x43d192['consumable']['consume'](_0x5444d0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x390c79['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4379fc,{writer:_0x2d5284})=>v(_0x2d5284)}),_0x390c79['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2ba837,{writer:_0x4d656a})=>{const _0x50cd79=v(_0x4d656a,{'data-footnotes-list-label':t('Footnotes')}),_0x1aab5c=_0x59a580(_0x50cd79,_0x4d656a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4d656a['setCustomProperty']('footnotesDefinitions',!0x0,_0x1aab5c),_0x1aab5c;}});}['_defineDefinitionConverters'](){const {editor:_0x98587b}=this,{conversion:_0x3e832e,locale:_0x2cecf9}=_0x98587b,_0x14066b=_0x98587b['config']['get']('footnotes.multiBlock');_0x3e832e['for']('upcast')['add'](_0x17ac18=>{_0x17ac18['on']('element:li',(_0x4f4599,_0x352c57,_0x4d6b24)=>{const _0x40c1f9=_0x352c57['viewItem'];if(!_0x40c1f9['hasClass']('footnote-definition')||!_0x40c1f9['getAttribute']('id'))return;const _0x7b5742=_0x40c1f9['parent'];if(!_0x7b5742['is']('element','ol')||!_0x7b5742['hasClass']('footnotes-list'))return;if(!_0x4d6b24['consumable']['test'](_0x40c1f9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4e1643=_0x4d6b24['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x40c1f9['getAttribute']('id')});if(!_0x4d6b24['safeInsert'](_0x4e1643,_0x352c57['modelCursor']))return;_0x4d6b24['consumable']['consume'](_0x40c1f9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x47f854=Array['from'](_0x40c1f9['getChildren']())['find'](_0x19101b=>_0x19101b['is']('element')&&_0x19101b['hasClass']('footnote-content'));for(const _0x39f62e of _0x40c1f9['getChildren']())_0x39f62e['is']('element')&&(_0x4d6b24['consumable']['consume'](_0x39f62e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4d6b24['consumable']['consume'](_0x39f62e,{'name':!0x0,'classes':'footnote-content'}));if(_0x47f854){if(_0x14066b)_0x4d6b24['convertChildren'](_0x47f854,_0x4e1643);else{const _0x266652=_0x4d6b24['writer']['createElement']('footnoteInlineContent');_0x4d6b24['writer']['insert'](_0x266652,_0x4e1643),_0x4d6b24['convertChildren'](_0x47f854,_0x266652);}}_0x4d6b24['updateConversionResult'](_0x4e1643,_0x352c57);});}),_0x3e832e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4943d7,{writer:_0x3c529f})=>b(_0x4943d7,_0x3c529f,_0x2cecf9,{'dataPipeline':!0x0})}),_0x3e832e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x539ce0,{writer:_0x1a2d90})=>b(_0x539ce0,_0x1a2d90,_0x2cecf9)});}['_defineBogusParagraphConverters'](){const {editor:_0x122ac7}=this,{conversion:_0x47528a}=_0x122ac7;_0x122ac7['config']['get']('footnotes.multiBlock')?(_0x47528a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x47528a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x122ac7['model']['document'],'change:data',()=>{!function(_0x2b2b8c,_0x4e3f14){const _0x6c1247=_0x2b2b8c['document']['differ'],_0x14c0e=new Set();for(const _0x1f138a of _0x6c1247['getChanges']()){const _0x4d1305='attribute'==_0x1f138a['type']?_0x1f138a['range']['start']['parent']:_0x1f138a['position']['parent'];_0x4d1305['is']('element','footnoteDefinition')&&_0x14c0e['add'](_0x4d1305);}for(const _0x336517 of _0x14c0e['values']()){const _0x274e2d=Array['from'](_0x336517['getChildren']())['filter'](_0x523ca2=>g(_0x523ca2,_0x4e3f14['mapper']));for(const _0x654ff2 of _0x274e2d)_0x4e3f14['reconvertItem'](_0x654ff2);}}(_0x122ac7['model'],_0x122ac7['editing']);})):(_0x47528a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x47528a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4071fd,{writer:_0xee8ffd})=>{const _0x3c364a=_0xee8ffd['createContainerElement']('span');return _0xee8ffd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c364a),_0x3c364a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x12b605}=this,{editing:_0x173a62,t:t}=_0x12b605,_0x1391ff=_0x12b605['model']['document']['selection'];_0x12b605['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x12b605['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x173a62['view']['document'],'enter',(_0x388854,_0xd26cc4)=>{const _0x5aaf5d=function(_0x233eb8){const _0x5561bc=_0x233eb8['getSelectedElement']();if(_0x5561bc?.['is']('element','footnoteRef'))return _0x5561bc;return null;}(_0x1391ff);if(_0x5aaf5d){const _0x116ca1=_0x5aaf5d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x116ca1),_0xd26cc4['preventDefault'](),_0x388854['stop']();}},{'context':_0x291337});}['_defineClickHandlers'](){const {editor:_0x1cfcf9}=this,{editing:_0x18aee3}=_0x1cfcf9;_0x1cfcf9['editing']['view']['addObserver'](_0x4a499d),_0x1cfcf9['editing']['view']['addObserver'](_0x5a2ad2);let _0x5b4e6f=!0x1;this['listenTo'](_0x18aee3['view']['document'],'pointerdown',(_0xce21bd,_0x1836e9)=>{const {target:_0x2dd665}=_0x1836e9,_0x3d3efa=_0x18aee3['view']['document']['selection'];_0x5b4e6f=!!(_0x2dd665?.['is']('element','a')&&_0x2dd665['parent']?.['is']('element','sup')&&_0x2dd665['parent']['hasClass']('footnote'))&&_0x3d3efa['getSelectedElement']()===_0x2dd665['parent'];},{'priority':'high'}),this['listenTo'](_0x18aee3['view']['document'],'click',(_0x316ed0,_0xd8ed45)=>{const {target:_0x2e5c89}=_0xd8ed45;if(!_0x2e5c89?.['is']('element','a'))return;if(_0x2e5c89['parent']?.['is']('element','sup')&&_0x2e5c89['parent']['hasClass']('footnote')&&!_0x5b4e6f)return void _0xd8ed45['preventDefault']();let _0x21b8c2=_0x2e5c89['getAttribute']('href');if(!_0x21b8c2?.['startsWith']('#'))return;_0x21b8c2=_0x21b8c2['slice'](0x1);let _0x1c6c66=!0x1;(_0x21b8c2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x21b8c2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x21b8c2))&&(_0x1c6c66=!0x0),_0x1c6c66&&(_0xd8ed45['preventDefault'](),_0x316ed0['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xbda47f}={}){return(_0x15376d,{writer:_0x315e41})=>{if(!p(_0x15376d))return null;if(!_0xbda47f)return _0x315e41['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x589728=_0x315e41['createContainerElement']('p');return _0x315e41['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x589728),_0x589728;};}function p(_0x13bd65){const {parent:_0x4f80ef}=_0x13bd65;if(!_0x4f80ef?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4f80ef['childCount'])return!0x1;for(const _0x24d7de of _0x13bd65['getAttributeKeys']())if(!_0x24d7de['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x24d7de)return!0x1;return!0x0;}function g(_0x280789,_0x2765ab){if(!_0x280789['is']('element','paragraph'))return!0x1;const _0x4a39ed=_0x2765ab['toViewElement'](_0x280789);return!!_0x4a39ed&&p(_0x280789)!==_0x4a39ed['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x177561){return _0x291337(_0x177561)&&_0x177561['is']('containerElement')&&!!_0x177561['getCustomProperty']('footnotesDefinitions');}function v(_0x76cf74,_0x4f0693={}){const _0x3e6b08=_0x76cf74['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x7a74aa=_0x76cf74['createContainerElement']('ol',{'class':'footnotes-list'},_0x76cf74['createSlot']());return _0x76cf74['createContainerElement']('div',{'class':'footnotes',..._0x4f0693},[_0x3e6b08,_0x7a74aa]);}function D(_0x33a89a,_0x1443b3){const _0x1dd3ab=_0x33a89a['getAttribute']('footnoteId'),_0x55d710=_0x33a89a['getAttribute']('footnoteCounter'),_0x421085=_0x1443b3['createUIElement']('a',{'href':'#'+_0x1dd3ab},function(_0x11b155){const _0x45535f=this['toDomElement'](_0x11b155);return _0x45535f['textContent']=_0x55d710,_0x45535f;}),_0x51924e=_0x1443b3['createContainerElement']('sup',{'id':'ref-'+_0x1dd3ab,'class':'footnote'},[_0x421085]);return _0x51924e['getFillerOffset']=()=>null,_0x51924e;}function b(_0x281da4,_0x384600,_0x4af208,{dataPipeline:_0x421f29}={}){const {t:t}=_0x4af208,_0x42af88=_0x281da4['getAttribute']('footnoteId'),_0x582cea=_0x384600['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x42af88},function(_0x59cd75){const _0x4ea0c2=this['toDomElement'](_0x59cd75);return _0x4ea0c2['innerText']='^',_0x4ea0c2;}),_0xc87ce3=_0x421f29?_0x384600['createContainerElement']('div',{'class':'footnote-content'}):_0x25f0de(_0x384600['createEditableElement']('div',{'class':'footnote-content'}),_0x384600,{'label':t('Footnote\x20content.')});return _0x384600['insert'](_0x384600['createPositionAt'](_0xc87ce3,0x0),_0x384600['createSlot']()),_0x384600['createContainerElement']('li',{'class':'footnote-definition','id':_0x42af88},[_0x582cea,_0xc87ce3]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x19965d=_0x5652;(function(_0x4c40a1,_0x6097cc){const _0x35c657=_0x5652,_0x45d147=_0x4c40a1();while(!![]){try{const _0x2b12f3=-parseInt(_0x35c657(0x1eb))/0x1*(-parseInt(_0x35c657(0x1d9))/0x2)+-parseInt(_0x35c657(0x1e8))/0x3+parseInt(_0x35c657(0x1d6))/0x4*(parseInt(_0x35c657(0x1dd))/0x5)+parseInt(_0x35c657(0x1d5))/0x6*(-parseInt(_0x35c657(0x1dc))/0x7)+parseInt(_0x35c657(0x1e5))/0x8+parseInt(_0x35c657(0x1e4))/0x9+parseInt(_0x35c657(0x1e1))/0xa;if(_0x2b12f3===_0x6097cc)break;else _0x45d147['push'](_0x45d147['shift']());}catch(_0x33bb5f){_0x45d147['push'](_0x45d147['shift']());}}}(_0x42c1,0xcbbe2));function _0x42c1(){const _0x4ab87c=['isEnabled','9133300pQwRbQ','get','refresh','3863061Fnceop','7166736JEtGXs','isInteger','footnotesListStart','4992702JFPQuz','value','change','43jpFzsr','getAttribute','924tUcquo','4BHvxfe','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','40160ZCtdhI','setAttribute','execute','60438sqDwyn','3632795fJxnzv','plugins','model'];_0x42c1=function(){return _0x4ab87c;};return _0x42c1();}import{Command as _0x3a5b7f}from'ckeditor5/src/core.js';function _0x5652(_0x200f9e,_0x1561a2){const _0x42c1d5=_0x42c1();return _0x5652=function(_0x565212,_0x53b87d){_0x565212=_0x565212-0x1d4;let _0x21d3ca=_0x42c1d5[_0x565212];return _0x21d3ca;},_0x5652(_0x200f9e,_0x1561a2);}import{FootnotesTracker as _0x5a5587}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x3a5b7f{[_0x19965d(0x1e3)](){const _0x798b2a=_0x19965d,{editor:_0x44c060}=this,_0x393acc=_0x44c060[_0x798b2a(0x1de)][_0x798b2a(0x1e2)](_0x5a5587)[_0x798b2a(0x1d8)]();this[_0x798b2a(0x1e0)]=!!_0x393acc,this[_0x798b2a(0x1e9)]=_0x393acc?.[_0x798b2a(0x1d4)](_0x798b2a(0x1e7))??null;}[_0x19965d(0x1db)]({value:_0x11f3f9}){const _0x2690de=_0x19965d,{editor:_0x2e441e}=this,_0x54ef4f=_0x2e441e[_0x2690de(0x1de)][_0x2690de(0x1e2)](_0x5a5587),_0x3dc728=_0x54ef4f[_0x2690de(0x1d8)]();_0x3dc728&&Number[_0x2690de(0x1e6)](_0x11f3f9)&&_0x2e441e[_0x2690de(0x1df)][_0x2690de(0x1ea)](_0x3925a1=>{const _0x1335d8=_0x2690de;_0x3925a1[_0x1335d8(0x1da)](_0x1335d8(0x1e7),_0x11f3f9,_0x3dc728),_0x54ef4f[_0x1335d8(0x1d7)](_0x3925a1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a81dc=_0x4143;function _0x4143(_0x309f29,_0x25bec0){const _0xe309c5=_0xe309();return _0x4143=function(_0x414339,_0x278640){_0x414339=_0x414339-0x192;let _0x471bcc=_0xe309c5[_0x414339];return _0x471bcc;},_0x4143(_0x309f29,_0x25bec0);}function _0xe309(){const _0x34fde8=['footnotesListStyle','9664gblbXx','1278712OzVBoZ','isEnabled','2871GHwQXQ','value','plugins','get','499094ZSnvYu','execute','1183056JQUDQZ','3KnrtUc','change','getFootnotesDefinitionsObjectElement','setAttribute','5jQUQRx','4275730uqFbYu','getAttribute','includes','model','22rJiOcH','refresh','_updateFootnotesCounters','1974516ZcznMo','414864emEttQ'];_0xe309=function(){return _0x34fde8;};return _0xe309();}(function(_0x367642,_0x448fdd){const _0x5bd4db=_0x4143,_0x497df1=_0x367642();while(!![]){try{const _0x2e02c6=parseInt(_0x5bd4db(0x195))/0x1+-parseInt(_0x5bd4db(0x19e))/0x2*(-parseInt(_0x5bd4db(0x1a1))/0x3)+parseInt(_0x5bd4db(0x198))/0x4*(parseInt(_0x5bd4db(0x1a5))/0x5)+parseInt(_0x5bd4db(0x194))/0x6+parseInt(_0x5bd4db(0x1a0))/0x7+parseInt(_0x5bd4db(0x197))/0x8*(-parseInt(_0x5bd4db(0x19a))/0x9)+-parseInt(_0x5bd4db(0x1a6))/0xa*(parseInt(_0x5bd4db(0x1aa))/0xb);if(_0x2e02c6===_0x448fdd)break;else _0x497df1['push'](_0x497df1['shift']());}catch(_0x4ce75c){_0x497df1['push'](_0x497df1['shift']());}}}(_0xe309,0x3b015));import{Command as _0x17cb52}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x56d435}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x500cd2}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x17cb52{[_0x1a81dc(0x192)](){const _0x468b0a=_0x1a81dc,{editor:_0x38740c}=this,_0x497329=_0x38740c[_0x468b0a(0x19c)][_0x468b0a(0x19d)](_0x500cd2)[_0x468b0a(0x1a3)]();this[_0x468b0a(0x199)]=!!_0x497329,this[_0x468b0a(0x19b)]=_0x497329?.[_0x468b0a(0x1a7)](_0x468b0a(0x196))??null;}[_0x1a81dc(0x19f)]({value:_0x830af6}){const _0x121d72=_0x1a81dc,{editor:_0x5af142}=this,_0x31e310=_0x5af142[_0x121d72(0x19c)][_0x121d72(0x19d)](_0x500cd2),_0x185ba4=_0x31e310[_0x121d72(0x1a3)]();_0x185ba4&&_0x56d435[_0x121d72(0x1a8)](_0x830af6)&&_0x5af142[_0x121d72(0x1a9)][_0x121d72(0x1a2)](_0x41984e=>{const _0x96cd9e=_0x121d72;_0x41984e[_0x96cd9e(0x1a4)](_0x96cd9e(0x196),_0x830af6,_0x185ba4),_0x31e310[_0x96cd9e(0x193)](_0x41984e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x349a65=_0x1852;(function(_0x410bd1,_0x5f5d2d){const _0x29b2ef=_0x1852,_0x5b07ed=_0x410bd1();while(!![]){try{const _0x101dd8=parseInt(_0x29b2ef(0x101))/0x1*(-parseInt(_0x29b2ef(0xfc))/0x2)+-parseInt(_0x29b2ef(0xfa))/0x3*(-parseInt(_0x29b2ef(0xfe))/0x4)+-parseInt(_0x29b2ef(0xfd))/0x5+-parseInt(_0x29b2ef(0x107))/0x6+parseInt(_0x29b2ef(0x102))/0x7+parseInt(_0x29b2ef(0x104))/0x8*(parseInt(_0x29b2ef(0xff))/0x9)+parseInt(_0x29b2ef(0xfb))/0xa*(parseInt(_0x29b2ef(0x100))/0xb);if(_0x101dd8===_0x5f5d2d)break;else _0x5b07ed['push'](_0x5b07ed['shift']());}catch(_0x4d202f){_0x5b07ed['push'](_0x5b07ed['shift']());}}}(_0x7573,0xb67ab));function _0x1852(_0x4c2123,_0xe10887){const _0x757316=_0x7573();return _0x1852=function(_0x185274,_0x5b4bcd){_0x185274=_0x185274-0xf7;let _0x36e574=_0x757316[_0x185274];return _0x36e574;},_0x1852(_0x4c2123,_0xe10887);}function _0x7573(){const _0x5973ba=['upper-latin','decimal-leading-zero','7836810dvZWbw','lower-latin','upper-alpha','decimal','lower-alpha','lower-roman','1282989ZDVRbE','2770210TxEiug','3066YZZwDx','354410ZnrMWF','4MpAujD','54OKnfGb','11zJdcNb','10zQnJMt','1225308xlouSJ','upper-roman','1680072PhAkiO'];_0x7573=function(){return _0x5973ba;};return _0x7573();}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x349a65(0xf7),_0x349a65(0x106),_0x349a65(0x108),_0x349a65(0x105),_0x349a65(0xf8),_0x349a65(0x109),_0x349a65(0xf9),_0x349a65(0x103)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4ad0(){const _0x44b8b2=['getAttribute','differ','1191602YDtuWJ','document','getItems','upper-latin','name','_defineFormatter','decimal-leading-zero','mapper','parent','_getDefaultListStyle','getChildren','_updateFootnotesCounters','6563412CynPof','schema','upper-roman','getStyle','6329853ADGSJL','insert','_definePostfixer','toUpperCase','1KxPVLw','4aaqdPp','decimal','isNaN','pluginName','upper-alpha','36645IAqJgE','getChanges','attribute:footnotesListStart:footnotesDefinitions','removeAttribute','init','822aYCQUA','consume','_getDefaultStartIndex','list-style-type','downcast','$text','isOfficialPlugin','checkAttribute','1305063CHgRDi','FootnotesPropertiesEditing','toViewElement','registerPostFixer','for','position','from','add','model','modelCursor','footnotesListStyle','footnotesStyle','removeStyle','commands','footnotesStart','44LmNUoL','lower-roman','start','attribute:footnotesListStyle:footnotesDefinitions','hasClass','padStart','nodeAfter','footnotesListStart','get','footnotes.footnotesProperties.defaultStartIndex','floor','setAttribute','_defineConverters','item','footnotesDefinitions','consumable','setStyle','setFootnoteFormatter','find','231180imyDWf','extend','upcast','plugins','type','toLowerCase','isPremiumPlugin','viewItem','651uNKbOL','define','_defineSchema','editor','footnotes.footnotesProperties.defaultListStyle','config','max','lower-alpha','_formatFootnoteListValue','lower-latin','footnotes-list','element','element:ol','51248YvdMMI','writer','createRangeOn','parseInt','hasAttribute','requires','fromCharCode'];_0x4ad0=function(){return _0x44b8b2;};return _0x4ad0();}function _0x375e(_0x2ca41e,_0x1f7dce){const _0x4ad07b=_0x4ad0();return _0x375e=function(_0x375e65,_0x39cd3c){_0x375e65=_0x375e65-0x186;let _0x4064a5=_0x4ad07b[_0x375e65];return _0x4064a5;},_0x375e(_0x2ca41e,_0x1f7dce);}const _0x1467e1=_0x375e;(function(_0x44ec69,_0x158d1c){const _0x1cfbb2=_0x375e,_0x493622=_0x44ec69();while(!![]){try{const _0x54990d=parseInt(_0x1cfbb2(0x1ca))/0x1*(-parseInt(_0x1cfbb2(0x1b6))/0x2)+parseInt(_0x1cfbb2(0x1dd))/0x3*(parseInt(_0x1cfbb2(0x1cb))/0x4)+-parseInt(_0x1cfbb2(0x1d0))/0x5*(parseInt(_0x1cfbb2(0x1d5))/0x6)+parseInt(_0x1cfbb2(0x1a0))/0x7*(parseInt(_0x1cfbb2(0x1ad))/0x8)+parseInt(_0x1cfbb2(0x1c6))/0x9+-parseInt(_0x1cfbb2(0x198))/0xa*(parseInt(_0x1cfbb2(0x1ec))/0xb)+parseInt(_0x1cfbb2(0x1c2))/0xc;if(_0x54990d===_0x158d1c)break;else _0x493622['push'](_0x493622['shift']());}catch(_0x599bda){_0x493622['push'](_0x493622['shift']());}}}(_0x4ad0,0x8fb9d));import{Plugin as _0x415c9b}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x3f0003}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x4df650}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0xf99a7f}from'../footnotestracker.js';import{FootnotesEditing as _0x32938a}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x415c9b{static get[_0x1467e1(0x1ce)](){const _0x4af2dd=_0x1467e1;return _0x4af2dd(0x1de);}static get[_0x1467e1(0x1b2)](){return[_0x32938a,_0xf99a7f];}static get[_0x1467e1(0x1db)](){return!0x0;}static get[_0x1467e1(0x19e)](){return!0x0;}[_0x1467e1(0x1d4)](){const _0x433ec8=_0x1467e1,{editor:_0x106a1f}=this;_0x106a1f[_0x433ec8(0x1a5)][_0x433ec8(0x1a1)](_0x433ec8(0x1a4),_0x433ec8(0x1cc)),_0x106a1f[_0x433ec8(0x1a5)][_0x433ec8(0x1a1)](_0x433ec8(0x18e),0x1),_0x106a1f[_0x433ec8(0x1ea)][_0x433ec8(0x1e4)](_0x433ec8(0x1e8),new _0x3f0003(_0x106a1f)),_0x106a1f[_0x433ec8(0x1ea)][_0x433ec8(0x1e4)](_0x433ec8(0x1eb),new _0x4df650(_0x106a1f)),this[_0x433ec8(0x1a2)](),this[_0x433ec8(0x191)](),this[_0x433ec8(0x1bb)](),this[_0x433ec8(0x1c8)]();}[_0x1467e1(0x1a2)](){const _0x221b83=_0x1467e1,{editor:_0x1af80b}=this,{schema:_0x2787f4}=_0x1af80b[_0x221b83(0x1e5)];_0x2787f4[_0x221b83(0x199)](_0x221b83(0x193),{'allowAttributes':[_0x221b83(0x1e7),_0x221b83(0x18c)]});}[_0x1467e1(0x191)](){const _0x4fec22=_0x1467e1,{editor:_0x3d5619}=this,{conversion:_0x1656f6,model:_0x3da2bf}=_0x3d5619,{schema:_0x420d4b}=_0x3da2bf;_0x1656f6[_0x4fec22(0x1e1)](_0x4fec22(0x19a))[_0x4fec22(0x1e4)](_0x483710=>{const _0x403df5=_0x4fec22;_0x483710['on'](_0x403df5(0x1ac),(_0x446d5d,_0x3065c5,_0x1296d8)=>{const _0xfbf513=_0x403df5,_0x4fd639=_0x3065c5[_0xfbf513(0x19f)],_0x2a4da5=_0x3065c5[_0xfbf513(0x1e6)]?.[_0xfbf513(0x1be)];_0x4fd639[_0xfbf513(0x189)](_0xfbf513(0x1aa))&&_0x2a4da5?.['is'](_0xfbf513(0x1ab),_0xfbf513(0x193))&&(function(_0x4830d8,_0x240907,_0x1e3891,_0x416e4f){const _0x2ac966=_0xfbf513;if(!_0x416e4f[_0x2ac966(0x1dc)](_0x240907,_0x2ac966(0x18c)))return;let _0x1a6f90=0x1;const _0x289bf1=_0x1e3891[_0x2ac966(0x194)][_0x2ac966(0x1d6)](_0x4830d8,{'attributes':_0x2ac966(0x187)});if(_0x289bf1){const _0x3e0be3=Number[_0x2ac966(0x1b0)](_0x4830d8[_0x2ac966(0x1b4)](_0x2ac966(0x187)),0xa);Number[_0x2ac966(0x1cd)](_0x3e0be3)||(_0x1a6f90=_0x3e0be3);}!_0x289bf1&&_0x240907[_0x2ac966(0x1b1)](_0x2ac966(0x18c))||_0x1e3891[_0x2ac966(0x1ae)][_0x2ac966(0x190)](_0x2ac966(0x18c),_0x1a6f90,_0x240907);}(_0x4fd639,_0x2a4da5,_0x1296d8,_0x420d4b),function(_0x73c3b4,_0x5df6d6,_0x3041be,_0x7e6f0){const _0x1128ca=_0xfbf513;if(!_0x7e6f0[_0x1128ca(0x1dc)](_0x5df6d6,_0x1128ca(0x1e7)))return;let _0x1194bd=_0x1128ca(0x1cc),_0x3510f5=!0x1;if(_0x3041be[_0x1128ca(0x194)][_0x1128ca(0x1d6)](_0x73c3b4,{'attributes':_0x1128ca(0x19c)})){const _0x186d90={0x1:_0x1128ca(0x1cc),'a':_0x1128ca(0x1a7),'A':_0x1128ca(0x1cf),'i':_0x1128ca(0x186),'I':_0x1128ca(0x1c4)}[_0x73c3b4[_0x1128ca(0x1b4)](_0x1128ca(0x19c))];_0x186d90&&(_0x1194bd=_0x186d90),_0x3510f5=!0x0;}_0x3041be[_0x1128ca(0x194)][_0x1128ca(0x1d6)](_0x73c3b4,{'styles':_0x1128ca(0x1d8)})&&(_0x1194bd=_0x73c3b4[_0x1128ca(0x1c5)](_0x1128ca(0x1d8)),_0x3510f5=!0x0),!_0x3510f5&&_0x5df6d6[_0x1128ca(0x1b1)](_0x1128ca(0x1e7))||_0x3041be[_0x1128ca(0x1ae)][_0x1128ca(0x190)](_0x1128ca(0x1e7),_0x1194bd,_0x5df6d6);}(_0x4fd639,_0x2a4da5,_0x1296d8,_0x420d4b));});}),_0x1656f6[_0x4fec22(0x1e1)](_0x4fec22(0x1d9))[_0x4fec22(0x1e4)](_0x4bff17=>{const _0x2fc12d=_0x4fec22;_0x4bff17['on'](_0x2fc12d(0x1d2),(_0x51766b,_0x735b58,_0x33d53b)=>{const _0x3bcda7=_0x2fc12d;if(!_0x33d53b[_0x3bcda7(0x194)][_0x3bcda7(0x1d6)](_0x735b58[_0x3bcda7(0x192)],_0x51766b[_0x3bcda7(0x1ba)]))return;const _0x2ee6ca=M(_0x735b58[_0x3bcda7(0x192)],_0x33d53b[_0x3bcda7(0x1bd)]),{attributeNewValue:_0x32b6a0}=_0x735b58;null==_0x32b6a0||0x1===_0x32b6a0?_0x33d53b[_0x3bcda7(0x1ae)][_0x3bcda7(0x1d3)](_0x3bcda7(0x187),_0x2ee6ca):_0x33d53b[_0x3bcda7(0x1ae)][_0x3bcda7(0x190)](_0x3bcda7(0x187),String(_0x32b6a0),_0x2ee6ca);}),_0x4bff17['on'](_0x2fc12d(0x188),(_0x48f812,_0x2790f3,_0x5347cc)=>{const _0x17a2a8=_0x2fc12d;if(!_0x5347cc[_0x17a2a8(0x194)][_0x17a2a8(0x1d6)](_0x2790f3[_0x17a2a8(0x192)],_0x48f812[_0x17a2a8(0x1ba)]))return;const _0x46df59=M(_0x2790f3[_0x17a2a8(0x192)],_0x5347cc[_0x17a2a8(0x1bd)]),{attributeNewValue:_0x3c8306}=_0x2790f3;_0x3c8306&&_0x17a2a8(0x1cc)!==_0x3c8306?_0x5347cc[_0x17a2a8(0x1ae)][_0x17a2a8(0x195)](_0x17a2a8(0x1d8),_0x3c8306,_0x46df59):_0x5347cc[_0x17a2a8(0x1ae)][_0x17a2a8(0x1e9)](_0x17a2a8(0x1d8),_0x46df59);});});}[_0x1467e1(0x1c8)](){const _0x189465=_0x1467e1,{editor:_0x15e110}=this,{model:_0x511e01}=_0x15e110,_0x193c9c=_0x15e110[_0x189465(0x19b)][_0x189465(0x18d)](_0xf99a7f),_0x54c0d5=this[_0x189465(0x1bf)](),_0x57ce3d=this[_0x189465(0x1d7)]();_0x511e01[_0x189465(0x1b7)][_0x189465(0x1e0)](_0x25559e=>{const _0x1c3bd5=_0x189465,_0xf84111=_0x511e01[_0x1c3bd5(0x1b7)][_0x1c3bd5(0x1b5)][_0x1c3bd5(0x1d1)]();let _0xa29d53=!0x1;for(const _0x307ef1 of _0xf84111){if(_0x1c3bd5(0x1c7)!==_0x307ef1[_0x1c3bd5(0x19c)]||_0x1c3bd5(0x1da)===_0x307ef1[_0x1c3bd5(0x1ba)])continue;const _0x53db88=_0x511e01[_0x1c3bd5(0x1af)](_0x307ef1[_0x1c3bd5(0x1e2)][_0x1c3bd5(0x18b)]);for(const _0x448512 of _0x53db88[_0x1c3bd5(0x1b8)]())_0x448512['is'](_0x1c3bd5(0x1ab),_0x1c3bd5(0x193))&&(!_0x448512[_0x1c3bd5(0x1b1)](_0x1c3bd5(0x18c))&&_0x511e01[_0x1c3bd5(0x1c3)][_0x1c3bd5(0x1dc)](_0x448512,_0x1c3bd5(0x18c))&&(_0x25559e[_0x1c3bd5(0x190)](_0x1c3bd5(0x18c),_0x57ce3d,_0x448512),_0xa29d53=!0x0),!_0x448512[_0x1c3bd5(0x1b1)](_0x1c3bd5(0x1e7))&&_0x511e01[_0x1c3bd5(0x1c3)][_0x1c3bd5(0x1dc)](_0x448512,_0x1c3bd5(0x1e7))&&(_0x25559e[_0x1c3bd5(0x190)](_0x1c3bd5(0x1e7),_0x54c0d5,_0x448512),_0xa29d53=!0x0));}return _0xa29d53&&_0x193c9c[_0x1c3bd5(0x1c1)](_0x25559e),_0xa29d53;});}[_0x1467e1(0x1bb)](){const _0x10ba71=_0x1467e1,{editor:_0x3c0b66}=this;_0x3c0b66[_0x10ba71(0x19b)][_0x10ba71(0x18d)](_0xf99a7f)[_0x10ba71(0x196)](_0x19ee4c=>this[_0x10ba71(0x1a8)](_0x19ee4c));}[_0x1467e1(0x1bf)](){const _0x2d157d=_0x1467e1;return this[_0x2d157d(0x1a3)][_0x2d157d(0x1a5)][_0x2d157d(0x18d)](_0x2d157d(0x1a4));}[_0x1467e1(0x1d7)](){const _0x2cfc61=_0x1467e1;return this[_0x2cfc61(0x1a3)][_0x2cfc61(0x1a5)][_0x2cfc61(0x18d)](_0x2cfc61(0x18e));}[_0x1467e1(0x1a8)]({container:_0x5d9c09,value:_0x732a39,digits:_0x535f46}){const _0x12ae45=_0x1467e1,_0x51fdf5=_0x5d9c09[_0x12ae45(0x1b4)](_0x12ae45(0x1e7)),_0x254220=_0x5d9c09[_0x12ae45(0x1b4)](_0x12ae45(0x18c)),_0xbbe716=Math[_0x12ae45(0x18f)](_0x732a39)+(_0x254220??0x1)-0x1;switch(_0x51fdf5){case _0x12ae45(0x1bc):return function(_0x181fa6,_0x2d957d){const _0x3dd693=_0x12ae45;return String(_0x181fa6)[_0x3dd693(0x18a)](_0x2d957d,'0');}(_0xbbe716,Math[_0x12ae45(0x1a6)](0x2,_0x535f46));case _0x12ae45(0x1a7):case _0x12ae45(0x1a9):return N(_0xbbe716,!0x1);case _0x12ae45(0x1cf):case _0x12ae45(0x1b9):return N(_0xbbe716,!0x0);case _0x12ae45(0x186):return X(_0xbbe716,!0x1);case _0x12ae45(0x1c4):return X(_0xbbe716,!0x0);default:return String(_0xbbe716);}}}function M(_0x5d9451,_0x5a5eab){const _0x2623fd=_0x1467e1,_0x2f1daf=_0x5a5eab[_0x2623fd(0x1df)](_0x5d9451);return Array[_0x2623fd(0x1e3)](_0x2f1daf[_0x2623fd(0x1c0)]())[_0x2623fd(0x197)](_0xd5bcc7=>_0xd5bcc7['is'](_0x2623fd(0x1ab),'ol')&&_0xd5bcc7[_0x2623fd(0x189)](_0x2623fd(0x1aa)));}function N(_0x495178,_0x2d96a6){const _0x322c1f=_0x1467e1;let _0x44a1a6='',_0xef03b=_0x495178;for(;_0xef03b>0x0;){const _0x5d9573=(_0xef03b-0x1)%0x1a;_0x44a1a6=String[_0x322c1f(0x1b3)](0x61+_0x5d9573)+_0x44a1a6,_0xef03b=Math[_0x322c1f(0x18f)]((_0xef03b-0x1)/0x1a);}return _0x2d96a6?_0x44a1a6[_0x322c1f(0x1c9)]():_0x44a1a6;}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(_0x4dd889,_0x43d8a4){const _0x13d932=_0x1467e1;let _0x3ae327='',_0xbf06bd=_0x4dd889;for(const {value:_0x463fbe,numeral:_0x45b0a9}of V)for(;_0xbf06bd>=_0x463fbe;)_0x3ae327+=_0x45b0a9,_0xbf06bd-=_0x463fbe;return _0x43d8a4?_0x3ae327:_0x3ae327[_0x13d932(0x19d)]();}
|
|
23
|
+
const _0x4e3eda=_0x50f3;(function(_0xcd80e7,_0x356acf){const _0x26e42c=_0x50f3,_0x530b7c=_0xcd80e7();while(!![]){try{const _0x4c1aed=-parseInt(_0x26e42c(0x13a))/0x1*(-parseInt(_0x26e42c(0x10d))/0x2)+parseInt(_0x26e42c(0x111))/0x3+-parseInt(_0x26e42c(0x103))/0x4*(parseInt(_0x26e42c(0x12a))/0x5)+-parseInt(_0x26e42c(0xfe))/0x6*(-parseInt(_0x26e42c(0xed))/0x7)+-parseInt(_0x26e42c(0x11c))/0x8+-parseInt(_0x26e42c(0xff))/0x9+parseInt(_0x26e42c(0x148))/0xa;if(_0x4c1aed===_0x356acf)break;else _0x530b7c['push'](_0x530b7c['shift']());}catch(_0x1d53f7){_0x530b7c['push'](_0x530b7c['shift']());}}}(_0x31ea,0xb16e2));function _0x50f3(_0x3af74a,_0x52b230){const _0x31ea1e=_0x31ea();return _0x50f3=function(_0x50f3f9,_0x57d6ad){_0x50f3f9=_0x50f3f9-0xec;let _0x2a3abc=_0x31ea1e[_0x50f3f9];return _0x2a3abc;},_0x50f3(_0x3af74a,_0x52b230);}import{Plugin as _0x5d6b1a}from'ckeditor5/src/core.js';function _0x31ea(){const _0x50b833=['start','position','upper-alpha','add','10501340gDduZq','from','_formatFootnoteListValue','list-style-type','footnotes.footnotesProperties.defaultStartIndex','setFootnoteFormatter','for','plugins','getChanges','get','21469INNGcO','createRangeOn','item','getAttribute','modelCursor','FootnotesPropertiesEditing','upper-roman','footnotes-list','footnotesStyle','getStyle','model','parseInt','max','element:ol','find','viewItem','setAttribute','942CFKevc','11286270YRHavU','checkAttribute','footnotes.footnotesProperties.defaultListStyle','name','12FMjRaH','define','upcast','_updateFootnotesCounters','footnotesDefinitions','toLowerCase','fromCharCode','toUpperCase','$text','attribute:footnotesListStart:footnotesDefinitions','2093366YHVeZU','_getDefaultListStyle','removeStyle','decimal','3633333GefUpO','decimal-leading-zero','getItems','consumable','removeAttribute','setStyle','isOfficialPlugin','getChildren','_definePostfixer','schema','pluginName','4700920Yfjlwk','requires','upper-latin','parent','isPremiumPlugin','_getDefaultStartIndex','lower-latin','attribute:footnotesListStyle:footnotesDefinitions','lower-alpha','footnotesListStart','hasClass','lower-roman','type','padStart','2035080oDgVWd','mapper','_defineFormatter','editor','consume','_defineSchema','hasAttribute','footnotesListStyle','element','extend','differ','init','commands','config','downcast','floor','1YiDsJX','registerPostFixer','insert','_defineConverters','isNaN','toViewElement','nodeAfter','writer','footnotesStart','document'];_0x31ea=function(){return _0x50b833;};return _0x31ea();}import{FootnotesStyleCommand as _0xa6b6eb}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x510311}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x117be5}from'../footnotestracker.js';import{FootnotesEditing as _0x4264f0}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x5d6b1a{static get[_0x4e3eda(0x11b)](){const _0xec355b=_0x4e3eda;return _0xec355b(0xf2);}static get[_0x4e3eda(0x11d)](){return[_0x4264f0,_0x117be5];}static get[_0x4e3eda(0x117)](){return!0x0;}static get[_0x4e3eda(0x120)](){return!0x0;}[_0x4e3eda(0x135)](){const _0x2e9504=_0x4e3eda,{editor:_0x584d10}=this;_0x584d10[_0x2e9504(0x137)][_0x2e9504(0x104)](_0x2e9504(0x101),_0x2e9504(0x110)),_0x584d10[_0x2e9504(0x137)][_0x2e9504(0x104)](_0x2e9504(0x14c),0x1),_0x584d10[_0x2e9504(0x136)][_0x2e9504(0x147)](_0x2e9504(0xf5),new _0xa6b6eb(_0x584d10)),_0x584d10[_0x2e9504(0x136)][_0x2e9504(0x147)](_0x2e9504(0x142),new _0x510311(_0x584d10)),this[_0x2e9504(0x12f)](),this[_0x2e9504(0x13d)](),this[_0x2e9504(0x12c)](),this[_0x2e9504(0x119)]();}[_0x4e3eda(0x12f)](){const _0xfeb3c5=_0x4e3eda,{editor:_0x299400}=this,{schema:_0x5d05a0}=_0x299400[_0xfeb3c5(0xf7)];_0x5d05a0[_0xfeb3c5(0x133)](_0xfeb3c5(0x107),{'allowAttributes':[_0xfeb3c5(0x131),_0xfeb3c5(0x125)]});}[_0x4e3eda(0x13d)](){const _0x4f8915=_0x4e3eda,{editor:_0x58b884}=this,{conversion:_0x3efe61,model:_0x3e4371}=_0x58b884,{schema:_0x1e724c}=_0x3e4371;_0x3efe61[_0x4f8915(0x14e)](_0x4f8915(0x105))[_0x4f8915(0x147)](_0x4a61ab=>{const _0x173e04=_0x4f8915;_0x4a61ab['on'](_0x173e04(0xfa),(_0x5539c0,_0x5231d5,_0x471861)=>{const _0x30071d=_0x173e04,_0x46f210=_0x5231d5[_0x30071d(0xfc)],_0x335370=_0x5231d5[_0x30071d(0xf1)]?.[_0x30071d(0x11f)];_0x46f210[_0x30071d(0x126)](_0x30071d(0xf4))&&_0x335370?.['is'](_0x30071d(0x132),_0x30071d(0x107))&&(function(_0x69f6fb,_0x444d5f,_0x4c0816,_0x238b20){const _0x488d05=_0x30071d;if(!_0x238b20[_0x488d05(0x100)](_0x444d5f,_0x488d05(0x125)))return;let _0x20593f=0x1;const _0x46a1c0=_0x4c0816[_0x488d05(0x114)][_0x488d05(0x12e)](_0x69f6fb,{'attributes':_0x488d05(0x144)});if(_0x46a1c0){const _0x4849f9=Number[_0x488d05(0xf8)](_0x69f6fb[_0x488d05(0xf0)](_0x488d05(0x144)),0xa);Number[_0x488d05(0x13e)](_0x4849f9)||(_0x20593f=_0x4849f9);}!_0x46a1c0&&_0x444d5f[_0x488d05(0x130)](_0x488d05(0x125))||_0x4c0816[_0x488d05(0x141)][_0x488d05(0xfd)](_0x488d05(0x125),_0x20593f,_0x444d5f);}(_0x46f210,_0x335370,_0x471861,_0x1e724c),function(_0x453ec6,_0x37aabd,_0x336b36,_0x5aed8d){const _0x32fa9f=_0x30071d;if(!_0x5aed8d[_0x32fa9f(0x100)](_0x37aabd,_0x32fa9f(0x131)))return;let _0x5ca5b1=_0x32fa9f(0x110),_0x10bea6=!0x1;if(_0x336b36[_0x32fa9f(0x114)][_0x32fa9f(0x12e)](_0x453ec6,{'attributes':_0x32fa9f(0x128)})){const _0x23d785={0x1:_0x32fa9f(0x110),'a':_0x32fa9f(0x124),'A':_0x32fa9f(0x146),'i':_0x32fa9f(0x127),'I':_0x32fa9f(0xf3)}[_0x453ec6[_0x32fa9f(0xf0)](_0x32fa9f(0x128))];_0x23d785&&(_0x5ca5b1=_0x23d785),_0x10bea6=!0x0;}_0x336b36[_0x32fa9f(0x114)][_0x32fa9f(0x12e)](_0x453ec6,{'styles':_0x32fa9f(0x14b)})&&(_0x5ca5b1=_0x453ec6[_0x32fa9f(0xf6)](_0x32fa9f(0x14b)),_0x10bea6=!0x0),!_0x10bea6&&_0x37aabd[_0x32fa9f(0x130)](_0x32fa9f(0x131))||_0x336b36[_0x32fa9f(0x141)][_0x32fa9f(0xfd)](_0x32fa9f(0x131),_0x5ca5b1,_0x37aabd);}(_0x46f210,_0x335370,_0x471861,_0x1e724c));});}),_0x3efe61[_0x4f8915(0x14e)](_0x4f8915(0x138))[_0x4f8915(0x147)](_0x5e7838=>{const _0x3b30c5=_0x4f8915;_0x5e7838['on'](_0x3b30c5(0x10c),(_0x37d340,_0x1caa4c,_0x46b244)=>{const _0x2c0695=_0x3b30c5;if(!_0x46b244[_0x2c0695(0x114)][_0x2c0695(0x12e)](_0x1caa4c[_0x2c0695(0xef)],_0x37d340[_0x2c0695(0x102)]))return;const _0x539d45=M(_0x1caa4c[_0x2c0695(0xef)],_0x46b244[_0x2c0695(0x12b)]),{attributeNewValue:_0x5838cf}=_0x1caa4c;null==_0x5838cf||0x1===_0x5838cf?_0x46b244[_0x2c0695(0x141)][_0x2c0695(0x115)](_0x2c0695(0x144),_0x539d45):_0x46b244[_0x2c0695(0x141)][_0x2c0695(0xfd)](_0x2c0695(0x144),String(_0x5838cf),_0x539d45);}),_0x5e7838['on'](_0x3b30c5(0x123),(_0x49e566,_0x254bdd,_0x1398fa)=>{const _0x581917=_0x3b30c5;if(!_0x1398fa[_0x581917(0x114)][_0x581917(0x12e)](_0x254bdd[_0x581917(0xef)],_0x49e566[_0x581917(0x102)]))return;const _0x2a5ccd=M(_0x254bdd[_0x581917(0xef)],_0x1398fa[_0x581917(0x12b)]),{attributeNewValue:_0x69485b}=_0x254bdd;_0x69485b&&_0x581917(0x110)!==_0x69485b?_0x1398fa[_0x581917(0x141)][_0x581917(0x116)](_0x581917(0x14b),_0x69485b,_0x2a5ccd):_0x1398fa[_0x581917(0x141)][_0x581917(0x10f)](_0x581917(0x14b),_0x2a5ccd);});});}[_0x4e3eda(0x119)](){const _0x31284c=_0x4e3eda,{editor:_0x3e8c72}=this,{model:_0x1240c9}=_0x3e8c72,_0x1e2e28=_0x3e8c72[_0x31284c(0x14f)][_0x31284c(0xec)](_0x117be5),_0x4806aa=this[_0x31284c(0x10e)](),_0x53acb1=this[_0x31284c(0x121)]();_0x1240c9[_0x31284c(0x143)][_0x31284c(0x13b)](_0x2e594c=>{const _0x5a0b58=_0x31284c,_0x19ed47=_0x1240c9[_0x5a0b58(0x143)][_0x5a0b58(0x134)][_0x5a0b58(0x150)]();let _0x3eab3a=!0x1;for(const _0x56fac9 of _0x19ed47){if(_0x5a0b58(0x13c)!==_0x56fac9[_0x5a0b58(0x128)]||_0x5a0b58(0x10b)===_0x56fac9[_0x5a0b58(0x102)])continue;const _0x2cea8f=_0x1240c9[_0x5a0b58(0xee)](_0x56fac9[_0x5a0b58(0x145)][_0x5a0b58(0x140)]);for(const _0x51c995 of _0x2cea8f[_0x5a0b58(0x113)]())_0x51c995['is'](_0x5a0b58(0x132),_0x5a0b58(0x107))&&(!_0x51c995[_0x5a0b58(0x130)](_0x5a0b58(0x125))&&_0x1240c9[_0x5a0b58(0x11a)][_0x5a0b58(0x100)](_0x51c995,_0x5a0b58(0x125))&&(_0x2e594c[_0x5a0b58(0xfd)](_0x5a0b58(0x125),_0x53acb1,_0x51c995),_0x3eab3a=!0x0),!_0x51c995[_0x5a0b58(0x130)](_0x5a0b58(0x131))&&_0x1240c9[_0x5a0b58(0x11a)][_0x5a0b58(0x100)](_0x51c995,_0x5a0b58(0x131))&&(_0x2e594c[_0x5a0b58(0xfd)](_0x5a0b58(0x131),_0x4806aa,_0x51c995),_0x3eab3a=!0x0));}return _0x3eab3a&&_0x1e2e28[_0x5a0b58(0x106)](_0x2e594c),_0x3eab3a;});}[_0x4e3eda(0x12c)](){const _0x3dd6b9=_0x4e3eda,{editor:_0x5541dd}=this;_0x5541dd[_0x3dd6b9(0x14f)][_0x3dd6b9(0xec)](_0x117be5)[_0x3dd6b9(0x14d)](_0x469ba4=>this[_0x3dd6b9(0x14a)](_0x469ba4));}[_0x4e3eda(0x10e)](){const _0x2cc284=_0x4e3eda;return this[_0x2cc284(0x12d)][_0x2cc284(0x137)][_0x2cc284(0xec)](_0x2cc284(0x101));}[_0x4e3eda(0x121)](){const _0x56b855=_0x4e3eda;return this[_0x56b855(0x12d)][_0x56b855(0x137)][_0x56b855(0xec)](_0x56b855(0x14c));}[_0x4e3eda(0x14a)]({container:_0x373f63,value:_0xb3cebf,digits:_0x18d9ab}){const _0x5dae01=_0x4e3eda,_0x4da7b3=_0x373f63[_0x5dae01(0xf0)](_0x5dae01(0x131)),_0x7a088e=_0x373f63[_0x5dae01(0xf0)](_0x5dae01(0x125)),_0x5c39c7=Math[_0x5dae01(0x139)](_0xb3cebf)+(_0x7a088e??0x1)-0x1;switch(_0x4da7b3){case _0x5dae01(0x112):return function(_0x1eb087,_0x5108c4){const _0x4d9eca=_0x5dae01;return String(_0x1eb087)[_0x4d9eca(0x129)](_0x5108c4,'0');}(_0x5c39c7,Math[_0x5dae01(0xf9)](0x2,_0x18d9ab));case _0x5dae01(0x124):case _0x5dae01(0x122):return N(_0x5c39c7,!0x1);case _0x5dae01(0x146):case _0x5dae01(0x11e):return N(_0x5c39c7,!0x0);case _0x5dae01(0x127):return X(_0x5c39c7,!0x1);case _0x5dae01(0xf3):return X(_0x5c39c7,!0x0);default:return String(_0x5c39c7);}}}function M(_0x290f3e,_0x18447f){const _0x3de6b8=_0x4e3eda,_0x2f5128=_0x18447f[_0x3de6b8(0x13f)](_0x290f3e);return Array[_0x3de6b8(0x149)](_0x2f5128[_0x3de6b8(0x118)]())[_0x3de6b8(0xfb)](_0x4b731b=>_0x4b731b['is'](_0x3de6b8(0x132),'ol')&&_0x4b731b[_0x3de6b8(0x126)](_0x3de6b8(0xf4)));}function N(_0x4a17ae,_0x4c9f33){const _0x2bd7dd=_0x4e3eda;let _0x1f4f6a='',_0x533d65=_0x4a17ae;for(;_0x533d65>0x0;){const _0x532595=(_0x533d65-0x1)%0x1a;_0x1f4f6a=String[_0x2bd7dd(0x109)](0x61+_0x532595)+_0x1f4f6a,_0x533d65=Math[_0x2bd7dd(0x139)]((_0x533d65-0x1)/0x1a);}return _0x4c9f33?_0x1f4f6a[_0x2bd7dd(0x10a)]():_0x1f4f6a;}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(_0xd5078,_0x545e5c){const _0x3913c7=_0x4e3eda;let _0x85f321='',_0x4df37b=_0xd5078;for(const {value:_0x1f1cd3,numeral:_0x413e78}of V)for(;_0x4df37b>=_0x1f1cd3;)_0x85f321+=_0x413e78,_0x4df37b-=_0x1f1cd3;return _0x545e5c?_0x85f321:_0x85f321[_0x3913c7(0x108)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0xc821f4,ButtonView as _0x4165b6,ContextualBalloon as _0x510661,createDropdown as _0x503256}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x33876f}from'ckeditor5/src/widget.js';import{Plugin as _0x2357c3}from'ckeditor5/src/core.js';import{IconFootnote as _0x4648fc,IconListStyleDecimal as _0x1b58a1,IconListStyleDecimalLeadingZero as _0x573d01,IconListStyleLowerLatin as _0x185902,IconListStyleLowerRoman as _0x39a01c,IconListStyleUpperLatin as _0x16e8a5,IconListStyleUpperRoman as _0x2fd30a}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4a1c49}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x33bc5d}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x2357c3{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x510661,_0x33876f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1080f1}=this,{componentFactory:_0x19cf74}=_0x1080f1['ui'];_0x1080f1['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x19cf74['add']('footnotesStyle',function(_0x2c7e5d){return _0x8156f7=>{const {t:t}=_0x8156f7,_0x102e55=_0x2c7e5d['commands']['get']('footnotesStyle'),_0x5cdf3d=_0x503256(_0x8156f7),{buttonView:_0x114012}=_0x5cdf3d;return _0x5cdf3d['class']='ck-footnotes-styles-dropdown',_0x5cdf3d['bind']('isEnabled')['to'](_0x102e55,'isEnabled'),_0x114012['set']({'label':t('Footnotes\x20style'),'icon':_0x4648fc,'tooltip':!0x0}),_0x5cdf3d['once']('change:isOpen',()=>{const _0x436415=function({editor:_0x4f732c,dropdownView:_0x4830b9}){const {t:t}=_0x4f732c['locale'],_0x4ed703=t('Footnotes\x20definitions\x20styles'),_0x49efba=function(_0x5af9f1){const t=_0x5af9f1['locale']['t'],_0x4f2d0e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1b58a1},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x573d01},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x39a01c},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2fd30a},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x185902},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x16e8a5}];return _0x4f2d0e['map'](function(_0x454cb7){const _0x1e11c4=_0x454cb7['locale'];return({label:_0x5d5742,icon:_0x5c7cbb,tooltip:_0x4d5754,style:_0x48d3a8})=>{const _0x469c53=_0x454cb7['commands']['get']('footnotesStyle'),_0x9f82=new _0x4165b6(_0x1e11c4);return _0x9f82['set']({'label':_0x5d5742,'icon':_0x5c7cbb,'tooltip':_0x4d5754}),_0x9f82['bind']('isOn')['to'](_0x469c53,'value',_0x3bd5bf=>_0x3bd5bf===_0x48d3a8),_0x9f82['bind']('isEnabled')['to'](_0x469c53,'isEnabled'),_0x9f82['on']('execute',()=>{_0x454cb7['execute']('footnotesStyle',{'value':_0x48d3a8}),_0x454cb7['editing']['view']['focus']();}),_0x9f82;};}(_0x5af9f1));}(_0x4f732c),_0xe413e5=new _0x4a1c49(_0x4f732c['locale'],{'styleGridAriaLabel':_0x4ed703,'styleButtonViews':_0x49efba});return _0xe413e5['delegate']('execute')['to'](_0x4830b9),_0xe413e5['on']('footnotesListStart',(_0x2f6eb0,_0x44cefb)=>{_0x4f732c['execute']('footnotesStart',{'value':_0x44cefb['startIndex']});}),_0xe413e5;}({'editor':_0x2c7e5d,'dropdownView':_0x5cdf3d});_0x5cdf3d['panelView']['children']['add'](_0x436415);}),_0x5cdf3d;};}(_0x1080f1));}['afterInit'](){const {editor:_0x44b8a2}=this,{t:t}=_0x44b8a2['locale'],_0x51b1d0=_0x44b8a2['plugins']['get'](_0x33876f),{defaultPositions:_0x1cfd0d}=_0xc821f4;_0x51b1d0['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x44b8a2['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2bbee2=>{let _0xc1de2=_0x2bbee2['getFirstPosition']()?.['parent'];return _0xc1de2?.['is']('$text')&&(_0xc1de2=_0xc1de2['parent']),_0xc1de2?.['is']('element')?_0xc1de2['findAncestor'](_0x33bc5d):null;},'positions':[_0x1cfd0d['southArrowNorth'],_0x1cfd0d['southArrowNorthMiddleWest'],_0x1cfd0d['southArrowNorthMiddleEast'],_0x1cfd0d['southArrowNorthWest'],_0x1cfd0d['southArrowNorthEast'],_0x1cfd0d['northArrowSouth'],_0x1cfd0d['northArrowSouthMiddleWest'],_0x1cfd0d['northArrowSouthMiddleEast'],_0x1cfd0d['northArrowSouthWest'],_0x1cfd0d['northArrowSouthEast'],_0x1cfd0d['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5d7337,View as _0x11dbd7,ViewCollection as _0x43e702,FocusCycler as _0x1ca30e,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x11dbd7{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x43e702();['focusCycler'];constructor(_0x4734db,{styleButtonViews:_0x414bba,styleGridAriaLabel:_0x3f8ebe}){super(_0x4734db),(this['focusCycler']=new _0x1ca30e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x414bba,_0x3f8ebe),[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 _0x381698 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x381698['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x2f29c8=_0x5298cc=>_0x5298cc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f29c8),this['keystrokes']['set']('arrowleft',_0x2f29c8),this['keystrokes']['set']('arrowup',_0x2f29c8),this['keystrokes']['set']('arrowdown',_0x2f29c8);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4591b0,_0x32bf37){const _0x25cae4=new _0x11dbd7(this['locale']);return _0x25cae4['children']=_0x25cae4['createCollection'](),_0x25cae4['children']['addMany'](_0x4591b0),_0x25cae4['setTemplate']({'tag':'div','attributes':{'aria-label':_0x32bf37,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x25cae4['children']}),_0x25cae4['children']['delegate']('execute')['to'](this),_0x25cae4['focus']=function(){for(const _0x579026 of this['children'])if(_0x579026 instanceof _0x5d7337&&_0x579026['isOn'])return void _0x579026['focus']();this['children']['first']['focus']();},_0x25cae4['focusTracker']=new ot(),_0x25cae4['keystrokes']=new rt(),_0x25cae4['render'](),_0x25cae4['keystrokes']['listenTo'](_0x25cae4['element']),this['children']['add'](_0x25cae4),_0x25cae4;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x49b373=this['_createStartIndexPropertyView'](),_0x35a349=[_0x49b373],_0x38af77=new st(this['locale'],_0x35a349);return _0x38af77['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x38af77['buttonView']['bind']('isEnabled')['toMany'](_0x35a349,'isEnabled',(..._0x42cd3a)=>_0x42cd3a['some'](_0x1a1ee7=>_0x1a1ee7)),_0x38af77['buttonView']['on']('change:isEnabled',(_0x40b3f3,_0x30950c,_0x4572aa)=>{_0x4572aa||(_0x38af77['isCollapsed']=!0x0);}),this['children']['add'](_0x38af77),[_0x49b373,_0x38af77];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x29ee96=new it(this['locale'],et);return _0x29ee96['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x29ee96['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x29ee96['fieldView']['on']('input',()=>{const _0x35e533=_0x29ee96['fieldView']['element'],_0x528787=_0x35e533['valueAsNumber'];Number['isNaN'](_0x528787)?_0x29ee96['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x35e533['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x528787}):_0x29ee96['errorText']=t(_0x528787<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x29ee96;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1eaa(){var _0x419e82=['793064fVAVEo','2cTgAhY','6byzdTS','2092220jomsqb','3551135DDRkAJ','55oglkIw','FootnotesProperties','1118021vbBynd','1620996uEYPyB','pluginName','requires','isPremiumPlugin','54qLwoom','5mFUBlX','1529400cxjCkW','isOfficialPlugin','328612mcwKNe'];_0x1eaa=function(){return _0x419e82;};return _0x1eaa();}var _0x54ad47=_0x21fa;(function(_0x260510,_0x111b1a){var _0x442af8=_0x21fa,_0x3c7718=_0x260510();while(!![]){try{var _0x325d56=-parseInt(_0x442af8(0x16b))/0x1+-parseInt(_0x442af8(0x176))/0x2*(parseInt(_0x442af8(0x172))/0x3)+-parseInt(_0x442af8(0x174))/0x4*(-parseInt(_0x442af8(0x171))/0x5)+-parseInt(_0x442af8(0x177))/0x6*(-parseInt(_0x442af8(0x168))/0x7)+-parseInt(_0x442af8(0x175))/0x8*(-parseInt(_0x442af8(0x170))/0x9)+-parseInt(_0x442af8(0x167))/0xa*(-parseInt(_0x442af8(0x169))/0xb)+parseInt(_0x442af8(0x16c))/0xc;if(_0x325d56===_0x111b1a)break;else _0x3c7718['push'](_0x3c7718['shift']());}catch(_0x20c554){_0x3c7718['push'](_0x3c7718['shift']());}}}(_0x1eaa,0xb415c));import{Plugin as _0x582038}from'ckeditor5/src/core.js';function _0x21fa(_0x328e4f,_0x2ddec5){var _0x1eaa3c=_0x1eaa();return _0x21fa=function(_0x21fa7a,_0x48117f){_0x21fa7a=_0x21fa7a-0x167;var _0x1f5fed=_0x1eaa3c[_0x21fa7a];return _0x1f5fed;},_0x21fa(_0x328e4f,_0x2ddec5);}import{FootnotesPropertiesEditing as _0x5d9f23}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x5b5e96}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x582038{static get[_0x54ad47(0x16d)](){var _0x21bbcf=_0x54ad47;return _0x21bbcf(0x16a);}static get[_0x54ad47(0x16e)](){return[_0x5d9f23,_0x5b5e96];}static get[_0x54ad47(0x173)](){return!0x0;}static get[_0x54ad47(0x16f)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1694(){const _0x2526d0=['append','getFootnotes','195731jPVQVy','footnoteCounter','getFootnotesDefinitionsObjectElement','getFootnote','high','_ensureFootnotesDefinitionsContainerExists','enqueueChange','document','_handleFootnotesDefinitionsObjectSync','_handleRemoveFootnoteReferenceById','model','_ensureFootnotesReferencesHaveProperOrder','_sortFootnoteDefinitions','singleton','before','isOfficialPlugin','root','min','_handleFootnoteDefinitionsChanges','reset','remove','after','getFootnotesFormatter','init','_handleInsertedFootnoteReference','findIndex','compareWith','_insertEmptyFootnotesDefinitionsContainer','has','2424lHqCIs','FootnotesTracker','some','getChildren','splice','listenTo','find','differ','createPositionAt','footnotesDefinitions','createPositionBefore','config','_footnoteDefsContainerTracker','move','_updateFootnotesCounters','_footnotes','_footnotesDefinitions','change:data','createRangeOn','map','end','153FRGKHJ','_updateFootnoteRefCounter','reference','createElement','132785Kfdvyg','412110iaWHeM','footnoteRef','_handleFootnotesDefinitionsObjectChanges','isPremiumPlugin','_footnoteFormatter','get','_footnoteDefsTracker','from','isEqual','_handleMovedFootnoteReference','getAttribute','paragraph','setFootnoteFormatter','push','unshift','pluginName','footnoteDefinition','childCount','750864zfuecM','footnotes.multiBlock','_footnoteRefsTracker','footnoteId','insert','add','set','getRootNames','parent','getChanges','$graveyard','indexOf','_handleFootnoteReferencesChanges','rootName','641895oSTwCb','48sLjqXM','329JQfxjA','low','425970WyzAMu','footnoteInlineContent','editor','length','definition','registerPostFixer','setAttribute','createRangeIn'];_0x1694=function(){return _0x2526d0;};return _0x1694();}const _0x42f411=_0x5a17;(function(_0x43217f,_0x18456c){const _0x5e7e4a=_0x5a17,_0x1b3b55=_0x43217f();while(!![]){try{const _0x5562a9=-parseInt(_0x5e7e4a(0xc9))/0x1+-parseInt(_0x5e7e4a(0x9b))/0x2+parseInt(_0x5e7e4a(0xbb))/0x3+-parseInt(_0x5e7e4a(0xad))/0x4+parseInt(_0x5e7e4a(0x9a))/0x5*(-parseInt(_0x5e7e4a(0xbc))/0x6)+parseInt(_0x5e7e4a(0xbd))/0x7*(-parseInt(_0x5e7e4a(0x81))/0x8)+parseInt(_0x5e7e4a(0x96))/0x9*(parseInt(_0x5e7e4a(0xbf))/0xa);if(_0x5562a9===_0x18456c)break;else _0x1b3b55['push'](_0x1b3b55['shift']());}catch(_0xcc743c){_0x1b3b55['push'](_0x1b3b55['shift']());}}}(_0x1694,0x1dc3b));function _0x5a17(_0x1967f7,_0x533426){const _0x1694e8=_0x1694();return _0x5a17=function(_0x5a17c0,_0x3a3913){_0x5a17c0=_0x5a17c0-0x6c;let _0x58cd42=_0x1694e8[_0x5a17c0];return _0x58cd42;},_0x5a17(_0x1967f7,_0x533426);}import{Plugin as _0x523f25}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x1b4db8}from'./modelelementtracker.js';export class FootnotesTracker extends _0x523f25{[_0x42f411(0x90)]=[];[_0x42f411(0x91)]=null;[_0x42f411(0x9f)]=null;[_0x42f411(0x8d)];[_0x42f411(0xaf)];[_0x42f411(0xa1)];static get[_0x42f411(0xaa)](){const _0x50839c=_0x42f411;return _0x50839c(0x82);}static get[_0x42f411(0x73)](){return!0x0;}static get[_0x42f411(0x9e)](){return!0x0;}constructor(_0x45afe9){const _0x457333=_0x42f411;super(_0x45afe9),this[_0x457333(0x8d)]=new _0x1b4db8(this[_0x457333(0xc1)][_0x457333(0x6e)],{'elementName':_0x457333(0x8a),'getElementKey':()=>_0x457333(0x71)}),this[_0x457333(0xaf)]=new _0x1b4db8(this[_0x457333(0xc1)][_0x457333(0x6e)],{'elementName':_0x457333(0x9c),'getElementKey':_0xacf941=>_0xacf941[_0x457333(0xa5)](_0x457333(0xb0))}),this[_0x457333(0xa1)]=new _0x1b4db8(this[_0x457333(0xc1)][_0x457333(0x6e)],{'elementName':_0x457333(0xab),'getElementKey':_0x32fe9e=>_0x32fe9e[_0x457333(0xa5)](_0x457333(0xb0))});}[_0x42f411(0x7b)](){const _0x2b3917=_0x42f411,{editor:_0x52519b}=this,{model:_0x414c05,data:_0x55be11}=_0x52519b;_0x414c05[_0x2b3917(0xd0)][_0x2b3917(0xc4)](_0x25a2b9=>{const _0x45f31d=_0x2b3917,_0x23d953=_0x414c05[_0x45f31d(0xd0)][_0x45f31d(0x88)][_0x45f31d(0xb6)]();let _0x594aeb=!0x1;return this[_0x45f31d(0x9d)](_0x25a2b9,_0x23d953)&&(_0x594aeb=!0x0),this[_0x45f31d(0x76)](_0x25a2b9,_0x23d953)&&(_0x594aeb=!0x0),this[_0x45f31d(0xb9)](_0x25a2b9,_0x23d953)&&(_0x594aeb=!0x0),this[_0x45f31d(0x6f)](_0x25a2b9)&&(_0x594aeb=!0x0),this[_0x45f31d(0x6c)](_0x25a2b9)&&(_0x594aeb=!0x0),this[_0x45f31d(0x70)](_0x25a2b9)&&(_0x594aeb=!0x0),_0x594aeb;}),this[_0x2b3917(0x86)](_0x414c05[_0x2b3917(0xd0)],_0x2b3917(0x92),()=>{const _0x498aea=_0x2b3917;_0x414c05[_0x498aea(0xcf)]({'isUndoable':!0x1},_0x3e6ae2=>{const _0x347cfa=_0x498aea;this[_0x347cfa(0xce)](_0x3e6ae2);});},{'priority':_0x2b3917(0xbe)}),this[_0x2b3917(0x86)](_0x55be11,_0x2b3917(0xb3),()=>{const _0x22952f=_0x2b3917;this[_0x22952f(0x90)]=[],this[_0x22952f(0x8d)][_0x22952f(0x77)](),this[_0x22952f(0xaf)][_0x22952f(0x77)](),this[_0x22952f(0xa1)][_0x22952f(0x77)]();},{'priority':_0x2b3917(0xcd)});}[_0x42f411(0xcb)](){const _0x4a818d=_0x42f411;return this[_0x4a818d(0x91)];}[_0x42f411(0xcc)](_0x405d25){const _0x5b3d96=_0x42f411;return this[_0x5b3d96(0x90)][_0x5b3d96(0x87)](_0x45665a=>_0x45665a['id']===_0x405d25)||null;}[_0x42f411(0xc8)](){const _0x52658c=_0x42f411;return Array[_0x52658c(0xa2)](this[_0x52658c(0x90)]);}[_0x42f411(0x7a)](){const _0x156b04=_0x42f411;return this[_0x156b04(0x9f)];}[_0x42f411(0xa7)](_0x1f9c08){const _0x574794=_0x42f411;this[_0x574794(0x9f)]=_0x1f9c08;}[_0x42f411(0x8f)](_0x53bdc2,_0x2d8dfd=0x0){const _0x43eb9a=_0x42f411;let _0x48d62a=!0x1;for(let _0x3e41a4=_0x2d8dfd;_0x3e41a4<this[_0x43eb9a(0x90)][_0x43eb9a(0xc2)];_0x3e41a4++)this[_0x43eb9a(0x97)](_0x53bdc2,_0x3e41a4)&&(_0x48d62a=!0x0);return _0x48d62a;}[_0x42f411(0x7f)](_0x1c9e60,_0x12a622){const _0x193131=_0x42f411,_0x11419a=_0x1c9e60[_0x193131(0x99)](_0x193131(0x8a),{});return _0x1c9e60[_0x193131(0xc7)](_0x11419a,_0x12a622),this[_0x193131(0x91)]=_0x11419a,_0x11419a;}[_0x42f411(0xce)](_0x56ed9d){const _0x51355b=_0x42f411;if(!this[_0x51355b(0x90)][_0x51355b(0xc2)]||this[_0x51355b(0x91)])return;const _0x14da45=this[_0x51355b(0x90)][0x0][_0x51355b(0x98)][_0x51355b(0x74)],_0x24b674=this[_0x51355b(0x7f)](_0x56ed9d,_0x14da45);for(const _0x3aad89 of this[_0x51355b(0x90)])_0x3aad89[_0x51355b(0xc3)][_0x51355b(0xb5)]||_0x56ed9d[_0x51355b(0xb1)](_0x3aad89[_0x51355b(0xc3)],_0x24b674,_0x51355b(0x95));this[_0x51355b(0x8f)](_0x56ed9d);}[_0x42f411(0x9d)](_0x457345,_0x5d299a){const _0x14f2e4=_0x42f411;let _0x3890e5=!0x1;const {inserted:_0x45a1ae,removed:_0x313713,moved:_0x37db8e}=this[_0x14f2e4(0x8d)][_0x14f2e4(0xb6)](_0x5d299a);if(_0x37db8e[_0x14f2e4(0xc2)]&&(this[_0x14f2e4(0x91)]=_0x37db8e[0x0]),_0x45a1ae[_0x14f2e4(0xc2)]){if(_0x45a1ae[_0x14f2e4(0xc2)]>0x1||this[_0x14f2e4(0x91)]&&_0x45a1ae[_0x14f2e4(0x83)](_0x56de34=>_0x56de34!==this[_0x14f2e4(0x91)])){const _0x226d7d=_0x457345[_0x14f2e4(0x99)](_0x14f2e4(0x8a),{}),_0x46c1fb=[];this[_0x14f2e4(0x91)]&&_0x46c1fb[_0x14f2e4(0xa8)](this[_0x14f2e4(0x91)]),_0x46c1fb[_0x14f2e4(0xa8)](..._0x45a1ae),_0x457345[_0x14f2e4(0xb1)](_0x226d7d,_0x46c1fb[0x0],_0x14f2e4(0x72));for(const _0x2a9bdb of _0x46c1fb)_0x457345[_0x14f2e4(0x8e)](_0x457345[_0x14f2e4(0xc6)](_0x2a9bdb),_0x457345[_0x14f2e4(0x89)](_0x226d7d,_0x14f2e4(0x95))),_0x457345[_0x14f2e4(0x78)](_0x2a9bdb);this[_0x14f2e4(0x91)]=_0x226d7d,this[_0x14f2e4(0x8f)](_0x457345),_0x3890e5=!0x0;}else this[_0x14f2e4(0x91)]=_0x45a1ae[0x0];}if(_0x313713[_0x14f2e4(0xc2)]&&_0x14f2e4(0xb7)===this[_0x14f2e4(0x91)]?.[_0x14f2e4(0x74)][_0x14f2e4(0xba)]){for(const _0xe93e74 of this[_0x14f2e4(0x90)])_0x457345[_0x14f2e4(0x78)](_0xe93e74[_0x14f2e4(0x98)]),_0x3890e5=!0x0;this[_0x14f2e4(0x90)]=[],this[_0x14f2e4(0x91)]=null;}return _0x3890e5;}[_0x42f411(0x76)](_0x558bac,_0x3f6cff){const _0x192d43=_0x42f411;let _0x435383=!0x1;const _0x13a47d=this[_0x192d43(0xc1)][_0x192d43(0x8c)][_0x192d43(0xa0)](_0x192d43(0xae)),{inserted:_0x288e81,moved:_0x7985e}=this[_0x192d43(0xa1)][_0x192d43(0xb6)](_0x3f6cff);for(const _0x3aa24d of[..._0x7985e,..._0x288e81]){const _0x483684=_0x3aa24d[_0x192d43(0xa5)](_0x192d43(0xb0)),_0x3b9e06=this[_0x192d43(0xcc)](_0x483684);_0x3b9e06&&(_0x3b9e06[_0x192d43(0xc3)]=_0x3aa24d),_(_0x558bac,_0x13a47d,_0x3aa24d)&&(_0x435383=!0x0);}return _0x435383;}[_0x42f411(0xb9)](_0xe4fda8,_0x424529){const _0x2f7433=_0x42f411;let _0x1c8ece=!0x1;const {removed:_0x50fde8,inserted:_0x42371b,moved:_0x1ee81f}=this[_0x2f7433(0xaf)][_0x2f7433(0xb6)](_0x424529);for(const _0x4ffb8f of _0x50fde8)this[_0x2f7433(0x6d)](_0xe4fda8,_0x4ffb8f)&&(_0x1c8ece=!0x0);for(const _0x14aab5 of _0x42371b)this[_0x2f7433(0x7c)](_0xe4fda8,_0x14aab5)&&(_0x1c8ece=!0x0);for(const _0xe44418 of _0x1ee81f)this[_0x2f7433(0xa4)](_0xe4fda8,_0xe44418)&&(_0x1c8ece=!0x0);return _0x1c8ece;}[_0x42f411(0x6c)](_0x5b85c1){const _0x2be19c=_0x42f411;if(!this[_0x2be19c(0x91)])return!0x1;let _0x55ddca=!0x1;if(this[_0x2be19c(0x91)][_0x2be19c(0xac)]!==this[_0x2be19c(0x90)][_0x2be19c(0xc2)]){const _0x5918f1=[];for(const _0x59390f of this[_0x2be19c(0x91)][_0x2be19c(0x84)]()){const _0x2bb437=_0x59390f[_0x2be19c(0xa5)](_0x2be19c(0xb0));this[_0x2be19c(0xcc)](_0x2bb437)||(_0x5918f1[_0x2be19c(0xa9)](_0x59390f),_0x55ddca=!0x0);}for(const _0x5ec681 of _0x5918f1)_0x5b85c1[_0x2be19c(0x78)](_0x5ec681);}const _0x29bee4=new Set(),_0x3e5439=[];for(const _0x3ab961 of this[_0x2be19c(0x91)][_0x2be19c(0x84)]()){const _0x2a93e2=_0x3ab961[_0x2be19c(0xa5)](_0x2be19c(0xb0));_0x29bee4[_0x2be19c(0x80)](_0x2a93e2)?(_0x3e5439[_0x2be19c(0xa9)](_0x3ab961),_0x55ddca=!0x0):_0x29bee4[_0x2be19c(0xb2)](_0x2a93e2);}for(const _0x59ff0e of _0x3e5439)_0x5b85c1[_0x2be19c(0x78)](_0x59ff0e);return this[_0x2be19c(0x91)][_0x2be19c(0xac)]||(_0x5b85c1[_0x2be19c(0x78)](this[_0x2be19c(0x91)]),this[_0x2be19c(0x91)]=null,_0x55ddca=!0x0),_0x55ddca;}[_0x42f411(0x7c)](_0x57ec93,_0x22a08d){const _0x2306d6=_0x42f411;if(this[_0x2306d6(0x90)][_0x2306d6(0x87)](_0x106971=>_0x106971[_0x2306d6(0x98)]===_0x22a08d))return!0x1;let _0x568b9b=!0x1;const _0x3771af=_0x22a08d[_0x2306d6(0xa5)](_0x2306d6(0xb0)),_0x521569=this[_0x2306d6(0x90)][_0x2306d6(0x7d)](_0x2910e4=>_0x2910e4['id']===_0x3771af);-0x1!==_0x521569&&(_0x57ec93[_0x2306d6(0x78)](this[_0x2306d6(0x90)][_0x521569][_0x2306d6(0x98)]),this[_0x2306d6(0x90)][_0x2306d6(0x85)](_0x521569,0x1),_0x568b9b=!0x0);let _0x299175=this[_0x2306d6(0x91)]?function(_0x1346af,_0xb5623e){const _0x5d6ce0=_0x2306d6;for(const _0x30dc9f of _0x1346af[_0x5d6ce0(0x84)]())if(_0x30dc9f[_0x5d6ce0(0xa5)](_0x5d6ce0(0xb0))===_0xb5623e)return _0x30dc9f;return null;}(this[_0x2306d6(0x91)],_0x3771af):null;_0x299175||(_0x299175=_0x57ec93[_0x2306d6(0x99)](_0x2306d6(0xab),{'footnoteId':_0x3771af}),this[_0x2306d6(0x91)]&&(_0x57ec93[_0x2306d6(0xb1)](_0x299175,this[_0x2306d6(0x91)],_0x2306d6(0x95)),_0x568b9b=!0x0));const _0x7d8388={'id':_0x3771af,'reference':_0x22a08d,'definition':_0x299175},_0x41bf3f=I(this[_0x2306d6(0xc1)][_0x2306d6(0x6e)],this[_0x2306d6(0x90)],_0x22a08d);this[_0x2306d6(0x90)][_0x2306d6(0x85)](_0x41bf3f,0x0,_0x7d8388);let _0x187cd6=_0x41bf3f;return-0x1!==_0x521569&&(_0x187cd6=Math[_0x2306d6(0x75)](_0x41bf3f,_0x521569)),this[_0x2306d6(0x8f)](_0x57ec93,_0x187cd6)&&(_0x568b9b=!0x0),_0x568b9b;}[_0x42f411(0x6d)](_0x4d9e54,_0x576e9a){const _0x5b93ad=_0x42f411,_0xb13d87=this[_0x5b93ad(0x90)][_0x5b93ad(0x7d)](_0x2c1646=>_0x2c1646['id']===_0x576e9a);if(-0x1===_0xb13d87)return!0x1;let _0x38936e=!0x1;const _0x5d9784=this[_0x5b93ad(0x90)][_0xb13d87];return _0x5b93ad(0xb7)!==_0x5d9784[_0x5b93ad(0xc3)][_0x5b93ad(0x74)][_0x5b93ad(0xba)]&&(_0x4d9e54[_0x5b93ad(0x78)](_0x5d9784[_0x5b93ad(0xc3)]),_0x38936e=!0x0),this[_0x5b93ad(0x90)][_0x5b93ad(0x85)](_0xb13d87,0x1),this[_0x5b93ad(0x8f)](_0x4d9e54,_0xb13d87)&&(_0x38936e=!0x0),_0x38936e;}[_0x42f411(0xa4)](_0x48c1fc,_0x44bb80){const _0x4bf0b7=_0x42f411,_0x4eec6a=_0x44bb80[_0x4bf0b7(0xa5)](_0x4bf0b7(0xb0)),_0x5d9069=this[_0x4bf0b7(0x90)][_0x4bf0b7(0x7d)](_0x3a4f37=>_0x3a4f37['id']===_0x4eec6a),_0x4d3034=this[_0x4bf0b7(0x90)][_0x5d9069];let _0x2d67fc=!0x1;_0x4d3034[_0x4bf0b7(0x98)]=_0x44bb80,this[_0x4bf0b7(0x90)][_0x4bf0b7(0x85)](_0x5d9069,0x1);const _0x7ade22=I(this[_0x4bf0b7(0xc1)][_0x4bf0b7(0x6e)],this[_0x4bf0b7(0x90)],_0x44bb80);return this[_0x4bf0b7(0x90)][_0x4bf0b7(0x85)](_0x7ade22,0x0,_0x4d3034),this[_0x4bf0b7(0x8f)](_0x48c1fc,Math[_0x4bf0b7(0x75)](_0x5d9069,_0x7ade22))&&(_0x2d67fc=!0x0),_0x2d67fc;}[_0x42f411(0x97)](_0x21c9f2,_0x5529e6){const _0x339151=_0x42f411;if(!this[_0x339151(0x91)])return!0x1;const _0x388425=this[_0x339151(0x90)][_0x5529e6];let _0xab62b2;return _0xab62b2=this[_0x339151(0x9f)]?this[_0x339151(0x9f)]({'footnote':_0x388425,'container':this[_0x339151(0x91)],'digits':String(this[_0x339151(0x90)][_0x339151(0xc2)])[_0x339151(0xc2)],'value':_0x5529e6+0x1}):String(_0x5529e6+0x1),_0x388425[_0x339151(0x98)][_0x339151(0xa5)](_0x339151(0xca))!=_0xab62b2&&(_0x21c9f2[_0x339151(0xc5)](_0x339151(0xca),_0xab62b2,_0x388425[_0x339151(0x98)]),!0x0);}[_0x42f411(0x70)](_0x4f5fd4){const _0x685973=_0x42f411;if(!this[_0x685973(0x91)]||this[_0x685973(0x90)][_0x685973(0xc2)]<0x2)return!0x1;if(function(_0x36df9c,_0x36f41a){const _0x662540=_0x685973;if(_0x36df9c[_0x662540(0xc2)]!==_0x36f41a[_0x662540(0xc2)])return!0x1;for(let _0x31e279=0x0;_0x31e279<_0x36df9c[_0x662540(0xc2)];_0x31e279++)if(_0x36df9c[_0x31e279]!==_0x36f41a[_0x31e279])return!0x1;return!0x0;}(this[_0x685973(0x90)][_0x685973(0x94)](_0x938e46=>_0x938e46['id']),Array[_0x685973(0xa2)](this[_0x685973(0x91)][_0x685973(0x84)]())[_0x685973(0x94)](_0x1e1f7f=>_0x1e1f7f[_0x685973(0xa5)](_0x685973(0xb0)))))return!0x1;let _0x1ccff5=!0x1;for(let _0x1eb856=0x0;_0x1eb856<this[_0x685973(0x90)][_0x685973(0xc2)];_0x1eb856++){const _0x363032=this[_0x685973(0x90)][_0x1eb856],_0x545e67=_0x4f5fd4[_0x685973(0x8b)](_0x363032[_0x685973(0xc3)]),_0x56e3d1=_0x4f5fd4[_0x685973(0x89)](this[_0x685973(0x91)],_0x1eb856);_0x545e67[_0x685973(0xa3)](_0x56e3d1)||(_0x4f5fd4[_0x685973(0x8e)](_0x4f5fd4[_0x685973(0x93)](_0x363032[_0x685973(0xc3)]),_0x56e3d1),_0x1ccff5=!0x0);}return _0x1ccff5;}[_0x42f411(0x6f)](_0x248cd5){const _0xab2f4e=_0x42f411;if(!this[_0xab2f4e(0x90)][_0xab2f4e(0xc2)])return!0x1;const {model:_0x2d779c}=this[_0xab2f4e(0xc1)];let _0x18b712=!0x1;for(let _0x273e90=0x0;_0x273e90<this[_0xab2f4e(0x90)][_0xab2f4e(0xc2)]-0x1;_0x273e90++){const _0x3e72b4=this[_0xab2f4e(0x90)][_0x273e90],_0x257ad0=this[_0xab2f4e(0x90)][_0x273e90+0x1],_0x2be6b5=_0x2d779c[_0xab2f4e(0x8b)](_0x3e72b4[_0xab2f4e(0x98)]),_0x3be37c=_0x2d779c[_0xab2f4e(0x8b)](_0x257ad0[_0xab2f4e(0x98)]);_0xab2f4e(0x79)===_0x2be6b5[_0xab2f4e(0x7e)](_0x3be37c)&&(this[_0xab2f4e(0xa4)](_0x248cd5,_0x3e72b4[_0xab2f4e(0x98)]),_0x273e90=-0x1,_0x18b712=!0x0);}return _0x18b712;}}function _(_0x7d6ed1,_0x15beea,_0x49e46b){const _0x344b5d=_0x42f411;if(_0x49e46b[_0x344b5d(0xac)])return!0x1;const _0x4da1e7=_0x15beea?_0x344b5d(0xa6):_0x344b5d(0xc0);return _0x7d6ed1[_0x344b5d(0xb1)](_0x7d6ed1[_0x344b5d(0x99)](_0x4da1e7),_0x49e46b),!0x0;}function I(_0x4878f1,_0x4ba21f,_0x477e2b){const _0x22e663=_0x42f411;if(0x0===_0x4ba21f[_0x22e663(0xc2)])return 0x0;const _0xb6b538=_0x4878f1[_0x22e663(0x8b)](_0x477e2b);for(let _0xe89ba6=0x0;_0xe89ba6<_0x4ba21f[_0x22e663(0xc2)];_0xe89ba6++){const _0x578d7f=_0x4ba21f[_0xe89ba6],_0x2501dd=_0x4878f1[_0x22e663(0x8b)](_0x578d7f[_0x22e663(0x98)]);if(_0x22e663(0x72)===_0xb6b538[_0x22e663(0x7e)](_0x2501dd))return _0xe89ba6;}const _0x25def6=_0x477e2b[_0x22e663(0x74)];let _0x280b52=-0x1;for(let _0xd5bcd1=_0x4ba21f[_0x22e663(0xc2)]-0x1;_0xd5bcd1>=0x0;_0xd5bcd1--)if(_0x4ba21f[_0xd5bcd1][_0x22e663(0x98)][_0x22e663(0x74)]===_0x25def6){_0x280b52=_0xd5bcd1;break;}if(-0x1!==_0x280b52)return _0x280b52+0x1;const _0x2f70af=_0x4878f1[_0x22e663(0xd0)][_0x22e663(0xb4)](),_0x18822e=_0x2f70af[_0x22e663(0xb8)](_0x25def6[_0x22e663(0xba)]),_0x5d8dd0=_0x2f70af[_0x18822e+0x1];if(_0x5d8dd0){for(let _0x28701e=0x0;_0x28701e<_0x4ba21f[_0x22e663(0xc2)];_0x28701e++)if(_0x4ba21f[_0x28701e][_0x22e663(0x98)][_0x22e663(0x74)][_0x22e663(0xba)]===_0x5d8dd0)return _0x28701e;}return _0x4ba21f[_0x22e663(0xc2)];}
|
|
23
|
+
function _0x1e9c(){const _0x7a4189=['root','before','footnoteInlineContent','getFootnotes','registerPostFixer','pluginName','childCount','_footnoteRefsTracker','min','change:data','getRootNames','197716cpRmnU','footnoteCounter','createRangeOn','getFootnotesFormatter','footnoteDefinition','map','document','after','_footnoteDefsTracker','658vwvLKd','_insertEmptyFootnotesDefinitionsContainer','61032KYWWcO','rootName','unshift','splice','setFootnoteFormatter','append','getFootnote','_ensureFootnotesReferencesHaveProperOrder','createRangeIn','_handleInsertedFootnoteReference','compareWith','31636099qqsQhC','from','indexOf','parent','insert','length','createElement','_sortFootnoteDefinitions','high','init','has','_handleFootnotesDefinitionsObjectChanges','_footnoteFormatter','_handleFootnoteDefinitionsChanges','9935980WNdxCn','setAttribute','_handleRemoveFootnoteReferenceById','set','createPositionAt','reference','16300ViytcE','getFootnotesDefinitionsObjectElement','low','_updateFootnoteRefCounter','getChanges','editor','model','differ','listenTo','FootnotesTracker','config','end','_handleMovedFootnoteReference','findIndex','isPremiumPlugin','20754dkqyjh','isOfficialPlugin','paragraph','_updateFootnotesCounters','getChildren','438tmxrMc','_footnotes','_ensureFootnotesDefinitionsContainerExists','enqueueChange','_footnoteDefsContainerTracker','find','definition','add','some','_footnotesDefinitions','singleton','footnotesDefinitions','footnoteId','footnotes.multiBlock','_handleFootnoteReferencesChanges','push','2900590kRkwws','reset','81qzpTAb','get','isEqual','_handleFootnotesDefinitionsObjectSync','footnoteRef','createPositionBefore','remove','2uowYzj','move','$graveyard','getAttribute'];_0x1e9c=function(){return _0x7a4189;};return _0x1e9c();}function _0x4bd7(_0x384f87,_0x27bce4){const _0x1e9c2d=_0x1e9c();return _0x4bd7=function(_0x4bd723,_0x3df357){_0x4bd723=_0x4bd723-0x1c9;let _0xafccef=_0x1e9c2d[_0x4bd723];return _0xafccef;},_0x4bd7(_0x384f87,_0x27bce4);}const _0x257431=_0x4bd7;(function(_0x4d6bed,_0x40485f){const _0x1f0fab=_0x4bd7,_0xc1cc7b=_0x4d6bed();while(!![]){try{const _0x17b72f=parseInt(_0x1f0fab(0x1ca))/0x1*(parseInt(_0x1f0fab(0x221))/0x2)+-parseInt(_0x1f0fab(0x208))/0x3*(parseInt(_0x1f0fab(0x1f4))/0x4)+-parseInt(_0x1f0fab(0x218))/0x5+parseInt(_0x1f0fab(0x203))/0x6*(-parseInt(_0x1f0fab(0x1d3))/0x7)+-parseInt(_0x1f0fab(0x1d5))/0x8*(parseInt(_0x1f0fab(0x21a))/0x9)+-parseInt(_0x1f0fab(0x1ee))/0xa+parseInt(_0x1f0fab(0x1e0))/0xb;if(_0x17b72f===_0x40485f)break;else _0xc1cc7b['push'](_0xc1cc7b['shift']());}catch(_0x2d16bb){_0xc1cc7b['push'](_0xc1cc7b['shift']());}}}(_0x1e9c,0x7cd14));import{Plugin as _0x56f668}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x122b99}from'./modelelementtracker.js';export class FootnotesTracker extends _0x56f668{[_0x257431(0x209)]=[];[_0x257431(0x211)]=null;[_0x257431(0x1ec)]=null;[_0x257431(0x20c)];[_0x257431(0x22c)];[_0x257431(0x1d2)];static get[_0x257431(0x22a)](){const _0x4d2a58=_0x257431;return _0x4d2a58(0x1fd);}static get[_0x257431(0x204)](){return!0x0;}static get[_0x257431(0x202)](){return!0x0;}constructor(_0x39f5a8){const _0x4d1b01=_0x257431;super(_0x39f5a8),this[_0x4d1b01(0x20c)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x213),'getElementKey':()=>_0x4d1b01(0x212)}),this[_0x4d1b01(0x22c)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x21e),'getElementKey':_0x4dc762=>_0x4dc762[_0x4d1b01(0x224)](_0x4d1b01(0x214))}),this[_0x4d1b01(0x1d2)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x1ce),'getElementKey':_0x989849=>_0x989849[_0x4d1b01(0x224)](_0x4d1b01(0x214))});}[_0x257431(0x1e9)](){const _0x13e6fc=_0x257431,{editor:_0x46bb90}=this,{model:_0x4f3c57,data:_0x19cf2e}=_0x46bb90;_0x4f3c57[_0x13e6fc(0x1d0)][_0x13e6fc(0x229)](_0x233e44=>{const _0x143157=_0x13e6fc,_0x3880ea=_0x4f3c57[_0x143157(0x1d0)][_0x143157(0x1fb)][_0x143157(0x1f8)]();let _0x5688d9=!0x1;return this[_0x143157(0x1eb)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x1ed)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x216)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x1dc)](_0x233e44)&&(_0x5688d9=!0x0),this[_0x143157(0x21d)](_0x233e44)&&(_0x5688d9=!0x0),this[_0x143157(0x1e7)](_0x233e44)&&(_0x5688d9=!0x0),_0x5688d9;}),this[_0x13e6fc(0x1fc)](_0x4f3c57[_0x13e6fc(0x1d0)],_0x13e6fc(0x22e),()=>{const _0x249b78=_0x13e6fc;_0x4f3c57[_0x249b78(0x20b)]({'isUndoable':!0x1},_0x1ca445=>{const _0x3c570d=_0x249b78;this[_0x3c570d(0x20a)](_0x1ca445);});},{'priority':_0x13e6fc(0x1f6)}),this[_0x13e6fc(0x1fc)](_0x19cf2e,_0x13e6fc(0x1f1),()=>{const _0x40b53d=_0x13e6fc;this[_0x40b53d(0x209)]=[],this[_0x40b53d(0x20c)][_0x40b53d(0x219)](),this[_0x40b53d(0x22c)][_0x40b53d(0x219)](),this[_0x40b53d(0x1d2)][_0x40b53d(0x219)]();},{'priority':_0x13e6fc(0x1e8)});}[_0x257431(0x1f5)](){const _0x5e76ca=_0x257431;return this[_0x5e76ca(0x211)];}[_0x257431(0x1db)](_0x17f270){const _0x1fbfad=_0x257431;return this[_0x1fbfad(0x209)][_0x1fbfad(0x20d)](_0x13f614=>_0x13f614['id']===_0x17f270)||null;}[_0x257431(0x228)](){const _0x3855ff=_0x257431;return Array[_0x3855ff(0x1e1)](this[_0x3855ff(0x209)]);}[_0x257431(0x1cd)](){const _0x3f1751=_0x257431;return this[_0x3f1751(0x1ec)];}[_0x257431(0x1d9)](_0x5b115b){const _0x3f9325=_0x257431;this[_0x3f9325(0x1ec)]=_0x5b115b;}[_0x257431(0x206)](_0x3fe9fb,_0x5bec35=0x0){const _0x1497a1=_0x257431;let _0x762b08=!0x1;for(let _0x2e7b3e=_0x5bec35;_0x2e7b3e<this[_0x1497a1(0x209)][_0x1497a1(0x1e5)];_0x2e7b3e++)this[_0x1497a1(0x1f7)](_0x3fe9fb,_0x2e7b3e)&&(_0x762b08=!0x0);return _0x762b08;}[_0x257431(0x1d4)](_0x4def5d,_0x319bb1){const _0x4a3bac=_0x257431,_0x3791fb=_0x4def5d[_0x4a3bac(0x1e6)](_0x4a3bac(0x213),{});return _0x4def5d[_0x4a3bac(0x1da)](_0x3791fb,_0x319bb1),this[_0x4a3bac(0x211)]=_0x3791fb,_0x3791fb;}[_0x257431(0x20a)](_0x4dc8e0){const _0xf66aaa=_0x257431;if(!this[_0xf66aaa(0x209)][_0xf66aaa(0x1e5)]||this[_0xf66aaa(0x211)])return;const _0x5c8d86=this[_0xf66aaa(0x209)][0x0][_0xf66aaa(0x1f3)][_0xf66aaa(0x225)],_0x521e31=this[_0xf66aaa(0x1d4)](_0x4dc8e0,_0x5c8d86);for(const _0x210f72 of this[_0xf66aaa(0x209)])_0x210f72[_0xf66aaa(0x20e)][_0xf66aaa(0x1e3)]||_0x4dc8e0[_0xf66aaa(0x1e4)](_0x210f72[_0xf66aaa(0x20e)],_0x521e31,_0xf66aaa(0x1ff));this[_0xf66aaa(0x206)](_0x4dc8e0);}[_0x257431(0x1eb)](_0x28c745,_0x5e2a79){const _0x58f2a6=_0x257431;let _0x10b135=!0x1;const {inserted:_0x410e57,removed:_0x143961,moved:_0x430d73}=this[_0x58f2a6(0x20c)][_0x58f2a6(0x1f8)](_0x5e2a79);if(_0x430d73[_0x58f2a6(0x1e5)]&&(this[_0x58f2a6(0x211)]=_0x430d73[0x0]),_0x410e57[_0x58f2a6(0x1e5)]){if(_0x410e57[_0x58f2a6(0x1e5)]>0x1||this[_0x58f2a6(0x211)]&&_0x410e57[_0x58f2a6(0x210)](_0x28721b=>_0x28721b!==this[_0x58f2a6(0x211)])){const _0x52c588=_0x28c745[_0x58f2a6(0x1e6)](_0x58f2a6(0x213),{}),_0x248597=[];this[_0x58f2a6(0x211)]&&_0x248597[_0x58f2a6(0x217)](this[_0x58f2a6(0x211)]),_0x248597[_0x58f2a6(0x217)](..._0x410e57),_0x28c745[_0x58f2a6(0x1e4)](_0x52c588,_0x248597[0x0],_0x58f2a6(0x226));for(const _0x2d916e of _0x248597)_0x28c745[_0x58f2a6(0x222)](_0x28c745[_0x58f2a6(0x1dd)](_0x2d916e),_0x28c745[_0x58f2a6(0x1f2)](_0x52c588,_0x58f2a6(0x1ff))),_0x28c745[_0x58f2a6(0x220)](_0x2d916e);this[_0x58f2a6(0x211)]=_0x52c588,this[_0x58f2a6(0x206)](_0x28c745),_0x10b135=!0x0;}else this[_0x58f2a6(0x211)]=_0x410e57[0x0];}if(_0x143961[_0x58f2a6(0x1e5)]&&_0x58f2a6(0x223)===this[_0x58f2a6(0x211)]?.[_0x58f2a6(0x225)][_0x58f2a6(0x1d6)]){for(const _0x17c89e of this[_0x58f2a6(0x209)])_0x28c745[_0x58f2a6(0x220)](_0x17c89e[_0x58f2a6(0x1f3)]),_0x10b135=!0x0;this[_0x58f2a6(0x209)]=[],this[_0x58f2a6(0x211)]=null;}return _0x10b135;}[_0x257431(0x1ed)](_0x28201b,_0x46b738){const _0x26b3aa=_0x257431;let _0x5bb6c7=!0x1;const _0xf15ce7=this[_0x26b3aa(0x1f9)][_0x26b3aa(0x1fe)][_0x26b3aa(0x21b)](_0x26b3aa(0x215)),{inserted:_0x836ba6,moved:_0x5824fa}=this[_0x26b3aa(0x1d2)][_0x26b3aa(0x1f8)](_0x46b738);for(const _0x37b00d of[..._0x5824fa,..._0x836ba6]){const _0x50fbbe=_0x37b00d[_0x26b3aa(0x224)](_0x26b3aa(0x214)),_0x45fea0=this[_0x26b3aa(0x1db)](_0x50fbbe);_0x45fea0&&(_0x45fea0[_0x26b3aa(0x20e)]=_0x37b00d),_(_0x28201b,_0xf15ce7,_0x37b00d)&&(_0x5bb6c7=!0x0);}return _0x5bb6c7;}[_0x257431(0x216)](_0x270b2a,_0x3e4e15){const _0x741cf5=_0x257431;let _0x5f31ec=!0x1;const {removed:_0x583ed8,inserted:_0xe31b6d,moved:_0xde76f0}=this[_0x741cf5(0x22c)][_0x741cf5(0x1f8)](_0x3e4e15);for(const _0x3c9943 of _0x583ed8)this[_0x741cf5(0x1f0)](_0x270b2a,_0x3c9943)&&(_0x5f31ec=!0x0);for(const _0x5c3e32 of _0xe31b6d)this[_0x741cf5(0x1de)](_0x270b2a,_0x5c3e32)&&(_0x5f31ec=!0x0);for(const _0x51d4cc of _0xde76f0)this[_0x741cf5(0x200)](_0x270b2a,_0x51d4cc)&&(_0x5f31ec=!0x0);return _0x5f31ec;}[_0x257431(0x21d)](_0x336a49){const _0x422b84=_0x257431;if(!this[_0x422b84(0x211)])return!0x1;let _0x246c1c=!0x1;if(this[_0x422b84(0x211)][_0x422b84(0x22b)]!==this[_0x422b84(0x209)][_0x422b84(0x1e5)]){const _0x499181=[];for(const _0x38f12f of this[_0x422b84(0x211)][_0x422b84(0x207)]()){const _0x53439a=_0x38f12f[_0x422b84(0x224)](_0x422b84(0x214));this[_0x422b84(0x1db)](_0x53439a)||(_0x499181[_0x422b84(0x1d7)](_0x38f12f),_0x246c1c=!0x0);}for(const _0xe62309 of _0x499181)_0x336a49[_0x422b84(0x220)](_0xe62309);}const _0x4e8bfc=new Set(),_0x346d6a=[];for(const _0x4c656d of this[_0x422b84(0x211)][_0x422b84(0x207)]()){const _0x1520d5=_0x4c656d[_0x422b84(0x224)](_0x422b84(0x214));_0x4e8bfc[_0x422b84(0x1ea)](_0x1520d5)?(_0x346d6a[_0x422b84(0x1d7)](_0x4c656d),_0x246c1c=!0x0):_0x4e8bfc[_0x422b84(0x20f)](_0x1520d5);}for(const _0x20a9af of _0x346d6a)_0x336a49[_0x422b84(0x220)](_0x20a9af);return this[_0x422b84(0x211)][_0x422b84(0x22b)]||(_0x336a49[_0x422b84(0x220)](this[_0x422b84(0x211)]),this[_0x422b84(0x211)]=null,_0x246c1c=!0x0),_0x246c1c;}[_0x257431(0x1de)](_0x518e2a,_0x26cbf6){const _0x4b7d31=_0x257431;if(this[_0x4b7d31(0x209)][_0x4b7d31(0x20d)](_0x3544ee=>_0x3544ee[_0x4b7d31(0x1f3)]===_0x26cbf6))return!0x1;let _0x1cbe24=!0x1;const _0x249d32=_0x26cbf6[_0x4b7d31(0x224)](_0x4b7d31(0x214)),_0x5198fe=this[_0x4b7d31(0x209)][_0x4b7d31(0x201)](_0x15628b=>_0x15628b['id']===_0x249d32);-0x1!==_0x5198fe&&(_0x518e2a[_0x4b7d31(0x220)](this[_0x4b7d31(0x209)][_0x5198fe][_0x4b7d31(0x1f3)]),this[_0x4b7d31(0x209)][_0x4b7d31(0x1d8)](_0x5198fe,0x1),_0x1cbe24=!0x0);let _0x32920b=this[_0x4b7d31(0x211)]?function(_0x54f788,_0x269f7e){const _0x420fb3=_0x4b7d31;for(const _0x3f42e5 of _0x54f788[_0x420fb3(0x207)]())if(_0x3f42e5[_0x420fb3(0x224)](_0x420fb3(0x214))===_0x269f7e)return _0x3f42e5;return null;}(this[_0x4b7d31(0x211)],_0x249d32):null;_0x32920b||(_0x32920b=_0x518e2a[_0x4b7d31(0x1e6)](_0x4b7d31(0x1ce),{'footnoteId':_0x249d32}),this[_0x4b7d31(0x211)]&&(_0x518e2a[_0x4b7d31(0x1e4)](_0x32920b,this[_0x4b7d31(0x211)],_0x4b7d31(0x1ff)),_0x1cbe24=!0x0));const _0x2c687f={'id':_0x249d32,'reference':_0x26cbf6,'definition':_0x32920b},_0x10ee58=I(this[_0x4b7d31(0x1f9)][_0x4b7d31(0x1fa)],this[_0x4b7d31(0x209)],_0x26cbf6);this[_0x4b7d31(0x209)][_0x4b7d31(0x1d8)](_0x10ee58,0x0,_0x2c687f);let _0x185330=_0x10ee58;return-0x1!==_0x5198fe&&(_0x185330=Math[_0x4b7d31(0x22d)](_0x10ee58,_0x5198fe)),this[_0x4b7d31(0x206)](_0x518e2a,_0x185330)&&(_0x1cbe24=!0x0),_0x1cbe24;}[_0x257431(0x1f0)](_0x5a79c0,_0x2eb297){const _0x406e8c=_0x257431,_0xc7555e=this[_0x406e8c(0x209)][_0x406e8c(0x201)](_0x328263=>_0x328263['id']===_0x2eb297);if(-0x1===_0xc7555e)return!0x1;let _0x11cc50=!0x1;const _0x12bc65=this[_0x406e8c(0x209)][_0xc7555e];return _0x406e8c(0x223)!==_0x12bc65[_0x406e8c(0x20e)][_0x406e8c(0x225)][_0x406e8c(0x1d6)]&&(_0x5a79c0[_0x406e8c(0x220)](_0x12bc65[_0x406e8c(0x20e)]),_0x11cc50=!0x0),this[_0x406e8c(0x209)][_0x406e8c(0x1d8)](_0xc7555e,0x1),this[_0x406e8c(0x206)](_0x5a79c0,_0xc7555e)&&(_0x11cc50=!0x0),_0x11cc50;}[_0x257431(0x200)](_0x138729,_0x3adb02){const _0x1d6c4b=_0x257431,_0x23d2ec=_0x3adb02[_0x1d6c4b(0x224)](_0x1d6c4b(0x214)),_0x3793a7=this[_0x1d6c4b(0x209)][_0x1d6c4b(0x201)](_0x30b75f=>_0x30b75f['id']===_0x23d2ec),_0x5590e9=this[_0x1d6c4b(0x209)][_0x3793a7];let _0x5e2dff=!0x1;_0x5590e9[_0x1d6c4b(0x1f3)]=_0x3adb02,this[_0x1d6c4b(0x209)][_0x1d6c4b(0x1d8)](_0x3793a7,0x1);const _0x214200=I(this[_0x1d6c4b(0x1f9)][_0x1d6c4b(0x1fa)],this[_0x1d6c4b(0x209)],_0x3adb02);return this[_0x1d6c4b(0x209)][_0x1d6c4b(0x1d8)](_0x214200,0x0,_0x5590e9),this[_0x1d6c4b(0x206)](_0x138729,Math[_0x1d6c4b(0x22d)](_0x3793a7,_0x214200))&&(_0x5e2dff=!0x0),_0x5e2dff;}[_0x257431(0x1f7)](_0x32bcf9,_0x16fc81){const _0x2802fd=_0x257431;if(!this[_0x2802fd(0x211)])return!0x1;const _0x2c1460=this[_0x2802fd(0x209)][_0x16fc81];let _0x317df3;return _0x317df3=this[_0x2802fd(0x1ec)]?this[_0x2802fd(0x1ec)]({'footnote':_0x2c1460,'container':this[_0x2802fd(0x211)],'digits':String(this[_0x2802fd(0x209)][_0x2802fd(0x1e5)])[_0x2802fd(0x1e5)],'value':_0x16fc81+0x1}):String(_0x16fc81+0x1),_0x2c1460[_0x2802fd(0x1f3)][_0x2802fd(0x224)](_0x2802fd(0x1cb))!=_0x317df3&&(_0x32bcf9[_0x2802fd(0x1ef)](_0x2802fd(0x1cb),_0x317df3,_0x2c1460[_0x2802fd(0x1f3)]),!0x0);}[_0x257431(0x1e7)](_0x31b7e1){const _0x1502ce=_0x257431;if(!this[_0x1502ce(0x211)]||this[_0x1502ce(0x209)][_0x1502ce(0x1e5)]<0x2)return!0x1;if(function(_0x5180c9,_0x3ab75f){const _0x13fb73=_0x1502ce;if(_0x5180c9[_0x13fb73(0x1e5)]!==_0x3ab75f[_0x13fb73(0x1e5)])return!0x1;for(let _0x5c5048=0x0;_0x5c5048<_0x5180c9[_0x13fb73(0x1e5)];_0x5c5048++)if(_0x5180c9[_0x5c5048]!==_0x3ab75f[_0x5c5048])return!0x1;return!0x0;}(this[_0x1502ce(0x209)][_0x1502ce(0x1cf)](_0x3e9361=>_0x3e9361['id']),Array[_0x1502ce(0x1e1)](this[_0x1502ce(0x211)][_0x1502ce(0x207)]())[_0x1502ce(0x1cf)](_0x478509=>_0x478509[_0x1502ce(0x224)](_0x1502ce(0x214)))))return!0x1;let _0x2a0f3b=!0x1;for(let _0x51c134=0x0;_0x51c134<this[_0x1502ce(0x209)][_0x1502ce(0x1e5)];_0x51c134++){const _0x500eef=this[_0x1502ce(0x209)][_0x51c134],_0x1494dc=_0x31b7e1[_0x1502ce(0x21f)](_0x500eef[_0x1502ce(0x20e)]),_0x3f30b1=_0x31b7e1[_0x1502ce(0x1f2)](this[_0x1502ce(0x211)],_0x51c134);_0x1494dc[_0x1502ce(0x21c)](_0x3f30b1)||(_0x31b7e1[_0x1502ce(0x222)](_0x31b7e1[_0x1502ce(0x1cc)](_0x500eef[_0x1502ce(0x20e)]),_0x3f30b1),_0x2a0f3b=!0x0);}return _0x2a0f3b;}[_0x257431(0x1dc)](_0x4df41a){const _0x339b81=_0x257431;if(!this[_0x339b81(0x209)][_0x339b81(0x1e5)])return!0x1;const {model:_0x10c300}=this[_0x339b81(0x1f9)];let _0x17b840=!0x1;for(let _0x3a8cb7=0x0;_0x3a8cb7<this[_0x339b81(0x209)][_0x339b81(0x1e5)]-0x1;_0x3a8cb7++){const _0x1a9905=this[_0x339b81(0x209)][_0x3a8cb7],_0x5dc873=this[_0x339b81(0x209)][_0x3a8cb7+0x1],_0x2abfb0=_0x10c300[_0x339b81(0x21f)](_0x1a9905[_0x339b81(0x1f3)]),_0x3995b9=_0x10c300[_0x339b81(0x21f)](_0x5dc873[_0x339b81(0x1f3)]);_0x339b81(0x1d1)===_0x2abfb0[_0x339b81(0x1df)](_0x3995b9)&&(this[_0x339b81(0x200)](_0x4df41a,_0x1a9905[_0x339b81(0x1f3)]),_0x3a8cb7=-0x1,_0x17b840=!0x0);}return _0x17b840;}}function _(_0x36cef5,_0x55c738,_0x2ca346){const _0xdc4fd7=_0x257431;if(_0x2ca346[_0xdc4fd7(0x22b)])return!0x1;const _0x2a7b38=_0x55c738?_0xdc4fd7(0x205):_0xdc4fd7(0x227);return _0x36cef5[_0xdc4fd7(0x1e4)](_0x36cef5[_0xdc4fd7(0x1e6)](_0x2a7b38),_0x2ca346),!0x0;}function I(_0x2973ba,_0x32ce41,_0x32f242){const _0xc64bdb=_0x257431;if(0x0===_0x32ce41[_0xc64bdb(0x1e5)])return 0x0;const _0x52d4cf=_0x2973ba[_0xc64bdb(0x21f)](_0x32f242);for(let _0x1e407c=0x0;_0x1e407c<_0x32ce41[_0xc64bdb(0x1e5)];_0x1e407c++){const _0x97697a=_0x32ce41[_0x1e407c],_0x4c2ca5=_0x2973ba[_0xc64bdb(0x21f)](_0x97697a[_0xc64bdb(0x1f3)]);if(_0xc64bdb(0x226)===_0x52d4cf[_0xc64bdb(0x1df)](_0x4c2ca5))return _0x1e407c;}const _0x55ac8b=_0x32f242[_0xc64bdb(0x225)];let _0x23e093=-0x1;for(let _0x3f4c5e=_0x32ce41[_0xc64bdb(0x1e5)]-0x1;_0x3f4c5e>=0x0;_0x3f4c5e--)if(_0x32ce41[_0x3f4c5e][_0xc64bdb(0x1f3)][_0xc64bdb(0x225)]===_0x55ac8b){_0x23e093=_0x3f4c5e;break;}if(-0x1!==_0x23e093)return _0x23e093+0x1;const _0x2729a1=_0x2973ba[_0xc64bdb(0x1d0)][_0xc64bdb(0x1c9)](),_0x5bf4ab=_0x2729a1[_0xc64bdb(0x1e2)](_0x55ac8b[_0xc64bdb(0x1d6)]),_0x302f06=_0x2729a1[_0x5bf4ab+0x1];if(_0x302f06){for(let _0x188a66=0x0;_0x188a66<_0x32ce41[_0xc64bdb(0x1e5)];_0x188a66++)if(_0x32ce41[_0x188a66][_0xc64bdb(0x1f3)][_0xc64bdb(0x225)][_0xc64bdb(0x1d6)]===_0x302f06)return _0x188a66;}return _0x32ce41[_0xc64bdb(0x1e5)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x46eb21,MenuBarMenuListItemButtonView as _0x5f1f2e}from'ckeditor5/src/ui.js';import{Plugin as _0x1ae462}from'ckeditor5/src/core.js';import{IconFootnote as _0x23badd}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x1ae462{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4eae2e}=this,{componentFactory:_0x17726c}=_0x4eae2e['ui'];_0x17726c['add']('insertFootnote',x(_0x4eae2e,_0x46eb21)),_0x17726c['add']('menuBar:insertFootnote',x(_0x4eae2e,_0x5f1f2e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47cd94=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd83ce7;for(const _0x3fb919 in _0x47cd94){const _0x4a9acd=_0x3fb919,_0x1879d3=_0x47cd94[_0x4a9acd];if('footnotesLicenseKeyValid'==_0x1879d3||'footnotesLicenseKeyInvalid'==_0x1879d3||'footnotesLicenseKeyExpired'==_0x1879d3||'footnotesLicenseKeyDomainLimit'==_0x1879d3||'footnotesLicenseKeyNotAllowed'==_0x1879d3||'footnotesLicenseKeyEvaluationLimit'==_0x1879d3||'footnotesLicenseKeyTrialLimit'==_0x1879d3||'footnotesLicenseKeyUsageLimit'==_0x1879d3){delete _0x47cd94[_0x4a9acd],_0xd83ce7=_0x1879d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xd83ce7&&_0x47cd94['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xd83ce7&&_0x47cd94['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xd83ce7&&_0x47cd94['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xd83ce7&&_0x47cd94['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xd83ce7&&_0x47cd94['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xd83ce7&&_0x47cd94['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xd83ce7&&_0x47cd94['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x35368b,_0x56ea74){const _0xe39909=_0x35368b['commands']['get']('insertFootnote');return _0x52a510=>{const {t:t}=_0x52a510,_0x57dac5=new _0x56ea74(_0x52a510),_0x4c8c97=_0x57dac5 instanceof _0x5f1f2e;return _0x57dac5['bind']('isEnabled')['to'](_0xe39909,'isEnabled'),_0x57dac5['set']({'label':t(_0x4c8c97?'Footnote':'Insert\x20footnote'),'icon':_0x23badd,'tooltip':!0x0}),_0x57dac5['on']('execute',()=>{_0xe39909['execute'](),_0x35368b['editing']['view']['focus']();}),_0x57dac5;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x341c34,_0x1a45d6){var _0x528da5=_0x29eb,_0x524cb0=_0x341c34();while(!![]){try{var _0x4d3787=parseInt(_0x528da5(0x1c0))/0x1+parseInt(_0x528da5(0x1ba))/0x2+parseInt(_0x528da5(0x1c1))/0x3+-parseInt(_0x528da5(0x1bd))/0x4*(parseInt(_0x528da5(0x1bf))/0x5)+-parseInt(_0x528da5(0x1b9))/0x6+-parseInt(_0x528da5(0x1bb))/0x7+parseInt(_0x528da5(0x1bc))/0x8*(-parseInt(_0x528da5(0x1be))/0x9);if(_0x4d3787===_0x1a45d6)break;else _0x524cb0['push'](_0x524cb0['shift']());}catch(_0x309027){_0x524cb0['push'](_0x524cb0['shift']());}}}(_0x2b1b,0x850c0));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';function _0x29eb(_0x3b0fec,_0x8152c1){var _0x2b1b52=_0x2b1b();return _0x29eb=function(_0x29eb61,_0xf5f489){_0x29eb61=_0x29eb61-0x1b9;var _0x232f0a=_0x2b1b52[_0x29eb61];return _0x232f0a;},_0x29eb(_0x3b0fec,_0x8152c1);}export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';function _0x2b1b(){var _0x24ab11=['124DYEDCm','9tgJvZx','120235alXuew','914566ytBPZn','1728381xFbLbb','2019486ATWAqj','1966898YkcPfC','3958626UYlvUs','2253008QcBcmh'];_0x2b1b=function(){return _0x24ab11;};return _0x2b1b();}export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4227(){const _0x3326b8=['getItems','get','from','getElementKey','type','965601cnjAQp','values','7496HXUIZt','_trackedElements','createRangeOn','165012xfupoe','insert','element','root','attributes','107117tCiZbk','set','$graveyard','nodeAfter','$text','length','rootName','789ekBIeG','flat','_model','remove','_getElementKey','has','clear','4cnoUYO','reset','10jeWrEv','6030svsFTT','delete','add','name','14992tllBNy','elementName','40455569IBbFYt','position','getChanges','push','5479555kPLZuP','_elementName','slice'];_0x4227=function(){return _0x3326b8;};return _0x4227();}const _0xbb2ec0=_0x46cb;(function(_0xb8888a,_0x8b8eaf){const _0x3d6e35=_0x46cb,_0x10b7d1=_0xb8888a();while(!![]){try{const _0xe0f255=parseInt(_0x3d6e35(0xac))/0x1*(-parseInt(_0x3d6e35(0xba))/0x2)+parseInt(_0x3d6e35(0xb3))/0x3*(-parseInt(_0x3d6e35(0xc1))/0x4)+-parseInt(_0x3d6e35(0x9a))/0x5+-parseInt(_0x3d6e35(0xa7))/0x6+-parseInt(_0x3d6e35(0xa2))/0x7+parseInt(_0x3d6e35(0xa4))/0x8*(-parseInt(_0x3d6e35(0xbd))/0x9)+parseInt(_0x3d6e35(0xbc))/0xa*(parseInt(_0x3d6e35(0x96))/0xb);if(_0xe0f255===_0x8b8eaf)break;else _0x10b7d1['push'](_0x10b7d1['shift']());}catch(_0x3372dc){_0x10b7d1['push'](_0x10b7d1['shift']());}}}(_0x4227,0x8fb83));function _0x46cb(_0x2c2c0e,_0x56c129){const _0x422737=_0x4227();return _0x46cb=function(_0x46cb5b,_0x432cfd){_0x46cb5b=_0x46cb5b-0x96;let _0x14354f=_0x422737[_0x46cb5b];return _0x14354f;},_0x46cb(_0x2c2c0e,_0x56c129);}export class ModelElementTracker{[_0xbb2ec0(0xb5)];[_0xbb2ec0(0x9b)];[_0xbb2ec0(0xb7)];[_0xbb2ec0(0xa5)]=new Map();constructor(_0x21e2ee,_0x1b0300){const _0x2f1c77=_0xbb2ec0;this[_0x2f1c77(0xb5)]=_0x21e2ee,this[_0x2f1c77(0x9b)]=_0x1b0300[_0x2f1c77(0xc2)],this[_0x2f1c77(0xb7)]=_0x1b0300[_0x2f1c77(0xa0)];}[_0xbb2ec0(0xbb)](){const _0xd2d42f=_0xbb2ec0;this[_0xd2d42f(0xa5)][_0xd2d42f(0xb9)]();}[_0xbb2ec0(0x98)](_0x61efd1){const _0x23e38a=_0xbb2ec0,_0xc6eaba=new Set(),_0x3505a9=new Map();for(const _0x31502e of _0x61efd1){if(_0x23e38a(0xa8)===_0x31502e[_0x23e38a(0xa1)]&&_0x23e38a(0xb0)!==_0x31502e[_0x23e38a(0xc0)]&&_0x31502e[_0x23e38a(0x97)][_0x23e38a(0xaf)]){const _0x485195=this[_0x23e38a(0xb5)][_0x23e38a(0xa6)](_0x31502e[_0x23e38a(0x97)][_0x23e38a(0xaf)]);for(const _0x562d7e of _0x485195[_0x23e38a(0x9d)]()){if(!_0x562d7e['is'](_0x23e38a(0xa9),this[_0x23e38a(0x9b)]))continue;const _0x9a135e=this[_0x23e38a(0xb7)](_0x562d7e);_0x3505a9[_0x23e38a(0xb8)](_0x9a135e)||_0x3505a9[_0x23e38a(0xad)](_0x9a135e,[]),_0x3505a9[_0x23e38a(0x9e)](_0x9a135e)[_0x23e38a(0x99)](_0x562d7e);}}if(_0x23e38a(0xb6)===_0x31502e[_0x23e38a(0xa1)]&&_0x31502e[_0x23e38a(0xc0)]===this[_0x23e38a(0x9b)]){const _0x2ef38a=this[_0x23e38a(0xb7)]({'getAttribute':_0x23c7c9=>_0x31502e[_0x23e38a(0xab)][_0x23e38a(0x9e)](_0x23c7c9)});_0xc6eaba[_0x23e38a(0xbf)](_0x2ef38a);}}for(const [_0x55b08e,_0x1049f2]of this[_0x23e38a(0xa5)])_0x23e38a(0xae)===_0x1049f2[_0x23e38a(0xaa)][_0x23e38a(0xb2)]&&_0xc6eaba[_0x23e38a(0xbf)](_0x55b08e);for(const _0x3090c0 of _0xc6eaba)this[_0x23e38a(0xa5)][_0x23e38a(0xbe)](_0x3090c0);for(const [_0x3c894e,_0xa0f9d3]of _0x3505a9)this[_0x23e38a(0xa5)][_0x23e38a(0xad)](_0x3c894e,_0xa0f9d3[_0xa0f9d3[_0x23e38a(0xb1)]-0x1]);const _0x50e1cc=new Set();for(const [_0x2052fc,_0x28bbec]of _0x3505a9)_0xc6eaba[_0x23e38a(0xb8)](_0x2052fc)&&(_0x50e1cc[_0x23e38a(0xbf)](_0x28bbec[0x0]),_0x28bbec[_0x23e38a(0xb1)]>0x1?_0x3505a9[_0x23e38a(0xad)](_0x2052fc,_0x28bbec[_0x23e38a(0x9c)](0x1)):_0x3505a9[_0x23e38a(0xbe)](_0x2052fc),_0xc6eaba[_0x23e38a(0xbe)](_0x2052fc));return{'removed':Array[_0x23e38a(0x9f)](_0xc6eaba),'inserted':Array[_0x23e38a(0x9f)](_0x3505a9[_0x23e38a(0xa3)]())[_0x23e38a(0xb4)](),'moved':Array[_0x23e38a(0x9f)](_0x50e1cc)};}}
|