@ckeditor/ckeditor5-footnotes 47.3.0-alpha.2 → 47.3.0-alpha.4
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 _0x5adadb}from'ckeditor5/src/core.js';import{isWidget as _0x291337,toWidget as _0x59a580,toWidgetEditable as _0x25f0de}from'ckeditor5/src/widget.js';import{uid as _0x351ebe}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4a499d,ClickObserver as _0x5a2ad2}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xbc4219}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5d443c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5adadb{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xbc4219];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2bf47a}=this;_0x2bf47a['config']['define']('footnotes.multiBlock',!0x0),_0x2bf47a['commands']['add']('insertFootnote',new _0x5d443c(_0x2bf47a)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5365c8){const _0x1c6234=_0x5e7d10([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x2b23ba=0x47a28506,_0xa9119e=0x47a5ff66^_0x2b23ba,_0x4142fc=window[_0x5e7d10([0x44,0x61,0x74,0x65])][_0x5e7d10([0x6e,0x6f,0x77])](),_0x488091=_0x5365c8[_0x5e7d10([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x400037=new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be020=>{_0x488091[_0x5e7d10([0x6f,0x6e,0x63,0x65])](_0x5e7d10([0x72,0x65,0x61,0x64,0x79]),_0x2be020);}),_0xe492fb={[_0x5e7d10([0x6b,0x74,0x79])]:_0x5e7d10([0x45,0x43]),[_0x5e7d10([0x75,0x73,0x65])]:_0x5e7d10([0x73,0x69,0x67]),[_0x5e7d10([0x63,0x72,0x76])]:_0x5e7d10([0x50,0x2d,0x32,0x35,0x36]),[_0x5e7d10([0x78])]:_0x5e7d10([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5e7d10([0x79])]:_0x5e7d10([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5e7d10([0x61,0x6c,0x67])]:_0x5e7d10([0x45,0x53,0x32,0x35,0x36])},_0x39ac0b=_0x488091[_0x5e7d10([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e7d10([0x67,0x65,0x74])](_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4937d6(){let _0x2c9c93,_0x19fd58=null,_0x554add=null;try{if(_0x39ac0b==_0x5e7d10([0x47,0x50,0x4c]))return _0x5e7d10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c9c93=_0x387767(),!_0x2c9c93)return _0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c9c93[_0x5e7d10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x554add=_0x2a0d5c(_0x2c9c93[_0x5e7d10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c9c93[_0x5e7d10([0x6a,0x74,0x69])])),await _0x24a355()?_0x566f9c()?_0x3434b3()?_0x5e7d10([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x170e9c()?(_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e7d10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19fd58=_0x5989c8(_0x5e7d10([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e7d10([0x74,0x72,0x69,0x61,0x6c])&&(_0x19fd58=_0x5989c8(_0x5e7d10([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10489c()):_0x5e7d10([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e7d10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3434b3(){const _0x50d42e=[_0x5e7d10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e7d10([0x74,0x72,0x69,0x61,0x6c])][_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4142fc/0x3e8:0xe10*_0xa9119e;return _0x2c9c93[_0x5e7d10([0x65,0x78,0x70])]<_0x50d42e;}function _0x566f9c(){const _0x2a0219=_0x2c9c93[_0x5e7d10([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a0219&&(!!_0x2a0219[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x2a]))||!!_0x2a0219[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x46,0x4f,0x4f])));}function _0x170e9c(){const _0xb1f2ba=_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb1f2ba||0x0==_0xb1f2ba[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x76ef9c}=new URL(window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb1f2ba[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76ef9c))return!0x0;const _0x40d5f1=_0x76ef9c[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e]));return _0xb1f2ba[_0x5e7d10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x356edc=>_0x356edc[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x2a])))[_0x5e7d10([0x6d,0x61,0x70])](_0x25e736=>_0x25e736[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e])))[_0x5e7d10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d0288=>_0x5d0288[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40d5f1[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e7d10([0x6d,0x61,0x70])](_0x102ff9=>Array(_0x40d5f1[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x102ff9[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e7d10([0x66,0x69,0x6c,0x6c])](_0x102ff9[0x0]===_0x5e7d10([0x2a])?_0x5e7d10([0x2a]):'')[_0x5e7d10([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x102ff9))[_0x5e7d10([0x73,0x6f,0x6d,0x65])](_0x3f0cdc=>_0x40d5f1[_0x5e7d10([0x65,0x76,0x65,0x72,0x79])]((_0x31a9bf,_0x56ceb4)=>_0x3f0cdc[_0x56ceb4]===_0x31a9bf||_0x3f0cdc[_0x56ceb4]===_0x5e7d10([0x2a])));}function _0x10489c(){return _0x19fd58&&_0x554add?new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a3e2e,_0x159f12)=>{_0x19fd58[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x3a3e2e,_0x159f12),_0x554add[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x4a7498=>{_0x4a7498!=_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])&&_0x3a3e2e(_0x4a7498);},_0x159f12);}):_0x19fd58||_0x554add||_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a0d5c(_0x50e65c,_0x3626c2){return new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c6c0=>{if(_0x15128a())return _0x19c6c0(_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]));_0xd959dd(),_0x488091[_0x5e7d10([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f8c6f=!0x1;const _0x21e398=_0x351ebe();function _0x1cd0bb(_0x3019d5){return!!_0x3019d5&&(typeof _0x3019d5===_0x5e7d10([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3019d5===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3019d5[_0x5e7d10([0x74,0x68,0x65,0x6e])]===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3019d5[_0x5e7d10([0x63,0x61,0x74,0x63,0x68])]===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31a95a(_0x2475f1){_0x262190(_0x2475f1)[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x585647=>{if(!_0x585647||_0x585647[_0x5e7d10([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e7d10([0x6f,0x6b]))return _0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4de0f9(_0x4cff71(_0x21e398+_0x3626c2))!=_0x585647[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x1bc7a4=>(_0xad88e5(),_0x1bc7a4),()=>{const _0x2d69d1=_0x39a26f();return null==_0x2d69d1?(_0xad88e5(),_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])):_0x5e7d10(_0x4142fc-_0x2d69d1>(0x63ae0106^_0x2b23ba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x19c6c0)[_0x5e7d10([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21c888=0x47946b86^_0x2b23ba;function _0xad88e5(){const _0x1aa989=_0x5e7d10([0x6c,0x6c,0x63,0x74,0x2d])+_0x4de0f9(_0x4cff71(_0x50e65c)),_0x128c55=_0x260751(_0x4de0f9(window[_0x5e7d10([0x4d,0x61,0x74,0x68])][_0x5e7d10([0x63,0x65,0x69,0x6c])](_0x4142fc/_0x21c888)));window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e7d10([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1aa989,_0x128c55);}function _0x39a26f(){const _0x12a4f3=_0x5e7d10([0x6c,0x6c,0x63,0x74,0x2d])+_0x4de0f9(_0x4cff71(_0x50e65c)),_0x4bbafa=window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e7d10([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12a4f3);return _0x4bbafa?window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260751(_0x4bbafa),0x10)*_0x21c888:null;}function _0x262190(_0xcb1bd6){return new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x120e18,_0x57d314)=>{_0xcb1bd6[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x120e18,_0x57d314),window[_0x5e7d10([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57d314,0x47a351c6^_0x2b23ba);});}}_0x488091[_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13f181,_0x5e89e5)=>{if(_0x5e89e5[0x0]!=_0x50e65c)return _0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e89e5[0x1]={..._0x5e89e5[0x1],[_0x5e7d10([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21e398};},{[_0x5e7d10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e7d10([0x68,0x69,0x67,0x68])}),_0x488091[_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x260987=>{_0x1cd0bb(_0x260987[_0x5e7d10([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f8c6f=!0x0,_0x31a95a(_0x260987[_0x5e7d10([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e7d10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e7d10([0x6c,0x6f,0x77])}),_0x400037[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>{_0x1f8c6f||_0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15128a(){return _0x488091[_0x5e7d10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e7d10([0x76,0x69,0x65,0x77])][_0x5e7d10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e7d10([0x61,0x75,0x74,0x6f]);}function _0xd959dd(){_0x488091[_0x5e7d10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e7d10([0x76,0x69,0x65,0x77])][_0x5e7d10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e7d10([0x61,0x75,0x74,0x6f]);}}function _0x5989c8(_0x3580fd){const _0x4ded35=[new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10ca2c=>setTimeout(_0x10ca2c,0x47abbbca^_0x2b23ba)),_0x400037[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdfafec=>{let _0x4c45de=0x0;_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e3462,_0x1b200b)=>{_0x1b200b[0x0][_0x5e7d10([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c45de++,_0x4c45de==(0x47a284fe^_0x2b23ba)&&(_0xdfafec(),_0x3e3462[_0x5e7d10([0x6f,0x66,0x66])]());});}))];return window[_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e7d10([0x72,0x61,0x63,0x65])](_0x4ded35)[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>_0x3580fd);}async function _0x4dc37c(){await _0x400037,_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c595e,_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c595e,_0x488091[_0x5e7d10([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58028e(_0x5c2a94){const _0x13583b=_0x43615a();_0x488091[_0x13583b]=_0x5e7d10([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c2a94,_0x5c2a94!=_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])&&_0x4dc37c();}function _0x43615a(){const _0x5d1b14=window[_0x5e7d10([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e7d10([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e7d10([0x6e,0x6f,0x77])]())[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e7d10([0x2e]),'');let _0x39d31a=_0x5e7d10([0x75]);for(let _0x401e10=0x0;_0x401e10<_0x5d1b14[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x401e10+=0x2){let _0x557342=window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1b14[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x401e10,_0x401e10+0x2));_0x557342>=_0x1c6234[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x557342-=_0x1c6234[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39d31a+=_0x1c6234[_0x557342];}return _0x39d31a;}function _0x387767(){const _0x23a3eb=_0x39ac0b[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e]));if(0x3!=_0x23a3eb[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bc200(_0x23a3eb[0x1]);function _0x2bc200(_0x59c898){const _0x1f29ee=_0x3a0898(_0x59c898);return _0x1f29ee&&_0x3a2929()?_0x1f29ee:null;function _0x3a2929(){const _0x4a528f=_0x1f29ee[_0x5e7d10([0x6a,0x74,0x69])],_0x47f43f=window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a528f[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a528f[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc69233={..._0x1f29ee,[_0x5e7d10([0x6a,0x74,0x69])]:_0x4a528f[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a528f[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc69233[_0x5e7d10([0x76,0x63])],_0x4cff71(_0xc69233)==_0x47f43f;}}}async function _0x24a355(){let _0x52b27c=!0x0;try{const _0x5c5347=_0x39ac0b[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e])),[_0x44312c,_0x16913a,_0x2fb08f]=_0x5c5347;return _0x1a1fdc(_0x44312c),await _0x28d0d0(_0x44312c,_0x16913a,_0x2fb08f),_0x52b27c;}catch{return!0x1;}function _0x1a1fdc(_0x207e34){const _0x28aea3=_0x3a0898(_0x207e34);_0x28aea3&&_0x28aea3[_0x5e7d10([0x61,0x6c,0x67])]==_0x5e7d10([0x45,0x53,0x32,0x35,0x36])||(_0x52b27c=!0x1);}async function _0x28d0d0(_0x41039d,_0x30d19c,_0x23a8e7){const _0x4c32c6=window[_0x5e7d10([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e7d10([0x66,0x72,0x6f,0x6d])](_0x135fdf(_0x23a8e7),_0x32ca6f=>_0x32ca6f[_0x5e7d10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa75721=new window[(_0x5e7d10([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e7d10([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41039d+_0x5e7d10([0x2e])+_0x30d19c),_0x2fec2b=window[_0x5e7d10([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e7d10([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fec2b)return;const _0x2b8eb5=await _0x2fec2b[_0x5e7d10([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e7d10([0x6a,0x77,0x6b]),_0xe492fb,{[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x45,0x43,0x44,0x53,0x41]),[_0x5e7d10([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e7d10([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fec2b[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x45,0x43,0x44,0x53,0x41]),[_0x5e7d10([0x68,0x61,0x73,0x68])]:{[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b8eb5,_0x4c32c6,_0xa75721)||(_0x52b27c=!0x1);}}function _0x3a0898(_0x25546f){return _0x25546f[_0x5e7d10([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e7d10([0x65,0x79]))?JSON[_0x5e7d10([0x70,0x61,0x72,0x73,0x65])](_0x135fdf(_0x25546f)):null;}function _0x135fdf(_0x4f572e){return window[_0x5e7d10([0x61,0x74,0x6f,0x62])](_0x4f572e[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e7d10([0x2b]))[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e7d10([0x2f])));}function _0x4cff71(_0x54a6a3){let _0x417405=0x1505;function _0x2c075f(_0x1bc884){for(let _0x2e80ea=0x0;_0x2e80ea<_0x1bc884[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e80ea++){const _0x1a669f=_0x1bc884[_0x5e7d10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e80ea);_0x417405=(_0x417405<<0x5)+_0x417405+_0x1a669f,_0x417405&=_0x417405;}}function _0x43d0f6(_0x128632){Array[_0x5e7d10([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x128632)?_0x128632[_0x5e7d10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43d0f6):_0x128632&&typeof _0x128632==_0x5e7d10([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e7d10([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x128632)[_0x5e7d10([0x73,0x6f,0x72,0x74])]()[_0x5e7d10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30c755,_0x588f0c])=>{_0x2c075f(_0x30c755),_0x43d0f6(_0x588f0c);}):_0x2c075f(window[_0x5e7d10([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x128632));}return _0x43d0f6(_0x54a6a3),_0x417405>>>0x0;}function _0x4de0f9(_0x2f85a3){return _0x2f85a3[_0x5e7d10([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e7d10([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e7d10([0x30]));}function _0x260751(_0x46938f){return _0x46938f[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e7d10([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e7d10([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c595e(){}function _0x5e7d10(_0xb10f1f){return _0xb10f1f['map'](_0x18d32a=>String['fromCharCode'](_0x18d32a))['join']('');}_0x58028e(await _0x4937d6());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3539b9){const {plugins:_0x1bbb34,editing:_0x615788,model:_0x24e9b9}=this['editor'],_0x238ade=_0x1bbb34['get'](_0xbc4219)['getFootnote'](_0x3539b9);return!!_0x238ade&&(_0x24e9b9['change'](_0x143849=>{_0x143849['setSelection'](_0x143849['createPositionAt'](_0x238ade['definition'],'end'));}),_0x615788['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x48c404){const {plugins:_0x46ccc1,editing:_0x40271f,model:_0x187dd6}=this['editor'],_0x3ed80c=_0x46ccc1['get'](_0xbc4219)['getFootnote'](_0x48c404);return!!_0x3ed80c&&(_0x187dd6['change'](_0x1259ba=>{_0x1259ba['setSelection'](_0x3ed80c['reference'],'on');}),_0x40271f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xdee1c0}=this['editor']['model'],_0x5d3190=this['editor']['config']['get']('footnotes.multiBlock');_0xdee1c0['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xdee1c0['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xdee1c0['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5d3190?_0xdee1c0['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xdee1c0['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xdee1c0['addChildCheck'](_0x267297=>{for(const _0x300987 of _0x267297)if('footnoteDefinition'===_0x300987['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b9972}=this,{conversion:_0x3ab32c,editing:_0x1f5785}=_0x2b9972,{t:t}=_0x2b9972['locale'];_0x3ab32c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xcb5050,{writer:_0x25bb7f,consumable:_0x199d9b})=>{const _0x212c65=_0xcb5050['getChild'](0x0);if(!_0x212c65||!_0x212c65['is']('element','a'))return null;const _0x330833=_0x212c65['getAttribute']('href')||'';if(!_0x330833['startsWith']('#'))return null;const _0x40dd60=_0x330833['replace'](/^#/,'');if(!_0x40dd60)return null;_0x199d9b['consume'](_0x212c65,{'name':!0x0,'attributes':['href']});for(const {item:_0x42e488}of _0x1f5785['view']['createRangeIn'](_0x212c65))_0x42e488['is']('$textProxy')?_0x199d9b['consume'](_0x42e488['textNode'],{'name':!0x0}):_0x42e488['is']('element')&&_0x199d9b['consume'](_0x42e488,{'name':!0x0});return _0x25bb7f['createElement']('footnoteRef',{'footnoteId':_0x40dd60});}}),_0x3ab32c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e742b,{writer:_0x4dc48f})=>D(_0x3e742b,_0x4dc48f)}),_0x3ab32c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x307098,{writer:_0x1c6428})=>{const _0x2536ec=_0x307098['getAttribute']('footnoteCounter');return _0x59a580(D(_0x307098,_0x1c6428),_0x1c6428,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2536ec)});}});}['_defineDefinitionsConverters'](){const {editor:_0x15927a}=this,{t:t}=_0x15927a['locale'],{conversion:_0x390c79}=_0x15927a;_0x390c79['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x390c79['for']('upcast')['add'](_0x484926=>{_0x484926['on']('element:ol',(_0x33cf62,_0x4e4b9b,_0x4459e7)=>{const _0x23979a=_0x4e4b9b['viewItem'];if(!_0x23979a['hasClass']('footnotes-list')||!_0x4e4b9b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4459e7['consumable']['consume'](_0x23979a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x171ed7,modelCursor:_0x43ce4b}=_0x4459e7['convertChildren'](_0x4e4b9b['viewItem'],_0x4e4b9b['modelCursor']);_0x4e4b9b['modelRange']=_0x171ed7,_0x4e4b9b['modelCursor']=_0x43ce4b;}),_0x484926['on']('element:hr',(_0x25092c,_0x31b0bc,_0x43d192)=>{const _0x5444d0=_0x31b0bc['viewItem'];_0x5444d0['hasClass']('footnotes-divider')&&_0x31b0bc['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x43d192['consumable']['consume'](_0x5444d0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x390c79['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4379fc,{writer:_0x2d5284})=>v(_0x2d5284)}),_0x390c79['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2ba837,{writer:_0x4d656a})=>{const _0x50cd79=v(_0x4d656a,{'data-footnotes-list-label':t('Footnotes')}),_0x1aab5c=_0x59a580(_0x50cd79,_0x4d656a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4d656a['setCustomProperty']('footnotesDefinitions',!0x0,_0x1aab5c),_0x1aab5c;}});}['_defineDefinitionConverters'](){const {editor:_0x98587b}=this,{conversion:_0x3e832e,locale:_0x2cecf9}=_0x98587b,_0x14066b=_0x98587b['config']['get']('footnotes.multiBlock');_0x3e832e['for']('upcast')['add'](_0x17ac18=>{_0x17ac18['on']('element:li',(_0x4f4599,_0x352c57,_0x4d6b24)=>{const _0x40c1f9=_0x352c57['viewItem'];if(!_0x40c1f9['hasClass']('footnote-definition')||!_0x40c1f9['getAttribute']('id'))return;const _0x7b5742=_0x40c1f9['parent'];if(!_0x7b5742['is']('element','ol')||!_0x7b5742['hasClass']('footnotes-list'))return;if(!_0x4d6b24['consumable']['test'](_0x40c1f9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4e1643=_0x4d6b24['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x40c1f9['getAttribute']('id')});if(!_0x4d6b24['safeInsert'](_0x4e1643,_0x352c57['modelCursor']))return;_0x4d6b24['consumable']['consume'](_0x40c1f9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x47f854=Array['from'](_0x40c1f9['getChildren']())['find'](_0x19101b=>_0x19101b['is']('element')&&_0x19101b['hasClass']('footnote-content'));for(const _0x39f62e of _0x40c1f9['getChildren']())_0x39f62e['is']('element')&&(_0x4d6b24['consumable']['consume'](_0x39f62e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4d6b24['consumable']['consume'](_0x39f62e,{'name':!0x0,'classes':'footnote-content'}));if(_0x47f854){if(_0x14066b)_0x4d6b24['convertChildren'](_0x47f854,_0x4e1643);else{const _0x266652=_0x4d6b24['writer']['createElement']('footnoteInlineContent');_0x4d6b24['writer']['insert'](_0x266652,_0x4e1643),_0x4d6b24['convertChildren'](_0x47f854,_0x266652);}}_0x4d6b24['updateConversionResult'](_0x4e1643,_0x352c57);});}),_0x3e832e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4943d7,{writer:_0x3c529f})=>b(_0x4943d7,_0x3c529f,_0x2cecf9,{'dataPipeline':!0x0})}),_0x3e832e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x539ce0,{writer:_0x1a2d90})=>b(_0x539ce0,_0x1a2d90,_0x2cecf9)});}['_defineBogusParagraphConverters'](){const {editor:_0x122ac7}=this,{conversion:_0x47528a}=_0x122ac7;_0x122ac7['config']['get']('footnotes.multiBlock')?(_0x47528a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x47528a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x122ac7['model']['document'],'change:data',()=>{!function(_0x2b2b8c,_0x4e3f14){const _0x6c1247=_0x2b2b8c['document']['differ'],_0x14c0e=new Set();for(const _0x1f138a of _0x6c1247['getChanges']()){const _0x4d1305='attribute'==_0x1f138a['type']?_0x1f138a['range']['start']['parent']:_0x1f138a['position']['parent'];_0x4d1305['is']('element','footnoteDefinition')&&_0x14c0e['add'](_0x4d1305);}for(const _0x336517 of _0x14c0e['values']()){const _0x274e2d=Array['from'](_0x336517['getChildren']())['filter'](_0x523ca2=>g(_0x523ca2,_0x4e3f14['mapper']));for(const _0x654ff2 of _0x274e2d)_0x4e3f14['reconvertItem'](_0x654ff2);}}(_0x122ac7['model'],_0x122ac7['editing']);})):(_0x47528a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x47528a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4071fd,{writer:_0xee8ffd})=>{const _0x3c364a=_0xee8ffd['createContainerElement']('span');return _0xee8ffd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c364a),_0x3c364a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x12b605}=this,{editing:_0x173a62,t:t}=_0x12b605,_0x1391ff=_0x12b605['model']['document']['selection'];_0x12b605['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x12b605['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x173a62['view']['document'],'enter',(_0x388854,_0xd26cc4)=>{const _0x5aaf5d=function(_0x233eb8){const _0x5561bc=_0x233eb8['getSelectedElement']();if(_0x5561bc?.['is']('element','footnoteRef'))return _0x5561bc;return null;}(_0x1391ff);if(_0x5aaf5d){const _0x116ca1=_0x5aaf5d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x116ca1),_0xd26cc4['preventDefault'](),_0x388854['stop']();}},{'context':_0x291337});}['_defineClickHandlers'](){const {editor:_0x1cfcf9}=this,{editing:_0x18aee3}=_0x1cfcf9;_0x1cfcf9['editing']['view']['addObserver'](_0x4a499d),_0x1cfcf9['editing']['view']['addObserver'](_0x5a2ad2);let _0x5b4e6f=!0x1;this['listenTo'](_0x18aee3['view']['document'],'pointerdown',(_0xce21bd,_0x1836e9)=>{const {target:_0x2dd665}=_0x1836e9,_0x3d3efa=_0x18aee3['view']['document']['selection'];_0x5b4e6f=!!(_0x2dd665?.['is']('element','a')&&_0x2dd665['parent']?.['is']('element','sup')&&_0x2dd665['parent']['hasClass']('footnote'))&&_0x3d3efa['getSelectedElement']()===_0x2dd665['parent'];},{'priority':'high'}),this['listenTo'](_0x18aee3['view']['document'],'click',(_0x316ed0,_0xd8ed45)=>{const {target:_0x2e5c89}=_0xd8ed45;if(!_0x2e5c89?.['is']('element','a'))return;if(_0x2e5c89['parent']?.['is']('element','sup')&&_0x2e5c89['parent']['hasClass']('footnote')&&!_0x5b4e6f)return void _0xd8ed45['preventDefault']();let _0x21b8c2=_0x2e5c89['getAttribute']('href');if(!_0x21b8c2?.['startsWith']('#'))return;_0x21b8c2=_0x21b8c2['slice'](0x1);let _0x1c6c66=!0x1;(_0x21b8c2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x21b8c2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x21b8c2))&&(_0x1c6c66=!0x0),_0x1c6c66&&(_0xd8ed45['preventDefault'](),_0x316ed0['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xbda47f}={}){return(_0x15376d,{writer:_0x315e41})=>{if(!p(_0x15376d))return null;if(!_0xbda47f)return _0x315e41['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x589728=_0x315e41['createContainerElement']('p');return _0x315e41['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x589728),_0x589728;};}function p(_0x13bd65){const {parent:_0x4f80ef}=_0x13bd65;if(!_0x4f80ef?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4f80ef['childCount'])return!0x1;for(const _0x24d7de of _0x13bd65['getAttributeKeys']())if(!_0x24d7de['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x24d7de)return!0x1;return!0x0;}function g(_0x280789,_0x2765ab){if(!_0x280789['is']('element','paragraph'))return!0x1;const _0x4a39ed=_0x2765ab['toViewElement'](_0x280789);return!!_0x4a39ed&&p(_0x280789)!==_0x4a39ed['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x177561){return _0x291337(_0x177561)&&_0x177561['is']('containerElement')&&!!_0x177561['getCustomProperty']('footnotesDefinitions');}function v(_0x76cf74,_0x4f0693={}){const _0x3e6b08=_0x76cf74['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x7a74aa=_0x76cf74['createContainerElement']('ol',{'class':'footnotes-list'},_0x76cf74['createSlot']());return _0x76cf74['createContainerElement']('div',{'class':'footnotes',..._0x4f0693},[_0x3e6b08,_0x7a74aa]);}function D(_0x33a89a,_0x1443b3){const _0x1dd3ab=_0x33a89a['getAttribute']('footnoteId'),_0x55d710=_0x33a89a['getAttribute']('footnoteCounter'),_0x421085=_0x1443b3['createUIElement']('a',{'href':'#'+_0x1dd3ab},function(_0x11b155){const _0x45535f=this['toDomElement'](_0x11b155);return _0x45535f['textContent']=_0x55d710,_0x45535f;}),_0x51924e=_0x1443b3['createContainerElement']('sup',{'id':'ref-'+_0x1dd3ab,'class':'footnote'},[_0x421085]);return _0x51924e['getFillerOffset']=()=>null,_0x51924e;}function b(_0x281da4,_0x384600,_0x4af208,{dataPipeline:_0x421f29}={}){const {t:t}=_0x4af208,_0x42af88=_0x281da4['getAttribute']('footnoteId'),_0x582cea=_0x384600['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x42af88},function(_0x59cd75){const _0x4ea0c2=this['toDomElement'](_0x59cd75);return _0x4ea0c2['innerText']='^',_0x4ea0c2;}),_0xc87ce3=_0x421f29?_0x384600['createContainerElement']('div',{'class':'footnote-content'}):_0x25f0de(_0x384600['createEditableElement']('div',{'class':'footnote-content'}),_0x384600,{'label':t('Footnote\x20content.')});return _0x384600['insert'](_0x384600['createPositionAt'](_0xc87ce3,0x0),_0x384600['createSlot']()),_0x384600['createContainerElement']('li',{'class':'footnote-definition','id':_0x42af88},[_0x582cea,_0xc87ce3]);}
|
|
23
|
+
import{Plugin as _0x1df53c}from'ckeditor5/src/core.js';import{isWidget as _0x466f3a,toWidget as _0x128ba6,toWidgetEditable as _0x56c853}from'ckeditor5/src/widget.js';import{uid as _0x5804b0}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4d3417,ClickObserver as _0x47ac07}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3a1e97}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x8c6d2}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1df53c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3a1e97];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x232974}=this;_0x232974['config']['define']('footnotes.multiBlock',!0x0),_0x232974['commands']['add']('insertFootnote',new _0x8c6d2(_0x232974)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3dcad2){const _0x1993e3=_0x2afb01([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]),_0x3deeff=0x47a28506,_0xee719c=0x47a5ff96^_0x3deeff,_0x26e67f=window[_0x2afb01([0x44,0x61,0x74,0x65])][_0x2afb01([0x6e,0x6f,0x77])](),_0x25c5e8=_0x3dcad2[_0x2afb01([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x359139=new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35a7b0=>{_0x25c5e8[_0x2afb01([0x6f,0x6e,0x63,0x65])](_0x2afb01([0x72,0x65,0x61,0x64,0x79]),_0x35a7b0);}),_0x6698e0={[_0x2afb01([0x6b,0x74,0x79])]:_0x2afb01([0x45,0x43]),[_0x2afb01([0x75,0x73,0x65])]:_0x2afb01([0x73,0x69,0x67]),[_0x2afb01([0x63,0x72,0x76])]:_0x2afb01([0x50,0x2d,0x32,0x35,0x36]),[_0x2afb01([0x78])]:_0x2afb01([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]),[_0x2afb01([0x79])]:_0x2afb01([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]),[_0x2afb01([0x61,0x6c,0x67])]:_0x2afb01([0x45,0x53,0x32,0x35,0x36])},_0x13fe8e=_0x25c5e8[_0x2afb01([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2afb01([0x67,0x65,0x74])](_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x261bff(){let _0x3ffcfb,_0x175704=null,_0x288ee1=null;try{if(_0x13fe8e==_0x2afb01([0x47,0x50,0x4c]))return _0x2afb01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ffcfb=_0x2f1571(),!_0x3ffcfb)return _0x2afb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ffcfb[_0x2afb01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x288ee1=_0x1d0c47(_0x3ffcfb[_0x2afb01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ffcfb[_0x2afb01([0x6a,0x74,0x69])])),await _0x18a895()?_0x139515()?_0xf85d62()?_0x2afb01([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x195d54()?(_0x3ffcfb[_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2afb01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x175704=_0x4aa733(_0x2afb01([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ffcfb[_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2afb01([0x74,0x72,0x69,0x61,0x6c])&&(_0x175704=_0x4aa733(_0x2afb01([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c7144()):_0x2afb01([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2afb01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2afb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2afb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf85d62(){const _0x52d91b=[_0x2afb01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2afb01([0x74,0x72,0x69,0x61,0x6c])][_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ffcfb[_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26e67f/0x3e8:0xe10*_0xee719c;return _0x3ffcfb[_0x2afb01([0x65,0x78,0x70])]<_0x52d91b;}function _0x139515(){const _0x804c70=_0x3ffcfb[_0x2afb01([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x804c70&&(!!_0x804c70[_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afb01([0x2a]))||!!_0x804c70[_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afb01([0x46,0x4f,0x4f])));}function _0x195d54(){const _0x26a22c=_0x3ffcfb[_0x2afb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26a22c||0x0==_0x26a22c[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc6fa32}=new URL(window[_0x2afb01([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26a22c[_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc6fa32))return!0x0;const _0x256d2c=_0xc6fa32[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])](_0x2afb01([0x2e]));return _0x26a22c[_0x2afb01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4010c2=>_0x4010c2[_0x2afb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afb01([0x2a])))[_0x2afb01([0x6d,0x61,0x70])](_0x367e2d=>_0x367e2d[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])](_0x2afb01([0x2e])))[_0x2afb01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9da87a=>_0x9da87a[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x256d2c[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2afb01([0x6d,0x61,0x70])](_0x4f0424=>Array(_0x256d2c[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f0424[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2afb01([0x66,0x69,0x6c,0x6c])](_0x4f0424[0x0]===_0x2afb01([0x2a])?_0x2afb01([0x2a]):'')[_0x2afb01([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f0424))[_0x2afb01([0x73,0x6f,0x6d,0x65])](_0x1bce93=>_0x256d2c[_0x2afb01([0x65,0x76,0x65,0x72,0x79])]((_0x2694b1,_0x1c72e2)=>_0x1bce93[_0x1c72e2]===_0x2694b1||_0x1bce93[_0x1c72e2]===_0x2afb01([0x2a])));}function _0x4c7144(){return _0x175704&&_0x288ee1?new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x553045,_0x5c811a)=>{_0x175704[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x553045,_0x5c811a),_0x288ee1[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x1b4c2c=>{_0x1b4c2c!=_0x2afb01([0x56,0x61,0x6c,0x69,0x64])&&_0x553045(_0x1b4c2c);},_0x5c811a);}):_0x175704||_0x288ee1||_0x2afb01([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d0c47(_0xc6929e,_0x294d83){return new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2207=>{if(_0x5b61df())return _0x5b2207(_0x2afb01([0x56,0x61,0x6c,0x69,0x64]));_0x1e84d5(),_0x25c5e8[_0x2afb01([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2afb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50197e=!0x1;const _0x42efad=_0x5804b0();function _0x515af0(_0x3c1467){return!!_0x3c1467&&(typeof _0x3c1467===_0x2afb01([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c1467===_0x2afb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c1467[_0x2afb01([0x74,0x68,0x65,0x6e])]===_0x2afb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c1467[_0x2afb01([0x63,0x61,0x74,0x63,0x68])]===_0x2afb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12961e(_0x3c25bc){_0x1189b6(_0x3c25bc)[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x55d4ff=>{if(!_0x55d4ff||_0x55d4ff[_0x2afb01([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2afb01([0x6f,0x6b]))return _0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x512854(_0x690b10(_0x42efad+_0x294d83))!=_0x55d4ff[_0x2afb01([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2afb01([0x56,0x61,0x6c,0x69,0x64]);})[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x4c8681=>(_0xc2408d(),_0x4c8681),()=>{const _0xa9eb01=_0xd7a31b();return null==_0xa9eb01?(_0xc2408d(),_0x2afb01([0x56,0x61,0x6c,0x69,0x64])):_0x2afb01(_0x26e67f-_0xa9eb01>(0x63ae0106^_0x3deeff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x5b2207)[_0x2afb01([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b2207(_0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d8b31=0x47946b86^_0x3deeff;function _0xc2408d(){const _0x40eb45=_0x2afb01([0x6c,0x6c,0x63,0x74,0x2d])+_0x512854(_0x690b10(_0xc6929e)),_0x4e5435=_0x181be1(_0x512854(window[_0x2afb01([0x4d,0x61,0x74,0x68])][_0x2afb01([0x63,0x65,0x69,0x6c])](_0x26e67f/_0x4d8b31)));window[_0x2afb01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2afb01([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40eb45,_0x4e5435);}function _0xd7a31b(){const _0x336e2b=_0x2afb01([0x6c,0x6c,0x63,0x74,0x2d])+_0x512854(_0x690b10(_0xc6929e)),_0x43610f=window[_0x2afb01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2afb01([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x336e2b);return _0x43610f?window[_0x2afb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x181be1(_0x43610f),0x10)*_0x4d8b31:null;}function _0x1189b6(_0x46fd47){return new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dbeaf,_0x24e82e)=>{_0x46fd47[_0x2afb01([0x74,0x68,0x65,0x6e])](_0x1dbeaf,_0x24e82e),window[_0x2afb01([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24e82e,0x47a351c6^_0x3deeff);});}}_0x25c5e8[_0x2afb01([0x6f,0x6e])](_0x2afb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11af4f,_0x5a9175)=>{if(_0x5a9175[0x0]!=_0xc6929e)return _0x5b2207(_0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a9175[0x1]={..._0x5a9175[0x1],[_0x2afb01([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42efad};},{[_0x2afb01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2afb01([0x68,0x69,0x67,0x68])}),_0x25c5e8[_0x2afb01([0x6f,0x6e])](_0x2afb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17489e=>{_0x515af0(_0x17489e[_0x2afb01([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50197e=!0x0,_0x12961e(_0x17489e[_0x2afb01([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2afb01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2afb01([0x6c,0x6f,0x77])}),_0x359139[_0x2afb01([0x74,0x68,0x65,0x6e])](()=>{_0x50197e||_0x5b2207(_0x2afb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b61df(){return _0x25c5e8[_0x2afb01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2afb01([0x76,0x69,0x65,0x77])][_0x2afb01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2afb01([0x61,0x75,0x74,0x6f]);}function _0x1e84d5(){_0x25c5e8[_0x2afb01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2afb01([0x76,0x69,0x65,0x77])][_0x2afb01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2afb01([0x61,0x75,0x74,0x6f]);}}function _0x4aa733(_0x36e077){const _0x321c73=[new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cc71c=>setTimeout(_0x3cc71c,0x47abbbca^_0x3deeff)),_0x359139[_0x2afb01([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7a40=>{let _0x2d2293=0x0;_0x25c5e8[_0x2afb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afb01([0x6f,0x6e])](_0x2afb01([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57a1a8,_0x3965eb)=>{_0x3965eb[0x0][_0x2afb01([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d2293++,_0x2d2293==(0x47a284fe^_0x3deeff)&&(_0x4b7a40(),_0x57a1a8[_0x2afb01([0x6f,0x66,0x66])]());});}))];return window[_0x2afb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2afb01([0x72,0x61,0x63,0x65])](_0x321c73)[_0x2afb01([0x74,0x68,0x65,0x6e])](()=>_0x36e077);}async function _0x36d429(){await _0x359139,_0x25c5e8[_0x2afb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afb01([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22978d,_0x25c5e8[_0x2afb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afb01([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22978d,_0x25c5e8[_0x2afb01([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2afb01([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fd9e9(_0x23448d){const _0x1e07a1=_0x51c9cf();_0x25c5e8[_0x1e07a1]=_0x2afb01([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23448d,_0x23448d!=_0x2afb01([0x56,0x61,0x6c,0x69,0x64])&&_0x36d429();}function _0x51c9cf(){const _0x5df055=window[_0x2afb01([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2afb01([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2afb01([0x6e,0x6f,0x77])]())[_0x2afb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2afb01([0x2e]),'');let _0x22ff1f=_0x2afb01([0x75]);for(let _0x3afea5=0x0;_0x3afea5<_0x5df055[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3afea5+=0x2){let _0x59d8df=window[_0x2afb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5df055[_0x2afb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3afea5,_0x3afea5+0x2));_0x59d8df>=_0x1993e3[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59d8df-=_0x1993e3[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22ff1f+=_0x1993e3[_0x59d8df];}return _0x22ff1f;}function _0x2f1571(){const _0x499ec2=_0x13fe8e[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])](_0x2afb01([0x2e]));if(0x3!=_0x499ec2[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2949d5(_0x499ec2[0x1]);function _0x2949d5(_0x4e749c){const _0xfee57b=_0x699580(_0x4e749c);return _0xfee57b&&_0x59a9bd()?_0xfee57b:null;function _0x59a9bd(){const _0xb3454a=_0xfee57b[_0x2afb01([0x6a,0x74,0x69])],_0x5ce422=window[_0x2afb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb3454a[_0x2afb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb3454a[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x248980={..._0xfee57b,[_0x2afb01([0x6a,0x74,0x69])]:_0xb3454a[_0x2afb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb3454a[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x248980[_0x2afb01([0x76,0x63])],_0x690b10(_0x248980)==_0x5ce422;}}}async function _0x18a895(){let _0x57cc5e=!0x0;try{const _0x19e9a4=_0x13fe8e[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])](_0x2afb01([0x2e])),[_0x371bfe,_0x49c427,_0x5d2550]=_0x19e9a4;return _0x589303(_0x371bfe),await _0x19eb18(_0x371bfe,_0x49c427,_0x5d2550),_0x57cc5e;}catch{return!0x1;}function _0x589303(_0x54df96){const _0xb3b2ef=_0x699580(_0x54df96);_0xb3b2ef&&_0xb3b2ef[_0x2afb01([0x61,0x6c,0x67])]==_0x2afb01([0x45,0x53,0x32,0x35,0x36])||(_0x57cc5e=!0x1);}async function _0x19eb18(_0x976bd4,_0x22dc0d,_0x488a25){const _0x459ab9=window[_0x2afb01([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2afb01([0x66,0x72,0x6f,0x6d])](_0x527e4e(_0x488a25),_0x2fe558=>_0x2fe558[_0x2afb01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34d7cd=new window[(_0x2afb01([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2afb01([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x976bd4+_0x2afb01([0x2e])+_0x22dc0d),_0x22b941=window[_0x2afb01([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2afb01([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22b941)return;const _0x5f4dd2=await _0x22b941[_0x2afb01([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2afb01([0x6a,0x77,0x6b]),_0x6698e0,{[_0x2afb01([0x6e,0x61,0x6d,0x65])]:_0x2afb01([0x45,0x43,0x44,0x53,0x41]),[_0x2afb01([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2afb01([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2afb01([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22b941[_0x2afb01([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2afb01([0x6e,0x61,0x6d,0x65])]:_0x2afb01([0x45,0x43,0x44,0x53,0x41]),[_0x2afb01([0x68,0x61,0x73,0x68])]:{[_0x2afb01([0x6e,0x61,0x6d,0x65])]:_0x2afb01([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f4dd2,_0x459ab9,_0x34d7cd)||(_0x57cc5e=!0x1);}}function _0x699580(_0x46cbb9){return _0x46cbb9[_0x2afb01([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2afb01([0x65,0x79]))?JSON[_0x2afb01([0x70,0x61,0x72,0x73,0x65])](_0x527e4e(_0x46cbb9)):null;}function _0x527e4e(_0x5062c8){return window[_0x2afb01([0x61,0x74,0x6f,0x62])](_0x5062c8[_0x2afb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2afb01([0x2b]))[_0x2afb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2afb01([0x2f])));}function _0x690b10(_0x14eaa6){let _0x74b46f=0x1505;function _0x52c022(_0x2d151f){for(let _0xe1e153=0x0;_0xe1e153<_0x2d151f[_0x2afb01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe1e153++){const _0x2b9b47=_0x2d151f[_0x2afb01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe1e153);_0x74b46f=(_0x74b46f<<0x5)+_0x74b46f+_0x2b9b47,_0x74b46f&=_0x74b46f;}}function _0x191c57(_0x2e0657){Array[_0x2afb01([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e0657)?_0x2e0657[_0x2afb01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x191c57):_0x2e0657&&typeof _0x2e0657==_0x2afb01([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2afb01([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e0657)[_0x2afb01([0x73,0x6f,0x72,0x74])]()[_0x2afb01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bd710,_0x25e0c6])=>{_0x52c022(_0x2bd710),_0x191c57(_0x25e0c6);}):_0x52c022(window[_0x2afb01([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e0657));}return _0x191c57(_0x14eaa6),_0x74b46f>>>0x0;}function _0x512854(_0x40c0af){return _0x40c0af[_0x2afb01([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2afb01([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2afb01([0x30]));}function _0x181be1(_0x3b97d9){return _0x3b97d9[_0x2afb01([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2afb01([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2afb01([0x6a,0x6f,0x69,0x6e])]('');}function _0x22978d(){}function _0x2afb01(_0x2b7666){return _0x2b7666['map'](_0x10f5da=>String['fromCharCode'](_0x10f5da))['join']('');}_0x2fd9e9(await _0x261bff());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5719f3){const {plugins:_0x1a4d2e,editing:_0x24865e,model:_0x3b9814}=this['editor'],_0x559ec9=_0x1a4d2e['get'](_0x3a1e97)['getFootnote'](_0x5719f3);return!!_0x559ec9&&(_0x3b9814['change'](_0x364056=>{_0x364056['setSelection'](_0x364056['createPositionAt'](_0x559ec9['definition'],'end'));}),_0x24865e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5b700d){const {plugins:_0x38995a,editing:_0x402bc1,model:_0x12f4a1}=this['editor'],_0x1f628b=_0x38995a['get'](_0x3a1e97)['getFootnote'](_0x5b700d);return!!_0x1f628b&&(_0x12f4a1['change'](_0x3e5cbc=>{_0x3e5cbc['setSelection'](_0x1f628b['reference'],'on');}),_0x402bc1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x56ab6d}=this['editor']['model'],_0x24fde7=this['editor']['config']['get']('footnotes.multiBlock');_0x56ab6d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x56ab6d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x56ab6d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x24fde7?_0x56ab6d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x56ab6d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x56ab6d['addChildCheck'](_0x47a324=>{for(const _0x25035b of _0x47a324)if('footnoteDefinition'===_0x25035b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4c7564}=this,{conversion:_0x3d4f60,editing:_0x2b45ee}=_0x4c7564,{t:t}=_0x4c7564['locale'];_0x3d4f60['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x34b9ce,{writer:_0x53694f,consumable:_0xb537a2})=>{const _0x3a5845=_0x34b9ce['getChild'](0x0);if(!_0x3a5845||!_0x3a5845['is']('element','a'))return null;const _0x34638f=_0x3a5845['getAttribute']('href')||'';if(!_0x34638f['startsWith']('#'))return null;const _0x10c042=_0x34638f['replace'](/^#/,'');if(!_0x10c042)return null;_0xb537a2['consume'](_0x3a5845,{'name':!0x0,'attributes':['href']});for(const {item:_0x15b71b}of _0x2b45ee['view']['createRangeIn'](_0x3a5845))_0x15b71b['is']('$textProxy')?_0xb537a2['consume'](_0x15b71b['textNode'],{'name':!0x0}):_0x15b71b['is']('element')&&_0xb537a2['consume'](_0x15b71b,{'name':!0x0});return _0x53694f['createElement']('footnoteRef',{'footnoteId':_0x10c042});}}),_0x3d4f60['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x204cdf,{writer:_0x2993e3})=>D(_0x204cdf,_0x2993e3)}),_0x3d4f60['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1e1d3d,{writer:_0x13eb8f})=>{const _0x2edcb1=_0x1e1d3d['getAttribute']('footnoteCounter');return _0x128ba6(D(_0x1e1d3d,_0x13eb8f),_0x13eb8f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2edcb1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c5a7f}=this,{t:t}=_0x4c5a7f['locale'],{conversion:_0x180e33}=_0x4c5a7f;_0x180e33['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x180e33['for']('upcast')['add'](_0x3b07d6=>{_0x3b07d6['on']('element:ol',(_0x33a125,_0x58dd9e,_0xc424d6)=>{const _0x27bf9c=_0x58dd9e['viewItem'];if(!_0x27bf9c['hasClass']('footnotes-list')||!_0x58dd9e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xc424d6['consumable']['consume'](_0x27bf9c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x46ee68,modelCursor:_0x44c807}=_0xc424d6['convertChildren'](_0x58dd9e['viewItem'],_0x58dd9e['modelCursor']);_0x58dd9e['modelRange']=_0x46ee68,_0x58dd9e['modelCursor']=_0x44c807;}),_0x3b07d6['on']('element:hr',(_0x59121b,_0x146a45,_0x26828f)=>{const _0x557e09=_0x146a45['viewItem'];_0x557e09['hasClass']('footnotes-divider')&&_0x146a45['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x26828f['consumable']['consume'](_0x557e09,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x180e33['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4accf0,{writer:_0x19395c})=>v(_0x19395c)}),_0x180e33['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x488c48,{writer:_0x4e91f5})=>{const _0x3087f=v(_0x4e91f5,{'data-footnotes-list-label':t('Footnotes')}),_0x22beb6=_0x128ba6(_0x3087f,_0x4e91f5,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4e91f5['setCustomProperty']('footnotesDefinitions',!0x0,_0x22beb6),_0x22beb6;}});}['_defineDefinitionConverters'](){const {editor:_0xe32047}=this,{conversion:_0x157367,locale:_0x205fba}=_0xe32047,_0xbf7827=_0xe32047['config']['get']('footnotes.multiBlock');_0x157367['for']('upcast')['add'](_0x5a5c6f=>{_0x5a5c6f['on']('element:li',(_0x37de58,_0x1afde8,_0x577c89)=>{const _0x49eb92=_0x1afde8['viewItem'];if(!_0x49eb92['hasClass']('footnote-definition')||!_0x49eb92['getAttribute']('id'))return;const _0x137dca=_0x49eb92['parent'];if(!_0x137dca['is']('element','ol')||!_0x137dca['hasClass']('footnotes-list'))return;if(!_0x577c89['consumable']['test'](_0x49eb92,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xd9a4ce=_0x577c89['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x49eb92['getAttribute']('id')});if(!_0x577c89['safeInsert'](_0xd9a4ce,_0x1afde8['modelCursor']))return;_0x577c89['consumable']['consume'](_0x49eb92,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4fd3a7=Array['from'](_0x49eb92['getChildren']())['find'](_0x21e76c=>_0x21e76c['is']('element')&&_0x21e76c['hasClass']('footnote-content'));for(const _0x1d1a9a of _0x49eb92['getChildren']())_0x1d1a9a['is']('element')&&(_0x577c89['consumable']['consume'](_0x1d1a9a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x577c89['consumable']['consume'](_0x1d1a9a,{'name':!0x0,'classes':'footnote-content'}));if(_0x4fd3a7){if(_0xbf7827)_0x577c89['convertChildren'](_0x4fd3a7,_0xd9a4ce);else{const _0x1f367c=_0x577c89['writer']['createElement']('footnoteInlineContent');_0x577c89['writer']['insert'](_0x1f367c,_0xd9a4ce),_0x577c89['convertChildren'](_0x4fd3a7,_0x1f367c);}}_0x577c89['updateConversionResult'](_0xd9a4ce,_0x1afde8);});}),_0x157367['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1bdc5a,{writer:_0x2f0a0a})=>b(_0x1bdc5a,_0x2f0a0a,_0x205fba,{'dataPipeline':!0x0})}),_0x157367['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2d3d17,{writer:_0x2f3abc})=>b(_0x2d3d17,_0x2f3abc,_0x205fba)});}['_defineBogusParagraphConverters'](){const {editor:_0x14c725}=this,{conversion:_0x1106d6}=_0x14c725;_0x14c725['config']['get']('footnotes.multiBlock')?(_0x1106d6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1106d6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x14c725['model']['document'],'change:data',()=>{!function(_0x2478e6,_0x6af91d){const _0x503286=_0x2478e6['document']['differ'],_0x57c04f=new Set();for(const _0x4eaa7b of _0x503286['getChanges']()){const _0x3c1264='attribute'==_0x4eaa7b['type']?_0x4eaa7b['range']['start']['parent']:_0x4eaa7b['position']['parent'];_0x3c1264['is']('element','footnoteDefinition')&&_0x57c04f['add'](_0x3c1264);}for(const _0x3e5ec9 of _0x57c04f['values']()){const _0x1b9cac=Array['from'](_0x3e5ec9['getChildren']())['filter'](_0x494578=>g(_0x494578,_0x6af91d['mapper']));for(const _0x100b98 of _0x1b9cac)_0x6af91d['reconvertItem'](_0x100b98);}}(_0x14c725['model'],_0x14c725['editing']);})):(_0x1106d6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1106d6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1c9da3,{writer:_0x582c88})=>{const _0x284bbb=_0x582c88['createContainerElement']('span');return _0x582c88['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x284bbb),_0x284bbb;}}));}['_defineKeyboardHandlers'](){const {editor:_0x307ec4}=this,{editing:_0x410fdc,t:t}=_0x307ec4,_0xaf0912=_0x307ec4['model']['document']['selection'];_0x307ec4['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x307ec4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x410fdc['view']['document'],'enter',(_0x5204e5,_0x41b252)=>{const _0x307536=function(_0x59edbe){const _0x4f955f=_0x59edbe['getSelectedElement']();if(_0x4f955f?.['is']('element','footnoteRef'))return _0x4f955f;return null;}(_0xaf0912);if(_0x307536){const _0x303a61=_0x307536['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x303a61),_0x41b252['preventDefault'](),_0x5204e5['stop']();}},{'context':_0x466f3a});}['_defineClickHandlers'](){const {editor:_0x511497}=this,{editing:_0x113ae6}=_0x511497;_0x511497['editing']['view']['addObserver'](_0x4d3417),_0x511497['editing']['view']['addObserver'](_0x47ac07);let _0x8c8d92=!0x1;this['listenTo'](_0x113ae6['view']['document'],'pointerdown',(_0x48ab9b,_0x509a8c)=>{const {target:_0x1aa57e}=_0x509a8c,_0x5b9311=_0x113ae6['view']['document']['selection'];_0x8c8d92=!!(_0x1aa57e?.['is']('element','a')&&_0x1aa57e['parent']?.['is']('element','sup')&&_0x1aa57e['parent']['hasClass']('footnote'))&&_0x5b9311['getSelectedElement']()===_0x1aa57e['parent'];},{'priority':'high'}),this['listenTo'](_0x113ae6['view']['document'],'click',(_0x52cb69,_0x4e17e5)=>{const {target:_0x5ed233}=_0x4e17e5;if(!_0x5ed233?.['is']('element','a'))return;if(_0x5ed233['parent']?.['is']('element','sup')&&_0x5ed233['parent']['hasClass']('footnote')&&!_0x8c8d92)return void _0x4e17e5['preventDefault']();let _0x51944f=_0x5ed233['getAttribute']('href');if(!_0x51944f?.['startsWith']('#'))return;_0x51944f=_0x51944f['slice'](0x1);let _0x3c1429=!0x1;(_0x51944f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x51944f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x51944f))&&(_0x3c1429=!0x0),_0x3c1429&&(_0x4e17e5['preventDefault'](),_0x52cb69['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x37b2b9}={}){return(_0x24b042,{writer:_0x3c6958})=>{if(!p(_0x24b042))return null;if(!_0x37b2b9)return _0x3c6958['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xcabd66=_0x3c6958['createContainerElement']('p');return _0x3c6958['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xcabd66),_0xcabd66;};}function p(_0x136ca1){const {parent:_0x4f48da}=_0x136ca1;if(!_0x4f48da?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4f48da['childCount'])return!0x1;for(const _0x44f891 of _0x136ca1['getAttributeKeys']())if(!_0x44f891['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x44f891)return!0x1;return!0x0;}function g(_0x1fd6b7,_0x412113){if(!_0x1fd6b7['is']('element','paragraph'))return!0x1;const _0x44e6d2=_0x412113['toViewElement'](_0x1fd6b7);return!!_0x44e6d2&&p(_0x1fd6b7)!==_0x44e6d2['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4319a5){return _0x466f3a(_0x4319a5)&&_0x4319a5['is']('containerElement')&&!!_0x4319a5['getCustomProperty']('footnotesDefinitions');}function v(_0xbfd9aa,_0x5d9ced={}){const _0x531f2b=_0xbfd9aa['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4568d3=_0xbfd9aa['createContainerElement']('ol',{'class':'footnotes-list'},_0xbfd9aa['createSlot']());return _0xbfd9aa['createContainerElement']('div',{'class':'footnotes',..._0x5d9ced},[_0x531f2b,_0x4568d3]);}function D(_0x4cd22f,_0x32d885){const _0x4ee6f0=_0x4cd22f['getAttribute']('footnoteId'),_0x793a7f=_0x4cd22f['getAttribute']('footnoteCounter'),_0x5ad400=_0x32d885['createUIElement']('a',{'href':'#'+_0x4ee6f0},function(_0x1eb7d2){const _0x57aebe=this['toDomElement'](_0x1eb7d2);return _0x57aebe['textContent']=_0x793a7f,_0x57aebe;}),_0x311564=_0x32d885['createContainerElement']('sup',{'id':'ref-'+_0x4ee6f0,'class':'footnote'},[_0x5ad400]);return _0x311564['getFillerOffset']=()=>null,_0x311564;}function b(_0xbe68b3,_0x2e15fe,_0x538c30,{dataPipeline:_0x278ab7}={}){const {t:t}=_0x538c30,_0x49fa35=_0xbe68b3['getAttribute']('footnoteId'),_0x349017=_0x2e15fe['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x49fa35},function(_0x325f09){const _0x4c9c7c=this['toDomElement'](_0x325f09);return _0x4c9c7c['innerText']='^',_0x4c9c7c;}),_0x510d31=_0x278ab7?_0x2e15fe['createContainerElement']('div',{'class':'footnote-content'}):_0x56c853(_0x2e15fe['createEditableElement']('div',{'class':'footnote-content'}),_0x2e15fe,{'label':t('Footnote\x20content.')});return _0x2e15fe['insert'](_0x2e15fe['createPositionAt'](_0x510d31,0x0),_0x2e15fe['createSlot']()),_0x2e15fe['createContainerElement']('li',{'class':'footnote-definition','id':_0x49fa35},[_0x349017,_0x510d31]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x89d0a0=_0x515d;function _0x515d(_0x16cadb,_0x135922){const _0xa622d4=_0xa622();return _0x515d=function(_0x515d14,_0x235f5e){_0x515d14=_0x515d14-0xda;let _0x2897d0=_0xa622d4[_0x515d14];return _0x2897d0;},_0x515d(_0x16cadb,_0x135922);}(function(_0x4a4c0b,_0x5611b4){const _0x5c9752=_0x515d,_0x47b7bc=_0x4a4c0b();while(!![]){try{const _0x425c13=-parseInt(_0x5c9752(0xdc))/0x1+-parseInt(_0x5c9752(0xdf))/0x2+-parseInt(_0x5c9752(0xe5))/0x3*(parseInt(_0x5c9752(0xe0))/0x4)+-parseInt(_0x5c9752(0xee))/0x5+parseInt(_0x5c9752(0xe3))/0x6+parseInt(_0x5c9752(0xea))/0x7+parseInt(_0x5c9752(0xe7))/0x8;if(_0x425c13===_0x5611b4)break;else _0x47b7bc['push'](_0x47b7bc['shift']());}catch(_0x315e4e){_0x47b7bc['push'](_0x47b7bc['shift']());}}}(_0xa622,0x5fa84));import{Command as _0x7ebae8}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x40b131}from'../../footnotestracker.js';function _0xa622(){const _0x293e05=['_updateFootnotesCounters','get','execute','501730DUsXAf','value','plugins','model','761837JJSTxm','footnotesListStart','getAttribute','1382818xFCJWh','160720XttGtx','setAttribute','getFootnotesDefinitionsObjectElement','1062606NlqXPa','refresh','3DgkKSc','isInteger','9810544UXVmcO','change','isEnabled','4075155fmHJdD'];_0xa622=function(){return _0x293e05;};return _0xa622();}export class FootnotesStartCommand extends _0x7ebae8{[_0x89d0a0(0xe4)](){const _0x3574bc=_0x89d0a0,{editor:_0x13cd6c}=this,_0x3eeafc=_0x13cd6c[_0x3574bc(0xda)][_0x3574bc(0xec)](_0x40b131)[_0x3574bc(0xe2)]();this[_0x3574bc(0xe9)]=!!_0x3eeafc,this[_0x3574bc(0xef)]=_0x3eeafc?.[_0x3574bc(0xde)](_0x3574bc(0xdd))??null;}[_0x89d0a0(0xed)]({value:_0xc0575e}){const _0x440c26=_0x89d0a0,{editor:_0x5e6255}=this,_0x5646de=_0x5e6255[_0x440c26(0xda)][_0x440c26(0xec)](_0x40b131),_0x1064d0=_0x5646de[_0x440c26(0xe2)]();_0x1064d0&&Number[_0x440c26(0xe6)](_0xc0575e)&&_0x5e6255[_0x440c26(0xdb)][_0x440c26(0xe8)](_0x5774f1=>{const _0x176f08=_0x440c26;_0x5774f1[_0x176f08(0xe1)](_0x176f08(0xdd),_0xc0575e,_0x1064d0),_0x5646de[_0x176f08(0xeb)](_0x5774f1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51fbcd=_0x1a66;function _0x1a66(_0x245b74,_0x19c67c){const _0x46c453=_0x46c4();return _0x1a66=function(_0x1a6640,_0x21cf93){_0x1a6640=_0x1a6640-0x15a;let _0x3d8d09=_0x46c453[_0x1a6640];return _0x3d8d09;},_0x1a66(_0x245b74,_0x19c67c);}(function(_0x33e4a0,_0x30d6fd){const _0x5f912c=_0x1a66,_0x59535f=_0x33e4a0();while(!![]){try{const _0x53caab=-parseInt(_0x5f912c(0x16a))/0x1*(-parseInt(_0x5f912c(0x164))/0x2)+parseInt(_0x5f912c(0x16e))/0x3+parseInt(_0x5f912c(0x16c))/0x4*(parseInt(_0x5f912c(0x166))/0x5)+-parseInt(_0x5f912c(0x168))/0x6+parseInt(_0x5f912c(0x165))/0x7*(parseInt(_0x5f912c(0x15a))/0x8)+parseInt(_0x5f912c(0x161))/0x9+parseInt(_0x5f912c(0x15e))/0xa*(-parseInt(_0x5f912c(0x160))/0xb);if(_0x53caab===_0x30d6fd)break;else _0x59535f['push'](_0x59535f['shift']());}catch(_0x20f330){_0x59535f['push'](_0x59535f['shift']());}}}(_0x46c4,0xc4d6b));import{Command as _0x1e2c18}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x3055ff}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x289d41}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x1e2c18{[_0x51fbcd(0x16b)](){const _0x4748f5=_0x51fbcd,{editor:_0x4c0757}=this,_0x558025=_0x4c0757[_0x4748f5(0x15c)][_0x4748f5(0x163)](_0x289d41)[_0x4748f5(0x169)]();this[_0x4748f5(0x15f)]=!!_0x558025,this[_0x4748f5(0x170)]=_0x558025?.[_0x4748f5(0x16d)](_0x4748f5(0x162))??null;}[_0x51fbcd(0x167)]({value:_0xefa917}){const _0x577411=_0x51fbcd,{editor:_0x4b49db}=this,_0x976a05=_0x4b49db[_0x577411(0x15c)][_0x577411(0x163)](_0x289d41),_0x5d7618=_0x976a05[_0x577411(0x169)]();_0x5d7618&&_0x3055ff[_0x577411(0x172)](_0xefa917)&&_0x4b49db[_0x577411(0x16f)][_0x577411(0x171)](_0x2b7bb3=>{const _0x41a16b=_0x577411;_0x2b7bb3[_0x41a16b(0x15b)](_0x41a16b(0x162),_0xefa917,_0x5d7618),_0x976a05[_0x41a16b(0x15d)](_0x2b7bb3);});}}function _0x46c4(){const _0x3960ae=['501998PXztDV','145qxucMm','execute','9522714IpdAtv','getFootnotesDefinitionsObjectElement','44279KSlRAs','refresh','56968tdnLdI','getAttribute','4224894UsKCoP','model','value','change','includes','176IEIhiS','setAttribute','plugins','_updateFootnotesCounters','27080EnKSvS','isEnabled','8239DmmAuC','2429055hLysYD','footnotesListStyle','get','34ShcwId'];_0x46c4=function(){return _0x3960ae;};return _0x46c4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xf85e(_0x28cdf1,_0x1e761d){const _0x1dc5b8=_0x1dc5();return _0xf85e=function(_0xf85ef0,_0x187a29){_0xf85ef0=_0xf85ef0-0x167;let _0x3c13d7=_0x1dc5b8[_0xf85ef0];return _0x3c13d7;},_0xf85e(_0x28cdf1,_0x1e761d);}const _0x1a0438=_0xf85e;(function(_0x54c4cc,_0x5d23e6){const _0x1fd791=_0xf85e,_0x4a7280=_0x54c4cc();while(!![]){try{const _0x49662f=parseInt(_0x1fd791(0x170))/0x1*(parseInt(_0x1fd791(0x16b))/0x2)+parseInt(_0x1fd791(0x172))/0x3*(-parseInt(_0x1fd791(0x171))/0x4)+-parseInt(_0x1fd791(0x16f))/0x5+-parseInt(_0x1fd791(0x16d))/0x6*(-parseInt(_0x1fd791(0x177))/0x7)+-parseInt(_0x1fd791(0x175))/0x8*(parseInt(_0x1fd791(0x179))/0x9)+-parseInt(_0x1fd791(0x16a))/0xa*(-parseInt(_0x1fd791(0x17a))/0xb)+parseInt(_0x1fd791(0x167))/0xc;if(_0x49662f===_0x5d23e6)break;else _0x4a7280['push'](_0x4a7280['shift']());}catch(_0x1b34a6){_0x4a7280['push'](_0x4a7280['shift']());}}}(_0x1dc5,0xe2773));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x1a0438(0x168),_0x1a0438(0x176),_0x1a0438(0x178),_0x1a0438(0x169),_0x1a0438(0x16e),_0x1a0438(0x173),_0x1a0438(0x16c),_0x1a0438(0x174)];function _0x1dc5(){const _0x377e30=['240DHjWnG','decimal-leading-zero','35mOWHeC','lower-latin','383742vFupDr','22NSYDTX','49630776CTDqFM','decimal','upper-latin','2077150UrSZzC','179412NwADCP','lower-roman','33246cKfqVn','lower-alpha','8683740XgCuWT','13RemTLg','116240JkCrJP','186SaKFfN','upper-alpha','upper-roman'];_0x1dc5=function(){return _0x377e30;};return _0x1dc5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e3eda=_0x50f3;(function(_0xcd80e7,_0x356acf){const _0x26e42c=_0x50f3,_0x530b7c=_0xcd80e7();while(!![]){try{const _0x4c1aed=-parseInt(_0x26e42c(0x13a))/0x1*(-parseInt(_0x26e42c(0x10d))/0x2)+parseInt(_0x26e42c(0x111))/0x3+-parseInt(_0x26e42c(0x103))/0x4*(parseInt(_0x26e42c(0x12a))/0x5)+-parseInt(_0x26e42c(0xfe))/0x6*(-parseInt(_0x26e42c(0xed))/0x7)+-parseInt(_0x26e42c(0x11c))/0x8+-parseInt(_0x26e42c(0xff))/0x9+parseInt(_0x26e42c(0x148))/0xa;if(_0x4c1aed===_0x356acf)break;else _0x530b7c['push'](_0x530b7c['shift']());}catch(_0x1d53f7){_0x530b7c['push'](_0x530b7c['shift']());}}}(_0x31ea,0xb16e2));function _0x50f3(_0x3af74a,_0x52b230){const _0x31ea1e=_0x31ea();return _0x50f3=function(_0x50f3f9,_0x57d6ad){_0x50f3f9=_0x50f3f9-0xec;let _0x2a3abc=_0x31ea1e[_0x50f3f9];return _0x2a3abc;},_0x50f3(_0x3af74a,_0x52b230);}import{Plugin as _0x5d6b1a}from'ckeditor5/src/core.js';function _0x31ea(){const _0x50b833=['start','position','upper-alpha','add','10501340gDduZq','from','_formatFootnoteListValue','list-style-type','footnotes.footnotesProperties.defaultStartIndex','setFootnoteFormatter','for','plugins','getChanges','get','21469INNGcO','createRangeOn','item','getAttribute','modelCursor','FootnotesPropertiesEditing','upper-roman','footnotes-list','footnotesStyle','getStyle','model','parseInt','max','element:ol','find','viewItem','setAttribute','942CFKevc','11286270YRHavU','checkAttribute','footnotes.footnotesProperties.defaultListStyle','name','12FMjRaH','define','upcast','_updateFootnotesCounters','footnotesDefinitions','toLowerCase','fromCharCode','toUpperCase','$text','attribute:footnotesListStart:footnotesDefinitions','2093366YHVeZU','_getDefaultListStyle','removeStyle','decimal','3633333GefUpO','decimal-leading-zero','getItems','consumable','removeAttribute','setStyle','isOfficialPlugin','getChildren','_definePostfixer','schema','pluginName','4700920Yfjlwk','requires','upper-latin','parent','isPremiumPlugin','_getDefaultStartIndex','lower-latin','attribute:footnotesListStyle:footnotesDefinitions','lower-alpha','footnotesListStart','hasClass','lower-roman','type','padStart','2035080oDgVWd','mapper','_defineFormatter','editor','consume','_defineSchema','hasAttribute','footnotesListStyle','element','extend','differ','init','commands','config','downcast','floor','1YiDsJX','registerPostFixer','insert','_defineConverters','isNaN','toViewElement','nodeAfter','writer','footnotesStart','document'];_0x31ea=function(){return _0x50b833;};return _0x31ea();}import{FootnotesStyleCommand as _0xa6b6eb}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x510311}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x117be5}from'../footnotestracker.js';import{FootnotesEditing as _0x4264f0}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x5d6b1a{static get[_0x4e3eda(0x11b)](){const _0xec355b=_0x4e3eda;return _0xec355b(0xf2);}static get[_0x4e3eda(0x11d)](){return[_0x4264f0,_0x117be5];}static get[_0x4e3eda(0x117)](){return!0x0;}static get[_0x4e3eda(0x120)](){return!0x0;}[_0x4e3eda(0x135)](){const _0x2e9504=_0x4e3eda,{editor:_0x584d10}=this;_0x584d10[_0x2e9504(0x137)][_0x2e9504(0x104)](_0x2e9504(0x101),_0x2e9504(0x110)),_0x584d10[_0x2e9504(0x137)][_0x2e9504(0x104)](_0x2e9504(0x14c),0x1),_0x584d10[_0x2e9504(0x136)][_0x2e9504(0x147)](_0x2e9504(0xf5),new _0xa6b6eb(_0x584d10)),_0x584d10[_0x2e9504(0x136)][_0x2e9504(0x147)](_0x2e9504(0x142),new _0x510311(_0x584d10)),this[_0x2e9504(0x12f)](),this[_0x2e9504(0x13d)](),this[_0x2e9504(0x12c)](),this[_0x2e9504(0x119)]();}[_0x4e3eda(0x12f)](){const _0xfeb3c5=_0x4e3eda,{editor:_0x299400}=this,{schema:_0x5d05a0}=_0x299400[_0xfeb3c5(0xf7)];_0x5d05a0[_0xfeb3c5(0x133)](_0xfeb3c5(0x107),{'allowAttributes':[_0xfeb3c5(0x131),_0xfeb3c5(0x125)]});}[_0x4e3eda(0x13d)](){const _0x4f8915=_0x4e3eda,{editor:_0x58b884}=this,{conversion:_0x3efe61,model:_0x3e4371}=_0x58b884,{schema:_0x1e724c}=_0x3e4371;_0x3efe61[_0x4f8915(0x14e)](_0x4f8915(0x105))[_0x4f8915(0x147)](_0x4a61ab=>{const _0x173e04=_0x4f8915;_0x4a61ab['on'](_0x173e04(0xfa),(_0x5539c0,_0x5231d5,_0x471861)=>{const _0x30071d=_0x173e04,_0x46f210=_0x5231d5[_0x30071d(0xfc)],_0x335370=_0x5231d5[_0x30071d(0xf1)]?.[_0x30071d(0x11f)];_0x46f210[_0x30071d(0x126)](_0x30071d(0xf4))&&_0x335370?.['is'](_0x30071d(0x132),_0x30071d(0x107))&&(function(_0x69f6fb,_0x444d5f,_0x4c0816,_0x238b20){const _0x488d05=_0x30071d;if(!_0x238b20[_0x488d05(0x100)](_0x444d5f,_0x488d05(0x125)))return;let _0x20593f=0x1;const _0x46a1c0=_0x4c0816[_0x488d05(0x114)][_0x488d05(0x12e)](_0x69f6fb,{'attributes':_0x488d05(0x144)});if(_0x46a1c0){const _0x4849f9=Number[_0x488d05(0xf8)](_0x69f6fb[_0x488d05(0xf0)](_0x488d05(0x144)),0xa);Number[_0x488d05(0x13e)](_0x4849f9)||(_0x20593f=_0x4849f9);}!_0x46a1c0&&_0x444d5f[_0x488d05(0x130)](_0x488d05(0x125))||_0x4c0816[_0x488d05(0x141)][_0x488d05(0xfd)](_0x488d05(0x125),_0x20593f,_0x444d5f);}(_0x46f210,_0x335370,_0x471861,_0x1e724c),function(_0x453ec6,_0x37aabd,_0x336b36,_0x5aed8d){const _0x32fa9f=_0x30071d;if(!_0x5aed8d[_0x32fa9f(0x100)](_0x37aabd,_0x32fa9f(0x131)))return;let _0x5ca5b1=_0x32fa9f(0x110),_0x10bea6=!0x1;if(_0x336b36[_0x32fa9f(0x114)][_0x32fa9f(0x12e)](_0x453ec6,{'attributes':_0x32fa9f(0x128)})){const _0x23d785={0x1:_0x32fa9f(0x110),'a':_0x32fa9f(0x124),'A':_0x32fa9f(0x146),'i':_0x32fa9f(0x127),'I':_0x32fa9f(0xf3)}[_0x453ec6[_0x32fa9f(0xf0)](_0x32fa9f(0x128))];_0x23d785&&(_0x5ca5b1=_0x23d785),_0x10bea6=!0x0;}_0x336b36[_0x32fa9f(0x114)][_0x32fa9f(0x12e)](_0x453ec6,{'styles':_0x32fa9f(0x14b)})&&(_0x5ca5b1=_0x453ec6[_0x32fa9f(0xf6)](_0x32fa9f(0x14b)),_0x10bea6=!0x0),!_0x10bea6&&_0x37aabd[_0x32fa9f(0x130)](_0x32fa9f(0x131))||_0x336b36[_0x32fa9f(0x141)][_0x32fa9f(0xfd)](_0x32fa9f(0x131),_0x5ca5b1,_0x37aabd);}(_0x46f210,_0x335370,_0x471861,_0x1e724c));});}),_0x3efe61[_0x4f8915(0x14e)](_0x4f8915(0x138))[_0x4f8915(0x147)](_0x5e7838=>{const _0x3b30c5=_0x4f8915;_0x5e7838['on'](_0x3b30c5(0x10c),(_0x37d340,_0x1caa4c,_0x46b244)=>{const _0x2c0695=_0x3b30c5;if(!_0x46b244[_0x2c0695(0x114)][_0x2c0695(0x12e)](_0x1caa4c[_0x2c0695(0xef)],_0x37d340[_0x2c0695(0x102)]))return;const _0x539d45=M(_0x1caa4c[_0x2c0695(0xef)],_0x46b244[_0x2c0695(0x12b)]),{attributeNewValue:_0x5838cf}=_0x1caa4c;null==_0x5838cf||0x1===_0x5838cf?_0x46b244[_0x2c0695(0x141)][_0x2c0695(0x115)](_0x2c0695(0x144),_0x539d45):_0x46b244[_0x2c0695(0x141)][_0x2c0695(0xfd)](_0x2c0695(0x144),String(_0x5838cf),_0x539d45);}),_0x5e7838['on'](_0x3b30c5(0x123),(_0x49e566,_0x254bdd,_0x1398fa)=>{const _0x581917=_0x3b30c5;if(!_0x1398fa[_0x581917(0x114)][_0x581917(0x12e)](_0x254bdd[_0x581917(0xef)],_0x49e566[_0x581917(0x102)]))return;const _0x2a5ccd=M(_0x254bdd[_0x581917(0xef)],_0x1398fa[_0x581917(0x12b)]),{attributeNewValue:_0x69485b}=_0x254bdd;_0x69485b&&_0x581917(0x110)!==_0x69485b?_0x1398fa[_0x581917(0x141)][_0x581917(0x116)](_0x581917(0x14b),_0x69485b,_0x2a5ccd):_0x1398fa[_0x581917(0x141)][_0x581917(0x10f)](_0x581917(0x14b),_0x2a5ccd);});});}[_0x4e3eda(0x119)](){const _0x31284c=_0x4e3eda,{editor:_0x3e8c72}=this,{model:_0x1240c9}=_0x3e8c72,_0x1e2e28=_0x3e8c72[_0x31284c(0x14f)][_0x31284c(0xec)](_0x117be5),_0x4806aa=this[_0x31284c(0x10e)](),_0x53acb1=this[_0x31284c(0x121)]();_0x1240c9[_0x31284c(0x143)][_0x31284c(0x13b)](_0x2e594c=>{const _0x5a0b58=_0x31284c,_0x19ed47=_0x1240c9[_0x5a0b58(0x143)][_0x5a0b58(0x134)][_0x5a0b58(0x150)]();let _0x3eab3a=!0x1;for(const _0x56fac9 of _0x19ed47){if(_0x5a0b58(0x13c)!==_0x56fac9[_0x5a0b58(0x128)]||_0x5a0b58(0x10b)===_0x56fac9[_0x5a0b58(0x102)])continue;const _0x2cea8f=_0x1240c9[_0x5a0b58(0xee)](_0x56fac9[_0x5a0b58(0x145)][_0x5a0b58(0x140)]);for(const _0x51c995 of _0x2cea8f[_0x5a0b58(0x113)]())_0x51c995['is'](_0x5a0b58(0x132),_0x5a0b58(0x107))&&(!_0x51c995[_0x5a0b58(0x130)](_0x5a0b58(0x125))&&_0x1240c9[_0x5a0b58(0x11a)][_0x5a0b58(0x100)](_0x51c995,_0x5a0b58(0x125))&&(_0x2e594c[_0x5a0b58(0xfd)](_0x5a0b58(0x125),_0x53acb1,_0x51c995),_0x3eab3a=!0x0),!_0x51c995[_0x5a0b58(0x130)](_0x5a0b58(0x131))&&_0x1240c9[_0x5a0b58(0x11a)][_0x5a0b58(0x100)](_0x51c995,_0x5a0b58(0x131))&&(_0x2e594c[_0x5a0b58(0xfd)](_0x5a0b58(0x131),_0x4806aa,_0x51c995),_0x3eab3a=!0x0));}return _0x3eab3a&&_0x1e2e28[_0x5a0b58(0x106)](_0x2e594c),_0x3eab3a;});}[_0x4e3eda(0x12c)](){const _0x3dd6b9=_0x4e3eda,{editor:_0x5541dd}=this;_0x5541dd[_0x3dd6b9(0x14f)][_0x3dd6b9(0xec)](_0x117be5)[_0x3dd6b9(0x14d)](_0x469ba4=>this[_0x3dd6b9(0x14a)](_0x469ba4));}[_0x4e3eda(0x10e)](){const _0x2cc284=_0x4e3eda;return this[_0x2cc284(0x12d)][_0x2cc284(0x137)][_0x2cc284(0xec)](_0x2cc284(0x101));}[_0x4e3eda(0x121)](){const _0x56b855=_0x4e3eda;return this[_0x56b855(0x12d)][_0x56b855(0x137)][_0x56b855(0xec)](_0x56b855(0x14c));}[_0x4e3eda(0x14a)]({container:_0x373f63,value:_0xb3cebf,digits:_0x18d9ab}){const _0x5dae01=_0x4e3eda,_0x4da7b3=_0x373f63[_0x5dae01(0xf0)](_0x5dae01(0x131)),_0x7a088e=_0x373f63[_0x5dae01(0xf0)](_0x5dae01(0x125)),_0x5c39c7=Math[_0x5dae01(0x139)](_0xb3cebf)+(_0x7a088e??0x1)-0x1;switch(_0x4da7b3){case _0x5dae01(0x112):return function(_0x1eb087,_0x5108c4){const _0x4d9eca=_0x5dae01;return String(_0x1eb087)[_0x4d9eca(0x129)](_0x5108c4,'0');}(_0x5c39c7,Math[_0x5dae01(0xf9)](0x2,_0x18d9ab));case _0x5dae01(0x124):case _0x5dae01(0x122):return N(_0x5c39c7,!0x1);case _0x5dae01(0x146):case _0x5dae01(0x11e):return N(_0x5c39c7,!0x0);case _0x5dae01(0x127):return X(_0x5c39c7,!0x1);case _0x5dae01(0xf3):return X(_0x5c39c7,!0x0);default:return String(_0x5c39c7);}}}function M(_0x290f3e,_0x18447f){const _0x3de6b8=_0x4e3eda,_0x2f5128=_0x18447f[_0x3de6b8(0x13f)](_0x290f3e);return Array[_0x3de6b8(0x149)](_0x2f5128[_0x3de6b8(0x118)]())[_0x3de6b8(0xfb)](_0x4b731b=>_0x4b731b['is'](_0x3de6b8(0x132),'ol')&&_0x4b731b[_0x3de6b8(0x126)](_0x3de6b8(0xf4)));}function N(_0x4a17ae,_0x4c9f33){const _0x2bd7dd=_0x4e3eda;let _0x1f4f6a='',_0x533d65=_0x4a17ae;for(;_0x533d65>0x0;){const _0x532595=(_0x533d65-0x1)%0x1a;_0x1f4f6a=String[_0x2bd7dd(0x109)](0x61+_0x532595)+_0x1f4f6a,_0x533d65=Math[_0x2bd7dd(0x139)]((_0x533d65-0x1)/0x1a);}return _0x4c9f33?_0x1f4f6a[_0x2bd7dd(0x10a)]():_0x1f4f6a;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0xd5078,_0x545e5c){const _0x3913c7=_0x4e3eda;let _0x85f321='',_0x4df37b=_0xd5078;for(const {value:_0x1f1cd3,numeral:_0x413e78}of V)for(;_0x4df37b>=_0x1f1cd3;)_0x85f321+=_0x413e78,_0x4df37b-=_0x1f1cd3;return _0x545e5c?_0x85f321:_0x85f321[_0x3913c7(0x108)]();}
|
|
23
|
+
function _0x4bff(){const _0x16cc56=['parent','hasAttribute','start','20XHTHak','891991WAdaWn','mapper','isOfficialPlugin','setAttribute','upper-latin','add','isNaN','fromCharCode','setStyle','10703759hbywsi','footnotes.footnotesProperties.defaultListStyle','removeStyle','toViewElement','find','element:ol','position','padStart','7hlXgEb','attribute:footnotesListStyle:footnotesDefinitions','modelCursor','footnotesStyle','_defineConverters','getChanges','_getDefaultListStyle','367527VzHKEe','_defineFormatter','_defineSchema','_formatFootnoteListValue','lower-alpha','writer','lower-roman','getChildren','footnotesListStyle','2UHHVJT','parseInt','list-style-type','define','extend','createRangeOn','1038xytWdd','_definePostfixer','2342169cEdYzn','footnotesDefinitions','item','lower-latin','footnotes.footnotesProperties.defaultStartIndex','commands','isPremiumPlugin','$text','editor','registerPostFixer','footnotesListStart','config','35210LYlVoP','type','attribute:footnotesListStart:footnotesDefinitions','removeAttribute','getStyle','name','floor','consumable','checkAttribute','downcast','1411056IXoqwU','3531076hophNe','setFootnoteFormatter','nodeAfter','from','upper-roman','schema','for','requires','viewItem','upcast','_getDefaultStartIndex','document','differ','decimal','insert','footnotes-list','decimal-leading-zero','footnotesStart','FootnotesPropertiesEditing','element','_updateFootnotesCounters','get','getAttribute','init','max','getItems','hasClass','model','toLowerCase','consume','plugins','upper-alpha','pluginName','toUpperCase'];_0x4bff=function(){return _0x16cc56;};return _0x4bff();}const _0x69cbad=_0x52e5;(function(_0x2ee198,_0x5765bb){const _0x5edc9e=_0x52e5,_0x132067=_0x2ee198();while(!![]){try{const _0x4a8e97=-parseInt(_0x5edc9e(0x98))/0x1*(parseInt(_0x5edc9e(0xb9))/0x2)+-parseInt(_0x5edc9e(0xb0))/0x3+-parseInt(_0x5edc9e(0xd8))/0x4+parseInt(_0x5edc9e(0xcd))/0x5*(parseInt(_0x5edc9e(0xbf))/0x6)+-parseInt(_0x5edc9e(0xa9))/0x7*(parseInt(_0x5edc9e(0xd7))/0x8)+-parseInt(_0x5edc9e(0xc1))/0x9+parseInt(_0x5edc9e(0x97))/0xa*(parseInt(_0x5edc9e(0xa1))/0xb);if(_0x4a8e97===_0x5765bb)break;else _0x132067['push'](_0x132067['shift']());}catch(_0x253328){_0x132067['push'](_0x132067['shift']());}}}(_0x4bff,0xcac30));import{Plugin as _0xcc3709}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x50929f}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x181bfd}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x398fa8}from'../footnotestracker.js';import{FootnotesEditing as _0x8eb202}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0xcc3709{static get[_0x69cbad(0x92)](){const _0x18ff67=_0x69cbad;return _0x18ff67(0xea);}static get[_0x69cbad(0xdf)](){return[_0x8eb202,_0x398fa8];}static get[_0x69cbad(0x9a)](){return!0x0;}static get[_0x69cbad(0xc7)](){return!0x0;}[_0x69cbad(0x89)](){const _0xbea53a=_0x69cbad,{editor:_0x305524}=this;_0x305524[_0xbea53a(0xcc)][_0xbea53a(0xbc)](_0xbea53a(0xa2),_0xbea53a(0xe5)),_0x305524[_0xbea53a(0xcc)][_0xbea53a(0xbc)](_0xbea53a(0xc5),0x1),_0x305524[_0xbea53a(0xc6)][_0xbea53a(0x9d)](_0xbea53a(0xac),new _0x50929f(_0x305524)),_0x305524[_0xbea53a(0xc6)][_0xbea53a(0x9d)](_0xbea53a(0xe9),new _0x181bfd(_0x305524)),this[_0xbea53a(0xb2)](),this[_0xbea53a(0xad)](),this[_0xbea53a(0xb1)](),this[_0xbea53a(0xc0)]();}[_0x69cbad(0xb2)](){const _0x355a51=_0x69cbad,{editor:_0x18e8e3}=this,{schema:_0x13ce2e}=_0x18e8e3[_0x355a51(0x8d)];_0x13ce2e[_0x355a51(0xbd)](_0x355a51(0xc2),{'allowAttributes':[_0x355a51(0xb8),_0x355a51(0xcb)]});}[_0x69cbad(0xad)](){const _0x563415=_0x69cbad,{editor:_0x5e5ff4}=this,{conversion:_0x576c36,model:_0x53e19c}=_0x5e5ff4,{schema:_0x3cadce}=_0x53e19c;_0x576c36[_0x563415(0xde)](_0x563415(0xe1))[_0x563415(0x9d)](_0x42e6b1=>{const _0x44fd1f=_0x563415;_0x42e6b1['on'](_0x44fd1f(0xa6),(_0x5078b7,_0x7dfaa8,_0x3b4387)=>{const _0x5e4607=_0x44fd1f,_0x23e4f9=_0x7dfaa8[_0x5e4607(0xe0)],_0x2267f7=_0x7dfaa8[_0x5e4607(0xab)]?.[_0x5e4607(0x94)];_0x23e4f9[_0x5e4607(0x8c)](_0x5e4607(0xe7))&&_0x2267f7?.['is'](_0x5e4607(0xeb),_0x5e4607(0xc2))&&(function(_0x166022,_0x568c2b,_0x269621,_0x2ce546){const _0x2a8db8=_0x5e4607;if(!_0x2ce546[_0x2a8db8(0xd5)](_0x568c2b,_0x2a8db8(0xcb)))return;let _0x32be5f=0x1;const _0x572c89=_0x269621[_0x2a8db8(0xd4)][_0x2a8db8(0x8f)](_0x166022,{'attributes':_0x2a8db8(0x96)});if(_0x572c89){const _0x4762b4=Number[_0x2a8db8(0xba)](_0x166022[_0x2a8db8(0x88)](_0x2a8db8(0x96)),0xa);Number[_0x2a8db8(0x9e)](_0x4762b4)||(_0x32be5f=_0x4762b4);}!_0x572c89&&_0x568c2b[_0x2a8db8(0x95)](_0x2a8db8(0xcb))||_0x269621[_0x2a8db8(0xb5)][_0x2a8db8(0x9b)](_0x2a8db8(0xcb),_0x32be5f,_0x568c2b);}(_0x23e4f9,_0x2267f7,_0x3b4387,_0x3cadce),function(_0x436d6a,_0xd48eae,_0x38bb22,_0x3fd390){const _0x2b69d9=_0x5e4607;if(!_0x3fd390[_0x2b69d9(0xd5)](_0xd48eae,_0x2b69d9(0xb8)))return;let _0xbd47a5=_0x2b69d9(0xe5),_0x2e42de=!0x1;if(_0x38bb22[_0x2b69d9(0xd4)][_0x2b69d9(0x8f)](_0x436d6a,{'attributes':_0x2b69d9(0xce)})){const _0x14cc2e={0x1:_0x2b69d9(0xe5),'a':_0x2b69d9(0xb4),'A':_0x2b69d9(0x91),'i':_0x2b69d9(0xb6),'I':_0x2b69d9(0xdc)}[_0x436d6a[_0x2b69d9(0x88)](_0x2b69d9(0xce))];_0x14cc2e&&(_0xbd47a5=_0x14cc2e),_0x2e42de=!0x0;}_0x38bb22[_0x2b69d9(0xd4)][_0x2b69d9(0x8f)](_0x436d6a,{'styles':_0x2b69d9(0xbb)})&&(_0xbd47a5=function(_0x14f77e){const _0x43ee28=_0x2b69d9;switch(_0x14f77e){case _0x43ee28(0xb4):return _0x43ee28(0xc4);case _0x43ee28(0x91):return _0x43ee28(0x9c);default:return _0x14f77e;}}(_0x436d6a[_0x2b69d9(0xd1)](_0x2b69d9(0xbb))),_0x2e42de=!0x0),!_0x2e42de&&_0xd48eae[_0x2b69d9(0x95)](_0x2b69d9(0xb8))||_0x38bb22[_0x2b69d9(0xb5)][_0x2b69d9(0x9b)](_0x2b69d9(0xb8),_0xbd47a5,_0xd48eae);}(_0x23e4f9,_0x2267f7,_0x3b4387,_0x3cadce));});}),_0x576c36[_0x563415(0xde)](_0x563415(0xd6))[_0x563415(0x9d)](_0x203672=>{const _0x3def9f=_0x563415;_0x203672['on'](_0x3def9f(0xcf),(_0x45acbe,_0x15957a,_0x484835)=>{const _0x11642a=_0x3def9f;if(!_0x484835[_0x11642a(0xd4)][_0x11642a(0x8f)](_0x15957a[_0x11642a(0xc3)],_0x45acbe[_0x11642a(0xd2)]))return;const _0x4898b3=M(_0x15957a[_0x11642a(0xc3)],_0x484835[_0x11642a(0x99)]),{attributeNewValue:_0x3d037a}=_0x15957a;null==_0x3d037a||0x1===_0x3d037a?_0x484835[_0x11642a(0xb5)][_0x11642a(0xd0)](_0x11642a(0x96),_0x4898b3):_0x484835[_0x11642a(0xb5)][_0x11642a(0x9b)](_0x11642a(0x96),String(_0x3d037a),_0x4898b3);}),_0x203672['on'](_0x3def9f(0xaa),(_0x18e7dd,_0x14bbea,_0x3f0eb7)=>{const _0x35c1ba=_0x3def9f;if(!_0x3f0eb7[_0x35c1ba(0xd4)][_0x35c1ba(0x8f)](_0x14bbea[_0x35c1ba(0xc3)],_0x18e7dd[_0x35c1ba(0xd2)]))return;const _0x2f557c=M(_0x14bbea[_0x35c1ba(0xc3)],_0x3f0eb7[_0x35c1ba(0x99)]),{attributeNewValue:_0x3bcb41}=_0x14bbea;_0x3bcb41&&_0x35c1ba(0xe5)!==_0x3bcb41?_0x3f0eb7[_0x35c1ba(0xb5)][_0x35c1ba(0xa0)](_0x35c1ba(0xbb),_0x3bcb41,_0x2f557c):_0x3f0eb7[_0x35c1ba(0xb5)][_0x35c1ba(0xa3)](_0x35c1ba(0xbb),_0x2f557c);});});}[_0x69cbad(0xc0)](){const _0x51e09d=_0x69cbad,{editor:_0x10f916}=this,{model:_0x54c849}=_0x10f916,_0x2b05a8=_0x10f916[_0x51e09d(0x90)][_0x51e09d(0x87)](_0x398fa8),_0x52d379=this[_0x51e09d(0xaf)](),_0x4131a6=this[_0x51e09d(0xe2)]();_0x54c849[_0x51e09d(0xe3)][_0x51e09d(0xca)](_0x57f9ed=>{const _0x39f567=_0x51e09d,_0x1f559f=_0x54c849[_0x39f567(0xe3)][_0x39f567(0xe4)][_0x39f567(0xae)]();let _0x4f4152=!0x1;for(const _0x3c4f09 of _0x1f559f){if(_0x39f567(0xe6)!==_0x3c4f09[_0x39f567(0xce)]||_0x39f567(0xc8)===_0x3c4f09[_0x39f567(0xd2)])continue;const _0x2f1da4=_0x54c849[_0x39f567(0xbe)](_0x3c4f09[_0x39f567(0xa7)][_0x39f567(0xda)]);for(const _0x35be36 of _0x2f1da4[_0x39f567(0x8b)]())_0x35be36['is'](_0x39f567(0xeb),_0x39f567(0xc2))&&(!_0x35be36[_0x39f567(0x95)](_0x39f567(0xcb))&&_0x54c849[_0x39f567(0xdd)][_0x39f567(0xd5)](_0x35be36,_0x39f567(0xcb))&&(_0x57f9ed[_0x39f567(0x9b)](_0x39f567(0xcb),_0x4131a6,_0x35be36),_0x4f4152=!0x0),!_0x35be36[_0x39f567(0x95)](_0x39f567(0xb8))&&_0x54c849[_0x39f567(0xdd)][_0x39f567(0xd5)](_0x35be36,_0x39f567(0xb8))&&(_0x57f9ed[_0x39f567(0x9b)](_0x39f567(0xb8),_0x52d379,_0x35be36),_0x4f4152=!0x0));}return _0x4f4152&&_0x2b05a8[_0x39f567(0xec)](_0x57f9ed),_0x4f4152;});}[_0x69cbad(0xb1)](){const _0x27fe49=_0x69cbad,{editor:_0x2441e2}=this;_0x2441e2[_0x27fe49(0x90)][_0x27fe49(0x87)](_0x398fa8)[_0x27fe49(0xd9)](_0x4b3bc6=>this[_0x27fe49(0xb3)](_0x4b3bc6));}[_0x69cbad(0xaf)](){const _0x3499ec=_0x69cbad;return this[_0x3499ec(0xc9)][_0x3499ec(0xcc)][_0x3499ec(0x87)](_0x3499ec(0xa2));}[_0x69cbad(0xe2)](){const _0x1961a1=_0x69cbad;return this[_0x1961a1(0xc9)][_0x1961a1(0xcc)][_0x1961a1(0x87)](_0x1961a1(0xc5));}[_0x69cbad(0xb3)]({container:_0x5bfbab,value:_0x190002,digits:_0x5caa67}){const _0xff8224=_0x69cbad,_0x5e843f=_0x5bfbab[_0xff8224(0x88)](_0xff8224(0xb8)),_0x505a0e=_0x5bfbab[_0xff8224(0x88)](_0xff8224(0xcb)),_0x1c0653=Math[_0xff8224(0xd3)](_0x190002)+(_0x505a0e??0x1)-0x1;switch(_0x5e843f){case _0xff8224(0xe8):return function(_0x31e10b,_0x5dda75){const _0x5640d1=_0xff8224;return String(_0x31e10b)[_0x5640d1(0xa8)](_0x5dda75,'0');}(_0x1c0653,Math[_0xff8224(0x8a)](0x2,_0x5caa67));case _0xff8224(0xb4):case _0xff8224(0xc4):return N(_0x1c0653,!0x1);case _0xff8224(0x91):case _0xff8224(0x9c):return N(_0x1c0653,!0x0);case _0xff8224(0xb6):return X(_0x1c0653,!0x1);case _0xff8224(0xdc):return X(_0x1c0653,!0x0);default:return String(_0x1c0653);}}}function _0x52e5(_0x531e1e,_0x3d4ffe){const _0x4bff3f=_0x4bff();return _0x52e5=function(_0x52e53e,_0x2ea83f){_0x52e53e=_0x52e53e-0x87;let _0x44b464=_0x4bff3f[_0x52e53e];return _0x44b464;},_0x52e5(_0x531e1e,_0x3d4ffe);}function M(_0x285672,_0x5b44d2){const _0x22a44c=_0x69cbad,_0x560d44=_0x5b44d2[_0x22a44c(0xa4)](_0x285672);return Array[_0x22a44c(0xdb)](_0x560d44[_0x22a44c(0xb7)]())[_0x22a44c(0xa5)](_0x353d8e=>_0x353d8e['is'](_0x22a44c(0xeb),'ol')&&_0x353d8e[_0x22a44c(0x8c)](_0x22a44c(0xe7)));}function N(_0x299846,_0x10873d){const _0x583729=_0x69cbad;let _0x5ab194='',_0x3ac9ff=_0x299846;for(;_0x3ac9ff>0x0;){const _0xc3ba39=(_0x3ac9ff-0x1)%0x1a;_0x5ab194=String[_0x583729(0x9f)](0x61+_0xc3ba39)+_0x5ab194,_0x3ac9ff=Math[_0x583729(0xd3)]((_0x3ac9ff-0x1)/0x1a);}return _0x10873d?_0x5ab194[_0x583729(0x93)]():_0x5ab194;}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(_0x4e2e6c,_0x497f8b){const _0x1713c9=_0x69cbad;let _0x5910a4='',_0x52cd4e=_0x4e2e6c;for(const {value:_0x496913,numeral:_0x998191}of V)for(;_0x52cd4e>=_0x496913;)_0x5910a4+=_0x998191,_0x52cd4e-=_0x496913;return _0x497f8b?_0x5910a4:_0x5910a4[_0x1713c9(0x8e)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x3b5b9b,ButtonView as _0x5d1d0e,ContextualBalloon as _0x51a29f,createDropdown as _0x42ba3a}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x35c871}from'ckeditor5/src/widget.js';import{Plugin as _0x2d2f65}from'ckeditor5/src/core.js';import{IconFootnote as _0x383b89,IconListStyleDecimal as _0x5c849f,IconListStyleDecimalLeadingZero as _0x4d5aa8,IconListStyleLowerLatin as _0x168b6d,IconListStyleLowerRoman as _0x2c50ba,IconListStyleUpperLatin as _0x2c2fda,IconListStyleUpperRoman as _0x1c5667}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x24fee4}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x34ea8b}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x2d2f65{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x51a29f,_0x35c871];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1de449}=this,{componentFactory:_0x2c530b}=_0x1de449['ui'];_0x1de449['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2c530b['add']('footnotesStyle',function(_0x2cd52f){return _0xd50ecc=>{const {t:t}=_0xd50ecc,_0x3d4ee9=_0x2cd52f['commands']['get']('footnotesStyle'),_0xad44ca=_0x42ba3a(_0xd50ecc),{buttonView:_0x1be95f}=_0xad44ca;return _0xad44ca['class']='ck-footnotes-styles-dropdown',_0xad44ca['bind']('isEnabled')['to'](_0x3d4ee9,'isEnabled'),_0x1be95f['set']({'label':t('Footnotes\x20style'),'icon':_0x383b89,'tooltip':!0x0}),_0xad44ca['once']('change:isOpen',()=>{const _0x5b151c=function({editor:_0x14c352,dropdownView:_0x33760a}){const {t:t}=_0x14c352['locale'],_0x465da8=t('Footnotes\x20definitions\x20styles'),_0x470ebd=function(_0x2acb41){const t=_0x2acb41['locale']['t'],_0x3b5f8c=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5c849f},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4d5aa8},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2c50ba},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1c5667},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x168b6d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2c2fda}];return _0x3b5f8c['map'](function(_0xa0e623){const _0x547dbf=_0xa0e623['locale'];return({label:_0x4361bd,icon:_0x4d1bc8,tooltip:_0x41723f,style:_0xef01e1})=>{const _0xbacd40=_0xa0e623['commands']['get']('footnotesStyle'),_0x5eaaff=new _0x5d1d0e(_0x547dbf);return _0x5eaaff['set']({'label':_0x4361bd,'icon':_0x4d1bc8,'tooltip':_0x41723f}),_0x5eaaff['bind']('isOn')['to'](_0xbacd40,'value',_0x4c72d7=>_0x4c72d7===_0xef01e1),_0x5eaaff['bind']('isEnabled')['to'](_0xbacd40,'isEnabled'),_0x5eaaff['on']('execute',()=>{_0xa0e623['execute']('footnotesStyle',{'value':_0xef01e1}),_0xa0e623['editing']['view']['focus']();}),_0x5eaaff;};}(_0x2acb41));}(_0x14c352),_0x19d214=new _0x24fee4(_0x14c352['locale'],{'styleGridAriaLabel':_0x465da8,'styleButtonViews':_0x470ebd}),_0x504b24=_0x14c352['commands']['get']('footnotesStart');return _0x19d214['startIndexFieldView']['bind']('isEnabled')['to'](_0x504b24),_0x19d214['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x504b24),_0x19d214['on']('footnotesListStart',(_0x4457cf,_0x13eb99)=>{_0x14c352['execute']('footnotesStart',{'value':_0x13eb99['startIndex']});}),_0x19d214['delegate']('execute')['to'](_0x33760a),_0x19d214;}({'editor':_0x2cd52f,'dropdownView':_0xad44ca});_0xad44ca['panelView']['children']['add'](_0x5b151c);}),_0xad44ca;};}(_0x1de449));}['afterInit'](){const {editor:_0x38060e}=this,{t:t}=_0x38060e['locale'],_0xa6ded9=_0x38060e['plugins']['get'](_0x35c871),{defaultPositions:_0x5bb1a8}=_0x3b5b9b;_0xa6ded9['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x38060e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2f0f1a=>{let _0x3d7678=_0x2f0f1a['getFirstPosition']()?.['parent'];return _0x3d7678?.['is']('$text')&&(_0x3d7678=_0x3d7678['parent']),_0x3d7678?.['is']('element')?_0x3d7678['findAncestor'](_0x34ea8b):null;},'positions':[_0x5bb1a8['southArrowNorth'],_0x5bb1a8['southArrowNorthMiddleWest'],_0x5bb1a8['southArrowNorthMiddleEast'],_0x5bb1a8['southArrowNorthWest'],_0x5bb1a8['southArrowNorthEast'],_0x5bb1a8['northArrowSouth'],_0x5bb1a8['northArrowSouthMiddleWest'],_0x5bb1a8['northArrowSouthMiddleEast'],_0x5bb1a8['northArrowSouthWest'],_0x5bb1a8['northArrowSouthEast'],_0x5bb1a8['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3d4d06,View as _0x3f54d0,ViewCollection as _0x46a325,FocusCycler as _0x3b60ed,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x3f54d0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x46a325();['focusCycler'];constructor(_0x51f11b,{styleButtonViews:_0x1ce3af,styleGridAriaLabel:_0x23c8f8}){super(_0x51f11b),(this['focusCycler']=new _0x3b60ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1ce3af,_0x23c8f8),[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 _0x4701b5 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4701b5['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x26b2bf=_0x28c538=>_0x28c538['stopPropagation']();this['keystrokes']['set']('arrowright',_0x26b2bf),this['keystrokes']['set']('arrowleft',_0x26b2bf),this['keystrokes']['set']('arrowup',_0x26b2bf),this['keystrokes']['set']('arrowdown',_0x26b2bf);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x12e773,_0x529f42){const _0x42bc1d=new _0x3f54d0(this['locale']);return _0x42bc1d['children']=_0x42bc1d['createCollection'](),_0x42bc1d['children']['addMany'](_0x12e773),_0x42bc1d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x529f42,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x42bc1d['children']}),_0x42bc1d['children']['delegate']('execute')['to'](this),_0x42bc1d['focus']=function(){for(const _0xedd287 of this['children'])if(_0xedd287 instanceof _0x3d4d06&&_0xedd287['isOn'])return void _0xedd287['focus']();this['children']['first']['focus']();},_0x42bc1d['focusTracker']=new ot(),_0x42bc1d['keystrokes']=new rt(),_0x42bc1d['render'](),_0x42bc1d['keystrokes']['listenTo'](_0x42bc1d['element']),this['children']['add'](_0x42bc1d),_0x42bc1d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x35b797=this['_createStartIndexPropertyView'](),_0x4f62b4=[_0x35b797],_0x101105=new st(this['locale'],_0x4f62b4);return _0x101105['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x101105['buttonView']['bind']('isEnabled')['toMany'](_0x4f62b4,'isEnabled',(..._0x289464)=>_0x289464['some'](_0x598705=>_0x598705)),_0x101105['buttonView']['on']('change:isEnabled',(_0x1ca3ab,_0xeb6af9,_0x9cdb38)=>{_0x9cdb38||(_0x101105['isCollapsed']=!0x0);}),this['children']['add'](_0x101105),[_0x35b797,_0x101105];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1d7979=new it(this['locale'],et);return _0x1d7979['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1d7979['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1d7979['fieldView']['on']('input',()=>{const _0x3f75dd=_0x1d7979['fieldView']['element'],_0x1f8b2d=_0x3f75dd['valueAsNumber'];Number['isNaN'](_0x1f8b2d)?_0x1d7979['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3f75dd['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1f8b2d}):_0x1d7979['errorText']=t(_0x1f8b2d<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1d7979;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x2c3725=_0x599b;(function(_0x3d57e3,_0x3dbe99){var _0x4ac458=_0x599b,_0x8e2a98=_0x3d57e3();while(!![]){try{var _0x1779f7=parseInt(_0x4ac458(0x1f3))/0x1*(parseInt(_0x4ac458(0x1f9))/0x2)+parseInt(_0x4ac458(0x1f4))/0x3+parseInt(_0x4ac458(0x1ec))/0x4*(parseInt(_0x4ac458(0x1fb))/0x5)+-parseInt(_0x4ac458(0x1f2))/0x6*(parseInt(_0x4ac458(0x1ef))/0x7)+-parseInt(_0x4ac458(0x1f1))/0x8+-parseInt(_0x4ac458(0x1eb))/0x9*(parseInt(_0x4ac458(0x1f5))/0xa)+-parseInt(_0x4ac458(0x1f6))/0xb*(-parseInt(_0x4ac458(0x1f0))/0xc);if(_0x1779f7===_0x3dbe99)break;else _0x8e2a98['push'](_0x8e2a98['shift']());}catch(_0x35f2cf){_0x8e2a98['push'](_0x8e2a98['shift']());}}}(_0x1494,0x470ac));function _0x599b(_0x5b0b93,_0x1f6a45){var _0x1494cc=_0x1494();return _0x599b=function(_0x599b86,_0x1c534e){_0x599b86=_0x599b86-0x1eb;var _0x4a246d=_0x1494cc[_0x599b86];return _0x4a246d;},_0x599b(_0x5b0b93,_0x1f6a45);}function _0x1494(){var _0x274d60=['isPremiumPlugin','pluginName','16PGXoOm','isOfficialPlugin','5VkOiYa','81ZitBLb','2311896oYTRuq','FootnotesProperties','requires','119WkEaHE','199284GGYZJs','3497672rEGrzm','127896nvpEQS','30689BXKotR','572412aoiWrX','616430oweDyH','418OYHQuP'];_0x1494=function(){return _0x274d60;};return _0x1494();}import{Plugin as _0xf8fc1c}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x54ea6d}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x12846f}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0xf8fc1c{static get[_0x2c3725(0x1f8)](){var _0x51a0ea=_0x2c3725;return _0x51a0ea(0x1ed);}static get[_0x2c3725(0x1ee)](){return[_0x54ea6d,_0x12846f];}static get[_0x2c3725(0x1fa)](){return!0x0;}static get[_0x2c3725(0x1f7)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1e9c(){const _0x7a4189=['root','before','footnoteInlineContent','getFootnotes','registerPostFixer','pluginName','childCount','_footnoteRefsTracker','min','change:data','getRootNames','197716cpRmnU','footnoteCounter','createRangeOn','getFootnotesFormatter','footnoteDefinition','map','document','after','_footnoteDefsTracker','658vwvLKd','_insertEmptyFootnotesDefinitionsContainer','61032KYWWcO','rootName','unshift','splice','setFootnoteFormatter','append','getFootnote','_ensureFootnotesReferencesHaveProperOrder','createRangeIn','_handleInsertedFootnoteReference','compareWith','31636099qqsQhC','from','indexOf','parent','insert','length','createElement','_sortFootnoteDefinitions','high','init','has','_handleFootnotesDefinitionsObjectChanges','_footnoteFormatter','_handleFootnoteDefinitionsChanges','9935980WNdxCn','setAttribute','_handleRemoveFootnoteReferenceById','set','createPositionAt','reference','16300ViytcE','getFootnotesDefinitionsObjectElement','low','_updateFootnoteRefCounter','getChanges','editor','model','differ','listenTo','FootnotesTracker','config','end','_handleMovedFootnoteReference','findIndex','isPremiumPlugin','20754dkqyjh','isOfficialPlugin','paragraph','_updateFootnotesCounters','getChildren','438tmxrMc','_footnotes','_ensureFootnotesDefinitionsContainerExists','enqueueChange','_footnoteDefsContainerTracker','find','definition','add','some','_footnotesDefinitions','singleton','footnotesDefinitions','footnoteId','footnotes.multiBlock','_handleFootnoteReferencesChanges','push','2900590kRkwws','reset','81qzpTAb','get','isEqual','_handleFootnotesDefinitionsObjectSync','footnoteRef','createPositionBefore','remove','2uowYzj','move','$graveyard','getAttribute'];_0x1e9c=function(){return _0x7a4189;};return _0x1e9c();}function _0x4bd7(_0x384f87,_0x27bce4){const _0x1e9c2d=_0x1e9c();return _0x4bd7=function(_0x4bd723,_0x3df357){_0x4bd723=_0x4bd723-0x1c9;let _0xafccef=_0x1e9c2d[_0x4bd723];return _0xafccef;},_0x4bd7(_0x384f87,_0x27bce4);}const _0x257431=_0x4bd7;(function(_0x4d6bed,_0x40485f){const _0x1f0fab=_0x4bd7,_0xc1cc7b=_0x4d6bed();while(!![]){try{const _0x17b72f=parseInt(_0x1f0fab(0x1ca))/0x1*(parseInt(_0x1f0fab(0x221))/0x2)+-parseInt(_0x1f0fab(0x208))/0x3*(parseInt(_0x1f0fab(0x1f4))/0x4)+-parseInt(_0x1f0fab(0x218))/0x5+parseInt(_0x1f0fab(0x203))/0x6*(-parseInt(_0x1f0fab(0x1d3))/0x7)+-parseInt(_0x1f0fab(0x1d5))/0x8*(parseInt(_0x1f0fab(0x21a))/0x9)+-parseInt(_0x1f0fab(0x1ee))/0xa+parseInt(_0x1f0fab(0x1e0))/0xb;if(_0x17b72f===_0x40485f)break;else _0xc1cc7b['push'](_0xc1cc7b['shift']());}catch(_0x2d16bb){_0xc1cc7b['push'](_0xc1cc7b['shift']());}}}(_0x1e9c,0x7cd14));import{Plugin as _0x56f668}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x122b99}from'./modelelementtracker.js';export class FootnotesTracker extends _0x56f668{[_0x257431(0x209)]=[];[_0x257431(0x211)]=null;[_0x257431(0x1ec)]=null;[_0x257431(0x20c)];[_0x257431(0x22c)];[_0x257431(0x1d2)];static get[_0x257431(0x22a)](){const _0x4d2a58=_0x257431;return _0x4d2a58(0x1fd);}static get[_0x257431(0x204)](){return!0x0;}static get[_0x257431(0x202)](){return!0x0;}constructor(_0x39f5a8){const _0x4d1b01=_0x257431;super(_0x39f5a8),this[_0x4d1b01(0x20c)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x213),'getElementKey':()=>_0x4d1b01(0x212)}),this[_0x4d1b01(0x22c)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x21e),'getElementKey':_0x4dc762=>_0x4dc762[_0x4d1b01(0x224)](_0x4d1b01(0x214))}),this[_0x4d1b01(0x1d2)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x1ce),'getElementKey':_0x989849=>_0x989849[_0x4d1b01(0x224)](_0x4d1b01(0x214))});}[_0x257431(0x1e9)](){const _0x13e6fc=_0x257431,{editor:_0x46bb90}=this,{model:_0x4f3c57,data:_0x19cf2e}=_0x46bb90;_0x4f3c57[_0x13e6fc(0x1d0)][_0x13e6fc(0x229)](_0x233e44=>{const _0x143157=_0x13e6fc,_0x3880ea=_0x4f3c57[_0x143157(0x1d0)][_0x143157(0x1fb)][_0x143157(0x1f8)]();let _0x5688d9=!0x1;return this[_0x143157(0x1eb)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x1ed)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x216)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x1dc)](_0x233e44)&&(_0x5688d9=!0x0),this[_0x143157(0x21d)](_0x233e44)&&(_0x5688d9=!0x0),this[_0x143157(0x1e7)](_0x233e44)&&(_0x5688d9=!0x0),_0x5688d9;}),this[_0x13e6fc(0x1fc)](_0x4f3c57[_0x13e6fc(0x1d0)],_0x13e6fc(0x22e),()=>{const _0x249b78=_0x13e6fc;_0x4f3c57[_0x249b78(0x20b)]({'isUndoable':!0x1},_0x1ca445=>{const _0x3c570d=_0x249b78;this[_0x3c570d(0x20a)](_0x1ca445);});},{'priority':_0x13e6fc(0x1f6)}),this[_0x13e6fc(0x1fc)](_0x19cf2e,_0x13e6fc(0x1f1),()=>{const _0x40b53d=_0x13e6fc;this[_0x40b53d(0x209)]=[],this[_0x40b53d(0x20c)][_0x40b53d(0x219)](),this[_0x40b53d(0x22c)][_0x40b53d(0x219)](),this[_0x40b53d(0x1d2)][_0x40b53d(0x219)]();},{'priority':_0x13e6fc(0x1e8)});}[_0x257431(0x1f5)](){const _0x5e76ca=_0x257431;return this[_0x5e76ca(0x211)];}[_0x257431(0x1db)](_0x17f270){const _0x1fbfad=_0x257431;return this[_0x1fbfad(0x209)][_0x1fbfad(0x20d)](_0x13f614=>_0x13f614['id']===_0x17f270)||null;}[_0x257431(0x228)](){const _0x3855ff=_0x257431;return Array[_0x3855ff(0x1e1)](this[_0x3855ff(0x209)]);}[_0x257431(0x1cd)](){const _0x3f1751=_0x257431;return this[_0x3f1751(0x1ec)];}[_0x257431(0x1d9)](_0x5b115b){const _0x3f9325=_0x257431;this[_0x3f9325(0x1ec)]=_0x5b115b;}[_0x257431(0x206)](_0x3fe9fb,_0x5bec35=0x0){const _0x1497a1=_0x257431;let _0x762b08=!0x1;for(let _0x2e7b3e=_0x5bec35;_0x2e7b3e<this[_0x1497a1(0x209)][_0x1497a1(0x1e5)];_0x2e7b3e++)this[_0x1497a1(0x1f7)](_0x3fe9fb,_0x2e7b3e)&&(_0x762b08=!0x0);return _0x762b08;}[_0x257431(0x1d4)](_0x4def5d,_0x319bb1){const _0x4a3bac=_0x257431,_0x3791fb=_0x4def5d[_0x4a3bac(0x1e6)](_0x4a3bac(0x213),{});return _0x4def5d[_0x4a3bac(0x1da)](_0x3791fb,_0x319bb1),this[_0x4a3bac(0x211)]=_0x3791fb,_0x3791fb;}[_0x257431(0x20a)](_0x4dc8e0){const _0xf66aaa=_0x257431;if(!this[_0xf66aaa(0x209)][_0xf66aaa(0x1e5)]||this[_0xf66aaa(0x211)])return;const _0x5c8d86=this[_0xf66aaa(0x209)][0x0][_0xf66aaa(0x1f3)][_0xf66aaa(0x225)],_0x521e31=this[_0xf66aaa(0x1d4)](_0x4dc8e0,_0x5c8d86);for(const _0x210f72 of this[_0xf66aaa(0x209)])_0x210f72[_0xf66aaa(0x20e)][_0xf66aaa(0x1e3)]||_0x4dc8e0[_0xf66aaa(0x1e4)](_0x210f72[_0xf66aaa(0x20e)],_0x521e31,_0xf66aaa(0x1ff));this[_0xf66aaa(0x206)](_0x4dc8e0);}[_0x257431(0x1eb)](_0x28c745,_0x5e2a79){const _0x58f2a6=_0x257431;let _0x10b135=!0x1;const {inserted:_0x410e57,removed:_0x143961,moved:_0x430d73}=this[_0x58f2a6(0x20c)][_0x58f2a6(0x1f8)](_0x5e2a79);if(_0x430d73[_0x58f2a6(0x1e5)]&&(this[_0x58f2a6(0x211)]=_0x430d73[0x0]),_0x410e57[_0x58f2a6(0x1e5)]){if(_0x410e57[_0x58f2a6(0x1e5)]>0x1||this[_0x58f2a6(0x211)]&&_0x410e57[_0x58f2a6(0x210)](_0x28721b=>_0x28721b!==this[_0x58f2a6(0x211)])){const _0x52c588=_0x28c745[_0x58f2a6(0x1e6)](_0x58f2a6(0x213),{}),_0x248597=[];this[_0x58f2a6(0x211)]&&_0x248597[_0x58f2a6(0x217)](this[_0x58f2a6(0x211)]),_0x248597[_0x58f2a6(0x217)](..._0x410e57),_0x28c745[_0x58f2a6(0x1e4)](_0x52c588,_0x248597[0x0],_0x58f2a6(0x226));for(const _0x2d916e of _0x248597)_0x28c745[_0x58f2a6(0x222)](_0x28c745[_0x58f2a6(0x1dd)](_0x2d916e),_0x28c745[_0x58f2a6(0x1f2)](_0x52c588,_0x58f2a6(0x1ff))),_0x28c745[_0x58f2a6(0x220)](_0x2d916e);this[_0x58f2a6(0x211)]=_0x52c588,this[_0x58f2a6(0x206)](_0x28c745),_0x10b135=!0x0;}else this[_0x58f2a6(0x211)]=_0x410e57[0x0];}if(_0x143961[_0x58f2a6(0x1e5)]&&_0x58f2a6(0x223)===this[_0x58f2a6(0x211)]?.[_0x58f2a6(0x225)][_0x58f2a6(0x1d6)]){for(const _0x17c89e of this[_0x58f2a6(0x209)])_0x28c745[_0x58f2a6(0x220)](_0x17c89e[_0x58f2a6(0x1f3)]),_0x10b135=!0x0;this[_0x58f2a6(0x209)]=[],this[_0x58f2a6(0x211)]=null;}return _0x10b135;}[_0x257431(0x1ed)](_0x28201b,_0x46b738){const _0x26b3aa=_0x257431;let _0x5bb6c7=!0x1;const _0xf15ce7=this[_0x26b3aa(0x1f9)][_0x26b3aa(0x1fe)][_0x26b3aa(0x21b)](_0x26b3aa(0x215)),{inserted:_0x836ba6,moved:_0x5824fa}=this[_0x26b3aa(0x1d2)][_0x26b3aa(0x1f8)](_0x46b738);for(const _0x37b00d of[..._0x5824fa,..._0x836ba6]){const _0x50fbbe=_0x37b00d[_0x26b3aa(0x224)](_0x26b3aa(0x214)),_0x45fea0=this[_0x26b3aa(0x1db)](_0x50fbbe);_0x45fea0&&(_0x45fea0[_0x26b3aa(0x20e)]=_0x37b00d),_(_0x28201b,_0xf15ce7,_0x37b00d)&&(_0x5bb6c7=!0x0);}return _0x5bb6c7;}[_0x257431(0x216)](_0x270b2a,_0x3e4e15){const _0x741cf5=_0x257431;let _0x5f31ec=!0x1;const {removed:_0x583ed8,inserted:_0xe31b6d,moved:_0xde76f0}=this[_0x741cf5(0x22c)][_0x741cf5(0x1f8)](_0x3e4e15);for(const _0x3c9943 of _0x583ed8)this[_0x741cf5(0x1f0)](_0x270b2a,_0x3c9943)&&(_0x5f31ec=!0x0);for(const _0x5c3e32 of _0xe31b6d)this[_0x741cf5(0x1de)](_0x270b2a,_0x5c3e32)&&(_0x5f31ec=!0x0);for(const _0x51d4cc of _0xde76f0)this[_0x741cf5(0x200)](_0x270b2a,_0x51d4cc)&&(_0x5f31ec=!0x0);return _0x5f31ec;}[_0x257431(0x21d)](_0x336a49){const _0x422b84=_0x257431;if(!this[_0x422b84(0x211)])return!0x1;let _0x246c1c=!0x1;if(this[_0x422b84(0x211)][_0x422b84(0x22b)]!==this[_0x422b84(0x209)][_0x422b84(0x1e5)]){const _0x499181=[];for(const _0x38f12f of this[_0x422b84(0x211)][_0x422b84(0x207)]()){const _0x53439a=_0x38f12f[_0x422b84(0x224)](_0x422b84(0x214));this[_0x422b84(0x1db)](_0x53439a)||(_0x499181[_0x422b84(0x1d7)](_0x38f12f),_0x246c1c=!0x0);}for(const _0xe62309 of _0x499181)_0x336a49[_0x422b84(0x220)](_0xe62309);}const _0x4e8bfc=new Set(),_0x346d6a=[];for(const _0x4c656d of this[_0x422b84(0x211)][_0x422b84(0x207)]()){const _0x1520d5=_0x4c656d[_0x422b84(0x224)](_0x422b84(0x214));_0x4e8bfc[_0x422b84(0x1ea)](_0x1520d5)?(_0x346d6a[_0x422b84(0x1d7)](_0x4c656d),_0x246c1c=!0x0):_0x4e8bfc[_0x422b84(0x20f)](_0x1520d5);}for(const _0x20a9af of _0x346d6a)_0x336a49[_0x422b84(0x220)](_0x20a9af);return this[_0x422b84(0x211)][_0x422b84(0x22b)]||(_0x336a49[_0x422b84(0x220)](this[_0x422b84(0x211)]),this[_0x422b84(0x211)]=null,_0x246c1c=!0x0),_0x246c1c;}[_0x257431(0x1de)](_0x518e2a,_0x26cbf6){const _0x4b7d31=_0x257431;if(this[_0x4b7d31(0x209)][_0x4b7d31(0x20d)](_0x3544ee=>_0x3544ee[_0x4b7d31(0x1f3)]===_0x26cbf6))return!0x1;let _0x1cbe24=!0x1;const _0x249d32=_0x26cbf6[_0x4b7d31(0x224)](_0x4b7d31(0x214)),_0x5198fe=this[_0x4b7d31(0x209)][_0x4b7d31(0x201)](_0x15628b=>_0x15628b['id']===_0x249d32);-0x1!==_0x5198fe&&(_0x518e2a[_0x4b7d31(0x220)](this[_0x4b7d31(0x209)][_0x5198fe][_0x4b7d31(0x1f3)]),this[_0x4b7d31(0x209)][_0x4b7d31(0x1d8)](_0x5198fe,0x1),_0x1cbe24=!0x0);let _0x32920b=this[_0x4b7d31(0x211)]?function(_0x54f788,_0x269f7e){const _0x420fb3=_0x4b7d31;for(const _0x3f42e5 of _0x54f788[_0x420fb3(0x207)]())if(_0x3f42e5[_0x420fb3(0x224)](_0x420fb3(0x214))===_0x269f7e)return _0x3f42e5;return null;}(this[_0x4b7d31(0x211)],_0x249d32):null;_0x32920b||(_0x32920b=_0x518e2a[_0x4b7d31(0x1e6)](_0x4b7d31(0x1ce),{'footnoteId':_0x249d32}),this[_0x4b7d31(0x211)]&&(_0x518e2a[_0x4b7d31(0x1e4)](_0x32920b,this[_0x4b7d31(0x211)],_0x4b7d31(0x1ff)),_0x1cbe24=!0x0));const _0x2c687f={'id':_0x249d32,'reference':_0x26cbf6,'definition':_0x32920b},_0x10ee58=I(this[_0x4b7d31(0x1f9)][_0x4b7d31(0x1fa)],this[_0x4b7d31(0x209)],_0x26cbf6);this[_0x4b7d31(0x209)][_0x4b7d31(0x1d8)](_0x10ee58,0x0,_0x2c687f);let _0x185330=_0x10ee58;return-0x1!==_0x5198fe&&(_0x185330=Math[_0x4b7d31(0x22d)](_0x10ee58,_0x5198fe)),this[_0x4b7d31(0x206)](_0x518e2a,_0x185330)&&(_0x1cbe24=!0x0),_0x1cbe24;}[_0x257431(0x1f0)](_0x5a79c0,_0x2eb297){const _0x406e8c=_0x257431,_0xc7555e=this[_0x406e8c(0x209)][_0x406e8c(0x201)](_0x328263=>_0x328263['id']===_0x2eb297);if(-0x1===_0xc7555e)return!0x1;let _0x11cc50=!0x1;const _0x12bc65=this[_0x406e8c(0x209)][_0xc7555e];return _0x406e8c(0x223)!==_0x12bc65[_0x406e8c(0x20e)][_0x406e8c(0x225)][_0x406e8c(0x1d6)]&&(_0x5a79c0[_0x406e8c(0x220)](_0x12bc65[_0x406e8c(0x20e)]),_0x11cc50=!0x0),this[_0x406e8c(0x209)][_0x406e8c(0x1d8)](_0xc7555e,0x1),this[_0x406e8c(0x206)](_0x5a79c0,_0xc7555e)&&(_0x11cc50=!0x0),_0x11cc50;}[_0x257431(0x200)](_0x138729,_0x3adb02){const _0x1d6c4b=_0x257431,_0x23d2ec=_0x3adb02[_0x1d6c4b(0x224)](_0x1d6c4b(0x214)),_0x3793a7=this[_0x1d6c4b(0x209)][_0x1d6c4b(0x201)](_0x30b75f=>_0x30b75f['id']===_0x23d2ec),_0x5590e9=this[_0x1d6c4b(0x209)][_0x3793a7];let _0x5e2dff=!0x1;_0x5590e9[_0x1d6c4b(0x1f3)]=_0x3adb02,this[_0x1d6c4b(0x209)][_0x1d6c4b(0x1d8)](_0x3793a7,0x1);const _0x214200=I(this[_0x1d6c4b(0x1f9)][_0x1d6c4b(0x1fa)],this[_0x1d6c4b(0x209)],_0x3adb02);return this[_0x1d6c4b(0x209)][_0x1d6c4b(0x1d8)](_0x214200,0x0,_0x5590e9),this[_0x1d6c4b(0x206)](_0x138729,Math[_0x1d6c4b(0x22d)](_0x3793a7,_0x214200))&&(_0x5e2dff=!0x0),_0x5e2dff;}[_0x257431(0x1f7)](_0x32bcf9,_0x16fc81){const _0x2802fd=_0x257431;if(!this[_0x2802fd(0x211)])return!0x1;const _0x2c1460=this[_0x2802fd(0x209)][_0x16fc81];let _0x317df3;return _0x317df3=this[_0x2802fd(0x1ec)]?this[_0x2802fd(0x1ec)]({'footnote':_0x2c1460,'container':this[_0x2802fd(0x211)],'digits':String(this[_0x2802fd(0x209)][_0x2802fd(0x1e5)])[_0x2802fd(0x1e5)],'value':_0x16fc81+0x1}):String(_0x16fc81+0x1),_0x2c1460[_0x2802fd(0x1f3)][_0x2802fd(0x224)](_0x2802fd(0x1cb))!=_0x317df3&&(_0x32bcf9[_0x2802fd(0x1ef)](_0x2802fd(0x1cb),_0x317df3,_0x2c1460[_0x2802fd(0x1f3)]),!0x0);}[_0x257431(0x1e7)](_0x31b7e1){const _0x1502ce=_0x257431;if(!this[_0x1502ce(0x211)]||this[_0x1502ce(0x209)][_0x1502ce(0x1e5)]<0x2)return!0x1;if(function(_0x5180c9,_0x3ab75f){const _0x13fb73=_0x1502ce;if(_0x5180c9[_0x13fb73(0x1e5)]!==_0x3ab75f[_0x13fb73(0x1e5)])return!0x1;for(let _0x5c5048=0x0;_0x5c5048<_0x5180c9[_0x13fb73(0x1e5)];_0x5c5048++)if(_0x5180c9[_0x5c5048]!==_0x3ab75f[_0x5c5048])return!0x1;return!0x0;}(this[_0x1502ce(0x209)][_0x1502ce(0x1cf)](_0x3e9361=>_0x3e9361['id']),Array[_0x1502ce(0x1e1)](this[_0x1502ce(0x211)][_0x1502ce(0x207)]())[_0x1502ce(0x1cf)](_0x478509=>_0x478509[_0x1502ce(0x224)](_0x1502ce(0x214)))))return!0x1;let _0x2a0f3b=!0x1;for(let _0x51c134=0x0;_0x51c134<this[_0x1502ce(0x209)][_0x1502ce(0x1e5)];_0x51c134++){const _0x500eef=this[_0x1502ce(0x209)][_0x51c134],_0x1494dc=_0x31b7e1[_0x1502ce(0x21f)](_0x500eef[_0x1502ce(0x20e)]),_0x3f30b1=_0x31b7e1[_0x1502ce(0x1f2)](this[_0x1502ce(0x211)],_0x51c134);_0x1494dc[_0x1502ce(0x21c)](_0x3f30b1)||(_0x31b7e1[_0x1502ce(0x222)](_0x31b7e1[_0x1502ce(0x1cc)](_0x500eef[_0x1502ce(0x20e)]),_0x3f30b1),_0x2a0f3b=!0x0);}return _0x2a0f3b;}[_0x257431(0x1dc)](_0x4df41a){const _0x339b81=_0x257431;if(!this[_0x339b81(0x209)][_0x339b81(0x1e5)])return!0x1;const {model:_0x10c300}=this[_0x339b81(0x1f9)];let _0x17b840=!0x1;for(let _0x3a8cb7=0x0;_0x3a8cb7<this[_0x339b81(0x209)][_0x339b81(0x1e5)]-0x1;_0x3a8cb7++){const _0x1a9905=this[_0x339b81(0x209)][_0x3a8cb7],_0x5dc873=this[_0x339b81(0x209)][_0x3a8cb7+0x1],_0x2abfb0=_0x10c300[_0x339b81(0x21f)](_0x1a9905[_0x339b81(0x1f3)]),_0x3995b9=_0x10c300[_0x339b81(0x21f)](_0x5dc873[_0x339b81(0x1f3)]);_0x339b81(0x1d1)===_0x2abfb0[_0x339b81(0x1df)](_0x3995b9)&&(this[_0x339b81(0x200)](_0x4df41a,_0x1a9905[_0x339b81(0x1f3)]),_0x3a8cb7=-0x1,_0x17b840=!0x0);}return _0x17b840;}}function _(_0x36cef5,_0x55c738,_0x2ca346){const _0xdc4fd7=_0x257431;if(_0x2ca346[_0xdc4fd7(0x22b)])return!0x1;const _0x2a7b38=_0x55c738?_0xdc4fd7(0x205):_0xdc4fd7(0x227);return _0x36cef5[_0xdc4fd7(0x1e4)](_0x36cef5[_0xdc4fd7(0x1e6)](_0x2a7b38),_0x2ca346),!0x0;}function I(_0x2973ba,_0x32ce41,_0x32f242){const _0xc64bdb=_0x257431;if(0x0===_0x32ce41[_0xc64bdb(0x1e5)])return 0x0;const _0x52d4cf=_0x2973ba[_0xc64bdb(0x21f)](_0x32f242);for(let _0x1e407c=0x0;_0x1e407c<_0x32ce41[_0xc64bdb(0x1e5)];_0x1e407c++){const _0x97697a=_0x32ce41[_0x1e407c],_0x4c2ca5=_0x2973ba[_0xc64bdb(0x21f)](_0x97697a[_0xc64bdb(0x1f3)]);if(_0xc64bdb(0x226)===_0x52d4cf[_0xc64bdb(0x1df)](_0x4c2ca5))return _0x1e407c;}const _0x55ac8b=_0x32f242[_0xc64bdb(0x225)];let _0x23e093=-0x1;for(let _0x3f4c5e=_0x32ce41[_0xc64bdb(0x1e5)]-0x1;_0x3f4c5e>=0x0;_0x3f4c5e--)if(_0x32ce41[_0x3f4c5e][_0xc64bdb(0x1f3)][_0xc64bdb(0x225)]===_0x55ac8b){_0x23e093=_0x3f4c5e;break;}if(-0x1!==_0x23e093)return _0x23e093+0x1;const _0x2729a1=_0x2973ba[_0xc64bdb(0x1d0)][_0xc64bdb(0x1c9)](),_0x5bf4ab=_0x2729a1[_0xc64bdb(0x1e2)](_0x55ac8b[_0xc64bdb(0x1d6)]),_0x302f06=_0x2729a1[_0x5bf4ab+0x1];if(_0x302f06){for(let _0x188a66=0x0;_0x188a66<_0x32ce41[_0xc64bdb(0x1e5)];_0x188a66++)if(_0x32ce41[_0x188a66][_0xc64bdb(0x1f3)][_0xc64bdb(0x225)][_0xc64bdb(0x1d6)]===_0x302f06)return _0x188a66;}return _0x32ce41[_0xc64bdb(0x1e5)];}
|
|
23
|
+
const _0x3aa6db=_0x3d44;(function(_0x18835c,_0x5cfc10){const _0x5777a7=_0x3d44,_0x36a881=_0x18835c();while(!![]){try{const _0x10dfcb=-parseInt(_0x5777a7(0xa4))/0x1+parseInt(_0x5777a7(0xbe))/0x2+parseInt(_0x5777a7(0x7c))/0x3+-parseInt(_0x5777a7(0xc8))/0x4+parseInt(_0x5777a7(0xd4))/0x5*(-parseInt(_0x5777a7(0xd2))/0x6)+-parseInt(_0x5777a7(0xb8))/0x7+-parseInt(_0x5777a7(0x8a))/0x8*(-parseInt(_0x5777a7(0x72))/0x9);if(_0x10dfcb===_0x5cfc10)break;else _0x36a881['push'](_0x36a881['shift']());}catch(_0x3d1d98){_0x36a881['push'](_0x36a881['shift']());}}}(_0x31f6,0x22fbf));import{Plugin as _0x5ac67c}from'ckeditor5/src/core.js';function _0x31f6(){const _0xaa7047=['_updateFootnotesCounters','footnoteCounter','_handleInsertedFootnoteReference','footnoteRef','527910myobfi','_footnoteRefsTracker','createPositionAt','map','from','paragraph','some','push','model','_footnoteDefsTracker','473808YFoFdm','reference','footnotes.multiBlock','getFootnote','FootnotesTracker','createElement','find','_footnoteDefsContainerTracker','$graveyard','set','12fWEIHF','move','83555ictCoo','length','387gicSHt','isOfficialPlugin','footnotesDefinitions','after','parent','getChanges','change:data','editor','_updateFootnoteRefCounter','setFootnoteFormatter','250692WgfBYx','footnoteInlineContent','_footnotes','singleton','get','enqueueChange','compareWith','reset','before','definition','indexOf','root','setAttribute','unshift','57544JvsWUh','pluginName','has','splice','differ','registerPostFixer','createRangeOn','_ensureFootnotesReferencesHaveProperOrder','insert','childCount','findIndex','config','end','createRangeIn','low','listenTo','add','remove','_handleFootnotesDefinitionsObjectSync','isPremiumPlugin','document','getAttribute','append','_handleFootnoteReferencesChanges','isEqual','_handleRemoveFootnoteReferenceById','236889fiBgfv','_footnotesDefinitions','footnoteId','_ensureFootnotesDefinitionsContainerExists','getChildren','getRootNames','_handleFootnoteDefinitionsChanges','footnoteDefinition','high','_insertEmptyFootnotesDefinitionsContainer','getFootnotes','_footnoteFormatter','getFootnotesDefinitionsObjectElement','min','_sortFootnoteDefinitions','_handleMovedFootnoteReference','getFootnotesFormatter','createPositionBefore','rootName','init','873320SNVWow','_handleFootnotesDefinitionsObjectChanges'];_0x31f6=function(){return _0xaa7047;};return _0x31f6();}import{ModelElementTracker as _0x19113}from'./modelelementtracker.js';export class FootnotesTracker extends _0x5ac67c{[_0x3aa6db(0x7e)]=[];[_0x3aa6db(0xa5)]=null;[_0x3aa6db(0xaf)]=null;[_0x3aa6db(0xcf)];[_0x3aa6db(0xbf)];[_0x3aa6db(0xc7)];static get[_0x3aa6db(0x8b)](){const _0xb9b7a1=_0x3aa6db;return _0xb9b7a1(0xcc);}static get[_0x3aa6db(0x73)](){return!0x0;}static get[_0x3aa6db(0x9d)](){return!0x0;}constructor(_0x48aa3e){const _0x17fdc3=_0x3aa6db;super(_0x48aa3e),this[_0x17fdc3(0xcf)]=new _0x19113(this[_0x17fdc3(0x79)][_0x17fdc3(0xc6)],{'elementName':_0x17fdc3(0x74),'getElementKey':()=>_0x17fdc3(0x7f)}),this[_0x17fdc3(0xbf)]=new _0x19113(this[_0x17fdc3(0x79)][_0x17fdc3(0xc6)],{'elementName':_0x17fdc3(0xbd),'getElementKey':_0xb223b5=>_0xb223b5[_0x17fdc3(0x9f)](_0x17fdc3(0xa6))}),this[_0x17fdc3(0xc7)]=new _0x19113(this[_0x17fdc3(0x79)][_0x17fdc3(0xc6)],{'elementName':_0x17fdc3(0xab),'getElementKey':_0x3fdc58=>_0x3fdc58[_0x17fdc3(0x9f)](_0x17fdc3(0xa6))});}[_0x3aa6db(0xb7)](){const _0x7417cc=_0x3aa6db,{editor:_0x2c383b}=this,{model:_0x42e8a4,data:_0x1f5caf}=_0x2c383b;_0x42e8a4[_0x7417cc(0x9e)][_0x7417cc(0x8f)](_0x523be5=>{const _0x146320=_0x7417cc,_0x330f8a=_0x42e8a4[_0x146320(0x9e)][_0x146320(0x8e)][_0x146320(0x77)]();let _0x1b281c=!0x1;return this[_0x146320(0xb9)](_0x523be5,_0x330f8a)&&(_0x1b281c=!0x0),this[_0x146320(0xaa)](_0x523be5,_0x330f8a)&&(_0x1b281c=!0x0),this[_0x146320(0xa1)](_0x523be5,_0x330f8a)&&(_0x1b281c=!0x0),this[_0x146320(0x91)](_0x523be5)&&(_0x1b281c=!0x0),this[_0x146320(0x9c)](_0x523be5)&&(_0x1b281c=!0x0),this[_0x146320(0xb2)](_0x523be5)&&(_0x1b281c=!0x0),_0x1b281c;}),this[_0x7417cc(0x99)](_0x42e8a4[_0x7417cc(0x9e)],_0x7417cc(0x78),()=>{const _0x3c146c=_0x7417cc;_0x42e8a4[_0x3c146c(0x81)]({'isUndoable':!0x1},_0xb4df2c=>{const _0x5bdce8=_0x3c146c;this[_0x5bdce8(0xa7)](_0xb4df2c);});},{'priority':_0x7417cc(0x98)}),this[_0x7417cc(0x99)](_0x1f5caf,_0x7417cc(0xd1),()=>{const _0x52bcf8=_0x7417cc;this[_0x52bcf8(0x7e)]=[],this[_0x52bcf8(0xcf)][_0x52bcf8(0x83)](),this[_0x52bcf8(0xbf)][_0x52bcf8(0x83)](),this[_0x52bcf8(0xc7)][_0x52bcf8(0x83)]();},{'priority':_0x7417cc(0xac)});}[_0x3aa6db(0xb0)](){const _0x5b77c3=_0x3aa6db;return this[_0x5b77c3(0xa5)];}[_0x3aa6db(0xcb)](_0x4b8d5f){const _0x2cdee4=_0x3aa6db;return this[_0x2cdee4(0x7e)][_0x2cdee4(0xce)](_0x5cb996=>_0x5cb996['id']===_0x4b8d5f)||null;}[_0x3aa6db(0xae)](){const _0x1c482f=_0x3aa6db;return Array[_0x1c482f(0xc2)](this[_0x1c482f(0x7e)]);}[_0x3aa6db(0xb4)](){const _0x1c9595=_0x3aa6db;return this[_0x1c9595(0xaf)];}[_0x3aa6db(0x7b)](_0x548c3d){const _0x317f9b=_0x3aa6db;this[_0x317f9b(0xaf)]=_0x548c3d;}[_0x3aa6db(0xba)](_0x38d430,_0x4e8452=0x0){const _0x190bcb=_0x3aa6db;let _0x5eff73=!0x1;for(let _0x58fb63=_0x4e8452;_0x58fb63<this[_0x190bcb(0x7e)][_0x190bcb(0xd5)];_0x58fb63++)this[_0x190bcb(0x7a)](_0x38d430,_0x58fb63)&&(_0x5eff73=!0x0);return _0x5eff73;}[_0x3aa6db(0xad)](_0x29f43e,_0x4f1e96){const _0x59fd07=_0x3aa6db,_0x5c36f8=_0x29f43e[_0x59fd07(0xcd)](_0x59fd07(0x74),{});return _0x29f43e[_0x59fd07(0xa0)](_0x5c36f8,_0x4f1e96),this[_0x59fd07(0xa5)]=_0x5c36f8,_0x5c36f8;}[_0x3aa6db(0xa7)](_0x44f555){const _0x19ffe3=_0x3aa6db;if(!this[_0x19ffe3(0x7e)][_0x19ffe3(0xd5)]||this[_0x19ffe3(0xa5)])return;const _0x386de3=this[_0x19ffe3(0x7e)][0x0][_0x19ffe3(0xc9)][_0x19ffe3(0x87)],_0x2415c1=this[_0x19ffe3(0xad)](_0x44f555,_0x386de3);for(const _0x3d75ef of this[_0x19ffe3(0x7e)])_0x3d75ef[_0x19ffe3(0x85)][_0x19ffe3(0x76)]||_0x44f555[_0x19ffe3(0x92)](_0x3d75ef[_0x19ffe3(0x85)],_0x2415c1,_0x19ffe3(0x96));this[_0x19ffe3(0xba)](_0x44f555);}[_0x3aa6db(0xb9)](_0x1a36c2,_0x3670a2){const _0x51770b=_0x3aa6db;let _0x1f28d3=!0x1;const {inserted:_0x3156aa,removed:_0x2696af,moved:_0x491883}=this[_0x51770b(0xcf)][_0x51770b(0x77)](_0x3670a2);if(_0x491883[_0x51770b(0xd5)]&&(this[_0x51770b(0xa5)]=_0x491883[0x0]),_0x3156aa[_0x51770b(0xd5)]){if(_0x3156aa[_0x51770b(0xd5)]>0x1||this[_0x51770b(0xa5)]&&_0x3156aa[_0x51770b(0xc4)](_0xf53db0=>_0xf53db0!==this[_0x51770b(0xa5)])){const _0x2b9cb4=_0x1a36c2[_0x51770b(0xcd)](_0x51770b(0x74),{}),_0x4db876=[];this[_0x51770b(0xa5)]&&_0x4db876[_0x51770b(0xc5)](this[_0x51770b(0xa5)]),_0x4db876[_0x51770b(0xc5)](..._0x3156aa),_0x1a36c2[_0x51770b(0x92)](_0x2b9cb4,_0x4db876[0x0],_0x51770b(0x84));for(const _0x558254 of _0x4db876)_0x1a36c2[_0x51770b(0xd3)](_0x1a36c2[_0x51770b(0x97)](_0x558254),_0x1a36c2[_0x51770b(0xc0)](_0x2b9cb4,_0x51770b(0x96))),_0x1a36c2[_0x51770b(0x9b)](_0x558254);this[_0x51770b(0xa5)]=_0x2b9cb4,this[_0x51770b(0xba)](_0x1a36c2),_0x1f28d3=!0x0;}else this[_0x51770b(0xa5)]=_0x3156aa[0x0];}if(_0x2696af[_0x51770b(0xd5)]&&_0x51770b(0xd0)===this[_0x51770b(0xa5)]?.[_0x51770b(0x87)][_0x51770b(0xb6)]){for(const _0x1e2f04 of this[_0x51770b(0x7e)])_0x1a36c2[_0x51770b(0x9b)](_0x1e2f04[_0x51770b(0xc9)]),_0x1f28d3=!0x0;this[_0x51770b(0x7e)]=[],this[_0x51770b(0xa5)]=null;}return _0x1f28d3;}[_0x3aa6db(0xaa)](_0x2b4e12,_0x54b18f){const _0x1d2f0a=_0x3aa6db;let _0x317bb5=!0x1;const _0x3d6ca2=this[_0x1d2f0a(0x79)][_0x1d2f0a(0x95)][_0x1d2f0a(0x80)](_0x1d2f0a(0xca)),{inserted:_0x5f2f35,moved:_0x4da5fa}=this[_0x1d2f0a(0xc7)][_0x1d2f0a(0x77)](_0x54b18f);for(const _0x389483 of[..._0x4da5fa,..._0x5f2f35]){const _0x4ad476=_0x389483[_0x1d2f0a(0x9f)](_0x1d2f0a(0xa6)),_0x470526=this[_0x1d2f0a(0xcb)](_0x4ad476);_0x470526&&(_0x470526[_0x1d2f0a(0x85)]=_0x389483),_(_0x2b4e12,_0x3d6ca2,_0x389483)&&(_0x317bb5=!0x0);}return _0x317bb5;}[_0x3aa6db(0xa1)](_0x5f1c25,_0x17085e){const _0x588bf0=_0x3aa6db;let _0x3e4561=!0x1;const {removed:_0x25b167,inserted:_0x55f6b5,moved:_0x10969f}=this[_0x588bf0(0xbf)][_0x588bf0(0x77)](_0x17085e);for(const _0x395cb2 of _0x25b167)this[_0x588bf0(0xa3)](_0x5f1c25,_0x395cb2)&&(_0x3e4561=!0x0);for(const _0x1b1c3c of _0x55f6b5)this[_0x588bf0(0xbc)](_0x5f1c25,_0x1b1c3c)&&(_0x3e4561=!0x0);for(const _0x3df54 of _0x10969f)this[_0x588bf0(0xb3)](_0x5f1c25,_0x3df54)&&(_0x3e4561=!0x0);return _0x3e4561;}[_0x3aa6db(0x9c)](_0x4bc87c){const _0x372e51=_0x3aa6db;if(!this[_0x372e51(0xa5)])return!0x1;let _0xf13de5=!0x1;if(this[_0x372e51(0xa5)][_0x372e51(0x93)]!==this[_0x372e51(0x7e)][_0x372e51(0xd5)]){const _0x35c7b5=[];for(const _0x122b2e of this[_0x372e51(0xa5)][_0x372e51(0xa8)]()){const _0x3fa1c0=_0x122b2e[_0x372e51(0x9f)](_0x372e51(0xa6));this[_0x372e51(0xcb)](_0x3fa1c0)||(_0x35c7b5[_0x372e51(0x89)](_0x122b2e),_0xf13de5=!0x0);}for(const _0x5713c0 of _0x35c7b5)_0x4bc87c[_0x372e51(0x9b)](_0x5713c0);}const _0x197641=new Set(),_0x6d0808=[];for(const _0x53a79e of this[_0x372e51(0xa5)][_0x372e51(0xa8)]()){const _0x400b72=_0x53a79e[_0x372e51(0x9f)](_0x372e51(0xa6));_0x197641[_0x372e51(0x8c)](_0x400b72)?(_0x6d0808[_0x372e51(0x89)](_0x53a79e),_0xf13de5=!0x0):_0x197641[_0x372e51(0x9a)](_0x400b72);}for(const _0x3f42bc of _0x6d0808)_0x4bc87c[_0x372e51(0x9b)](_0x3f42bc);return this[_0x372e51(0xa5)][_0x372e51(0x93)]||(_0x4bc87c[_0x372e51(0x9b)](this[_0x372e51(0xa5)]),this[_0x372e51(0xa5)]=null,_0xf13de5=!0x0),_0xf13de5;}[_0x3aa6db(0xbc)](_0x375959,_0x123e04){const _0x4c0ff7=_0x3aa6db;if(this[_0x4c0ff7(0x7e)][_0x4c0ff7(0xce)](_0x1e0ab8=>_0x1e0ab8[_0x4c0ff7(0xc9)]===_0x123e04))return!0x1;let _0x3f9ff6=!0x1;const _0x1652e0=_0x123e04[_0x4c0ff7(0x9f)](_0x4c0ff7(0xa6)),_0x189ec8=this[_0x4c0ff7(0x7e)][_0x4c0ff7(0x94)](_0x293de0=>_0x293de0['id']===_0x1652e0);-0x1!==_0x189ec8&&(_0x375959[_0x4c0ff7(0x9b)](this[_0x4c0ff7(0x7e)][_0x189ec8][_0x4c0ff7(0xc9)]),this[_0x4c0ff7(0x7e)][_0x4c0ff7(0x8d)](_0x189ec8,0x1),_0x3f9ff6=!0x0);let _0x188339=this[_0x4c0ff7(0xa5)]?function(_0x41d912,_0x54259e){const _0x2e4eca=_0x4c0ff7;for(const _0x399064 of _0x41d912[_0x2e4eca(0xa8)]())if(_0x399064[_0x2e4eca(0x9f)](_0x2e4eca(0xa6))===_0x54259e)return _0x399064;return null;}(this[_0x4c0ff7(0xa5)],_0x1652e0):null;_0x188339||(_0x188339=_0x375959[_0x4c0ff7(0xcd)](_0x4c0ff7(0xab),{'footnoteId':_0x1652e0}),this[_0x4c0ff7(0xa5)]&&(_0x375959[_0x4c0ff7(0x92)](_0x188339,this[_0x4c0ff7(0xa5)],_0x4c0ff7(0x96)),_0x3f9ff6=!0x0));const _0x1aed53={'id':_0x1652e0,'reference':_0x123e04,'definition':_0x188339},_0x49bf7d=I(this[_0x4c0ff7(0x79)][_0x4c0ff7(0xc6)],this[_0x4c0ff7(0x7e)],_0x123e04);this[_0x4c0ff7(0x7e)][_0x4c0ff7(0x8d)](_0x49bf7d,0x0,_0x1aed53);let _0x382b40=_0x49bf7d;return-0x1!==_0x189ec8&&(_0x382b40=Math[_0x4c0ff7(0xb1)](_0x49bf7d,_0x189ec8)),this[_0x4c0ff7(0xba)](_0x375959,_0x382b40)&&(_0x3f9ff6=!0x0),_0x3f9ff6;}[_0x3aa6db(0xa3)](_0x36fba4,_0x56da10){const _0x5434fc=_0x3aa6db,_0xe83983=this[_0x5434fc(0x7e)][_0x5434fc(0x94)](_0x8aaa2b=>_0x8aaa2b['id']===_0x56da10);if(-0x1===_0xe83983)return!0x1;let _0xf01660=!0x1;const _0x477515=this[_0x5434fc(0x7e)][_0xe83983];return _0x5434fc(0xd0)!==_0x477515[_0x5434fc(0x85)][_0x5434fc(0x87)][_0x5434fc(0xb6)]&&(_0x36fba4[_0x5434fc(0x9b)](_0x477515[_0x5434fc(0x85)]),_0xf01660=!0x0),this[_0x5434fc(0x7e)][_0x5434fc(0x8d)](_0xe83983,0x1),this[_0x5434fc(0xba)](_0x36fba4,_0xe83983)&&(_0xf01660=!0x0),_0xf01660;}[_0x3aa6db(0xb3)](_0x1c330e,_0x1eda9b){const _0xeb08c1=_0x3aa6db,_0x17ea1b=_0x1eda9b[_0xeb08c1(0x9f)](_0xeb08c1(0xa6)),_0x5019ff=this[_0xeb08c1(0x7e)][_0xeb08c1(0x94)](_0xf3ab59=>_0xf3ab59['id']===_0x17ea1b),_0x3020cd=this[_0xeb08c1(0x7e)][_0x5019ff];let _0x5615f9=!0x1;_0x3020cd[_0xeb08c1(0xc9)]=_0x1eda9b,this[_0xeb08c1(0x7e)][_0xeb08c1(0x8d)](_0x5019ff,0x1);const _0x361170=I(this[_0xeb08c1(0x79)][_0xeb08c1(0xc6)],this[_0xeb08c1(0x7e)],_0x1eda9b);return this[_0xeb08c1(0x7e)][_0xeb08c1(0x8d)](_0x361170,0x0,_0x3020cd),this[_0xeb08c1(0xba)](_0x1c330e,Math[_0xeb08c1(0xb1)](_0x5019ff,_0x361170))&&(_0x5615f9=!0x0),_0x5615f9;}[_0x3aa6db(0x7a)](_0x3c5f6f,_0x54c7d3){const _0x259353=_0x3aa6db;if(!this[_0x259353(0xa5)])return!0x1;const _0xada023=this[_0x259353(0x7e)][_0x54c7d3];let _0x4d93fc;return _0x4d93fc=this[_0x259353(0xaf)]?this[_0x259353(0xaf)]({'footnote':_0xada023,'container':this[_0x259353(0xa5)],'digits':String(this[_0x259353(0x7e)][_0x259353(0xd5)])[_0x259353(0xd5)],'value':_0x54c7d3+0x1}):String(_0x54c7d3+0x1),_0xada023[_0x259353(0xc9)][_0x259353(0x9f)](_0x259353(0xbb))!=_0x4d93fc&&(_0x3c5f6f[_0x259353(0x88)](_0x259353(0xbb),_0x4d93fc,_0xada023[_0x259353(0xc9)]),!0x0);}[_0x3aa6db(0xb2)](_0x400713){const _0x447a85=_0x3aa6db;if(!this[_0x447a85(0xa5)]||this[_0x447a85(0x7e)][_0x447a85(0xd5)]<0x2)return!0x1;if(function(_0x50c77d,_0x1e968b){const _0x217ce8=_0x447a85;if(_0x50c77d[_0x217ce8(0xd5)]!==_0x1e968b[_0x217ce8(0xd5)])return!0x1;for(let _0x1d2245=0x0;_0x1d2245<_0x50c77d[_0x217ce8(0xd5)];_0x1d2245++)if(_0x50c77d[_0x1d2245]!==_0x1e968b[_0x1d2245])return!0x1;return!0x0;}(this[_0x447a85(0x7e)][_0x447a85(0xc1)](_0x2111c4=>_0x2111c4['id']),Array[_0x447a85(0xc2)](this[_0x447a85(0xa5)][_0x447a85(0xa8)]())[_0x447a85(0xc1)](_0x12a8f7=>_0x12a8f7[_0x447a85(0x9f)](_0x447a85(0xa6)))))return!0x1;let _0x5a9aa5=!0x1;for(let _0x1ab8f8=0x0;_0x1ab8f8<this[_0x447a85(0x7e)][_0x447a85(0xd5)];_0x1ab8f8++){const _0x1d34f4=this[_0x447a85(0x7e)][_0x1ab8f8],_0x4aa531=_0x400713[_0x447a85(0xb5)](_0x1d34f4[_0x447a85(0x85)]),_0x4da344=_0x400713[_0x447a85(0xc0)](this[_0x447a85(0xa5)],_0x1ab8f8);_0x4aa531[_0x447a85(0xa2)](_0x4da344)||(_0x400713[_0x447a85(0xd3)](_0x400713[_0x447a85(0x90)](_0x1d34f4[_0x447a85(0x85)]),_0x4da344),_0x5a9aa5=!0x0);}return _0x5a9aa5;}[_0x3aa6db(0x91)](_0x1c2361){const _0x44c519=_0x3aa6db;if(!this[_0x44c519(0x7e)][_0x44c519(0xd5)])return!0x1;const {model:_0x3ffb67}=this[_0x44c519(0x79)];let _0x4e9cdf=!0x1;for(let _0x5dca3a=0x0;_0x5dca3a<this[_0x44c519(0x7e)][_0x44c519(0xd5)]-0x1;_0x5dca3a++){const _0x2ad63=this[_0x44c519(0x7e)][_0x5dca3a],_0x216545=this[_0x44c519(0x7e)][_0x5dca3a+0x1],_0x12bc11=_0x3ffb67[_0x44c519(0xb5)](_0x2ad63[_0x44c519(0xc9)]),_0x160353=_0x3ffb67[_0x44c519(0xb5)](_0x216545[_0x44c519(0xc9)]);_0x44c519(0x75)===_0x12bc11[_0x44c519(0x82)](_0x160353)&&(this[_0x44c519(0xb3)](_0x1c2361,_0x2ad63[_0x44c519(0xc9)]),_0x5dca3a=-0x1,_0x4e9cdf=!0x0);}return _0x4e9cdf;}}function _0x3d44(_0x48b757,_0x40e270){const _0x31f67e=_0x31f6();return _0x3d44=function(_0x3d44ef,_0x1f0d9d){_0x3d44ef=_0x3d44ef-0x72;let _0x41bc22=_0x31f67e[_0x3d44ef];return _0x41bc22;},_0x3d44(_0x48b757,_0x40e270);}function _(_0x7cec3e,_0x5ab537,_0xb2bea8){const _0x3a5b16=_0x3aa6db;if(_0xb2bea8[_0x3a5b16(0x93)])return!0x1;const _0x5ebae0=_0x5ab537?_0x3a5b16(0xc3):_0x3a5b16(0x7d);return _0x7cec3e[_0x3a5b16(0x92)](_0x7cec3e[_0x3a5b16(0xcd)](_0x5ebae0),_0xb2bea8),!0x0;}function I(_0x4b6e0a,_0x1c8597,_0x4c5b9b){const _0x56dbef=_0x3aa6db;if(0x0===_0x1c8597[_0x56dbef(0xd5)])return 0x0;const _0x4bd142=_0x4b6e0a[_0x56dbef(0xb5)](_0x4c5b9b);for(let _0x3df626=0x0;_0x3df626<_0x1c8597[_0x56dbef(0xd5)];_0x3df626++){const _0x210fd4=_0x1c8597[_0x3df626],_0x45c469=_0x4b6e0a[_0x56dbef(0xb5)](_0x210fd4[_0x56dbef(0xc9)]);if(_0x56dbef(0x84)===_0x4bd142[_0x56dbef(0x82)](_0x45c469))return _0x3df626;}const _0x50d512=_0x4c5b9b[_0x56dbef(0x87)];let _0x283f12=-0x1;for(let _0x3a1cd1=_0x1c8597[_0x56dbef(0xd5)]-0x1;_0x3a1cd1>=0x0;_0x3a1cd1--)if(_0x1c8597[_0x3a1cd1][_0x56dbef(0xc9)][_0x56dbef(0x87)]===_0x50d512){_0x283f12=_0x3a1cd1;break;}if(-0x1!==_0x283f12)return _0x283f12+0x1;const _0x483f1d=_0x4b6e0a[_0x56dbef(0x9e)][_0x56dbef(0xa9)](),_0x1a0ff5=_0x483f1d[_0x56dbef(0x86)](_0x50d512[_0x56dbef(0xb6)]),_0x1f235a=_0x483f1d[_0x1a0ff5+0x1];if(_0x1f235a){for(let _0x11d4cd=0x0;_0x11d4cd<_0x1c8597[_0x56dbef(0xd5)];_0x11d4cd++)if(_0x1c8597[_0x11d4cd][_0x56dbef(0xc9)][_0x56dbef(0x87)][_0x56dbef(0xb6)]===_0x1f235a)return _0x11d4cd;}return _0x1c8597[_0x56dbef(0xd5)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x37fca1,MenuBarMenuListItemButtonView as _0x3eb7a8}from'ckeditor5/src/ui.js';import{Plugin as _0x434d54}from'ckeditor5/src/core.js';import{IconFootnote as _0x12e143}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x434d54{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cdc2d}=this,{componentFactory:_0x2dd19a}=_0x5cdc2d['ui'];_0x2dd19a['add']('insertFootnote',x(_0x5cdc2d,_0x37fca1)),_0x2dd19a['add']('menuBar:insertFootnote',x(_0x5cdc2d,_0x3eb7a8)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ea045=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24afc;for(const _0x174738 in _0x1ea045){const _0x40f7c3=_0x174738,_0x37a9bf=_0x1ea045[_0x40f7c3];if('footnotesLicenseKeyValid'==_0x37a9bf||'footnotesLicenseKeyInvalid'==_0x37a9bf||'footnotesLicenseKeyExpired'==_0x37a9bf||'footnotesLicenseKeyDomainLimit'==_0x37a9bf||'footnotesLicenseKeyNotAllowed'==_0x37a9bf||'footnotesLicenseKeyEvaluationLimit'==_0x37a9bf||'footnotesLicenseKeyTrialLimit'==_0x37a9bf||'footnotesLicenseKeyUsageLimit'==_0x37a9bf){delete _0x1ea045[_0x40f7c3],_0x24afc=_0x37a9bf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x24afc&&_0x1ea045['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x24afc&&_0x1ea045['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x24afc&&_0x1ea045['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x24afc&&_0x1ea045['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x24afc&&_0x1ea045['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x24afc&&_0x1ea045['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x24afc&&_0x1ea045['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x47c75e,_0xffe67){const _0x5c598=_0x47c75e['commands']['get']('insertFootnote');return _0x15b55e=>{const {t:t}=_0x15b55e,_0x2593b4=new _0xffe67(_0x15b55e),_0x309810=_0x2593b4 instanceof _0x3eb7a8;return _0x2593b4['bind']('isEnabled')['to'](_0x5c598,'isEnabled'),_0x2593b4['set']({'label':t(_0x309810?'Footnote':'Insert\x20footnote'),'icon':_0x12e143,'tooltip':!0x0}),_0x2593b4['on']('execute',()=>{_0x5c598['execute'](),_0x47c75e['editing']['view']['focus']();}),_0x2593b4;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2821eb,_0x5ee48f){var _0x4a7515=_0x1632,_0xd1c417=_0x2821eb();while(!![]){try{var _0x264828=parseInt(_0x4a7515(0x7f))/0x1*(-parseInt(_0x4a7515(0x80))/0x2)+parseInt(_0x4a7515(0x7c))/0x3*(parseInt(_0x4a7515(0x7d))/0x4)+parseInt(_0x4a7515(0x76))/0x5+parseInt(_0x4a7515(0x7a))/0x6*(-parseInt(_0x4a7515(0x7b))/0x7)+parseInt(_0x4a7515(0x7e))/0x8+-parseInt(_0x4a7515(0x78))/0x9+-parseInt(_0x4a7515(0x79))/0xa*(-parseInt(_0x4a7515(0x77))/0xb);if(_0x264828===_0x5ee48f)break;else _0xd1c417['push'](_0xd1c417['shift']());}catch(_0x2a59ad){_0xd1c417['push'](_0xd1c417['shift']());}}}(_0x2192,0x30cc4));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';function _0x2192(){var _0x5d0ffc=['10wXxEqk','6lNlDfM','1666840GlxjfH','2904QLMVJo','1288PhdGTq','2575680WmqHUv','13909UQGmuQ','50VPLett','636205YKwAUY','936562GvrpKj','542862xzKuhL'];_0x2192=function(){return _0x5d0ffc;};return _0x2192();}export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';function _0x1632(_0x10448d,_0xd19038){var _0x219219=_0x2192();return _0x1632=function(_0x1632ae,_0x3fd9e7){_0x1632ae=_0x1632ae-0x76;var _0x18364c=_0x219219[_0x1632ae];return _0x18364c;},_0x1632(_0x10448d,_0xd19038);}export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4e2ef3=_0x1b96;function _0x4c20(){const _0x33aafa=['insert','1945AgVQHQ','1571867nuWCeA','element','getElementKey','root','_getElementKey','attributes','78psWvqX','nodeAfter','94956PQReOk','slice','delete','$text','values','1131rUKeyq','set','_trackedElements','_elementName','push','remove','has','1334068aBZBBr','rootName','3yKOTSB','136146pLNZAW','24fZWIWU','type','_model','10FzsBuX','3722616NZYBNB','reset','position','clear','get','getChanges','from','$graveyard','add','1LBKUme','getItems','length','name','flat','elementName','createRangeOn','1036581UHSdHi'];_0x4c20=function(){return _0x33aafa;};return _0x4c20();}function _0x1b96(_0x501489,_0x537dea){const _0x4c2083=_0x4c20();return _0x1b96=function(_0x1b96ea,_0x4c6e04){_0x1b96ea=_0x1b96ea-0x69;let _0x40d91d=_0x4c2083[_0x1b96ea];return _0x40d91d;},_0x1b96(_0x501489,_0x537dea);}(function(_0x559ab4,_0x4f875d){const _0x41313c=_0x1b96,_0x410a49=_0x559ab4();while(!![]){try{const _0x4f1bc0=-parseInt(_0x41313c(0x90))/0x1*(-parseInt(_0x41313c(0x82))/0x2)+parseInt(_0x41313c(0x81))/0x3*(-parseInt(_0x41313c(0x7f))/0x4)+parseInt(_0x41313c(0x6a))/0x5*(-parseInt(_0x41313c(0x71))/0x6)+parseInt(_0x41313c(0x97))/0x7*(-parseInt(_0x41313c(0x83))/0x8)+parseInt(_0x41313c(0x87))/0x9+parseInt(_0x41313c(0x86))/0xa*(-parseInt(_0x41313c(0x6b))/0xb)+-parseInt(_0x41313c(0x73))/0xc*(-parseInt(_0x41313c(0x78))/0xd);if(_0x4f1bc0===_0x4f875d)break;else _0x410a49['push'](_0x410a49['shift']());}catch(_0x147431){_0x410a49['push'](_0x410a49['shift']());}}}(_0x4c20,0x3bab8));export class ModelElementTracker{[_0x4e2ef3(0x85)];[_0x4e2ef3(0x7b)];[_0x4e2ef3(0x6f)];[_0x4e2ef3(0x7a)]=new Map();constructor(_0x30b4af,_0x2037ca){const _0x2f64b7=_0x4e2ef3;this[_0x2f64b7(0x85)]=_0x30b4af,this[_0x2f64b7(0x7b)]=_0x2037ca[_0x2f64b7(0x95)],this[_0x2f64b7(0x6f)]=_0x2037ca[_0x2f64b7(0x6d)];}[_0x4e2ef3(0x88)](){const _0x1f165b=_0x4e2ef3;this[_0x1f165b(0x7a)][_0x1f165b(0x8a)]();}[_0x4e2ef3(0x8c)](_0x101d5d){const _0x50997e=_0x4e2ef3,_0x30923c=new Set(),_0xc3a745=new Map();for(const _0x211de3 of _0x101d5d){if(_0x50997e(0x69)===_0x211de3[_0x50997e(0x84)]&&_0x50997e(0x76)!==_0x211de3[_0x50997e(0x93)]&&_0x211de3[_0x50997e(0x89)][_0x50997e(0x72)]){const _0x425104=this[_0x50997e(0x85)][_0x50997e(0x96)](_0x211de3[_0x50997e(0x89)][_0x50997e(0x72)]);for(const _0xec0d78 of _0x425104[_0x50997e(0x91)]()){if(!_0xec0d78['is'](_0x50997e(0x6c),this[_0x50997e(0x7b)]))continue;const _0x1136a5=this[_0x50997e(0x6f)](_0xec0d78);_0xc3a745[_0x50997e(0x7e)](_0x1136a5)||_0xc3a745[_0x50997e(0x79)](_0x1136a5,[]),_0xc3a745[_0x50997e(0x8b)](_0x1136a5)[_0x50997e(0x7c)](_0xec0d78);}}if(_0x50997e(0x7d)===_0x211de3[_0x50997e(0x84)]&&_0x211de3[_0x50997e(0x93)]===this[_0x50997e(0x7b)]){const _0x4b7a07=this[_0x50997e(0x6f)]({'getAttribute':_0x47cab7=>_0x211de3[_0x50997e(0x70)][_0x50997e(0x8b)](_0x47cab7)});_0x30923c[_0x50997e(0x8f)](_0x4b7a07);}}for(const [_0x1327b9,_0x4644eb]of this[_0x50997e(0x7a)])_0x50997e(0x8e)===_0x4644eb[_0x50997e(0x6e)][_0x50997e(0x80)]&&_0x30923c[_0x50997e(0x8f)](_0x1327b9);for(const _0x18f8ad of _0x30923c)this[_0x50997e(0x7a)][_0x50997e(0x75)](_0x18f8ad);for(const [_0x15744d,_0x214c1a]of _0xc3a745)this[_0x50997e(0x7a)][_0x50997e(0x79)](_0x15744d,_0x214c1a[_0x214c1a[_0x50997e(0x92)]-0x1]);const _0x4c6a4e=new Set();for(const [_0x394e2e,_0x344794]of _0xc3a745)_0x30923c[_0x50997e(0x7e)](_0x394e2e)&&(_0x4c6a4e[_0x50997e(0x8f)](_0x344794[0x0]),_0x344794[_0x50997e(0x92)]>0x1?_0xc3a745[_0x50997e(0x79)](_0x394e2e,_0x344794[_0x50997e(0x74)](0x1)):_0xc3a745[_0x50997e(0x75)](_0x394e2e),_0x30923c[_0x50997e(0x75)](_0x394e2e));return{'removed':Array[_0x50997e(0x8d)](_0x30923c),'inserted':Array[_0x50997e(0x8d)](_0xc3a745[_0x50997e(0x77)]())[_0x50997e(0x94)](),'moved':Array[_0x50997e(0x8d)](_0x4c6a4e)};}}
|