@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251019.0 → 0.0.0-nightly-20251021.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x48d054}from'ckeditor5/src/core.js';import{isWidget as _0x357b00,toWidget as _0x2aaafe,toWidgetEditable as _0x57cba4}from'ckeditor5/src/widget.js';import{uid as _0x32b6ff}from'ckeditor5/src/utils.js';import{PointerObserver as _0x996e0f,ClickObserver as _0x20d56d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x166390}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x48c789}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x48d054{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x166390];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe7f06c}=this;_0xe7f06c['config']['define']('footnotes.multiBlock',!0x0),_0xe7f06c['commands']['add']('insertFootnote',new _0x48c789(_0xe7f06c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4ecb53){const _0x4bf249=_0x211696([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]),_0x58b20f=0x47a28506,_0x5efa2f=0x47a5f3a6^_0x58b20f,_0x2218b9=window[_0x211696([0x44,0x61,0x74,0x65])][_0x211696([0x6e,0x6f,0x77])](),_0x534163=_0x4ecb53[_0x211696([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x177f27=new window[(_0x211696([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35c86b=>{_0x534163[_0x211696([0x6f,0x6e,0x63,0x65])](_0x211696([0x72,0x65,0x61,0x64,0x79]),_0x35c86b);}),_0x206217={[_0x211696([0x6b,0x74,0x79])]:_0x211696([0x45,0x43]),[_0x211696([0x75,0x73,0x65])]:_0x211696([0x73,0x69,0x67]),[_0x211696([0x63,0x72,0x76])]:_0x211696([0x50,0x2d,0x32,0x35,0x36]),[_0x211696([0x78])]:_0x211696([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]),[_0x211696([0x79])]:_0x211696([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]),[_0x211696([0x61,0x6c,0x67])]:_0x211696([0x45,0x53,0x32,0x35,0x36])},_0xd98db1=_0x534163[_0x211696([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x211696([0x67,0x65,0x74])](_0x211696([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b5a8e(){let _0x1b43d2,_0x363a3c=null,_0x5a4b5c=null;try{if(_0xd98db1==_0x211696([0x47,0x50,0x4c]))return _0x211696([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b43d2=_0x347359(),!_0x1b43d2)return _0x211696([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b43d2[_0x211696([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a4b5c=_0x30057a(_0x1b43d2[_0x211696([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b43d2[_0x211696([0x6a,0x74,0x69])])),await _0x50a46a()?_0x5ca973()?_0x5c44d7()?_0x211696([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x347cc3()?(_0x1b43d2[_0x211696([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x211696([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x363a3c=_0x189c90(_0x211696([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b43d2[_0x211696([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x211696([0x74,0x72,0x69,0x61,0x6c])&&(_0x363a3c=_0x189c90(_0x211696([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bea5d()):_0x211696([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x211696([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x211696([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x211696([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c44d7(){const _0x1f2885=[_0x211696([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x211696([0x74,0x72,0x69,0x61,0x6c])][_0x211696([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b43d2[_0x211696([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2218b9/0x3e8:0xe10*_0x5efa2f;return _0x1b43d2[_0x211696([0x65,0x78,0x70])]<_0x1f2885;}function _0x5ca973(){const _0x36d2d0=_0x1b43d2[_0x211696([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36d2d0&&(!!_0x36d2d0[_0x211696([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x211696([0x2a]))||!!_0x36d2d0[_0x211696([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x211696([0x46,0x4f,0x4f])));}function _0x347cc3(){const _0x58b432=_0x1b43d2[_0x211696([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58b432||0x0==_0x58b432[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x432cb6}=new URL(window[_0x211696([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58b432[_0x211696([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x432cb6))return!0x0;const _0x6ff667=_0x432cb6[_0x211696([0x73,0x70,0x6c,0x69,0x74])](_0x211696([0x2e]));return _0x58b432[_0x211696([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfe8549=>_0xfe8549[_0x211696([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x211696([0x2a])))[_0x211696([0x6d,0x61,0x70])](_0x4c3936=>_0x4c3936[_0x211696([0x73,0x70,0x6c,0x69,0x74])](_0x211696([0x2e])))[_0x211696([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26a1b2=>_0x26a1b2[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6ff667[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x211696([0x6d,0x61,0x70])](_0x2e06a7=>Array(_0x6ff667[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e06a7[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x211696([0x66,0x69,0x6c,0x6c])](_0x2e06a7[0x0]===_0x211696([0x2a])?_0x211696([0x2a]):'')[_0x211696([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e06a7))[_0x211696([0x73,0x6f,0x6d,0x65])](_0x45483c=>_0x6ff667[_0x211696([0x65,0x76,0x65,0x72,0x79])]((_0x19f4fc,_0x1c262e)=>_0x45483c[_0x1c262e]===_0x19f4fc||_0x45483c[_0x1c262e]===_0x211696([0x2a])));}function _0x2bea5d(){return _0x363a3c&&_0x5a4b5c?new window[(_0x211696([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x533837,_0x46939e)=>{_0x363a3c[_0x211696([0x74,0x68,0x65,0x6e])](_0x533837,_0x46939e),_0x5a4b5c[_0x211696([0x74,0x68,0x65,0x6e])](_0x179c5f=>{_0x179c5f!=_0x211696([0x56,0x61,0x6c,0x69,0x64])&&_0x533837(_0x179c5f);},_0x46939e);}):_0x363a3c||_0x5a4b5c||_0x211696([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30057a(_0x2cd7d7,_0xde3dc8){return new window[(_0x211696([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c5d5=>{if(_0x52c30f())return _0x47c5d5(_0x211696([0x56,0x61,0x6c,0x69,0x64]));_0x39fa00(),_0x534163[_0x211696([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x211696([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5accc7=!0x1;const _0x383c94=_0x32b6ff();function _0x57cc90(_0x2af93e){return!!_0x2af93e&&(typeof _0x2af93e===_0x211696([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2af93e===_0x211696([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2af93e[_0x211696([0x74,0x68,0x65,0x6e])]===_0x211696([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2af93e[_0x211696([0x63,0x61,0x74,0x63,0x68])]===_0x211696([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdb7394(_0x1806ec){_0x11d872(_0x1806ec)[_0x211696([0x74,0x68,0x65,0x6e])](_0x181452=>{if(!_0x181452||_0x181452[_0x211696([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x211696([0x6f,0x6b]))return _0x211696([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a366c(_0x484216(_0x383c94+_0xde3dc8))!=_0x181452[_0x211696([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x211696([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x211696([0x56,0x61,0x6c,0x69,0x64]);})[_0x211696([0x74,0x68,0x65,0x6e])](_0x5e2700=>(_0x36e1ed(),_0x5e2700),()=>{const _0x7eb808=_0xe9ab0a();return null==_0x7eb808?(_0x36e1ed(),_0x211696([0x56,0x61,0x6c,0x69,0x64])):_0x211696(_0x2218b9-_0x7eb808>(0x63ae0106^_0x58b20f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x211696([0x74,0x68,0x65,0x6e])](_0x47c5d5)[_0x211696([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47c5d5(_0x211696([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ac4ed=0x47946b86^_0x58b20f;function _0x36e1ed(){const _0x5f2f61=_0x211696([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a366c(_0x484216(_0x2cd7d7)),_0x49afbe=_0x4e6433(_0x3a366c(window[_0x211696([0x4d,0x61,0x74,0x68])][_0x211696([0x63,0x65,0x69,0x6c])](_0x2218b9/_0x2ac4ed)));window[_0x211696([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x211696([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f2f61,_0x49afbe);}function _0xe9ab0a(){const _0x597a95=_0x211696([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a366c(_0x484216(_0x2cd7d7)),_0x2aaa06=window[_0x211696([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x211696([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x597a95);return _0x2aaa06?window[_0x211696([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e6433(_0x2aaa06),0x10)*_0x2ac4ed:null;}function _0x11d872(_0x527c18){return new window[(_0x211696([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23be5e,_0x14133a)=>{_0x527c18[_0x211696([0x74,0x68,0x65,0x6e])](_0x23be5e,_0x14133a),window[_0x211696([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14133a,0x47a351c6^_0x58b20f);});}}_0x534163[_0x211696([0x6f,0x6e])](_0x211696([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4031cb,_0x1db5f3)=>{if(_0x1db5f3[0x0]!=_0x2cd7d7)return _0x47c5d5(_0x211696([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1db5f3[0x1]={..._0x1db5f3[0x1],[_0x211696([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x383c94};},{[_0x211696([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x211696([0x68,0x69,0x67,0x68])}),_0x534163[_0x211696([0x6f,0x6e])](_0x211696([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ff24d=>{_0x57cc90(_0x3ff24d[_0x211696([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5accc7=!0x0,_0xdb7394(_0x3ff24d[_0x211696([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x211696([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x211696([0x6c,0x6f,0x77])}),_0x177f27[_0x211696([0x74,0x68,0x65,0x6e])](()=>{_0x5accc7||_0x47c5d5(_0x211696([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52c30f(){return _0x534163[_0x211696([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x211696([0x76,0x69,0x65,0x77])][_0x211696([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x211696([0x61,0x75,0x74,0x6f]);}function _0x39fa00(){_0x534163[_0x211696([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x211696([0x76,0x69,0x65,0x77])][_0x211696([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x211696([0x61,0x75,0x74,0x6f]);}}function _0x189c90(_0x3ab4c0){const _0x2b1083=[new window[(_0x211696([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177865=>setTimeout(_0x177865,0x47abbbca^_0x58b20f)),_0x177f27[_0x211696([0x74,0x68,0x65,0x6e])](()=>new window[(_0x211696([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f85ff=>{let _0x36f68c=0x0;_0x534163[_0x211696([0x6d,0x6f,0x64,0x65,0x6c])][_0x211696([0x6f,0x6e])](_0x211696([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a24c0,_0x4d10a6)=>{_0x4d10a6[0x0][_0x211696([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36f68c++,_0x36f68c==(0x47a284fe^_0x58b20f)&&(_0x2f85ff(),_0x2a24c0[_0x211696([0x6f,0x66,0x66])]());});}))];return window[_0x211696([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x211696([0x72,0x61,0x63,0x65])](_0x2b1083)[_0x211696([0x74,0x68,0x65,0x6e])](()=>_0x3ab4c0);}async function _0x382df1(){await _0x177f27,_0x534163[_0x211696([0x6d,0x6f,0x64,0x65,0x6c])][_0x211696([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28fb3b,_0x534163[_0x211696([0x6d,0x6f,0x64,0x65,0x6c])][_0x211696([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28fb3b,_0x534163[_0x211696([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x211696([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c1500(_0x3172ba){const _0x2ae814=_0x454c4b();_0x534163[_0x2ae814]=_0x211696([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3172ba,_0x3172ba!=_0x211696([0x56,0x61,0x6c,0x69,0x64])&&_0x382df1();}function _0x454c4b(){const _0x165f77=window[_0x211696([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x211696([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x211696([0x6e,0x6f,0x77])]())[_0x211696([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x211696([0x2e]),'');let _0x1a90bc=_0x211696([0x75]);for(let _0x10eae3=0x0;_0x10eae3<_0x165f77[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10eae3+=0x2){let _0x208b7f=window[_0x211696([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165f77[_0x211696([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10eae3,_0x10eae3+0x2));_0x208b7f>=_0x4bf249[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x208b7f-=_0x4bf249[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a90bc+=_0x4bf249[_0x208b7f];}return _0x1a90bc;}function _0x347359(){const _0x30835d=_0xd98db1[_0x211696([0x73,0x70,0x6c,0x69,0x74])](_0x211696([0x2e]));if(0x3!=_0x30835d[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x400c29(_0x30835d[0x1]);function _0x400c29(_0x4c2a83){const _0xc2d9ae=_0x2435fc(_0x4c2a83);return _0xc2d9ae&&_0x256ee8()?_0xc2d9ae:null;function _0x256ee8(){const _0x186a9c=_0xc2d9ae[_0x211696([0x6a,0x74,0x69])],_0x49ee1e=window[_0x211696([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x186a9c[_0x211696([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x186a9c[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27ac1e={..._0xc2d9ae,[_0x211696([0x6a,0x74,0x69])]:_0x186a9c[_0x211696([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x186a9c[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27ac1e[_0x211696([0x76,0x63])],_0x484216(_0x27ac1e)==_0x49ee1e;}}}async function _0x50a46a(){let _0x52385b=!0x0;try{const _0x432b9d=_0xd98db1[_0x211696([0x73,0x70,0x6c,0x69,0x74])](_0x211696([0x2e])),[_0x3c5687,_0x5be801,_0x2124ed]=_0x432b9d;return _0x4bd18a(_0x3c5687),await _0xfaa92d(_0x3c5687,_0x5be801,_0x2124ed),_0x52385b;}catch{return!0x1;}function _0x4bd18a(_0x14f35a){const _0x8c0299=_0x2435fc(_0x14f35a);_0x8c0299&&_0x8c0299[_0x211696([0x61,0x6c,0x67])]==_0x211696([0x45,0x53,0x32,0x35,0x36])||(_0x52385b=!0x1);}async function _0xfaa92d(_0x15cf23,_0x3606d3,_0x5caa0a){const _0x48a711=window[_0x211696([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x211696([0x66,0x72,0x6f,0x6d])](_0x1d6870(_0x5caa0a),_0xbc2ce8=>_0xbc2ce8[_0x211696([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f1d24=new window[(_0x211696([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x211696([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15cf23+_0x211696([0x2e])+_0x3606d3),_0x4f44d7=window[_0x211696([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x211696([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f44d7)return;const _0x217429=await _0x4f44d7[_0x211696([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x211696([0x6a,0x77,0x6b]),_0x206217,{[_0x211696([0x6e,0x61,0x6d,0x65])]:_0x211696([0x45,0x43,0x44,0x53,0x41]),[_0x211696([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x211696([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x211696([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f44d7[_0x211696([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x211696([0x6e,0x61,0x6d,0x65])]:_0x211696([0x45,0x43,0x44,0x53,0x41]),[_0x211696([0x68,0x61,0x73,0x68])]:{[_0x211696([0x6e,0x61,0x6d,0x65])]:_0x211696([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x217429,_0x48a711,_0x1f1d24)||(_0x52385b=!0x1);}}function _0x2435fc(_0x286e67){return _0x286e67[_0x211696([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x211696([0x65,0x79]))?JSON[_0x211696([0x70,0x61,0x72,0x73,0x65])](_0x1d6870(_0x286e67)):null;}function _0x1d6870(_0x4feb56){return window[_0x211696([0x61,0x74,0x6f,0x62])](_0x4feb56[_0x211696([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x211696([0x2b]))[_0x211696([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x211696([0x2f])));}function _0x484216(_0x2c9e46){let _0x414fa5=0x1505;function _0x4ff1a7(_0x1736e5){for(let _0x25f727=0x0;_0x25f727<_0x1736e5[_0x211696([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25f727++){const _0x463879=_0x1736e5[_0x211696([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25f727);_0x414fa5=(_0x414fa5<<0x5)+_0x414fa5+_0x463879,_0x414fa5&=_0x414fa5;}}function _0x250790(_0x33816b){Array[_0x211696([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33816b)?_0x33816b[_0x211696([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x250790):_0x33816b&&typeof _0x33816b==_0x211696([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x211696([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33816b)[_0x211696([0x73,0x6f,0x72,0x74])]()[_0x211696([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc57b5a,_0xea83aa])=>{_0x4ff1a7(_0xc57b5a),_0x250790(_0xea83aa);}):_0x4ff1a7(window[_0x211696([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33816b));}return _0x250790(_0x2c9e46),_0x414fa5>>>0x0;}function _0x3a366c(_0x16cdca){return _0x16cdca[_0x211696([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x211696([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x211696([0x30]));}function _0x4e6433(_0x4c28ab){return _0x4c28ab[_0x211696([0x73,0x70,0x6c,0x69,0x74])]('')[_0x211696([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x211696([0x6a,0x6f,0x69,0x6e])]('');}function _0x28fb3b(){}function _0x211696(_0x15356a){return _0x15356a['map'](_0x397cdb=>String['fromCharCode'](_0x397cdb))['join']('');}_0x2c1500(await _0x4b5a8e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4ae52b){const {plugins:_0x1703cd,editing:_0x376a1e,model:_0x4daca6}=this['editor'],_0x16f34e=_0x1703cd['get'](_0x166390)['getFootnote'](_0x4ae52b);return!!_0x16f34e&&(_0x4daca6['change'](_0x1045fb=>{_0x1045fb['setSelection'](_0x1045fb['createPositionAt'](_0x16f34e['definition'],'end'));}),_0x376a1e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x149e90){const {plugins:_0x28dbd9,editing:_0x1af294,model:_0x344453}=this['editor'],_0x598e65=_0x28dbd9['get'](_0x166390)['getFootnote'](_0x149e90);return!!_0x598e65&&(_0x344453['change'](_0x444513=>{_0x444513['setSelection'](_0x598e65['reference'],'on');}),_0x1af294['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2990f5}=this['editor']['model'],_0x584c2c=this['editor']['config']['get']('footnotes.multiBlock');_0x2990f5['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2990f5['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2990f5['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x584c2c?_0x2990f5['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2990f5['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2990f5['addChildCheck'](_0x28ea72=>{for(const _0x47d4f8 of _0x28ea72)if('footnoteDefinition'===_0x47d4f8['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x39e6f7}=this,{conversion:_0x87e598,editing:_0x336374}=_0x39e6f7,{t:t}=_0x39e6f7['locale'];_0x87e598['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x327689,{writer:_0x588130,consumable:_0x3d3067})=>{const _0x15a7d5=_0x327689['getChild'](0x0);if(!_0x15a7d5||!_0x15a7d5['is']('element','a'))return null;const _0x4659bc=_0x15a7d5['getAttribute']('href')||'';if(!_0x4659bc['startsWith']('#'))return null;const _0x47cb22=_0x4659bc['replace'](/^#/,'');if(!_0x47cb22)return null;_0x3d3067['consume'](_0x15a7d5,{'name':!0x0,'attributes':['href']});for(const {item:_0xb06e2f}of _0x336374['view']['createRangeIn'](_0x15a7d5))_0xb06e2f['is']('$textProxy')?_0x3d3067['consume'](_0xb06e2f['textNode'],{'name':!0x0}):_0xb06e2f['is']('element')&&_0x3d3067['consume'](_0xb06e2f,{'name':!0x0});return _0x588130['createElement']('footnoteRef',{'footnoteId':_0x47cb22});}}),_0x87e598['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5980f0,{writer:_0x381aa5})=>g(_0x5980f0,_0x381aa5)}),_0x87e598['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x391e18,{writer:_0x3f2d6d})=>{const _0x50309d=_0x391e18['getAttribute']('footnoteCounter');return _0x2aaafe(g(_0x391e18,_0x3f2d6d),_0x3f2d6d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x50309d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x17d5cb}=this,{t:t}=_0x17d5cb['locale'],{conversion:_0x2c8a4c}=_0x17d5cb;_0x2c8a4c['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x2c8a4c['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x2c8a4c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x19429f,{writer:_0x46388b})=>{const _0x44701a=_0x46388b['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x46388b['createContainerElement']('ol',{'class':'footnotes'},_0x46388b['createSlot']())),_0x4eae6a=_0x2aaafe(_0x44701a,_0x46388b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x46388b['setCustomProperty']('footnotesDefinitions',!0x0,_0x4eae6a),_0x4eae6a;}});}['_defineDefinitionConverters'](){const {editor:_0x31b212}=this,{conversion:_0x3a7421,locale:_0x36e75f}=_0x31b212,_0x5f228d=_0x31b212['config']['get']('footnotes.multiBlock');_0x3a7421['for']('upcast')['add'](_0x57379f=>{_0x57379f['on']('element:li',(_0x509309,_0x468b1f,_0xe5c634)=>{const _0x52e148=_0x468b1f['viewItem'];if(!_0x52e148['hasClass']('footnote-definition')||!_0x52e148['getAttribute']('id'))return;const _0xcce716=_0x52e148['parent'];if(!_0xcce716['is']('element','ol')||!_0xcce716['hasClass']('footnotes'))return;if(!_0xe5c634['consumable']['test'](_0x52e148,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x44d668=_0xe5c634['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x52e148['getAttribute']('id')});if(!_0xe5c634['safeInsert'](_0x44d668,_0x468b1f['modelCursor']))return;_0xe5c634['consumable']['consume'](_0x52e148,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5c1673=Array['from'](_0x52e148['getChildren']())['find'](_0x2eafc2=>_0x2eafc2['is']('element')&&_0x2eafc2['hasClass']('footnote-content'));for(const _0x26cfcc of _0x52e148['getChildren']())_0x26cfcc['is']('element')&&(_0xe5c634['consumable']['consume'](_0x26cfcc,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xe5c634['consumable']['consume'](_0x26cfcc,{'name':!0x0,'classes':'footnote-content'}));if(_0x5c1673){if(_0x5f228d)_0xe5c634['convertChildren'](_0x5c1673,_0x44d668);else{const _0x443837=_0xe5c634['writer']['createElement']('footnoteInlineContent');_0xe5c634['writer']['insert'](_0x443837,_0x44d668),_0xe5c634['convertChildren'](_0x5c1673,_0x443837);}}_0xe5c634['updateConversionResult'](_0x44d668,_0x468b1f);});}),_0x3a7421['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4acaaf,{writer:_0x2e325})=>D(_0x4acaaf,_0x2e325,_0x36e75f,{'dataPipeline':!0x0})}),_0x3a7421['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1f0ff0,{writer:_0x20b2c7})=>D(_0x1f0ff0,_0x20b2c7,_0x36e75f)});}['_defineBogusParagraphConverters'](){const {editor:_0x16fc47}=this,{conversion:_0x5f0a0e}=_0x16fc47;_0x16fc47['config']['get']('footnotes.multiBlock')?(_0x5f0a0e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x5f0a0e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x16fc47['model']['document'],'change:data',()=>{!function(_0x28c2a2,_0x13a159){const _0x2bc1a6=_0x28c2a2['document']['differ'],_0xb1029a=new Set();for(const _0x5d605f of _0x2bc1a6['getChanges']()){const _0x19a20b='attribute'==_0x5d605f['type']?_0x5d605f['range']['start']['parent']:_0x5d605f['position']['parent'];_0x19a20b['is']('element','footnoteDefinition')&&_0xb1029a['add'](_0x19a20b);}for(const _0x468e26 of _0xb1029a['values']()){const _0x4e08f0=Array['from'](_0x468e26['getChildren']())['filter'](_0x400db8=>p(_0x400db8,_0x13a159['mapper']));for(const _0x52ccab of _0x4e08f0)_0x13a159['reconvertItem'](_0x52ccab);}}(_0x16fc47['model'],_0x16fc47['editing']);})):(_0x5f0a0e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x5f0a0e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x442f30,{writer:_0x412b65})=>{const _0x2cb456=_0x412b65['createContainerElement']('span');return _0x412b65['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2cb456),_0x2cb456;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5884fb}=this,{editing:_0x3be764,t:t}=_0x5884fb,_0x3c3f77=_0x5884fb['model']['document']['selection'];_0x5884fb['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x5884fb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x3be764['view']['document'],'enter',(_0x48081c,_0x2a97df)=>{const _0x7e691d=function(_0x1471c6){const _0x2db472=_0x1471c6['getSelectedElement']();if(_0x2db472?.['is']('element','footnoteRef'))return _0x2db472;return null;}(_0x3c3f77);if(_0x7e691d){const _0xb81df2=_0x7e691d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xb81df2),_0x2a97df['preventDefault'](),_0x48081c['stop']();}},{'context':_0x357b00});}['_defineClickHandlers'](){const {editor:_0x4ebe57}=this,{editing:_0x644d6e}=_0x4ebe57;_0x4ebe57['editing']['view']['addObserver'](_0x996e0f),_0x4ebe57['editing']['view']['addObserver'](_0x20d56d);let _0x980b6c=!0x1;this['listenTo'](_0x644d6e['view']['document'],'pointerdown',(_0x46ab22,_0x53f2c8)=>{const {target:_0x35d57a}=_0x53f2c8,_0x13f770=_0x644d6e['view']['document']['selection'];_0x980b6c=!(!_0x35d57a['is']('element','sup')||!_0x35d57a['hasClass']('footnote'))&&_0x13f770['getSelectedElement']()===_0x35d57a;},{'priority':'high'}),this['listenTo'](_0x644d6e['view']['document'],'click',(_0x49a212,_0x54262a)=>{const {target:_0xc319b}=_0x54262a,_0x14f8af=_0xc319b['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x14f8af['slice'](0x1)),_0x49a212['stop'](),_0x54262a['preventDefault']();},{'priority':'high','context':_0x38641f=>_0x38641f['is']('element','sup')&&_0x38641f['hasClass']('footnote')&&_0x980b6c}),this['listenTo'](_0x644d6e['view']['document'],'click',(_0x2444a4,_0x25892e)=>{const {target:_0x249083}=_0x25892e;if(!_0x249083['is']('element','a'))return;let _0x142269=_0x249083['getAttribute']('href');if(!_0x142269?.['startsWith']('#'))return;_0x142269=_0x142269['slice'](0x1);let _0x5d242c=!0x1;(_0x142269['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x142269['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x142269))&&(_0x5d242c=!0x0),_0x5d242c&&(_0x25892e['preventDefault'](),_0x2444a4['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x220547}={}){return(_0x47e0ae,{writer:_0x8d40c7})=>{if(!h(_0x47e0ae))return null;if(!_0x220547)return _0x8d40c7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3bcf89=_0x8d40c7['createContainerElement']('p');return _0x8d40c7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3bcf89),_0x3bcf89;};}function h(_0x133619){const {parent:_0x3fd6e9}=_0x133619;if(!_0x3fd6e9?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3fd6e9['childCount'])return!0x1;for(const _0x581b0d of _0x133619['getAttributeKeys']())if(!_0x581b0d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x581b0d)return!0x1;return!0x0;}function p(_0x539292,_0x1c2ae0){if(!_0x539292['is']('element','paragraph'))return!0x1;const _0x5e8410=_0x1c2ae0['toViewElement'](_0x539292);return!!_0x5e8410&&h(_0x539292)!==_0x5e8410['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1ab180){return _0x357b00(_0x1ab180)&&_0x1ab180['is']('containerElement')&&!!_0x1ab180['getCustomProperty']('footnotesDefinitions');}function g(_0x3a03c0,_0x248975){const _0xb7bea1=_0x3a03c0['getAttribute']('footnoteId'),_0x2e5094=_0x3a03c0['getAttribute']('footnoteCounter'),_0xec23fb=_0x248975['createUIElement']('a',{'id':'ref-'+_0xb7bea1,'href':'#'+_0xb7bea1},function(_0x2c6d87){const _0x40987=this['toDomElement'](_0x2c6d87);return _0x40987['textContent']=_0x2e5094,_0x40987;}),_0x2e75c6=_0x248975['createContainerElement']('sup',{'class':'footnote'},[_0xec23fb]);return _0x2e75c6['getFillerOffset']=()=>null,_0x2e75c6;}function D(_0x54a590,_0x2782c5,_0x3b4bd5,{dataPipeline:_0x2efe11}={}){const {t:t}=_0x3b4bd5,_0x5b7232=_0x54a590['getAttribute']('footnoteId'),_0x15041d=_0x2782c5['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5b7232},function(_0x10edcc){const _0x338b6b=this['toDomElement'](_0x10edcc);return _0x338b6b['innerText']='^',_0x338b6b;}),_0x27146a=_0x2efe11?_0x2782c5['createContainerElement']('div',{'class':'footnote-content'}):_0x57cba4(_0x2782c5['createEditableElement']('div',{'class':'footnote-content'}),_0x2782c5,{'label':t('Footnote\x20content.')});return _0x2782c5['insert'](_0x2782c5['createPositionAt'](_0x27146a,0x0),_0x2782c5['createSlot']()),_0x2782c5['createContainerElement']('li',{'class':'footnote-definition','id':_0x5b7232},[_0x15041d,_0x27146a]);}
23
+ import{Plugin as _0x341696}from'ckeditor5/src/core.js';import{isWidget as _0x59ee61,toWidget as _0x19bf78,toWidgetEditable as _0xd3d701}from'ckeditor5/src/widget.js';import{uid as _0x61221e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x20b6c7,ClickObserver as _0x16fd45}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xaf45c0}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1d7b78}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x341696{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xaf45c0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd43403}=this;_0xd43403['config']['define']('footnotes.multiBlock',!0x0),_0xd43403['commands']['add']('insertFootnote',new _0x1d7b78(_0xd43403)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d786c){const _0x4183ff=_0x1d95c9([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]),_0x48d631=0x47a28506,_0x9f48c0=0x47a5f3d6^_0x48d631,_0x21590c=window[_0x1d95c9([0x44,0x61,0x74,0x65])][_0x1d95c9([0x6e,0x6f,0x77])](),_0x22523c=_0x4d786c[_0x1d95c9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10f277=new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x65207a=>{_0x22523c[_0x1d95c9([0x6f,0x6e,0x63,0x65])](_0x1d95c9([0x72,0x65,0x61,0x64,0x79]),_0x65207a);}),_0x2f769e={[_0x1d95c9([0x6b,0x74,0x79])]:_0x1d95c9([0x45,0x43]),[_0x1d95c9([0x75,0x73,0x65])]:_0x1d95c9([0x73,0x69,0x67]),[_0x1d95c9([0x63,0x72,0x76])]:_0x1d95c9([0x50,0x2d,0x32,0x35,0x36]),[_0x1d95c9([0x78])]:_0x1d95c9([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]),[_0x1d95c9([0x79])]:_0x1d95c9([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]),[_0x1d95c9([0x61,0x6c,0x67])]:_0x1d95c9([0x45,0x53,0x32,0x35,0x36])},_0x192346=_0x22523c[_0x1d95c9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d95c9([0x67,0x65,0x74])](_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe02d80(){let _0x458258,_0x3d5d08=null,_0x5d57e2=null;try{if(_0x192346==_0x1d95c9([0x47,0x50,0x4c]))return _0x1d95c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x458258=_0x34807b(),!_0x458258)return _0x1d95c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x458258[_0x1d95c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d57e2=_0x5b49f0(_0x458258[_0x1d95c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x458258[_0x1d95c9([0x6a,0x74,0x69])])),await _0xf89cd9()?_0x365f8f()?_0x2ce1f1()?_0x1d95c9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cd9ff()?(_0x458258[_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d95c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d5d08=_0x403c69(_0x1d95c9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x458258[_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d95c9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d5d08=_0x403c69(_0x1d95c9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e7647()):_0x1d95c9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d95c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d95c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d95c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ce1f1(){const _0x71bbf0=[_0x1d95c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d95c9([0x74,0x72,0x69,0x61,0x6c])][_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458258[_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21590c/0x3e8:0xe10*_0x9f48c0;return _0x458258[_0x1d95c9([0x65,0x78,0x70])]<_0x71bbf0;}function _0x365f8f(){const _0x751560=_0x458258[_0x1d95c9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x751560&&(!!_0x751560[_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d95c9([0x2a]))||!!_0x751560[_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d95c9([0x46,0x4f,0x4f])));}function _0x4cd9ff(){const _0x4220d3=_0x458258[_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4220d3||0x0==_0x4220d3[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d149f}=new URL(window[_0x1d95c9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4220d3[_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d149f))return!0x0;const _0x5d2966=_0x2d149f[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])](_0x1d95c9([0x2e]));return _0x4220d3[_0x1d95c9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17d3ed=>_0x17d3ed[_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d95c9([0x2a])))[_0x1d95c9([0x6d,0x61,0x70])](_0x5d8cf4=>_0x5d8cf4[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])](_0x1d95c9([0x2e])))[_0x1d95c9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cb588=>_0x5cb588[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d2966[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d95c9([0x6d,0x61,0x70])](_0x20b398=>Array(_0x5d2966[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20b398[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d95c9([0x66,0x69,0x6c,0x6c])](_0x20b398[0x0]===_0x1d95c9([0x2a])?_0x1d95c9([0x2a]):'')[_0x1d95c9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20b398))[_0x1d95c9([0x73,0x6f,0x6d,0x65])](_0xbb1c85=>_0x5d2966[_0x1d95c9([0x65,0x76,0x65,0x72,0x79])]((_0xa578a3,_0x273f47)=>_0xbb1c85[_0x273f47]===_0xa578a3||_0xbb1c85[_0x273f47]===_0x1d95c9([0x2a])));}function _0x1e7647(){return _0x3d5d08&&_0x5d57e2?new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d3bb0,_0x9849f7)=>{_0x3d5d08[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x2d3bb0,_0x9849f7),_0x5d57e2[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x4713b0=>{_0x4713b0!=_0x1d95c9([0x56,0x61,0x6c,0x69,0x64])&&_0x2d3bb0(_0x4713b0);},_0x9849f7);}):_0x3d5d08||_0x5d57e2||_0x1d95c9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b49f0(_0x56e0d0,_0x30c26b){return new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ec5a5=>{if(_0x3c3d34())return _0x4ec5a5(_0x1d95c9([0x56,0x61,0x6c,0x69,0x64]));_0x58fc1(),_0x22523c[_0x1d95c9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d95c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5eb10c=!0x1;const _0x526336=_0x61221e();function _0x2ab942(_0x57ecf8){return!!_0x57ecf8&&(typeof _0x57ecf8===_0x1d95c9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57ecf8===_0x1d95c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57ecf8[_0x1d95c9([0x74,0x68,0x65,0x6e])]===_0x1d95c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57ecf8[_0x1d95c9([0x63,0x61,0x74,0x63,0x68])]===_0x1d95c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d87e0(_0x3f061b){_0x40c4ad(_0x3f061b)[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x5e6999=>{if(!_0x5e6999||_0x5e6999[_0x1d95c9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d95c9([0x6f,0x6b]))return _0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x275a8d(_0x5957da(_0x526336+_0x30c26b))!=_0x5e6999[_0x1d95c9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d95c9([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x5bc66e=>(_0x364490(),_0x5bc66e),()=>{const _0xcdce8=_0x3a9212();return null==_0xcdce8?(_0x364490(),_0x1d95c9([0x56,0x61,0x6c,0x69,0x64])):_0x1d95c9(_0x21590c-_0xcdce8>(0x63ae0106^_0x48d631)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x4ec5a5)[_0x1d95c9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ec5a5(_0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x65507c=0x47946b86^_0x48d631;function _0x364490(){const _0x25fc36=_0x1d95c9([0x6c,0x6c,0x63,0x74,0x2d])+_0x275a8d(_0x5957da(_0x56e0d0)),_0x294b48=_0x44b82f(_0x275a8d(window[_0x1d95c9([0x4d,0x61,0x74,0x68])][_0x1d95c9([0x63,0x65,0x69,0x6c])](_0x21590c/_0x65507c)));window[_0x1d95c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d95c9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25fc36,_0x294b48);}function _0x3a9212(){const _0x43353e=_0x1d95c9([0x6c,0x6c,0x63,0x74,0x2d])+_0x275a8d(_0x5957da(_0x56e0d0)),_0x444d4a=window[_0x1d95c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d95c9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43353e);return _0x444d4a?window[_0x1d95c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44b82f(_0x444d4a),0x10)*_0x65507c:null;}function _0x40c4ad(_0x460e00){return new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5908f6,_0x2c6301)=>{_0x460e00[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x5908f6,_0x2c6301),window[_0x1d95c9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c6301,0x47a351c6^_0x48d631);});}}_0x22523c[_0x1d95c9([0x6f,0x6e])](_0x1d95c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x84fd0d,_0x49787f)=>{if(_0x49787f[0x0]!=_0x56e0d0)return _0x4ec5a5(_0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49787f[0x1]={..._0x49787f[0x1],[_0x1d95c9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x526336};},{[_0x1d95c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d95c9([0x68,0x69,0x67,0x68])}),_0x22523c[_0x1d95c9([0x6f,0x6e])](_0x1d95c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c8542=>{_0x2ab942(_0x1c8542[_0x1d95c9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5eb10c=!0x0,_0x1d87e0(_0x1c8542[_0x1d95c9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d95c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d95c9([0x6c,0x6f,0x77])}),_0x10f277[_0x1d95c9([0x74,0x68,0x65,0x6e])](()=>{_0x5eb10c||_0x4ec5a5(_0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c3d34(){return _0x22523c[_0x1d95c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d95c9([0x76,0x69,0x65,0x77])][_0x1d95c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d95c9([0x61,0x75,0x74,0x6f]);}function _0x58fc1(){_0x22523c[_0x1d95c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d95c9([0x76,0x69,0x65,0x77])][_0x1d95c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d95c9([0x61,0x75,0x74,0x6f]);}}function _0x403c69(_0xbe2682){const _0x4094dd=[new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb28f7e=>setTimeout(_0xb28f7e,0x47abbbca^_0x48d631)),_0x10f277[_0x1d95c9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a3191=>{let _0x2b4789=0x0;_0x22523c[_0x1d95c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d95c9([0x6f,0x6e])](_0x1d95c9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc0c96b,_0x4ebcec)=>{_0x4ebcec[0x0][_0x1d95c9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b4789++,_0x2b4789==(0x47a284fe^_0x48d631)&&(_0x4a3191(),_0xc0c96b[_0x1d95c9([0x6f,0x66,0x66])]());});}))];return window[_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d95c9([0x72,0x61,0x63,0x65])](_0x4094dd)[_0x1d95c9([0x74,0x68,0x65,0x6e])](()=>_0xbe2682);}async function _0x284817(){await _0x10f277,_0x22523c[_0x1d95c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d95c9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f0a13,_0x22523c[_0x1d95c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d95c9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f0a13,_0x22523c[_0x1d95c9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d95c9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fad28(_0x53a7a8){const _0x551832=_0x20b20a();_0x22523c[_0x551832]=_0x1d95c9([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53a7a8,_0x53a7a8!=_0x1d95c9([0x56,0x61,0x6c,0x69,0x64])&&_0x284817();}function _0x20b20a(){const _0x1a58a1=window[_0x1d95c9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d95c9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d95c9([0x6e,0x6f,0x77])]())[_0x1d95c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d95c9([0x2e]),'');let _0x18a406=_0x1d95c9([0x75]);for(let _0x239bde=0x0;_0x239bde<_0x1a58a1[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x239bde+=0x2){let _0x315f4a=window[_0x1d95c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a58a1[_0x1d95c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x239bde,_0x239bde+0x2));_0x315f4a>=_0x4183ff[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x315f4a-=_0x4183ff[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18a406+=_0x4183ff[_0x315f4a];}return _0x18a406;}function _0x34807b(){const _0xafcd73=_0x192346[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])](_0x1d95c9([0x2e]));if(0x3!=_0xafcd73[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13f3c5(_0xafcd73[0x1]);function _0x13f3c5(_0xe7d3e6){const _0x1bd855=_0xe06e85(_0xe7d3e6);return _0x1bd855&&_0x9f1252()?_0x1bd855:null;function _0x9f1252(){const _0x41f70e=_0x1bd855[_0x1d95c9([0x6a,0x74,0x69])],_0x2c6d05=window[_0x1d95c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41f70e[_0x1d95c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41f70e[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54d11c={..._0x1bd855,[_0x1d95c9([0x6a,0x74,0x69])]:_0x41f70e[_0x1d95c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41f70e[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54d11c[_0x1d95c9([0x76,0x63])],_0x5957da(_0x54d11c)==_0x2c6d05;}}}async function _0xf89cd9(){let _0x5b2681=!0x0;try{const _0x341574=_0x192346[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])](_0x1d95c9([0x2e])),[_0x173e72,_0x12c715,_0x5a3f6b]=_0x341574;return _0x5dd9bb(_0x173e72),await _0x453a4b(_0x173e72,_0x12c715,_0x5a3f6b),_0x5b2681;}catch{return!0x1;}function _0x5dd9bb(_0x1c63f8){const _0x30150e=_0xe06e85(_0x1c63f8);_0x30150e&&_0x30150e[_0x1d95c9([0x61,0x6c,0x67])]==_0x1d95c9([0x45,0x53,0x32,0x35,0x36])||(_0x5b2681=!0x1);}async function _0x453a4b(_0x403d50,_0x1d524b,_0x895902){const _0x325d5a=window[_0x1d95c9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d95c9([0x66,0x72,0x6f,0x6d])](_0x13d9ba(_0x895902),_0x5866f0=>_0x5866f0[_0x1d95c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9acfe0=new window[(_0x1d95c9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d95c9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x403d50+_0x1d95c9([0x2e])+_0x1d524b),_0xae6408=window[_0x1d95c9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d95c9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xae6408)return;const _0xb4be3a=await _0xae6408[_0x1d95c9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d95c9([0x6a,0x77,0x6b]),_0x2f769e,{[_0x1d95c9([0x6e,0x61,0x6d,0x65])]:_0x1d95c9([0x45,0x43,0x44,0x53,0x41]),[_0x1d95c9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d95c9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d95c9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xae6408[_0x1d95c9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d95c9([0x6e,0x61,0x6d,0x65])]:_0x1d95c9([0x45,0x43,0x44,0x53,0x41]),[_0x1d95c9([0x68,0x61,0x73,0x68])]:{[_0x1d95c9([0x6e,0x61,0x6d,0x65])]:_0x1d95c9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb4be3a,_0x325d5a,_0x9acfe0)||(_0x5b2681=!0x1);}}function _0xe06e85(_0x1c6a02){return _0x1c6a02[_0x1d95c9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d95c9([0x65,0x79]))?JSON[_0x1d95c9([0x70,0x61,0x72,0x73,0x65])](_0x13d9ba(_0x1c6a02)):null;}function _0x13d9ba(_0x519492){return window[_0x1d95c9([0x61,0x74,0x6f,0x62])](_0x519492[_0x1d95c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d95c9([0x2b]))[_0x1d95c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d95c9([0x2f])));}function _0x5957da(_0x4f05aa){let _0x431fb4=0x1505;function _0x30b98e(_0x4c389d){for(let _0x243cd3=0x0;_0x243cd3<_0x4c389d[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x243cd3++){const _0x34b5a8=_0x4c389d[_0x1d95c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x243cd3);_0x431fb4=(_0x431fb4<<0x5)+_0x431fb4+_0x34b5a8,_0x431fb4&=_0x431fb4;}}function _0x5bbe59(_0x3fc22c){Array[_0x1d95c9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3fc22c)?_0x3fc22c[_0x1d95c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bbe59):_0x3fc22c&&typeof _0x3fc22c==_0x1d95c9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d95c9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3fc22c)[_0x1d95c9([0x73,0x6f,0x72,0x74])]()[_0x1d95c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37b1e2,_0x1177a6])=>{_0x30b98e(_0x37b1e2),_0x5bbe59(_0x1177a6);}):_0x30b98e(window[_0x1d95c9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3fc22c));}return _0x5bbe59(_0x4f05aa),_0x431fb4>>>0x0;}function _0x275a8d(_0x5bd7b2){return _0x5bd7b2[_0x1d95c9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d95c9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d95c9([0x30]));}function _0x44b82f(_0x4155d4){return _0x4155d4[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d95c9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d95c9([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f0a13(){}function _0x1d95c9(_0x1f6f8b){return _0x1f6f8b['map'](_0x1d2260=>String['fromCharCode'](_0x1d2260))['join']('');}_0x1fad28(await _0xe02d80());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5530b0){const {plugins:_0x531501,editing:_0x43747b,model:_0x307f70}=this['editor'],_0x4a5163=_0x531501['get'](_0xaf45c0)['getFootnote'](_0x5530b0);return!!_0x4a5163&&(_0x307f70['change'](_0x485d94=>{_0x485d94['setSelection'](_0x485d94['createPositionAt'](_0x4a5163['definition'],'end'));}),_0x43747b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x51f7f4){const {plugins:_0x36fa1a,editing:_0x219ac6,model:_0x19df44}=this['editor'],_0x8dfc0a=_0x36fa1a['get'](_0xaf45c0)['getFootnote'](_0x51f7f4);return!!_0x8dfc0a&&(_0x19df44['change'](_0x2e1edd=>{_0x2e1edd['setSelection'](_0x8dfc0a['reference'],'on');}),_0x219ac6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x34389b}=this['editor']['model'],_0x463414=this['editor']['config']['get']('footnotes.multiBlock');_0x34389b['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x34389b['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x34389b['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x463414?_0x34389b['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x34389b['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x34389b['addChildCheck'](_0x410b99=>{for(const _0x554313 of _0x410b99)if('footnoteDefinition'===_0x554313['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1df739}=this,{conversion:_0x30aab9,editing:_0x4a59c0}=_0x1df739,{t:t}=_0x1df739['locale'];_0x30aab9['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x40ad27,{writer:_0xb505e5,consumable:_0x410c34})=>{const _0x36da81=_0x40ad27['getChild'](0x0);if(!_0x36da81||!_0x36da81['is']('element','a'))return null;const _0x1a71b3=_0x36da81['getAttribute']('href')||'';if(!_0x1a71b3['startsWith']('#'))return null;const _0xdb223e=_0x1a71b3['replace'](/^#/,'');if(!_0xdb223e)return null;_0x410c34['consume'](_0x36da81,{'name':!0x0,'attributes':['href']});for(const {item:_0x5a7d47}of _0x4a59c0['view']['createRangeIn'](_0x36da81))_0x5a7d47['is']('$textProxy')?_0x410c34['consume'](_0x5a7d47['textNode'],{'name':!0x0}):_0x5a7d47['is']('element')&&_0x410c34['consume'](_0x5a7d47,{'name':!0x0});return _0xb505e5['createElement']('footnoteRef',{'footnoteId':_0xdb223e});}}),_0x30aab9['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b3b37,{writer:_0x15d349})=>g(_0x4b3b37,_0x15d349)}),_0x30aab9['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1b40d7,{writer:_0x41030c})=>{const _0x511b6e=_0x1b40d7['getAttribute']('footnoteCounter');return _0x19bf78(g(_0x1b40d7,_0x41030c),_0x41030c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x511b6e)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4d479d}=this,{t:t}=_0x4d479d['locale'],{conversion:_0x4372ae}=_0x4d479d;_0x4372ae['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x4372ae['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x4372ae['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2deb52,{writer:_0x5dfdb4})=>{const _0x574061=_0x5dfdb4['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x5dfdb4['createContainerElement']('ol',{'class':'footnotes'},_0x5dfdb4['createSlot']())),_0x4b7e12=_0x19bf78(_0x574061,_0x5dfdb4,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5dfdb4['setCustomProperty']('footnotesDefinitions',!0x0,_0x4b7e12),_0x4b7e12;}});}['_defineDefinitionConverters'](){const {editor:_0x250976}=this,{conversion:_0x310930,locale:_0x2e5331}=_0x250976,_0x38ab6c=_0x250976['config']['get']('footnotes.multiBlock');_0x310930['for']('upcast')['add'](_0x43af2a=>{_0x43af2a['on']('element:li',(_0x22831d,_0x15261f,_0x4f4b9d)=>{const _0x52c249=_0x15261f['viewItem'];if(!_0x52c249['hasClass']('footnote-definition')||!_0x52c249['getAttribute']('id'))return;const _0x5ea6ba=_0x52c249['parent'];if(!_0x5ea6ba['is']('element','ol')||!_0x5ea6ba['hasClass']('footnotes'))return;if(!_0x4f4b9d['consumable']['test'](_0x52c249,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5ee497=_0x4f4b9d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x52c249['getAttribute']('id')});if(!_0x4f4b9d['safeInsert'](_0x5ee497,_0x15261f['modelCursor']))return;_0x4f4b9d['consumable']['consume'](_0x52c249,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x59cbe1=Array['from'](_0x52c249['getChildren']())['find'](_0x3b7a9c=>_0x3b7a9c['is']('element')&&_0x3b7a9c['hasClass']('footnote-content'));for(const _0x2704c5 of _0x52c249['getChildren']())_0x2704c5['is']('element')&&(_0x4f4b9d['consumable']['consume'](_0x2704c5,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4f4b9d['consumable']['consume'](_0x2704c5,{'name':!0x0,'classes':'footnote-content'}));if(_0x59cbe1){if(_0x38ab6c)_0x4f4b9d['convertChildren'](_0x59cbe1,_0x5ee497);else{const _0x2a9a25=_0x4f4b9d['writer']['createElement']('footnoteInlineContent');_0x4f4b9d['writer']['insert'](_0x2a9a25,_0x5ee497),_0x4f4b9d['convertChildren'](_0x59cbe1,_0x2a9a25);}}_0x4f4b9d['updateConversionResult'](_0x5ee497,_0x15261f);});}),_0x310930['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1bc8eb,{writer:_0x2e18c8})=>D(_0x1bc8eb,_0x2e18c8,_0x2e5331,{'dataPipeline':!0x0})}),_0x310930['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5cc1be,{writer:_0x80f882})=>D(_0x5cc1be,_0x80f882,_0x2e5331)});}['_defineBogusParagraphConverters'](){const {editor:_0x4afc26}=this,{conversion:_0x496de8}=_0x4afc26;_0x4afc26['config']['get']('footnotes.multiBlock')?(_0x496de8['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x496de8['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4afc26['model']['document'],'change:data',()=>{!function(_0x236932,_0x4077af){const _0x434548=_0x236932['document']['differ'],_0x3bc6cb=new Set();for(const _0x218bfb of _0x434548['getChanges']()){const _0x3320f3='attribute'==_0x218bfb['type']?_0x218bfb['range']['start']['parent']:_0x218bfb['position']['parent'];_0x3320f3['is']('element','footnoteDefinition')&&_0x3bc6cb['add'](_0x3320f3);}for(const _0x5cb00e of _0x3bc6cb['values']()){const _0x5bf00f=Array['from'](_0x5cb00e['getChildren']())['filter'](_0x5cee8a=>p(_0x5cee8a,_0x4077af['mapper']));for(const _0x37b4dd of _0x5bf00f)_0x4077af['reconvertItem'](_0x37b4dd);}}(_0x4afc26['model'],_0x4afc26['editing']);})):(_0x496de8['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x496de8['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x206873,{writer:_0xb24d76})=>{const _0x54a922=_0xb24d76['createContainerElement']('span');return _0xb24d76['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x54a922),_0x54a922;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1db55e}=this,{editing:_0x85d9d2,t:t}=_0x1db55e,_0x537671=_0x1db55e['model']['document']['selection'];_0x1db55e['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x1db55e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x85d9d2['view']['document'],'enter',(_0x5e630b,_0x1cc578)=>{const _0x422d94=function(_0x527d2a){const _0x434632=_0x527d2a['getSelectedElement']();if(_0x434632?.['is']('element','footnoteRef'))return _0x434632;return null;}(_0x537671);if(_0x422d94){const _0x5ea4e6=_0x422d94['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5ea4e6),_0x1cc578['preventDefault'](),_0x5e630b['stop']();}},{'context':_0x59ee61});}['_defineClickHandlers'](){const {editor:_0x894b90}=this,{editing:_0x4f2aaa}=_0x894b90;_0x894b90['editing']['view']['addObserver'](_0x20b6c7),_0x894b90['editing']['view']['addObserver'](_0x16fd45);let _0x2e2e81=!0x1;this['listenTo'](_0x4f2aaa['view']['document'],'pointerdown',(_0x17d5c1,_0x38bf5d)=>{const {target:_0x89a0f}=_0x38bf5d,_0x191df1=_0x4f2aaa['view']['document']['selection'];_0x2e2e81=!(!_0x89a0f['is']('element','sup')||!_0x89a0f['hasClass']('footnote'))&&_0x191df1['getSelectedElement']()===_0x89a0f;},{'priority':'high'}),this['listenTo'](_0x4f2aaa['view']['document'],'click',(_0x5c060d,_0x46ef5e)=>{const {target:_0x1643ee}=_0x46ef5e,_0x2acd59=_0x1643ee['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2acd59['slice'](0x1)),_0x5c060d['stop'](),_0x46ef5e['preventDefault']();},{'priority':'high','context':_0x2ce77a=>_0x2ce77a['is']('element','sup')&&_0x2ce77a['hasClass']('footnote')&&_0x2e2e81}),this['listenTo'](_0x4f2aaa['view']['document'],'click',(_0xd22ae9,_0x2e6e2a)=>{const {target:_0x567ccb}=_0x2e6e2a;if(!_0x567ccb['is']('element','a'))return;let _0x1cbebc=_0x567ccb['getAttribute']('href');if(!_0x1cbebc?.['startsWith']('#'))return;_0x1cbebc=_0x1cbebc['slice'](0x1);let _0x486b76=!0x1;(_0x1cbebc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1cbebc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1cbebc))&&(_0x486b76=!0x0),_0x486b76&&(_0x2e6e2a['preventDefault'](),_0xd22ae9['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x520ab0}={}){return(_0xa41be2,{writer:_0x310ba6})=>{if(!h(_0xa41be2))return null;if(!_0x520ab0)return _0x310ba6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x338bd5=_0x310ba6['createContainerElement']('p');return _0x310ba6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x338bd5),_0x338bd5;};}function h(_0x1654eb){const {parent:_0x176679}=_0x1654eb;if(!_0x176679?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x176679['childCount'])return!0x1;for(const _0x5351a6 of _0x1654eb['getAttributeKeys']())if(!_0x5351a6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5351a6)return!0x1;return!0x0;}function p(_0x4c5621,_0x40a388){if(!_0x4c5621['is']('element','paragraph'))return!0x1;const _0x28d008=_0x40a388['toViewElement'](_0x4c5621);return!!_0x28d008&&h(_0x4c5621)!==_0x28d008['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4bd5e3){return _0x59ee61(_0x4bd5e3)&&_0x4bd5e3['is']('containerElement')&&!!_0x4bd5e3['getCustomProperty']('footnotesDefinitions');}function g(_0x120ce1,_0x3ad316){const _0x206907=_0x120ce1['getAttribute']('footnoteId'),_0x2a125c=_0x120ce1['getAttribute']('footnoteCounter'),_0x500f24=_0x3ad316['createUIElement']('a',{'id':'ref-'+_0x206907,'href':'#'+_0x206907},function(_0xe30ecb){const _0x190306=this['toDomElement'](_0xe30ecb);return _0x190306['textContent']=_0x2a125c,_0x190306;}),_0x2ee38d=_0x3ad316['createContainerElement']('sup',{'class':'footnote'},[_0x500f24]);return _0x2ee38d['getFillerOffset']=()=>null,_0x2ee38d;}function D(_0x2bd31c,_0xd92c1a,_0x3a91cf,{dataPipeline:_0x578bc7}={}){const {t:t}=_0x3a91cf,_0x580583=_0x2bd31c['getAttribute']('footnoteId'),_0x421840=_0xd92c1a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x580583},function(_0x4ee2a8){const _0x23c5c9=this['toDomElement'](_0x4ee2a8);return _0x23c5c9['innerText']='^',_0x23c5c9;}),_0x39cd34=_0x578bc7?_0xd92c1a['createContainerElement']('div',{'class':'footnote-content'}):_0xd3d701(_0xd92c1a['createEditableElement']('div',{'class':'footnote-content'}),_0xd92c1a,{'label':t('Footnote\x20content.')});return _0xd92c1a['insert'](_0xd92c1a['createPositionAt'](_0x39cd34,0x0),_0xd92c1a['createSlot']()),_0xd92c1a['createContainerElement']('li',{'class':'footnote-definition','id':_0x580583},[_0x421840,_0x39cd34]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36b2a8=_0x2627;function _0x408a(){const _0x152853=['568350cfCAgs','458xGzrSd','get','getFootnotesDefinitionsObjectElement','35qDIcCJ','footnotesListStart','1009779crTlfW','5977008fammPf','187WFtnuj','refresh','execute','5389713SkjuaA','model','change','getAttribute','isInteger','setAttribute','490938bhksYV','value','_updateFootnotesCounters','4118yoQItM','plugins','isEnabled','1040390GnPIDH','4KahVyt'];_0x408a=function(){return _0x152853;};return _0x408a();}function _0x2627(_0xc31482,_0x3d8fa9){const _0x408a35=_0x408a();return _0x2627=function(_0x2627df,_0x126922){_0x2627df=_0x2627df-0xeb;let _0x84ce3b=_0x408a35[_0x2627df];return _0x84ce3b;},_0x2627(_0xc31482,_0x3d8fa9);}(function(_0x4e66b6,_0x51e2df){const _0x3baa2c=_0x2627,_0x4d18d5=_0x4e66b6();while(!![]){try{const _0x2d36d9=-parseInt(_0x3baa2c(0xf2))/0x1*(parseInt(_0x3baa2c(0xf8))/0x2)+-parseInt(_0x3baa2c(0xfd))/0x3*(-parseInt(_0x3baa2c(0xf6))/0x4)+parseInt(_0x3baa2c(0xfb))/0x5*(-parseInt(_0x3baa2c(0xf7))/0x6)+-parseInt(_0x3baa2c(0xef))/0x7+parseInt(_0x3baa2c(0xfe))/0x8+-parseInt(_0x3baa2c(0x102))/0x9+parseInt(_0x3baa2c(0xf5))/0xa*(parseInt(_0x3baa2c(0xff))/0xb);if(_0x2d36d9===_0x51e2df)break;else _0x4d18d5['push'](_0x4d18d5['shift']());}catch(_0x3b9e14){_0x4d18d5['push'](_0x4d18d5['shift']());}}}(_0x408a,0x8cf0e));import{Command as _0x131a16}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x401bf6}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x131a16{[_0x36b2a8(0x100)](){const _0xf565fa=_0x36b2a8,{editor:_0x14370c}=this,_0x4973e9=_0x14370c[_0xf565fa(0xf3)][_0xf565fa(0xf9)](_0x401bf6)[_0xf565fa(0xfa)]();this[_0xf565fa(0xf4)]=!!_0x4973e9,this[_0xf565fa(0xf0)]=_0x4973e9?.[_0xf565fa(0xec)](_0xf565fa(0xfc))??null;}[_0x36b2a8(0x101)]({value:_0xf1a1ea}){const _0x4f6922=_0x36b2a8,{editor:_0x4f0e16}=this,_0x4d0c7f=_0x4f0e16[_0x4f6922(0xf3)][_0x4f6922(0xf9)](_0x401bf6),_0x4c1e8d=_0x4d0c7f[_0x4f6922(0xfa)]();_0x4c1e8d&&Number[_0x4f6922(0xed)](_0xf1a1ea)&&_0x4f0e16[_0x4f6922(0x103)][_0x4f6922(0xeb)](_0x234189=>{const _0xba860d=_0x4f6922;_0x234189[_0xba860d(0xee)](_0xba860d(0xfc),_0xf1a1ea,_0x4c1e8d),_0x4d0c7f[_0xba860d(0xf1)](_0x234189);});}}
23
+ function _0x5794(){const _0x3faaf7=['plugins','value','223442FBCJAL','4WQEuKr','get','isEnabled','footnotesListStart','250jKoAzh','getAttribute','getFootnotesDefinitionsObjectElement','_updateFootnotesCounters','1446RcMJEU','setAttribute','10376694bLPWBY','2146308iZcxhd','refresh','model','32081010hbhdDS','change','8ExlBZz','26738NGTBGC','execute','isInteger','3849734tQwSHd'];_0x5794=function(){return _0x3faaf7;};return _0x5794();}const _0xaebcc=_0x17d7;(function(_0x5de732,_0x545d4a){const _0x20b813=_0x17d7,_0x28432d=_0x5de732();while(!![]){try{const _0x26bbce=-parseInt(_0x20b813(0x117))/0x1+-parseInt(_0x20b813(0x11d))/0x2+-parseInt(_0x20b813(0x129))/0x3*(parseInt(_0x20b813(0x11e))/0x4)+-parseInt(_0x20b813(0x122))/0x5*(parseInt(_0x20b813(0x126))/0x6)+-parseInt(_0x20b813(0x11a))/0x7+-parseInt(_0x20b813(0x116))/0x8*(parseInt(_0x20b813(0x128))/0x9)+parseInt(_0x20b813(0x12c))/0xa;if(_0x26bbce===_0x545d4a)break;else _0x28432d['push'](_0x28432d['shift']());}catch(_0x598723){_0x28432d['push'](_0x28432d['shift']());}}}(_0x5794,0x9c0fc));function _0x17d7(_0x5799fc,_0x64ca22){const _0x579470=_0x5794();return _0x17d7=function(_0x17d747,_0x337e35){_0x17d747=_0x17d747-0x115;let _0x58d3d0=_0x579470[_0x17d747];return _0x58d3d0;},_0x17d7(_0x5799fc,_0x64ca22);}import{Command as _0x18382a}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x6e611e}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x18382a{[_0xaebcc(0x12a)](){const _0x161888=_0xaebcc,{editor:_0x5d1bd3}=this,_0x442d3e=_0x5d1bd3[_0x161888(0x11b)][_0x161888(0x11f)](_0x6e611e)[_0x161888(0x124)]();this[_0x161888(0x120)]=!!_0x442d3e,this[_0x161888(0x11c)]=_0x442d3e?.[_0x161888(0x123)](_0x161888(0x121))??null;}[_0xaebcc(0x118)]({value:_0x22d249}){const _0x4aa60c=_0xaebcc,{editor:_0x202f47}=this,_0x4d5f8e=_0x202f47[_0x4aa60c(0x11b)][_0x4aa60c(0x11f)](_0x6e611e),_0x2b7682=_0x4d5f8e[_0x4aa60c(0x124)]();_0x2b7682&&Number[_0x4aa60c(0x119)](_0x22d249)&&_0x202f47[_0x4aa60c(0x12b)][_0x4aa60c(0x115)](_0x21eaa9=>{const _0x3eedff=_0x4aa60c;_0x21eaa9[_0x3eedff(0x127)](_0x3eedff(0x121),_0x22d249,_0x2b7682),_0x4d5f8e[_0x3eedff(0x125)](_0x21eaa9);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x150a58=_0x3f42;(function(_0x1536a7,_0x102018){const _0x3fe608=_0x3f42,_0x48f257=_0x1536a7();while(!![]){try{const _0x23e723=parseInt(_0x3fe608(0x12c))/0x1+parseInt(_0x3fe608(0x137))/0x2*(-parseInt(_0x3fe608(0x134))/0x3)+-parseInt(_0x3fe608(0x12e))/0x4+parseInt(_0x3fe608(0x133))/0x5+-parseInt(_0x3fe608(0x124))/0x6+parseInt(_0x3fe608(0x129))/0x7+-parseInt(_0x3fe608(0x126))/0x8;if(_0x23e723===_0x102018)break;else _0x48f257['push'](_0x48f257['shift']());}catch(_0x45061f){_0x48f257['push'](_0x48f257['shift']());}}}(_0x5ca0,0x736d9));import{Command as _0x315fb1}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x113cf5}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x3b26db}from'../../footnotestracker.js';function _0x3f42(_0x463161,_0x2f7855){const _0x5ca014=_0x5ca0();return _0x3f42=function(_0x3f4277,_0x94f4fc){_0x3f4277=_0x3f4277-0x123;let _0x582019=_0x5ca014[_0x3f4277];return _0x582019;},_0x3f42(_0x463161,_0x2f7855);}export class FootnotesStyleCommand extends _0x315fb1{[_0x150a58(0x138)](){const _0x4a07a1=_0x150a58,{editor:_0x27a0a0}=this,_0x405f97=_0x27a0a0[_0x4a07a1(0x136)][_0x4a07a1(0x127)](_0x3b26db)[_0x4a07a1(0x132)]();this[_0x4a07a1(0x123)]=!!_0x405f97,this[_0x4a07a1(0x12b)]=_0x405f97?.[_0x4a07a1(0x128)](_0x4a07a1(0x130))??null;}[_0x150a58(0x125)]({value:_0x47fb5a}){const _0x425f44=_0x150a58,{editor:_0x2158a0}=this,_0x122364=_0x2158a0[_0x425f44(0x136)][_0x425f44(0x127)](_0x3b26db),_0x30f07c=_0x122364[_0x425f44(0x132)]();_0x30f07c&&_0x113cf5[_0x425f44(0x12d)](_0x47fb5a)&&_0x2158a0[_0x425f44(0x12f)][_0x425f44(0x131)](_0x5ea480=>{const _0x1389ca=_0x425f44;_0x5ea480[_0x1389ca(0x12a)](_0x1389ca(0x130),_0x47fb5a,_0x30f07c),_0x122364[_0x1389ca(0x135)](_0x5ea480);});}}function _0x5ca0(){const _0x4b04af=['113012vLswCr','refresh','isEnabled','2982234sXQsSg','execute','2782920pNtDeG','get','getAttribute','5623716GTMhWL','setAttribute','value','505950kJUhBa','includes','38344RBtEEG','model','footnotesListStyle','change','getFootnotesDefinitionsObjectElement','937315SZfUTa','9zFilcr','_updateFootnotesCounters','plugins'];_0x5ca0=function(){return _0x4b04af;};return _0x5ca0();}
23
+ const _0x2bf6ed=_0x15d0;(function(_0x22e0de,_0x1b07b9){const _0x620495=_0x15d0,_0x4ecc2e=_0x22e0de();while(!![]){try{const _0x21ba59=parseInt(_0x620495(0x170))/0x1*(-parseInt(_0x620495(0x172))/0x2)+-parseInt(_0x620495(0x175))/0x3+parseInt(_0x620495(0x17a))/0x4+-parseInt(_0x620495(0x16c))/0x5+-parseInt(_0x620495(0x16b))/0x6*(parseInt(_0x620495(0x16a))/0x7)+parseInt(_0x620495(0x17f))/0x8*(parseInt(_0x620495(0x168))/0x9)+parseInt(_0x620495(0x17c))/0xa;if(_0x21ba59===_0x1b07b9)break;else _0x4ecc2e['push'](_0x4ecc2e['shift']());}catch(_0x5a2aa9){_0x4ecc2e['push'](_0x4ecc2e['shift']());}}}(_0x692a,0x67b4a));import{Command as _0x9b63d2}from'ckeditor5/src/core.js';function _0x15d0(_0x3c5f12,_0x15e300){const _0x692a3e=_0x692a();return _0x15d0=function(_0x15d0f6,_0x5c0eab){_0x15d0f6=_0x15d0f6-0x168;let _0x2c1760=_0x692a3e[_0x15d0f6];return _0x2c1760;},_0x15d0(_0x3c5f12,_0x15e300);}import{FOOTNOTES_DEFINITIONS_STYLES as _0x5037e4}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x1857e6}from'../../footnotestracker.js';function _0x692a(){const _0x384939=['footnotesListStyle','refresh','167472paBGDW','getAttribute','17017390DmvZwn','change','isEnabled','8FytIAH','1569222xVeSSn','model','269745VFAQcO','108prScCX','1220215ZQtrec','get','plugins','includes','11134rzpsBT','getFootnotesDefinitionsObjectElement','76qLooTY','_updateFootnotesCounters','execute','397266KHFfII','value','setAttribute'];_0x692a=function(){return _0x384939;};return _0x692a();}export class FootnotesStyleCommand extends _0x9b63d2{[_0x2bf6ed(0x179)](){const _0x53904d=_0x2bf6ed,{editor:_0xd3aaac}=this,_0x4d4116=_0xd3aaac[_0x53904d(0x16e)][_0x53904d(0x16d)](_0x1857e6)[_0x53904d(0x171)]();this[_0x53904d(0x17e)]=!!_0x4d4116,this[_0x53904d(0x176)]=_0x4d4116?.[_0x53904d(0x17b)](_0x53904d(0x178))??null;}[_0x2bf6ed(0x174)]({value:_0x58ba67}){const _0x535154=_0x2bf6ed,{editor:_0x49d843}=this,_0xfdbe0c=_0x49d843[_0x535154(0x16e)][_0x535154(0x16d)](_0x1857e6),_0x4c9c34=_0xfdbe0c[_0x535154(0x171)]();_0x4c9c34&&_0x5037e4[_0x535154(0x16f)](_0x58ba67)&&_0x49d843[_0x535154(0x169)][_0x535154(0x17d)](_0xdef784=>{const _0xca20c0=_0x535154;_0xdef784[_0xca20c0(0x177)](_0xca20c0(0x178),_0x58ba67,_0x4c9c34),_0xfdbe0c[_0xca20c0(0x173)](_0xdef784);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x39cf(){const _0xeb5c7c=['document','insert','plugins','mapper','2590GxlbMr','upper-roman','differ','12HLBBwo','_defineFormatter','position','attribute:footnotesListStyle:footnotesDefinitions','setStyle','footnotesStart','_updateFootnotesCounters','parseInt','toViewElement','dataDowncast','for','editingDowncast','6039055dOWnfc','getAttribute','footnotes.footnotesProperties.defaultStartIndex','name','init','decimal','isNaN','list-style-type','12768VLwfJx','consume','setAttribute','getChildren','lower-alpha','style','extend','footnotesListStyle','529014KRhsFL','5481KjAnNP','removeAttribute','getChanges','FootnotesPropertiesEditing','removeStyle','registerPostFixer','requires','checkAttribute','getItems','getStyle','7877628zDTTwL','writer','footnotesListStart','_definePostfixer','footnotesStyle','modelRange','consumable','toUpperCase','element:ol','_getDefaultStartIndex','upper-latin','config','start','1rIzYfb','lower-roman','nodeAfter','$text','add','element','attributeToAttribute','isPremiumPlugin','from','floor','50726RLYZQG','_formatFootnoteListValue','_defineSchema','isOfficialPlugin','lower-latin','upcast','decimal-leading-zero','define','toLowerCase','footnotes.footnotesProperties.defaultListStyle','max','footnotesDefinitions','_defineConverters','editor','item','upper-alpha','commands','low','hasAttribute','attributeNewValue','type','setFootnoteFormatter','2525866IbNCfp','padStart','pluginName','10tIkUYr','attribute:footnotesListStart:footnotesDefinitions','get','_getDefaultListStyle','6SCogpp','createRangeOn','3034865bUnkzF','8YVtFwS','fromCharCode','find','model'];_0x39cf=function(){return _0xeb5c7c;};return _0x39cf();}const _0xee852d=_0x3d9b;(function(_0x20caa9,_0x2f96e9){const _0x3872e7=_0x3d9b,_0x2f6e90=_0x20caa9();while(!![]){try{const _0x251de0=-parseInt(_0x3872e7(0x13d))/0x1*(-parseInt(_0x3872e7(0x15d))/0x2)+parseInt(_0x3872e7(0x125))/0x3*(-parseInt(_0x3872e7(0x167))/0x4)+-parseInt(_0x3872e7(0x166))/0x5*(-parseInt(_0x3872e7(0x164))/0x6)+parseInt(_0x3872e7(0x126))/0x7*(-parseInt(_0x3872e7(0x11d))/0x8)+-parseInt(_0x3872e7(0x130))/0x9*(-parseInt(_0x3872e7(0x160))/0xa)+-parseInt(_0x3872e7(0x115))/0xb*(-parseInt(_0x3872e7(0x172))/0xc)+parseInt(_0x3872e7(0x147))/0xd*(-parseInt(_0x3872e7(0x16f))/0xe);if(_0x251de0===_0x2f96e9)break;else _0x2f6e90['push'](_0x2f6e90['shift']());}catch(_0x2e9e17){_0x2f6e90['push'](_0x2f6e90['shift']());}}}(_0x39cf,0xecd05));import{Plugin as _0x21c103}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x4e62df}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x11a0cf}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x36ff37}from'../footnotestracker.js';import{FootnotesEditing as _0x390944}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x21c103{static get[_0xee852d(0x15f)](){const _0x3afde0=_0xee852d;return _0x3afde0(0x129);}static get[_0xee852d(0x12c)](){return[_0x390944,_0x36ff37];}static get[_0xee852d(0x14a)](){return!0x0;}static get[_0xee852d(0x144)](){return!0x0;}[_0xee852d(0x119)](){const _0xb317e7=_0xee852d,{editor:_0x2714c5}=this;_0x2714c5[_0xb317e7(0x13b)][_0xb317e7(0x14e)](_0xb317e7(0x150),_0xb317e7(0x11a)),_0x2714c5[_0xb317e7(0x13b)][_0xb317e7(0x14e)](_0xb317e7(0x117),0x1),_0x2714c5[_0xb317e7(0x157)][_0xb317e7(0x141)](_0xb317e7(0x134),new _0x4e62df(_0x2714c5)),_0x2714c5[_0xb317e7(0x157)][_0xb317e7(0x141)](_0xb317e7(0x177),new _0x11a0cf(_0x2714c5)),this[_0xb317e7(0x149)](),this[_0xb317e7(0x153)](),this[_0xb317e7(0x173)](),this[_0xb317e7(0x133)]();}[_0xee852d(0x149)](){const _0x191d6f=_0xee852d,{editor:_0x3c78d8}=this,{schema:_0x30e51a}=_0x3c78d8[_0x191d6f(0x16a)];_0x30e51a[_0x191d6f(0x123)](_0x191d6f(0x152),{'allowAttributes':[_0x191d6f(0x124),_0x191d6f(0x132)]});}[_0xee852d(0x153)](){const _0x32aa49=_0xee852d,{editor:_0x3656ec}=this,{conversion:_0x31211a,model:_0x3b8f4a}=_0x3656ec,{schema:_0x45d503}=_0x3b8f4a;_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x14c))[_0x32aa49(0x143)]({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':_0x32aa49(0x124),'value':_0x98715a=>_0x98715a[_0x32aa49(0x12f)](_0x32aa49(0x11c))}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x14c))[_0x32aa49(0x143)]({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':_0x32aa49(0x132),'value':_0x562cc5=>{const _0x188447=_0x32aa49,_0x154808=_0x562cc5[_0x188447(0x116)](_0x188447(0x13c)),_0x2013a6=Number[_0x188447(0x179)](_0x154808,0xa);return Number[_0x188447(0x11b)](_0x2013a6)?null:_0x2013a6;}}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x14c))[_0x32aa49(0x143)]({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':_0x32aa49(0x124),'value':_0x387ec6=>({0x1:_0x32aa49(0x11a),'a':_0x32aa49(0x121),'A':_0x32aa49(0x156),'i':_0x32aa49(0x13e),'I':_0x32aa49(0x170)}[_0x387ec6[_0x32aa49(0x116)](_0x32aa49(0x15b))])}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x14c))[_0x32aa49(0x141)](_0x45bf87=>{const _0x116042=_0x32aa49;_0x45bf87['on'](_0x116042(0x138),(_0x20a249,_0x298bdc,_0x126686)=>{const _0x2c9bea=_0x116042,_0x59e96c=_0x298bdc[_0x2c9bea(0x135)]?.[_0x2c9bea(0x13c)][_0x2c9bea(0x13f)];_0x59e96c?.['is'](_0x2c9bea(0x142),_0x2c9bea(0x152))&&(!_0x59e96c[_0x2c9bea(0x159)](_0x2c9bea(0x124))&&_0x45d503[_0x2c9bea(0x12d)](_0x59e96c,_0x2c9bea(0x124))&&_0x126686[_0x2c9bea(0x131)][_0x2c9bea(0x11f)](_0x2c9bea(0x124),_0x2c9bea(0x11a),_0x59e96c),!_0x59e96c[_0x2c9bea(0x159)](_0x2c9bea(0x132))&&_0x45d503[_0x2c9bea(0x12d)](_0x59e96c,_0x2c9bea(0x132))&&_0x126686[_0x2c9bea(0x131)][_0x2c9bea(0x11f)](_0x2c9bea(0x132),0x1,_0x59e96c));},{'priority':_0x116042(0x158)});}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x17b))[_0x32aa49(0x143)]({'model':{'name':_0x32aa49(0x152),'key':_0x32aa49(0x132)},'view':_0x4ecaa3=>0x1===_0x4ecaa3?null:{'key':_0x32aa49(0x13c),'value':String(_0x4ecaa3)}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x17b))[_0x32aa49(0x143)]({'model':{'name':_0x32aa49(0x152),'key':_0x32aa49(0x124)},'view':_0x1cebd6=>_0x32aa49(0x11a)===_0x1cebd6?null:{'key':_0x32aa49(0x122),'value':{'list-style-type':_0x1cebd6}}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x17d))[_0x32aa49(0x141)](_0x4b504d=>{const _0x39bdc9=_0x32aa49;_0x4b504d['on'](_0x39bdc9(0x161),(_0x4df6b0,_0x230c54,_0x508502)=>{const _0x2b8dea=_0x39bdc9;if(!_0x508502[_0x2b8dea(0x136)][_0x2b8dea(0x11e)](_0x230c54[_0x2b8dea(0x155)],_0x4df6b0[_0x2b8dea(0x118)]))return;const _0x43921b=C(_0x230c54[_0x2b8dea(0x155)],_0x508502[_0x2b8dea(0x16e)]);null===_0x230c54[_0x2b8dea(0x15a)]||void 0x0===_0x230c54[_0x2b8dea(0x15a)]||0x1===_0x230c54[_0x2b8dea(0x15a)]?_0x508502[_0x2b8dea(0x131)][_0x2b8dea(0x127)](_0x2b8dea(0x13c),_0x43921b):_0x508502[_0x2b8dea(0x131)][_0x2b8dea(0x11f)](_0x2b8dea(0x13c),String(_0x230c54[_0x2b8dea(0x15a)]),_0x43921b);}),_0x4b504d['on'](_0x39bdc9(0x175),(_0xae5db5,_0x2764a9,_0x305202)=>{const _0x113e4b=_0x39bdc9;if(!_0x305202[_0x113e4b(0x136)][_0x113e4b(0x11e)](_0x2764a9[_0x113e4b(0x155)],_0xae5db5[_0x113e4b(0x118)]))return;const _0x1fb62a=C(_0x2764a9[_0x113e4b(0x155)],_0x305202[_0x113e4b(0x16e)]);_0x2764a9[_0x113e4b(0x15a)]&&_0x113e4b(0x11a)!==_0x2764a9[_0x113e4b(0x15a)]?_0x305202[_0x113e4b(0x131)][_0x113e4b(0x176)](_0x113e4b(0x11c),_0x2764a9[_0x113e4b(0x15a)],_0x1fb62a):_0x305202[_0x113e4b(0x131)][_0x113e4b(0x12a)](_0x113e4b(0x11c),_0x1fb62a);});});}[_0xee852d(0x133)](){const _0x2b8689=_0xee852d,{editor:_0x3e6313}=this,{model:_0x4aced1}=_0x3e6313,_0x224650=_0x3e6313[_0x2b8689(0x16d)][_0x2b8689(0x162)](_0x36ff37),_0x4717f2=this[_0x2b8689(0x163)](),_0x1e3915=this[_0x2b8689(0x139)]();_0x4aced1[_0x2b8689(0x16b)][_0x2b8689(0x12b)](_0x22576e=>{const _0x6b0474=_0x2b8689,_0x485d1a=_0x4aced1[_0x6b0474(0x16b)][_0x6b0474(0x171)][_0x6b0474(0x128)]();let _0x4cc317=!0x1;for(const _0x2dca33 of _0x485d1a){if(_0x6b0474(0x16c)!==_0x2dca33[_0x6b0474(0x15b)]||_0x6b0474(0x140)===_0x2dca33[_0x6b0474(0x118)])continue;const _0x5a7750=_0x4aced1[_0x6b0474(0x165)](_0x2dca33[_0x6b0474(0x174)][_0x6b0474(0x13f)]);for(const _0x1cfdae of _0x5a7750[_0x6b0474(0x12e)]())_0x1cfdae['is'](_0x6b0474(0x142),_0x6b0474(0x152))&&(_0x1cfdae[_0x6b0474(0x159)](_0x6b0474(0x132))||(_0x22576e[_0x6b0474(0x11f)](_0x6b0474(0x132),_0x1e3915,_0x1cfdae),_0x4cc317=!0x0),_0x1cfdae[_0x6b0474(0x159)](_0x6b0474(0x124))||(_0x22576e[_0x6b0474(0x11f)](_0x6b0474(0x124),_0x4717f2,_0x1cfdae),_0x4cc317=!0x0));}return _0x4cc317&&_0x224650[_0x6b0474(0x178)](_0x22576e),_0x4cc317;});}[_0xee852d(0x173)](){const _0x8086c7=_0xee852d,{editor:_0x5cbb03}=this;_0x5cbb03[_0x8086c7(0x16d)][_0x8086c7(0x162)](_0x36ff37)[_0x8086c7(0x15c)](_0x177c0f=>this[_0x8086c7(0x148)](_0x177c0f));}[_0xee852d(0x163)](){const _0x2166d8=_0xee852d;return this[_0x2166d8(0x154)][_0x2166d8(0x13b)][_0x2166d8(0x162)](_0x2166d8(0x150));}[_0xee852d(0x139)](){const _0x99c431=_0xee852d;return this[_0x99c431(0x154)][_0x99c431(0x13b)][_0x99c431(0x162)](_0x99c431(0x117));}[_0xee852d(0x148)]({container:_0x415f73,value:_0x5ecc7f,digits:_0x574143}){const _0x191ad6=_0xee852d,_0x3ba843=_0x415f73[_0x191ad6(0x116)](_0x191ad6(0x124)),_0x461a1f=_0x415f73[_0x191ad6(0x116)](_0x191ad6(0x132)),_0x324b2a=Math[_0x191ad6(0x146)](_0x5ecc7f)+(_0x461a1f-0x1);switch(_0x3ba843){case _0x191ad6(0x11a):default:return String(_0x324b2a);case _0x191ad6(0x14d):return function(_0x31387d,_0x1876be){const _0x4cfaec=_0x191ad6;return String(_0x31387d)[_0x4cfaec(0x15e)](_0x1876be,'0');}(_0x324b2a,Math[_0x191ad6(0x151)](0x2,_0x574143));case _0x191ad6(0x121):case _0x191ad6(0x14b):return M(_0x324b2a,!0x1);case _0x191ad6(0x156):case _0x191ad6(0x13a):return M(_0x324b2a,!0x0);case _0x191ad6(0x13e):return A(_0x324b2a,!0x1);case _0x191ad6(0x170):return A(_0x324b2a,!0x0);}}}function C(_0x30f04c,_0x5a6136){const _0x1212bb=_0xee852d,_0x5bdc3b=_0x5a6136[_0x1212bb(0x17a)](_0x30f04c);return Array[_0x1212bb(0x145)](_0x5bdc3b[_0x1212bb(0x120)]())[_0x1212bb(0x169)](_0x400394=>_0x400394['is'](_0x1212bb(0x142),'ol'));}function M(_0x224600,_0x188df3){const _0x36e415=_0xee852d;let _0x359b32='',_0x4f5aa2=_0x224600;for(;_0x4f5aa2>0x0;){const _0x1c7549=(_0x4f5aa2-0x1)%0x1a;_0x359b32=String[_0x36e415(0x168)](0x61+_0x1c7549)+_0x359b32,_0x4f5aa2=Math[_0x36e415(0x146)]((_0x4f5aa2-0x1)/0x1a);}return _0x188df3?_0x359b32[_0x36e415(0x137)]():_0x359b32;}const X=[{'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 _0x3d9b(_0x44106b,_0x12447c){const _0x39cf11=_0x39cf();return _0x3d9b=function(_0x3d9b23,_0x146b18){_0x3d9b23=_0x3d9b23-0x115;let _0x48df6a=_0x39cf11[_0x3d9b23];return _0x48df6a;},_0x3d9b(_0x44106b,_0x12447c);}function A(_0x455452,_0x54b690){const _0x39eaba=_0xee852d;let _0x1f8e19='',_0x4b7b98=_0x455452;for(const {value:_0x2f3b01,numeral:_0xa54264}of X)for(;_0x4b7b98>=_0x2f3b01;)_0x1f8e19+=_0xa54264,_0x4b7b98-=_0x2f3b01;return _0x54b690?_0x1f8e19:_0x1f8e19[_0x39eaba(0x14f)]();}
23
+ const _0x145094=_0x24c6;(function(_0x1ef76c,_0x45ebb1){const _0x2335d8=_0x24c6,_0x2061bd=_0x1ef76c();while(!![]){try{const _0x214d59=-parseInt(_0x2335d8(0x137))/0x1*(parseInt(_0x2335d8(0x168))/0x2)+-parseInt(_0x2335d8(0x14b))/0x3+-parseInt(_0x2335d8(0x11b))/0x4+-parseInt(_0x2335d8(0x124))/0x5*(-parseInt(_0x2335d8(0x11d))/0x6)+parseInt(_0x2335d8(0x156))/0x7+-parseInt(_0x2335d8(0x15c))/0x8*(-parseInt(_0x2335d8(0x12c))/0x9)+-parseInt(_0x2335d8(0x120))/0xa;if(_0x214d59===_0x45ebb1)break;else _0x2061bd['push'](_0x2061bd['shift']());}catch(_0x35ded8){_0x2061bd['push'](_0x2061bd['shift']());}}}(_0x3ccc,0xd9f6d));function _0x24c6(_0x2400d5,_0x180666){const _0x3ccc00=_0x3ccc();return _0x24c6=function(_0x24c63b,_0x1a77da){_0x24c63b=_0x24c63b-0x11a;let _0x2d12ab=_0x3ccc00[_0x24c63b];return _0x2d12ab;},_0x24c6(_0x2400d5,_0x180666);}import{Plugin as _0x3d247d}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x407a69}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x2799cb}from'./commands/footnotesstartcommand.js';function _0x3ccc(){const _0x403bac=['config','footnotes.footnotesProperties.defaultListStyle','647935hFktOn','toUpperCase','start','_formatFootnoteListValue','editingDowncast','_definePostfixer','registerPostFixer','_defineFormatter','9uwsgbH','for','pluginName','upper-alpha','consumable','name','_getDefaultListStyle','commands','style','requires','attributeNewValue','274KwEobu','modelRange','attribute:footnotesListStyle:footnotesDefinitions','floor','getItems','toLowerCase','model','_updateFootnotesCounters','getAttribute','isOfficialPlugin','footnotesListStart','insert','fromCharCode','item','upper-roman','low','setStyle','extend','list-style-type','getStyle','2738478zUWojP','attributeToAttribute','footnotesDefinitions','decimal-leading-zero','createRangeOn','padStart','define','attribute:footnotesListStart:footnotesDefinitions','nodeAfter','_defineSchema','mapper','1120567kajDse','decimal','footnotesListStyle','lower-latin','isPremiumPlugin','FootnotesPropertiesEditing','11312984uazcqu','lower-alpha','position','footnotes.footnotesProperties.defaultStartIndex','_defineConverters','upper-latin','hasAttribute','footnotesStyle','lower-roman','document','max','consume','726DtfxmO','toViewElement','editor','getChildren','plugins','checkAttribute','footnotesStart','writer','from','element','isNaN','$text','setAttribute','init','getChanges','element:ol','dataDowncast','upcast','removeAttribute','setFootnoteFormatter','removeStyle','parseInt','find','_getDefaultStartIndex','1802128FtruCo','differ','78YMkfsg','type','add','9032340fnmAPS','get'];_0x3ccc=function(){return _0x403bac;};return _0x3ccc();}import{FootnotesTracker as _0x34a661}from'../footnotestracker.js';import{FootnotesEditing as _0x409384}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x3d247d{static get[_0x145094(0x12e)](){const _0x1ca060=_0x145094;return _0x1ca060(0x15b);}static get[_0x145094(0x135)](){return[_0x409384,_0x34a661];}static get[_0x145094(0x140)](){return!0x0;}static get[_0x145094(0x15a)](){return!0x0;}[_0x145094(0x175)](){const _0x1a1777=_0x145094,{editor:_0x4848a1}=this;_0x4848a1[_0x1a1777(0x122)][_0x1a1777(0x151)](_0x1a1777(0x123),_0x1a1777(0x157)),_0x4848a1[_0x1a1777(0x122)][_0x1a1777(0x151)](_0x1a1777(0x15f),0x1),_0x4848a1[_0x1a1777(0x133)][_0x1a1777(0x11f)](_0x1a1777(0x163),new _0x407a69(_0x4848a1)),_0x4848a1[_0x1a1777(0x133)][_0x1a1777(0x11f)](_0x1a1777(0x16e),new _0x2799cb(_0x4848a1)),this[_0x1a1777(0x154)](),this[_0x1a1777(0x160)](),this[_0x1a1777(0x12b)](),this[_0x1a1777(0x129)]();}[_0x145094(0x154)](){const _0x224f5e=_0x145094,{editor:_0x135b5e}=this,{schema:_0x5f1dac}=_0x135b5e[_0x224f5e(0x13d)];_0x5f1dac[_0x224f5e(0x148)](_0x224f5e(0x14d),{'allowAttributes':[_0x224f5e(0x158),_0x224f5e(0x141)]});}[_0x145094(0x160)](){const _0x337db8=_0x145094,{editor:_0x403392}=this,{conversion:_0x1a8011,model:_0x4b882b}=_0x403392,{schema:_0x183d81}=_0x4b882b;_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x179))[_0x337db8(0x14c)]({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':_0x337db8(0x158),'value':_0x2ce6aa=>_0x2ce6aa[_0x337db8(0x14a)](_0x337db8(0x149))}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x179))[_0x337db8(0x14c)]({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':_0x337db8(0x141),'value':_0x42cabc=>{const _0x3531fe=_0x337db8,_0x5f4b89=_0x42cabc[_0x3531fe(0x13f)](_0x3531fe(0x126)),_0x5eb1d1=Number[_0x3531fe(0x17d)](_0x5f4b89,0xa);return Number[_0x3531fe(0x172)](_0x5eb1d1)?null:_0x5eb1d1;}}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x179))[_0x337db8(0x14c)]({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':_0x337db8(0x158),'value':_0x191adc=>({0x1:_0x337db8(0x157),'a':_0x337db8(0x15d),'A':_0x337db8(0x12f),'i':_0x337db8(0x164),'I':_0x337db8(0x145)}[_0x191adc[_0x337db8(0x13f)](_0x337db8(0x11e))])}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x179))[_0x337db8(0x11f)](_0x5dcb3a=>{const _0x1c9d69=_0x337db8;_0x5dcb3a['on'](_0x1c9d69(0x177),(_0x57ef2f,_0x5c6072,_0x46ae72)=>{const _0x4972f3=_0x1c9d69,_0x21349e=_0x5c6072[_0x4972f3(0x138)]?.[_0x4972f3(0x126)][_0x4972f3(0x153)];_0x21349e?.['is'](_0x4972f3(0x171),_0x4972f3(0x14d))&&(!_0x21349e[_0x4972f3(0x162)](_0x4972f3(0x158))&&_0x183d81[_0x4972f3(0x16d)](_0x21349e,_0x4972f3(0x158))&&_0x46ae72[_0x4972f3(0x16f)][_0x4972f3(0x174)](_0x4972f3(0x158),_0x4972f3(0x157),_0x21349e),!_0x21349e[_0x4972f3(0x162)](_0x4972f3(0x141))&&_0x183d81[_0x4972f3(0x16d)](_0x21349e,_0x4972f3(0x141))&&_0x46ae72[_0x4972f3(0x16f)][_0x4972f3(0x174)](_0x4972f3(0x141),0x1,_0x21349e));},{'priority':_0x1c9d69(0x146)});}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x178))[_0x337db8(0x14c)]({'model':{'name':_0x337db8(0x14d),'key':_0x337db8(0x141)},'view':_0x1d1e35=>0x1===_0x1d1e35?null:{'key':_0x337db8(0x126),'value':String(_0x1d1e35)}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x178))[_0x337db8(0x14c)]({'model':{'name':_0x337db8(0x14d),'key':_0x337db8(0x158)},'view':_0x36d40a=>_0x337db8(0x157)===_0x36d40a?null:{'key':_0x337db8(0x134),'value':{'list-style-type':_0x36d40a}}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x128))[_0x337db8(0x11f)](_0x3e9e04=>{const _0x1282d6=_0x337db8;_0x3e9e04['on'](_0x1282d6(0x152),(_0x3d0d8a,_0x12d93e,_0xf1d388)=>{const _0x3a7382=_0x1282d6;if(!_0xf1d388[_0x3a7382(0x130)][_0x3a7382(0x167)](_0x12d93e[_0x3a7382(0x144)],_0x3d0d8a[_0x3a7382(0x131)]))return;const _0x1c234a=b(_0x12d93e[_0x3a7382(0x144)],_0xf1d388[_0x3a7382(0x155)]);null===_0x12d93e[_0x3a7382(0x136)]||void 0x0===_0x12d93e[_0x3a7382(0x136)]||0x1===_0x12d93e[_0x3a7382(0x136)]?_0xf1d388[_0x3a7382(0x16f)][_0x3a7382(0x17a)](_0x3a7382(0x126),_0x1c234a):_0xf1d388[_0x3a7382(0x16f)][_0x3a7382(0x174)](_0x3a7382(0x126),String(_0x12d93e[_0x3a7382(0x136)]),_0x1c234a);}),_0x3e9e04['on'](_0x1282d6(0x139),(_0x5bc316,_0x5bee0d,_0x3bd190)=>{const _0x30ad37=_0x1282d6;if(!_0x3bd190[_0x30ad37(0x130)][_0x30ad37(0x167)](_0x5bee0d[_0x30ad37(0x144)],_0x5bc316[_0x30ad37(0x131)]))return;const _0x3398c9=b(_0x5bee0d[_0x30ad37(0x144)],_0x3bd190[_0x30ad37(0x155)]);_0x5bee0d[_0x30ad37(0x136)]&&_0x30ad37(0x157)!==_0x5bee0d[_0x30ad37(0x136)]?_0x3bd190[_0x30ad37(0x16f)][_0x30ad37(0x147)](_0x30ad37(0x149),_0x5bee0d[_0x30ad37(0x136)],_0x3398c9):_0x3bd190[_0x30ad37(0x16f)][_0x30ad37(0x17c)](_0x30ad37(0x149),_0x3398c9);});});}[_0x145094(0x129)](){const _0x121589=_0x145094,{editor:_0x4dd07b}=this,{model:_0x298ba6}=_0x4dd07b,_0x36ecba=_0x4dd07b[_0x121589(0x16c)][_0x121589(0x121)](_0x34a661),_0x5bdfa9=this[_0x121589(0x132)](),_0x469b48=this[_0x121589(0x11a)]();_0x298ba6[_0x121589(0x165)][_0x121589(0x12a)](_0x10cb33=>{const _0x4a07f9=_0x121589,_0x375f95=_0x298ba6[_0x4a07f9(0x165)][_0x4a07f9(0x11c)][_0x4a07f9(0x176)]();let _0x167285=!0x1;for(const _0x3236cd of _0x375f95){if(_0x4a07f9(0x142)!==_0x3236cd[_0x4a07f9(0x11e)]||_0x4a07f9(0x173)===_0x3236cd[_0x4a07f9(0x131)])continue;const _0x554e33=_0x298ba6[_0x4a07f9(0x14f)](_0x3236cd[_0x4a07f9(0x15e)][_0x4a07f9(0x153)]);for(const _0x2c2cbc of _0x554e33[_0x4a07f9(0x13b)]())_0x2c2cbc['is'](_0x4a07f9(0x171),_0x4a07f9(0x14d))&&(_0x2c2cbc[_0x4a07f9(0x162)](_0x4a07f9(0x141))||(_0x10cb33[_0x4a07f9(0x174)](_0x4a07f9(0x141),_0x469b48,_0x2c2cbc),_0x167285=!0x0),_0x2c2cbc[_0x4a07f9(0x162)](_0x4a07f9(0x158))||(_0x10cb33[_0x4a07f9(0x174)](_0x4a07f9(0x158),_0x5bdfa9,_0x2c2cbc),_0x167285=!0x0));}return _0x167285&&_0x36ecba[_0x4a07f9(0x13e)](_0x10cb33),_0x167285;});}[_0x145094(0x12b)](){const _0x303d10=_0x145094,{editor:_0x561aae}=this;_0x561aae[_0x303d10(0x16c)][_0x303d10(0x121)](_0x34a661)[_0x303d10(0x17b)](_0x3d8cfb=>this[_0x303d10(0x127)](_0x3d8cfb));}[_0x145094(0x132)](){const _0x246cfe=_0x145094;return this[_0x246cfe(0x16a)][_0x246cfe(0x122)][_0x246cfe(0x121)](_0x246cfe(0x123));}[_0x145094(0x11a)](){const _0x4de266=_0x145094;return this[_0x4de266(0x16a)][_0x4de266(0x122)][_0x4de266(0x121)](_0x4de266(0x15f));}[_0x145094(0x127)]({container:_0xd48bfe,value:_0x58b645,digits:_0x56d9b2}){const _0x1b45b6=_0x145094,_0x5ac34e=_0xd48bfe[_0x1b45b6(0x13f)](_0x1b45b6(0x158)),_0x2b6503=_0xd48bfe[_0x1b45b6(0x13f)](_0x1b45b6(0x141)),_0x3d5a71=Math[_0x1b45b6(0x13a)](_0x58b645)+(_0x2b6503-0x1);switch(_0x5ac34e){case _0x1b45b6(0x157):default:return String(_0x3d5a71);case _0x1b45b6(0x14e):return function(_0x7c891f,_0x516998){const _0x4b7ddc=_0x1b45b6;return String(_0x7c891f)[_0x4b7ddc(0x150)](_0x516998,'0');}(_0x3d5a71,Math[_0x1b45b6(0x166)](0x2,_0x56d9b2));case _0x1b45b6(0x15d):case _0x1b45b6(0x159):return x(_0x3d5a71,!0x1);case _0x1b45b6(0x12f):case _0x1b45b6(0x161):return x(_0x3d5a71,!0x0);case _0x1b45b6(0x164):return M(_0x3d5a71,!0x1);case _0x1b45b6(0x145):return M(_0x3d5a71,!0x0);}}}function b(_0x33c032,_0x1c7f7a){const _0x2c2968=_0x145094,_0xd0b837=_0x1c7f7a[_0x2c2968(0x169)](_0x33c032);return Array[_0x2c2968(0x170)](_0xd0b837[_0x2c2968(0x16b)]())[_0x2c2968(0x17e)](_0x1a0811=>_0x1a0811['is'](_0x2c2968(0x171),'ol'));}function x(_0x56a9f1,_0x2870a7){const _0x49e01c=_0x145094;let _0x1e5f1f='',_0x54c47a=_0x56a9f1;for(;_0x54c47a>0x0;){const _0x237c04=(_0x54c47a-0x1)%0x1a;_0x1e5f1f=String[_0x49e01c(0x143)](0x61+_0x237c04)+_0x1e5f1f,_0x54c47a=Math[_0x49e01c(0x13a)]((_0x54c47a-0x1)/0x1a);}return _0x2870a7?_0x1e5f1f[_0x49e01c(0x125)]():_0x1e5f1f;}const C=[{'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 M(_0x334cad,_0x2ad240){const _0x2f851e=_0x145094;let _0x507b54='',_0x2d7623=_0x334cad;for(const {value:_0x49b989,numeral:_0x4818cd}of C)for(;_0x2d7623>=_0x49b989;)_0x507b54+=_0x4818cd,_0x2d7623-=_0x49b989;return _0x2ad240?_0x507b54:_0x507b54[_0x2f851e(0x13c)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{BalloonPanelView as _0x4d3148,ButtonView as _0x359eef,ContextualBalloon as _0x158621,createDropdown as _0x39c42d}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x5a64d6}from'ckeditor5/src/widget.js';import{Plugin as _0xe43f2f}from'ckeditor5/src/core.js';import{IconFootnote as _0x481773,IconListStyleDecimal as _0x179f69,IconListStyleDecimalLeadingZero as _0x56aeb8,IconListStyleLowerLatin as _0x7d6ad7,IconListStyleLowerRoman as _0x662fca,IconListStyleUpperLatin as _0x228073,IconListStyleUpperRoman as _0x3913b5}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x10b48d}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x2fc6e8}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0xe43f2f{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x158621,_0x5a64d6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b37d0}=this,{componentFactory:_0x25945e}=_0x2b37d0['ui'];_0x2b37d0['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x25945e['add']('footnotesStyle',function(_0x262e3b){return _0x33e90d=>{const {t:t}=_0x33e90d,_0xbb8efc=_0x262e3b['commands']['get']('footnotesStyle'),_0x67cd73=_0x39c42d(_0x33e90d),{buttonView:_0x4f8b9b}=_0x67cd73;return _0x67cd73['class']='ck-footnotes-styles-dropdown',_0x67cd73['bind']('isEnabled')['to'](_0xbb8efc,'isEnabled'),_0x4f8b9b['set']({'label':t('Footnotes\x20style'),'icon':_0x481773,'tooltip':!0x0}),_0x67cd73['once']('change:isOpen',()=>{const _0x342b38=function({editor:_0x4e8a05,dropdownView:_0x34eeb1}){const {t:t}=_0x4e8a05['locale'],_0xcfca7d=t('Footnotes\x20definitions\x20styles'),_0x24264b=function(_0x4838d6){const t=_0x4838d6['locale']['t'],_0x1dda85=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x179f69},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x56aeb8},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x662fca},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3913b5},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x7d6ad7},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x228073}];return _0x1dda85['map'](function(_0x184834){const _0xa8d6e1=_0x184834['locale'];return({label:_0x18622c,icon:_0x4d1d24,tooltip:_0x54343e,style:_0x273801})=>{const _0x29738a=_0x184834['commands']['get']('footnotesStyle'),_0x40674b=new _0x359eef(_0xa8d6e1);return _0x40674b['set']({'label':_0x18622c,'icon':_0x4d1d24,'tooltip':_0x54343e}),_0x40674b['bind']('isOn')['to'](_0x29738a,'value',_0x34b04c=>_0x34b04c===_0x273801),_0x40674b['bind']('isEnabled')['to'](_0x29738a,'isEnabled'),_0x40674b['on']('execute',()=>{_0x184834['execute']('footnotesStyle',{'value':_0x273801}),_0x184834['editing']['view']['focus']();}),_0x40674b;};}(_0x4838d6));}(_0x4e8a05),_0x1ab040=new _0x10b48d(_0x4e8a05['locale'],{'styleGridAriaLabel':_0xcfca7d,'styleButtonViews':_0x24264b});return _0x1ab040['delegate']('execute')['to'](_0x34eeb1),_0x1ab040['on']('footnotesListStart',(_0x2005d4,_0x1717c8)=>{_0x4e8a05['execute']('footnotesStart',{'value':_0x1717c8['startIndex']});}),_0x1ab040;}({'editor':_0x262e3b,'dropdownView':_0x67cd73});_0x67cd73['panelView']['children']['add'](_0x342b38);}),_0x67cd73;};}(_0x2b37d0));}['afterInit'](){const {editor:_0x2a8045}=this,{t:t}=_0x2a8045['locale'],_0x42489f=_0x2a8045['plugins']['get'](_0x5a64d6),{defaultPositions:_0x5c9fc7}=_0x4d3148;_0x42489f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2a8045['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5c008c=>{let _0x5aeb9f=_0x5c008c['getFirstPosition']()?.['parent'];return _0x5aeb9f?.['is']('$text')&&(_0x5aeb9f=_0x5aeb9f['parent']),_0x5aeb9f?.['is']('element')?_0x5aeb9f['findAncestor'](_0x2fc6e8):null;},'positions':[_0x5c9fc7['southArrowNorth'],_0x5c9fc7['southArrowNorthMiddleWest'],_0x5c9fc7['southArrowNorthMiddleEast'],_0x5c9fc7['southArrowNorthWest'],_0x5c9fc7['southArrowNorthEast'],_0x5c9fc7['northArrowSouth'],_0x5c9fc7['northArrowSouthMiddleWest'],_0x5c9fc7['northArrowSouthMiddleEast'],_0x5c9fc7['northArrowSouthWest'],_0x5c9fc7['northArrowSouthEast'],_0x5c9fc7['viewportStickyNorth']]});}}
23
+ import{BalloonPanelView as _0x2cdc72,ButtonView as _0x59b106,ContextualBalloon as _0x47872e,createDropdown as _0x585b69}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x31ce52}from'ckeditor5/src/widget.js';import{Plugin as _0x280650}from'ckeditor5/src/core.js';import{IconFootnote as _0x3ed399,IconListStyleDecimal as _0x325313,IconListStyleDecimalLeadingZero as _0x3d9809,IconListStyleLowerLatin as _0x3632ee,IconListStyleLowerRoman as _0x405ae3,IconListStyleUpperLatin as _0x3b0b00,IconListStyleUpperRoman as _0x30492d}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4e1982}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x3cae56}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x280650{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x47872e,_0x31ce52];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x379856}=this,{componentFactory:_0x2faf0a}=_0x379856['ui'];_0x379856['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2faf0a['add']('footnotesStyle',function(_0x172e85){return _0x26c205=>{const {t:t}=_0x26c205,_0x363fae=_0x172e85['commands']['get']('footnotesStyle'),_0x5a9880=_0x585b69(_0x26c205),{buttonView:_0x3e1423}=_0x5a9880;return _0x5a9880['class']='ck-footnotes-styles-dropdown',_0x5a9880['bind']('isEnabled')['to'](_0x363fae,'isEnabled'),_0x3e1423['set']({'label':t('Footnotes\x20style'),'icon':_0x3ed399,'tooltip':!0x0}),_0x5a9880['once']('change:isOpen',()=>{const _0x1f9db7=function({editor:_0x42a9e0,dropdownView:_0x16f201}){const {t:t}=_0x42a9e0['locale'],_0x1f00e2=t('Footnotes\x20definitions\x20styles'),_0x544ffe=function(_0x7c3b2c){const t=_0x7c3b2c['locale']['t'],_0x409c90=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x325313},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3d9809},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x405ae3},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x30492d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3632ee},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x3b0b00}];return _0x409c90['map'](function(_0xc274ac){const _0x3f549a=_0xc274ac['locale'];return({label:_0x318fbc,icon:_0x13337f,tooltip:_0x3e782b,style:_0x9536f3})=>{const _0x4112fb=_0xc274ac['commands']['get']('footnotesStyle'),_0x576177=new _0x59b106(_0x3f549a);return _0x576177['set']({'label':_0x318fbc,'icon':_0x13337f,'tooltip':_0x3e782b}),_0x576177['bind']('isOn')['to'](_0x4112fb,'value',_0xa0acd5=>_0xa0acd5===_0x9536f3),_0x576177['bind']('isEnabled')['to'](_0x4112fb,'isEnabled'),_0x576177['on']('execute',()=>{_0xc274ac['execute']('footnotesStyle',{'value':_0x9536f3}),_0xc274ac['editing']['view']['focus']();}),_0x576177;};}(_0x7c3b2c));}(_0x42a9e0),_0x30415b=new _0x4e1982(_0x42a9e0['locale'],{'styleGridAriaLabel':_0x1f00e2,'styleButtonViews':_0x544ffe});return _0x30415b['delegate']('execute')['to'](_0x16f201),_0x30415b['on']('footnotesListStart',(_0x11a3f5,_0x4ae3e1)=>{_0x42a9e0['execute']('footnotesStart',{'value':_0x4ae3e1['startIndex']});}),_0x30415b;}({'editor':_0x172e85,'dropdownView':_0x5a9880});_0x5a9880['panelView']['children']['add'](_0x1f9db7);}),_0x5a9880;};}(_0x379856));}['afterInit'](){const {editor:_0x160243}=this,{t:t}=_0x160243['locale'],_0x1f2e38=_0x160243['plugins']['get'](_0x31ce52),{defaultPositions:_0x3ca3ee}=_0x2cdc72;_0x1f2e38['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x160243['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x6ea7a6=>{let _0x14751a=_0x6ea7a6['getFirstPosition']()?.['parent'];return _0x14751a?.['is']('$text')&&(_0x14751a=_0x14751a['parent']),_0x14751a?.['is']('element')?_0x14751a['findAncestor'](_0x3cae56):null;},'positions':[_0x3ca3ee['southArrowNorth'],_0x3ca3ee['southArrowNorthMiddleWest'],_0x3ca3ee['southArrowNorthMiddleEast'],_0x3ca3ee['southArrowNorthWest'],_0x3ca3ee['southArrowNorthEast'],_0x3ca3ee['northArrowSouth'],_0x3ca3ee['northArrowSouthMiddleWest'],_0x3ca3ee['northArrowSouthMiddleEast'],_0x3ca3ee['northArrowSouthWest'],_0x3ca3ee['northArrowSouthEast'],_0x3ca3ee['viewportStickyNorth']]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x2267d,View as _0x1a111f,ViewCollection as _0x145649,FocusCycler as _0x1d2618,addKeyboardHandlingForGrid as _0x2503b5,CollapsibleView as _0x27a0ed,LabeledFieldView as tt,createLabeledInputNumber as st}from'ckeditor5/src/ui.js';import{FocusTracker as it,KeystrokeHandler as et,global as ot}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x1a111f{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x145649();['focusCycler'];constructor(_0x4c9faa,{styleButtonViews:_0x187da2,styleGridAriaLabel:_0x120855}){super(_0x4c9faa),(this['focusCycler']=new _0x1d2618({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x187da2,_0x120855),[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 _0x3cad0f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3cad0f['element']);_0x2503b5({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['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 _0x4e76e0=_0x587113=>_0x587113['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4e76e0),this['keystrokes']['set']('arrowleft',_0x4e76e0),this['keystrokes']['set']('arrowup',_0x4e76e0),this['keystrokes']['set']('arrowdown',_0x4e76e0);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3a240c,_0x61244b){const _0x157d1f=new _0x1a111f(this['locale']);return _0x157d1f['children']=_0x157d1f['createCollection'](),_0x157d1f['children']['addMany'](_0x3a240c),_0x157d1f['setTemplate']({'tag':'div','attributes':{'aria-label':_0x61244b,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x157d1f['children']}),_0x157d1f['children']['delegate']('execute')['to'](this),_0x157d1f['focus']=function(){for(const _0xb54d06 of this['children'])if(_0xb54d06 instanceof _0x2267d&&_0xb54d06['isOn'])return void _0xb54d06['focus']();this['children']['first']['focus']();},_0x157d1f['focusTracker']=new it(),_0x157d1f['keystrokes']=new et(),_0x157d1f['render'](),_0x157d1f['keystrokes']['listenTo'](_0x157d1f['element']),this['children']['add'](_0x157d1f),_0x157d1f;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5a3bd0=this['_createStartIndexPropertyView'](),_0x45792b=[_0x5a3bd0],_0x28892b=new _0x27a0ed(this['locale'],_0x45792b);return _0x28892b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x28892b['buttonView']['bind']('isEnabled')['toMany'](_0x45792b,'isEnabled',(..._0x375afc)=>_0x375afc['some'](_0x2ab1d8=>_0x2ab1d8)),_0x28892b['buttonView']['on']('change:isEnabled',(_0x5316aa,_0x364ab3,_0x3c6c19)=>{_0x3c6c19||(_0x28892b['isCollapsed']=!0x0);}),this['children']['add'](_0x28892b),[_0x5a3bd0,_0x28892b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4c6a95=new tt(this['locale'],st);return _0x4c6a95['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4c6a95['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4c6a95['fieldView']['on']('input',()=>{const _0x29c802=_0x4c6a95['fieldView']['element'],_0x49c3fd=_0x29c802['valueAsNumber'];Number['isNaN'](_0x49c3fd)?_0x4c6a95['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x29c802['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x49c3fd}):_0x4c6a95['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x4c6a95;}}
23
+ import{ButtonView as _0x1fc53d,View as _0x54fe9c,ViewCollection as _0x432879,FocusCycler as _0x45108f,addKeyboardHandlingForGrid as _0x43442f,CollapsibleView as _0x1477bd,LabeledFieldView as tt,createLabeledInputNumber as st}from'ckeditor5/src/ui.js';import{FocusTracker as it,KeystrokeHandler as et,global as ot}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x54fe9c{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x432879();['focusCycler'];constructor(_0x239d0c,{styleButtonViews:_0xc2aa4c,styleGridAriaLabel:_0x49c3c6}){super(_0x239d0c),(this['focusCycler']=new _0x45108f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xc2aa4c,_0x49c3c6),[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 _0x282f2a of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x282f2a['element']);_0x43442f({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['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 _0x1d8f4e=_0x828bb9=>_0x828bb9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1d8f4e),this['keystrokes']['set']('arrowleft',_0x1d8f4e),this['keystrokes']['set']('arrowup',_0x1d8f4e),this['keystrokes']['set']('arrowdown',_0x1d8f4e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1373ea,_0x13c437){const _0x390c06=new _0x54fe9c(this['locale']);return _0x390c06['children']=_0x390c06['createCollection'](),_0x390c06['children']['addMany'](_0x1373ea),_0x390c06['setTemplate']({'tag':'div','attributes':{'aria-label':_0x13c437,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x390c06['children']}),_0x390c06['children']['delegate']('execute')['to'](this),_0x390c06['focus']=function(){for(const _0x7210d6 of this['children'])if(_0x7210d6 instanceof _0x1fc53d&&_0x7210d6['isOn'])return void _0x7210d6['focus']();this['children']['first']['focus']();},_0x390c06['focusTracker']=new it(),_0x390c06['keystrokes']=new et(),_0x390c06['render'](),_0x390c06['keystrokes']['listenTo'](_0x390c06['element']),this['children']['add'](_0x390c06),_0x390c06;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x940708=this['_createStartIndexPropertyView'](),_0x603272=[_0x940708],_0x176ad5=new _0x1477bd(this['locale'],_0x603272);return _0x176ad5['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x176ad5['buttonView']['bind']('isEnabled')['toMany'](_0x603272,'isEnabled',(..._0x51bf52)=>_0x51bf52['some'](_0x387698=>_0x387698)),_0x176ad5['buttonView']['on']('change:isEnabled',(_0x5e7c84,_0x489ba7,_0x384461)=>{_0x384461||(_0x176ad5['isCollapsed']=!0x0);}),this['children']['add'](_0x176ad5),[_0x940708,_0x176ad5];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x16ab2b=new tt(this['locale'],st);return _0x16ab2b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x16ab2b['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x16ab2b['fieldView']['on']('input',()=>{const _0x29af0c=_0x16ab2b['fieldView']['element'],_0x51fbc7=_0x29af0c['valueAsNumber'];Number['isNaN'](_0x51fbc7)?_0x16ab2b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x29af0c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x51fbc7}):_0x16ab2b['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x16ab2b;}}