@ckeditor/ckeditor5-footnotes 47.6.2-alpha.1 → 47.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x454380}from'ckeditor5/src/core.js';import{isWidget as _0x91ceb2,toWidget as _0x349d2f,toWidgetEditable as _0x5c12bd}from'ckeditor5/src/widget.js';import{uid as _0x16dcfa}from'ckeditor5/src/utils.js';import{PointerObserver as _0xf0aeef,ClickObserver as _0x30e9f9}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1070a9}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xf436f9}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x454380{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1070a9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2dc55f}=this;_0x2dc55f['config']['define']('footnotes.multiBlock',!0x0),_0x2dc55f['commands']['add']('insertFootnote',new _0xf436f9(_0x2dc55f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x237146){const _0x20b5bf=_0x13424b([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]),_0x3c5456=0x47a28506,_0x6d08f7=0x47a503ae^_0x3c5456,_0x8ee31a=window[_0x13424b([0x44,0x61,0x74,0x65])][_0x13424b([0x6e,0x6f,0x77])](),_0x165ca1=_0x237146[_0x13424b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c9d3f=new window[(_0x13424b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ca80=>{_0x165ca1[_0x13424b([0x6f,0x6e,0x63,0x65])](_0x13424b([0x72,0x65,0x61,0x64,0x79]),_0x57ca80);}),_0x68fc93={[_0x13424b([0x6b,0x74,0x79])]:_0x13424b([0x45,0x43]),[_0x13424b([0x75,0x73,0x65])]:_0x13424b([0x73,0x69,0x67]),[_0x13424b([0x63,0x72,0x76])]:_0x13424b([0x50,0x2d,0x32,0x35,0x36]),[_0x13424b([0x78])]:_0x13424b([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]),[_0x13424b([0x79])]:_0x13424b([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]),[_0x13424b([0x61,0x6c,0x67])]:_0x13424b([0x45,0x53,0x32,0x35,0x36])},_0x27ab7f=_0x165ca1[_0x13424b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13424b([0x67,0x65,0x74])](_0x13424b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x109df4(){let _0x55556f,_0x455bba=null,_0x5dfafa=null;try{if(_0x27ab7f==_0x13424b([0x47,0x50,0x4c]))return _0x13424b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55556f=_0x25ab05(),!_0x55556f)return _0x13424b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55556f[_0x13424b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5dfafa=_0x4ade99(_0x55556f[_0x13424b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55556f[_0x13424b([0x6a,0x74,0x69])])),await _0x4b9464()?_0x4a60f2()?_0x138760()?_0x13424b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x416844()?(_0x55556f[_0x13424b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13424b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x455bba=_0x21204f(_0x13424b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43285f()):_0x13424b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13424b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13424b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13424b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x138760(){const _0x47d9d4=[_0x13424b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13424b([0x74,0x72,0x69,0x61,0x6c])][_0x13424b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55556f[_0x13424b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8ee31a/0x3e8:0xe10*_0x6d08f7;return _0x55556f[_0x13424b([0x65,0x78,0x70])]<_0x47d9d4;}function _0x4a60f2(){const _0x5b7589=_0x55556f[_0x13424b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b7589&&(!!_0x5b7589[_0x13424b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13424b([0x2a]))||!!_0x5b7589[_0x13424b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13424b([0x46,0x4f,0x4f])));}function _0x416844(){const _0x5c064e=_0x55556f[_0x13424b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c064e||0x0==_0x5c064e[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1224da}=new URL(window[_0x13424b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c064e[_0x13424b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1224da))return!0x0;const _0x1c7164=_0x1224da[_0x13424b([0x73,0x70,0x6c,0x69,0x74])](_0x13424b([0x2e]));return _0x5c064e[_0x13424b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x103957=>_0x103957[_0x13424b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13424b([0x2a])))[_0x13424b([0x6d,0x61,0x70])](_0xbc305c=>_0xbc305c[_0x13424b([0x73,0x70,0x6c,0x69,0x74])](_0x13424b([0x2e])))[_0x13424b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24f0a3=>_0x24f0a3[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c7164[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13424b([0x6d,0x61,0x70])](_0x8baae1=>Array(_0x1c7164[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x8baae1[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13424b([0x66,0x69,0x6c,0x6c])](_0x8baae1[0x0]===_0x13424b([0x2a])?_0x13424b([0x2a]):'')[_0x13424b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x8baae1))[_0x13424b([0x73,0x6f,0x6d,0x65])](_0x14a278=>_0x1c7164[_0x13424b([0x65,0x76,0x65,0x72,0x79])]((_0x341100,_0x3a7276)=>_0x14a278[_0x3a7276]===_0x341100||_0x14a278[_0x3a7276]===_0x13424b([0x2a])));}function _0x43285f(){return _0x455bba&&_0x5dfafa?new window[(_0x13424b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24d148,_0xffa24)=>{_0x455bba[_0x13424b([0x74,0x68,0x65,0x6e])](_0x24d148,_0xffa24),_0x5dfafa[_0x13424b([0x74,0x68,0x65,0x6e])](_0x473463=>{_0x473463!=_0x13424b([0x56,0x61,0x6c,0x69,0x64])&&_0x24d148(_0x473463);},_0xffa24);}):_0x455bba||_0x5dfafa||_0x13424b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ade99(_0x13fbc7,_0x169151){return new window[(_0x13424b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd4983=>{if(_0x2b239a())return _0xd4983(_0x13424b([0x56,0x61,0x6c,0x69,0x64]));_0x1b368a(),_0x165ca1[_0x13424b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13424b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46bfc4=!0x1;const _0x2ed794=_0x16dcfa();function _0x184c46(_0x47ea6a){return!!_0x47ea6a&&(typeof _0x47ea6a===_0x13424b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47ea6a===_0x13424b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47ea6a[_0x13424b([0x74,0x68,0x65,0x6e])]===_0x13424b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47ea6a[_0x13424b([0x63,0x61,0x74,0x63,0x68])]===_0x13424b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbd7fba(_0xc5145){_0x4a4bd9(_0xc5145)[_0x13424b([0x74,0x68,0x65,0x6e])](_0x9aa0c2=>{if(!_0x9aa0c2||_0x9aa0c2[_0x13424b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13424b([0x6f,0x6b]))return _0x13424b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cd1b3(_0x1ee720(_0x2ed794+_0x169151))!=_0x9aa0c2[_0x13424b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13424b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13424b([0x56,0x61,0x6c,0x69,0x64]);})[_0x13424b([0x74,0x68,0x65,0x6e])](_0x48331c=>(_0x677eca(),_0x48331c),()=>{const _0xa7cedd=_0x338f46();return null==_0xa7cedd?(_0x677eca(),_0x13424b([0x56,0x61,0x6c,0x69,0x64])):_0x13424b(_0x8ee31a-_0xa7cedd>(0x63ae0106^_0x3c5456)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13424b([0x74,0x68,0x65,0x6e])](_0xd4983)[_0x13424b([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd4983(_0x13424b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5102f6=0x47946b86^_0x3c5456;function _0x677eca(){const _0x401feb=_0x13424b([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cd1b3(_0x1ee720(_0x13fbc7)),_0x2d57ee=_0x4b2b29(_0x5cd1b3(window[_0x13424b([0x4d,0x61,0x74,0x68])][_0x13424b([0x63,0x65,0x69,0x6c])](_0x8ee31a/_0x5102f6)));window[_0x13424b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13424b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401feb,_0x2d57ee);}function _0x338f46(){const _0x59ab8a=_0x13424b([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cd1b3(_0x1ee720(_0x13fbc7)),_0x3b0201=window[_0x13424b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13424b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59ab8a);return _0x3b0201?window[_0x13424b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2b29(_0x3b0201),0x10)*_0x5102f6:null;}function _0x4a4bd9(_0x2ae880){return new window[(_0x13424b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aa293,_0x462691)=>{_0x2ae880[_0x13424b([0x74,0x68,0x65,0x6e])](_0x4aa293,_0x462691),window[_0x13424b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x462691,0x47a351c6^_0x3c5456);});}}_0x165ca1[_0x13424b([0x6f,0x6e])](_0x13424b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x339aee,_0x49de14)=>{if(_0x49de14[0x0]!=_0x13fbc7)return _0xd4983(_0x13424b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49de14[0x1]={..._0x49de14[0x1],[_0x13424b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ed794};},{[_0x13424b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13424b([0x68,0x69,0x67,0x68])}),_0x165ca1[_0x13424b([0x6f,0x6e])](_0x13424b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a900f=>{_0x184c46(_0x3a900f[_0x13424b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46bfc4=!0x0,_0xbd7fba(_0x3a900f[_0x13424b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13424b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13424b([0x6c,0x6f,0x77])}),_0x5c9d3f[_0x13424b([0x74,0x68,0x65,0x6e])](()=>{_0x46bfc4||_0xd4983(_0x13424b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b239a(){return _0x165ca1[_0x13424b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13424b([0x76,0x69,0x65,0x77])][_0x13424b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13424b([0x61,0x75,0x74,0x6f]);}function _0x1b368a(){_0x165ca1[_0x13424b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13424b([0x76,0x69,0x65,0x77])][_0x13424b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13424b([0x61,0x75,0x74,0x6f]);}}function _0x21204f(_0x137c5c){const _0x2180f1=[new window[(_0x13424b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe4098d=>setTimeout(_0xe4098d,0x47abbbca^_0x3c5456)),_0x5c9d3f[_0x13424b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13424b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd58bbb=>{let _0x472abb=0x0;_0x165ca1[_0x13424b([0x6d,0x6f,0x64,0x65,0x6c])][_0x13424b([0x6f,0x6e])](_0x13424b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x122703,_0x12473d)=>{_0x12473d[0x0][_0x13424b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x472abb++,_0x472abb==(0x47a280ee^_0x3c5456)&&(_0xd58bbb(),_0x122703[_0x13424b([0x6f,0x66,0x66])]());});}))];return window[_0x13424b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13424b([0x72,0x61,0x63,0x65])](_0x2180f1)[_0x13424b([0x74,0x68,0x65,0x6e])](()=>_0x137c5c);}async function _0x37e3ea(){await _0x5c9d3f,_0x165ca1[_0x13424b([0x6d,0x6f,0x64,0x65,0x6c])][_0x13424b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2731bf,_0x165ca1[_0x13424b([0x6d,0x6f,0x64,0x65,0x6c])][_0x13424b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2731bf,_0x165ca1[_0x13424b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13424b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4128a4(_0x792e5){const _0x25a996=_0x46a317();_0x165ca1[_0x25a996]=_0x13424b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x792e5,_0x792e5!=_0x13424b([0x56,0x61,0x6c,0x69,0x64])&&_0x37e3ea();}function _0x46a317(){const _0x4ca66e=window[_0x13424b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13424b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13424b([0x6e,0x6f,0x77])]())[_0x13424b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13424b([0x2e]),'');let _0xa7f06f=_0x13424b([0x75]);for(let _0x32591c=0x0;_0x32591c<_0x4ca66e[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32591c+=0x2){let _0x445ec8=window[_0x13424b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ca66e[_0x13424b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32591c,_0x32591c+0x2));_0x445ec8>=_0x20b5bf[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x445ec8-=_0x20b5bf[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa7f06f+=_0x20b5bf[_0x445ec8];}return _0xa7f06f;}function _0x25ab05(){const _0x3666e2=_0x27ab7f[_0x13424b([0x73,0x70,0x6c,0x69,0x74])](_0x13424b([0x2e]));if(0x3!=_0x3666e2[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fb034(_0x3666e2[0x1]);function _0x1fb034(_0xb5af4c){const _0x500c0b=_0x16674c(_0xb5af4c);return _0x500c0b&&_0x1651dd()?_0x500c0b:null;function _0x1651dd(){const _0x3c0528=_0x500c0b[_0x13424b([0x6a,0x74,0x69])],_0x5e3be2=window[_0x13424b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c0528[_0x13424b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c0528[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a33e2={..._0x500c0b,[_0x13424b([0x6a,0x74,0x69])]:_0x3c0528[_0x13424b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c0528[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a33e2[_0x13424b([0x76,0x63])],_0x1ee720(_0x4a33e2)==_0x5e3be2;}}}async function _0x4b9464(){let _0x1b444f=!0x0;try{const _0x187df6=_0x27ab7f[_0x13424b([0x73,0x70,0x6c,0x69,0x74])](_0x13424b([0x2e])),[_0x57f3de,_0x33ebcb,_0x157022]=_0x187df6;return _0x347d33(_0x57f3de),await _0x4beff2(_0x57f3de,_0x33ebcb,_0x157022),_0x1b444f;}catch{return!0x1;}function _0x347d33(_0x26e3ee){const _0x383536=_0x16674c(_0x26e3ee);_0x383536&&_0x383536[_0x13424b([0x61,0x6c,0x67])]==_0x13424b([0x45,0x53,0x32,0x35,0x36])||(_0x1b444f=!0x1);}async function _0x4beff2(_0x31a581,_0x2fc659,_0x36665d){const _0x40292c=window[_0x13424b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13424b([0x66,0x72,0x6f,0x6d])](_0x4fa5d1(_0x36665d),_0x406f9f=>_0x406f9f[_0x13424b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7a78e9=new window[(_0x13424b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13424b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31a581+_0x13424b([0x2e])+_0x2fc659),_0x2b55e1=window[_0x13424b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13424b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b55e1)return;const _0x124854=await _0x2b55e1[_0x13424b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13424b([0x6a,0x77,0x6b]),_0x68fc93,{[_0x13424b([0x6e,0x61,0x6d,0x65])]:_0x13424b([0x45,0x43,0x44,0x53,0x41]),[_0x13424b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13424b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13424b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b55e1[_0x13424b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13424b([0x6e,0x61,0x6d,0x65])]:_0x13424b([0x45,0x43,0x44,0x53,0x41]),[_0x13424b([0x68,0x61,0x73,0x68])]:{[_0x13424b([0x6e,0x61,0x6d,0x65])]:_0x13424b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x124854,_0x40292c,_0x7a78e9)||(_0x1b444f=!0x1);}}function _0x16674c(_0x38464f){return _0x38464f[_0x13424b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13424b([0x65,0x79]))?JSON[_0x13424b([0x70,0x61,0x72,0x73,0x65])](_0x4fa5d1(_0x38464f)):null;}function _0x4fa5d1(_0x3cd2a2){return window[_0x13424b([0x61,0x74,0x6f,0x62])](_0x3cd2a2[_0x13424b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13424b([0x2b]))[_0x13424b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13424b([0x2f])));}function _0x1ee720(_0x22cca7){let _0x14f917=0x1505;function _0x52e66a(_0x31063c){for(let _0x549955=0x0;_0x549955<_0x31063c[_0x13424b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x549955++){const _0x1708a1=_0x31063c[_0x13424b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x549955);_0x14f917=(_0x14f917<<0x5)+_0x14f917+_0x1708a1,_0x14f917&=_0x14f917;}}function _0x2da2d2(_0x8e78a7){Array[_0x13424b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8e78a7)?_0x8e78a7[_0x13424b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2da2d2):_0x8e78a7&&typeof _0x8e78a7==_0x13424b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13424b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8e78a7)[_0x13424b([0x73,0x6f,0x72,0x74])]()[_0x13424b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cac0e,_0x27c15d])=>{_0x52e66a(_0x1cac0e),_0x2da2d2(_0x27c15d);}):_0x52e66a(window[_0x13424b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8e78a7));}return _0x2da2d2(_0x22cca7),_0x14f917>>>0x0;}function _0x5cd1b3(_0x45f2d2){return _0x45f2d2[_0x13424b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13424b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13424b([0x30]));}function _0x4b2b29(_0x2f68ad){return _0x2f68ad[_0x13424b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13424b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13424b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2731bf(){}function _0x13424b(_0x115622){return _0x115622['map'](_0x225e52=>String['fromCharCode'](_0x225e52))['join']('');}_0x4128a4(await _0x109df4());}(this);}['_moveSelectionToFootnoteDefinition'](_0x10fdd6){const {plugins:_0xd4654d,editing:_0x558c05,model:_0x29cdca}=this['editor'],_0x2cbd00=_0xd4654d['get'](_0x1070a9)['getFootnote'](_0x10fdd6);return!!_0x2cbd00&&(_0x29cdca['change'](_0x308a52=>{_0x308a52['setSelection'](_0x308a52['createPositionAt'](_0x2cbd00['definition'],'end'));}),_0x558c05['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3b9fdd){const {plugins:_0xfc2da7,editing:_0x24bf14,model:_0x30095b}=this['editor'],_0x2a035c=_0xfc2da7['get'](_0x1070a9)['getFootnote'](_0x3b9fdd);return!!_0x2a035c&&(_0x30095b['change'](_0x5293bd=>{_0x5293bd['setSelection'](_0x2a035c['reference'],'on');}),_0x24bf14['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x21e550}=this['editor']['model'],_0x2c8b36=this['editor']['config']['get']('footnotes.multiBlock');_0x21e550['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x21e550['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x21e550['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2c8b36?_0x21e550['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x21e550['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x21e550['addChildCheck'](_0x2c73e9=>{for(const _0x13b7d4 of _0x2c73e9)if('footnoteDefinition'===_0x13b7d4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xf475fd}=this,{conversion:_0x46569f,editing:_0x251b9c}=_0xf475fd,{t:t}=_0xf475fd['locale'];_0x46569f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2307f0,{writer:_0x27bd47,consumable:_0x57de62})=>{const _0x463a2c=_0x2307f0['getChild'](0x0);if(!_0x463a2c||!_0x463a2c['is']('element','a'))return null;const _0x2bb919=_0x463a2c['getAttribute']('href')||'';if(!_0x2bb919['startsWith']('#'))return null;const _0x4da151=_0x2bb919['replace'](/^#/,'');if(!_0x4da151)return null;_0x57de62['consume'](_0x463a2c,{'name':!0x0,'attributes':['href']});for(const {item:_0x16647b}of _0x251b9c['view']['createRangeIn'](_0x463a2c))_0x16647b['is']('$textProxy')?_0x57de62['consume'](_0x16647b['textNode'],{'name':!0x0}):_0x16647b['is']('element')&&_0x57de62['consume'](_0x16647b,{'name':!0x0});return _0x27bd47['createElement']('footnoteRef',{'footnoteId':_0x4da151});}}),_0x46569f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48f5ef,{writer:_0x188fab})=>b(_0x48f5ef,_0x188fab)}),_0x46569f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x167c6b,{writer:_0x4e0b55})=>{const _0x47b7b8=_0x167c6b['getAttribute']('footnoteCounter');return _0x349d2f(b(_0x167c6b,_0x4e0b55),_0x4e0b55,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x47b7b8)});}});}['_defineDefinitionsConverters'](){const {editor:_0x55233f}=this,{t:t}=_0x55233f['locale'],{conversion:_0x1e4ffe}=_0x55233f;_0x1e4ffe['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1e4ffe['for']('upcast')['add'](_0x47afbb=>{_0x47afbb['on']('element:ol',(_0x203d7b,_0x6f289d,_0x4b0fae)=>{const _0x52913c=_0x6f289d['viewItem'];if(!_0x52913c['hasClass']('footnotes-list')||!_0x6f289d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4b0fae['consumable']['consume'](_0x52913c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x463779,modelCursor:_0x3aa589}=_0x4b0fae['convertChildren'](_0x6f289d['viewItem'],_0x6f289d['modelCursor']);_0x6f289d['modelRange']=_0x463779,_0x6f289d['modelCursor']=_0x3aa589;}),_0x47afbb['on']('element:hr',(_0x3ef7c8,_0x14b531,_0x19fdb8)=>{const _0x5bd347=_0x14b531['viewItem'];_0x5bd347['hasClass']('footnotes-divider')&&_0x14b531['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x19fdb8['consumable']['consume'](_0x5bd347,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1e4ffe['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4d2278,{writer:_0x5b527a})=>D(_0x5b527a)}),_0x1e4ffe['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3da812,{writer:_0x2daa70})=>{const _0x10c2f9=D(_0x2daa70,{'data-footnotes-list-label':t('Footnotes')}),_0x5a1326=_0x349d2f(_0x10c2f9,_0x2daa70,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2daa70['setCustomProperty']('footnotesDefinitions',!0x0,_0x5a1326),_0x5a1326;}});}['_defineDefinitionConverters'](){const {editor:_0x207970}=this,{conversion:_0x5b245b,locale:_0x2e198c}=_0x207970,_0x9f5536=_0x207970['config']['get']('footnotes.multiBlock');_0x5b245b['for']('upcast')['add'](_0x2d1185=>{_0x2d1185['on']('element:li',(_0x1cfff1,_0x4ab237,_0x127be4)=>{const _0xbde6ae=_0x4ab237['viewItem'];if(!_0xbde6ae['hasClass']('footnote-definition')||!_0xbde6ae['getAttribute']('id'))return;const _0x1d8454=_0xbde6ae['parent'];if(!_0x1d8454['is']('element','ol')||!_0x1d8454['hasClass']('footnotes-list'))return;if(!_0x127be4['consumable']['test'](_0xbde6ae,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x43f8bd=_0x127be4['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xbde6ae['getAttribute']('id')});if(!_0x127be4['safeInsert'](_0x43f8bd,_0x4ab237['modelCursor']))return;_0x127be4['consumable']['consume'](_0xbde6ae,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x145aa0=Array['from'](_0xbde6ae['getChildren']())['find'](_0x3a7334=>_0x3a7334['is']('element')&&_0x3a7334['hasClass']('footnote-content'));for(const _0x2111af of _0xbde6ae['getChildren']())_0x2111af['is']('element')&&(_0x127be4['consumable']['consume'](_0x2111af,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x127be4['consumable']['consume'](_0x2111af,{'name':!0x0,'classes':'footnote-content'}));if(_0x145aa0){if(_0x9f5536)_0x127be4['convertChildren'](_0x145aa0,_0x43f8bd);else{const _0x23f61c=_0x127be4['writer']['createElement']('footnoteInlineContent');_0x127be4['writer']['insert'](_0x23f61c,_0x43f8bd),_0x127be4['convertChildren'](_0x145aa0,_0x23f61c);}}_0x127be4['updateConversionResult'](_0x43f8bd,_0x4ab237);});}),_0x5b245b['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x47d545,{writer:_0x155d74})=>y(_0x47d545,_0x155d74,_0x2e198c,{'dataPipeline':!0x0})}),_0x5b245b['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xacea65,{writer:_0x1eb26b})=>y(_0xacea65,_0x1eb26b,_0x2e198c)});}['_defineBogusParagraphConverters'](){const {editor:_0x36d991}=this,{conversion:_0xbdc3ec}=_0x36d991;_0x36d991['config']['get']('footnotes.multiBlock')?(_0xbdc3ec['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0xbdc3ec['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x36d991['model']['document'],'change:data',()=>{!function(_0x259335,_0x4db269){const _0x17133c=_0x259335['document']['differ'],_0x4f8751=new Set();for(const _0x3bda54 of _0x17133c['getChanges']()){const _0x514b12='attribute'==_0x3bda54['type']?_0x3bda54['range']['start']['parent']:_0x3bda54['position']['parent'];_0x514b12['is']('element','footnoteDefinition')&&_0x4f8751['add'](_0x514b12);}for(const _0x1e98b4 of _0x4f8751['values']()){const _0x4325cd=Array['from'](_0x1e98b4['getChildren']())['filter'](_0x5ba867=>v(_0x5ba867,_0x4db269['mapper']));for(const _0x3e2bde of _0x4325cd)_0x4db269['reconvertItem'](_0x3e2bde);}}(_0x36d991['model'],_0x36d991['editing']);})):(_0xbdc3ec['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0xbdc3ec['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x55b6c0,{writer:_0x5362e2})=>{const _0x5c0b12=_0x5362e2['createContainerElement']('span');return _0x5362e2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5c0b12),_0x5c0b12;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5359be}=this,{editing:_0x35fa9b,t:t}=_0x5359be,_0x17c1b3=_0x5359be['model']['document']['selection'];_0x5359be['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5359be['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x35fa9b['view']['document'],'enter',(_0x507503,_0x169e03)=>{const _0x45e7e5=function(_0x4370b0){const _0x1f28af=_0x4370b0['getSelectedElement']();if(_0x1f28af?.['is']('element','footnoteRef'))return _0x1f28af;return null;}(_0x17c1b3);if(_0x45e7e5){const _0x38a355=_0x45e7e5['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x38a355),_0x169e03['preventDefault'](),_0x507503['stop']();}},{'context':_0x91ceb2});}['_defineClickHandlers'](){const {editor:_0x4923d2}=this,{editing:_0x437ec7}=_0x4923d2;_0x4923d2['editing']['view']['addObserver'](_0xf0aeef),_0x4923d2['editing']['view']['addObserver'](_0x30e9f9);let _0x5e6c4b=!0x1;this['listenTo'](_0x437ec7['view']['document'],'pointerdown',(_0x4caee8,_0x2cbe70)=>{const {target:_0x3defd2}=_0x2cbe70,_0x169182=_0x437ec7['view']['document']['selection'];_0x5e6c4b=!!(_0x3defd2?.['is']('element','a')&&_0x3defd2['parent']?.['is']('element','sup')&&_0x3defd2['parent']['hasClass']('footnote'))&&_0x169182['getSelectedElement']()===_0x3defd2['parent'];},{'priority':'high'}),this['listenTo'](_0x437ec7['view']['document'],'click',(_0x1ae0c,_0x21e97b)=>{const {target:_0x4958a6}=_0x21e97b;if(!_0x4958a6?.['is']('element','a'))return;if(_0x4958a6['parent']?.['is']('element','sup')&&_0x4958a6['parent']['hasClass']('footnote')&&!_0x5e6c4b)return void _0x21e97b['preventDefault']();let _0x1c4ef5=_0x4958a6['getAttribute']('href');if(!_0x1c4ef5?.['startsWith']('#'))return;_0x1c4ef5=_0x1c4ef5['slice'](0x1);let _0x1a6a44=!0x1;(_0x1c4ef5['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1c4ef5['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1c4ef5))&&(_0x1a6a44=!0x0),_0x1a6a44&&(_0x21e97b['preventDefault'](),_0x1ae0c['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x2f902c}={}){return(_0x48f0da,{writer:_0x45872f})=>{if(!g(_0x48f0da))return null;if(!_0x2f902c)return _0x45872f['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x50f328=_0x45872f['createContainerElement']('p');return _0x45872f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x50f328),_0x50f328;};}function g(_0x1e5647){const {parent:_0x14200d}=_0x1e5647;if(!_0x14200d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x14200d['childCount'])return!0x1;for(const _0x5e9381 of _0x1e5647['getAttributeKeys']())if(!_0x5e9381['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5e9381)return!0x1;return!0x0;}function v(_0x3cc353,_0x5f381f){if(!_0x3cc353['is']('element','paragraph'))return!0x1;const _0x29d2b5=_0x5f381f['toViewElement'](_0x3cc353);return!!_0x29d2b5&&g(_0x3cc353)!==_0x29d2b5['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x40a7b3){return _0x91ceb2(_0x40a7b3)&&_0x40a7b3['is']('containerElement')&&!!_0x40a7b3['getCustomProperty']('footnotesDefinitions');}function D(_0x33d5d7,_0x37e2ba={}){const _0x862efe=_0x33d5d7['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x434a55=_0x33d5d7['createContainerElement']('ol',{'class':'footnotes-list'},_0x33d5d7['createSlot']());return _0x33d5d7['createContainerElement']('div',{'class':'footnotes',..._0x37e2ba},[_0x862efe,_0x434a55]);}function b(_0x428392,_0x23481d){const _0x2c8d4a=_0x428392['getAttribute']('footnoteId'),_0xf07619=_0x428392['getAttribute']('footnoteCounter'),_0x4542f5=_0x23481d['createUIElement']('a',{'href':'#'+_0x2c8d4a},function(_0x481105){const _0x292431=this['toDomElement'](_0x481105);return _0x292431['textContent']=_0xf07619,_0x292431;}),_0x194c38=_0x23481d['createContainerElement']('sup',{'id':'ref-'+_0x2c8d4a,'class':'footnote'},[_0x4542f5]);return _0x194c38['getFillerOffset']=()=>null,_0x194c38;}function y(_0x545db9,_0x4612d0,_0x50a000,{dataPipeline:_0xb22bf5}={}){const {t:t}=_0x50a000,_0x1ddaa0=_0x545db9['getAttribute']('footnoteId'),_0x59ad4d=_0x4612d0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1ddaa0},function(_0x835a34){const _0x3888ca=this['toDomElement'](_0x835a34);return _0x3888ca['innerText']='^',_0x3888ca;}),_0x46090f=_0xb22bf5?_0x4612d0['createContainerElement']('div',{'class':'footnote-content'}):_0x5c12bd(_0x4612d0['createEditableElement']('div',{'class':'footnote-content'}),_0x4612d0,{'label':t('Footnote\x20content.')});return _0x4612d0['insert'](_0x4612d0['createPositionAt'](_0x46090f,0x0),_0x4612d0['createSlot']()),_0x4612d0['createContainerElement']('li',{'class':'footnote-definition','id':_0x1ddaa0},[_0x59ad4d,_0x46090f]);}
|
|
23
|
+
import{Plugin as _0x58aed0}from'ckeditor5/src/core.js';import{isWidget as _0x268d8b,toWidget as _0x58fb8e,toWidgetEditable as _0x9fe8a8}from'ckeditor5/src/widget.js';import{uid as _0x2057c1}from'ckeditor5/src/utils.js';import{PointerObserver as _0x958e2e,ClickObserver as _0x511a3d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x59e7e6}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x7cd373}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x58aed0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x59e7e6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1288ca}=this;_0x1288ca['config']['define']('footnotes.multiBlock',!0x0),_0x1288ca['commands']['add']('insertFootnote',new _0x7cd373(_0x1288ca)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x426466){const _0x40fda9=_0x292e6f([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]),_0xd8fbd8=0x47a28506,_0x2d9c41=0x47a503ae^_0xd8fbd8,_0x528399=window[_0x292e6f([0x44,0x61,0x74,0x65])][_0x292e6f([0x6e,0x6f,0x77])](),_0x48c746=_0x426466[_0x292e6f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e909a=new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1beac8=>{_0x48c746[_0x292e6f([0x6f,0x6e,0x63,0x65])](_0x292e6f([0x72,0x65,0x61,0x64,0x79]),_0x1beac8);}),_0xf49fc2={[_0x292e6f([0x6b,0x74,0x79])]:_0x292e6f([0x45,0x43]),[_0x292e6f([0x75,0x73,0x65])]:_0x292e6f([0x73,0x69,0x67]),[_0x292e6f([0x63,0x72,0x76])]:_0x292e6f([0x50,0x2d,0x32,0x35,0x36]),[_0x292e6f([0x78])]:_0x292e6f([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]),[_0x292e6f([0x79])]:_0x292e6f([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]),[_0x292e6f([0x61,0x6c,0x67])]:_0x292e6f([0x45,0x53,0x32,0x35,0x36])},_0x38c221=_0x48c746[_0x292e6f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x292e6f([0x67,0x65,0x74])](_0x292e6f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f6431(){let _0x4925cd,_0x5e5a81=null,_0xeb4d8=null;try{if(_0x38c221==_0x292e6f([0x47,0x50,0x4c]))return _0x292e6f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4925cd=_0x6fbaae(),!_0x4925cd)return _0x292e6f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4925cd[_0x292e6f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xeb4d8=_0x531d9e(_0x4925cd[_0x292e6f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4925cd[_0x292e6f([0x6a,0x74,0x69])])),await _0x426711()?_0x3d87d6()?_0x3cd489()?_0x292e6f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e2ded()?(_0x4925cd[_0x292e6f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x292e6f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e5a81=_0x17f70b(_0x292e6f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f8a4d()):_0x292e6f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x292e6f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x292e6f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x292e6f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cd489(){const _0x46737b=[_0x292e6f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x292e6f([0x74,0x72,0x69,0x61,0x6c])][_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4925cd[_0x292e6f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x528399/0x3e8:0xe10*_0x2d9c41;return _0x4925cd[_0x292e6f([0x65,0x78,0x70])]<_0x46737b;}function _0x3d87d6(){const _0x14037f=_0x4925cd[_0x292e6f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14037f&&(!!_0x14037f[_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292e6f([0x2a]))||!!_0x14037f[_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292e6f([0x46,0x4f,0x4f])));}function _0x3e2ded(){const _0x2d9c28=_0x4925cd[_0x292e6f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d9c28||0x0==_0x2d9c28[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45b140}=new URL(window[_0x292e6f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d9c28[_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45b140))return!0x0;const _0x291b23=_0x45b140[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])](_0x292e6f([0x2e]));return _0x2d9c28[_0x292e6f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x240ceb=>_0x240ceb[_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292e6f([0x2a])))[_0x292e6f([0x6d,0x61,0x70])](_0x322fa9=>_0x322fa9[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])](_0x292e6f([0x2e])))[_0x292e6f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5633af=>_0x5633af[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x291b23[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x292e6f([0x6d,0x61,0x70])](_0x3f2b99=>Array(_0x291b23[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f2b99[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x292e6f([0x66,0x69,0x6c,0x6c])](_0x3f2b99[0x0]===_0x292e6f([0x2a])?_0x292e6f([0x2a]):'')[_0x292e6f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f2b99))[_0x292e6f([0x73,0x6f,0x6d,0x65])](_0x40a49a=>_0x291b23[_0x292e6f([0x65,0x76,0x65,0x72,0x79])]((_0x150f0a,_0x565c74)=>_0x40a49a[_0x565c74]===_0x150f0a||_0x40a49a[_0x565c74]===_0x292e6f([0x2a])));}function _0x2f8a4d(){return _0x5e5a81&&_0xeb4d8?new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39fc5a,_0x881e5f)=>{_0x5e5a81[_0x292e6f([0x74,0x68,0x65,0x6e])](_0x39fc5a,_0x881e5f),_0xeb4d8[_0x292e6f([0x74,0x68,0x65,0x6e])](_0x594cbe=>{_0x594cbe!=_0x292e6f([0x56,0x61,0x6c,0x69,0x64])&&_0x39fc5a(_0x594cbe);},_0x881e5f);}):_0x5e5a81||_0xeb4d8||_0x292e6f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x531d9e(_0x4ecff0,_0x19e954){return new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4900f2=>{if(_0x3995f7())return _0x4900f2(_0x292e6f([0x56,0x61,0x6c,0x69,0x64]));_0x359380(),_0x48c746[_0x292e6f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x292e6f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ec04b=!0x1;const _0x4a2dcc=_0x2057c1();function _0x247635(_0x115670){return!!_0x115670&&(typeof _0x115670===_0x292e6f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x115670===_0x292e6f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x115670[_0x292e6f([0x74,0x68,0x65,0x6e])]===_0x292e6f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x115670[_0x292e6f([0x63,0x61,0x74,0x63,0x68])]===_0x292e6f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31b993(_0x417002){_0x4b4127(_0x417002)[_0x292e6f([0x74,0x68,0x65,0x6e])](_0xdcf391=>{if(!_0xdcf391||_0xdcf391[_0x292e6f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x292e6f([0x6f,0x6b]))return _0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b8ff1(_0x307144(_0x4a2dcc+_0x19e954))!=_0xdcf391[_0x292e6f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x292e6f([0x56,0x61,0x6c,0x69,0x64]);})[_0x292e6f([0x74,0x68,0x65,0x6e])](_0xc7fe03=>(_0x2f5a9e(),_0xc7fe03),()=>{const _0x2b8344=_0xdc162a();return null==_0x2b8344?(_0x2f5a9e(),_0x292e6f([0x56,0x61,0x6c,0x69,0x64])):_0x292e6f(_0x528399-_0x2b8344>(0x63ae0106^_0xd8fbd8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x292e6f([0x74,0x68,0x65,0x6e])](_0x4900f2)[_0x292e6f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4900f2(_0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12cd42=0x47946b86^_0xd8fbd8;function _0x2f5a9e(){const _0x774e9=_0x292e6f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b8ff1(_0x307144(_0x4ecff0)),_0x1151ef=_0x200514(_0x1b8ff1(window[_0x292e6f([0x4d,0x61,0x74,0x68])][_0x292e6f([0x63,0x65,0x69,0x6c])](_0x528399/_0x12cd42)));window[_0x292e6f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x292e6f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x774e9,_0x1151ef);}function _0xdc162a(){const _0x2c9688=_0x292e6f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b8ff1(_0x307144(_0x4ecff0)),_0x1d2ff8=window[_0x292e6f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x292e6f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c9688);return _0x1d2ff8?window[_0x292e6f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x200514(_0x1d2ff8),0x10)*_0x12cd42:null;}function _0x4b4127(_0x45b7da){return new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43d92e,_0x2d416c)=>{_0x45b7da[_0x292e6f([0x74,0x68,0x65,0x6e])](_0x43d92e,_0x2d416c),window[_0x292e6f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d416c,0x47a351c6^_0xd8fbd8);});}}_0x48c746[_0x292e6f([0x6f,0x6e])](_0x292e6f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18192d,_0x955d6b)=>{if(_0x955d6b[0x0]!=_0x4ecff0)return _0x4900f2(_0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x955d6b[0x1]={..._0x955d6b[0x1],[_0x292e6f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a2dcc};},{[_0x292e6f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x292e6f([0x68,0x69,0x67,0x68])}),_0x48c746[_0x292e6f([0x6f,0x6e])](_0x292e6f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37414a=>{_0x247635(_0x37414a[_0x292e6f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ec04b=!0x0,_0x31b993(_0x37414a[_0x292e6f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x292e6f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x292e6f([0x6c,0x6f,0x77])}),_0x3e909a[_0x292e6f([0x74,0x68,0x65,0x6e])](()=>{_0x4ec04b||_0x4900f2(_0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3995f7(){return _0x48c746[_0x292e6f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x292e6f([0x76,0x69,0x65,0x77])][_0x292e6f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x292e6f([0x61,0x75,0x74,0x6f]);}function _0x359380(){_0x48c746[_0x292e6f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x292e6f([0x76,0x69,0x65,0x77])][_0x292e6f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x292e6f([0x61,0x75,0x74,0x6f]);}}function _0x17f70b(_0x4e9d19){const _0x20724d=[new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfe4a=>setTimeout(_0x2cfe4a,0x47abbbca^_0xd8fbd8)),_0x3e909a[_0x292e6f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58e744=>{let _0x42e681=0x0;_0x48c746[_0x292e6f([0x6d,0x6f,0x64,0x65,0x6c])][_0x292e6f([0x6f,0x6e])](_0x292e6f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x486d72,_0xd3cfc8)=>{_0xd3cfc8[0x0][_0x292e6f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42e681++,_0x42e681==(0x47a280ee^_0xd8fbd8)&&(_0x58e744(),_0x486d72[_0x292e6f([0x6f,0x66,0x66])]());});}))];return window[_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x292e6f([0x72,0x61,0x63,0x65])](_0x20724d)[_0x292e6f([0x74,0x68,0x65,0x6e])](()=>_0x4e9d19);}async function _0x158d6f(){await _0x3e909a,_0x48c746[_0x292e6f([0x6d,0x6f,0x64,0x65,0x6c])][_0x292e6f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa0b747,_0x48c746[_0x292e6f([0x6d,0x6f,0x64,0x65,0x6c])][_0x292e6f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa0b747,_0x48c746[_0x292e6f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x292e6f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14040c(_0x34033d){const _0x53aa93=_0x335eac();_0x48c746[_0x53aa93]=_0x292e6f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x34033d,_0x34033d!=_0x292e6f([0x56,0x61,0x6c,0x69,0x64])&&_0x158d6f();}function _0x335eac(){const _0x59c2b8=window[_0x292e6f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x292e6f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x292e6f([0x6e,0x6f,0x77])]())[_0x292e6f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x292e6f([0x2e]),'');let _0x4fbd7e=_0x292e6f([0x75]);for(let _0x30ab7c=0x0;_0x30ab7c<_0x59c2b8[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30ab7c+=0x2){let _0x67eb57=window[_0x292e6f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c2b8[_0x292e6f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30ab7c,_0x30ab7c+0x2));_0x67eb57>=_0x40fda9[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x67eb57-=_0x40fda9[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4fbd7e+=_0x40fda9[_0x67eb57];}return _0x4fbd7e;}function _0x6fbaae(){const _0x15275f=_0x38c221[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])](_0x292e6f([0x2e]));if(0x3!=_0x15275f[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b2a8c(_0x15275f[0x1]);function _0x2b2a8c(_0x27204f){const _0x126f1a=_0x3aa979(_0x27204f);return _0x126f1a&&_0x4eb494()?_0x126f1a:null;function _0x4eb494(){const _0x37ad3d=_0x126f1a[_0x292e6f([0x6a,0x74,0x69])],_0x4111c2=window[_0x292e6f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37ad3d[_0x292e6f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37ad3d[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4513ef={..._0x126f1a,[_0x292e6f([0x6a,0x74,0x69])]:_0x37ad3d[_0x292e6f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37ad3d[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4513ef[_0x292e6f([0x76,0x63])],_0x307144(_0x4513ef)==_0x4111c2;}}}async function _0x426711(){let _0x44670c=!0x0;try{const _0x4ce1c5=_0x38c221[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])](_0x292e6f([0x2e])),[_0x18b16b,_0x393853,_0x3aff5d]=_0x4ce1c5;return _0x3d1717(_0x18b16b),await _0x4cb9a1(_0x18b16b,_0x393853,_0x3aff5d),_0x44670c;}catch{return!0x1;}function _0x3d1717(_0x42b7b9){const _0x2cc5fc=_0x3aa979(_0x42b7b9);_0x2cc5fc&&_0x2cc5fc[_0x292e6f([0x61,0x6c,0x67])]==_0x292e6f([0x45,0x53,0x32,0x35,0x36])||(_0x44670c=!0x1);}async function _0x4cb9a1(_0x2b9567,_0x36d087,_0x18b577){const _0x45dd81=window[_0x292e6f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x292e6f([0x66,0x72,0x6f,0x6d])](_0xd4832b(_0x18b577),_0x467ab4=>_0x467ab4[_0x292e6f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x159f9d=new window[(_0x292e6f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x292e6f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b9567+_0x292e6f([0x2e])+_0x36d087),_0x37f5f3=window[_0x292e6f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x292e6f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37f5f3)return;const _0x11219f=await _0x37f5f3[_0x292e6f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x292e6f([0x6a,0x77,0x6b]),_0xf49fc2,{[_0x292e6f([0x6e,0x61,0x6d,0x65])]:_0x292e6f([0x45,0x43,0x44,0x53,0x41]),[_0x292e6f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x292e6f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x292e6f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37f5f3[_0x292e6f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x292e6f([0x6e,0x61,0x6d,0x65])]:_0x292e6f([0x45,0x43,0x44,0x53,0x41]),[_0x292e6f([0x68,0x61,0x73,0x68])]:{[_0x292e6f([0x6e,0x61,0x6d,0x65])]:_0x292e6f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11219f,_0x45dd81,_0x159f9d)||(_0x44670c=!0x1);}}function _0x3aa979(_0x2a5c7d){return _0x2a5c7d[_0x292e6f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x292e6f([0x65,0x79]))?JSON[_0x292e6f([0x70,0x61,0x72,0x73,0x65])](_0xd4832b(_0x2a5c7d)):null;}function _0xd4832b(_0x31cfec){return window[_0x292e6f([0x61,0x74,0x6f,0x62])](_0x31cfec[_0x292e6f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x292e6f([0x2b]))[_0x292e6f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x292e6f([0x2f])));}function _0x307144(_0x4605b1){let _0x50422e=0x1505;function _0x32ea8e(_0x439ac5){for(let _0x9a3864=0x0;_0x9a3864<_0x439ac5[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9a3864++){const _0x1cbea3=_0x439ac5[_0x292e6f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9a3864);_0x50422e=(_0x50422e<<0x5)+_0x50422e+_0x1cbea3,_0x50422e&=_0x50422e;}}function _0x335af8(_0x4a4159){Array[_0x292e6f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a4159)?_0x4a4159[_0x292e6f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x335af8):_0x4a4159&&typeof _0x4a4159==_0x292e6f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x292e6f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a4159)[_0x292e6f([0x73,0x6f,0x72,0x74])]()[_0x292e6f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c807e,_0x30f917])=>{_0x32ea8e(_0x5c807e),_0x335af8(_0x30f917);}):_0x32ea8e(window[_0x292e6f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a4159));}return _0x335af8(_0x4605b1),_0x50422e>>>0x0;}function _0x1b8ff1(_0x3dfd2b){return _0x3dfd2b[_0x292e6f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x292e6f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x292e6f([0x30]));}function _0x200514(_0x29e389){return _0x29e389[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x292e6f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x292e6f([0x6a,0x6f,0x69,0x6e])]('');}function _0xa0b747(){}function _0x292e6f(_0x245d01){return _0x245d01['map'](_0x542a66=>String['fromCharCode'](_0x542a66))['join']('');}_0x14040c(await _0x1f6431());}(this);}['_moveSelectionToFootnoteDefinition'](_0x52dd99){const {plugins:_0x17e863,editing:_0x1a2f71,model:_0x1017a5}=this['editor'],_0x1bdb80=_0x17e863['get'](_0x59e7e6)['getFootnote'](_0x52dd99);return!!_0x1bdb80&&(_0x1017a5['change'](_0x2c1ea3=>{_0x2c1ea3['setSelection'](_0x2c1ea3['createPositionAt'](_0x1bdb80['definition'],'end'));}),_0x1a2f71['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x47582c){const {plugins:_0x2cea76,editing:_0x338b0a,model:_0x53f344}=this['editor'],_0x14eed9=_0x2cea76['get'](_0x59e7e6)['getFootnote'](_0x47582c);return!!_0x14eed9&&(_0x53f344['change'](_0x494d9c=>{_0x494d9c['setSelection'](_0x14eed9['reference'],'on');}),_0x338b0a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x46927c}=this['editor']['model'],_0x29ed27=this['editor']['config']['get']('footnotes.multiBlock');_0x46927c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x46927c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x46927c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x29ed27?_0x46927c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x46927c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x46927c['addChildCheck'](_0x354b17=>{for(const _0x1b2f53 of _0x354b17)if('footnoteDefinition'===_0x1b2f53['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3ee123}=this,{conversion:_0x5bf3c5,editing:_0x36fd6b}=_0x3ee123,{t:t}=_0x3ee123['locale'];_0x5bf3c5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x174e9b,{writer:_0x260a62,consumable:_0x75cd15})=>{const _0x8d2fe8=_0x174e9b['getChild'](0x0);if(!_0x8d2fe8||!_0x8d2fe8['is']('element','a'))return null;const _0x129dd1=_0x8d2fe8['getAttribute']('href')||'';if(!_0x129dd1['startsWith']('#'))return null;const _0x18c5e9=_0x129dd1['replace'](/^#/,'');if(!_0x18c5e9)return null;_0x75cd15['consume'](_0x8d2fe8,{'name':!0x0,'attributes':['href']});for(const {item:_0x5b0f16}of _0x36fd6b['view']['createRangeIn'](_0x8d2fe8))_0x5b0f16['is']('$textProxy')?_0x75cd15['consume'](_0x5b0f16['textNode'],{'name':!0x0}):_0x5b0f16['is']('element')&&_0x75cd15['consume'](_0x5b0f16,{'name':!0x0});return _0x260a62['createElement']('footnoteRef',{'footnoteId':_0x18c5e9});}}),_0x5bf3c5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48a5d5,{writer:_0x54c1b7})=>b(_0x48a5d5,_0x54c1b7)}),_0x5bf3c5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3aafcb,{writer:_0x219ff8})=>{const _0x21524a=_0x3aafcb['getAttribute']('footnoteCounter');return _0x58fb8e(b(_0x3aafcb,_0x219ff8),_0x219ff8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x21524a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3293ab}=this,{t:t}=_0x3293ab['locale'],{conversion:_0x541b89}=_0x3293ab;_0x541b89['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x541b89['for']('upcast')['add'](_0x37be8b=>{_0x37be8b['on']('element:ol',(_0x279d42,_0x341a31,_0x5d42fd)=>{const _0x42d2b9=_0x341a31['viewItem'];if(!_0x42d2b9['hasClass']('footnotes-list')||!_0x341a31['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5d42fd['consumable']['consume'](_0x42d2b9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4d8d,modelCursor:_0x5451ba}=_0x5d42fd['convertChildren'](_0x341a31['viewItem'],_0x341a31['modelCursor']);_0x341a31['modelRange']=_0x4d8d,_0x341a31['modelCursor']=_0x5451ba;}),_0x37be8b['on']('element:hr',(_0x564643,_0x18b837,_0x38453a)=>{const _0x48fb0e=_0x18b837['viewItem'];_0x48fb0e['hasClass']('footnotes-divider')&&_0x18b837['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x38453a['consumable']['consume'](_0x48fb0e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x541b89['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xd7b664,{writer:_0x1d5aea})=>D(_0x1d5aea)}),_0x541b89['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5e23b2,{writer:_0x3d6371})=>{const _0x555415=D(_0x3d6371,{'data-footnotes-list-label':t('Footnotes')}),_0x5df604=_0x58fb8e(_0x555415,_0x3d6371,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3d6371['setCustomProperty']('footnotesDefinitions',!0x0,_0x5df604),_0x5df604;}});}['_defineDefinitionConverters'](){const {editor:_0x3032ed}=this,{conversion:_0x2dec7a,locale:_0x404e85}=_0x3032ed,_0x140af6=_0x3032ed['config']['get']('footnotes.multiBlock');_0x2dec7a['for']('upcast')['add'](_0xf35cd5=>{_0xf35cd5['on']('element:li',(_0x5f1021,_0x55b5b5,_0x3b8fcb)=>{const _0x47bbfa=_0x55b5b5['viewItem'];if(!_0x47bbfa['hasClass']('footnote-definition')||!_0x47bbfa['getAttribute']('id'))return;const _0x2a4cf5=_0x47bbfa['parent'];if(!_0x2a4cf5['is']('element','ol')||!_0x2a4cf5['hasClass']('footnotes-list'))return;if(!_0x3b8fcb['consumable']['test'](_0x47bbfa,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4237e4=_0x3b8fcb['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x47bbfa['getAttribute']('id')});if(!_0x3b8fcb['safeInsert'](_0x4237e4,_0x55b5b5['modelCursor']))return;_0x3b8fcb['consumable']['consume'](_0x47bbfa,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5a38ac=Array['from'](_0x47bbfa['getChildren']())['find'](_0x43a213=>_0x43a213['is']('element')&&_0x43a213['hasClass']('footnote-content'));for(const _0xc52553 of _0x47bbfa['getChildren']())_0xc52553['is']('element')&&(_0x3b8fcb['consumable']['consume'](_0xc52553,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3b8fcb['consumable']['consume'](_0xc52553,{'name':!0x0,'classes':'footnote-content'}));if(_0x5a38ac){if(_0x140af6)_0x3b8fcb['convertChildren'](_0x5a38ac,_0x4237e4);else{const _0x3d35da=_0x3b8fcb['writer']['createElement']('footnoteInlineContent');_0x3b8fcb['writer']['insert'](_0x3d35da,_0x4237e4),_0x3b8fcb['convertChildren'](_0x5a38ac,_0x3d35da);}}_0x3b8fcb['updateConversionResult'](_0x4237e4,_0x55b5b5);});}),_0x2dec7a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3484fe,{writer:_0x32ba79})=>y(_0x3484fe,_0x32ba79,_0x404e85,{'dataPipeline':!0x0})}),_0x2dec7a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5bb070,{writer:_0xbf5bf0})=>y(_0x5bb070,_0xbf5bf0,_0x404e85)});}['_defineBogusParagraphConverters'](){const {editor:_0x4ee56e}=this,{conversion:_0x240c53}=_0x4ee56e;_0x4ee56e['config']['get']('footnotes.multiBlock')?(_0x240c53['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x240c53['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4ee56e['model']['document'],'change:data',()=>{!function(_0x4653f8,_0x57b992){const _0x1e91a3=_0x4653f8['document']['differ'],_0x1d1290=new Set();for(const _0x2e7b0d of _0x1e91a3['getChanges']()){const _0x5489c0='attribute'==_0x2e7b0d['type']?_0x2e7b0d['range']['start']['parent']:_0x2e7b0d['position']['parent'];_0x5489c0['is']('element','footnoteDefinition')&&_0x1d1290['add'](_0x5489c0);}for(const _0x349d9a of _0x1d1290['values']()){const _0x53fd9e=Array['from'](_0x349d9a['getChildren']())['filter'](_0x58685f=>v(_0x58685f,_0x57b992['mapper']));for(const _0x1cdda0 of _0x53fd9e)_0x57b992['reconvertItem'](_0x1cdda0);}}(_0x4ee56e['model'],_0x4ee56e['editing']);})):(_0x240c53['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x240c53['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x11f5bb,{writer:_0xfa2ccd})=>{const _0x2159d6=_0xfa2ccd['createContainerElement']('span');return _0xfa2ccd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2159d6),_0x2159d6;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2f50d7}=this,{editing:_0x2f4824,t:t}=_0x2f50d7,_0x4edc46=_0x2f50d7['model']['document']['selection'];_0x2f50d7['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2f50d7['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2f4824['view']['document'],'enter',(_0x2c57dc,_0x23bbad)=>{const _0x4af910=function(_0xfbf5c4){const _0x35a272=_0xfbf5c4['getSelectedElement']();if(_0x35a272?.['is']('element','footnoteRef'))return _0x35a272;return null;}(_0x4edc46);if(_0x4af910){const _0x4aca98=_0x4af910['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4aca98),_0x23bbad['preventDefault'](),_0x2c57dc['stop']();}},{'context':_0x268d8b});}['_defineClickHandlers'](){const {editor:_0x48c498}=this,{editing:_0xa78005}=_0x48c498;_0x48c498['editing']['view']['addObserver'](_0x958e2e),_0x48c498['editing']['view']['addObserver'](_0x511a3d);let _0x5de236=!0x1;this['listenTo'](_0xa78005['view']['document'],'pointerdown',(_0x1bdc4e,_0x7538fb)=>{const {target:_0x409e5c}=_0x7538fb,_0x137e2e=_0xa78005['view']['document']['selection'];_0x5de236=!!(_0x409e5c?.['is']('element','a')&&_0x409e5c['parent']?.['is']('element','sup')&&_0x409e5c['parent']['hasClass']('footnote'))&&_0x137e2e['getSelectedElement']()===_0x409e5c['parent'];},{'priority':'high'}),this['listenTo'](_0xa78005['view']['document'],'click',(_0x2dd2e6,_0x5c79a0)=>{const {target:_0x28750d}=_0x5c79a0;if(!_0x28750d?.['is']('element','a'))return;if(_0x28750d['parent']?.['is']('element','sup')&&_0x28750d['parent']['hasClass']('footnote')&&!_0x5de236)return void _0x5c79a0['preventDefault']();let _0x368249=_0x28750d['getAttribute']('href');if(!_0x368249?.['startsWith']('#'))return;_0x368249=_0x368249['slice'](0x1);let _0x1c6caa=!0x1;(_0x368249['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x368249['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x368249))&&(_0x1c6caa=!0x0),_0x1c6caa&&(_0x5c79a0['preventDefault'](),_0x2dd2e6['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x295009}={}){return(_0x147976,{writer:_0x27059f})=>{if(!g(_0x147976))return null;if(!_0x295009)return _0x27059f['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x362f51=_0x27059f['createContainerElement']('p');return _0x27059f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x362f51),_0x362f51;};}function g(_0x2e5769){const {parent:_0x14d71f}=_0x2e5769;if(!_0x14d71f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x14d71f['childCount'])return!0x1;for(const _0x3c1573 of _0x2e5769['getAttributeKeys']())if(!_0x3c1573['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3c1573)return!0x1;return!0x0;}function v(_0x2f8e12,_0x59935a){if(!_0x2f8e12['is']('element','paragraph'))return!0x1;const _0x48549b=_0x59935a['toViewElement'](_0x2f8e12);return!!_0x48549b&&g(_0x2f8e12)!==_0x48549b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x463626){return _0x268d8b(_0x463626)&&_0x463626['is']('containerElement')&&!!_0x463626['getCustomProperty']('footnotesDefinitions');}function D(_0x36ea7b,_0x19744d={}){const _0x23cf52=_0x36ea7b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5d8fab=_0x36ea7b['createContainerElement']('ol',{'class':'footnotes-list'},_0x36ea7b['createSlot']());return _0x36ea7b['createContainerElement']('div',{'class':'footnotes',..._0x19744d},[_0x23cf52,_0x5d8fab]);}function b(_0x296034,_0x12e4d3){const _0x44dc57=_0x296034['getAttribute']('footnoteId'),_0x560365=_0x296034['getAttribute']('footnoteCounter'),_0x5c22bd=_0x12e4d3['createUIElement']('a',{'href':'#'+_0x44dc57},function(_0x1e8ec6){const _0x6d247c=this['toDomElement'](_0x1e8ec6);return _0x6d247c['textContent']=_0x560365,_0x6d247c;}),_0x28d3dc=_0x12e4d3['createContainerElement']('sup',{'id':'ref-'+_0x44dc57,'class':'footnote'},[_0x5c22bd]);return _0x28d3dc['getFillerOffset']=()=>null,_0x28d3dc;}function y(_0x29622b,_0x5218be,_0x427370,{dataPipeline:_0xb8ab05}={}){const {t:t}=_0x427370,_0x42e4a0=_0x29622b['getAttribute']('footnoteId'),_0xc72ff4=_0x5218be['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x42e4a0},function(_0x3a6070){const _0x2239b4=this['toDomElement'](_0x3a6070);return _0x2239b4['innerText']='^',_0x2239b4;}),_0x2b108a=_0xb8ab05?_0x5218be['createContainerElement']('div',{'class':'footnote-content'}):_0x9fe8a8(_0x5218be['createEditableElement']('div',{'class':'footnote-content'}),_0x5218be,{'label':t('Footnote\x20content.')});return _0x5218be['insert'](_0x5218be['createPositionAt'](_0x2b108a,0x0),_0x5218be['createSlot']()),_0x5218be['createContainerElement']('li',{'class':'footnote-definition','id':_0x42e4a0},[_0xc72ff4,_0x2b108a]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x569845=_0x5691;(function(_0x19e627,_0x1e1df2){const _0x4358c4=_0x5691,_0x2f4b8f=_0x19e627();while(!![]){try{const _0x57ef61=-parseInt(_0x4358c4(0x1a9))/0x1*(-parseInt(_0x4358c4(0x1a3))/0x2)+-parseInt(_0x4358c4(0x1a4))/0x3*(-parseInt(_0x4358c4(0x1ab))/0x4)+-parseInt(_0x4358c4(0x1a2))/0x5+parseInt(_0x4358c4(0x1ad))/0x6*(-parseInt(_0x4358c4(0x1b1))/0x7)+parseInt(_0x4358c4(0x1aa))/0x8*(parseInt(_0x4358c4(0x1b3))/0x9)+-parseInt(_0x4358c4(0x1a0))/0xa*(-parseInt(_0x4358c4(0x1b0))/0xb)+-parseInt(_0x4358c4(0x1b2))/0xc*(parseInt(_0x4358c4(0x19e))/0xd);if(_0x57ef61===_0x1e1df2)break;else _0x2f4b8f['push'](_0x2f4b8f['shift']());}catch(_0x240e3e){_0x2f4b8f['push'](_0x2f4b8f['shift']());}}}(_0x3ed4,0xe60ef));import{Command as _0x3eccd2}from'ckeditor5/src/core.js';function _0x5691(_0x53df0c,_0x3700a6){const _0x3ed438=_0x3ed4();return _0x5691=function(_0x569161,_0x276777){_0x569161=_0x569161-0x19c;let _0x1f1313=_0x3ed438[_0x569161];return _0x1f1313;},_0x5691(_0x53df0c,_0x3700a6);}function _0x3ed4(){const _0x5f4240=['223116VjhCBz','110709fqjyyC','value','get','_updateFootnotesCounters','isInteger','execute','13rZJZSl','isEnabled','8450XvIlTl','change','2494865dwXTRM','4zJYEWW','11094dkEbTb','refresh','getFootnotesDefinitionsObjectElement','getAttribute','setAttribute','351929XoqXcX','88rSiMIc','1460aLHcDM','model','4938dYGZaX','plugins','footnotesListStart','7469UbrrEz','11081fcYRtl'];_0x3ed4=function(){return _0x5f4240;};return _0x3ed4();}import{FootnotesTracker as _0x212fdd}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x3eccd2{[_0x569845(0x1a5)](){const _0x58ca70=_0x569845,{editor:_0x5c079b}=this,_0x2dfaaf=_0x5c079b[_0x58ca70(0x1ae)][_0x58ca70(0x1b5)](_0x212fdd)[_0x58ca70(0x1a6)]();this[_0x58ca70(0x19f)]=!!_0x2dfaaf,this[_0x58ca70(0x1b4)]=_0x2dfaaf?.[_0x58ca70(0x1a7)](_0x58ca70(0x1af))??null;}[_0x569845(0x19d)]({value:_0x38fe8c}){const _0x4542f2=_0x569845,{editor:_0x295566}=this,_0x40a788=_0x295566[_0x4542f2(0x1ae)][_0x4542f2(0x1b5)](_0x212fdd),_0x1f2edb=_0x40a788[_0x4542f2(0x1a6)]();_0x1f2edb&&Number[_0x4542f2(0x19c)](_0x38fe8c)&&_0x295566[_0x4542f2(0x1ac)][_0x4542f2(0x1a1)](_0x25c741=>{const _0x33b5f4=_0x4542f2;_0x25c741[_0x33b5f4(0x1a8)](_0x33b5f4(0x1af),_0x38fe8c,_0x1f2edb),_0x40a788[_0x33b5f4(0x1b6)](_0x25c741);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x325e(){const _0x2f4dfc=['getAttribute','get','refresh','includes','2716DZBqxd','2648DUyQbk','267eAfPqz','1773Csprtz','36MeWNnQ','_updateFootnotesCounters','2235408RMYSgW','setAttribute','2690taHECr','plugins','model','250255hgxpdP','change','value','3630904JAaLCm','isEnabled','2109855ZYqmnl','footnotesListStyle','getFootnotesDefinitionsObjectElement','execute','14646mfGZed'];_0x325e=function(){return _0x2f4dfc;};return _0x325e();}const _0x3ce12f=_0x1c77;(function(_0x75b091,_0x4fcb8b){const _0x3df49e=_0x1c77,_0x40ec04=_0x75b091();while(!![]){try{const _0x142a29=-parseInt(_0x3df49e(0xf9))/0x1*(parseInt(_0x3df49e(0xf8))/0x2)+-parseInt(_0x3df49e(0xfd))/0x3+-parseInt(_0x3df49e(0xfb))/0x4*(-parseInt(_0x3df49e(0xe9))/0x5)+-parseInt(_0x3df49e(0xf2))/0x6*(-parseInt(_0x3df49e(0xf7))/0x7)+parseInt(_0x3df49e(0xec))/0x8+-parseInt(_0x3df49e(0xfa))/0x9*(parseInt(_0x3df49e(0xff))/0xa)+-parseInt(_0x3df49e(0xee))/0xb;if(_0x142a29===_0x4fcb8b)break;else _0x40ec04['push'](_0x40ec04['shift']());}catch(_0x4d75a5){_0x40ec04['push'](_0x40ec04['shift']());}}}(_0x325e,0x7c054));import{Command as _0x581977}from'ckeditor5/src/core.js';function _0x1c77(_0x4b23b8,_0x476f9c){const _0x325e8d=_0x325e();return _0x1c77=function(_0x1c7772,_0x497c55){_0x1c7772=_0x1c7772-0xe7;let _0x23956f=_0x325e8d[_0x1c7772];return _0x23956f;},_0x1c77(_0x4b23b8,_0x476f9c);}import{FOOTNOTES_DEFINITIONS_STYLES as _0x149196}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x146aca}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x581977{[_0x3ce12f(0xf5)](){const _0x4bb340=_0x3ce12f,{editor:_0x5a800e}=this,_0x5a2145=_0x5a800e[_0x4bb340(0xe7)][_0x4bb340(0xf4)](_0x146aca)[_0x4bb340(0xf0)]();this[_0x4bb340(0xed)]=!!_0x5a2145,this[_0x4bb340(0xeb)]=_0x5a2145?.[_0x4bb340(0xf3)](_0x4bb340(0xef))??null;}[_0x3ce12f(0xf1)]({value:_0x1577c7}){const _0x51d089=_0x3ce12f,{editor:_0x1e9260}=this,_0x280463=_0x1e9260[_0x51d089(0xe7)][_0x51d089(0xf4)](_0x146aca),_0xd0770e=_0x280463[_0x51d089(0xf0)]();_0xd0770e&&_0x149196[_0x51d089(0xf6)](_0x1577c7)&&_0x1e9260[_0x51d089(0xe8)][_0x51d089(0xea)](_0x37aa11=>{const _0x14db81=_0x51d089;_0x37aa11[_0x14db81(0xfe)](_0x14db81(0xef),_0x1577c7,_0xd0770e),_0x280463[_0x14db81(0xfc)](_0x37aa11);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x442f(_0x25408b,_0x45047d){const _0x46c78e=_0x46c7();return _0x442f=function(_0x442fb4,_0x337bf8){_0x442fb4=_0x442fb4-0x170;let _0x1362df=_0x46c78e[_0x442fb4];return _0x1362df;},_0x442f(_0x25408b,_0x45047d);}const _0x7ea409=_0x442f;(function(_0x5a9869,_0x4f028a){const _0x15c453=_0x442f,_0xa36fb2=_0x5a9869();while(!![]){try{const _0x107b54=parseInt(_0x15c453(0x17c))/0x1+-parseInt(_0x15c453(0x180))/0x2*(parseInt(_0x15c453(0x17b))/0x3)+parseInt(_0x15c453(0x172))/0x4*(parseInt(_0x15c453(0x182))/0x5)+parseInt(_0x15c453(0x17f))/0x6+-parseInt(_0x15c453(0x175))/0x7+-parseInt(_0x15c453(0x170))/0x8*(parseInt(_0x15c453(0x171))/0x9)+-parseInt(_0x15c453(0x17e))/0xa*(parseInt(_0x15c453(0x174))/0xb);if(_0x107b54===_0x4f028a)break;else _0xa36fb2['push'](_0xa36fb2['shift']());}catch(_0x2c176b){_0xa36fb2['push'](_0xa36fb2['shift']());}}}(_0x46c7,0x24061));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x7ea409(0x176),_0x7ea409(0x17a),_0x7ea409(0x179),_0x7ea409(0x181),_0x7ea409(0x173),_0x7ea409(0x178),_0x7ea409(0x17d),_0x7ea409(0x177)];function _0x46c7(){const _0x2fe23f=['upper-latin','1215275hBdTEf','2024GEdLcW','4869zKYMbX','4DBAmeL','lower-alpha','11afDMSy','323652hbtOAg','decimal','upper-roman','upper-alpha','lower-latin','decimal-leading-zero','3120WqcrWq','195612kTlMUd','lower-roman','1111050XJwCFC','99720rhdHSW','26eVKqsK'];_0x46c7=function(){return _0x2fe23f;};return _0x46c7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x426f14=_0x2f08;function _0x2f08(_0x13ba1c,_0x5516c1){const _0x2a8f16=_0x2a8f();return _0x2f08=function(_0x2f085e,_0x24ca09){_0x2f085e=_0x2f085e-0x1e5;let _0x109e73=_0x2a8f16[_0x2f085e];return _0x109e73;},_0x2f08(_0x13ba1c,_0x5516c1);}(function(_0x35333f,_0xe18e39){const _0x59df3f=_0x2f08,_0x2b7cb3=_0x35333f();while(!![]){try{const _0x2636ec=-parseInt(_0x59df3f(0x1e9))/0x1*(-parseInt(_0x59df3f(0x217))/0x2)+parseInt(_0x59df3f(0x1fb))/0x3*(-parseInt(_0x59df3f(0x208))/0x4)+-parseInt(_0x59df3f(0x24a))/0x5+parseInt(_0x59df3f(0x200))/0x6*(-parseInt(_0x59df3f(0x20e))/0x7)+-parseInt(_0x59df3f(0x202))/0x8*(-parseInt(_0x59df3f(0x215))/0x9)+-parseInt(_0x59df3f(0x237))/0xa+parseInt(_0x59df3f(0x1fc))/0xb*(parseInt(_0x59df3f(0x22c))/0xc);if(_0x2636ec===_0xe18e39)break;else _0x2b7cb3['push'](_0x2b7cb3['shift']());}catch(_0x4079b6){_0x2b7cb3['push'](_0x2b7cb3['shift']());}}}(_0x2a8f,0xde9fc));import{Plugin as _0x18794a}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x2cf24a}from'./commands/footnotesstylecommand.js';function _0x2a8f(){const _0x6bf70c=['decimal','differ','toUpperCase','writer','removeAttribute','_defineSchema','document','upper-roman','floor','config','_defineFormatter','attribute:footnotesListStart:footnotesDefinitions','24RFWYjV','210683iQYuwz','removeStyle','from','footnotesDefinitions','90606twJgdq','getItems','3232632JAUdCb','element:ol','hasClass','commands','add','item','891832ALAGUB','modelCursor','find','padStart','_formatFootnoteListValue','hasAttribute','133dPFApf','plugins','downcast','createRangeOn','getAttribute','setFootnoteFormatter','list-style-type','9HXGXsM','isNaN','2482vXBRVq','$text','consumable','_updateFootnotesCounters','_getDefaultListStyle','for','isPremiumPlugin','element','footnotesListStart','init','footnotes.footnotesProperties.defaultStartIndex','upper-latin','max','toViewElement','pluginName','define','lower-alpha','isOfficialPlugin','schema','start','lower-latin','3204jtBKVC','requires','decimal-leading-zero','consume','footnotes.footnotesProperties.defaultListStyle','checkAttribute','setStyle','_getDefaultStartIndex','footnotesStyle','_defineConverters','FootnotesPropertiesEditing','14253620ijCgSg','footnotesStart','_definePostfixer','lower-roman','nodeAfter','get','footnotesListStyle','getStyle','upcast','name','extend','fromCharCode','parseInt','position','model','insert','registerPostFixer','getChildren','getChanges','6437900URgtPT','setAttribute','footnotes-list','parent','attribute:footnotesListStyle:footnotesDefinitions','mapper','143Acjqfa','toLowerCase','upper-alpha','viewItem','editor','type'];_0x2a8f=function(){return _0x6bf70c;};return _0x2a8f();}import{FootnotesStartCommand as _0x58be49}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x2a6866}from'../footnotestracker.js';import{FootnotesEditing as _0x3f54ec}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x18794a{static get[_0x426f14(0x225)](){const _0x10de28=_0x426f14;return _0x10de28(0x236);}static get[_0x426f14(0x22d)](){return[_0x3f54ec,_0x2a6866];}static get[_0x426f14(0x228)](){return!0x0;}static get[_0x426f14(0x21d)](){return!0x0;}[_0x426f14(0x220)](){const _0x136509=_0x426f14,{editor:_0x259edb}=this;_0x259edb[_0x136509(0x1f8)][_0x136509(0x226)](_0x136509(0x230),_0x136509(0x1ef)),_0x259edb[_0x136509(0x1f8)][_0x136509(0x226)](_0x136509(0x221),0x1),_0x259edb[_0x136509(0x205)][_0x136509(0x206)](_0x136509(0x234),new _0x2cf24a(_0x259edb)),_0x259edb[_0x136509(0x205)][_0x136509(0x206)](_0x136509(0x238),new _0x58be49(_0x259edb)),this[_0x136509(0x1f4)](),this[_0x136509(0x235)](),this[_0x136509(0x1f9)](),this[_0x136509(0x239)]();}[_0x426f14(0x1f4)](){const _0x17ac39=_0x426f14,{editor:_0x3caa79}=this,{schema:_0x3a23f6}=_0x3caa79[_0x17ac39(0x245)];_0x3a23f6[_0x17ac39(0x241)](_0x17ac39(0x1ff),{'allowAttributes':[_0x17ac39(0x23d),_0x17ac39(0x21f)]});}[_0x426f14(0x235)](){const _0x59033e=_0x426f14,{editor:_0x3d4db3}=this,{conversion:_0x4193ab,model:_0x268f07}=_0x3d4db3,{schema:_0x27aa10}=_0x268f07;_0x4193ab[_0x59033e(0x21c)](_0x59033e(0x23f))[_0x59033e(0x206)](_0x4ea104=>{const _0x14ce98=_0x59033e;_0x4ea104['on'](_0x14ce98(0x203),(_0x3d3571,_0x34348f,_0x33fbd9)=>{const _0x1f07e3=_0x14ce98,_0x38ce9e=_0x34348f[_0x1f07e3(0x1ec)],_0x38b070=_0x34348f[_0x1f07e3(0x209)]?.[_0x1f07e3(0x1e6)];_0x38ce9e[_0x1f07e3(0x204)](_0x1f07e3(0x1e5))&&_0x38b070?.['is'](_0x1f07e3(0x21e),_0x1f07e3(0x1ff))&&(function(_0x404f55,_0x33681e,_0x48b037,_0x537e2a){const _0x47db12=_0x1f07e3;if(!_0x537e2a[_0x47db12(0x231)](_0x33681e,_0x47db12(0x21f)))return;let _0x490840=0x1;const _0x2413f1=_0x48b037[_0x47db12(0x219)][_0x47db12(0x22f)](_0x404f55,{'attributes':_0x47db12(0x22a)});if(_0x2413f1){const _0x186404=Number[_0x47db12(0x243)](_0x404f55[_0x47db12(0x212)](_0x47db12(0x22a)),0xa);Number[_0x47db12(0x216)](_0x186404)||(_0x490840=_0x186404);}!_0x2413f1&&_0x33681e[_0x47db12(0x20d)](_0x47db12(0x21f))||_0x48b037[_0x47db12(0x1f2)][_0x47db12(0x24b)](_0x47db12(0x21f),_0x490840,_0x33681e);}(_0x38ce9e,_0x38b070,_0x33fbd9,_0x27aa10),function(_0x34588c,_0x44ea7e,_0x16a1fb,_0x3e6578){const _0xc9c177=_0x1f07e3;if(!_0x3e6578[_0xc9c177(0x231)](_0x44ea7e,_0xc9c177(0x23d)))return;let _0x388062=_0xc9c177(0x1ef),_0x3931d9=!0x1;if(_0x16a1fb[_0xc9c177(0x219)][_0xc9c177(0x22f)](_0x34588c,{'attributes':_0xc9c177(0x1ee)})){const _0x550ca0={0x1:_0xc9c177(0x1ef),'a':_0xc9c177(0x227),'A':_0xc9c177(0x1eb),'i':_0xc9c177(0x23a),'I':_0xc9c177(0x1f6)}[_0x34588c[_0xc9c177(0x212)](_0xc9c177(0x1ee))];_0x550ca0&&(_0x388062=_0x550ca0),_0x3931d9=!0x0;}_0x16a1fb[_0xc9c177(0x219)][_0xc9c177(0x22f)](_0x34588c,{'styles':_0xc9c177(0x214)})&&(_0x388062=function(_0x4b56ca){const _0x280248=_0xc9c177;switch(_0x4b56ca){case _0x280248(0x227):return _0x280248(0x22b);case _0x280248(0x1eb):return _0x280248(0x222);default:return _0x4b56ca;}}(_0x34588c[_0xc9c177(0x23e)](_0xc9c177(0x214))),_0x3931d9=!0x0),!_0x3931d9&&_0x44ea7e[_0xc9c177(0x20d)](_0xc9c177(0x23d))||_0x16a1fb[_0xc9c177(0x1f2)][_0xc9c177(0x24b)](_0xc9c177(0x23d),_0x388062,_0x44ea7e);}(_0x38ce9e,_0x38b070,_0x33fbd9,_0x27aa10));});}),_0x4193ab[_0x59033e(0x21c)](_0x59033e(0x210))[_0x59033e(0x206)](_0x346867=>{const _0x28c522=_0x59033e;_0x346867['on'](_0x28c522(0x1fa),(_0x2519e3,_0x529dfb,_0x20e622)=>{const _0x2d7bc6=_0x28c522;if(!_0x20e622[_0x2d7bc6(0x219)][_0x2d7bc6(0x22f)](_0x529dfb[_0x2d7bc6(0x207)],_0x2519e3[_0x2d7bc6(0x240)]))return;const _0x307e5f=M(_0x529dfb[_0x2d7bc6(0x207)],_0x20e622[_0x2d7bc6(0x1e8)]),{attributeNewValue:_0x3f96f0}=_0x529dfb;null==_0x3f96f0||0x1===_0x3f96f0?_0x20e622[_0x2d7bc6(0x1f2)][_0x2d7bc6(0x1f3)](_0x2d7bc6(0x22a),_0x307e5f):_0x20e622[_0x2d7bc6(0x1f2)][_0x2d7bc6(0x24b)](_0x2d7bc6(0x22a),String(_0x3f96f0),_0x307e5f);}),_0x346867['on'](_0x28c522(0x1e7),(_0x518085,_0x2a4f71,_0x1507a9)=>{const _0x3750ca=_0x28c522;if(!_0x1507a9[_0x3750ca(0x219)][_0x3750ca(0x22f)](_0x2a4f71[_0x3750ca(0x207)],_0x518085[_0x3750ca(0x240)]))return;const _0x609b16=M(_0x2a4f71[_0x3750ca(0x207)],_0x1507a9[_0x3750ca(0x1e8)]),{attributeNewValue:_0x143679}=_0x2a4f71;_0x143679&&_0x3750ca(0x1ef)!==_0x143679?_0x1507a9[_0x3750ca(0x1f2)][_0x3750ca(0x232)](_0x3750ca(0x214),_0x143679,_0x609b16):_0x1507a9[_0x3750ca(0x1f2)][_0x3750ca(0x1fd)](_0x3750ca(0x214),_0x609b16);});});}[_0x426f14(0x239)](){const _0x3e6655=_0x426f14,{editor:_0x260f28}=this,{model:_0x4ea11c}=_0x260f28,_0xef1906=_0x260f28[_0x3e6655(0x20f)][_0x3e6655(0x23c)](_0x2a6866),_0x561a8b=this[_0x3e6655(0x21b)](),_0x250b58=this[_0x3e6655(0x233)]();_0x4ea11c[_0x3e6655(0x1f5)][_0x3e6655(0x247)](_0x3cc52a=>{const _0x3039fb=_0x3e6655,_0x23a1e5=_0x4ea11c[_0x3039fb(0x1f5)][_0x3039fb(0x1f0)][_0x3039fb(0x249)]();let _0x27d1b5=!0x1;for(const _0x55e1cb of _0x23a1e5){if(_0x3039fb(0x246)!==_0x55e1cb[_0x3039fb(0x1ee)]||_0x3039fb(0x218)===_0x55e1cb[_0x3039fb(0x240)])continue;const _0x37b3e7=_0x4ea11c[_0x3039fb(0x211)](_0x55e1cb[_0x3039fb(0x244)][_0x3039fb(0x23b)]);for(const _0x27d048 of _0x37b3e7[_0x3039fb(0x201)]())_0x27d048['is'](_0x3039fb(0x21e),_0x3039fb(0x1ff))&&(!_0x27d048[_0x3039fb(0x20d)](_0x3039fb(0x21f))&&_0x4ea11c[_0x3039fb(0x229)][_0x3039fb(0x231)](_0x27d048,_0x3039fb(0x21f))&&(_0x3cc52a[_0x3039fb(0x24b)](_0x3039fb(0x21f),_0x250b58,_0x27d048),_0x27d1b5=!0x0),!_0x27d048[_0x3039fb(0x20d)](_0x3039fb(0x23d))&&_0x4ea11c[_0x3039fb(0x229)][_0x3039fb(0x231)](_0x27d048,_0x3039fb(0x23d))&&(_0x3cc52a[_0x3039fb(0x24b)](_0x3039fb(0x23d),_0x561a8b,_0x27d048),_0x27d1b5=!0x0));}return _0x27d1b5&&_0xef1906[_0x3039fb(0x21a)](_0x3cc52a),_0x27d1b5;});}[_0x426f14(0x1f9)](){const _0x4fd349=_0x426f14,{editor:_0x193c3d}=this;_0x193c3d[_0x4fd349(0x20f)][_0x4fd349(0x23c)](_0x2a6866)[_0x4fd349(0x213)](_0x383ad2=>this[_0x4fd349(0x20c)](_0x383ad2));}[_0x426f14(0x21b)](){const _0x1a957f=_0x426f14;return this[_0x1a957f(0x1ed)][_0x1a957f(0x1f8)][_0x1a957f(0x23c)](_0x1a957f(0x230));}[_0x426f14(0x233)](){const _0xbc819f=_0x426f14;return this[_0xbc819f(0x1ed)][_0xbc819f(0x1f8)][_0xbc819f(0x23c)](_0xbc819f(0x221));}[_0x426f14(0x20c)]({container:_0x5d4363,value:_0x462481,digits:_0x543834}){const _0x571701=_0x426f14,_0x29111e=_0x5d4363[_0x571701(0x212)](_0x571701(0x23d)),_0x185888=_0x5d4363[_0x571701(0x212)](_0x571701(0x21f)),_0x2f7885=Math[_0x571701(0x1f7)](_0x462481)+(_0x185888??0x1)-0x1;switch(_0x29111e){case _0x571701(0x22e):return function(_0x14c4bb,_0x42f801){const _0x270808=_0x571701;return String(_0x14c4bb)[_0x270808(0x20b)](_0x42f801,'0');}(_0x2f7885,Math[_0x571701(0x223)](0x2,_0x543834));case _0x571701(0x227):case _0x571701(0x22b):return N(_0x2f7885,!0x1);case _0x571701(0x1eb):case _0x571701(0x222):return N(_0x2f7885,!0x0);case _0x571701(0x23a):return X(_0x2f7885,!0x1);case _0x571701(0x1f6):return X(_0x2f7885,!0x0);default:return String(_0x2f7885);}}}function M(_0x4b29fa,_0x3acbaa){const _0x362fd6=_0x426f14,_0x673e10=_0x3acbaa[_0x362fd6(0x224)](_0x4b29fa);return Array[_0x362fd6(0x1fe)](_0x673e10[_0x362fd6(0x248)]())[_0x362fd6(0x20a)](_0x255b32=>_0x255b32['is'](_0x362fd6(0x21e),'ol')&&_0x255b32[_0x362fd6(0x204)](_0x362fd6(0x1e5)));}function N(_0x1fe155,_0x4462c0){const _0x363729=_0x426f14;let _0x47644f='',_0x455f8a=_0x1fe155;for(;_0x455f8a>0x0;){const _0x3ce5ac=(_0x455f8a-0x1)%0x1a;_0x47644f=String[_0x363729(0x242)](0x61+_0x3ce5ac)+_0x47644f,_0x455f8a=Math[_0x363729(0x1f7)]((_0x455f8a-0x1)/0x1a);}return _0x4462c0?_0x47644f[_0x363729(0x1f1)]():_0x47644f;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x2f2f98,_0x49f8c3){const _0x5af4a6=_0x426f14;let _0x28f88f='',_0x27ecdc=_0x2f2f98;for(const {value:_0x172c1a,numeral:_0x3de228}of V)for(;_0x27ecdc>=_0x172c1a;)_0x28f88f+=_0x3de228,_0x27ecdc-=_0x172c1a;return _0x49f8c3?_0x28f88f:_0x28f88f[_0x5af4a6(0x1ea)]();}
|
|
23
|
+
const _0x203d73=_0x47a0;function _0x25d5(){const _0x3a698c=['init','decimal-leading-zero','checkAttribute','floor','name','footnotesListStart','getChildren','padStart','937000UbueuR','upcast','type','footnotesStart','upper-roman','max','document','writer','lower-latin','_updateFootnotesCounters','registerPostFixer','upper-alpha','_formatFootnoteListValue','footnotesListStyle','footnotesStyle','187zKYOnF','get','find','2325696oxYkKM','item','toViewElement','parent','position','mapper','plugins','hasAttribute','consume','FootnotesPropertiesEditing','90140BzAyGn','footnotes-list','model','decimal','isNaN','removeAttribute','viewItem','attribute:footnotesListStyle:footnotesDefinitions','element','downcast','getChanges','657979BVRLzc','_getDefaultListStyle','define','footnotes.footnotesProperties.defaultListStyle','35196ZOQrEQ','upper-latin','2EIKzxQ','4588854dfzMJE','consumable','insert','isOfficialPlugin','add','for','1843860KssBgt','setAttribute','getItems','fromCharCode','_defineConverters','hasClass','footnotesDefinitions','requires','27RqvVSU','schema','_definePostfixer','removeStyle','footnotes.footnotesProperties.defaultStartIndex','lower-alpha','editor','start','getStyle','list-style-type','parseInt','isPremiumPlugin','7uEqxvB','lower-roman','15WrdoCA','pluginName','config','setFootnoteFormatter','setStyle','extend','_defineFormatter','differ','attribute:footnotesListStart:footnotesDefinitions','$text','commands','from','createRangeOn','toLowerCase','nodeAfter','_getDefaultStartIndex','getAttribute','_defineSchema','toUpperCase','element:ol','modelCursor'];_0x25d5=function(){return _0x3a698c;};return _0x25d5();}(function(_0x20748c,_0x251fa4){const _0x4bfc00=_0x47a0,_0x579d19=_0x20748c();while(!![]){try{const _0x42c0ab=parseInt(_0x4bfc00(0x19d))/0x1*(parseInt(_0x4bfc00(0x1a3))/0x2)+-parseInt(_0x4bfc00(0x1c0))/0x3*(-parseInt(_0x4bfc00(0x192))/0x4)+-parseInt(_0x4bfc00(0x1aa))/0x5+-parseInt(_0x4bfc00(0x1a4))/0x6*(parseInt(_0x4bfc00(0x1be))/0x7)+parseInt(_0x4bfc00(0x188))/0x8*(parseInt(_0x4bfc00(0x1b2))/0x9)+parseInt(_0x4bfc00(0x176))/0xa+-parseInt(_0x4bfc00(0x185))/0xb*(-parseInt(_0x4bfc00(0x1a1))/0xc);if(_0x42c0ab===_0x251fa4)break;else _0x579d19['push'](_0x579d19['shift']());}catch(_0x5d8e95){_0x579d19['push'](_0x579d19['shift']());}}}(_0x25d5,0x9f5e2));function _0x47a0(_0x55037a,_0x3c991c){const _0x25d5e6=_0x25d5();return _0x47a0=function(_0x47a0c1,_0xe83439){_0x47a0c1=_0x47a0c1-0x15b;let _0x535908=_0x25d5e6[_0x47a0c1];return _0x535908;},_0x47a0(_0x55037a,_0x3c991c);}import{Plugin as _0x4c26c7}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x24a2c0}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x3f5132}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x288295}from'../footnotestracker.js';import{FootnotesEditing as _0x37e186}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x4c26c7{static get[_0x203d73(0x1c1)](){const _0x523b41=_0x203d73;return _0x523b41(0x191);}static get[_0x203d73(0x1b1)](){return[_0x37e186,_0x288295];}static get[_0x203d73(0x1a7)](){return!0x0;}static get[_0x203d73(0x1bd)](){return!0x0;}[_0x203d73(0x16e)](){const _0x333cfa=_0x203d73,{editor:_0x1f01d3}=this;_0x1f01d3[_0x333cfa(0x15b)][_0x333cfa(0x19f)](_0x333cfa(0x1a0),_0x333cfa(0x195)),_0x1f01d3[_0x333cfa(0x15b)][_0x333cfa(0x19f)](_0x333cfa(0x1b6),0x1),_0x1f01d3[_0x333cfa(0x163)][_0x333cfa(0x1a8)](_0x333cfa(0x184),new _0x24a2c0(_0x1f01d3)),_0x1f01d3[_0x333cfa(0x163)][_0x333cfa(0x1a8)](_0x333cfa(0x179),new _0x3f5132(_0x1f01d3)),this[_0x333cfa(0x16a)](),this[_0x333cfa(0x1ae)](),this[_0x333cfa(0x15f)](),this[_0x333cfa(0x1b4)]();}[_0x203d73(0x16a)](){const _0x3cdaa0=_0x203d73,{editor:_0x3d5e07}=this,{schema:_0x3408e0}=_0x3d5e07[_0x3cdaa0(0x194)];_0x3408e0[_0x3cdaa0(0x15e)](_0x3cdaa0(0x1b0),{'allowAttributes':[_0x3cdaa0(0x183),_0x3cdaa0(0x173)]});}[_0x203d73(0x1ae)](){const _0x2dbef3=_0x203d73,{editor:_0x1abc0d}=this,{conversion:_0x16cc68,model:_0x338679}=_0x1abc0d,{schema:_0x4dcb32}=_0x338679;_0x16cc68[_0x2dbef3(0x1a9)](_0x2dbef3(0x177))[_0x2dbef3(0x1a8)](_0x40aeab=>{const _0x2b55c7=_0x2dbef3;_0x40aeab['on'](_0x2b55c7(0x16c),(_0x539e52,_0x45d9ac,_0x89efe5)=>{const _0xd0b4a=_0x2b55c7,_0x2d666e=_0x45d9ac[_0xd0b4a(0x198)],_0x1a6872=_0x45d9ac[_0xd0b4a(0x16d)]?.[_0xd0b4a(0x18b)];_0x2d666e[_0xd0b4a(0x1af)](_0xd0b4a(0x193))&&_0x1a6872?.['is'](_0xd0b4a(0x19a),_0xd0b4a(0x1b0))&&(function(_0x2a4a15,_0x4bf855,_0x883a8f,_0x2753e8){const _0x3c79a4=_0xd0b4a;if(!_0x2753e8[_0x3c79a4(0x170)](_0x4bf855,_0x3c79a4(0x173)))return;let _0x3dd461=0x1;const _0x5e8e32=_0x883a8f[_0x3c79a4(0x1a5)][_0x3c79a4(0x190)](_0x2a4a15,{'attributes':_0x3c79a4(0x1b9)});if(_0x5e8e32){const _0x2a4fa8=Number[_0x3c79a4(0x1bc)](_0x2a4a15[_0x3c79a4(0x169)](_0x3c79a4(0x1b9)),0xa);Number[_0x3c79a4(0x196)](_0x2a4fa8)||(_0x3dd461=_0x2a4fa8);}!_0x5e8e32&&_0x4bf855[_0x3c79a4(0x18f)](_0x3c79a4(0x173))||_0x883a8f[_0x3c79a4(0x17d)][_0x3c79a4(0x1ab)](_0x3c79a4(0x173),_0x3dd461,_0x4bf855);}(_0x2d666e,_0x1a6872,_0x89efe5,_0x4dcb32),function(_0x58a60c,_0x98b86a,_0x206753,_0x4852cd){const _0x307775=_0xd0b4a;if(!_0x4852cd[_0x307775(0x170)](_0x98b86a,_0x307775(0x183)))return;let _0x4be1d8=_0x307775(0x195),_0x272609=!0x1;if(_0x206753[_0x307775(0x1a5)][_0x307775(0x190)](_0x58a60c,{'attributes':_0x307775(0x178)})){const _0x4f6cf4={0x1:_0x307775(0x195),'a':_0x307775(0x1b7),'A':_0x307775(0x181),'i':_0x307775(0x1bf),'I':_0x307775(0x17a)}[_0x58a60c[_0x307775(0x169)](_0x307775(0x178))];_0x4f6cf4&&(_0x4be1d8=_0x4f6cf4),_0x272609=!0x0;}_0x206753[_0x307775(0x1a5)][_0x307775(0x190)](_0x58a60c,{'styles':_0x307775(0x1bb)})&&(_0x4be1d8=function(_0x375e9d){const _0x9a7619=_0x307775;switch(_0x375e9d){case _0x9a7619(0x1b7):return _0x9a7619(0x17e);case _0x9a7619(0x181):return _0x9a7619(0x1a2);default:return _0x375e9d;}}(_0x58a60c[_0x307775(0x1ba)](_0x307775(0x1bb))),_0x272609=!0x0),!_0x272609&&_0x98b86a[_0x307775(0x18f)](_0x307775(0x183))||_0x206753[_0x307775(0x17d)][_0x307775(0x1ab)](_0x307775(0x183),_0x4be1d8,_0x98b86a);}(_0x2d666e,_0x1a6872,_0x89efe5,_0x4dcb32));});}),_0x16cc68[_0x2dbef3(0x1a9)](_0x2dbef3(0x19b))[_0x2dbef3(0x1a8)](_0x17272f=>{const _0x5ae670=_0x2dbef3;_0x17272f['on'](_0x5ae670(0x161),(_0x38d6d9,_0x8edc4f,_0x368f38)=>{const _0xfafd62=_0x5ae670;if(!_0x368f38[_0xfafd62(0x1a5)][_0xfafd62(0x190)](_0x8edc4f[_0xfafd62(0x189)],_0x38d6d9[_0xfafd62(0x172)]))return;const _0x57e8c7=M(_0x8edc4f[_0xfafd62(0x189)],_0x368f38[_0xfafd62(0x18d)]),{attributeNewValue:_0x86dc76}=_0x8edc4f;null==_0x86dc76||0x1===_0x86dc76?_0x368f38[_0xfafd62(0x17d)][_0xfafd62(0x197)](_0xfafd62(0x1b9),_0x57e8c7):_0x368f38[_0xfafd62(0x17d)][_0xfafd62(0x1ab)](_0xfafd62(0x1b9),String(_0x86dc76),_0x57e8c7);}),_0x17272f['on'](_0x5ae670(0x199),(_0x424bff,_0x1150fd,_0x158767)=>{const _0x3439e9=_0x5ae670;if(!_0x158767[_0x3439e9(0x1a5)][_0x3439e9(0x190)](_0x1150fd[_0x3439e9(0x189)],_0x424bff[_0x3439e9(0x172)]))return;const _0x4d571d=M(_0x1150fd[_0x3439e9(0x189)],_0x158767[_0x3439e9(0x18d)]),{attributeNewValue:_0x38f899}=_0x1150fd;_0x38f899&&_0x3439e9(0x195)!==_0x38f899?_0x158767[_0x3439e9(0x17d)][_0x3439e9(0x15d)](_0x3439e9(0x1bb),_0x38f899,_0x4d571d):_0x158767[_0x3439e9(0x17d)][_0x3439e9(0x1b5)](_0x3439e9(0x1bb),_0x4d571d);});});}[_0x203d73(0x1b4)](){const _0x1934c6=_0x203d73,{editor:_0x346ca6}=this,{model:_0x40580a}=_0x346ca6,_0x28b7ec=_0x346ca6[_0x1934c6(0x18e)][_0x1934c6(0x186)](_0x288295),_0x17ad8f=this[_0x1934c6(0x19e)](),_0x2eb69f=this[_0x1934c6(0x168)]();_0x40580a[_0x1934c6(0x17c)][_0x1934c6(0x180)](_0x3e107a=>{const _0x38a601=_0x1934c6,_0x4c1562=_0x40580a[_0x38a601(0x17c)][_0x38a601(0x160)][_0x38a601(0x19c)]();let _0x193524=!0x1;for(const _0x558677 of _0x4c1562){if(_0x38a601(0x1a6)!==_0x558677[_0x38a601(0x178)]||_0x38a601(0x162)===_0x558677[_0x38a601(0x172)])continue;const _0x146911=_0x40580a[_0x38a601(0x165)](_0x558677[_0x38a601(0x18c)][_0x38a601(0x167)]);for(const _0x7dcd48 of _0x146911[_0x38a601(0x1ac)]())_0x7dcd48['is'](_0x38a601(0x19a),_0x38a601(0x1b0))&&(!_0x7dcd48[_0x38a601(0x18f)](_0x38a601(0x173))&&_0x40580a[_0x38a601(0x1b3)][_0x38a601(0x170)](_0x7dcd48,_0x38a601(0x173))&&(_0x3e107a[_0x38a601(0x1ab)](_0x38a601(0x173),_0x2eb69f,_0x7dcd48),_0x193524=!0x0),!_0x7dcd48[_0x38a601(0x18f)](_0x38a601(0x183))&&_0x40580a[_0x38a601(0x1b3)][_0x38a601(0x170)](_0x7dcd48,_0x38a601(0x183))&&(_0x3e107a[_0x38a601(0x1ab)](_0x38a601(0x183),_0x17ad8f,_0x7dcd48),_0x193524=!0x0));}return _0x193524&&_0x28b7ec[_0x38a601(0x17f)](_0x3e107a),_0x193524;});}[_0x203d73(0x15f)](){const _0x50669e=_0x203d73,{editor:_0x4fd8b4}=this;_0x4fd8b4[_0x50669e(0x18e)][_0x50669e(0x186)](_0x288295)[_0x50669e(0x15c)](_0x448166=>this[_0x50669e(0x182)](_0x448166));}[_0x203d73(0x19e)](){const _0x5ed0d8=_0x203d73;return this[_0x5ed0d8(0x1b8)][_0x5ed0d8(0x15b)][_0x5ed0d8(0x186)](_0x5ed0d8(0x1a0));}[_0x203d73(0x168)](){const _0x2628e7=_0x203d73;return this[_0x2628e7(0x1b8)][_0x2628e7(0x15b)][_0x2628e7(0x186)](_0x2628e7(0x1b6));}[_0x203d73(0x182)]({container:_0x1f6251,value:_0x12cdf3,digits:_0x2b3f8f}){const _0x7a8de7=_0x203d73,_0x3b7741=_0x1f6251[_0x7a8de7(0x169)](_0x7a8de7(0x183)),_0x3566e1=_0x1f6251[_0x7a8de7(0x169)](_0x7a8de7(0x173)),_0x139b7d=Math[_0x7a8de7(0x171)](_0x12cdf3)+(_0x3566e1??0x1)-0x1;switch(_0x3b7741){case _0x7a8de7(0x16f):return function(_0x4cb9a2,_0x3d6882){const _0xc91028=_0x7a8de7;return String(_0x4cb9a2)[_0xc91028(0x175)](_0x3d6882,'0');}(_0x139b7d,Math[_0x7a8de7(0x17b)](0x2,_0x2b3f8f));case _0x7a8de7(0x1b7):case _0x7a8de7(0x17e):return N(_0x139b7d,!0x1);case _0x7a8de7(0x181):case _0x7a8de7(0x1a2):return N(_0x139b7d,!0x0);case _0x7a8de7(0x1bf):return X(_0x139b7d,!0x1);case _0x7a8de7(0x17a):return X(_0x139b7d,!0x0);default:return String(_0x139b7d);}}}function M(_0x4a9134,_0x2842ac){const _0x5c89be=_0x203d73,_0x38c8be=_0x2842ac[_0x5c89be(0x18a)](_0x4a9134);return Array[_0x5c89be(0x164)](_0x38c8be[_0x5c89be(0x174)]())[_0x5c89be(0x187)](_0x505641=>_0x505641['is'](_0x5c89be(0x19a),'ol')&&_0x505641[_0x5c89be(0x1af)](_0x5c89be(0x193)));}function N(_0x36264b,_0x4b79a1){const _0x16b2d9=_0x203d73;let _0x1cf60c='',_0xf18e3f=_0x36264b;for(;_0xf18e3f>0x0;){const _0x204877=(_0xf18e3f-0x1)%0x1a;_0x1cf60c=String[_0x16b2d9(0x1ad)](0x61+_0x204877)+_0x1cf60c,_0xf18e3f=Math[_0x16b2d9(0x171)]((_0xf18e3f-0x1)/0x1a);}return _0x4b79a1?_0x1cf60c[_0x16b2d9(0x16b)]():_0x1cf60c;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x94af39,_0x5168be){const _0x26c8f7=_0x203d73;let _0xc56b0e='',_0x248b16=_0x94af39;for(const {value:_0x5238eb,numeral:_0x4e2ee1}of V)for(;_0x248b16>=_0x5238eb;)_0xc56b0e+=_0x4e2ee1,_0x248b16-=_0x5238eb;return _0x5168be?_0xc56b0e:_0xc56b0e[_0x26c8f7(0x166)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x30d9f5,ButtonView as _0x2ebaee,ContextualBalloon as _0xa84412,createDropdown as _0x26976e}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x317a48}from'ckeditor5/src/widget.js';import{Plugin as _0x1ce5ab}from'ckeditor5/src/core.js';import{IconFootnote as _0xe49eb2,IconListStyleDecimal as _0x1c10bb,IconListStyleDecimalLeadingZero as _0x285168,IconListStyleLowerLatin as _0xb0660,IconListStyleLowerRoman as _0x2db3cf,IconListStyleUpperLatin as _0x1d3846,IconListStyleUpperRoman as _0x7b4886}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x50e13c}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x5061fe}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x1ce5ab{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xa84412,_0x317a48];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x528bf3}=this,{componentFactory:_0x30a62c}=_0x528bf3['ui'];_0x528bf3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x30a62c['add']('footnotesStyle',function(_0x5076d9){return _0x5107ca=>{const {t:t}=_0x5107ca,_0x226345=_0x5076d9['commands']['get']('footnotesStyle'),_0x3c23b0=_0x26976e(_0x5107ca),{buttonView:_0x28c346}=_0x3c23b0;return _0x3c23b0['class']='ck-footnotes-styles-dropdown',_0x3c23b0['bind']('isEnabled')['to'](_0x226345,'isEnabled'),_0x28c346['set']({'label':t('Footnotes\x20style'),'icon':_0xe49eb2,'tooltip':!0x0}),_0x3c23b0['once']('change:isOpen',()=>{const _0x45e1b6=function({editor:_0xeb5973,dropdownView:_0x1e8a11}){const {t:t}=_0xeb5973['locale'],_0x585a1b=t('Footnotes\x20definitions\x20styles'),_0x4024f0=function(_0x1749f4){const t=_0x1749f4['locale']['t'],_0x21718b=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1c10bb},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x285168},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2db3cf},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x7b4886},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xb0660},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1d3846}];return _0x21718b['map'](function(_0x57840f){const _0x2ae7b3=_0x57840f['locale'];return({label:_0x44d2fc,icon:_0xe4bb57,tooltip:_0x508d99,style:_0x4af8d3})=>{const _0x102f2c=_0x57840f['commands']['get']('footnotesStyle'),_0x43be36=new _0x2ebaee(_0x2ae7b3);return _0x43be36['set']({'label':_0x44d2fc,'icon':_0xe4bb57,'tooltip':_0x508d99}),_0x43be36['bind']('isOn')['to'](_0x102f2c,'value',_0x1d0333=>_0x1d0333===_0x4af8d3),_0x43be36['bind']('isEnabled')['to'](_0x102f2c,'isEnabled'),_0x43be36['on']('execute',()=>{_0x57840f['execute']('footnotesStyle',{'value':_0x4af8d3}),_0x57840f['editing']['view']['focus']();}),_0x43be36;};}(_0x1749f4));}(_0xeb5973),_0xe170af=new _0x50e13c(_0xeb5973['locale'],{'styleGridAriaLabel':_0x585a1b,'styleButtonViews':_0x4024f0}),_0x5bace5=_0xeb5973['commands']['get']('footnotesStart');return _0xe170af['startIndexFieldView']['bind']('isEnabled')['to'](_0x5bace5),_0xe170af['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5bace5),_0xe170af['on']('footnotesListStart',(_0x5938c8,_0x2010c1)=>{_0xeb5973['execute']('footnotesStart',{'value':_0x2010c1['startIndex']});}),_0xe170af['delegate']('execute')['to'](_0x1e8a11),_0xe170af;}({'editor':_0x5076d9,'dropdownView':_0x3c23b0});_0x3c23b0['panelView']['children']['add'](_0x45e1b6);}),_0x3c23b0;};}(_0x528bf3));}['afterInit'](){const {editor:_0x37270e}=this,{t:t}=_0x37270e['locale'],_0x462a1b=_0x37270e['plugins']['get'](_0x317a48),{defaultPositions:_0x6343b2}=_0x30d9f5;_0x462a1b['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x37270e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x570ecf=>{let _0x585300=_0x570ecf['getFirstPosition']()?.['parent'];return _0x585300?.['is']('$text')&&(_0x585300=_0x585300['parent']),_0x585300?.['is']('element')?_0x585300['findAncestor'](_0x5061fe):null;},'positions':[_0x6343b2['southArrowNorth'],_0x6343b2['southArrowNorthMiddleWest'],_0x6343b2['southArrowNorthMiddleEast'],_0x6343b2['southArrowNorthWest'],_0x6343b2['southArrowNorthEast'],_0x6343b2['northArrowSouth'],_0x6343b2['northArrowSouthMiddleWest'],_0x6343b2['northArrowSouthMiddleEast'],_0x6343b2['northArrowSouthWest'],_0x6343b2['northArrowSouthEast'],_0x6343b2['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x547417,View as _0x24a528,ViewCollection as _0x2259be,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x24a528{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x2259be();['focusCycler'];constructor(_0x30da95,{styleButtonViews:_0x56ddc6,styleGridAriaLabel:_0x3c0844}){super(_0x30da95),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x56ddc6,_0x3c0844),[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 _0x3ac144 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3ac144['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x49ff38=_0x32c5d5=>_0x32c5d5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49ff38),this['keystrokes']['set']('arrowleft',_0x49ff38),this['keystrokes']['set']('arrowup',_0x49ff38),this['keystrokes']['set']('arrowdown',_0x49ff38);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xc11302,_0x362fde){const _0x5066b3=new _0x24a528(this['locale']);return _0x5066b3['children']=_0x5066b3['createCollection'](),_0x5066b3['children']['addMany'](_0xc11302),_0x5066b3['setTemplate']({'tag':'div','attributes':{'aria-label':_0x362fde,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5066b3['children']}),_0x5066b3['children']['delegate']('execute')['to'](this),_0x5066b3['focus']=function(){for(const _0x2bfc67 of this['children'])if(_0x2bfc67 instanceof _0x547417&&_0x2bfc67['isOn'])return void _0x2bfc67['focus']();this['children']['first']['focus']();},_0x5066b3['focusTracker']=new rt(),_0x5066b3['keystrokes']=new nt(),_0x5066b3['render'](),_0x5066b3['keystrokes']['listenTo'](_0x5066b3['element']),this['children']['add'](_0x5066b3),_0x5066b3;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x38b3d2=this['_createStartIndexPropertyView'](),_0x2ef224=[_0x38b3d2],_0x4015ea=new it(this['locale'],_0x2ef224);return _0x4015ea['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4015ea['buttonView']['bind']('isEnabled')['toMany'](_0x2ef224,'isEnabled',(..._0x1d908c)=>_0x1d908c['some'](_0x248faa=>_0x248faa)),_0x4015ea['buttonView']['on']('change:isEnabled',(_0x44fa7f,_0x3a86a4,_0x32a122)=>{_0x32a122||(_0x4015ea['isCollapsed']=!0x0);}),this['children']['add'](_0x4015ea),[_0x38b3d2,_0x4015ea];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x565ecd=new et(this['locale'],ot);return _0x565ecd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x565ecd['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x565ecd['fieldView']['on']('input',()=>{const _0x3b0cb2=_0x565ecd['fieldView']['element'],_0x26ccc3=_0x3b0cb2['valueAsNumber'];Number['isNaN'](_0x26ccc3)?_0x565ecd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3b0cb2['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x26ccc3}):_0x565ecd['errorText']=t(_0x26ccc3<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x565ecd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x361374=_0xe120;function _0xe120(_0x51b8ef,_0x8eeaa){var _0x39de64=_0x39de();return _0xe120=function(_0xe120ee,_0x3fe9b3){_0xe120ee=_0xe120ee-0x1a2;var _0x105c2d=_0x39de64[_0xe120ee];return _0x105c2d;},_0xe120(_0x51b8ef,_0x8eeaa);}(function(_0x21a044,_0x581a24){var _0x553c70=_0xe120,_0x162c87=_0x21a044();while(!![]){try{var _0x4923dd=-parseInt(_0x553c70(0x1a2))/0x1+-parseInt(_0x553c70(0x1a3))/0x2*(parseInt(_0x553c70(0x1a5))/0x3)+-parseInt(_0x553c70(0x1a4))/0x4+-parseInt(_0x553c70(0x1a9))/0x5+-parseInt(_0x553c70(0x1ac))/0x6*(-parseInt(_0x553c70(0x1ae))/0x7)+parseInt(_0x553c70(0x1af))/0x8+parseInt(_0x553c70(0x1ab))/0x9;if(_0x4923dd===_0x581a24)break;else _0x162c87['push'](_0x162c87['shift']());}catch(_0x4ada0e){_0x162c87['push'](_0x162c87['shift']());}}}(_0x39de,0xa5e67));function _0x39de(){var _0x462d05=['isPremiumPlugin','2378905rACMwy','requires','9712197yWQHeM','8146350hqblxa','pluginName','7UyFgNQ','10181904wnlGZQ','462766Zygeid','68QZWOiw','4032992vLKakb','95583BlKQDT','isOfficialPlugin','FootnotesProperties'];_0x39de=function(){return _0x462d05;};return _0x39de();}import{Plugin as _0x38ade4}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x22b334}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x3341d4}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x38ade4{static get[_0x361374(0x1ad)](){var _0x520b67=_0x361374;return _0x520b67(0x1a7);}static get[_0x361374(0x1aa)](){return[_0x22b334,_0x3341d4];}static get[_0x361374(0x1a6)](){return!0x0;}static get[_0x361374(0x1a8)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x45e806=_0x3ee4;(function(_0x10139c,_0x3d6602){const _0x5e5bfa=_0x3ee4,_0x2a8d26=_0x10139c();while(!![]){try{const _0x3167db=-parseInt(_0x5e5bfa(0x15e))/0x1+-parseInt(_0x5e5bfa(0x120))/0x2*(-parseInt(_0x5e5bfa(0x11a))/0x3)+-parseInt(_0x5e5bfa(0x12b))/0x4+-parseInt(_0x5e5bfa(0x151))/0x5*(-parseInt(_0x5e5bfa(0x165))/0x6)+-parseInt(_0x5e5bfa(0x122))/0x7+parseInt(_0x5e5bfa(0x133))/0x8*(-parseInt(_0x5e5bfa(0x152))/0x9)+parseInt(_0x5e5bfa(0x11b))/0xa*(parseInt(_0x5e5bfa(0x161))/0xb);if(_0x3167db===_0x3d6602)break;else _0x2a8d26['push'](_0x2a8d26['shift']());}catch(_0x10a746){_0x2a8d26['push'](_0x2a8d26['shift']());}}}(_0x1e74,0x2e0e4));import{Plugin as _0x59fec4}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x2e6d69}from'./modelelementtracker.js';export class FootnotesTracker extends _0x59fec4{[_0x45e806(0x12d)]=[];[_0x45e806(0x147)]=null;[_0x45e806(0x13d)]=null;[_0x45e806(0x16e)];[_0x45e806(0x176)];[_0x45e806(0x17b)];static get[_0x45e806(0x15c)](){const _0x5d6601=_0x45e806;return _0x5d6601(0x15a);}static get[_0x45e806(0x14a)](){return!0x0;}static get[_0x45e806(0x132)](){return!0x0;}constructor(_0x2d9e68){const _0x15ffbb=_0x45e806;super(_0x2d9e68),this[_0x15ffbb(0x16e)]=new _0x2e6d69(this[_0x15ffbb(0x14f)][_0x15ffbb(0x128)],{'elementName':_0x15ffbb(0x143),'getElementKey':()=>_0x15ffbb(0x137)}),this[_0x15ffbb(0x176)]=new _0x2e6d69(this[_0x15ffbb(0x14f)][_0x15ffbb(0x128)],{'elementName':_0x15ffbb(0x16f),'getElementKey':_0x2bc43c=>_0x2bc43c[_0x15ffbb(0x131)](_0x15ffbb(0x13f))}),this[_0x15ffbb(0x17b)]=new _0x2e6d69(this[_0x15ffbb(0x14f)][_0x15ffbb(0x128)],{'elementName':_0x15ffbb(0x127),'getElementKey':_0x4b0aca=>_0x4b0aca[_0x15ffbb(0x131)](_0x15ffbb(0x13f))});}[_0x45e806(0x11d)](){const _0x5862d7=_0x45e806,{editor:_0x486dfb}=this,{model:_0x36e481,data:_0x130ce7}=_0x486dfb;_0x36e481[_0x5862d7(0x17c)][_0x5862d7(0x13a)](_0x136c77=>{const _0x4263ef=_0x5862d7,_0x3c2172=_0x36e481[_0x4263ef(0x17c)][_0x4263ef(0x14c)][_0x4263ef(0x175)]();let _0x18bf3c=!0x1;return this[_0x4263ef(0x166)](_0x136c77,_0x3c2172)&&(_0x18bf3c=!0x0),this[_0x4263ef(0x12c)](_0x136c77,_0x3c2172)&&(_0x18bf3c=!0x0),this[_0x4263ef(0x155)](_0x136c77,_0x3c2172)&&(_0x18bf3c=!0x0),this[_0x4263ef(0x16b)](_0x136c77)&&(_0x18bf3c=!0x0),this[_0x4263ef(0x135)](_0x136c77)&&(_0x18bf3c=!0x0),this[_0x4263ef(0x117)](_0x136c77)&&(_0x18bf3c=!0x0),_0x18bf3c;}),this[_0x5862d7(0x139)](_0x36e481[_0x5862d7(0x17c)],_0x5862d7(0x174),()=>{const _0x297c05=_0x5862d7;_0x36e481[_0x297c05(0x145)]({'isUndoable':!0x1},_0x1ba8b8=>{const _0x32c786=_0x297c05;this[_0x32c786(0x14d)](_0x1ba8b8);});},{'priority':_0x5862d7(0x138)}),this[_0x5862d7(0x139)](_0x130ce7,_0x5862d7(0x16c),()=>{const _0x20c59c=_0x5862d7;this[_0x20c59c(0x12d)]=[],this[_0x20c59c(0x16e)][_0x20c59c(0x164)](),this[_0x20c59c(0x176)][_0x20c59c(0x164)](),this[_0x20c59c(0x17b)][_0x20c59c(0x164)]();},{'priority':_0x5862d7(0x149)});}[_0x45e806(0x130)](){const _0x1b697a=_0x45e806;return this[_0x1b697a(0x147)];}[_0x45e806(0x14b)](_0x4418ad){const _0xe948c=_0x45e806;return this[_0xe948c(0x12d)][_0xe948c(0x172)](_0x372aea=>_0x372aea['id']===_0x4418ad)||null;}[_0x45e806(0x126)](){const _0x275e68=_0x45e806;return Array[_0x275e68(0x171)](this[_0x275e68(0x12d)]);}[_0x45e806(0x144)](){const _0x410018=_0x45e806;return this[_0x410018(0x13d)];}[_0x45e806(0x118)](_0x3254e5){const _0xffac01=_0x45e806;this[_0xffac01(0x13d)]=_0x3254e5;}[_0x45e806(0x162)](_0x9e36e,_0x17f043=0x0){const _0x4c8f28=_0x45e806;let _0x153704=!0x1;for(let _0x55c253=_0x17f043;_0x55c253<this[_0x4c8f28(0x12d)][_0x4c8f28(0x124)];_0x55c253++)this[_0x4c8f28(0x158)](_0x9e36e,_0x55c253)&&(_0x153704=!0x0);return _0x153704;}[_0x45e806(0x169)](_0x31a7f1,_0x5b3d69){const _0x94804=_0x45e806,_0x138b99=_0x31a7f1[_0x94804(0x163)](_0x94804(0x143),{});return _0x31a7f1[_0x94804(0x11f)](_0x138b99,_0x5b3d69),this[_0x94804(0x147)]=_0x138b99,_0x138b99;}[_0x45e806(0x14d)](_0x594e81){const _0xfc8e97=_0x45e806;if(!this[_0xfc8e97(0x12d)][_0xfc8e97(0x124)]||this[_0xfc8e97(0x147)])return;const _0x66378c=this[_0xfc8e97(0x12d)][0x0][_0xfc8e97(0x12a)][_0xfc8e97(0x16d)],_0x2e5021=this[_0xfc8e97(0x169)](_0x594e81,_0x66378c);for(const _0x495253 of this[_0xfc8e97(0x12d)])_0x495253[_0xfc8e97(0x170)][_0xfc8e97(0x11c)]||_0x594e81[_0xfc8e97(0x140)](_0x495253[_0xfc8e97(0x170)],_0x2e5021,_0xfc8e97(0x156));this[_0xfc8e97(0x162)](_0x594e81);}[_0x45e806(0x166)](_0x5b0ff4,_0x5d53cb){const _0x3c6123=_0x45e806;let _0x5a9887=!0x1;const {inserted:_0x460bb8,removed:_0x533aed,moved:_0xc9c32a}=this[_0x3c6123(0x16e)][_0x3c6123(0x175)](_0x5d53cb);if(_0xc9c32a[_0x3c6123(0x124)]&&(this[_0x3c6123(0x147)]=_0xc9c32a[0x0]),_0x460bb8[_0x3c6123(0x124)]){if(_0x460bb8[_0x3c6123(0x124)]>0x1||this[_0x3c6123(0x147)]&&_0x460bb8[_0x3c6123(0x12f)](_0x28614b=>_0x28614b!==this[_0x3c6123(0x147)])){const _0x31a198=_0x5b0ff4[_0x3c6123(0x163)](_0x3c6123(0x143),{}),_0x33e9d5=[];this[_0x3c6123(0x147)]&&_0x33e9d5[_0x3c6123(0x11e)](this[_0x3c6123(0x147)]),_0x33e9d5[_0x3c6123(0x11e)](..._0x460bb8),_0x5b0ff4[_0x3c6123(0x140)](_0x31a198,_0x33e9d5[0x0],_0x3c6123(0x157));for(const _0x1173e9 of _0x33e9d5)_0x5b0ff4[_0x3c6123(0x159)](_0x5b0ff4[_0x3c6123(0x167)](_0x1173e9),_0x5b0ff4[_0x3c6123(0x15b)](_0x31a198,_0x3c6123(0x156))),_0x5b0ff4[_0x3c6123(0x15f)](_0x1173e9);this[_0x3c6123(0x147)]=_0x31a198,this[_0x3c6123(0x162)](_0x5b0ff4),_0x5a9887=!0x0;}else this[_0x3c6123(0x147)]=_0x460bb8[0x0];}if(_0x533aed[_0x3c6123(0x124)]&&_0x3c6123(0x15d)===this[_0x3c6123(0x147)]?.[_0x3c6123(0x16d)][_0x3c6123(0x179)]){for(const _0x552018 of this[_0x3c6123(0x12d)])_0x5b0ff4[_0x3c6123(0x15f)](_0x552018[_0x3c6123(0x12a)]),_0x5a9887=!0x0;this[_0x3c6123(0x12d)]=[],this[_0x3c6123(0x147)]=null;}return _0x5a9887;}[_0x45e806(0x12c)](_0x2c6d54,_0x4516fe){const _0x211783=_0x45e806;let _0x22ebde=!0x1;const _0x3a1172=this[_0x211783(0x14f)][_0x211783(0x136)][_0x211783(0x148)](_0x211783(0x173)),{inserted:_0x146632,moved:_0x1ac0cf}=this[_0x211783(0x17b)][_0x211783(0x175)](_0x4516fe);for(const _0x267638 of[..._0x1ac0cf,..._0x146632]){const _0x577d09=_0x267638[_0x211783(0x131)](_0x211783(0x13f)),_0x4fbedb=this[_0x211783(0x14b)](_0x577d09);_0x4fbedb&&(_0x4fbedb[_0x211783(0x170)]=_0x267638),_(_0x2c6d54,_0x3a1172,_0x267638)&&(_0x22ebde=!0x0);}return _0x22ebde;}[_0x45e806(0x155)](_0x26d653,_0x14c804){const _0x1364eb=_0x45e806;let _0x2e6130=!0x1;const {removed:_0x4720c0,inserted:_0xeff366,moved:_0x39e379}=this[_0x1364eb(0x176)][_0x1364eb(0x175)](_0x14c804);for(const _0x5229fe of _0x4720c0)this[_0x1364eb(0x141)](_0x26d653,_0x5229fe)&&(_0x2e6130=!0x0);for(const _0x3dad00 of _0xeff366)this[_0x1364eb(0x16a)](_0x26d653,_0x3dad00)&&(_0x2e6130=!0x0);for(const _0x1a092e of _0x39e379)this[_0x1364eb(0x134)](_0x26d653,_0x1a092e)&&(_0x2e6130=!0x0);return _0x2e6130;}[_0x45e806(0x135)](_0xd8d95a){const _0x230c92=_0x45e806;if(!this[_0x230c92(0x147)])return!0x1;let _0x26669c=!0x1;if(this[_0x230c92(0x147)][_0x230c92(0x14e)]!==this[_0x230c92(0x12d)][_0x230c92(0x124)]){const _0x29bd6d=[];for(const _0x56c195 of this[_0x230c92(0x147)][_0x230c92(0x160)]()){const _0x49c94d=_0x56c195[_0x230c92(0x131)](_0x230c92(0x13f));this[_0x230c92(0x14b)](_0x49c94d)||(_0x29bd6d[_0x230c92(0x123)](_0x56c195),_0x26669c=!0x0);}for(const _0x41f4d6 of _0x29bd6d)_0xd8d95a[_0x230c92(0x15f)](_0x41f4d6);}const _0x576b87=new Set(),_0x26471c=[];for(const _0xb8d8ea of this[_0x230c92(0x147)][_0x230c92(0x160)]()){const _0x487d07=_0xb8d8ea[_0x230c92(0x131)](_0x230c92(0x13f));_0x576b87[_0x230c92(0x121)](_0x487d07)?(_0x26471c[_0x230c92(0x123)](_0xb8d8ea),_0x26669c=!0x0):_0x576b87[_0x230c92(0x17a)](_0x487d07);}for(const _0x4b5f53 of _0x26471c)_0xd8d95a[_0x230c92(0x15f)](_0x4b5f53);return this[_0x230c92(0x147)][_0x230c92(0x14e)]||(_0xd8d95a[_0x230c92(0x15f)](this[_0x230c92(0x147)]),this[_0x230c92(0x147)]=null,_0x26669c=!0x0),_0x26669c;}[_0x45e806(0x16a)](_0x387462,_0x2ce05e){const _0x404819=_0x45e806;if(this[_0x404819(0x12d)][_0x404819(0x172)](_0x4c1093=>_0x4c1093[_0x404819(0x12a)]===_0x2ce05e))return!0x1;let _0x53b791=!0x1;const _0x51deef=_0x2ce05e[_0x404819(0x131)](_0x404819(0x13f)),_0x59e5fb=this[_0x404819(0x12d)][_0x404819(0x13b)](_0x4ec688=>_0x4ec688['id']===_0x51deef);-0x1!==_0x59e5fb&&(_0x387462[_0x404819(0x15f)](this[_0x404819(0x12d)][_0x59e5fb][_0x404819(0x12a)]),this[_0x404819(0x12d)][_0x404819(0x146)](_0x59e5fb,0x1),_0x53b791=!0x0);let _0x52dc2f=this[_0x404819(0x147)]?function(_0x298d7b,_0x36d97c){const _0x192e38=_0x404819;for(const _0x1b0934 of _0x298d7b[_0x192e38(0x160)]())if(_0x1b0934[_0x192e38(0x131)](_0x192e38(0x13f))===_0x36d97c)return _0x1b0934;return null;}(this[_0x404819(0x147)],_0x51deef):null;_0x52dc2f||(_0x52dc2f=_0x387462[_0x404819(0x163)](_0x404819(0x127),{'footnoteId':_0x51deef}),this[_0x404819(0x147)]&&(_0x387462[_0x404819(0x140)](_0x52dc2f,this[_0x404819(0x147)],_0x404819(0x156)),_0x53b791=!0x0));const _0x158a06={'id':_0x51deef,'reference':_0x2ce05e,'definition':_0x52dc2f},_0x4232a4=I(this[_0x404819(0x14f)][_0x404819(0x128)],this[_0x404819(0x12d)],_0x2ce05e);this[_0x404819(0x12d)][_0x404819(0x146)](_0x4232a4,0x0,_0x158a06);let _0x4fa890=_0x4232a4;return-0x1!==_0x59e5fb&&(_0x4fa890=Math[_0x404819(0x154)](_0x4232a4,_0x59e5fb)),this[_0x404819(0x162)](_0x387462,_0x4fa890)&&(_0x53b791=!0x0),_0x53b791;}[_0x45e806(0x141)](_0x4854e5,_0x22e914){const _0x33cf4d=_0x45e806,_0x1a400c=this[_0x33cf4d(0x12d)][_0x33cf4d(0x13b)](_0x5694cf=>_0x5694cf['id']===_0x22e914);if(-0x1===_0x1a400c)return!0x1;let _0x2e4c16=!0x1;const _0x57a381=this[_0x33cf4d(0x12d)][_0x1a400c];return _0x33cf4d(0x15d)!==_0x57a381[_0x33cf4d(0x170)][_0x33cf4d(0x16d)][_0x33cf4d(0x179)]&&(_0x4854e5[_0x33cf4d(0x15f)](_0x57a381[_0x33cf4d(0x170)]),_0x2e4c16=!0x0),this[_0x33cf4d(0x12d)][_0x33cf4d(0x146)](_0x1a400c,0x1),this[_0x33cf4d(0x162)](_0x4854e5,_0x1a400c)&&(_0x2e4c16=!0x0),_0x2e4c16;}[_0x45e806(0x134)](_0x5ed14b,_0x4d8a4e){const _0x5d6f4a=_0x45e806,_0x452270=_0x4d8a4e[_0x5d6f4a(0x131)](_0x5d6f4a(0x13f)),_0x4225e7=this[_0x5d6f4a(0x12d)][_0x5d6f4a(0x13b)](_0x5dd674=>_0x5dd674['id']===_0x452270),_0x50b935=this[_0x5d6f4a(0x12d)][_0x4225e7];let _0x2f183c=!0x1;_0x50b935[_0x5d6f4a(0x12a)]=_0x4d8a4e,this[_0x5d6f4a(0x12d)][_0x5d6f4a(0x146)](_0x4225e7,0x1);const _0x185d75=I(this[_0x5d6f4a(0x14f)][_0x5d6f4a(0x128)],this[_0x5d6f4a(0x12d)],_0x4d8a4e);return this[_0x5d6f4a(0x12d)][_0x5d6f4a(0x146)](_0x185d75,0x0,_0x50b935),this[_0x5d6f4a(0x162)](_0x5ed14b,Math[_0x5d6f4a(0x154)](_0x4225e7,_0x185d75))&&(_0x2f183c=!0x0),_0x2f183c;}[_0x45e806(0x158)](_0x16f588,_0x38bfb2){const _0x4f68c5=_0x45e806;if(!this[_0x4f68c5(0x147)])return!0x1;const _0x4b3855=this[_0x4f68c5(0x12d)][_0x38bfb2];let _0x263609;return _0x263609=this[_0x4f68c5(0x13d)]?this[_0x4f68c5(0x13d)]({'footnote':_0x4b3855,'container':this[_0x4f68c5(0x147)],'digits':String(this[_0x4f68c5(0x12d)][_0x4f68c5(0x124)])[_0x4f68c5(0x124)],'value':_0x38bfb2+0x1}):String(_0x38bfb2+0x1),_0x4b3855[_0x4f68c5(0x12a)][_0x4f68c5(0x131)](_0x4f68c5(0x13c))!=_0x263609&&(_0x16f588[_0x4f68c5(0x178)](_0x4f68c5(0x13c),_0x263609,_0x4b3855[_0x4f68c5(0x12a)]),!0x0);}[_0x45e806(0x117)](_0x59aa54){const _0x2b8ae5=_0x45e806;if(!this[_0x2b8ae5(0x147)]||this[_0x2b8ae5(0x12d)][_0x2b8ae5(0x124)]<0x2)return!0x1;if(function(_0x92cb9a,_0x5122fc){const _0x434b7a=_0x2b8ae5;if(_0x92cb9a[_0x434b7a(0x124)]!==_0x5122fc[_0x434b7a(0x124)])return!0x1;for(let _0x3f15e1=0x0;_0x3f15e1<_0x92cb9a[_0x434b7a(0x124)];_0x3f15e1++)if(_0x92cb9a[_0x3f15e1]!==_0x5122fc[_0x3f15e1])return!0x1;return!0x0;}(this[_0x2b8ae5(0x12d)][_0x2b8ae5(0x119)](_0x4dacc0=>_0x4dacc0['id']),Array[_0x2b8ae5(0x171)](this[_0x2b8ae5(0x147)][_0x2b8ae5(0x160)]())[_0x2b8ae5(0x119)](_0x247c14=>_0x247c14[_0x2b8ae5(0x131)](_0x2b8ae5(0x13f)))))return!0x1;let _0x359be9=!0x1;for(let _0x40c104=0x0;_0x40c104<this[_0x2b8ae5(0x12d)][_0x2b8ae5(0x124)];_0x40c104++){const _0x1e5a11=this[_0x2b8ae5(0x12d)][_0x40c104],_0x4a741a=_0x59aa54[_0x2b8ae5(0x177)](_0x1e5a11[_0x2b8ae5(0x170)]),_0x296edd=_0x59aa54[_0x2b8ae5(0x15b)](this[_0x2b8ae5(0x147)],_0x40c104);_0x4a741a[_0x2b8ae5(0x142)](_0x296edd)||(_0x59aa54[_0x2b8ae5(0x159)](_0x59aa54[_0x2b8ae5(0x125)](_0x1e5a11[_0x2b8ae5(0x170)]),_0x296edd),_0x359be9=!0x0);}return _0x359be9;}[_0x45e806(0x16b)](_0x27bb99){const _0x50c40d=_0x45e806;if(!this[_0x50c40d(0x12d)][_0x50c40d(0x124)])return!0x1;const {model:_0x1432b4}=this[_0x50c40d(0x14f)];let _0x466ace=!0x1;for(let _0x21c330=0x0;_0x21c330<this[_0x50c40d(0x12d)][_0x50c40d(0x124)]-0x1;_0x21c330++){const _0x5ce2ab=this[_0x50c40d(0x12d)][_0x21c330],_0x4a833c=this[_0x50c40d(0x12d)][_0x21c330+0x1],_0x569782=_0x1432b4[_0x50c40d(0x177)](_0x5ce2ab[_0x50c40d(0x12a)]),_0x2fe479=_0x1432b4[_0x50c40d(0x177)](_0x4a833c[_0x50c40d(0x12a)]);_0x50c40d(0x12e)===_0x569782[_0x50c40d(0x150)](_0x2fe479)&&(this[_0x50c40d(0x134)](_0x27bb99,_0x5ce2ab[_0x50c40d(0x12a)]),_0x21c330=-0x1,_0x466ace=!0x0);}return _0x466ace;}}function _0x3ee4(_0x2e44c0,_0x2208d2){const _0x1e7481=_0x1e74();return _0x3ee4=function(_0x3ee479,_0x490877){_0x3ee479=_0x3ee479-0x117;let _0x59cfd7=_0x1e7481[_0x3ee479];return _0x59cfd7;},_0x3ee4(_0x2e44c0,_0x2208d2);}function _(_0x6b5713,_0xed0be3,_0x5603db){const _0x22d785=_0x45e806;if(_0x5603db[_0x22d785(0x14e)])return!0x1;const _0x1b7771=_0xed0be3?_0x22d785(0x168):_0x22d785(0x129);return _0x6b5713[_0x22d785(0x140)](_0x6b5713[_0x22d785(0x163)](_0x1b7771),_0x5603db),!0x0;}function _0x1e74(){const _0x2b948c=['6UnGQnv','_handleFootnotesDefinitionsObjectChanges','createRangeIn','paragraph','_insertEmptyFootnotesDefinitionsContainer','_handleInsertedFootnoteReference','_ensureFootnotesReferencesHaveProperOrder','set','root','_footnoteDefsContainerTracker','footnoteRef','definition','from','find','footnotes.multiBlock','change:data','getChanges','_footnoteRefsTracker','createPositionBefore','setAttribute','rootName','add','_footnoteDefsTracker','document','_sortFootnoteDefinitions','setFootnoteFormatter','map','75585hjYEcq','70CQiyUU','parent','init','push','append','16ffnBob','has','2382254dStBEY','unshift','length','createRangeOn','getFootnotes','footnoteDefinition','model','footnoteInlineContent','reference','446928VHQADk','_handleFootnoteDefinitionsChanges','_footnotes','after','some','getFootnotesDefinitionsObjectElement','getAttribute','isPremiumPlugin','8CeCEAb','_handleMovedFootnoteReference','_handleFootnotesDefinitionsObjectSync','config','singleton','low','listenTo','registerPostFixer','findIndex','footnoteCounter','_footnoteFormatter','indexOf','footnoteId','insert','_handleRemoveFootnoteReferenceById','isEqual','footnotesDefinitions','getFootnotesFormatter','enqueueChange','splice','_footnotesDefinitions','get','high','isOfficialPlugin','getFootnote','differ','_ensureFootnotesDefinitionsContainerExists','childCount','editor','compareWith','606895DQWUDV','284067nvhfIN','getRootNames','min','_handleFootnoteReferencesChanges','end','before','_updateFootnoteRefCounter','move','FootnotesTracker','createPositionAt','pluginName','$graveyard','233771WFnkFE','remove','getChildren','916289qwJMFD','_updateFootnotesCounters','createElement','reset'];_0x1e74=function(){return _0x2b948c;};return _0x1e74();}function I(_0x279f80,_0x363ac7,_0x221c72){const _0x30ad04=_0x45e806;if(0x0===_0x363ac7[_0x30ad04(0x124)])return 0x0;const _0x38f507=_0x279f80[_0x30ad04(0x177)](_0x221c72);for(let _0x3193dd=0x0;_0x3193dd<_0x363ac7[_0x30ad04(0x124)];_0x3193dd++){const _0x5fc090=_0x363ac7[_0x3193dd],_0x332fee=_0x279f80[_0x30ad04(0x177)](_0x5fc090[_0x30ad04(0x12a)]);if(_0x30ad04(0x157)===_0x38f507[_0x30ad04(0x150)](_0x332fee))return _0x3193dd;}const _0x454d94=_0x221c72[_0x30ad04(0x16d)];let _0x1bb23e=-0x1;for(let _0x88ee08=_0x363ac7[_0x30ad04(0x124)]-0x1;_0x88ee08>=0x0;_0x88ee08--)if(_0x363ac7[_0x88ee08][_0x30ad04(0x12a)][_0x30ad04(0x16d)]===_0x454d94){_0x1bb23e=_0x88ee08;break;}if(-0x1!==_0x1bb23e)return _0x1bb23e+0x1;const _0x75f1f4=_0x279f80[_0x30ad04(0x17c)][_0x30ad04(0x153)](),_0x3142e5=_0x75f1f4[_0x30ad04(0x13e)](_0x454d94[_0x30ad04(0x179)]),_0x1ca49e=_0x75f1f4[_0x3142e5+0x1];if(_0x1ca49e){for(let _0x57d8a3=0x0;_0x57d8a3<_0x363ac7[_0x30ad04(0x124)];_0x57d8a3++)if(_0x363ac7[_0x57d8a3][_0x30ad04(0x12a)][_0x30ad04(0x16d)][_0x30ad04(0x179)]===_0x1ca49e)return _0x57d8a3;}return _0x363ac7[_0x30ad04(0x124)];}
|
|
23
|
+
const _0x53b853=_0xd85b;(function(_0x15f91f,_0x4ae66c){const _0x1bc6a3=_0xd85b,_0x429fd2=_0x15f91f();while(!![]){try{const _0x47d97a=-parseInt(_0x1bc6a3(0x1cd))/0x1*(-parseInt(_0x1bc6a3(0x1cb))/0x2)+parseInt(_0x1bc6a3(0x1e5))/0x3*(parseInt(_0x1bc6a3(0x1c2))/0x4)+-parseInt(_0x1bc6a3(0x1dc))/0x5*(parseInt(_0x1bc6a3(0x1dd))/0x6)+parseInt(_0x1bc6a3(0x212))/0x7+parseInt(_0x1bc6a3(0x20d))/0x8+-parseInt(_0x1bc6a3(0x1b7))/0x9+-parseInt(_0x1bc6a3(0x1d4))/0xa;if(_0x47d97a===_0x4ae66c)break;else _0x429fd2['push'](_0x429fd2['shift']());}catch(_0x294337){_0x429fd2['push'](_0x429fd2['shift']());}}}(_0x4378,0x76b8e));import{Plugin as _0x5b9c22}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x2b291c}from'./modelelementtracker.js';function _0x4378(){const _0x15a56e=['push','map','indexOf','length','remove','createRangeOn','footnoteCounter','min','registerPostFixer','3399312jeRWQi','_handleMovedFootnoteReference','end','createPositionBefore','footnoteId','5477612CvDSdg','_handleFootnotesDefinitionsObjectChanges','paragraph','_footnoteRefsTracker','_footnotesDefinitions','findIndex','has','change:data','compareWith','rootName','1579581xHfkrf','append','_ensureFootnotesReferencesHaveProperOrder','isPremiumPlugin','_updateFootnoteRefCounter','setFootnoteFormatter','get','getChanges','_footnoteDefsTracker','splice','getChildren','4kzbGxF','from','_footnotes','parent','footnotesDefinitions','footnoteInlineContent','getFootnotesFormatter','FootnotesTracker','definition','2cRcqOL','editor','140728SfzaZb','before','root','footnoteRef','find','childCount','createPositionAt','476710fMUVzo','singleton','init','model','getAttribute','some','reset','getRootNames','857525IoHtTn','30LyEAdw','footnoteDefinition','pluginName','document','_footnoteDefsContainerTracker','_footnoteFormatter','low','isEqual','656499SuARdI','_handleFootnoteReferencesChanges','$graveyard','footnotes.multiBlock','move','createRangeIn','setAttribute','listenTo','_sortFootnoteDefinitions','getFootnotes','differ','getFootnote','_updateFootnotesCounters','high','enqueueChange','_handleInsertedFootnoteReference','after','set','_handleRemoveFootnoteReferenceById','config','isOfficialPlugin','createElement','_handleFootnotesDefinitionsObjectSync','unshift','getFootnotesDefinitionsObjectElement','_ensureFootnotesDefinitionsContainerExists','_handleFootnoteDefinitionsChanges','add','insert','_insertEmptyFootnotesDefinitionsContainer','reference'];_0x4378=function(){return _0x15a56e;};return _0x4378();}export class FootnotesTracker extends _0x5b9c22{[_0x53b853(0x1c4)]=[];[_0x53b853(0x216)]=null;[_0x53b853(0x1e2)]=null;[_0x53b853(0x1e1)];[_0x53b853(0x215)];[_0x53b853(0x1bf)];static get[_0x53b853(0x1df)](){const _0x23643c=_0x53b853;return _0x23643c(0x1c9);}static get[_0x53b853(0x1f9)](){return!0x0;}static get[_0x53b853(0x1ba)](){return!0x0;}constructor(_0x36ece1){const _0x3bfb12=_0x53b853;super(_0x36ece1),this[_0x3bfb12(0x1e1)]=new _0x2b291c(this[_0x3bfb12(0x1cc)][_0x3bfb12(0x1d7)],{'elementName':_0x3bfb12(0x1c6),'getElementKey':()=>_0x3bfb12(0x1d5)}),this[_0x3bfb12(0x215)]=new _0x2b291c(this[_0x3bfb12(0x1cc)][_0x3bfb12(0x1d7)],{'elementName':_0x3bfb12(0x1d0),'getElementKey':_0x1ff271=>_0x1ff271[_0x3bfb12(0x1d8)](_0x3bfb12(0x211))}),this[_0x3bfb12(0x1bf)]=new _0x2b291c(this[_0x3bfb12(0x1cc)][_0x3bfb12(0x1d7)],{'elementName':_0x3bfb12(0x1de),'getElementKey':_0x2eedc0=>_0x2eedc0[_0x3bfb12(0x1d8)](_0x3bfb12(0x211))});}[_0x53b853(0x1d6)](){const _0x45eb62=_0x53b853,{editor:_0x27a485}=this,{model:_0x44515d,data:_0x21b968}=_0x27a485;_0x44515d[_0x45eb62(0x1e0)][_0x45eb62(0x20c)](_0x445211=>{const _0xf64281=_0x45eb62,_0x5b419c=_0x44515d[_0xf64281(0x1e0)][_0xf64281(0x1ef)][_0xf64281(0x1be)]();let _0x31630f=!0x1;return this[_0xf64281(0x213)](_0x445211,_0x5b419c)&&(_0x31630f=!0x0),this[_0xf64281(0x1ff)](_0x445211,_0x5b419c)&&(_0x31630f=!0x0),this[_0xf64281(0x1e6)](_0x445211,_0x5b419c)&&(_0x31630f=!0x0),this[_0xf64281(0x1b9)](_0x445211)&&(_0x31630f=!0x0),this[_0xf64281(0x1fb)](_0x445211)&&(_0x31630f=!0x0),this[_0xf64281(0x1ed)](_0x445211)&&(_0x31630f=!0x0),_0x31630f;}),this[_0x45eb62(0x1ec)](_0x44515d[_0x45eb62(0x1e0)],_0x45eb62(0x1b4),()=>{const _0x124759=_0x45eb62;_0x44515d[_0x124759(0x1f3)]({'isUndoable':!0x1},_0x510c1d=>{const _0x5e4039=_0x124759;this[_0x5e4039(0x1fe)](_0x510c1d);});},{'priority':_0x45eb62(0x1e3)}),this[_0x45eb62(0x1ec)](_0x21b968,_0x45eb62(0x1f6),()=>{const _0x6adc20=_0x45eb62;this[_0x6adc20(0x1c4)]=[],this[_0x6adc20(0x1e1)][_0x6adc20(0x1da)](),this[_0x6adc20(0x215)][_0x6adc20(0x1da)](),this[_0x6adc20(0x1bf)][_0x6adc20(0x1da)]();},{'priority':_0x45eb62(0x1f2)});}[_0x53b853(0x1fd)](){const _0x4d2f7c=_0x53b853;return this[_0x4d2f7c(0x216)];}[_0x53b853(0x1f0)](_0x1dfed6){const _0x57a163=_0x53b853;return this[_0x57a163(0x1c4)][_0x57a163(0x1d1)](_0x30832a=>_0x30832a['id']===_0x1dfed6)||null;}[_0x53b853(0x1ee)](){const _0x5401a3=_0x53b853;return Array[_0x5401a3(0x1c3)](this[_0x5401a3(0x1c4)]);}[_0x53b853(0x1c8)](){const _0x5e3b5b=_0x53b853;return this[_0x5e3b5b(0x1e2)];}[_0x53b853(0x1bc)](_0x5a406e){const _0x2a8303=_0x53b853;this[_0x2a8303(0x1e2)]=_0x5a406e;}[_0x53b853(0x1f1)](_0x3e19a1,_0x1e25bc=0x0){const _0x503432=_0x53b853;let _0x2ab993=!0x1;for(let _0x230ca5=_0x1e25bc;_0x230ca5<this[_0x503432(0x1c4)][_0x503432(0x207)];_0x230ca5++)this[_0x503432(0x1bb)](_0x3e19a1,_0x230ca5)&&(_0x2ab993=!0x0);return _0x2ab993;}[_0x53b853(0x202)](_0x27086d,_0x542884){const _0x5ee492=_0x53b853,_0x1fd15f=_0x27086d[_0x5ee492(0x1fa)](_0x5ee492(0x1c6),{});return _0x27086d[_0x5ee492(0x1b8)](_0x1fd15f,_0x542884),this[_0x5ee492(0x216)]=_0x1fd15f,_0x1fd15f;}[_0x53b853(0x1fe)](_0x2778ac){const _0x213714=_0x53b853;if(!this[_0x213714(0x1c4)][_0x213714(0x207)]||this[_0x213714(0x216)])return;const _0x95c9b7=this[_0x213714(0x1c4)][0x0][_0x213714(0x203)][_0x213714(0x1cf)],_0x39a24a=this[_0x213714(0x202)](_0x2778ac,_0x95c9b7);for(const _0x15d82c of this[_0x213714(0x1c4)])_0x15d82c[_0x213714(0x1ca)][_0x213714(0x1c5)]||_0x2778ac[_0x213714(0x201)](_0x15d82c[_0x213714(0x1ca)],_0x39a24a,_0x213714(0x20f));this[_0x213714(0x1f1)](_0x2778ac);}[_0x53b853(0x213)](_0x5595e8,_0x27a841){const _0x223ac3=_0x53b853;let _0x1cb242=!0x1;const {inserted:_0x49da1e,removed:_0x386b43,moved:_0x32dd30}=this[_0x223ac3(0x1e1)][_0x223ac3(0x1be)](_0x27a841);if(_0x32dd30[_0x223ac3(0x207)]&&(this[_0x223ac3(0x216)]=_0x32dd30[0x0]),_0x49da1e[_0x223ac3(0x207)]){if(_0x49da1e[_0x223ac3(0x207)]>0x1||this[_0x223ac3(0x216)]&&_0x49da1e[_0x223ac3(0x1d9)](_0x3498ae=>_0x3498ae!==this[_0x223ac3(0x216)])){const _0x20ed73=_0x5595e8[_0x223ac3(0x1fa)](_0x223ac3(0x1c6),{}),_0x33cb30=[];this[_0x223ac3(0x216)]&&_0x33cb30[_0x223ac3(0x204)](this[_0x223ac3(0x216)]),_0x33cb30[_0x223ac3(0x204)](..._0x49da1e),_0x5595e8[_0x223ac3(0x201)](_0x20ed73,_0x33cb30[0x0],_0x223ac3(0x1ce));for(const _0x39cc2c of _0x33cb30)_0x5595e8[_0x223ac3(0x1e9)](_0x5595e8[_0x223ac3(0x1ea)](_0x39cc2c),_0x5595e8[_0x223ac3(0x1d3)](_0x20ed73,_0x223ac3(0x20f))),_0x5595e8[_0x223ac3(0x208)](_0x39cc2c);this[_0x223ac3(0x216)]=_0x20ed73,this[_0x223ac3(0x1f1)](_0x5595e8),_0x1cb242=!0x0;}else this[_0x223ac3(0x216)]=_0x49da1e[0x0];}if(_0x386b43[_0x223ac3(0x207)]&&_0x223ac3(0x1e7)===this[_0x223ac3(0x216)]?.[_0x223ac3(0x1cf)][_0x223ac3(0x1b6)]){for(const _0x5a1610 of this[_0x223ac3(0x1c4)])_0x5595e8[_0x223ac3(0x208)](_0x5a1610[_0x223ac3(0x203)]),_0x1cb242=!0x0;this[_0x223ac3(0x1c4)]=[],this[_0x223ac3(0x216)]=null;}return _0x1cb242;}[_0x53b853(0x1ff)](_0x10e436,_0x4e42b5){const _0x421605=_0x53b853;let _0x56fa47=!0x1;const _0x3d1bdb=this[_0x421605(0x1cc)][_0x421605(0x1f8)][_0x421605(0x1bd)](_0x421605(0x1e8)),{inserted:_0x368722,moved:_0x51df4f}=this[_0x421605(0x1bf)][_0x421605(0x1be)](_0x4e42b5);for(const _0x268859 of[..._0x51df4f,..._0x368722]){const _0x332860=_0x268859[_0x421605(0x1d8)](_0x421605(0x211)),_0x399c68=this[_0x421605(0x1f0)](_0x332860);_0x399c68&&(_0x399c68[_0x421605(0x1ca)]=_0x268859),_(_0x10e436,_0x3d1bdb,_0x268859)&&(_0x56fa47=!0x0);}return _0x56fa47;}[_0x53b853(0x1e6)](_0x2dfe2a,_0x2667cc){const _0x337775=_0x53b853;let _0x569037=!0x1;const {removed:_0x1dfb0e,inserted:_0x2efed8,moved:_0x24f52c}=this[_0x337775(0x215)][_0x337775(0x1be)](_0x2667cc);for(const _0x386c4d of _0x1dfb0e)this[_0x337775(0x1f7)](_0x2dfe2a,_0x386c4d)&&(_0x569037=!0x0);for(const _0x188faf of _0x2efed8)this[_0x337775(0x1f4)](_0x2dfe2a,_0x188faf)&&(_0x569037=!0x0);for(const _0x709006 of _0x24f52c)this[_0x337775(0x20e)](_0x2dfe2a,_0x709006)&&(_0x569037=!0x0);return _0x569037;}[_0x53b853(0x1fb)](_0x13a078){const _0x2134d3=_0x53b853;if(!this[_0x2134d3(0x216)])return!0x1;let _0x166357=!0x1;if(this[_0x2134d3(0x216)][_0x2134d3(0x1d2)]!==this[_0x2134d3(0x1c4)][_0x2134d3(0x207)]){const _0x8251eb=[];for(const _0x2291fe of this[_0x2134d3(0x216)][_0x2134d3(0x1c1)]()){const _0x53efd3=_0x2291fe[_0x2134d3(0x1d8)](_0x2134d3(0x211));this[_0x2134d3(0x1f0)](_0x53efd3)||(_0x8251eb[_0x2134d3(0x1fc)](_0x2291fe),_0x166357=!0x0);}for(const _0x118441 of _0x8251eb)_0x13a078[_0x2134d3(0x208)](_0x118441);}const _0x3738d5=new Set(),_0x265741=[];for(const _0x3a162c of this[_0x2134d3(0x216)][_0x2134d3(0x1c1)]()){const _0xfffc32=_0x3a162c[_0x2134d3(0x1d8)](_0x2134d3(0x211));_0x3738d5[_0x2134d3(0x1b3)](_0xfffc32)?(_0x265741[_0x2134d3(0x1fc)](_0x3a162c),_0x166357=!0x0):_0x3738d5[_0x2134d3(0x200)](_0xfffc32);}for(const _0x5b8368 of _0x265741)_0x13a078[_0x2134d3(0x208)](_0x5b8368);return this[_0x2134d3(0x216)][_0x2134d3(0x1d2)]||(_0x13a078[_0x2134d3(0x208)](this[_0x2134d3(0x216)]),this[_0x2134d3(0x216)]=null,_0x166357=!0x0),_0x166357;}[_0x53b853(0x1f4)](_0x3541f2,_0x3dbafc){const _0x3cbd0f=_0x53b853;if(this[_0x3cbd0f(0x1c4)][_0x3cbd0f(0x1d1)](_0x157419=>_0x157419[_0x3cbd0f(0x203)]===_0x3dbafc))return!0x1;let _0x3600bc=!0x1;const _0x377f7c=_0x3dbafc[_0x3cbd0f(0x1d8)](_0x3cbd0f(0x211)),_0x5aaeae=this[_0x3cbd0f(0x1c4)][_0x3cbd0f(0x217)](_0x58bac1=>_0x58bac1['id']===_0x377f7c);-0x1!==_0x5aaeae&&(_0x3541f2[_0x3cbd0f(0x208)](this[_0x3cbd0f(0x1c4)][_0x5aaeae][_0x3cbd0f(0x203)]),this[_0x3cbd0f(0x1c4)][_0x3cbd0f(0x1c0)](_0x5aaeae,0x1),_0x3600bc=!0x0);let _0x5fabaa=this[_0x3cbd0f(0x216)]?function(_0x16cabc,_0x3aead6){const _0x2bb7bc=_0x3cbd0f;for(const _0x4576a2 of _0x16cabc[_0x2bb7bc(0x1c1)]())if(_0x4576a2[_0x2bb7bc(0x1d8)](_0x2bb7bc(0x211))===_0x3aead6)return _0x4576a2;return null;}(this[_0x3cbd0f(0x216)],_0x377f7c):null;_0x5fabaa||(_0x5fabaa=_0x3541f2[_0x3cbd0f(0x1fa)](_0x3cbd0f(0x1de),{'footnoteId':_0x377f7c}),this[_0x3cbd0f(0x216)]&&(_0x3541f2[_0x3cbd0f(0x201)](_0x5fabaa,this[_0x3cbd0f(0x216)],_0x3cbd0f(0x20f)),_0x3600bc=!0x0));const _0x16537c={'id':_0x377f7c,'reference':_0x3dbafc,'definition':_0x5fabaa},_0x37c0bc=I(this[_0x3cbd0f(0x1cc)][_0x3cbd0f(0x1d7)],this[_0x3cbd0f(0x1c4)],_0x3dbafc);this[_0x3cbd0f(0x1c4)][_0x3cbd0f(0x1c0)](_0x37c0bc,0x0,_0x16537c);let _0x52b85b=_0x37c0bc;return-0x1!==_0x5aaeae&&(_0x52b85b=Math[_0x3cbd0f(0x20b)](_0x37c0bc,_0x5aaeae)),this[_0x3cbd0f(0x1f1)](_0x3541f2,_0x52b85b)&&(_0x3600bc=!0x0),_0x3600bc;}[_0x53b853(0x1f7)](_0x4d3f37,_0x4a0e4c){const _0x4b6c97=_0x53b853,_0x5aab84=this[_0x4b6c97(0x1c4)][_0x4b6c97(0x217)](_0xec3381=>_0xec3381['id']===_0x4a0e4c);if(-0x1===_0x5aab84)return!0x1;let _0x28abfd=!0x1;const _0x3598c3=this[_0x4b6c97(0x1c4)][_0x5aab84];return _0x4b6c97(0x1e7)!==_0x3598c3[_0x4b6c97(0x1ca)][_0x4b6c97(0x1cf)][_0x4b6c97(0x1b6)]&&(_0x4d3f37[_0x4b6c97(0x208)](_0x3598c3[_0x4b6c97(0x1ca)]),_0x28abfd=!0x0),this[_0x4b6c97(0x1c4)][_0x4b6c97(0x1c0)](_0x5aab84,0x1),this[_0x4b6c97(0x1f1)](_0x4d3f37,_0x5aab84)&&(_0x28abfd=!0x0),_0x28abfd;}[_0x53b853(0x20e)](_0x1089bb,_0x48fe43){const _0x4a3512=_0x53b853,_0x23fbe9=_0x48fe43[_0x4a3512(0x1d8)](_0x4a3512(0x211)),_0x26fd08=this[_0x4a3512(0x1c4)][_0x4a3512(0x217)](_0x50b3de=>_0x50b3de['id']===_0x23fbe9),_0x42baae=this[_0x4a3512(0x1c4)][_0x26fd08];let _0x4f7afa=!0x1;_0x42baae[_0x4a3512(0x203)]=_0x48fe43,this[_0x4a3512(0x1c4)][_0x4a3512(0x1c0)](_0x26fd08,0x1);const _0x512e42=I(this[_0x4a3512(0x1cc)][_0x4a3512(0x1d7)],this[_0x4a3512(0x1c4)],_0x48fe43);return this[_0x4a3512(0x1c4)][_0x4a3512(0x1c0)](_0x512e42,0x0,_0x42baae),this[_0x4a3512(0x1f1)](_0x1089bb,Math[_0x4a3512(0x20b)](_0x26fd08,_0x512e42))&&(_0x4f7afa=!0x0),_0x4f7afa;}[_0x53b853(0x1bb)](_0x353660,_0x10e26c){const _0x4ac341=_0x53b853;if(!this[_0x4ac341(0x216)])return!0x1;const _0x195e3a=this[_0x4ac341(0x1c4)][_0x10e26c];let _0x29d207;return _0x29d207=this[_0x4ac341(0x1e2)]?this[_0x4ac341(0x1e2)]({'footnote':_0x195e3a,'container':this[_0x4ac341(0x216)],'digits':String(this[_0x4ac341(0x1c4)][_0x4ac341(0x207)])[_0x4ac341(0x207)],'value':_0x10e26c+0x1}):String(_0x10e26c+0x1),_0x195e3a[_0x4ac341(0x203)][_0x4ac341(0x1d8)](_0x4ac341(0x20a))!=_0x29d207&&(_0x353660[_0x4ac341(0x1eb)](_0x4ac341(0x20a),_0x29d207,_0x195e3a[_0x4ac341(0x203)]),!0x0);}[_0x53b853(0x1ed)](_0x5a5823){const _0x1ccf60=_0x53b853;if(!this[_0x1ccf60(0x216)]||this[_0x1ccf60(0x1c4)][_0x1ccf60(0x207)]<0x2)return!0x1;if(function(_0x470557,_0x426da2){const _0x35296f=_0x1ccf60;if(_0x470557[_0x35296f(0x207)]!==_0x426da2[_0x35296f(0x207)])return!0x1;for(let _0x1c287b=0x0;_0x1c287b<_0x470557[_0x35296f(0x207)];_0x1c287b++)if(_0x470557[_0x1c287b]!==_0x426da2[_0x1c287b])return!0x1;return!0x0;}(this[_0x1ccf60(0x1c4)][_0x1ccf60(0x205)](_0x2e631a=>_0x2e631a['id']),Array[_0x1ccf60(0x1c3)](this[_0x1ccf60(0x216)][_0x1ccf60(0x1c1)]())[_0x1ccf60(0x205)](_0x7fcd16=>_0x7fcd16[_0x1ccf60(0x1d8)](_0x1ccf60(0x211)))))return!0x1;let _0x179e53=!0x1;for(let _0x22c355=0x0;_0x22c355<this[_0x1ccf60(0x1c4)][_0x1ccf60(0x207)];_0x22c355++){const _0x4bcb2a=this[_0x1ccf60(0x1c4)][_0x22c355],_0x520e28=_0x5a5823[_0x1ccf60(0x210)](_0x4bcb2a[_0x1ccf60(0x1ca)]),_0x472f98=_0x5a5823[_0x1ccf60(0x1d3)](this[_0x1ccf60(0x216)],_0x22c355);_0x520e28[_0x1ccf60(0x1e4)](_0x472f98)||(_0x5a5823[_0x1ccf60(0x1e9)](_0x5a5823[_0x1ccf60(0x209)](_0x4bcb2a[_0x1ccf60(0x1ca)]),_0x472f98),_0x179e53=!0x0);}return _0x179e53;}[_0x53b853(0x1b9)](_0x447f9a){const _0x45564d=_0x53b853;if(!this[_0x45564d(0x1c4)][_0x45564d(0x207)])return!0x1;const {model:_0x13724f}=this[_0x45564d(0x1cc)];let _0x14f252=!0x1;for(let _0x6a02bf=0x0;_0x6a02bf<this[_0x45564d(0x1c4)][_0x45564d(0x207)]-0x1;_0x6a02bf++){const _0xe2c13d=this[_0x45564d(0x1c4)][_0x6a02bf],_0x51a6c0=this[_0x45564d(0x1c4)][_0x6a02bf+0x1],_0x58829d=_0x13724f[_0x45564d(0x210)](_0xe2c13d[_0x45564d(0x203)]),_0x5957c1=_0x13724f[_0x45564d(0x210)](_0x51a6c0[_0x45564d(0x203)]);_0x45564d(0x1f5)===_0x58829d[_0x45564d(0x1b5)](_0x5957c1)&&(this[_0x45564d(0x20e)](_0x447f9a,_0xe2c13d[_0x45564d(0x203)]),_0x6a02bf=-0x1,_0x14f252=!0x0);}return _0x14f252;}}function _(_0x8fb3e,_0xf6a7d2,_0x3b9dd8){const _0xb378b7=_0x53b853;if(_0x3b9dd8[_0xb378b7(0x1d2)])return!0x1;const _0x6f261e=_0xf6a7d2?_0xb378b7(0x214):_0xb378b7(0x1c7);return _0x8fb3e[_0xb378b7(0x201)](_0x8fb3e[_0xb378b7(0x1fa)](_0x6f261e),_0x3b9dd8),!0x0;}function _0xd85b(_0x328a7f,_0x284f3b){const _0x437876=_0x4378();return _0xd85b=function(_0xd85b5,_0x209e8c){_0xd85b5=_0xd85b5-0x1b3;let _0x5563c6=_0x437876[_0xd85b5];return _0x5563c6;},_0xd85b(_0x328a7f,_0x284f3b);}function I(_0xe861a6,_0x300595,_0x30fb7d){const _0x2e8d98=_0x53b853;if(0x0===_0x300595[_0x2e8d98(0x207)])return 0x0;const _0x1d721b=_0xe861a6[_0x2e8d98(0x210)](_0x30fb7d);for(let _0x4739ce=0x0;_0x4739ce<_0x300595[_0x2e8d98(0x207)];_0x4739ce++){const _0xcc098e=_0x300595[_0x4739ce],_0x2a8749=_0xe861a6[_0x2e8d98(0x210)](_0xcc098e[_0x2e8d98(0x203)]);if(_0x2e8d98(0x1ce)===_0x1d721b[_0x2e8d98(0x1b5)](_0x2a8749))return _0x4739ce;}const _0x3cde58=_0x30fb7d[_0x2e8d98(0x1cf)];let _0x2526b9=-0x1;for(let _0x151b6b=_0x300595[_0x2e8d98(0x207)]-0x1;_0x151b6b>=0x0;_0x151b6b--)if(_0x300595[_0x151b6b][_0x2e8d98(0x203)][_0x2e8d98(0x1cf)]===_0x3cde58){_0x2526b9=_0x151b6b;break;}if(-0x1!==_0x2526b9)return _0x2526b9+0x1;const _0x20bc70=_0xe861a6[_0x2e8d98(0x1e0)][_0x2e8d98(0x1db)](),_0x5591ab=_0x20bc70[_0x2e8d98(0x206)](_0x3cde58[_0x2e8d98(0x1b6)]),_0x1193ab=_0x20bc70[_0x5591ab+0x1];if(_0x1193ab){for(let _0x3a48a1=0x0;_0x3a48a1<_0x300595[_0x2e8d98(0x207)];_0x3a48a1++)if(_0x300595[_0x3a48a1][_0x2e8d98(0x203)][_0x2e8d98(0x1cf)][_0x2e8d98(0x1b6)]===_0x1193ab)return _0x3a48a1;}return _0x300595[_0x2e8d98(0x207)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1c5ab6,MenuBarMenuListItemButtonView as _0x596c19}from'ckeditor5/src/ui.js';import{Plugin as _0x286cb8}from'ckeditor5/src/core.js';import{IconFootnote as _0x5a71a2}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x286cb8{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x10ea59}=this,{componentFactory:_0x992b92}=_0x10ea59['ui'];_0x992b92['add']('insertFootnote',E(_0x10ea59,_0x1c5ab6)),_0x992b92['add']('menuBar:insertFootnote',E(_0x10ea59,_0x596c19)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48579b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x51f2c5;for(const _0x3d02cd in _0x48579b){const _0x1ca78e=_0x3d02cd,_0x56c7de=_0x48579b[_0x1ca78e];if('footnotesLicenseKeyValid'==_0x56c7de||'footnotesLicenseKeyInvalid'==_0x56c7de||'footnotesLicenseKeyExpired'==_0x56c7de||'footnotesLicenseKeyDomainLimit'==_0x56c7de||'footnotesLicenseKeyNotAllowed'==_0x56c7de||'footnotesLicenseKeyEvaluationLimit'==_0x56c7de||'footnotesLicenseKeyUsageLimit'==_0x56c7de){delete _0x48579b[_0x1ca78e],_0x51f2c5=_0x56c7de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x51f2c5&&_0x48579b['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x51f2c5&&_0x48579b['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x51f2c5&&_0x48579b['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x51f2c5&&_0x48579b['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x51f2c5&&_0x48579b['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x51f2c5&&_0x48579b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x15f35c,_0x371a40){const _0x29c327=_0x15f35c['commands']['get']('insertFootnote');return _0x5a6889=>{const {t:t}=_0x5a6889,_0x96dd07=new _0x371a40(_0x5a6889),_0x834a65=_0x96dd07 instanceof _0x596c19;return _0x96dd07['bind']('isEnabled')['to'](_0x29c327,'isEnabled'),_0x96dd07['set']({'label':t(_0x834a65?'Footnote':'Insert\x20footnote'),'icon':_0x5a71a2,'tooltip':!0x0}),_0x96dd07['on']('execute',()=>{_0x29c327['execute'](),_0x15f35c['editing']['view']['focus']();}),_0x96dd07;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x6556a0,_0x22ffef){var _0x268a08=_0x2eae,_0x9ee83f=_0x6556a0();while(!![]){try{var _0x24b303=parseInt(_0x268a08(0x74))/0x1+-parseInt(_0x268a08(0x76))/0x2*(parseInt(_0x268a08(0x6e))/0x3)+parseInt(_0x268a08(0x73))/0x4+parseInt(_0x268a08(0x71))/0x5+-parseInt(_0x268a08(0x70))/0x6*(-parseInt(_0x268a08(0x72))/0x7)+-parseInt(_0x268a08(0x6d))/0x8+parseInt(_0x268a08(0x75))/0x9*(-parseInt(_0x268a08(0x6f))/0xa);if(_0x24b303===_0x22ffef)break;else _0x9ee83f['push'](_0x9ee83f['shift']());}catch(_0x55620e){_0x9ee83f['push'](_0x9ee83f['shift']());}}}(_0x1650,0xacda3));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';function _0x2eae(_0x13ff2a,_0x519275){var _0x165087=_0x1650();return _0x2eae=function(_0x2eaeff,_0x2a1f83){_0x2eaeff=_0x2eaeff-0x6d;var _0x100e71=_0x165087[_0x2eaeff];return _0x100e71;},_0x2eae(_0x13ff2a,_0x519275);}export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';function _0x1650(){var _0x58ad01=['1170326yDlcao','3230000FcBjGt','3fICqZT','3337910fFkEue','474cKpOUY','1692245UJHFrb','59157dCPVjh','3637616EroADx','115225rjgxtI','9pPmGLs'];_0x1650=function(){return _0x58ad01;};return _0x1650();}export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x416517=_0x5075;function _0x3f83(){const _0x3e31c4=['660EOwqen','has','delete','getChanges','5QZwPLf','4515016ddKEwl','_trackedElements','elementName','getItems','root','attributes','push','7yDsuVO','2929008kzklIC','add','getElementKey','name','get','_model','type','insert','clear','element','flat','_elementName','$graveyard','1281104EOPAOI','createRangeOn','30MSKgtB','$text','5685054noDsdK','5958924mNiRnJ','set','_getElementKey','reset','2goBNMm','733205kKpBZx','slice','from','4478346nbyYZE','rootName','values','remove','position','nodeAfter','length'];_0x3f83=function(){return _0x3e31c4;};return _0x3f83();}function _0x5075(_0x48d446,_0x2454f6){const _0x3f8376=_0x3f83();return _0x5075=function(_0x5075ed,_0x85da84){_0x5075ed=_0x5075ed-0x112;let _0x411785=_0x3f8376[_0x5075ed];return _0x411785;},_0x5075(_0x48d446,_0x2454f6);}(function(_0x440a4b,_0x554d14){const _0x5a502f=_0x5075,_0x359d61=_0x440a4b();while(!![]){try{const _0x325d39=-parseInt(_0x5a502f(0x12e))/0x1+-parseInt(_0x5a502f(0x137))/0x2*(-parseInt(_0x5a502f(0x121))/0x3)+-parseInt(_0x5a502f(0x133))/0x4+-parseInt(_0x5a502f(0x118))/0x5*(-parseInt(_0x5a502f(0x132))/0x6)+-parseInt(_0x5a502f(0x120))/0x7*(parseInt(_0x5a502f(0x119))/0x8)+-parseInt(_0x5a502f(0x13b))/0x9*(parseInt(_0x5a502f(0x130))/0xa)+-parseInt(_0x5a502f(0x138))/0xb*(-parseInt(_0x5a502f(0x114))/0xc);if(_0x325d39===_0x554d14)break;else _0x359d61['push'](_0x359d61['shift']());}catch(_0x87b41d){_0x359d61['push'](_0x359d61['shift']());}}}(_0x3f83,0xba014));export class ModelElementTracker{[_0x416517(0x126)];[_0x416517(0x12c)];[_0x416517(0x135)];[_0x416517(0x11a)]=new Map();constructor(_0x55587d,_0x50c3b6){const _0x5841e9=_0x416517;this[_0x5841e9(0x126)]=_0x55587d,this[_0x5841e9(0x12c)]=_0x50c3b6[_0x5841e9(0x11b)],this[_0x5841e9(0x135)]=_0x50c3b6[_0x5841e9(0x123)];}[_0x416517(0x136)](){const _0x574f65=_0x416517;this[_0x574f65(0x11a)][_0x574f65(0x129)]();}[_0x416517(0x117)](_0x10e61c){const _0x5f31b6=_0x416517,_0x245d67=new Set(),_0x3fc87b=new Map();for(const _0x3c79d6 of _0x10e61c){if(_0x5f31b6(0x128)===_0x3c79d6[_0x5f31b6(0x127)]&&_0x5f31b6(0x131)!==_0x3c79d6[_0x5f31b6(0x124)]&&_0x3c79d6[_0x5f31b6(0x13f)][_0x5f31b6(0x112)]){const _0x156a65=this[_0x5f31b6(0x126)][_0x5f31b6(0x12f)](_0x3c79d6[_0x5f31b6(0x13f)][_0x5f31b6(0x112)]);for(const _0x4c7857 of _0x156a65[_0x5f31b6(0x11c)]()){if(!_0x4c7857['is'](_0x5f31b6(0x12a),this[_0x5f31b6(0x12c)]))continue;const _0x2fae80=this[_0x5f31b6(0x135)](_0x4c7857);_0x3fc87b[_0x5f31b6(0x115)](_0x2fae80)||_0x3fc87b[_0x5f31b6(0x134)](_0x2fae80,[]),_0x3fc87b[_0x5f31b6(0x125)](_0x2fae80)[_0x5f31b6(0x11f)](_0x4c7857);}}if(_0x5f31b6(0x13e)===_0x3c79d6[_0x5f31b6(0x127)]&&_0x3c79d6[_0x5f31b6(0x124)]===this[_0x5f31b6(0x12c)]){const _0x4707d3=this[_0x5f31b6(0x135)]({'getAttribute':_0x25171e=>_0x3c79d6[_0x5f31b6(0x11e)][_0x5f31b6(0x125)](_0x25171e)});_0x245d67[_0x5f31b6(0x122)](_0x4707d3);}}for(const [_0x3d6ecb,_0x38ee32]of this[_0x5f31b6(0x11a)])_0x5f31b6(0x12d)===_0x38ee32[_0x5f31b6(0x11d)][_0x5f31b6(0x13c)]&&_0x245d67[_0x5f31b6(0x122)](_0x3d6ecb);for(const _0x402d91 of _0x245d67)this[_0x5f31b6(0x11a)][_0x5f31b6(0x116)](_0x402d91);for(const [_0x33b3ba,_0x1175fb]of _0x3fc87b)this[_0x5f31b6(0x11a)][_0x5f31b6(0x134)](_0x33b3ba,_0x1175fb[_0x1175fb[_0x5f31b6(0x113)]-0x1]);const _0x3fa1=new Set();for(const [_0x5543e8,_0x3d771c]of _0x3fc87b)_0x245d67[_0x5f31b6(0x115)](_0x5543e8)&&(_0x3fa1[_0x5f31b6(0x122)](_0x3d771c[0x0]),_0x3d771c[_0x5f31b6(0x113)]>0x1?_0x3fc87b[_0x5f31b6(0x134)](_0x5543e8,_0x3d771c[_0x5f31b6(0x139)](0x1)):_0x3fc87b[_0x5f31b6(0x116)](_0x5543e8),_0x245d67[_0x5f31b6(0x116)](_0x5543e8));return{'removed':Array[_0x5f31b6(0x13a)](_0x245d67),'inserted':Array[_0x5f31b6(0x13a)](_0x3fc87b[_0x5f31b6(0x13d)]())[_0x5f31b6(0x12b)](),'moved':Array[_0x5f31b6(0x13a)](_0x3fa1)};}}
|