@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251017.0 → 0.0.0-nightly-20251018.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.d.ts +4 -0
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1a0332}from'ckeditor5/src/core.js';import{isWidget as _0x14b14a,toWidget as _0x3b6304,toWidgetEditable as _0x46fe99}from'ckeditor5/src/widget.js';import{uid as _0x586004}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4a2628,ClickObserver as _0x4e989a}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x51c5e9}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x251ec6}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1a0332{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x51c5e9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x9b6762}=this;_0x9b6762['config']['define']('footnotes.multiBlock',!0x0),_0x9b6762['commands']['add']('insertFootnote',new _0x251ec6(_0x9b6762)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1c06fb){const _0x24cb07=_0x5263fa([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]),_0xa93d7d=0x47a28506,_0x28dab7=0x47a5f376^_0xa93d7d,_0x13091b=window[_0x5263fa([0x44,0x61,0x74,0x65])][_0x5263fa([0x6e,0x6f,0x77])](),_0x45c336=_0x1c06fb[_0x5263fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a44d8=new window[(_0x5263fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59329e=>{_0x45c336[_0x5263fa([0x6f,0x6e,0x63,0x65])](_0x5263fa([0x72,0x65,0x61,0x64,0x79]),_0x59329e);}),_0x4efacb={[_0x5263fa([0x6b,0x74,0x79])]:_0x5263fa([0x45,0x43]),[_0x5263fa([0x75,0x73,0x65])]:_0x5263fa([0x73,0x69,0x67]),[_0x5263fa([0x63,0x72,0x76])]:_0x5263fa([0x50,0x2d,0x32,0x35,0x36]),[_0x5263fa([0x78])]:_0x5263fa([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]),[_0x5263fa([0x79])]:_0x5263fa([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]),[_0x5263fa([0x61,0x6c,0x67])]:_0x5263fa([0x45,0x53,0x32,0x35,0x36])},_0x51c79e=_0x45c336[_0x5263fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5263fa([0x67,0x65,0x74])](_0x5263fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x511ea9(){let _0x595360,_0x41a361=null,_0x5c19ac=null;try{if(_0x51c79e==_0x5263fa([0x47,0x50,0x4c]))return _0x5263fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x595360=_0x50389d(),!_0x595360)return _0x5263fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x595360[_0x5263fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c19ac=_0x3a365d(_0x595360[_0x5263fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x595360[_0x5263fa([0x6a,0x74,0x69])])),await _0x2b71df()?_0x2e8670()?_0x263a66()?_0x5263fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a1499()?(_0x595360[_0x5263fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5263fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41a361=_0x3f07f7(_0x5263fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x595360[_0x5263fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5263fa([0x74,0x72,0x69,0x61,0x6c])&&(_0x41a361=_0x3f07f7(_0x5263fa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49b6f5()):_0x5263fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5263fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5263fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5263fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x263a66(){const _0x5f44ba=[_0x5263fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5263fa([0x74,0x72,0x69,0x61,0x6c])][_0x5263fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595360[_0x5263fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13091b/0x3e8:0xe10*_0x28dab7;return _0x595360[_0x5263fa([0x65,0x78,0x70])]<_0x5f44ba;}function _0x2e8670(){const _0x4b7d07=_0x595360[_0x5263fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b7d07&&(!!_0x4b7d07[_0x5263fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5263fa([0x2a]))||!!_0x4b7d07[_0x5263fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5263fa([0x46,0x4f,0x4f])));}function _0x4a1499(){const _0x528322=_0x595360[_0x5263fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x528322||0x0==_0x528322[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54a773}=new URL(window[_0x5263fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x528322[_0x5263fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54a773))return!0x0;const _0x4bf96f=_0x54a773[_0x5263fa([0x73,0x70,0x6c,0x69,0x74])](_0x5263fa([0x2e]));return _0x528322[_0x5263fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c46e8=>_0x2c46e8[_0x5263fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5263fa([0x2a])))[_0x5263fa([0x6d,0x61,0x70])](_0x349144=>_0x349144[_0x5263fa([0x73,0x70,0x6c,0x69,0x74])](_0x5263fa([0x2e])))[_0x5263fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f4669=>_0x5f4669[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4bf96f[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5263fa([0x6d,0x61,0x70])](_0x86a109=>Array(_0x4bf96f[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x86a109[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5263fa([0x66,0x69,0x6c,0x6c])](_0x86a109[0x0]===_0x5263fa([0x2a])?_0x5263fa([0x2a]):'')[_0x5263fa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x86a109))[_0x5263fa([0x73,0x6f,0x6d,0x65])](_0x403c93=>_0x4bf96f[_0x5263fa([0x65,0x76,0x65,0x72,0x79])]((_0x1c60f0,_0x3e576e)=>_0x403c93[_0x3e576e]===_0x1c60f0||_0x403c93[_0x3e576e]===_0x5263fa([0x2a])));}function _0x49b6f5(){return _0x41a361&&_0x5c19ac?new window[(_0x5263fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59d218,_0x571e61)=>{_0x41a361[_0x5263fa([0x74,0x68,0x65,0x6e])](_0x59d218,_0x571e61),_0x5c19ac[_0x5263fa([0x74,0x68,0x65,0x6e])](_0x2e09da=>{_0x2e09da!=_0x5263fa([0x56,0x61,0x6c,0x69,0x64])&&_0x59d218(_0x2e09da);},_0x571e61);}):_0x41a361||_0x5c19ac||_0x5263fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a365d(_0x1f6632,_0x231d66){return new window[(_0x5263fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e9c13=>{if(_0x4e81fb())return _0x4e9c13(_0x5263fa([0x56,0x61,0x6c,0x69,0x64]));_0x2749ae(),_0x45c336[_0x5263fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5263fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x242686=!0x1;const _0x235674=_0x586004();function _0x17d1f1(_0x51b77d){return!!_0x51b77d&&(typeof _0x51b77d===_0x5263fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51b77d===_0x5263fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51b77d[_0x5263fa([0x74,0x68,0x65,0x6e])]===_0x5263fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51b77d[_0x5263fa([0x63,0x61,0x74,0x63,0x68])]===_0x5263fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27d0f7(_0x21b225){_0x1ed610(_0x21b225)[_0x5263fa([0x74,0x68,0x65,0x6e])](_0x5069b1=>{if(!_0x5069b1||_0x5069b1[_0x5263fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5263fa([0x6f,0x6b]))return _0x5263fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x337cf2(_0x2fe162(_0x235674+_0x231d66))!=_0x5069b1[_0x5263fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5263fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5263fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x5263fa([0x74,0x68,0x65,0x6e])](_0x392738=>(_0x89483f(),_0x392738),()=>{const _0x181751=_0xef8b2();return null==_0x181751?(_0x89483f(),_0x5263fa([0x56,0x61,0x6c,0x69,0x64])):_0x5263fa(_0x13091b-_0x181751>(0x63ae0106^_0xa93d7d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5263fa([0x74,0x68,0x65,0x6e])](_0x4e9c13)[_0x5263fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e9c13(_0x5263fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x127e46=0x47946b86^_0xa93d7d;function _0x89483f(){const _0x2ca429=_0x5263fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x337cf2(_0x2fe162(_0x1f6632)),_0x48a9=_0x14b67f(_0x337cf2(window[_0x5263fa([0x4d,0x61,0x74,0x68])][_0x5263fa([0x63,0x65,0x69,0x6c])](_0x13091b/_0x127e46)));window[_0x5263fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5263fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ca429,_0x48a9);}function _0xef8b2(){const _0xdfc383=_0x5263fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x337cf2(_0x2fe162(_0x1f6632)),_0x2ba32e=window[_0x5263fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5263fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdfc383);return _0x2ba32e?window[_0x5263fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14b67f(_0x2ba32e),0x10)*_0x127e46:null;}function _0x1ed610(_0x434814){return new window[(_0x5263fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ba4d5,_0x40a806)=>{_0x434814[_0x5263fa([0x74,0x68,0x65,0x6e])](_0x3ba4d5,_0x40a806),window[_0x5263fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x40a806,0x47a351c6^_0xa93d7d);});}}_0x45c336[_0x5263fa([0x6f,0x6e])](_0x5263fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc28679,_0x55c0b4)=>{if(_0x55c0b4[0x0]!=_0x1f6632)return _0x4e9c13(_0x5263fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55c0b4[0x1]={..._0x55c0b4[0x1],[_0x5263fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x235674};},{[_0x5263fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5263fa([0x68,0x69,0x67,0x68])}),_0x45c336[_0x5263fa([0x6f,0x6e])](_0x5263fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35bd01=>{_0x17d1f1(_0x35bd01[_0x5263fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x242686=!0x0,_0x27d0f7(_0x35bd01[_0x5263fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5263fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5263fa([0x6c,0x6f,0x77])}),_0x1a44d8[_0x5263fa([0x74,0x68,0x65,0x6e])](()=>{_0x242686||_0x4e9c13(_0x5263fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e81fb(){return _0x45c336[_0x5263fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5263fa([0x76,0x69,0x65,0x77])][_0x5263fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5263fa([0x61,0x75,0x74,0x6f]);}function _0x2749ae(){_0x45c336[_0x5263fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5263fa([0x76,0x69,0x65,0x77])][_0x5263fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5263fa([0x61,0x75,0x74,0x6f]);}}function _0x3f07f7(_0x1ca61f){const _0x2a0775=[new window[(_0x5263fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x414cef=>setTimeout(_0x414cef,0x47abbbca^_0xa93d7d)),_0x1a44d8[_0x5263fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5263fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59fa24=>{let _0x58d2ea=0x0;_0x45c336[_0x5263fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5263fa([0x6f,0x6e])](_0x5263fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19fa22,_0x4b83b6)=>{_0x4b83b6[0x0][_0x5263fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58d2ea++,_0x58d2ea==(0x47a284fe^_0xa93d7d)&&(_0x59fa24(),_0x19fa22[_0x5263fa([0x6f,0x66,0x66])]());});}))];return window[_0x5263fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5263fa([0x72,0x61,0x63,0x65])](_0x2a0775)[_0x5263fa([0x74,0x68,0x65,0x6e])](()=>_0x1ca61f);}async function _0x1f5637(){await _0x1a44d8,_0x45c336[_0x5263fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5263fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xdca197,_0x45c336[_0x5263fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5263fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xdca197,_0x45c336[_0x5263fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5263fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2967d0(_0x5eb190){const _0x366cb7=_0xb29f01();_0x45c336[_0x366cb7]=_0x5263fa([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eb190,_0x5eb190!=_0x5263fa([0x56,0x61,0x6c,0x69,0x64])&&_0x1f5637();}function _0xb29f01(){const _0xec7587=window[_0x5263fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5263fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5263fa([0x6e,0x6f,0x77])]())[_0x5263fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5263fa([0x2e]),'');let _0x1c9f2e=_0x5263fa([0x75]);for(let _0x293d7a=0x0;_0x293d7a<_0xec7587[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x293d7a+=0x2){let _0x1bd276=window[_0x5263fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xec7587[_0x5263fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x293d7a,_0x293d7a+0x2));_0x1bd276>=_0x24cb07[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bd276-=_0x24cb07[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c9f2e+=_0x24cb07[_0x1bd276];}return _0x1c9f2e;}function _0x50389d(){const _0x30cd25=_0x51c79e[_0x5263fa([0x73,0x70,0x6c,0x69,0x74])](_0x5263fa([0x2e]));if(0x3!=_0x30cd25[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a21dd(_0x30cd25[0x1]);function _0x4a21dd(_0x57fcf3){const _0x3d7dec=_0x4a51d7(_0x57fcf3);return _0x3d7dec&&_0x17c437()?_0x3d7dec:null;function _0x17c437(){const _0x586309=_0x3d7dec[_0x5263fa([0x6a,0x74,0x69])],_0x3dc465=window[_0x5263fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x586309[_0x5263fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x586309[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x324582={..._0x3d7dec,[_0x5263fa([0x6a,0x74,0x69])]:_0x586309[_0x5263fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x586309[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x324582[_0x5263fa([0x76,0x63])],_0x2fe162(_0x324582)==_0x3dc465;}}}async function _0x2b71df(){let _0xf3cc4=!0x0;try{const _0x40f50a=_0x51c79e[_0x5263fa([0x73,0x70,0x6c,0x69,0x74])](_0x5263fa([0x2e])),[_0x5bf257,_0x287197,_0x5a9c02]=_0x40f50a;return _0x585488(_0x5bf257),await _0x596f7f(_0x5bf257,_0x287197,_0x5a9c02),_0xf3cc4;}catch{return!0x1;}function _0x585488(_0x1179a2){const _0x259146=_0x4a51d7(_0x1179a2);_0x259146&&_0x259146[_0x5263fa([0x61,0x6c,0x67])]==_0x5263fa([0x45,0x53,0x32,0x35,0x36])||(_0xf3cc4=!0x1);}async function _0x596f7f(_0xa85c75,_0x501df4,_0x4a7002){const _0x4c9cec=window[_0x5263fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5263fa([0x66,0x72,0x6f,0x6d])](_0xa3546a(_0x4a7002),_0x249cce=>_0x249cce[_0x5263fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3be96e=new window[(_0x5263fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5263fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa85c75+_0x5263fa([0x2e])+_0x501df4),_0x51ff58=window[_0x5263fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5263fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51ff58)return;const _0x3b67a9=await _0x51ff58[_0x5263fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5263fa([0x6a,0x77,0x6b]),_0x4efacb,{[_0x5263fa([0x6e,0x61,0x6d,0x65])]:_0x5263fa([0x45,0x43,0x44,0x53,0x41]),[_0x5263fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5263fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5263fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51ff58[_0x5263fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5263fa([0x6e,0x61,0x6d,0x65])]:_0x5263fa([0x45,0x43,0x44,0x53,0x41]),[_0x5263fa([0x68,0x61,0x73,0x68])]:{[_0x5263fa([0x6e,0x61,0x6d,0x65])]:_0x5263fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b67a9,_0x4c9cec,_0x3be96e)||(_0xf3cc4=!0x1);}}function _0x4a51d7(_0x53ae82){return _0x53ae82[_0x5263fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5263fa([0x65,0x79]))?JSON[_0x5263fa([0x70,0x61,0x72,0x73,0x65])](_0xa3546a(_0x53ae82)):null;}function _0xa3546a(_0x3853d6){return window[_0x5263fa([0x61,0x74,0x6f,0x62])](_0x3853d6[_0x5263fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5263fa([0x2b]))[_0x5263fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5263fa([0x2f])));}function _0x2fe162(_0x1a09d1){let _0x2cbc4c=0x1505;function _0x10a0bd(_0x153d96){for(let _0x42ea05=0x0;_0x42ea05<_0x153d96[_0x5263fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42ea05++){const _0x4b17bb=_0x153d96[_0x5263fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42ea05);_0x2cbc4c=(_0x2cbc4c<<0x5)+_0x2cbc4c+_0x4b17bb,_0x2cbc4c&=_0x2cbc4c;}}function _0x1dadb1(_0x4d07be){Array[_0x5263fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d07be)?_0x4d07be[_0x5263fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1dadb1):_0x4d07be&&typeof _0x4d07be==_0x5263fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5263fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d07be)[_0x5263fa([0x73,0x6f,0x72,0x74])]()[_0x5263fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41f49a,_0x26492a])=>{_0x10a0bd(_0x41f49a),_0x1dadb1(_0x26492a);}):_0x10a0bd(window[_0x5263fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d07be));}return _0x1dadb1(_0x1a09d1),_0x2cbc4c>>>0x0;}function _0x337cf2(_0x4f6296){return _0x4f6296[_0x5263fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5263fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5263fa([0x30]));}function _0x14b67f(_0x4cd3d9){return _0x4cd3d9[_0x5263fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5263fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5263fa([0x6a,0x6f,0x69,0x6e])]('');}function _0xdca197(){}function _0x5263fa(_0x3c9f6f){return _0x3c9f6f['map'](_0x3b5006=>String['fromCharCode'](_0x3b5006))['join']('');}_0x2967d0(await _0x511ea9());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5e45f3){const {plugins:_0x1a06d4,editing:_0x4a713d,model:_0x2c2d16}=this['editor'],_0x172c71=_0x1a06d4['get'](_0x51c5e9)['getFootnote'](_0x5e45f3);return!!_0x172c71&&(_0x2c2d16['change'](_0xfd2074=>{_0xfd2074['setSelection'](_0xfd2074['createPositionAt'](_0x172c71['definition'],'end'));}),_0x4a713d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xbaaad5){const {plugins:_0x2f3910,editing:_0x3c69e0,model:_0x1da416}=this['editor'],_0x290e8f=_0x2f3910['get'](_0x51c5e9)['getFootnote'](_0xbaaad5);return!!_0x290e8f&&(_0x1da416['change'](_0x415b83=>{_0x415b83['setSelection'](_0x290e8f['reference'],'on');}),_0x3c69e0['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1062f4}=this['editor']['model'],_0x4d0477=this['editor']['config']['get']('footnotes.multiBlock');_0x1062f4['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1062f4['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1062f4['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4d0477?_0x1062f4['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1062f4['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1062f4['addChildCheck'](_0x20db7a=>{for(const _0x369b0e of _0x20db7a)if('footnoteDefinition'===_0x369b0e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x305486}=this,{conversion:_0x3bb804,editing:_0x3bb8d8}=_0x305486,{t:t}=_0x305486['locale'];_0x3bb804['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1b6193,{writer:_0x531b16,consumable:_0x4e7cc9})=>{const _0x576454=_0x1b6193['getChild'](0x0);if(!_0x576454||!_0x576454['is']('element','a'))return null;const _0x1ad5ae=_0x576454['getAttribute']('href')||'';if(!_0x1ad5ae['startsWith']('#'))return null;const _0x1e9883=_0x1ad5ae['replace'](/^#/,'');if(!_0x1e9883)return null;_0x4e7cc9['consume'](_0x576454,{'name':!0x0,'attributes':['href']});for(const {item:_0x116e1e}of _0x3bb8d8['view']['createRangeIn'](_0x576454))_0x116e1e['is']('$textProxy')?_0x4e7cc9['consume'](_0x116e1e['textNode'],{'name':!0x0}):_0x116e1e['is']('element')&&_0x4e7cc9['consume'](_0x116e1e,{'name':!0x0});return _0x531b16['createElement']('footnoteRef',{'footnoteId':_0x1e9883});}}),_0x3bb804['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3bf1f3,{writer:_0xdfc4b})=>g(_0x3bf1f3,_0xdfc4b)}),_0x3bb804['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4807eb,{writer:_0x417bf6})=>{const _0x723250=_0x4807eb['getAttribute']('footnoteCounter');return _0x3b6304(g(_0x4807eb,_0x417bf6),_0x417bf6,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x723250)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5928a0}=this,{t:t}=_0x5928a0['locale'],{conversion:_0x24db4f}=_0x5928a0;_0x24db4f['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x24db4f['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x24db4f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x7ca2f0,{writer:_0x59e804})=>{const _0x42c6ec=_0x59e804['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x59e804['createContainerElement']('ol',{'class':'footnotes'},_0x59e804['createSlot']())),_0x4c256e=_0x3b6304(_0x42c6ec,_0x59e804,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x59e804['setCustomProperty']('footnotesDefinitions',!0x0,_0x4c256e),_0x4c256e;}});}['_defineDefinitionConverters'](){const {editor:_0x2f205a}=this,{conversion:_0x5be7ff,locale:_0x1549f6}=_0x2f205a,_0x14dbb8=_0x2f205a['config']['get']('footnotes.multiBlock');_0x5be7ff['for']('upcast')['add'](_0x4b3eca=>{_0x4b3eca['on']('element:li',(_0x393505,_0x8da47d,_0x1792e3)=>{const _0x15a441=_0x8da47d['viewItem'];if(!_0x15a441['hasClass']('footnote-definition')||!_0x15a441['getAttribute']('id'))return;const _0x79ce2f=_0x15a441['parent'];if(!_0x79ce2f['is']('element','ol')||!_0x79ce2f['hasClass']('footnotes'))return;if(!_0x1792e3['consumable']['test'](_0x15a441,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x54c682=_0x1792e3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x15a441['getAttribute']('id')});if(!_0x1792e3['safeInsert'](_0x54c682,_0x8da47d['modelCursor']))return;_0x1792e3['consumable']['consume'](_0x15a441,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xec4b1=Array['from'](_0x15a441['getChildren']())['find'](_0x345540=>_0x345540['is']('element')&&_0x345540['hasClass']('footnote-content'));for(const _0x24d41e of _0x15a441['getChildren']())_0x24d41e['is']('element')&&(_0x1792e3['consumable']['consume'](_0x24d41e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1792e3['consumable']['consume'](_0x24d41e,{'name':!0x0,'classes':'footnote-content'}));if(_0xec4b1){if(_0x14dbb8)_0x1792e3['convertChildren'](_0xec4b1,_0x54c682);else{const _0xe60e68=_0x1792e3['writer']['createElement']('footnoteInlineContent');_0x1792e3['writer']['insert'](_0xe60e68,_0x54c682),_0x1792e3['convertChildren'](_0xec4b1,_0xe60e68);}}_0x1792e3['updateConversionResult'](_0x54c682,_0x8da47d);});}),_0x5be7ff['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1c546c,{writer:_0x1796b5})=>D(_0x1c546c,_0x1796b5,_0x1549f6,{'dataPipeline':!0x0})}),_0x5be7ff['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x44d4c2,{writer:_0xb78929})=>D(_0x44d4c2,_0xb78929,_0x1549f6)});}['_defineBogusParagraphConverters'](){const {editor:_0x117a73}=this,{conversion:_0xa9eb41}=_0x117a73;_0x117a73['config']['get']('footnotes.multiBlock')?(_0xa9eb41['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0xa9eb41['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x117a73['model']['document'],'change:data',()=>{!function(_0x19bfbc,_0x32a82b){const _0x561cdb=_0x19bfbc['document']['differ'],_0x5b6a14=new Set();for(const _0x6aeca9 of _0x561cdb['getChanges']()){const _0x166542='attribute'==_0x6aeca9['type']?_0x6aeca9['range']['start']['parent']:_0x6aeca9['position']['parent'];_0x166542['is']('element','footnoteDefinition')&&_0x5b6a14['add'](_0x166542);}for(const _0x37a660 of _0x5b6a14['values']()){const _0x4d9697=Array['from'](_0x37a660['getChildren']())['filter'](_0x1a204d=>p(_0x1a204d,_0x32a82b['mapper']));for(const _0x26c347 of _0x4d9697)_0x32a82b['reconvertItem'](_0x26c347);}}(_0x117a73['model'],_0x117a73['editing']);})):(_0xa9eb41['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0xa9eb41['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x46b186,{writer:_0x540948})=>{const _0x3ed153=_0x540948['createContainerElement']('span');return _0x540948['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3ed153),_0x3ed153;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2cc1b4}=this,{editing:_0xa46942,t:t}=_0x2cc1b4,_0x4de601=_0x2cc1b4['model']['document']['selection'];_0x2cc1b4['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x2cc1b4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0xa46942['view']['document'],'enter',(_0x4e1211,_0x46d757)=>{const _0x11238c=function(_0x5519d4){const _0x4dfd00=_0x5519d4['getSelectedElement']();if(_0x4dfd00?.['is']('element','footnoteRef'))return _0x4dfd00;return null;}(_0x4de601);if(_0x11238c){const _0x2bb9f9=_0x11238c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2bb9f9),_0x46d757['preventDefault'](),_0x4e1211['stop']();}},{'context':_0x14b14a});}['_defineClickHandlers'](){const {editor:_0x2cd436}=this,{editing:_0x21fdae}=_0x2cd436;_0x2cd436['editing']['view']['addObserver'](_0x4a2628),_0x2cd436['editing']['view']['addObserver'](_0x4e989a);let _0x419d3d=!0x1;this['listenTo'](_0x21fdae['view']['document'],'pointerdown',(_0xe181f3,_0x4396cb)=>{const {target:_0xfea8f0}=_0x4396cb,_0x1255c7=_0x21fdae['view']['document']['selection'];_0x419d3d=!(!_0xfea8f0['is']('element','sup')||!_0xfea8f0['hasClass']('footnote'))&&_0x1255c7['getSelectedElement']()===_0xfea8f0;},{'priority':'high'}),this['listenTo'](_0x21fdae['view']['document'],'click',(_0x22971d,_0x297f99)=>{const {target:_0xec14f6}=_0x297f99,_0x217f8d=_0xec14f6['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x217f8d['slice'](0x1)),_0x22971d['stop'](),_0x297f99['preventDefault']();},{'priority':'high','context':_0x281fec=>_0x281fec['is']('element','sup')&&_0x281fec['hasClass']('footnote')&&_0x419d3d}),this['listenTo'](_0x21fdae['view']['document'],'click',(_0x3087e3,_0x95bd15)=>{const {target:_0x56efc0}=_0x95bd15;if(!_0x56efc0['is']('element','a'))return;let _0x3abc1=_0x56efc0['getAttribute']('href');if(!_0x3abc1?.['startsWith']('#'))return;_0x3abc1=_0x3abc1['slice'](0x1);let _0x5ef10f=!0x1;(_0x3abc1['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3abc1['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3abc1))&&(_0x5ef10f=!0x0),_0x5ef10f&&(_0x95bd15['preventDefault'](),_0x3087e3['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x5bdbdf}={}){return(_0x38da3f,{writer:_0x208450})=>{if(!h(_0x38da3f))return null;if(!_0x5bdbdf)return _0x208450['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4e9864=_0x208450['createContainerElement']('p');return _0x208450['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4e9864),_0x4e9864;};}function h(_0x1c328a){const {parent:_0x1c2107}=_0x1c328a;if(!_0x1c2107?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1c2107['childCount'])return!0x1;for(const _0x3683b0 of _0x1c328a['getAttributeKeys']())if(!_0x3683b0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3683b0)return!0x1;return!0x0;}function p(_0x5f508a,_0x1346af){if(!_0x5f508a['is']('element','paragraph'))return!0x1;const _0x206323=_0x1346af['toViewElement'](_0x5f508a);return!!_0x206323&&h(_0x5f508a)!==_0x206323['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x41d788){return _0x14b14a(_0x41d788)&&_0x41d788['is']('containerElement')&&!!_0x41d788['getCustomProperty']('footnotesDefinitions');}function g(_0x44def3,_0x4984da){const _0x2725fc=_0x44def3['getAttribute']('footnoteId'),_0x1e77d4=_0x44def3['getAttribute']('footnoteCounter'),_0x1ebec6=_0x4984da['createUIElement']('a',{'id':'ref-'+_0x2725fc,'href':'#'+_0x2725fc},function(_0x17d400){const _0x44d5ca=this['toDomElement'](_0x17d400);return _0x44d5ca['textContent']=_0x1e77d4,_0x44d5ca;}),_0xcae789=_0x4984da['createContainerElement']('sup',{'class':'footnote'},[_0x1ebec6]);return _0xcae789['getFillerOffset']=()=>null,_0xcae789;}function D(_0x5b73fd,_0xec3b75,_0x5ad3f3,{dataPipeline:_0x17393f}={}){const {t:t}=_0x5ad3f3,_0x43ef04=_0x5b73fd['getAttribute']('footnoteId'),_0xdd806b=_0xec3b75['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x43ef04},function(_0x390d1d){const _0x9f6b5f=this['toDomElement'](_0x390d1d);return _0x9f6b5f['innerText']='^',_0x9f6b5f;}),_0x45fd5e=_0x17393f?_0xec3b75['createContainerElement']('div',{'class':'footnote-content'}):_0x46fe99(_0xec3b75['createEditableElement']('div',{'class':'footnote-content'}),_0xec3b75,{'label':t('Footnote\x20content.')});return _0xec3b75['insert'](_0xec3b75['createPositionAt'](_0x45fd5e,0x0),_0xec3b75['createSlot']()),_0xec3b75['createContainerElement']('li',{'class':'footnote-definition','id':_0x43ef04},[_0xdd806b,_0x45fd5e]);}
|
|
23
|
+
import{Plugin as _0x3dc058}from'ckeditor5/src/core.js';import{isWidget as _0x11ce06,toWidget as _0x30bfde,toWidgetEditable as _0x56c70c}from'ckeditor5/src/widget.js';import{uid as _0x5641bb}from'ckeditor5/src/utils.js';import{PointerObserver as _0x42e9ab,ClickObserver as _0x45980d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x477d67}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x21aa01}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3dc058{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x477d67];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x23a404}=this;_0x23a404['config']['define']('footnotes.multiBlock',!0x0),_0x23a404['commands']['add']('insertFootnote',new _0x21aa01(_0x23a404)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1f5409){const _0x5744a9=_0x102ca8([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]),_0x38f853=0x47a28506,_0x3640c4=0x47a5f38e^_0x38f853,_0x40d640=window[_0x102ca8([0x44,0x61,0x74,0x65])][_0x102ca8([0x6e,0x6f,0x77])](),_0x1f45e6=_0x1f5409[_0x102ca8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2141fc=new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa0546b=>{_0x1f45e6[_0x102ca8([0x6f,0x6e,0x63,0x65])](_0x102ca8([0x72,0x65,0x61,0x64,0x79]),_0xa0546b);}),_0x1168ac={[_0x102ca8([0x6b,0x74,0x79])]:_0x102ca8([0x45,0x43]),[_0x102ca8([0x75,0x73,0x65])]:_0x102ca8([0x73,0x69,0x67]),[_0x102ca8([0x63,0x72,0x76])]:_0x102ca8([0x50,0x2d,0x32,0x35,0x36]),[_0x102ca8([0x78])]:_0x102ca8([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]),[_0x102ca8([0x79])]:_0x102ca8([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]),[_0x102ca8([0x61,0x6c,0x67])]:_0x102ca8([0x45,0x53,0x32,0x35,0x36])},_0x5e7f2c=_0x1f45e6[_0x102ca8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x102ca8([0x67,0x65,0x74])](_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b2afb(){let _0x3da731,_0x244baa=null,_0x34ad67=null;try{if(_0x5e7f2c==_0x102ca8([0x47,0x50,0x4c]))return _0x102ca8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3da731=_0x426024(),!_0x3da731)return _0x102ca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3da731[_0x102ca8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x34ad67=_0x208e5f(_0x3da731[_0x102ca8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3da731[_0x102ca8([0x6a,0x74,0x69])])),await _0x163b34()?_0x448bab()?_0x10a718()?_0x102ca8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x406de8()?(_0x3da731[_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x102ca8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x244baa=_0x5ef342(_0x102ca8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3da731[_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x102ca8([0x74,0x72,0x69,0x61,0x6c])&&(_0x244baa=_0x5ef342(_0x102ca8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x335071()):_0x102ca8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x102ca8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x102ca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x102ca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10a718(){const _0x37dc39=[_0x102ca8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x102ca8([0x74,0x72,0x69,0x61,0x6c])][_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3da731[_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40d640/0x3e8:0xe10*_0x3640c4;return _0x3da731[_0x102ca8([0x65,0x78,0x70])]<_0x37dc39;}function _0x448bab(){const _0x504142=_0x3da731[_0x102ca8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x504142&&(!!_0x504142[_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ca8([0x2a]))||!!_0x504142[_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ca8([0x46,0x4f,0x4f])));}function _0x406de8(){const _0x272153=_0x3da731[_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x272153||0x0==_0x272153[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cc994}=new URL(window[_0x102ca8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x272153[_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc994))return!0x0;const _0x2cfd33=_0x2cc994[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])](_0x102ca8([0x2e]));return _0x272153[_0x102ca8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32348c=>_0x32348c[_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ca8([0x2a])))[_0x102ca8([0x6d,0x61,0x70])](_0x27d575=>_0x27d575[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])](_0x102ca8([0x2e])))[_0x102ca8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xee86fd=>_0xee86fd[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2cfd33[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x102ca8([0x6d,0x61,0x70])](_0xf85efd=>Array(_0x2cfd33[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf85efd[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x102ca8([0x66,0x69,0x6c,0x6c])](_0xf85efd[0x0]===_0x102ca8([0x2a])?_0x102ca8([0x2a]):'')[_0x102ca8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf85efd))[_0x102ca8([0x73,0x6f,0x6d,0x65])](_0x11c192=>_0x2cfd33[_0x102ca8([0x65,0x76,0x65,0x72,0x79])]((_0x5abed7,_0x249d26)=>_0x11c192[_0x249d26]===_0x5abed7||_0x11c192[_0x249d26]===_0x102ca8([0x2a])));}function _0x335071(){return _0x244baa&&_0x34ad67?new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55162e,_0xd7e9ea)=>{_0x244baa[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x55162e,_0xd7e9ea),_0x34ad67[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x3e099c=>{_0x3e099c!=_0x102ca8([0x56,0x61,0x6c,0x69,0x64])&&_0x55162e(_0x3e099c);},_0xd7e9ea);}):_0x244baa||_0x34ad67||_0x102ca8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x208e5f(_0x2afd9e,_0x456240){return new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44251c=>{if(_0x1574eb())return _0x44251c(_0x102ca8([0x56,0x61,0x6c,0x69,0x64]));_0x15ba0e(),_0x1f45e6[_0x102ca8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x102ca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aa3c0=!0x1;const _0xdc49f2=_0x5641bb();function _0x35ce7b(_0x3e8342){return!!_0x3e8342&&(typeof _0x3e8342===_0x102ca8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e8342===_0x102ca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e8342[_0x102ca8([0x74,0x68,0x65,0x6e])]===_0x102ca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e8342[_0x102ca8([0x63,0x61,0x74,0x63,0x68])]===_0x102ca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b42b5(_0x5c4d23){_0x448233(_0x5c4d23)[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x39a82b=>{if(!_0x39a82b||_0x39a82b[_0x102ca8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x102ca8([0x6f,0x6b]))return _0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x170d5c(_0x2c1e56(_0xdc49f2+_0x456240))!=_0x39a82b[_0x102ca8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x102ca8([0x56,0x61,0x6c,0x69,0x64]);})[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x394b43=>(_0x42d4f1(),_0x394b43),()=>{const _0x2b547e=_0x36e290();return null==_0x2b547e?(_0x42d4f1(),_0x102ca8([0x56,0x61,0x6c,0x69,0x64])):_0x102ca8(_0x40d640-_0x2b547e>(0x63ae0106^_0x38f853)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x44251c)[_0x102ca8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x44251c(_0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13f58e=0x47946b86^_0x38f853;function _0x42d4f1(){const _0x3f32c9=_0x102ca8([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d5c(_0x2c1e56(_0x2afd9e)),_0x466ca=_0x534d41(_0x170d5c(window[_0x102ca8([0x4d,0x61,0x74,0x68])][_0x102ca8([0x63,0x65,0x69,0x6c])](_0x40d640/_0x13f58e)));window[_0x102ca8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x102ca8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f32c9,_0x466ca);}function _0x36e290(){const _0x2eb3ab=_0x102ca8([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d5c(_0x2c1e56(_0x2afd9e)),_0x2185e3=window[_0x102ca8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x102ca8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eb3ab);return _0x2185e3?window[_0x102ca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x534d41(_0x2185e3),0x10)*_0x13f58e:null;}function _0x448233(_0x3d8f70){return new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x430f68,_0x3f8fca)=>{_0x3d8f70[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x430f68,_0x3f8fca),window[_0x102ca8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f8fca,0x47a351c6^_0x38f853);});}}_0x1f45e6[_0x102ca8([0x6f,0x6e])](_0x102ca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54ddfe,_0x2a370f)=>{if(_0x2a370f[0x0]!=_0x2afd9e)return _0x44251c(_0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a370f[0x1]={..._0x2a370f[0x1],[_0x102ca8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdc49f2};},{[_0x102ca8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x102ca8([0x68,0x69,0x67,0x68])}),_0x1f45e6[_0x102ca8([0x6f,0x6e])](_0x102ca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c58f4=>{_0x35ce7b(_0x4c58f4[_0x102ca8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aa3c0=!0x0,_0x4b42b5(_0x4c58f4[_0x102ca8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x102ca8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x102ca8([0x6c,0x6f,0x77])}),_0x2141fc[_0x102ca8([0x74,0x68,0x65,0x6e])](()=>{_0x1aa3c0||_0x44251c(_0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1574eb(){return _0x1f45e6[_0x102ca8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x102ca8([0x76,0x69,0x65,0x77])][_0x102ca8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x102ca8([0x61,0x75,0x74,0x6f]);}function _0x15ba0e(){_0x1f45e6[_0x102ca8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x102ca8([0x76,0x69,0x65,0x77])][_0x102ca8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x102ca8([0x61,0x75,0x74,0x6f]);}}function _0x5ef342(_0x4e3a31){const _0x5526a1=[new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x491689=>setTimeout(_0x491689,0x47abbbca^_0x38f853)),_0x2141fc[_0x102ca8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2571b9=>{let _0x5eecb2=0x0;_0x1f45e6[_0x102ca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x102ca8([0x6f,0x6e])](_0x102ca8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20f73d,_0x489b74)=>{_0x489b74[0x0][_0x102ca8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5eecb2++,_0x5eecb2==(0x47a284fe^_0x38f853)&&(_0x2571b9(),_0x20f73d[_0x102ca8([0x6f,0x66,0x66])]());});}))];return window[_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x102ca8([0x72,0x61,0x63,0x65])](_0x5526a1)[_0x102ca8([0x74,0x68,0x65,0x6e])](()=>_0x4e3a31);}async function _0x22dcd4(){await _0x2141fc,_0x1f45e6[_0x102ca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x102ca8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x249850,_0x1f45e6[_0x102ca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x102ca8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x249850,_0x1f45e6[_0x102ca8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x102ca8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f33b8(_0x2e530f){const _0x459bf3=_0x3cb49a();_0x1f45e6[_0x459bf3]=_0x102ca8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e530f,_0x2e530f!=_0x102ca8([0x56,0x61,0x6c,0x69,0x64])&&_0x22dcd4();}function _0x3cb49a(){const _0xedbf=window[_0x102ca8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x102ca8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x102ca8([0x6e,0x6f,0x77])]())[_0x102ca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x102ca8([0x2e]),'');let _0xcce80=_0x102ca8([0x75]);for(let _0x109282=0x0;_0x109282<_0xedbf[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109282+=0x2){let _0x2f2185=window[_0x102ca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xedbf[_0x102ca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x109282,_0x109282+0x2));_0x2f2185>=_0x5744a9[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f2185-=_0x5744a9[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcce80+=_0x5744a9[_0x2f2185];}return _0xcce80;}function _0x426024(){const _0x156f78=_0x5e7f2c[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])](_0x102ca8([0x2e]));if(0x3!=_0x156f78[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x302cbb(_0x156f78[0x1]);function _0x302cbb(_0x1afba5){const _0x2e692a=_0x28c232(_0x1afba5);return _0x2e692a&&_0x102ba3()?_0x2e692a:null;function _0x102ba3(){const _0x53a7c9=_0x2e692a[_0x102ca8([0x6a,0x74,0x69])],_0x6123e=window[_0x102ca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a7c9[_0x102ca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53a7c9[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x287517={..._0x2e692a,[_0x102ca8([0x6a,0x74,0x69])]:_0x53a7c9[_0x102ca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53a7c9[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x287517[_0x102ca8([0x76,0x63])],_0x2c1e56(_0x287517)==_0x6123e;}}}async function _0x163b34(){let _0x3d0546=!0x0;try{const _0x3130fe=_0x5e7f2c[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])](_0x102ca8([0x2e])),[_0x31eb1b,_0x248bd8,_0x5b1405]=_0x3130fe;return _0x52b901(_0x31eb1b),await _0x2a993d(_0x31eb1b,_0x248bd8,_0x5b1405),_0x3d0546;}catch{return!0x1;}function _0x52b901(_0x258d23){const _0x4d6272=_0x28c232(_0x258d23);_0x4d6272&&_0x4d6272[_0x102ca8([0x61,0x6c,0x67])]==_0x102ca8([0x45,0x53,0x32,0x35,0x36])||(_0x3d0546=!0x1);}async function _0x2a993d(_0x5a3ff0,_0x5455a3,_0xaeaeb4){const _0xc61209=window[_0x102ca8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x102ca8([0x66,0x72,0x6f,0x6d])](_0x3fe880(_0xaeaeb4),_0x4d70d=>_0x4d70d[_0x102ca8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3acc22=new window[(_0x102ca8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x102ca8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a3ff0+_0x102ca8([0x2e])+_0x5455a3),_0x126d65=window[_0x102ca8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x102ca8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x126d65)return;const _0x3221cc=await _0x126d65[_0x102ca8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x102ca8([0x6a,0x77,0x6b]),_0x1168ac,{[_0x102ca8([0x6e,0x61,0x6d,0x65])]:_0x102ca8([0x45,0x43,0x44,0x53,0x41]),[_0x102ca8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x102ca8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x102ca8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x126d65[_0x102ca8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x102ca8([0x6e,0x61,0x6d,0x65])]:_0x102ca8([0x45,0x43,0x44,0x53,0x41]),[_0x102ca8([0x68,0x61,0x73,0x68])]:{[_0x102ca8([0x6e,0x61,0x6d,0x65])]:_0x102ca8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3221cc,_0xc61209,_0x3acc22)||(_0x3d0546=!0x1);}}function _0x28c232(_0x317a82){return _0x317a82[_0x102ca8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x102ca8([0x65,0x79]))?JSON[_0x102ca8([0x70,0x61,0x72,0x73,0x65])](_0x3fe880(_0x317a82)):null;}function _0x3fe880(_0x5ba3e8){return window[_0x102ca8([0x61,0x74,0x6f,0x62])](_0x5ba3e8[_0x102ca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x102ca8([0x2b]))[_0x102ca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x102ca8([0x2f])));}function _0x2c1e56(_0x401bfd){let _0x46ee63=0x1505;function _0x166d9d(_0x44da0c){for(let _0x98f55e=0x0;_0x98f55e<_0x44da0c[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x98f55e++){const _0x1a8fa7=_0x44da0c[_0x102ca8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x98f55e);_0x46ee63=(_0x46ee63<<0x5)+_0x46ee63+_0x1a8fa7,_0x46ee63&=_0x46ee63;}}function _0x315211(_0x75bd6e){Array[_0x102ca8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x75bd6e)?_0x75bd6e[_0x102ca8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x315211):_0x75bd6e&&typeof _0x75bd6e==_0x102ca8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x102ca8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x75bd6e)[_0x102ca8([0x73,0x6f,0x72,0x74])]()[_0x102ca8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c34b4,_0x1a961f])=>{_0x166d9d(_0x3c34b4),_0x315211(_0x1a961f);}):_0x166d9d(window[_0x102ca8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x75bd6e));}return _0x315211(_0x401bfd),_0x46ee63>>>0x0;}function _0x170d5c(_0x38f2a4){return _0x38f2a4[_0x102ca8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x102ca8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x102ca8([0x30]));}function _0x534d41(_0x57a704){return _0x57a704[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x102ca8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x102ca8([0x6a,0x6f,0x69,0x6e])]('');}function _0x249850(){}function _0x102ca8(_0x5da37f){return _0x5da37f['map'](_0x467037=>String['fromCharCode'](_0x467037))['join']('');}_0x3f33b8(await _0x4b2afb());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5cc489){const {plugins:_0x3aaaad,editing:_0x29af3f,model:_0x2d25f1}=this['editor'],_0x55a69c=_0x3aaaad['get'](_0x477d67)['getFootnote'](_0x5cc489);return!!_0x55a69c&&(_0x2d25f1['change'](_0x291e4e=>{_0x291e4e['setSelection'](_0x291e4e['createPositionAt'](_0x55a69c['definition'],'end'));}),_0x29af3f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x49c3d8){const {plugins:_0x4c3a12,editing:_0x35428b,model:_0x256a1d}=this['editor'],_0x5ca5b8=_0x4c3a12['get'](_0x477d67)['getFootnote'](_0x49c3d8);return!!_0x5ca5b8&&(_0x256a1d['change'](_0x315555=>{_0x315555['setSelection'](_0x5ca5b8['reference'],'on');}),_0x35428b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x46a330}=this['editor']['model'],_0xcb0ab8=this['editor']['config']['get']('footnotes.multiBlock');_0x46a330['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x46a330['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x46a330['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xcb0ab8?_0x46a330['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x46a330['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x46a330['addChildCheck'](_0x26cf0b=>{for(const _0x58dd74 of _0x26cf0b)if('footnoteDefinition'===_0x58dd74['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2a719e}=this,{conversion:_0x1c16dd,editing:_0x8f1fe4}=_0x2a719e,{t:t}=_0x2a719e['locale'];_0x1c16dd['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2902ec,{writer:_0x528211,consumable:_0x83fa1b})=>{const _0x42c0e1=_0x2902ec['getChild'](0x0);if(!_0x42c0e1||!_0x42c0e1['is']('element','a'))return null;const _0x2329ff=_0x42c0e1['getAttribute']('href')||'';if(!_0x2329ff['startsWith']('#'))return null;const _0xf703dd=_0x2329ff['replace'](/^#/,'');if(!_0xf703dd)return null;_0x83fa1b['consume'](_0x42c0e1,{'name':!0x0,'attributes':['href']});for(const {item:_0x4583da}of _0x8f1fe4['view']['createRangeIn'](_0x42c0e1))_0x4583da['is']('$textProxy')?_0x83fa1b['consume'](_0x4583da['textNode'],{'name':!0x0}):_0x4583da['is']('element')&&_0x83fa1b['consume'](_0x4583da,{'name':!0x0});return _0x528211['createElement']('footnoteRef',{'footnoteId':_0xf703dd});}}),_0x1c16dd['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x8a0e47,{writer:_0x353f7e})=>g(_0x8a0e47,_0x353f7e)}),_0x1c16dd['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xe20da1,{writer:_0x109d8d})=>{const _0x1fa574=_0xe20da1['getAttribute']('footnoteCounter');return _0x30bfde(g(_0xe20da1,_0x109d8d),_0x109d8d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1fa574)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3d1134}=this,{t:t}=_0x3d1134['locale'],{conversion:_0x5991bd}=_0x3d1134;_0x5991bd['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x5991bd['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x5991bd['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x16e2e2,{writer:_0x5934de})=>{const _0x44bb8a=_0x5934de['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x5934de['createContainerElement']('ol',{'class':'footnotes'},_0x5934de['createSlot']())),_0x5c2401=_0x30bfde(_0x44bb8a,_0x5934de,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5934de['setCustomProperty']('footnotesDefinitions',!0x0,_0x5c2401),_0x5c2401;}});}['_defineDefinitionConverters'](){const {editor:_0x53cd94}=this,{conversion:_0x383dbc,locale:_0x3b0606}=_0x53cd94,_0x34cf7c=_0x53cd94['config']['get']('footnotes.multiBlock');_0x383dbc['for']('upcast')['add'](_0x454516=>{_0x454516['on']('element:li',(_0x1532c6,_0x445f18,_0x3f3400)=>{const _0x2277ea=_0x445f18['viewItem'];if(!_0x2277ea['hasClass']('footnote-definition')||!_0x2277ea['getAttribute']('id'))return;const _0x2bda75=_0x2277ea['parent'];if(!_0x2bda75['is']('element','ol')||!_0x2bda75['hasClass']('footnotes'))return;if(!_0x3f3400['consumable']['test'](_0x2277ea,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x155873=_0x3f3400['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2277ea['getAttribute']('id')});if(!_0x3f3400['safeInsert'](_0x155873,_0x445f18['modelCursor']))return;_0x3f3400['consumable']['consume'](_0x2277ea,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4e42da=Array['from'](_0x2277ea['getChildren']())['find'](_0x39e8c3=>_0x39e8c3['is']('element')&&_0x39e8c3['hasClass']('footnote-content'));for(const _0x18fbcb of _0x2277ea['getChildren']())_0x18fbcb['is']('element')&&(_0x3f3400['consumable']['consume'](_0x18fbcb,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3f3400['consumable']['consume'](_0x18fbcb,{'name':!0x0,'classes':'footnote-content'}));if(_0x4e42da){if(_0x34cf7c)_0x3f3400['convertChildren'](_0x4e42da,_0x155873);else{const _0x184015=_0x3f3400['writer']['createElement']('footnoteInlineContent');_0x3f3400['writer']['insert'](_0x184015,_0x155873),_0x3f3400['convertChildren'](_0x4e42da,_0x184015);}}_0x3f3400['updateConversionResult'](_0x155873,_0x445f18);});}),_0x383dbc['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x120925,{writer:_0xc36aa9})=>D(_0x120925,_0xc36aa9,_0x3b0606,{'dataPipeline':!0x0})}),_0x383dbc['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x37ad8e,{writer:_0x50f413})=>D(_0x37ad8e,_0x50f413,_0x3b0606)});}['_defineBogusParagraphConverters'](){const {editor:_0x2a9168}=this,{conversion:_0x4d23d0}=_0x2a9168;_0x2a9168['config']['get']('footnotes.multiBlock')?(_0x4d23d0['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4d23d0['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2a9168['model']['document'],'change:data',()=>{!function(_0x42b428,_0xeb939e){const _0x86b39d=_0x42b428['document']['differ'],_0x533cfb=new Set();for(const _0x3b3cb5 of _0x86b39d['getChanges']()){const _0x2c3b84='attribute'==_0x3b3cb5['type']?_0x3b3cb5['range']['start']['parent']:_0x3b3cb5['position']['parent'];_0x2c3b84['is']('element','footnoteDefinition')&&_0x533cfb['add'](_0x2c3b84);}for(const _0x1fa586 of _0x533cfb['values']()){const _0x1b5b5e=Array['from'](_0x1fa586['getChildren']())['filter'](_0x420d75=>p(_0x420d75,_0xeb939e['mapper']));for(const _0x2aefb4 of _0x1b5b5e)_0xeb939e['reconvertItem'](_0x2aefb4);}}(_0x2a9168['model'],_0x2a9168['editing']);})):(_0x4d23d0['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4d23d0['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x164a50,{writer:_0x103a79})=>{const _0x5e4960=_0x103a79['createContainerElement']('span');return _0x103a79['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5e4960),_0x5e4960;}}));}['_defineKeyboardHandlers'](){const {editor:_0x406bf1}=this,{editing:_0x5ba230,t:t}=_0x406bf1,_0x10c464=_0x406bf1['model']['document']['selection'];_0x406bf1['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x406bf1['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x5ba230['view']['document'],'enter',(_0x460c02,_0x26a561)=>{const _0x29b99a=function(_0x301855){const _0x3b4c6d=_0x301855['getSelectedElement']();if(_0x3b4c6d?.['is']('element','footnoteRef'))return _0x3b4c6d;return null;}(_0x10c464);if(_0x29b99a){const _0x1afdcd=_0x29b99a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1afdcd),_0x26a561['preventDefault'](),_0x460c02['stop']();}},{'context':_0x11ce06});}['_defineClickHandlers'](){const {editor:_0x28e94b}=this,{editing:_0x2c61c8}=_0x28e94b;_0x28e94b['editing']['view']['addObserver'](_0x42e9ab),_0x28e94b['editing']['view']['addObserver'](_0x45980d);let _0x442e35=!0x1;this['listenTo'](_0x2c61c8['view']['document'],'pointerdown',(_0x2e8278,_0x47fe05)=>{const {target:_0xebad39}=_0x47fe05,_0x4152a7=_0x2c61c8['view']['document']['selection'];_0x442e35=!(!_0xebad39['is']('element','sup')||!_0xebad39['hasClass']('footnote'))&&_0x4152a7['getSelectedElement']()===_0xebad39;},{'priority':'high'}),this['listenTo'](_0x2c61c8['view']['document'],'click',(_0x302dcf,_0x3881c6)=>{const {target:_0x51e108}=_0x3881c6,_0x33e59c=_0x51e108['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x33e59c['slice'](0x1)),_0x302dcf['stop'](),_0x3881c6['preventDefault']();},{'priority':'high','context':_0x32e7d2=>_0x32e7d2['is']('element','sup')&&_0x32e7d2['hasClass']('footnote')&&_0x442e35}),this['listenTo'](_0x2c61c8['view']['document'],'click',(_0xfd162a,_0x1ab241)=>{const {target:_0x129c71}=_0x1ab241;if(!_0x129c71['is']('element','a'))return;let _0x320789=_0x129c71['getAttribute']('href');if(!_0x320789?.['startsWith']('#'))return;_0x320789=_0x320789['slice'](0x1);let _0xc1da5a=!0x1;(_0x320789['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x320789['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x320789))&&(_0xc1da5a=!0x0),_0xc1da5a&&(_0x1ab241['preventDefault'](),_0xfd162a['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x594699}={}){return(_0xd81c50,{writer:_0x1f1f53})=>{if(!h(_0xd81c50))return null;if(!_0x594699)return _0x1f1f53['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4dac84=_0x1f1f53['createContainerElement']('p');return _0x1f1f53['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4dac84),_0x4dac84;};}function h(_0x12e747){const {parent:_0x25cf10}=_0x12e747;if(!_0x25cf10?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x25cf10['childCount'])return!0x1;for(const _0x5b5602 of _0x12e747['getAttributeKeys']())if(!_0x5b5602['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5b5602)return!0x1;return!0x0;}function p(_0x3662a0,_0x4ed484){if(!_0x3662a0['is']('element','paragraph'))return!0x1;const _0x21deb7=_0x4ed484['toViewElement'](_0x3662a0);return!!_0x21deb7&&h(_0x3662a0)!==_0x21deb7['is']('element','span');}export function isFootnotesDefinitionsWidget(_0xbbbaf7){return _0x11ce06(_0xbbbaf7)&&_0xbbbaf7['is']('containerElement')&&!!_0xbbbaf7['getCustomProperty']('footnotesDefinitions');}function g(_0x5a6552,_0x33aeb2){const _0x432443=_0x5a6552['getAttribute']('footnoteId'),_0x440ad3=_0x5a6552['getAttribute']('footnoteCounter'),_0x313855=_0x33aeb2['createUIElement']('a',{'id':'ref-'+_0x432443,'href':'#'+_0x432443},function(_0x2832c5){const _0x4df48a=this['toDomElement'](_0x2832c5);return _0x4df48a['textContent']=_0x440ad3,_0x4df48a;}),_0x368c34=_0x33aeb2['createContainerElement']('sup',{'class':'footnote'},[_0x313855]);return _0x368c34['getFillerOffset']=()=>null,_0x368c34;}function D(_0x241729,_0x57fd03,_0x3485a3,{dataPipeline:_0x2f679b}={}){const {t:t}=_0x3485a3,_0xa04b7e=_0x241729['getAttribute']('footnoteId'),_0x323102=_0x57fd03['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xa04b7e},function(_0x88b667){const _0x18f414=this['toDomElement'](_0x88b667);return _0x18f414['innerText']='^',_0x18f414;}),_0x5d07b9=_0x2f679b?_0x57fd03['createContainerElement']('div',{'class':'footnote-content'}):_0x56c70c(_0x57fd03['createEditableElement']('div',{'class':'footnote-content'}),_0x57fd03,{'label':t('Footnote\x20content.')});return _0x57fd03['insert'](_0x57fd03['createPositionAt'](_0x5d07b9,0x0),_0x57fd03['createSlot']()),_0x57fd03['createContainerElement']('li',{'class':'footnote-definition','id':_0xa04b7e},[_0x323102,_0x5d07b9]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x190307=_0xc059;(function(_0x1c72f5,_0x5dfb36){const _0x369cc0=_0xc059,_0x282a0b=_0x1c72f5();while(!![]){try{const _0x66860a=parseInt(_0x369cc0(0x105))/0x1*(parseInt(_0x369cc0(0x110))/0x2)+-parseInt(_0x369cc0(0x10e))/0x3+-parseInt(_0x369cc0(0x10d))/0x4+parseInt(_0x369cc0(0x10a))/0x5*(-parseInt(_0x369cc0(0x107))/0x6)+parseInt(_0x369cc0(0x109))/0x7+-parseInt(_0x369cc0(0x10b))/0x8*(-parseInt(_0x369cc0(0x114))/0x9)+parseInt(_0x369cc0(0x104))/0xa;if(_0x66860a===_0x5dfb36)break;else _0x282a0b['push'](_0x282a0b['shift']());}catch(_0x2a097f){_0x282a0b['push'](_0x282a0b['shift']());}}}(_0x4604,0x4b9d5));function _0xc059(_0x52ff60,_0x44589f){const _0x4604e2=_0x4604();return _0xc059=function(_0xc0597d,_0xdaf807){_0xc0597d=_0xc0597d-0x104;let _0x591cb5=_0x4604e2[_0xc0597d];return _0x591cb5;},_0xc059(_0x52ff60,_0x44589f);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x190307(0x10f),_0x190307(0x113),_0x190307(0x10c),_0x190307(0x108),_0x190307(0x112),_0x190307(0x111),_0x190307(0x106),_0x190307(0x115)];function _0x4604(){const _0x3f6753=['lower-alpha','decimal-leading-zero','9pEyuQs','upper-roman','12190660DUjOQp','27264vZKqrd','lower-roman','408840xPbtSG','upper-latin','943173hBqtFB','40uqhlFA','2217304gMwiSN','lower-latin','1805372qLipAq','1383324MibXbV','decimal','10YxZoub','upper-alpha'];_0x4604=function(){return _0x3f6753;};return _0x4604();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2d091f=_0x5c59;(function(_0x55cbf8,_0x3d2d5c){const _0x36061c=_0x5c59,_0x854cbb=_0x55cbf8();while(!![]){try{const _0x3662b1=-parseInt(_0x36061c(0x16f))/0x1*(-parseInt(_0x36061c(0x19f))/0x2)+parseInt(_0x36061c(0x150))/0x3+parseInt(_0x36061c(0x1a0))/0x4*(-parseInt(_0x36061c(0x17c))/0x5)+-parseInt(_0x36061c(0x145))/0x6*(parseInt(_0x36061c(0x18a))/0x7)+parseInt(_0x36061c(0x18f))/0x8+parseInt(_0x36061c(0x15e))/0x9*(parseInt(_0x36061c(0x1a1))/0xa)+-parseInt(_0x36061c(0x16c))/0xb*(parseInt(_0x36061c(0x161))/0xc);if(_0x3662b1===_0x3d2d5c)break;else _0x854cbb['push'](_0x854cbb['shift']());}catch(_0x5ddae2){_0x854cbb['push'](_0x854cbb['shift']());}}}(_0x54dc,0xd2fd8));import{Plugin as _0x32d478}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x2f44a5}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x3887f7}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x3ac1c3}from'../footnotestracker.js';import{FootnotesEditing as _0x407faf}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x32d478{static get[_0x2d091f(0x15c)](){const _0x170e87=_0x2d091f;return _0x170e87(0x16a);}static get[_0x2d091f(0x183)](){return[_0x407faf,_0x3ac1c3];}static get[_0x2d091f(0x17d)](){return!0x0;}static get[_0x2d091f(0x147)](){return!0x0;}[_0x2d091f(0x15f)](){const _0x17c7b4=_0x2d091f,{editor:_0xc5d6ae}=this;_0xc5d6ae[_0x17c7b4(0x190)][_0x17c7b4(0x1a3)](_0x17c7b4(0x151),_0x17c7b4(0x16e)),_0xc5d6ae[_0x17c7b4(0x190)][_0x17c7b4(0x1a3)](_0x17c7b4(0x155),0x1),_0xc5d6ae[_0x17c7b4(0x19b)][_0x17c7b4(0x16b)](_0x17c7b4(0x1ab),new _0x2f44a5(_0xc5d6ae)),_0xc5d6ae[_0x17c7b4(0x19b)][_0x17c7b4(0x16b)](_0x17c7b4(0x171),new _0x3887f7(_0xc5d6ae)),this[_0x17c7b4(0x14f)](),this[_0x17c7b4(0x180)](),this[_0x17c7b4(0x1a4)](),this[_0x17c7b4(0x19e)]();}[_0x2d091f(0x14f)](){const _0x48589b=_0x2d091f,{editor:_0x111d67}=this,{schema:_0x54ffb3}=_0x111d67[_0x48589b(0x14e)];_0x54ffb3[_0x48589b(0x163)](_0x48589b(0x173),{'allowAttributes':[_0x48589b(0x18c),_0x48589b(0x169)]});}[_0x2d091f(0x180)](){const _0x1869c4=_0x2d091f,{editor:_0x4a06f5}=this,{conversion:_0x415940,model:_0x4b5f28}=_0x4a06f5,{schema:_0x5440fd}=_0x4b5f28;_0x415940[_0x1869c4(0x19c)](_0x1869c4(0x1aa))[_0x1869c4(0x186)]({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':_0x1869c4(0x18c),'value':_0x5fbfc1=>_0x5fbfc1[_0x1869c4(0x178)](_0x1869c4(0x168))}}),_0x415940[_0x1869c4(0x19c)](_0x1869c4(0x1aa))[_0x1869c4(0x186)]({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':_0x1869c4(0x169),'value':_0x56cade=>{const _0x58079e=_0x1869c4,_0x8bfc03=_0x56cade[_0x58079e(0x148)](_0x58079e(0x15b)),_0x484772=Number[_0x58079e(0x179)](_0x8bfc03,0xa);return Number[_0x58079e(0x167)](_0x484772)?null:_0x484772;}}}),_0x415940[_0x1869c4(0x19c)](_0x1869c4(0x1aa))[_0x1869c4(0x186)]({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':_0x1869c4(0x18c),'value':_0x117491=>({0x1:_0x1869c4(0x16e),'a':_0x1869c4(0x194),'A':_0x1869c4(0x17e),'i':_0x1869c4(0x170),'I':_0x1869c4(0x166)}[_0x117491[_0x1869c4(0x148)](_0x1869c4(0x197))])}}),_0x415940[_0x1869c4(0x19c)](_0x1869c4(0x1aa))[_0x1869c4(0x16b)](_0x5340b4=>{const _0x5d43f5=_0x1869c4;_0x5340b4['on'](_0x5d43f5(0x176),(_0x37b17d,_0x54e034,_0x195944)=>{const _0xec83fb=_0x5d43f5,_0x459e06=_0x54e034[_0xec83fb(0x199)]?.[_0xec83fb(0x15b)][_0xec83fb(0x196)];_0x459e06?.['is'](_0xec83fb(0x159),_0xec83fb(0x173))&&(!_0x459e06[_0xec83fb(0x187)](_0xec83fb(0x18c))&&_0x5440fd[_0xec83fb(0x152)](_0x459e06,_0xec83fb(0x18c))&&_0x195944[_0xec83fb(0x182)][_0xec83fb(0x17a)](_0xec83fb(0x18c),_0xec83fb(0x16e),_0x459e06),!_0x459e06[_0xec83fb(0x187)](_0xec83fb(0x169))&&_0x5440fd[_0xec83fb(0x152)](_0x459e06,_0xec83fb(0x169))&&_0x195944[_0xec83fb(0x182)][_0xec83fb(0x17a)](_0xec83fb(0x169),0x1,_0x459e06));},{'priority':_0x5d43f5(0x1a9)});}),_0x415940[_0x1869c4(0x19c)](_0x1869c4(0x153))[_0x1869c4(0x186)]({'model':{'name':_0x1869c4(0x173),'key':_0x1869c4(0x169)},'view':_0x14fdd5=>0x1===_0x14fdd5?null:{'key':_0x1869c4(0x15b),'value':String(_0x14fdd5)}}),_0x415940[_0x1869c4(0x19c)](_0x1869c4(0x153))[_0x1869c4(0x186)]({'model':{'name':_0x1869c4(0x173),'key':_0x1869c4(0x18c)},'view':_0x2209fe=>_0x1869c4(0x16e)===_0x2209fe?null:{'key':_0x1869c4(0x189),'value':{'list-style-type':_0x2209fe}}}),_0x415940[_0x1869c4(0x19c)](_0x1869c4(0x191))[_0x1869c4(0x16b)](_0x5b78de=>{const _0x4a512d=_0x1869c4;_0x5b78de['on'](_0x4a512d(0x185),(_0x2d6748,_0x3dc542,_0x4f6ec0)=>{const _0x314f03=_0x4a512d;if(!_0x4f6ec0[_0x314f03(0x18d)][_0x314f03(0x165)](_0x3dc542[_0x314f03(0x198)],_0x2d6748[_0x314f03(0x1a5)]))return;const _0x5241f0=C(_0x3dc542[_0x314f03(0x198)],_0x4f6ec0[_0x314f03(0x16d)]);null===_0x3dc542[_0x314f03(0x18e)]||void 0x0===_0x3dc542[_0x314f03(0x18e)]||0x1===_0x3dc542[_0x314f03(0x18e)]?_0x4f6ec0[_0x314f03(0x182)][_0x314f03(0x192)](_0x314f03(0x15b),_0x5241f0):_0x4f6ec0[_0x314f03(0x182)][_0x314f03(0x17a)](_0x314f03(0x15b),String(_0x3dc542[_0x314f03(0x18e)]),_0x5241f0);}),_0x5b78de['on'](_0x4a512d(0x19a),(_0x3859ed,_0x4d9d75,_0x2ee396)=>{const _0x4fe85d=_0x4a512d;if(!_0x2ee396[_0x4fe85d(0x18d)][_0x4fe85d(0x165)](_0x4d9d75[_0x4fe85d(0x198)],_0x3859ed[_0x4fe85d(0x1a5)]))return;const _0x398e41=C(_0x4d9d75[_0x4fe85d(0x198)],_0x2ee396[_0x4fe85d(0x16d)]);_0x4d9d75[_0x4fe85d(0x18e)]&&_0x4fe85d(0x16e)!==_0x4d9d75[_0x4fe85d(0x18e)]?_0x2ee396[_0x4fe85d(0x182)][_0x4fe85d(0x18b)](_0x4fe85d(0x168),_0x4d9d75[_0x4fe85d(0x18e)],_0x398e41):_0x2ee396[_0x4fe85d(0x182)][_0x4fe85d(0x174)](_0x4fe85d(0x168),_0x398e41);});});}[_0x2d091f(0x19e)](){const _0x54e960=_0x2d091f,{editor:_0x2dbc0d}=this,{model:_0xe685b4}=_0x2dbc0d,_0x739417=_0x2dbc0d[_0x54e960(0x157)][_0x54e960(0x162)](_0x3ac1c3),_0x4c04e4=this[_0x54e960(0x14b)](),_0xd472cd=this[_0x54e960(0x19d)]();_0xe685b4[_0x54e960(0x17b)][_0x54e960(0x154)](_0x47db70=>{const _0x57a480=_0x54e960,_0x51158b=_0xe685b4[_0x57a480(0x17b)][_0x57a480(0x1a6)][_0x57a480(0x15a)]();let _0x17097a=!0x1;for(const _0x53c5fe of _0x51158b){if(_0x57a480(0x14d)!==_0x53c5fe[_0x57a480(0x197)]||_0x57a480(0x146)===_0x53c5fe[_0x57a480(0x1a5)])continue;const _0x105c03=_0xe685b4[_0x57a480(0x1a2)](_0x53c5fe[_0x57a480(0x156)][_0x57a480(0x196)]);for(const _0x292b44 of _0x105c03[_0x57a480(0x160)]())_0x292b44['is'](_0x57a480(0x159),_0x57a480(0x173))&&(_0x292b44[_0x57a480(0x187)](_0x57a480(0x169))||(_0x47db70[_0x57a480(0x17a)](_0x57a480(0x169),_0xd472cd,_0x292b44),_0x17097a=!0x0),_0x292b44[_0x57a480(0x187)](_0x57a480(0x18c))||(_0x47db70[_0x57a480(0x17a)](_0x57a480(0x18c),_0x4c04e4,_0x292b44),_0x17097a=!0x0));}return _0x17097a&&_0x739417[_0x57a480(0x175)](_0x47db70),_0x17097a;});}[_0x2d091f(0x1a4)](){const _0x4e90f1=_0x2d091f,{editor:_0x403d67}=this;_0x403d67[_0x4e90f1(0x157)][_0x4e90f1(0x162)](_0x3ac1c3)[_0x4e90f1(0x17f)](_0x3400df=>this[_0x4e90f1(0x1a7)](_0x3400df));}[_0x2d091f(0x14b)](){const _0x538477=_0x2d091f;return this[_0x538477(0x164)][_0x538477(0x190)][_0x538477(0x162)](_0x538477(0x151));}[_0x2d091f(0x19d)](){const _0x420fe2=_0x2d091f;return this[_0x420fe2(0x164)][_0x420fe2(0x190)][_0x420fe2(0x162)](_0x420fe2(0x155));}[_0x2d091f(0x1a7)]({container:_0x4b818d,value:_0xa759ee,digits:_0x7552a8}){const _0x211dd0=_0x2d091f,_0x172917=_0x4b818d[_0x211dd0(0x148)](_0x211dd0(0x18c)),_0x152ca4=_0x4b818d[_0x211dd0(0x148)](_0x211dd0(0x169)),_0xd3b308=Math[_0x211dd0(0x184)](_0xa759ee)+(_0x152ca4-0x1);switch(_0x172917){case _0x211dd0(0x16e):default:return String(_0xd3b308);case _0x211dd0(0x14c):return function(_0x522c8e,_0x43380d){const _0x234a6a=_0x211dd0;return String(_0x522c8e)[_0x234a6a(0x1a8)](_0x43380d,'0');}(_0xd3b308,Math[_0x211dd0(0x172)](0x2,_0x7552a8));case _0x211dd0(0x194):case _0x211dd0(0x14a):return M(_0xd3b308,!0x1);case _0x211dd0(0x17e):case _0x211dd0(0x177):return M(_0xd3b308,!0x0);case _0x211dd0(0x170):return A(_0xd3b308,!0x1);case _0x211dd0(0x166):return A(_0xd3b308,!0x0);}}}function _0x5c59(_0x6ab1c4,_0x27dbe9){const _0x54dc5b=_0x54dc();return _0x5c59=function(_0x5c59f5,_0xc727df){_0x5c59f5=_0x5c59f5-0x145;let _0x2b02f9=_0x54dc5b[_0x5c59f5];return _0x2b02f9;},_0x5c59(_0x6ab1c4,_0x27dbe9);}function C(_0x56e342,_0x500495){const _0x21a485=_0x2d091f,_0x3ebb00=_0x500495[_0x21a485(0x188)](_0x56e342);return Array[_0x21a485(0x181)](_0x3ebb00[_0x21a485(0x15d)]())[_0x21a485(0x195)](_0x16a861=>_0x16a861['is'](_0x21a485(0x159),'ol'));}function M(_0x8ce37,_0x34380a){const _0xaf3458=_0x2d091f;let _0x4348ff='',_0x3d1781=_0x8ce37;for(;_0x3d1781>0x0;){const _0x4559e7=(_0x3d1781-0x1)%0x1a;_0x4348ff=String[_0xaf3458(0x193)](0x61+_0x4559e7)+_0x4348ff,_0x3d1781=Math[_0xaf3458(0x184)]((_0x3d1781-0x1)/0x1a);}return _0x34380a?_0x4348ff[_0xaf3458(0x158)]():_0x4348ff;}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 _0x54dc(){const _0x3efab8=['nodeAfter','type','item','modelRange','attribute:footnotesListStyle:footnotesDefinitions','commands','for','_getDefaultStartIndex','_definePostfixer','513914lYMrvt','4oFkbBs','631840vWZhPg','createRangeOn','define','_defineFormatter','name','differ','_formatFootnoteListValue','padStart','low','upcast','footnotesStyle','6pfWoCa','$text','isPremiumPlugin','getAttribute','toLowerCase','lower-latin','_getDefaultListStyle','decimal-leading-zero','insert','model','_defineSchema','2530038tkazGb','footnotes.footnotesProperties.defaultListStyle','checkAttribute','dataDowncast','registerPostFixer','footnotes.footnotesProperties.defaultStartIndex','position','plugins','toUpperCase','element','getChanges','start','pluginName','getChildren','198WLdyjb','init','getItems','12IJTklI','get','extend','editor','consume','upper-roman','isNaN','list-style-type','footnotesListStart','FootnotesPropertiesEditing','add','14292399wQrlim','mapper','decimal','1RXGVSU','lower-roman','footnotesStart','max','footnotesDefinitions','removeStyle','_updateFootnotesCounters','element:ol','upper-latin','getStyle','parseInt','setAttribute','document','1445280QIBYEh','isOfficialPlugin','upper-alpha','setFootnoteFormatter','_defineConverters','from','writer','requires','floor','attribute:footnotesListStart:footnotesDefinitions','attributeToAttribute','hasAttribute','toViewElement','style','7432999buQJTO','setStyle','footnotesListStyle','consumable','attributeNewValue','8192696OyjbXK','config','editingDowncast','removeAttribute','fromCharCode','lower-alpha','find'];_0x54dc=function(){return _0x3efab8;};return _0x54dc();}function A(_0x1abfc1,_0x58a361){const _0x49f7c6=_0x2d091f;let _0x46f97a='',_0x451fb4=_0x1abfc1;for(const {value:_0x44ee4e,numeral:_0x107134}of X)for(;_0x451fb4>=_0x44ee4e;)_0x46f97a+=_0x107134,_0x451fb4-=_0x44ee4e;return _0x58a361?_0x46f97a:_0x46f97a[_0x49f7c6(0x149)]();}
|
|
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)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
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']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
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;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1517(_0x32b56a,_0x4197b4){var _0x380d8b=_0x380d();return _0x1517=function(_0x151745,_0x3f92eb){_0x151745=_0x151745-0xad;var _0x2c099e=_0x380d8b[_0x151745];return _0x2c099e;},_0x1517(_0x32b56a,_0x4197b4);}function _0x380d(){var _0x13a9b9=['403251xryoUk','10877657hBJATP','isPremiumPlugin','20chXESF','isOfficialPlugin','28036107iDyifQ','890oddnZc','requires','388692ufWaNg','pluginName','6012foJZtg','11344kLxivr','FootnotesProperties','685nYzcOk','44MfwwOb','2185670kpFrfS'];_0x380d=function(){return _0x13a9b9;};return _0x380d();}var _0x1d85e5=_0x1517;(function(_0x2ed380,_0x36d0d7){var _0x3a90c7=_0x1517,_0x309af5=_0x2ed380();while(!![]){try{var _0x2f485a=-parseInt(_0x3a90c7(0xb4))/0x1*(parseInt(_0x3a90c7(0xad))/0x2)+-parseInt(_0x3a90c7(0xb7))/0x3*(parseInt(_0x3a90c7(0xb5))/0x4)+parseInt(_0x3a90c7(0xba))/0x5*(-parseInt(_0x3a90c7(0xaf))/0x6)+parseInt(_0x3a90c7(0xb8))/0x7+parseInt(_0x3a90c7(0xb2))/0x8*(-parseInt(_0x3a90c7(0xb1))/0x9)+-parseInt(_0x3a90c7(0xb6))/0xa+parseInt(_0x3a90c7(0xbc))/0xb;if(_0x2f485a===_0x36d0d7)break;else _0x309af5['push'](_0x309af5['shift']());}catch(_0xe9feca){_0x309af5['push'](_0x309af5['shift']());}}}(_0x380d,0xda595));import{Plugin as _0x1b411b}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x5820d1}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x228663}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x1b411b{static get[_0x1d85e5(0xb0)](){var _0x47cd0c=_0x1d85e5;return _0x47cd0c(0xb3);}static get[_0x1d85e5(0xae)](){return[_0x5820d1,_0x228663];}static get[_0x1d85e5(0xbb)](){return!0x0;}static get[_0x1d85e5(0xb9)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1ff2(_0x5054db,_0x21520b){const _0x39cbb3=_0x39cb();return _0x1ff2=function(_0x1ff272,_0xbbfb0){_0x1ff272=_0x1ff272-0x13f;let _0x26f68d=_0x39cbb3[_0x1ff272];return _0x26f68d;},_0x1ff2(_0x5054db,_0x21520b);}const _0x1f2cf1=_0x1ff2;function _0x39cb(){const _0x33a9b1=['before','footnoteCounter','_handleFootnoteReferencesChanges','config','footnoteInlineContent','124113tloLkv','12052824DuEQpv','change:data','differ','indexOf','footnotes.multiBlock','_footnoteRefsTracker','isOfficialPlugin','createRangeOn','_handleFootnoteDefinitionsChanges','18wCrHQi','editor','singleton','document','remove','paragraph','enqueueChange','init','_handleInsertedFootnoteReference','$graveyard','_footnoteFormatter','footnoteRef','append','_handleRemoveFootnoteReferenceById','min','534692JpyNtI','push','2090948OQzPOH','getFootnotesFormatter','_handleMovedFootnoteReference','insert','6ZXxpZF','getRootNames','_ensureFootnotesDefinitionsContainerExists','getChanges','_footnotes','footnoteId','_footnoteDefsTracker','_sortFootnoteDefinitions','1836duvZJK','getFootnote','1203010SGeOvn','model','listenTo','has','move','getFootnotesDefinitionsObjectElement','findIndex','FootnotesTracker','after','getChildren','pluginName','isEqual','footnotesDefinitions','get','_handleFootnotesDefinitionsObjectChanges','_footnotesDefinitions','root','isPremiumPlugin','getFootnotes','find','_ensureFootnotesReferencesHaveProperOrder','parent','createElement','_insertEmptyFootnotesDefinitionsContainer','5597744mFgUZp','from','rootName','23410ewuMjw','childCount','createRangeIn','registerPostFixer','_updateFootnoteRefCounter','splice','createPositionAt','5877SuvMyp','map','reference','_handleFootnotesDefinitionsObjectSync','definition','add','compareWith','getAttribute','length','_footnoteDefsContainerTracker','some','3KcJSfW','low','unshift','_updateFootnotesCounters','setFootnoteFormatter','createPositionBefore','filter','footnoteDefinition','setAttribute','end'];_0x39cb=function(){return _0x33a9b1;};return _0x39cb();}(function(_0x23cbb9,_0x186463){const _0xc2d922=_0x1ff2,_0x332163=_0x23cbb9();while(!![]){try{const _0x3eff7f=parseInt(_0xc2d922(0x14f))/0x1*(parseInt(_0xc2d922(0x149))/0x2)+parseInt(_0xc2d922(0x186))/0x3*(-parseInt(_0xc2d922(0x14b))/0x4)+-parseInt(_0xc2d922(0x159))/0x5*(-parseInt(_0xc2d922(0x19f))/0x6)+-parseInt(_0xc2d922(0x196))/0x7+parseInt(_0xc2d922(0x171))/0x8+-parseInt(_0xc2d922(0x17b))/0x9*(parseInt(_0xc2d922(0x174))/0xa)+-parseInt(_0xc2d922(0x195))/0xb*(-parseInt(_0xc2d922(0x157))/0xc);if(_0x3eff7f===_0x186463)break;else _0x332163['push'](_0x332163['shift']());}catch(_0x10d0f3){_0x332163['push'](_0x332163['shift']());}}}(_0x39cb,0xeeee1));import{Plugin as _0x58d154}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x31b12f}from'./modelelementtracker.js';export class FootnotesTracker extends _0x58d154{[_0x1f2cf1(0x153)]=[];[_0x1f2cf1(0x168)]=null;[_0x1f2cf1(0x144)]=null;[_0x1f2cf1(0x184)];[_0x1f2cf1(0x19b)];[_0x1f2cf1(0x155)];static get[_0x1f2cf1(0x163)](){const _0x2ff215=_0x1f2cf1;return _0x2ff215(0x160);}static get[_0x1f2cf1(0x19c)](){return!0x0;}static get[_0x1f2cf1(0x16a)](){return!0x0;}constructor(_0x201658){const _0x32564d=_0x1f2cf1;super(_0x201658),this[_0x32564d(0x184)]=new _0x31b12f(this[_0x32564d(0x1a0)][_0x32564d(0x15a)],{'elementName':_0x32564d(0x165),'getElementKey':()=>_0x32564d(0x1a1)}),this[_0x32564d(0x19b)]=new _0x31b12f(this[_0x32564d(0x1a0)][_0x32564d(0x15a)],{'elementName':_0x32564d(0x145),'getElementKey':_0x574cee=>_0x574cee[_0x32564d(0x182)](_0x32564d(0x154))}),this[_0x32564d(0x155)]=new _0x31b12f(this[_0x32564d(0x1a0)][_0x32564d(0x15a)],{'elementName':_0x32564d(0x18d),'getElementKey':_0x258f8b=>_0x258f8b[_0x32564d(0x182)](_0x32564d(0x154))});}[_0x1f2cf1(0x141)](){const _0x3edb58=_0x1f2cf1,{editor:_0xfac974}=this,{model:_0x10d906}=_0xfac974;_0x10d906[_0x3edb58(0x1a2)][_0x3edb58(0x177)](_0xb1434=>{const _0xb3ff0d=_0x3edb58,_0xb017e9=_0x10d906[_0xb3ff0d(0x1a2)][_0xb3ff0d(0x198)][_0xb3ff0d(0x152)]();let _0x3f232b=!0x1;return this[_0xb3ff0d(0x167)](_0xb1434,_0xb017e9)&&(_0x3f232b=!0x0),this[_0xb3ff0d(0x19e)](_0xb1434,_0xb017e9)&&(_0x3f232b=!0x0),this[_0xb3ff0d(0x192)](_0xb1434,_0xb017e9)&&(_0x3f232b=!0x0),this[_0xb3ff0d(0x16d)](_0xb1434)&&(_0x3f232b=!0x0),this[_0xb3ff0d(0x17e)](_0xb1434)&&(_0x3f232b=!0x0),this[_0xb3ff0d(0x156)](_0xb1434)&&(_0x3f232b=!0x0),_0x3f232b;}),this[_0x3edb58(0x15b)](_0x10d906[_0x3edb58(0x1a2)],_0x3edb58(0x197),()=>{const _0x38b01c=_0x3edb58;_0x10d906[_0x38b01c(0x140)]({'isUndoable':!0x1},_0x59db1f=>{const _0xb848b9=_0x38b01c;this[_0xb848b9(0x151)](_0x59db1f);});},{'priority':_0x3edb58(0x187)});}[_0x1f2cf1(0x15e)](){const _0x7f6dde=_0x1f2cf1;return this[_0x7f6dde(0x168)];}[_0x1f2cf1(0x158)](_0x334962){const _0x293743=_0x1f2cf1;return this[_0x293743(0x153)][_0x293743(0x16c)](_0x49cdf5=>_0x49cdf5['id']===_0x334962)||null;}[_0x1f2cf1(0x16b)](){const _0x2464b5=_0x1f2cf1;return Array[_0x2464b5(0x172)](this[_0x2464b5(0x153)]);}[_0x1f2cf1(0x14c)](){const _0x148893=_0x1f2cf1;return this[_0x148893(0x144)];}[_0x1f2cf1(0x18a)](_0xa02139){const _0x116198=_0x1f2cf1;this[_0x116198(0x144)]=_0xa02139;}[_0x1f2cf1(0x189)](_0x43ddf5,_0x46cbc1=0x0){const _0x160449=_0x1f2cf1;let _0x314a74=!0x1;for(let _0x352e6a=_0x46cbc1;_0x352e6a<this[_0x160449(0x153)][_0x160449(0x183)];_0x352e6a++)this[_0x160449(0x178)](_0x43ddf5,_0x352e6a)&&(_0x314a74=!0x0);return _0x314a74;}[_0x1f2cf1(0x170)](_0x211ccf,_0x47a39e){const _0x2e23e7=_0x1f2cf1,_0x5b9637=_0x211ccf[_0x2e23e7(0x16f)](_0x2e23e7(0x165),{});return _0x211ccf[_0x2e23e7(0x146)](_0x5b9637,_0x47a39e),this[_0x2e23e7(0x168)]=_0x5b9637,_0x5b9637;}[_0x1f2cf1(0x151)](_0x4ff033){const _0x1de29d=_0x1f2cf1;if(!this[_0x1de29d(0x153)][_0x1de29d(0x183)]||this[_0x1de29d(0x168)])return;const _0x1a9c2d=this[_0x1de29d(0x153)][0x0][_0x1de29d(0x17d)][_0x1de29d(0x169)],_0x23dfc7=this[_0x1de29d(0x170)](_0x4ff033,_0x1a9c2d);for(const _0x56225a of this[_0x1de29d(0x153)])_0x56225a[_0x1de29d(0x17f)][_0x1de29d(0x16e)]||_0x4ff033[_0x1de29d(0x14e)](_0x56225a[_0x1de29d(0x17f)],_0x23dfc7,_0x1de29d(0x18f));this[_0x1de29d(0x189)](_0x4ff033);}[_0x1f2cf1(0x167)](_0x389e27,_0x316194){const _0x5c3e4a=_0x1f2cf1;let _0x238d06=!0x1;const {inserted:_0x3becba,removed:_0x1a48d4,moved:_0x5b109a}=this[_0x5c3e4a(0x184)][_0x5c3e4a(0x152)](_0x316194);if(_0x5b109a[_0x5c3e4a(0x183)]&&(this[_0x5c3e4a(0x168)]=_0x5b109a[0x0]),_0x3becba[_0x5c3e4a(0x183)]){if(_0x3becba[_0x5c3e4a(0x183)]>0x1||this[_0x5c3e4a(0x168)]&&_0x3becba[_0x5c3e4a(0x185)](_0xf5d06c=>_0xf5d06c!==this[_0x5c3e4a(0x168)])){const _0x23f5bf=_0x389e27[_0x5c3e4a(0x16f)](_0x5c3e4a(0x165),{}),_0x1a2f8d=[];this[_0x5c3e4a(0x168)]&&_0x1a2f8d[_0x5c3e4a(0x14a)](this[_0x5c3e4a(0x168)]),_0x1a2f8d[_0x5c3e4a(0x14a)](..._0x3becba),_0x389e27[_0x5c3e4a(0x14e)](_0x23f5bf,_0x1a2f8d[0x0],_0x5c3e4a(0x190));for(const _0x1b90b6 of _0x1a2f8d)_0x389e27[_0x5c3e4a(0x15d)](_0x389e27[_0x5c3e4a(0x176)](_0x1b90b6),_0x389e27[_0x5c3e4a(0x17a)](_0x23f5bf,_0x5c3e4a(0x18f))),_0x389e27[_0x5c3e4a(0x1a3)](_0x1b90b6);this[_0x5c3e4a(0x168)]=_0x23f5bf,this[_0x5c3e4a(0x189)](_0x389e27),_0x238d06=!0x0;}else this[_0x5c3e4a(0x168)]=_0x3becba[0x0];}if(_0x1a48d4[_0x5c3e4a(0x183)]&&_0x5c3e4a(0x143)===this[_0x5c3e4a(0x168)]?.[_0x5c3e4a(0x169)][_0x5c3e4a(0x173)]){for(const _0x339aa4 of this[_0x5c3e4a(0x153)])_0x389e27[_0x5c3e4a(0x1a3)](_0x339aa4[_0x5c3e4a(0x17d)]),_0x238d06=!0x0;this[_0x5c3e4a(0x153)]=[],this[_0x5c3e4a(0x168)]=null;}return _0x238d06;}[_0x1f2cf1(0x19e)](_0x59533f,_0xc66b75){const _0x52cd47=_0x1f2cf1;let _0x3f0955=!0x1;const _0x2d3690=this[_0x52cd47(0x1a0)][_0x52cd47(0x193)][_0x52cd47(0x166)](_0x52cd47(0x19a)),{inserted:_0x1f88d1,moved:_0x58af16}=this[_0x52cd47(0x155)][_0x52cd47(0x152)](_0xc66b75);for(const _0x23088f of[..._0x58af16,..._0x1f88d1]){const _0x43a80f=_0x23088f[_0x52cd47(0x182)](_0x52cd47(0x154)),_0xeceaae=this[_0x52cd47(0x158)](_0x43a80f);_0xeceaae&&(_0xeceaae[_0x52cd47(0x17f)]=_0x23088f),_(_0x59533f,_0x2d3690,_0x23088f)&&(_0x3f0955=!0x0);}return _0x3f0955;}[_0x1f2cf1(0x192)](_0x93d424,_0x1b761c){const _0x1cf38c=_0x1f2cf1;let _0x5c647b=!0x1;const {removed:_0x442dab,inserted:_0x16052f,moved:_0x30aa51}=this[_0x1cf38c(0x19b)][_0x1cf38c(0x152)](_0x1b761c);for(const _0x2c3222 of _0x442dab)this[_0x1cf38c(0x147)](_0x93d424,_0x2c3222)&&(_0x5c647b=!0x0);for(const _0x5788e5 of _0x16052f)this[_0x1cf38c(0x142)](_0x93d424,_0x5788e5)&&(_0x5c647b=!0x0);for(const _0x3c7a27 of _0x30aa51)this[_0x1cf38c(0x14d)](_0x93d424,_0x3c7a27)&&(_0x5c647b=!0x0);return _0x5c647b;}[_0x1f2cf1(0x17e)](_0xece7de){const _0x22253d=_0x1f2cf1;if(!this[_0x22253d(0x168)])return!0x1;let _0x584c4b=!0x1;if(this[_0x22253d(0x168)][_0x22253d(0x175)]!==this[_0x22253d(0x153)][_0x22253d(0x183)]){const _0x32dc4c=[];for(const _0x138c0a of this[_0x22253d(0x168)][_0x22253d(0x162)]()){const _0x4d15f9=_0x138c0a[_0x22253d(0x182)](_0x22253d(0x154));this[_0x22253d(0x158)](_0x4d15f9)||(_0x32dc4c[_0x22253d(0x188)](_0x138c0a),_0x584c4b=!0x0);}for(const _0x22b203 of _0x32dc4c)_0xece7de[_0x22253d(0x1a3)](_0x22b203);}const _0x418049=new Set(),_0x5ba7c9=[];for(const _0x49107c of this[_0x22253d(0x168)][_0x22253d(0x162)]()){const _0x58007b=_0x49107c[_0x22253d(0x182)](_0x22253d(0x154));_0x418049[_0x22253d(0x15c)](_0x58007b)?(_0x5ba7c9[_0x22253d(0x188)](_0x49107c),_0x584c4b=!0x0):_0x418049[_0x22253d(0x180)](_0x58007b);}for(const _0x8fce22 of _0x5ba7c9)_0xece7de[_0x22253d(0x1a3)](_0x8fce22);return this[_0x22253d(0x168)][_0x22253d(0x175)]||(_0xece7de[_0x22253d(0x1a3)](this[_0x22253d(0x168)]),this[_0x22253d(0x168)]=null,_0x584c4b=!0x0),_0x584c4b;}[_0x1f2cf1(0x142)](_0x4368ad,_0x199841){const _0x4dfcb2=_0x1f2cf1;if(this[_0x4dfcb2(0x153)][_0x4dfcb2(0x16c)](_0x47b8a0=>_0x47b8a0[_0x4dfcb2(0x17d)]===_0x199841))return!0x1;let _0x5a476e=!0x1;const _0x23ed3c=_0x199841[_0x4dfcb2(0x182)](_0x4dfcb2(0x154)),_0x1226e1=this[_0x4dfcb2(0x158)](_0x23ed3c);_0x1226e1&&(_0x4368ad[_0x4dfcb2(0x1a3)](_0x1226e1[_0x4dfcb2(0x17d)]),this[_0x4dfcb2(0x153)]=this[_0x4dfcb2(0x153)][_0x4dfcb2(0x18c)](_0x204df3=>_0x204df3['id']!==_0x23ed3c),_0x5a476e=!0x0);let _0x5eade3=this[_0x4dfcb2(0x168)]?function(_0x319247,_0x43003b){const _0x1345f5=_0x4dfcb2;for(const _0x17ee79 of _0x319247[_0x1345f5(0x162)]())if(_0x17ee79[_0x1345f5(0x182)](_0x1345f5(0x154))===_0x43003b)return _0x17ee79;return null;}(this[_0x4dfcb2(0x168)],_0x23ed3c):null;_0x5eade3||(_0x5eade3=_0x4368ad[_0x4dfcb2(0x16f)](_0x4dfcb2(0x18d),{'footnoteId':_0x23ed3c}),this[_0x4dfcb2(0x168)]&&(_0x4368ad[_0x4dfcb2(0x14e)](_0x5eade3,this[_0x4dfcb2(0x168)],_0x4dfcb2(0x18f)),_0x5a476e=!0x0));const _0x5a9429={'id':_0x23ed3c,'reference':_0x199841,'definition':_0x5eade3},_0x3682f4=I(this[_0x4dfcb2(0x1a0)][_0x4dfcb2(0x15a)],this[_0x4dfcb2(0x153)],_0x199841);return this[_0x4dfcb2(0x153)][_0x4dfcb2(0x179)](_0x3682f4,0x0,_0x5a9429),this[_0x4dfcb2(0x189)](_0x4368ad,_0x3682f4)&&(_0x5a476e=!0x0),_0x5a476e;}[_0x1f2cf1(0x147)](_0x34d3cb,_0xba6cc5){const _0x2a5755=_0x1f2cf1,_0x310476=this[_0x2a5755(0x153)][_0x2a5755(0x15f)](_0x4c7e75=>_0x4c7e75['id']===_0xba6cc5);if(-0x1===_0x310476)return!0x1;let _0x4e77a7=!0x1;const _0x333706=this[_0x2a5755(0x153)][_0x310476];return _0x2a5755(0x143)!==_0x333706[_0x2a5755(0x17f)][_0x2a5755(0x169)][_0x2a5755(0x173)]&&(_0x34d3cb[_0x2a5755(0x1a3)](_0x333706[_0x2a5755(0x17f)]),_0x4e77a7=!0x0),this[_0x2a5755(0x153)][_0x2a5755(0x179)](_0x310476,0x1),this[_0x2a5755(0x189)](_0x34d3cb,_0x310476)&&(_0x4e77a7=!0x0),_0x4e77a7;}[_0x1f2cf1(0x14d)](_0x4c3b9f,_0x1a8b78){const _0x14e1b4=_0x1f2cf1,_0xd980be=_0x1a8b78[_0x14e1b4(0x182)](_0x14e1b4(0x154)),_0x54b64b=this[_0x14e1b4(0x153)][_0x14e1b4(0x15f)](_0x56f0c2=>_0x56f0c2['id']===_0xd980be),_0x52fd4e=this[_0x14e1b4(0x153)][_0x54b64b];let _0x582611=!0x1;_0x52fd4e[_0x14e1b4(0x17d)]=_0x1a8b78,this[_0x14e1b4(0x153)][_0x14e1b4(0x179)](_0x54b64b,0x1);const _0x3d7bd1=I(this[_0x14e1b4(0x1a0)][_0x14e1b4(0x15a)],this[_0x14e1b4(0x153)],_0x1a8b78);return this[_0x14e1b4(0x153)][_0x14e1b4(0x179)](_0x3d7bd1,0x0,_0x52fd4e),this[_0x14e1b4(0x189)](_0x4c3b9f,Math[_0x14e1b4(0x148)](_0x54b64b,_0x3d7bd1))&&(_0x582611=!0x0),_0x582611;}[_0x1f2cf1(0x178)](_0x3a81e2,_0x111a83){const _0x3a922c=_0x1f2cf1;if(!this[_0x3a922c(0x168)])return!0x1;const _0x3b0b8e=this[_0x3a922c(0x153)][_0x111a83];let _0x173696;return _0x173696=this[_0x3a922c(0x144)]?this[_0x3a922c(0x144)]({'footnote':_0x3b0b8e,'container':this[_0x3a922c(0x168)],'digits':String(this[_0x3a922c(0x153)][_0x3a922c(0x183)])[_0x3a922c(0x183)],'value':_0x111a83+0x1}):String(_0x111a83+0x1),_0x3b0b8e[_0x3a922c(0x17d)][_0x3a922c(0x182)](_0x3a922c(0x191))!=_0x173696&&(_0x3a81e2[_0x3a922c(0x18e)](_0x3a922c(0x191),_0x173696,_0x3b0b8e[_0x3a922c(0x17d)]),!0x0);}[_0x1f2cf1(0x156)](_0xf16b74){const _0x52f4e1=_0x1f2cf1;if(!this[_0x52f4e1(0x168)]||this[_0x52f4e1(0x153)][_0x52f4e1(0x183)]<0x2)return!0x1;if(function(_0x368b8c,_0x53985c){const _0x3dfd7a=_0x52f4e1;if(_0x368b8c[_0x3dfd7a(0x183)]!==_0x53985c[_0x3dfd7a(0x183)])return!0x1;for(let _0x23f8e2=0x0;_0x23f8e2<_0x368b8c[_0x3dfd7a(0x183)];_0x23f8e2++)if(_0x368b8c[_0x23f8e2]!==_0x53985c[_0x23f8e2])return!0x1;return!0x0;}(this[_0x52f4e1(0x153)][_0x52f4e1(0x17c)](_0x1bf63b=>_0x1bf63b['id']),Array[_0x52f4e1(0x172)](this[_0x52f4e1(0x168)][_0x52f4e1(0x162)]())[_0x52f4e1(0x17c)](_0x4b3478=>_0x4b3478[_0x52f4e1(0x182)](_0x52f4e1(0x154)))))return!0x1;let _0x39829d=!0x1;for(let _0x2d4c42=0x0;_0x2d4c42<this[_0x52f4e1(0x153)][_0x52f4e1(0x183)];_0x2d4c42++){const _0x2290ed=this[_0x52f4e1(0x153)][_0x2d4c42],_0xf75a8f=_0xf16b74[_0x52f4e1(0x18b)](_0x2290ed[_0x52f4e1(0x17f)]),_0x1c4daa=_0xf16b74[_0x52f4e1(0x17a)](this[_0x52f4e1(0x168)],_0x2d4c42);_0xf75a8f[_0x52f4e1(0x164)](_0x1c4daa)||(_0xf16b74[_0x52f4e1(0x15d)](_0xf16b74[_0x52f4e1(0x19d)](_0x2290ed[_0x52f4e1(0x17f)]),_0x1c4daa),_0x39829d=!0x0);}return _0x39829d;}[_0x1f2cf1(0x16d)](_0x3d2df6){const _0xbc3377=_0x1f2cf1;if(!this[_0xbc3377(0x153)][_0xbc3377(0x183)])return!0x1;const {model:_0x1a137b}=this[_0xbc3377(0x1a0)];let _0x253ed4=!0x1;for(let _0x42eef1=0x0;_0x42eef1<this[_0xbc3377(0x153)][_0xbc3377(0x183)]-0x1;_0x42eef1++){const _0xb12190=this[_0xbc3377(0x153)][_0x42eef1],_0x2b8c6a=this[_0xbc3377(0x153)][_0x42eef1+0x1],_0x361276=_0x1a137b[_0xbc3377(0x18b)](_0xb12190[_0xbc3377(0x17d)]),_0x3c5c3=_0x1a137b[_0xbc3377(0x18b)](_0x2b8c6a[_0xbc3377(0x17d)]);_0xbc3377(0x161)===_0x361276[_0xbc3377(0x181)](_0x3c5c3)&&(this[_0xbc3377(0x14d)](_0x3d2df6,_0xb12190[_0xbc3377(0x17d)]),_0x42eef1=-0x1,_0x253ed4=!0x0);}return _0x253ed4;}}function _(_0x3e0b5c,_0x2d7b2d,_0x69c810){const _0x487a5b=_0x1f2cf1;if(_0x69c810[_0x487a5b(0x175)])return!0x1;const _0x50aa95=_0x2d7b2d?_0x487a5b(0x13f):_0x487a5b(0x194);return _0x3e0b5c[_0x487a5b(0x14e)](_0x3e0b5c[_0x487a5b(0x16f)](_0x50aa95),_0x69c810),!0x0;}function I(_0x18d619,_0x3c6a7c,_0x55b905){const _0x22518d=_0x1f2cf1;if(0x0===_0x3c6a7c[_0x22518d(0x183)])return 0x0;const _0x261ab0=_0x18d619[_0x22518d(0x18b)](_0x55b905);for(let _0x523e32=0x0;_0x523e32<_0x3c6a7c[_0x22518d(0x183)];_0x523e32++){const _0x5b72a5=_0x3c6a7c[_0x523e32],_0x1d53f0=_0x18d619[_0x22518d(0x18b)](_0x5b72a5[_0x22518d(0x17d)]);if(_0x22518d(0x190)===_0x261ab0[_0x22518d(0x181)](_0x1d53f0))return _0x523e32;}const _0x14b024=_0x55b905[_0x22518d(0x169)];let _0x31d7c7=-0x1;for(let _0x195b88=_0x3c6a7c[_0x22518d(0x183)]-0x1;_0x195b88>=0x0;_0x195b88--)if(_0x3c6a7c[_0x195b88][_0x22518d(0x17d)][_0x22518d(0x169)]===_0x14b024){_0x31d7c7=_0x195b88;break;}if(-0x1!==_0x31d7c7)return _0x31d7c7+0x1;const _0x476026=_0x18d619[_0x22518d(0x1a2)][_0x22518d(0x150)](),_0x5e5ade=_0x476026[_0x22518d(0x199)](_0x14b024[_0x22518d(0x173)]),_0x548607=_0x476026[_0x5e5ade+0x1];if(_0x548607){for(let _0x4d214c=0x0;_0x4d214c<_0x3c6a7c[_0x22518d(0x183)];_0x4d214c++)if(_0x3c6a7c[_0x4d214c][_0x22518d(0x17d)][_0x22518d(0x169)][_0x22518d(0x173)]===_0x548607)return _0x4d214c;}return _0x3c6a7c[_0x22518d(0x183)];}
|
|
23
|
+
function _0x26b9(){const _0x3e2e6=['set','has','reset','13012mNoIBF','_footnotesDefinitions','move','filter','differ','_sortFootnoteDefinitions','isOfficialPlugin','isEqual','map','document','add','push','definition','registerPostFixer','_ensureFootnotesReferencesHaveProperOrder','createRangeIn','654600tNHQsz','588rUSEFY','getChanges','$graveyard','getRootNames','144aLSHUM','reference','model','splice','_footnoteFormatter','min','createRangeOn','_footnotes','159ADvvFD','footnoteDefinition','FootnotesTracker','_footnoteRefsTracker','footnoteInlineContent','pluginName','enqueueChange','350077qTmrdc','footnotes.multiBlock','after','editor','createPositionAt','getChildren','createPositionBefore','end','rootName','childCount','footnoteCounter','72807NPPGoq','setAttribute','getFootnotesFormatter','change:data','indexOf','low','from','remove','isPremiumPlugin','before','_handleFootnoteDefinitionsChanges','18mPCItM','createElement','73348Szimwn','parent','append','_handleFootnotesDefinitionsObjectChanges','length','footnotesDefinitions','getFootnotes','getFootnote','_handleFootnotesDefinitionsObjectSync','_insertEmptyFootnotesDefinitionsContainer','listenTo','some','footnoteId','unshift','24puAGun','_ensureFootnotesDefinitionsContainerExists','_updateFootnoteRefCounter','config','findIndex','_handleInsertedFootnoteReference','953815PwlAzJ','10JpijQX','setFootnoteFormatter','_updateFootnotesCounters','root','compareWith','_footnoteDefsTracker','155510pSevtr','footnoteRef','_footnoteDefsContainerTracker','112IdstGq','_handleRemoveFootnoteReferenceById','high','paragraph','_handleFootnoteReferencesChanges','singleton','find','get','init','insert','_handleMovedFootnoteReference','getAttribute','getFootnotesDefinitionsObjectElement'];_0x26b9=function(){return _0x3e2e6;};return _0x26b9();}const _0x318102=_0x3c8d;(function(_0x14845d,_0x25d61b){const _0x222ef2=_0x3c8d,_0x4ba233=_0x14845d();while(!![]){try{const _0x436abd=-parseInt(_0x222ef2(0x1c0))/0x1*(parseInt(_0x222ef2(0x1ba))/0x2)+-parseInt(_0x222ef2(0x186))/0x3*(parseInt(_0x222ef2(0x169))/0x4)+parseInt(_0x222ef2(0x1b9))/0x5*(parseInt(_0x222ef2(0x1b3))/0x6)+-parseInt(_0x222ef2(0x198))/0x7*(-parseInt(_0x222ef2(0x17e))/0x8)+-parseInt(_0x222ef2(0x1a3))/0x9*(parseInt(_0x222ef2(0x179))/0xa)+-parseInt(_0x222ef2(0x1a5))/0xb*(-parseInt(_0x222ef2(0x17a))/0xc)+-parseInt(_0x222ef2(0x18d))/0xd*(-parseInt(_0x222ef2(0x1c3))/0xe);if(_0x436abd===_0x25d61b)break;else _0x4ba233['push'](_0x4ba233['shift']());}catch(_0x250e08){_0x4ba233['push'](_0x4ba233['shift']());}}}(_0x26b9,0x647a3));import{Plugin as _0x27c20d}from'ckeditor5/src/core.js';import{ModelElementTracker as _0xdcff85}from'./modelelementtracker.js';export class FootnotesTracker extends _0x27c20d{[_0x318102(0x185)]=[];[_0x318102(0x16a)]=null;[_0x318102(0x182)]=null;[_0x318102(0x1c2)];[_0x318102(0x189)];[_0x318102(0x1bf)];static get[_0x318102(0x18b)](){const _0x1a4f7b=_0x318102;return _0x1a4f7b(0x188);}static get[_0x318102(0x16f)](){return!0x0;}static get[_0x318102(0x1a0)](){return!0x0;}constructor(_0x499a87){const _0x584739=_0x318102;super(_0x499a87),this[_0x584739(0x1c2)]=new _0xdcff85(this[_0x584739(0x190)][_0x584739(0x180)],{'elementName':_0x584739(0x1aa),'getElementKey':()=>_0x584739(0x15e)}),this[_0x584739(0x189)]=new _0xdcff85(this[_0x584739(0x190)][_0x584739(0x180)],{'elementName':_0x584739(0x1c1),'getElementKey':_0x2d9080=>_0x2d9080[_0x584739(0x164)](_0x584739(0x1b1))}),this[_0x584739(0x1bf)]=new _0xdcff85(this[_0x584739(0x190)][_0x584739(0x180)],{'elementName':_0x584739(0x187),'getElementKey':_0x126d49=>_0x126d49[_0x584739(0x164)](_0x584739(0x1b1))});}[_0x318102(0x161)](){const _0x1b2e53=_0x318102,{editor:_0x3735d1}=this,{model:_0x3b9452,data:_0x53a7d5}=_0x3735d1;_0x3b9452[_0x1b2e53(0x172)][_0x1b2e53(0x176)](_0xe8b795=>{const _0x3e9e24=_0x1b2e53,_0x26bec0=_0x3b9452[_0x3e9e24(0x172)][_0x3e9e24(0x16d)][_0x3e9e24(0x17b)]();let _0xdfcd99=!0x1;return this[_0x3e9e24(0x1a8)](_0xe8b795,_0x26bec0)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x1a2)](_0xe8b795,_0x26bec0)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x15d)](_0xe8b795,_0x26bec0)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x177)](_0xe8b795)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x1ad)](_0xe8b795)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x16e)](_0xe8b795)&&(_0xdfcd99=!0x0),_0xdfcd99;}),this[_0x1b2e53(0x1af)](_0x3b9452[_0x1b2e53(0x172)],_0x1b2e53(0x19b),()=>{const _0x45456c=_0x1b2e53;_0x3b9452[_0x45456c(0x18c)]({'isUndoable':!0x1},_0x1f1722=>{const _0xc0996e=_0x45456c;this[_0xc0996e(0x1b4)](_0x1f1722);});},{'priority':_0x1b2e53(0x19d)}),this[_0x1b2e53(0x1af)](_0x53a7d5,_0x1b2e53(0x166),()=>{const _0x529cc8=_0x1b2e53;this[_0x529cc8(0x185)]=[],this[_0x529cc8(0x1c2)][_0x529cc8(0x168)](),this[_0x529cc8(0x189)][_0x529cc8(0x168)](),this[_0x529cc8(0x1bf)][_0x529cc8(0x168)]();},{'priority':_0x1b2e53(0x1c5)});}[_0x318102(0x165)](){const _0x5ca803=_0x318102;return this[_0x5ca803(0x16a)];}[_0x318102(0x1ac)](_0x3dfe72){const _0x560054=_0x318102;return this[_0x560054(0x185)][_0x560054(0x15f)](_0xf21ab9=>_0xf21ab9['id']===_0x3dfe72)||null;}[_0x318102(0x1ab)](){const _0x1fdc3e=_0x318102;return Array[_0x1fdc3e(0x19e)](this[_0x1fdc3e(0x185)]);}[_0x318102(0x19a)](){const _0x4d0179=_0x318102;return this[_0x4d0179(0x182)];}[_0x318102(0x1bb)](_0x55c838){const _0x3bb711=_0x318102;this[_0x3bb711(0x182)]=_0x55c838;}[_0x318102(0x1bc)](_0x231380,_0x75cba=0x0){const _0x28c0d2=_0x318102;let _0x2c28d1=!0x1;for(let _0x5bf0a5=_0x75cba;_0x5bf0a5<this[_0x28c0d2(0x185)][_0x28c0d2(0x1a9)];_0x5bf0a5++)this[_0x28c0d2(0x1b5)](_0x231380,_0x5bf0a5)&&(_0x2c28d1=!0x0);return _0x2c28d1;}[_0x318102(0x1ae)](_0x3f9ca7,_0x204f43){const _0x1aa9ce=_0x318102,_0x38978a=_0x3f9ca7[_0x1aa9ce(0x1a4)](_0x1aa9ce(0x1aa),{});return _0x3f9ca7[_0x1aa9ce(0x1a7)](_0x38978a,_0x204f43),this[_0x1aa9ce(0x16a)]=_0x38978a,_0x38978a;}[_0x318102(0x1b4)](_0x522678){const _0x1ea60c=_0x318102;if(!this[_0x1ea60c(0x185)][_0x1ea60c(0x1a9)]||this[_0x1ea60c(0x16a)])return;const _0x4606ea=this[_0x1ea60c(0x185)][0x0][_0x1ea60c(0x17f)][_0x1ea60c(0x1bd)],_0x37b4f0=this[_0x1ea60c(0x1ae)](_0x522678,_0x4606ea);for(const _0x5c6d6e of this[_0x1ea60c(0x185)])_0x5c6d6e[_0x1ea60c(0x175)][_0x1ea60c(0x1a6)]||_0x522678[_0x1ea60c(0x162)](_0x5c6d6e[_0x1ea60c(0x175)],_0x37b4f0,_0x1ea60c(0x194));this[_0x1ea60c(0x1bc)](_0x522678);}[_0x318102(0x1a8)](_0xb86fde,_0x152c67){const _0x2af711=_0x318102;let _0x3c0a7c=!0x1;const {inserted:_0x407c02,removed:_0x2866fb,moved:_0x1319a8}=this[_0x2af711(0x1c2)][_0x2af711(0x17b)](_0x152c67);if(_0x1319a8[_0x2af711(0x1a9)]&&(this[_0x2af711(0x16a)]=_0x1319a8[0x0]),_0x407c02[_0x2af711(0x1a9)]){if(_0x407c02[_0x2af711(0x1a9)]>0x1||this[_0x2af711(0x16a)]&&_0x407c02[_0x2af711(0x1b0)](_0x3c06f0=>_0x3c06f0!==this[_0x2af711(0x16a)])){const _0x33db8a=_0xb86fde[_0x2af711(0x1a4)](_0x2af711(0x1aa),{}),_0x22e8bc=[];this[_0x2af711(0x16a)]&&_0x22e8bc[_0x2af711(0x174)](this[_0x2af711(0x16a)]),_0x22e8bc[_0x2af711(0x174)](..._0x407c02),_0xb86fde[_0x2af711(0x162)](_0x33db8a,_0x22e8bc[0x0],_0x2af711(0x1a1));for(const _0x294ef2 of _0x22e8bc)_0xb86fde[_0x2af711(0x16b)](_0xb86fde[_0x2af711(0x178)](_0x294ef2),_0xb86fde[_0x2af711(0x191)](_0x33db8a,_0x2af711(0x194))),_0xb86fde[_0x2af711(0x19f)](_0x294ef2);this[_0x2af711(0x16a)]=_0x33db8a,this[_0x2af711(0x1bc)](_0xb86fde),_0x3c0a7c=!0x0;}else this[_0x2af711(0x16a)]=_0x407c02[0x0];}if(_0x2866fb[_0x2af711(0x1a9)]&&_0x2af711(0x17c)===this[_0x2af711(0x16a)]?.[_0x2af711(0x1bd)][_0x2af711(0x195)]){for(const _0x481f62 of this[_0x2af711(0x185)])_0xb86fde[_0x2af711(0x19f)](_0x481f62[_0x2af711(0x17f)]),_0x3c0a7c=!0x0;this[_0x2af711(0x185)]=[],this[_0x2af711(0x16a)]=null;}return _0x3c0a7c;}[_0x318102(0x1a2)](_0x303d95,_0x1bea47){const _0x408632=_0x318102;let _0x26b683=!0x1;const _0x5abc49=this[_0x408632(0x190)][_0x408632(0x1b6)][_0x408632(0x160)](_0x408632(0x18e)),{inserted:_0xf512a2,moved:_0x30bbae}=this[_0x408632(0x1bf)][_0x408632(0x17b)](_0x1bea47);for(const _0x41c453 of[..._0x30bbae,..._0xf512a2]){const _0x1f8855=_0x41c453[_0x408632(0x164)](_0x408632(0x1b1)),_0x3b53cd=this[_0x408632(0x1ac)](_0x1f8855);_0x3b53cd&&(_0x3b53cd[_0x408632(0x175)]=_0x41c453),_(_0x303d95,_0x5abc49,_0x41c453)&&(_0x26b683=!0x0);}return _0x26b683;}[_0x318102(0x15d)](_0x46cf39,_0x2ca19d){const _0x35bb54=_0x318102;let _0x27d76b=!0x1;const {removed:_0x121f67,inserted:_0x391cea,moved:_0x4f839d}=this[_0x35bb54(0x189)][_0x35bb54(0x17b)](_0x2ca19d);for(const _0x497f4e of _0x121f67)this[_0x35bb54(0x1c4)](_0x46cf39,_0x497f4e)&&(_0x27d76b=!0x0);for(const _0x162408 of _0x391cea)this[_0x35bb54(0x1b8)](_0x46cf39,_0x162408)&&(_0x27d76b=!0x0);for(const _0x192f4f of _0x4f839d)this[_0x35bb54(0x163)](_0x46cf39,_0x192f4f)&&(_0x27d76b=!0x0);return _0x27d76b;}[_0x318102(0x1ad)](_0x37a3fe){const _0x3cf805=_0x318102;if(!this[_0x3cf805(0x16a)])return!0x1;let _0x43544f=!0x1;if(this[_0x3cf805(0x16a)][_0x3cf805(0x196)]!==this[_0x3cf805(0x185)][_0x3cf805(0x1a9)]){const _0x4efe10=[];for(const _0xd950f5 of this[_0x3cf805(0x16a)][_0x3cf805(0x192)]()){const _0x36f957=_0xd950f5[_0x3cf805(0x164)](_0x3cf805(0x1b1));this[_0x3cf805(0x1ac)](_0x36f957)||(_0x4efe10[_0x3cf805(0x1b2)](_0xd950f5),_0x43544f=!0x0);}for(const _0x39d98a of _0x4efe10)_0x37a3fe[_0x3cf805(0x19f)](_0x39d98a);}const _0x4a6db4=new Set(),_0x43b704=[];for(const _0x1c1deb of this[_0x3cf805(0x16a)][_0x3cf805(0x192)]()){const _0x44be91=_0x1c1deb[_0x3cf805(0x164)](_0x3cf805(0x1b1));_0x4a6db4[_0x3cf805(0x167)](_0x44be91)?(_0x43b704[_0x3cf805(0x1b2)](_0x1c1deb),_0x43544f=!0x0):_0x4a6db4[_0x3cf805(0x173)](_0x44be91);}for(const _0x2e20fb of _0x43b704)_0x37a3fe[_0x3cf805(0x19f)](_0x2e20fb);return this[_0x3cf805(0x16a)][_0x3cf805(0x196)]||(_0x37a3fe[_0x3cf805(0x19f)](this[_0x3cf805(0x16a)]),this[_0x3cf805(0x16a)]=null,_0x43544f=!0x0),_0x43544f;}[_0x318102(0x1b8)](_0x14118f,_0x1c0d37){const _0x5ef717=_0x318102;if(this[_0x5ef717(0x185)][_0x5ef717(0x15f)](_0x4011d3=>_0x4011d3[_0x5ef717(0x17f)]===_0x1c0d37))return!0x1;let _0x176c2b=!0x1;const _0x287504=_0x1c0d37[_0x5ef717(0x164)](_0x5ef717(0x1b1)),_0x37f1b0=this[_0x5ef717(0x1ac)](_0x287504);_0x37f1b0&&(_0x14118f[_0x5ef717(0x19f)](_0x37f1b0[_0x5ef717(0x17f)]),this[_0x5ef717(0x185)]=this[_0x5ef717(0x185)][_0x5ef717(0x16c)](_0x4f450a=>_0x4f450a['id']!==_0x287504),_0x176c2b=!0x0);let _0x2cefbb=this[_0x5ef717(0x16a)]?function(_0x57e1be,_0x33158d){const _0x56c8dc=_0x5ef717;for(const _0x280f5f of _0x57e1be[_0x56c8dc(0x192)]())if(_0x280f5f[_0x56c8dc(0x164)](_0x56c8dc(0x1b1))===_0x33158d)return _0x280f5f;return null;}(this[_0x5ef717(0x16a)],_0x287504):null;_0x2cefbb||(_0x2cefbb=_0x14118f[_0x5ef717(0x1a4)](_0x5ef717(0x187),{'footnoteId':_0x287504}),this[_0x5ef717(0x16a)]&&(_0x14118f[_0x5ef717(0x162)](_0x2cefbb,this[_0x5ef717(0x16a)],_0x5ef717(0x194)),_0x176c2b=!0x0));const _0x4a853d={'id':_0x287504,'reference':_0x1c0d37,'definition':_0x2cefbb},_0x7c6ce5=I(this[_0x5ef717(0x190)][_0x5ef717(0x180)],this[_0x5ef717(0x185)],_0x1c0d37);return this[_0x5ef717(0x185)][_0x5ef717(0x181)](_0x7c6ce5,0x0,_0x4a853d),this[_0x5ef717(0x1bc)](_0x14118f,_0x7c6ce5)&&(_0x176c2b=!0x0),_0x176c2b;}[_0x318102(0x1c4)](_0x3e25b3,_0x489afb){const _0x38891b=_0x318102,_0xfcd36d=this[_0x38891b(0x185)][_0x38891b(0x1b7)](_0x582bcc=>_0x582bcc['id']===_0x489afb);if(-0x1===_0xfcd36d)return!0x1;let _0x29adb3=!0x1;const _0x3f2251=this[_0x38891b(0x185)][_0xfcd36d];return _0x38891b(0x17c)!==_0x3f2251[_0x38891b(0x175)][_0x38891b(0x1bd)][_0x38891b(0x195)]&&(_0x3e25b3[_0x38891b(0x19f)](_0x3f2251[_0x38891b(0x175)]),_0x29adb3=!0x0),this[_0x38891b(0x185)][_0x38891b(0x181)](_0xfcd36d,0x1),this[_0x38891b(0x1bc)](_0x3e25b3,_0xfcd36d)&&(_0x29adb3=!0x0),_0x29adb3;}[_0x318102(0x163)](_0x4d73c1,_0x5af4fb){const _0xbb4969=_0x318102,_0x2b0431=_0x5af4fb[_0xbb4969(0x164)](_0xbb4969(0x1b1)),_0x5e810e=this[_0xbb4969(0x185)][_0xbb4969(0x1b7)](_0x59eeed=>_0x59eeed['id']===_0x2b0431),_0x4c3b6b=this[_0xbb4969(0x185)][_0x5e810e];let _0x324f56=!0x1;_0x4c3b6b[_0xbb4969(0x17f)]=_0x5af4fb,this[_0xbb4969(0x185)][_0xbb4969(0x181)](_0x5e810e,0x1);const _0x52b5d6=I(this[_0xbb4969(0x190)][_0xbb4969(0x180)],this[_0xbb4969(0x185)],_0x5af4fb);return this[_0xbb4969(0x185)][_0xbb4969(0x181)](_0x52b5d6,0x0,_0x4c3b6b),this[_0xbb4969(0x1bc)](_0x4d73c1,Math[_0xbb4969(0x183)](_0x5e810e,_0x52b5d6))&&(_0x324f56=!0x0),_0x324f56;}[_0x318102(0x1b5)](_0x1ccaf3,_0x8cfe40){const _0x38f17c=_0x318102;if(!this[_0x38f17c(0x16a)])return!0x1;const _0x3fd042=this[_0x38f17c(0x185)][_0x8cfe40];let _0x2b88c3;return _0x2b88c3=this[_0x38f17c(0x182)]?this[_0x38f17c(0x182)]({'footnote':_0x3fd042,'container':this[_0x38f17c(0x16a)],'digits':String(this[_0x38f17c(0x185)][_0x38f17c(0x1a9)])[_0x38f17c(0x1a9)],'value':_0x8cfe40+0x1}):String(_0x8cfe40+0x1),_0x3fd042[_0x38f17c(0x17f)][_0x38f17c(0x164)](_0x38f17c(0x197))!=_0x2b88c3&&(_0x1ccaf3[_0x38f17c(0x199)](_0x38f17c(0x197),_0x2b88c3,_0x3fd042[_0x38f17c(0x17f)]),!0x0);}[_0x318102(0x16e)](_0x47ca1b){const _0x2049fd=_0x318102;if(!this[_0x2049fd(0x16a)]||this[_0x2049fd(0x185)][_0x2049fd(0x1a9)]<0x2)return!0x1;if(function(_0x473537,_0x38769f){const _0x7beb0b=_0x2049fd;if(_0x473537[_0x7beb0b(0x1a9)]!==_0x38769f[_0x7beb0b(0x1a9)])return!0x1;for(let _0x2afe1d=0x0;_0x2afe1d<_0x473537[_0x7beb0b(0x1a9)];_0x2afe1d++)if(_0x473537[_0x2afe1d]!==_0x38769f[_0x2afe1d])return!0x1;return!0x0;}(this[_0x2049fd(0x185)][_0x2049fd(0x171)](_0x45f673=>_0x45f673['id']),Array[_0x2049fd(0x19e)](this[_0x2049fd(0x16a)][_0x2049fd(0x192)]())[_0x2049fd(0x171)](_0x69f61c=>_0x69f61c[_0x2049fd(0x164)](_0x2049fd(0x1b1)))))return!0x1;let _0x1332a5=!0x1;for(let _0x166b21=0x0;_0x166b21<this[_0x2049fd(0x185)][_0x2049fd(0x1a9)];_0x166b21++){const _0x439ff5=this[_0x2049fd(0x185)][_0x166b21],_0x3542a7=_0x47ca1b[_0x2049fd(0x193)](_0x439ff5[_0x2049fd(0x175)]),_0x227156=_0x47ca1b[_0x2049fd(0x191)](this[_0x2049fd(0x16a)],_0x166b21);_0x3542a7[_0x2049fd(0x170)](_0x227156)||(_0x47ca1b[_0x2049fd(0x16b)](_0x47ca1b[_0x2049fd(0x184)](_0x439ff5[_0x2049fd(0x175)]),_0x227156),_0x1332a5=!0x0);}return _0x1332a5;}[_0x318102(0x177)](_0x65586a){const _0x447508=_0x318102;if(!this[_0x447508(0x185)][_0x447508(0x1a9)])return!0x1;const {model:_0x545d92}=this[_0x447508(0x190)];let _0x560261=!0x1;for(let _0x5345af=0x0;_0x5345af<this[_0x447508(0x185)][_0x447508(0x1a9)]-0x1;_0x5345af++){const _0x19a204=this[_0x447508(0x185)][_0x5345af],_0x5393a6=this[_0x447508(0x185)][_0x5345af+0x1],_0x13b90a=_0x545d92[_0x447508(0x193)](_0x19a204[_0x447508(0x17f)]),_0xd725cb=_0x545d92[_0x447508(0x193)](_0x5393a6[_0x447508(0x17f)]);_0x447508(0x18f)===_0x13b90a[_0x447508(0x1be)](_0xd725cb)&&(this[_0x447508(0x163)](_0x65586a,_0x19a204[_0x447508(0x17f)]),_0x5345af=-0x1,_0x560261=!0x0);}return _0x560261;}}function _(_0x42d242,_0x56839a,_0x101d30){const _0x3a8ffa=_0x318102;if(_0x101d30[_0x3a8ffa(0x196)])return!0x1;const _0x222665=_0x56839a?_0x3a8ffa(0x1c6):_0x3a8ffa(0x18a);return _0x42d242[_0x3a8ffa(0x162)](_0x42d242[_0x3a8ffa(0x1a4)](_0x222665),_0x101d30),!0x0;}function _0x3c8d(_0x28f00c,_0x329fdf){const _0x26b9b9=_0x26b9();return _0x3c8d=function(_0x3c8d41,_0x299e69){_0x3c8d41=_0x3c8d41-0x15d;let _0x261802=_0x26b9b9[_0x3c8d41];return _0x261802;},_0x3c8d(_0x28f00c,_0x329fdf);}function I(_0x252bc3,_0x547a30,_0x514f68){const _0x568932=_0x318102;if(0x0===_0x547a30[_0x568932(0x1a9)])return 0x0;const _0x503e8d=_0x252bc3[_0x568932(0x193)](_0x514f68);for(let _0x31cfcb=0x0;_0x31cfcb<_0x547a30[_0x568932(0x1a9)];_0x31cfcb++){const _0x241007=_0x547a30[_0x31cfcb],_0x101082=_0x252bc3[_0x568932(0x193)](_0x241007[_0x568932(0x17f)]);if(_0x568932(0x1a1)===_0x503e8d[_0x568932(0x1be)](_0x101082))return _0x31cfcb;}const _0x5c6265=_0x514f68[_0x568932(0x1bd)];let _0x19c2ef=-0x1;for(let _0x5a530a=_0x547a30[_0x568932(0x1a9)]-0x1;_0x5a530a>=0x0;_0x5a530a--)if(_0x547a30[_0x5a530a][_0x568932(0x17f)][_0x568932(0x1bd)]===_0x5c6265){_0x19c2ef=_0x5a530a;break;}if(-0x1!==_0x19c2ef)return _0x19c2ef+0x1;const _0x2a5686=_0x252bc3[_0x568932(0x172)][_0x568932(0x17d)](),_0x5a55a0=_0x2a5686[_0x568932(0x19c)](_0x5c6265[_0x568932(0x195)]),_0x129e88=_0x2a5686[_0x5a55a0+0x1];if(_0x129e88){for(let _0x17cb6d=0x0;_0x17cb6d<_0x547a30[_0x568932(0x1a9)];_0x17cb6d++)if(_0x547a30[_0x17cb6d][_0x568932(0x17f)][_0x568932(0x1bd)][_0x568932(0x195)]===_0x129e88)return _0x17cb6d;}return _0x547a30[_0x568932(0x1a9)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x73c6df,MenuBarMenuListItemButtonView as _0x3e4e18}from'ckeditor5/src/ui.js';import{Plugin as _0x4cbc6f}from'ckeditor5/src/core.js';import{IconFootnote as _0x3e51f0}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x4cbc6f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4569c0}=this,{componentFactory:_0x35daf6}=_0x4569c0['ui'];_0x35daf6['add']('insertFootnote',v(_0x4569c0,_0x73c6df)),_0x35daf6['add']('menuBar:insertFootnote',v(_0x4569c0,_0x3e4e18)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ffdac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4cbd6b;for(const _0x4a311a in _0x2ffdac){const _0x507d08=_0x4a311a,_0xa776ec=_0x2ffdac[_0x507d08];if('footnotesLicenseKeyValid'==_0xa776ec||'footnotesLicenseKeyInvalid'==_0xa776ec||'footnotesLicenseKeyExpired'==_0xa776ec||'footnotesLicenseKeyDomainLimit'==_0xa776ec||'footnotesLicenseKeyNotAllowed'==_0xa776ec||'footnotesLicenseKeyEvaluationLimit'==_0xa776ec||'footnotesLicenseKeyTrialLimit'==_0xa776ec||'footnotesLicenseKeyUsageLimit'==_0xa776ec){delete _0x2ffdac[_0x507d08],_0x4cbd6b=_0xa776ec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x3826d0,_0x570a5c){const _0x5457c8=_0x3826d0['commands']['get']('insertFootnote');return _0x7eeea5=>{const {t:t}=_0x7eeea5,_0x1f50a6=new _0x570a5c(_0x7eeea5),_0x174fd2=_0x1f50a6 instanceof _0x3e4e18;return _0x1f50a6['bind']('isEnabled')['to'](_0x5457c8,'isEnabled'),_0x1f50a6['set']({'label':t(_0x174fd2?'Footnote':'Insert\x20footnote'),'icon':_0x3e51f0,'tooltip':!0x0}),_0x1f50a6['on']('execute',()=>{_0x5457c8['execute'](),_0x3826d0['editing']['view']['focus']();}),_0x1f50a6;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1ca423,_0x5ed4a1){var _0x450571=_0x5bf4,_0x1cee1d=_0x1ca423();while(!![]){try{var _0x24a5e2=parseInt(_0x450571(0xcd))/0x1*(parseInt(_0x450571(0xd0))/0x2)+-parseInt(_0x450571(0xca))/0x3*(-parseInt(_0x450571(0xc9))/0x4)+-parseInt(_0x450571(0xd1))/0x5+parseInt(_0x450571(0xcf))/0x6*(parseInt(_0x450571(0xce))/0x7)+parseInt(_0x450571(0xc8))/0x8+parseInt(_0x450571(0xc7))/0x9+parseInt(_0x450571(0xcb))/0xa*(-parseInt(_0x450571(0xcc))/0xb);if(_0x24a5e2===_0x5ed4a1)break;else _0x1cee1d['push'](_0x1cee1d['shift']());}catch(_0xdf9b32){_0x1cee1d['push'](_0x1cee1d['shift']());}}}(_0x4daf,0xe9770));import'./augmentation.js';function _0x4daf(){var _0x60e415=['24912ECsOCS','868310edOazP','440SwlkUR','981756pUnYkf','10505929qjGfIK','6AtvRxw','2KayYnH','4035990YmCMaz','4213296bcZQZL','6529240Nqsygr','708ZOykDT'];_0x4daf=function(){return _0x60e415;};return _0x4daf();}export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';function _0x5bf4(_0x5b9913,_0x5128e9){var _0x4daf78=_0x4daf();return _0x5bf4=function(_0x5bf467,_0x5aaef7){_0x5bf467=_0x5bf467-0xc7;var _0x235363=_0x4daf78[_0x5bf467];return _0x235363;},_0x5bf4(_0x5b9913,_0x5128e9);}export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -15,6 +15,10 @@ export declare class ModelElementTracker {
|
|
|
15
15
|
* @param config Configuration for tracking specific element type.
|
|
16
16
|
*/
|
|
17
17
|
constructor(model: Model, config: TrackElementChangesConfig);
|
|
18
|
+
/**
|
|
19
|
+
* Resets the tracker, clearing all tracked elements.
|
|
20
|
+
*/
|
|
21
|
+
reset(): void;
|
|
18
22
|
/**
|
|
19
23
|
* Analyzes document changes and returns the set of changes for the tracked element type.
|
|
20
24
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25668b=_0x24c6;(function(_0x1e0f0a,_0x543c40){const _0x466933=_0x24c6,_0x470697=_0x1e0f0a();while(!![]){try{const _0x25f295=parseInt(_0x466933(0x1cc))/0x1*(-parseInt(_0x466933(0x1b4))/0x2)+-parseInt(_0x466933(0x1d3))/0x3*(-parseInt(_0x466933(0x1c6))/0x4)+parseInt(_0x466933(0x1d2))/0x5*(-parseInt(_0x466933(0x1d6))/0x6)+-parseInt(_0x466933(0x1d4))/0x7+-parseInt(_0x466933(0x1bf))/0x8+parseInt(_0x466933(0x1c5))/0x9+-parseInt(_0x466933(0x1bb))/0xa*(-parseInt(_0x466933(0x1b0))/0xb);if(_0x25f295===_0x543c40)break;else _0x470697['push'](_0x470697['shift']());}catch(_0x26c700){_0x470697['push'](_0x470697['shift']());}}}(_0x4480,0x4b98e));function _0x4480(){const _0x3a286c=['1987443mGKNwE','96768GWXPSd','nodeAfter','elementName','add','_model','from','3695CEveea','_elementName','reset','delete','attributes','_getElementKey','5LiXiwq','15ChFttD','2229115AJOybm','insert','2227074ZnXqsW','type','slice','length','name','$text','position','13511575xYfwTY','remove','$graveyard','rootName','248fVjuRh','getElementKey','flat','get','root','push','createRangeOn','10NrhGRk','getChanges','_trackedElements','getItems','901296ucPNfX','element','set','has','values','clear'];_0x4480=function(){return _0x3a286c;};return _0x4480();}function _0x24c6(_0x5d0eb7,_0x1ef531){const _0x4480de=_0x4480();return _0x24c6=function(_0x24c6b7,_0x1b3b06){_0x24c6b7=_0x24c6b7-0x1b0;let _0x4cd9a1=_0x4480de[_0x24c6b7];return _0x4cd9a1;},_0x24c6(_0x5d0eb7,_0x1ef531);}export class ModelElementTracker{[_0x25668b(0x1ca)];[_0x25668b(0x1cd)];[_0x25668b(0x1d1)];[_0x25668b(0x1bd)]=new Map();constructor(_0x2baba9,_0x46acf3){const _0x22697f=_0x25668b;this[_0x22697f(0x1ca)]=_0x2baba9,this[_0x22697f(0x1cd)]=_0x46acf3[_0x22697f(0x1c8)],this[_0x22697f(0x1d1)]=_0x46acf3[_0x22697f(0x1b5)];}[_0x25668b(0x1ce)](){const _0x55276f=_0x25668b;this[_0x55276f(0x1bd)][_0x55276f(0x1c4)]();}[_0x25668b(0x1bc)](_0x24aca9){const _0x146ae2=_0x25668b,_0x3d7c34=new Set(),_0x461c26=new Map();for(const _0x21efd4 of _0x24aca9){if(_0x146ae2(0x1d5)===_0x21efd4[_0x146ae2(0x1d7)]&&_0x146ae2(0x1db)!==_0x21efd4[_0x146ae2(0x1da)]&&_0x21efd4[_0x146ae2(0x1dc)][_0x146ae2(0x1c7)]){const _0x5c3497=this[_0x146ae2(0x1ca)][_0x146ae2(0x1ba)](_0x21efd4[_0x146ae2(0x1dc)][_0x146ae2(0x1c7)]);for(const _0x4ca00e of _0x5c3497[_0x146ae2(0x1be)]()){if(!_0x4ca00e['is'](_0x146ae2(0x1c0),this[_0x146ae2(0x1cd)]))continue;const _0x42ba1b=this[_0x146ae2(0x1d1)](_0x4ca00e);_0x461c26[_0x146ae2(0x1c2)](_0x42ba1b)||_0x461c26[_0x146ae2(0x1c1)](_0x42ba1b,[]),_0x461c26[_0x146ae2(0x1b7)](_0x42ba1b)[_0x146ae2(0x1b9)](_0x4ca00e);}}if(_0x146ae2(0x1b1)===_0x21efd4[_0x146ae2(0x1d7)]&&_0x21efd4[_0x146ae2(0x1da)]===this[_0x146ae2(0x1cd)]){const _0x493ea3=this[_0x146ae2(0x1d1)]({'getAttribute':_0x2755fb=>_0x21efd4[_0x146ae2(0x1d0)][_0x146ae2(0x1b7)](_0x2755fb)});_0x3d7c34[_0x146ae2(0x1c9)](_0x493ea3);}}for(const [_0x3e339e,_0x3b1702]of this[_0x146ae2(0x1bd)])_0x146ae2(0x1b2)===_0x3b1702[_0x146ae2(0x1b8)][_0x146ae2(0x1b3)]&&_0x3d7c34[_0x146ae2(0x1c9)](_0x3e339e);for(const _0x5b5731 of _0x3d7c34)this[_0x146ae2(0x1bd)][_0x146ae2(0x1cf)](_0x5b5731);for(const [_0xa692a4,_0x36f63d]of _0x461c26)this[_0x146ae2(0x1bd)][_0x146ae2(0x1c1)](_0xa692a4,_0x36f63d[_0x36f63d[_0x146ae2(0x1d9)]-0x1]);const _0x46cc80=new Set();for(const [_0x21ef15,_0x2f6a05]of _0x461c26)_0x3d7c34[_0x146ae2(0x1c2)](_0x21ef15)&&(_0x46cc80[_0x146ae2(0x1c9)](_0x2f6a05[0x0]),_0x2f6a05[_0x146ae2(0x1d9)]>0x1?_0x461c26[_0x146ae2(0x1c1)](_0x21ef15,_0x2f6a05[_0x146ae2(0x1d8)](0x1)):_0x461c26[_0x146ae2(0x1cf)](_0x21ef15),_0x3d7c34[_0x146ae2(0x1cf)](_0x21ef15));return{'removed':Array[_0x146ae2(0x1cb)](_0x3d7c34),'inserted':Array[_0x146ae2(0x1cb)](_0x461c26[_0x146ae2(0x1c3)]())[_0x146ae2(0x1b6)](),'moved':Array[_0x146ae2(0x1cb)](_0x46cc80)};}}
|