@ckeditor/ckeditor5-footnotes 48.0.0-alpha.10 → 48.0.0-alpha.11
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/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x15cc4e,Command as _0xd277b4}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x8ca209,isWidget as _0x558687,toWidgetEditable as _0x163139,WidgetToolbarRepository as _0x46c8d2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x74303e,logWarning as _0x4197fa,FocusTracker as _0x5ee4a3,KeystrokeHandler as _0x3f7955,global as _0x56e7e3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x17f808,ClickObserver as _0x2d3596}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x50fe1e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x61b96a,ButtonView as _0x380163,View as _0xf57592,ViewCollection as _0x14d903,FocusCycler as _0x5e70b1,addKeyboardHandlingForGrid as _0x239e76,CollapsibleView as _0x3c810a,LabeledFieldView as _0x5cef59,createLabeledInputNumber as _0x4ffa9e,ContextualBalloon as _0x1ce94d,BalloonPanelView as _0x4fb591,createDropdown as _0x509316}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x58063f,IconListStyleDecimal as _0x3aa13c,IconListStyleDecimalLeadingZero as _0x614e4e,IconListStyleLowerRoman as _0x1926fb,IconListStyleUpperRoman as _0x1b542b,IconListStyleLowerLatin as _0x55f0a4,IconListStyleUpperLatin as _0x9a6442,IconListStyleArabicIndic as _0x3094ad}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0xd6f06a,_0x4a9895){this['_model']=_0xd6f06a,this['_elementName']=_0x4a9895['elementName'],this['_getElementKey']=_0x4a9895['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x475e38){const _0x233a01=new Set(),_0x381558=new Map();for(const _0x8691e8 of _0x475e38){if('insert'===_0x8691e8['type']&&'$text'!==_0x8691e8['name']&&_0x8691e8['position']['nodeAfter']){const _0xa4560b=this['_model']['createRangeOn'](_0x8691e8['position']['nodeAfter']);for(const _0x223771 of _0xa4560b['getItems']()){if(!_0x223771['is']('element',this['_elementName']))continue;const _0x4f4519=this['_getElementKey'](_0x223771);_0x381558['has'](_0x4f4519)||_0x381558['set'](_0x4f4519,[]),_0x381558['get'](_0x4f4519)['push'](_0x223771);}}if('remove'===_0x8691e8['type']&&_0x8691e8['name']===this['_elementName']){const _0x50201e=this['_getElementKey']({'getAttribute':_0x1a2180=>_0x8691e8['attributes']['get'](_0x1a2180)});_0x233a01['add'](_0x50201e);}}for(const [_0x510e61,_0x2d4d0e]of this['_trackedElements'])'$graveyard'===_0x2d4d0e['root']['rootName']&&_0x233a01['add'](_0x510e61);for(const _0xef4066 of _0x233a01)this['_trackedElements']['delete'](_0xef4066);for(const [_0x109e35,_0x4060d1]of _0x381558)this['_trackedElements']['set'](_0x109e35,_0x4060d1[_0x4060d1['length']-0x1]);const _0x5ac5d5=new Set();for(const [_0x3090da,_0x301f98]of _0x381558)_0x233a01['has'](_0x3090da)&&(_0x5ac5d5['add'](_0x301f98[0x0]),_0x301f98['length']>0x1?_0x381558['set'](_0x3090da,_0x301f98['slice'](0x1)):_0x381558['delete'](_0x3090da),_0x233a01['delete'](_0x3090da));return{'removed':Array['from'](_0x233a01),'inserted':Array['from'](_0x381558['values']())['flat'](),'moved':Array['from'](_0x5ac5d5)};}}class K extends _0x15cc4e{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11a37c){super(_0x11a37c),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x531d8f=>_0x531d8f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x46cffc=>_0x46cffc['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4f7128}=this,{model:_0x35e5f6,data:_0x3fbf0c}=_0x4f7128;_0x35e5f6['document']['registerPostFixer'](_0x18acec=>{const _0x14a41d=_0x35e5f6['document']['differ']['getChanges']();let _0x5d00fa=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x18acec,_0x14a41d)&&(_0x5d00fa=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x18acec,_0x14a41d)&&(_0x5d00fa=!0x0),this['_handleFootnoteReferencesChanges'](_0x18acec,_0x14a41d)&&(_0x5d00fa=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x18acec)&&(_0x5d00fa=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x18acec)&&(_0x5d00fa=!0x0),this['_sortFootnoteDefinitions'](_0x18acec)&&(_0x5d00fa=!0x0),_0x5d00fa;}),this['listenTo'](_0x35e5f6['document'],'change:data',()=>{_0x35e5f6['enqueueChange']({'isUndoable':!0x1},_0x157e6a=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x157e6a);});},{'priority':'low'}),this['listenTo'](_0x3fbf0c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x28e05d){return this['_footnotes']['find'](_0x4dcc9f=>_0x4dcc9f['id']===_0x28e05d)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1f16bc){this['_footnoteFormatter']=_0x1f16bc;}['_updateFootnotesCounters'](_0x3464cb,_0x93693c=0x0){let _0x2d593a=!0x1;for(let _0x5ae78d=_0x93693c;_0x5ae78d<this['_footnotes']['length'];_0x5ae78d++)this['_updateFootnoteRefCounter'](_0x3464cb,_0x5ae78d)&&(_0x2d593a=!0x0);return _0x2d593a;}['_insertEmptyFootnotesDefinitionsContainer'](_0x10a59e,_0x5a692b){const _0x477c35=_0x10a59e['createElement']('footnotesDefinitions',{});return _0x10a59e['append'](_0x477c35,_0x5a692b),this['_footnotesDefinitions']=_0x477c35,_0x477c35;}['_ensureFootnotesDefinitionsContainerExists'](_0x562369){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2e2060=this['_footnotes'][0x0]['reference']['root'],_0x39510e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x562369,_0x2e2060);for(const _0x4c14b8 of this['_footnotes'])_0x4c14b8['definition']['parent']||_0x562369['insert'](_0x4c14b8['definition'],_0x39510e,'end');this['_updateFootnotesCounters'](_0x562369);}['_handleFootnotesDefinitionsObjectChanges'](_0xa33d22,_0x2beeac){let _0x5cf70c=!0x1;const {inserted:_0x46c8b0,removed:_0x429dbd,moved:_0x27f57c}=this['_footnoteDefsContainerTracker']['getChanges'](_0x2beeac);if(_0x27f57c['length']&&(this['_footnotesDefinitions']=_0x27f57c[0x0]),_0x46c8b0['length']){if(_0x46c8b0['length']>0x1||this['_footnotesDefinitions']&&_0x46c8b0['some'](_0xea2ca8=>_0xea2ca8!==this['_footnotesDefinitions'])){const _0x2067fd=_0xa33d22['createElement']('footnotesDefinitions',{}),_0x28b59d=[];this['_footnotesDefinitions']&&_0x28b59d['push'](this['_footnotesDefinitions']),_0x28b59d['push'](..._0x46c8b0),_0xa33d22['insert'](_0x2067fd,_0x28b59d[0x0],'before');for(const _0xc6f9fb of _0x28b59d)_0xa33d22['move'](_0xa33d22['createRangeIn'](_0xc6f9fb),_0xa33d22['createPositionAt'](_0x2067fd,'end')),_0xa33d22['remove'](_0xc6f9fb);this['_footnotesDefinitions']=_0x2067fd,this['_updateFootnotesCounters'](_0xa33d22),_0x5cf70c=!0x0;}else this['_footnotesDefinitions']=_0x46c8b0[0x0];}if(_0x429dbd['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3c47d6 of this['_footnotes'])_0xa33d22['remove'](_0x3c47d6['reference']),_0x5cf70c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5cf70c;}['_handleFootnoteDefinitionsChanges'](_0x14551b,_0x4f52c3){let _0x38428a=!0x1;const _0x25e957=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x1d4a38,moved:_0x3db16f}=this['_footnoteDefsTracker']['getChanges'](_0x4f52c3);for(const _0x4bc7d3 of[..._0x3db16f,..._0x1d4a38]){const _0x386747=_0x4bc7d3['getAttribute']('footnoteId'),_0x4c6103=this['getFootnote'](_0x386747);_0x4c6103&&(_0x4c6103['definition']=_0x4bc7d3),j(_0x14551b,_0x25e957,_0x4bc7d3)&&(_0x38428a=!0x0);}return _0x38428a;}['_handleFootnoteReferencesChanges'](_0x1bdedf,_0x12e247){let _0x4a81df=!0x1;const {removed:_0x191b37,inserted:_0x3d9f74,moved:_0x329df4}=this['_footnoteRefsTracker']['getChanges'](_0x12e247);for(const _0x345543 of _0x191b37)this['_handleRemoveFootnoteReferenceById'](_0x1bdedf,_0x345543)&&(_0x4a81df=!0x0);for(const _0x2cd201 of _0x3d9f74)this['_handleInsertedFootnoteReference'](_0x1bdedf,_0x2cd201)&&(_0x4a81df=!0x0);for(const _0x5a9521 of _0x329df4)this['_handleMovedFootnoteReference'](_0x1bdedf,_0x5a9521)&&(_0x4a81df=!0x0);return _0x4a81df;}['_handleFootnotesDefinitionsObjectSync'](_0x3849ba){if(!this['_footnotesDefinitions'])return!0x1;let _0x2dc268=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xe93c32=[];for(const _0x1d2e9b of this['_footnotesDefinitions']['getChildren']()){const _0x59a550=_0x1d2e9b['getAttribute']('footnoteId');this['getFootnote'](_0x59a550)||(_0xe93c32['unshift'](_0x1d2e9b),_0x2dc268=!0x0);}for(const _0x3598d4 of _0xe93c32)_0x3849ba['remove'](_0x3598d4);}const _0x578789=new Set(),_0x4f9604=[];for(const _0x4ab6bc of this['_footnotesDefinitions']['getChildren']()){const _0x20fb9a=_0x4ab6bc['getAttribute']('footnoteId');_0x578789['has'](_0x20fb9a)?(_0x4f9604['unshift'](_0x4ab6bc),_0x2dc268=!0x0):_0x578789['add'](_0x20fb9a);}for(const _0x108f6c of _0x4f9604)_0x3849ba['remove'](_0x108f6c);return this['_footnotesDefinitions']['childCount']||(_0x3849ba['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2dc268=!0x0),_0x2dc268;}['_handleInsertedFootnoteReference'](_0x7c36a8,_0x5ce144){if(this['_footnotes']['find'](_0x362a81=>_0x362a81['reference']===_0x5ce144))return!0x1;let _0x1408ce=!0x1;const _0x3bacc6=_0x5ce144['getAttribute']('footnoteId'),_0x4feceb=this['_footnotes']['findIndex'](_0x1f5fa0=>_0x1f5fa0['id']===_0x3bacc6);-0x1!==_0x4feceb&&(_0x7c36a8['remove'](this['_footnotes'][_0x4feceb]['reference']),this['_footnotes']['splice'](_0x4feceb,0x1),_0x1408ce=!0x0);let _0x3369b7=this['_footnotesDefinitions']?function(_0x47bf6b,_0x36a410){for(const _0x352629 of _0x47bf6b['getChildren']())if(_0x352629['getAttribute']('footnoteId')===_0x36a410)return _0x352629;return null;}(this['_footnotesDefinitions'],_0x3bacc6):null;_0x3369b7||(_0x3369b7=_0x7c36a8['createElement']('footnoteDefinition',{'footnoteId':_0x3bacc6}),this['_footnotesDefinitions']&&(_0x7c36a8['insert'](_0x3369b7,this['_footnotesDefinitions'],'end'),_0x1408ce=!0x0));const _0x115815={'id':_0x3bacc6,'reference':_0x5ce144,'definition':_0x3369b7},_0x41de8f=T(this['editor']['model'],this['_footnotes'],_0x5ce144);this['_footnotes']['splice'](_0x41de8f,0x0,_0x115815);let _0x51a3ea=_0x41de8f;return-0x1!==_0x4feceb&&(_0x51a3ea=Math['min'](_0x41de8f,_0x4feceb)),this['_updateFootnotesCounters'](_0x7c36a8,_0x51a3ea)&&(_0x1408ce=!0x0),_0x1408ce;}['_handleRemoveFootnoteReferenceById'](_0x5d38ad,_0x732119){const _0x37717b=this['_footnotes']['findIndex'](_0xb08a64=>_0xb08a64['id']===_0x732119);if(-0x1===_0x37717b)return!0x1;let _0x2e724a=!0x1;const _0x2594c8=this['_footnotes'][_0x37717b];return'$graveyard'!==_0x2594c8['definition']['root']['rootName']&&(_0x5d38ad['remove'](_0x2594c8['definition']),_0x2e724a=!0x0),this['_footnotes']['splice'](_0x37717b,0x1),this['_updateFootnotesCounters'](_0x5d38ad,_0x37717b)&&(_0x2e724a=!0x0),_0x2e724a;}['_handleMovedFootnoteReference'](_0x4920f5,_0x15058c){const _0x537f6e=_0x15058c['getAttribute']('footnoteId'),_0xcb8eeb=this['_footnotes']['findIndex'](_0x273440=>_0x273440['id']===_0x537f6e),_0x57f902=this['_footnotes'][_0xcb8eeb];let _0x1706e2=!0x1;_0x57f902['reference']=_0x15058c,this['_footnotes']['splice'](_0xcb8eeb,0x1);const _0x239eee=T(this['editor']['model'],this['_footnotes'],_0x15058c);return this['_footnotes']['splice'](_0x239eee,0x0,_0x57f902),this['_updateFootnotesCounters'](_0x4920f5,Math['min'](_0xcb8eeb,_0x239eee))&&(_0x1706e2=!0x0),_0x1706e2;}['_updateFootnoteRefCounter'](_0x4c42f4,_0x1ac14e){if(!this['_footnotesDefinitions'])return!0x1;const _0x564cae=this['_footnotes'][_0x1ac14e];let _0x2641dd;return _0x2641dd=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x564cae,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1ac14e+0x1}):String(_0x1ac14e+0x1),_0x564cae['reference']['getAttribute']('footnoteCounter')!=_0x2641dd&&(_0x4c42f4['setAttribute']('footnoteCounter',_0x2641dd,_0x564cae['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x467648){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xe8fca,_0xebca9b){if(_0xe8fca['length']!==_0xebca9b['length'])return!0x1;for(let _0x13f3bf=0x0;_0x13f3bf<_0xe8fca['length'];_0x13f3bf++)if(_0xe8fca[_0x13f3bf]!==_0xebca9b[_0x13f3bf])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5a14cd=>_0x5a14cd['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5bcf5e=>_0x5bcf5e['getAttribute']('footnoteId'))))return!0x1;let _0x2e60f7=!0x1;for(let _0x131a85=0x0;_0x131a85<this['_footnotes']['length'];_0x131a85++){const _0xcd2823=this['_footnotes'][_0x131a85],_0x4c847b=_0x467648['createPositionBefore'](_0xcd2823['definition']),_0x1c9ab2=_0x467648['createPositionAt'](this['_footnotesDefinitions'],_0x131a85);_0x4c847b['isEqual'](_0x1c9ab2)||(_0x467648['move'](_0x467648['createRangeOn'](_0xcd2823['definition']),_0x1c9ab2),_0x2e60f7=!0x0);}return _0x2e60f7;}['_ensureFootnotesReferencesHaveProperOrder'](_0x13dbe1){if(!this['_footnotes']['length'])return!0x1;const {model:_0x578635}=this['editor'];let _0x27765f=!0x1;for(let _0x11ab4a=0x0;_0x11ab4a<this['_footnotes']['length']-0x1;_0x11ab4a++){const _0x3f9c50=this['_footnotes'][_0x11ab4a],_0x18270e=this['_footnotes'][_0x11ab4a+0x1],_0x8650=_0x578635['createPositionBefore'](_0x3f9c50['reference']),_0x40d777=_0x578635['createPositionBefore'](_0x18270e['reference']);'after'===_0x8650['compareWith'](_0x40d777)&&(this['_handleMovedFootnoteReference'](_0x13dbe1,_0x3f9c50['reference']),_0x11ab4a=-0x1,_0x27765f=!0x0);}return _0x27765f;}}function j(_0x527df0,_0xb995c7,_0x1be70c){if(_0x1be70c['childCount'])return!0x1;const _0x13d3c9=_0xb995c7?'paragraph':'footnoteInlineContent';return _0x527df0['insert'](_0x527df0['createElement'](_0x13d3c9),_0x1be70c),!0x0;}function T(_0x3bf135,_0x25fc51,_0x45a639){if(0x0===_0x25fc51['length'])return 0x0;const _0x131932=_0x3bf135['createPositionBefore'](_0x45a639);for(let _0x43f1cf=0x0;_0x43f1cf<_0x25fc51['length'];_0x43f1cf++){const _0x4f3e55=_0x25fc51[_0x43f1cf],_0xce49e5=_0x3bf135['createPositionBefore'](_0x4f3e55['reference']);if('before'===_0x131932['compareWith'](_0xce49e5))return _0x43f1cf;}const _0x24ce22=_0x45a639['root'];let _0x25e30f=-0x1;for(let _0xef9cd=_0x25fc51['length']-0x1;_0xef9cd>=0x0;_0xef9cd--)if(_0x25fc51[_0xef9cd]['reference']['root']===_0x24ce22){_0x25e30f=_0xef9cd;break;}if(-0x1!==_0x25e30f)return _0x25e30f+0x1;const _0x58acc8=_0x3bf135['document']['getRootNames'](),_0x27aa4f=_0x58acc8['indexOf'](_0x24ce22['rootName']),_0x4bed87=_0x58acc8[_0x27aa4f+0x1];if(_0x4bed87){for(let _0x49c396=0x0;_0x49c396<_0x25fc51['length'];_0x49c396++)if(_0x25fc51[_0x49c396]['reference']['root']['rootName']===_0x4bed87)return _0x49c396;}return _0x25fc51['length'];}class V extends _0xd277b4{['refresh'](){const _0x44fadd=this['editor']['model']['document']['selection'],_0x33bfae=this['_getPositionToInsertFootnote'](_0x44fadd);this['isEnabled']=!!_0x33bfae;}['execute'](_0x380711){const {editor:_0x129c4b}=this,{model:_0x5b7585}=_0x129c4b,{selection:_0x2769cf}=_0x5b7585['document'],_0xdcb266=this['_getPositionToInsertFootnote'](_0x2769cf);if(!_0xdcb266)return;const _0x113cf1=_0x129c4b['plugins']['get']('FootnotesEditing'),_0x37b4fb=_0x380711?.['footnoteId']??_0x74303e();!function(_0xcc6345){return'string'==typeof _0xcc6345&&_0xcc6345['length']>0x0&&!/\s/['test'](_0xcc6345)&&!/^\d/['test'](_0xcc6345);}(_0x37b4fb)?_0x4197fa('insert-footnote-command-executed-with-invalid-id'):(_0x5b7585['change'](_0x5e7d12=>{const _0x3d9e2f=_0x5e7d12['createElement']('footnoteRef',{'footnoteId':_0x37b4fb});_0x5b7585['insertObject'](_0x3d9e2f,_0xdcb266,null);}),_0x113cf1['_moveSelectionToFootnoteDefinition'](_0x37b4fb));}['_getPositionToInsertFootnote'](_0x38b4d0){const {model:_0x1a6de6}=this['editor'],{schema:_0x3334ee}=_0x1a6de6,_0x3b2e8f=_0x38b4d0['getFirstRange']();for(const _0x2b0876 of _0x3b2e8f['getItems']())if(_0x3334ee['isBlock'](_0x2b0876)||_0x3334ee['isObject'](_0x2b0876))return null;const _0x4bf60d=_0x3b2e8f['end'];return _0x3334ee['checkChild'](_0x4bf60d,'footnoteRef')?_0x4bf60d:null;}}class $ extends _0x15cc4e{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x85b36b}=this;_0x85b36b['config']['define']('footnotes.multiBlock',!0x0),_0x85b36b['commands']['add']('insertFootnote',new V(_0x85b36b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x58b999){const _0x29b707=_0x442c5b([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]),_0x19fa78=0x47a28506,_0x1178d5=0x47a500be^_0x19fa78,_0x5bd449=window[_0x442c5b([0x44,0x61,0x74,0x65])][_0x442c5b([0x6e,0x6f,0x77])](),_0x4748d3=_0x58b999[_0x442c5b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e021a=new window[(_0x442c5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cc90e=>{_0x4748d3[_0x442c5b([0x6f,0x6e,0x63,0x65])](_0x442c5b([0x72,0x65,0x61,0x64,0x79]),_0x5cc90e);}),_0x45ab0d={[_0x442c5b([0x6b,0x74,0x79])]:_0x442c5b([0x45,0x43]),[_0x442c5b([0x75,0x73,0x65])]:_0x442c5b([0x73,0x69,0x67]),[_0x442c5b([0x63,0x72,0x76])]:_0x442c5b([0x50,0x2d,0x32,0x35,0x36]),[_0x442c5b([0x78])]:_0x442c5b([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]),[_0x442c5b([0x79])]:_0x442c5b([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]),[_0x442c5b([0x61,0x6c,0x67])]:_0x442c5b([0x45,0x53,0x32,0x35,0x36])},_0x335f62=_0x4748d3[_0x442c5b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x442c5b([0x67,0x65,0x74])](_0x442c5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c5d8e(){let _0x51ea07,_0x65b24f=null,_0x177e09=null;try{if(_0x335f62==_0x442c5b([0x47,0x50,0x4c]))return _0x442c5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51ea07=_0x28b533(),!_0x51ea07)return _0x442c5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51ea07[_0x442c5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x177e09=_0x55a61c(_0x51ea07[_0x442c5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51ea07[_0x442c5b([0x6a,0x74,0x69])])),await _0x470f36()?_0x4f5888()?_0x5dd9ee()?_0x442c5b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x376616()?(_0x51ea07[_0x442c5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x442c5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x65b24f=_0x4cc738(_0x442c5b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15b84c()):_0x442c5b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x442c5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x442c5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x442c5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5dd9ee(){const _0xa0e898=[_0x442c5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x442c5b([0x74,0x72,0x69,0x61,0x6c])][_0x442c5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ea07[_0x442c5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bd449/0x3e8:0xe10*_0x1178d5;return _0x51ea07[_0x442c5b([0x65,0x78,0x70])]<_0xa0e898;}function _0x4f5888(){const _0x4f875b=_0x51ea07[_0x442c5b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f875b&&(!!_0x4f875b[_0x442c5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442c5b([0x2a]))||!!_0x4f875b[_0x442c5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442c5b([0x46,0x4f,0x4f])));}function _0x376616(){const _0x21715e=_0x51ea07[_0x442c5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21715e||0x0==_0x21715e[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56aa7f}=new URL(window[_0x442c5b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21715e[_0x442c5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56aa7f))return!0x0;const _0x2cdfb5=_0x56aa7f[_0x442c5b([0x73,0x70,0x6c,0x69,0x74])](_0x442c5b([0x2e]));return _0x21715e[_0x442c5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x492a2c=>_0x492a2c[_0x442c5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442c5b([0x2a])))[_0x442c5b([0x6d,0x61,0x70])](_0x30a9c8=>_0x30a9c8[_0x442c5b([0x73,0x70,0x6c,0x69,0x74])](_0x442c5b([0x2e])))[_0x442c5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5177a9=>_0x5177a9[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2cdfb5[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x442c5b([0x6d,0x61,0x70])](_0x269092=>Array(_0x2cdfb5[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x269092[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x442c5b([0x66,0x69,0x6c,0x6c])](_0x269092[0x0]===_0x442c5b([0x2a])?_0x442c5b([0x2a]):'')[_0x442c5b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x269092))[_0x442c5b([0x73,0x6f,0x6d,0x65])](_0x34bc57=>_0x2cdfb5[_0x442c5b([0x65,0x76,0x65,0x72,0x79])]((_0x57ff2d,_0x406bcf)=>_0x34bc57[_0x406bcf]===_0x57ff2d||_0x34bc57[_0x406bcf]===_0x442c5b([0x2a])));}function _0x15b84c(){return _0x65b24f&&_0x177e09?new window[(_0x442c5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x176ac5,_0x1efdfd)=>{_0x65b24f[_0x442c5b([0x74,0x68,0x65,0x6e])](_0x176ac5,_0x1efdfd),_0x177e09[_0x442c5b([0x74,0x68,0x65,0x6e])](_0x3c0344=>{_0x3c0344!=_0x442c5b([0x56,0x61,0x6c,0x69,0x64])&&_0x176ac5(_0x3c0344);},_0x1efdfd);}):_0x65b24f||_0x177e09||_0x442c5b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55a61c(_0x3cfc58,_0x4779c1){return new window[(_0x442c5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf0ccd8=>{if(_0x5658c3())return _0xf0ccd8(_0x442c5b([0x56,0x61,0x6c,0x69,0x64]));_0x59aa09(),_0x4748d3[_0x442c5b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x442c5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a9f3e=!0x1;const _0x1e8002=_0x74303e();function _0x29c94b(_0x205fda){return!!_0x205fda&&(typeof _0x205fda===_0x442c5b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x205fda===_0x442c5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x205fda[_0x442c5b([0x74,0x68,0x65,0x6e])]===_0x442c5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x205fda[_0x442c5b([0x63,0x61,0x74,0x63,0x68])]===_0x442c5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x642b1(_0x49b6a4){_0x17a76f(_0x49b6a4)[_0x442c5b([0x74,0x68,0x65,0x6e])](_0x5d8d48=>{if(!_0x5d8d48||_0x5d8d48[_0x442c5b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x442c5b([0x6f,0x6b]))return _0x442c5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa863b3(_0x4fed62(_0x1e8002+_0x4779c1))!=_0x5d8d48[_0x442c5b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x442c5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x442c5b([0x56,0x61,0x6c,0x69,0x64]);})[_0x442c5b([0x74,0x68,0x65,0x6e])](_0x3bf519=>(_0x595da5(),_0x3bf519),()=>{const _0x488afa=_0x369207();return null==_0x488afa?(_0x595da5(),_0x442c5b([0x56,0x61,0x6c,0x69,0x64])):_0x442c5b(_0x5bd449-_0x488afa>(0x63ae0106^_0x19fa78)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x442c5b([0x74,0x68,0x65,0x6e])](_0xf0ccd8)[_0x442c5b([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf0ccd8(_0x442c5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16d286=0x47946b86^_0x19fa78;function _0x595da5(){const _0x3da1f3=_0x442c5b([0x6c,0x6c,0x63,0x74,0x2d])+_0xa863b3(_0x4fed62(_0x3cfc58)),_0x31da43=_0x384ff8(_0xa863b3(window[_0x442c5b([0x4d,0x61,0x74,0x68])][_0x442c5b([0x63,0x65,0x69,0x6c])](_0x5bd449/_0x16d286)));window[_0x442c5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x442c5b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3da1f3,_0x31da43);}function _0x369207(){const _0x5a05db=_0x442c5b([0x6c,0x6c,0x63,0x74,0x2d])+_0xa863b3(_0x4fed62(_0x3cfc58)),_0x1b6342=window[_0x442c5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x442c5b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a05db);return _0x1b6342?window[_0x442c5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x384ff8(_0x1b6342),0x10)*_0x16d286:null;}function _0x17a76f(_0x2a0f19){return new window[(_0x442c5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b39ac,_0x3d801b)=>{_0x2a0f19[_0x442c5b([0x74,0x68,0x65,0x6e])](_0x3b39ac,_0x3d801b),window[_0x442c5b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d801b,0x47a351c6^_0x19fa78);});}}_0x4748d3[_0x442c5b([0x6f,0x6e])](_0x442c5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4467ec,_0x3c31b2)=>{if(_0x3c31b2[0x0]!=_0x3cfc58)return _0xf0ccd8(_0x442c5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c31b2[0x1]={..._0x3c31b2[0x1],[_0x442c5b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e8002};},{[_0x442c5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x442c5b([0x68,0x69,0x67,0x68])}),_0x4748d3[_0x442c5b([0x6f,0x6e])](_0x442c5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x512bf9=>{_0x29c94b(_0x512bf9[_0x442c5b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a9f3e=!0x0,_0x642b1(_0x512bf9[_0x442c5b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x442c5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x442c5b([0x6c,0x6f,0x77])}),_0x5e021a[_0x442c5b([0x74,0x68,0x65,0x6e])](()=>{_0x2a9f3e||_0xf0ccd8(_0x442c5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5658c3(){return _0x4748d3[_0x442c5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x442c5b([0x76,0x69,0x65,0x77])][_0x442c5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x442c5b([0x61,0x75,0x74,0x6f]);}function _0x59aa09(){_0x4748d3[_0x442c5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x442c5b([0x76,0x69,0x65,0x77])][_0x442c5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x442c5b([0x61,0x75,0x74,0x6f]);}}function _0x4cc738(_0xf80999){const _0x434c72=[new window[(_0x442c5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339ded=>setTimeout(_0x339ded,0x47abbbca^_0x19fa78)),_0x5e021a[_0x442c5b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x442c5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x263e16=>{let _0x12e309=0x0;_0x4748d3[_0x442c5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x442c5b([0x6f,0x6e])](_0x442c5b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2bcfe4,_0x5428f9)=>{_0x5428f9[0x0][_0x442c5b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12e309++,_0x12e309==(0x47a280ee^_0x19fa78)&&(_0x263e16(),_0x2bcfe4[_0x442c5b([0x6f,0x66,0x66])]());});}))];return window[_0x442c5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x442c5b([0x72,0x61,0x63,0x65])](_0x434c72)[_0x442c5b([0x74,0x68,0x65,0x6e])](()=>_0xf80999);}async function _0x1fbd79(){await _0x5e021a,_0x4748d3[_0x442c5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x442c5b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a03b6,_0x4748d3[_0x442c5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x442c5b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a03b6,_0x4748d3[_0x442c5b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x442c5b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45010c(_0x964c60){const _0x33845d=_0x5264f1();_0x4748d3[_0x33845d]=_0x442c5b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x964c60,_0x964c60!=_0x442c5b([0x56,0x61,0x6c,0x69,0x64])&&_0x1fbd79();}function _0x5264f1(){const _0x1a0be0=window[_0x442c5b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x442c5b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x442c5b([0x6e,0x6f,0x77])]())[_0x442c5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x442c5b([0x2e]),'');let _0x26cd55=_0x442c5b([0x75]);for(let _0x37c746=0x0;_0x37c746<_0x1a0be0[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37c746+=0x2){let _0x56bb76=window[_0x442c5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a0be0[_0x442c5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37c746,_0x37c746+0x2));_0x56bb76>=_0x29b707[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56bb76-=_0x29b707[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26cd55+=_0x29b707[_0x56bb76];}return _0x26cd55;}function _0x28b533(){const _0x4f6143=_0x335f62[_0x442c5b([0x73,0x70,0x6c,0x69,0x74])](_0x442c5b([0x2e]));if(0x3!=_0x4f6143[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x552a0f(_0x4f6143[0x1]);function _0x552a0f(_0x8feafb){const _0x46c23c=_0x144a09(_0x8feafb);return _0x46c23c&&_0xa1dd90()?_0x46c23c:null;function _0xa1dd90(){const _0x1dcf0e=_0x46c23c[_0x442c5b([0x6a,0x74,0x69])],_0x26aab2=window[_0x442c5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dcf0e[_0x442c5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1dcf0e[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cb78d={..._0x46c23c,[_0x442c5b([0x6a,0x74,0x69])]:_0x1dcf0e[_0x442c5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1dcf0e[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cb78d[_0x442c5b([0x76,0x63])],_0x4fed62(_0x1cb78d)==_0x26aab2;}}}async function _0x470f36(){let _0x2a575d=!0x0;try{const _0x553f7a=_0x335f62[_0x442c5b([0x73,0x70,0x6c,0x69,0x74])](_0x442c5b([0x2e])),[_0xede42,_0x47e5e7,_0xbffce8]=_0x553f7a;return _0x3646fa(_0xede42),await _0x16498a(_0xede42,_0x47e5e7,_0xbffce8),_0x2a575d;}catch{return!0x1;}function _0x3646fa(_0x5e2335){const _0x5a263a=_0x144a09(_0x5e2335);_0x5a263a&&_0x5a263a[_0x442c5b([0x61,0x6c,0x67])]==_0x442c5b([0x45,0x53,0x32,0x35,0x36])||(_0x2a575d=!0x1);}async function _0x16498a(_0x82d2eb,_0x4c4b54,_0x1a59b3){const _0x5bddce=window[_0x442c5b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x442c5b([0x66,0x72,0x6f,0x6d])](_0x173597(_0x1a59b3),_0x21dbb4=>_0x21dbb4[_0x442c5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbc5fb6=new window[(_0x442c5b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x442c5b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x82d2eb+_0x442c5b([0x2e])+_0x4c4b54),_0x2e73bd=window[_0x442c5b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x442c5b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e73bd)return;const _0x1b679e=await _0x2e73bd[_0x442c5b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x442c5b([0x6a,0x77,0x6b]),_0x45ab0d,{[_0x442c5b([0x6e,0x61,0x6d,0x65])]:_0x442c5b([0x45,0x43,0x44,0x53,0x41]),[_0x442c5b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x442c5b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x442c5b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e73bd[_0x442c5b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x442c5b([0x6e,0x61,0x6d,0x65])]:_0x442c5b([0x45,0x43,0x44,0x53,0x41]),[_0x442c5b([0x68,0x61,0x73,0x68])]:{[_0x442c5b([0x6e,0x61,0x6d,0x65])]:_0x442c5b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b679e,_0x5bddce,_0xbc5fb6)||(_0x2a575d=!0x1);}}function _0x144a09(_0xef96d6){return _0xef96d6[_0x442c5b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x442c5b([0x65,0x79]))?JSON[_0x442c5b([0x70,0x61,0x72,0x73,0x65])](_0x173597(_0xef96d6)):null;}function _0x173597(_0x168eee){return window[_0x442c5b([0x61,0x74,0x6f,0x62])](_0x168eee[_0x442c5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x442c5b([0x2b]))[_0x442c5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x442c5b([0x2f])));}function _0x4fed62(_0x270e5b){let _0x6da00d=0x1505;function _0x5c62a1(_0x119065){for(let _0x77acbc=0x0;_0x77acbc<_0x119065[_0x442c5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x77acbc++){const _0xf6ff4d=_0x119065[_0x442c5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x77acbc);_0x6da00d=(_0x6da00d<<0x5)+_0x6da00d+_0xf6ff4d,_0x6da00d&=_0x6da00d;}}function _0x5ac6d4(_0x4cee51){Array[_0x442c5b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cee51)?_0x4cee51[_0x442c5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ac6d4):_0x4cee51&&typeof _0x4cee51==_0x442c5b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x442c5b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cee51)[_0x442c5b([0x73,0x6f,0x72,0x74])]()[_0x442c5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x145e2d,_0xae2e40])=>{_0x5c62a1(_0x145e2d),_0x5ac6d4(_0xae2e40);}):_0x5c62a1(window[_0x442c5b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cee51));}return _0x5ac6d4(_0x270e5b),_0x6da00d>>>0x0;}function _0xa863b3(_0x4aab6d){return _0x4aab6d[_0x442c5b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x442c5b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x442c5b([0x30]));}function _0x384ff8(_0x17200b){return _0x17200b[_0x442c5b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x442c5b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x442c5b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a03b6(){}function _0x442c5b(_0x4745fc){return _0x4745fc['map'](_0x1070ae=>String['fromCharCode'](_0x1070ae))['join']('');}_0x45010c(await _0x5c5d8e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5c03f5){const {plugins:_0x17c1f9,editing:_0xb274ca,model:_0x37e144}=this['editor'],_0x294966=_0x17c1f9['get'](K)['getFootnote'](_0x5c03f5);return!!_0x294966&&(_0x37e144['change'](_0x4dbb0d=>{_0x4dbb0d['setSelection'](_0x4dbb0d['createPositionAt'](_0x294966['definition'],'end'));}),_0xb274ca['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2d8aec){const {plugins:_0x4ebe00,editing:_0x37a926,model:_0x5e9c30}=this['editor'],_0x42e72b=_0x4ebe00['get'](K)['getFootnote'](_0x2d8aec);return!!_0x42e72b&&(_0x5e9c30['change'](_0x4800e2=>{_0x4800e2['setSelection'](_0x42e72b['reference'],'on');}),_0x37a926['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x128489}=this['editor']['model'],_0x165dc8=this['editor']['config']['get']('footnotes.multiBlock');_0x128489['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x128489['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x128489['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x165dc8?_0x128489['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x128489['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x128489['addChildCheck'](_0x44b384=>{for(const _0x265d3b of _0x44b384)if('footnoteDefinition'===_0x265d3b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5b8cf8}=this,{conversion:_0x57b43e,editing:_0x4ba454}=_0x5b8cf8,{t:t}=_0x5b8cf8['locale'];_0x57b43e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x93c024,{writer:_0x5acd9d,consumable:_0x51b6ae})=>{const _0x33cc2e=_0x93c024['getChild'](0x0);if(!_0x33cc2e||!_0x33cc2e['is']('element','a'))return null;const _0x5ed8a0=_0x33cc2e['getAttribute']('href')||'';if(!_0x5ed8a0['startsWith']('#'))return null;const _0xfc0b0b=_0x5ed8a0['replace'](/^#/,'');if(!_0xfc0b0b)return null;_0x51b6ae['consume'](_0x33cc2e,{'name':!0x0,'attributes':['href']});for(const {item:_0x406254}of _0x4ba454['view']['createRangeIn'](_0x33cc2e))_0x406254['is']('$textProxy')?_0x51b6ae['consume'](_0x406254['textNode'],{'name':!0x0}):_0x406254['is']('element')&&_0x51b6ae['consume'](_0x406254,{'name':!0x0});return _0x5acd9d['createElement']('footnoteRef',{'footnoteId':_0xfc0b0b});}}),_0x57b43e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2891f4,{writer:_0x569e1c})=>z(_0x2891f4,_0x569e1c)}),_0x57b43e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5120b5,{writer:_0xed8871})=>{const _0xaa904d=_0x5120b5['getAttribute']('footnoteCounter');return _0x8ca209(z(_0x5120b5,_0xed8871),_0xed8871,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xaa904d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x16abc5}=this,{t:t}=_0x16abc5['locale'],{conversion:_0x4a2da4}=_0x16abc5;_0x4a2da4['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4a2da4['for']('upcast')['add'](_0x322546=>{_0x322546['on']('element:ol',(_0x19b06b,_0x3bbb69,_0x1c4574)=>{const _0x46a6a8=_0x3bbb69['viewItem'];if(!_0x46a6a8['hasClass']('footnotes-list')||!_0x3bbb69['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1c4574['consumable']['consume'](_0x46a6a8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x58e15e,modelCursor:_0x2f658a}=_0x1c4574['convertChildren'](_0x3bbb69['viewItem'],_0x3bbb69['modelCursor']);_0x3bbb69['modelRange']=_0x58e15e,_0x3bbb69['modelCursor']=_0x2f658a;}),_0x322546['on']('element:hr',(_0x574a07,_0x51496c,_0x5867ab)=>{const _0x50ed91=_0x51496c['viewItem'];_0x50ed91['hasClass']('footnotes-divider')&&_0x51496c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5867ab['consumable']['consume'](_0x50ed91,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4a2da4['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xf1ecfc,{writer:_0x52f582})=>H(_0x52f582)}),_0x4a2da4['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5d28a9,{writer:_0x341b65})=>{const _0x59be70=H(_0x341b65,{'data-footnotes-list-label':t('Footnotes')}),_0x5bbbda=_0x8ca209(_0x59be70,_0x341b65,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x341b65['setCustomProperty']('footnotesDefinitions',!0x0,_0x5bbbda),_0x5bbbda;}});}['_defineDefinitionConverters'](){const {editor:_0x144689}=this,{conversion:_0x436e2e,locale:_0x18018e}=_0x144689,_0x1e67f7=_0x144689['config']['get']('footnotes.multiBlock');_0x436e2e['for']('upcast')['add'](_0x4e476d=>{_0x4e476d['on']('element:li',(_0x310009,_0x39958c,_0x17b89f)=>{const _0x4aca11=_0x39958c['viewItem'];if(!_0x4aca11['hasClass']('footnote-definition')||!_0x4aca11['getAttribute']('id'))return;const _0x564d2e=_0x4aca11['parent'];if(!_0x564d2e['is']('element','ol')||!_0x564d2e['hasClass']('footnotes-list'))return;if(!_0x17b89f['consumable']['test'](_0x4aca11,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x36c0fc=_0x17b89f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4aca11['getAttribute']('id')});if(!_0x17b89f['safeInsert'](_0x36c0fc,_0x39958c['modelCursor']))return;_0x17b89f['consumable']['consume'](_0x4aca11,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x30633a=Array['from'](_0x4aca11['getChildren']())['find'](_0xce0d5a=>_0xce0d5a['is']('element')&&_0xce0d5a['hasClass']('footnote-content'));for(const _0x1500b2 of _0x4aca11['getChildren']())_0x1500b2['is']('element')&&(_0x17b89f['consumable']['consume'](_0x1500b2,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x17b89f['consumable']['consume'](_0x1500b2,{'name':!0x0,'classes':'footnote-content'}));if(_0x30633a){if(_0x1e67f7)_0x17b89f['convertChildren'](_0x30633a,_0x36c0fc);else{const _0x60c167=_0x17b89f['writer']['createElement']('footnoteInlineContent');_0x17b89f['writer']['insert'](_0x60c167,_0x36c0fc),_0x17b89f['convertChildren'](_0x30633a,_0x60c167);}}_0x17b89f['updateConversionResult'](_0x36c0fc,_0x39958c);});}),_0x436e2e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x198d44,{writer:_0x5b46a7})=>X(_0x198d44,_0x5b46a7,_0x18018e,{'dataPipeline':!0x0})}),_0x436e2e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2a72aa,{writer:_0x2172ee})=>X(_0x2a72aa,_0x2172ee,_0x18018e)});}['_defineBogusParagraphConverters'](){const {editor:_0x259181}=this,{conversion:_0xd5d054}=_0x259181;_0x259181['config']['get']('footnotes.multiBlock')?(_0xd5d054['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0xd5d054['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x259181['model']['document'],'change:data',()=>{!function(_0x87ecce,_0x513433){const _0x35c629=_0x87ecce['document']['differ'],_0x8da68f=new Set();for(const _0x33f02c of _0x35c629['getChanges']()){const _0x2186ee='attribute'==_0x33f02c['type']?_0x33f02c['range']['start']['parent']:_0x33f02c['position']['parent'];_0x2186ee['is']('element','footnoteDefinition')&&_0x8da68f['add'](_0x2186ee);}for(const _0xe82f1f of _0x8da68f['values']()){const _0x247ea8=Array['from'](_0xe82f1f['getChildren']())['filter'](_0x5205a7=>U(_0x5205a7,_0x513433['mapper']));for(const _0x1fae34 of _0x247ea8)_0x513433['reconvertItem'](_0x1fae34);}}(_0x259181['model'],_0x259181['editing']);})):(_0xd5d054['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0xd5d054['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2240a0,{writer:_0x32d29c})=>{const _0xd32e07=_0x32d29c['createContainerElement']('span');return _0x32d29c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xd32e07),_0xd32e07;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5b36e2}=this,{editing:_0xcc0255,t:t}=_0x5b36e2,_0x41cf72=_0x5b36e2['model']['document']['selection'];_0x5b36e2['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5b36e2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xcc0255['view']['document'],'enter',(_0x52bbf1,_0x470df8)=>{const _0x588a90=function(_0x182c75){const _0x4339e4=_0x182c75['getSelectedElement']();if(_0x4339e4?.['is']('element','footnoteRef'))return _0x4339e4;return null;}(_0x41cf72);if(_0x588a90){const _0xfad5ab=_0x588a90['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xfad5ab),_0x470df8['preventDefault'](),_0x52bbf1['stop']();}},{'context':_0x558687});}['_defineClickHandlers'](){const {editor:_0x2d315a}=this,{editing:_0x12e193}=_0x2d315a;_0x2d315a['editing']['view']['addObserver'](_0x17f808),_0x2d315a['editing']['view']['addObserver'](_0x2d3596);let _0x1cc6b7=!0x1;this['listenTo'](_0x12e193['view']['document'],'pointerdown',(_0x130e35,_0x17b20a)=>{const {target:_0x249aae}=_0x17b20a,_0x1b6818=_0x12e193['view']['document']['selection'];_0x1cc6b7=!!(_0x249aae?.['is']('element','a')&&_0x249aae['parent']?.['is']('element','sup')&&_0x249aae['parent']['hasClass']('footnote'))&&_0x1b6818['getSelectedElement']()===_0x249aae['parent'];},{'priority':'high'}),this['listenTo'](_0x12e193['view']['document'],'click',(_0x16d178,_0x14e5eb)=>{const {target:_0x243ab4}=_0x14e5eb;if(!_0x243ab4?.['is']('element','a'))return;if(_0x243ab4['parent']?.['is']('element','sup')&&_0x243ab4['parent']['hasClass']('footnote')&&!_0x1cc6b7)return void _0x14e5eb['preventDefault']();let _0x10ec72=_0x243ab4['getAttribute']('href');if(!_0x10ec72?.['startsWith']('#'))return;_0x10ec72=_0x10ec72['slice'](0x1);let _0x3f38cc=!0x1;(_0x10ec72['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x10ec72['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x10ec72))&&(_0x3f38cc=!0x0),_0x3f38cc&&(_0x14e5eb['preventDefault'](),_0x16d178['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x1661da}={}){return(_0x5e8c5f,{writer:_0xeaa56})=>{if(!M(_0x5e8c5f))return null;if(!_0x1661da)return _0xeaa56['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x267540=_0xeaa56['createContainerElement']('p');return _0xeaa56['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x267540),_0x267540;};}function M(_0x577728){const {parent:_0x4fe429}=_0x577728;if(!_0x4fe429?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4fe429['childCount'])return!0x1;for(const _0x41fbc0 of _0x577728['getAttributeKeys']())if(!_0x41fbc0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x41fbc0)return!0x1;return!0x0;}function U(_0x20b0b3,_0x25d0c3){if(!_0x20b0b3['is']('element','paragraph'))return!0x1;const _0xbb20de=_0x25d0c3['toViewElement'](_0x20b0b3);return!!_0xbb20de&&M(_0x20b0b3)!==_0xbb20de['is']('element','span');}function q(_0x2d7c77){return _0x558687(_0x2d7c77)&&_0x2d7c77['is']('containerElement')&&!!_0x2d7c77['getCustomProperty']('footnotesDefinitions');}function H(_0x332720,_0x2aef79={}){const _0xa03740=_0x332720['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xbbf811=_0x332720['createContainerElement']('ol',{'class':'footnotes-list'},_0x332720['createSlot']());return _0x332720['createContainerElement']('div',{'class':'footnotes',..._0x2aef79},[_0xa03740,_0xbbf811]);}function z(_0x4d7b71,_0x5e7922){const _0x12904e=_0x4d7b71['getAttribute']('footnoteId'),_0x301b04=_0x4d7b71['getAttribute']('footnoteCounter'),_0x3eb54d=_0x5e7922['createUIElement']('a',{'href':'#'+_0x12904e},function(_0x215e79){const _0x11e31c=this['toDomElement'](_0x215e79);return _0x11e31c['textContent']=_0x301b04,_0x11e31c;}),_0x30c61e=_0x5e7922['createContainerElement']('sup',{'id':'ref-'+_0x12904e,'class':'footnote'},[_0x3eb54d]);return _0x30c61e['getFillerOffset']=()=>null,_0x30c61e;}function X(_0x4117c8,_0x5364e1,_0x5ededf,{dataPipeline:_0x1c4351}={}){const {t:t}=_0x5ededf,_0x4e1613=_0x4117c8['getAttribute']('footnoteId'),_0x4b9c7a=_0x5364e1['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4e1613},function(_0x2697e1){const _0x4661d7=this['toDomElement'](_0x2697e1);return _0x4661d7['innerText']='^',_0x4661d7;}),_0x3c9008=_0x1c4351?_0x5364e1['createContainerElement']('div',{'class':'footnote-content'}):_0x163139(_0x5364e1['createEditableElement']('div',{'class':'footnote-content'}),_0x5364e1,{'label':t('Footnote\x20content.')});return _0x5364e1['insert'](_0x5364e1['createPositionAt'](_0x3c9008,0x0),_0x5364e1['createSlot']()),_0x5364e1['createContainerElement']('li',{'class':'footnote-definition','id':_0x4e1613},[_0x4b9c7a,_0x3c9008]);}class J extends _0x15cc4e{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x50fe1e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x4ebfbd}=this,{plugins:_0x1b2137,model:_0x2ce230}=_0x4ebfbd,_0x46c433=_0x1b2137['get'](_0x50fe1e),_0x1c0d7d=_0x1b2137['get'](K);this['listenTo'](_0x46c433,'outputTransformation',(_0x4e5b68,_0x190257)=>{const _0x25984b=Q(_0x2ce230['createRangeIn'](_0x190257['content']));if(!_0x25984b['length'])return;const _0x266c54=_0x1c0d7d['getFootnotes'](),_0x4ab33e=_0x25984b['reduce']((_0x2926ec,_0x265e7c)=>{const _0x277573=_0x266c54['find'](_0x3450e2=>_0x3450e2['id']===_0x265e7c);if(_0x277573){const _0x177084=_0x4ebfbd['data']['toView'](_0x277573['definition'],{'isClipboardPipeline':!0x0}),_0xb498a3=_0x4ebfbd['data']['htmlProcessor']['toData'](_0x177084);_0x2926ec[_0x277573['id']]=_0xb498a3;}return _0x2926ec;},Object['create'](null));_0x190257['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4ab33e));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3eeac8}=this,{model:_0x23c8e6,plugins:_0x12ec1a}=_0x3eeac8,{view:_0x6dedc0}=_0x3eeac8['editing'],_0x2c5b26=_0x12ec1a['get'](_0x50fe1e),_0x1bc30e=_0x12ec1a['get'](K),_0xfaac0c=_0x3eeac8['config']['get']('footnotes.multiBlock');let _0x445ba0=null;this['listenTo'](_0x6dedc0['document'],'clipboardInput',(_0x386d87,_0x1ae3e9)=>{const _0x5984b2=_0x1ae3e9['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x445ba0=_0x5984b2?JSON['parse'](_0x5984b2):null;}),this['listenTo'](_0x2c5b26,'contentInsertion',(_0x254285,_0x57258f)=>{const _0x29c6b3=_0x57258f['sourceEditorId']===this['editor']['id'];_0x29c6b3&&'drop'===_0x57258f['method']||_0x23c8e6['change'](_0x3a179e=>{let _0x1e43d4=_0x1bc30e['getFootnotesDefinitionsObjectElement']();const _0x3f5b8f=!!_0x1e43d4&&Array['from'](_0x23c8e6['document']['selection']['getSelectedBlocks']())['includes'](_0x1e43d4);if(!_0x445ba0&&function(_0x284167){for(const {item:_0xe5da0d}of _0x284167)if(_0xe5da0d['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x23c8e6['createRangeIn'](_0x57258f['content']))&&(_0x445ba0=function(_0x18f0de,_0x4ed5c8){const _0x2e1592=G(_0x18f0de,_0x4ed5c8);if(!_0x2e1592)return null;const _0x3eb128=Object['create'](null);for(const _0x2e5e89 of _0x2e1592['getChildren']())_0x2e5e89['is']('element','footnoteDefinition')&&_0x2e5e89['hasAttribute']('footnoteId')&&(_0x3eb128[_0x2e5e89['getAttribute']('footnoteId')]=_0x18f0de['cloneElement'](_0x2e5e89,!0x0));return Object['keys'](_0x3eb128)['length']?_0x3eb128:null;}(_0x3a179e,_0x57258f['content'])),(_0x1e43d4&&!_0x3f5b8f||!_0x1e43d4&&!_0x445ba0)&&function(_0x33dad8,_0x249d12){const _0x5ab330=[];for(const {item:_0x402975}of _0x33dad8['createRangeIn'](_0x249d12))_0x402975['is']('element','footnotesDefinitions')&&_0x5ab330['push'](_0x402975);for(const _0x17e83a of _0x5ab330)_0x33dad8['remove'](_0x17e83a);}(_0x3a179e,_0x57258f['content']),!_0x445ba0)return;const {selection:_0x1b4102}=_0x23c8e6['document'],_0x399da6=_0x1b4102['getFirstRange']()['root'];_0x1e43d4&&!_0x3f5b8f||(_0x1e43d4=G(_0x3a179e,_0x57258f['content']),_0x1e43d4||=_0x1bc30e['_insertEmptyFootnotesDefinitionsContainer'](_0x3a179e,_0x399da6));const _0x4e54c3=Array['from'](_0x1b4102['getRanges']())['flatMap'](Q),_0x523c2e=function(_0x459152,_0x414fc5,_0x48183b){const _0x3372c1=Object['create'](null);for(const {item:_0x437eac}of _0x459152['createRangeIn'](_0x414fc5))if(_0x437eac['is']('element','footnoteRef')){const _0xe64e3a=_0x437eac['getAttribute']('footnoteId');if(!_0x48183b(_0xe64e3a))continue;_0x3372c1[_0xe64e3a]||(_0x3372c1[_0xe64e3a]=_0x74303e()),_0x459152['setAttribute']('footnoteId',_0x3372c1[_0xe64e3a],_0x437eac);}return _0x3372c1;}(_0x3a179e,_0x57258f['content'],_0xb8acb8=>{if(!_0x29c6b3)return!0x0;return!!_0x1bc30e['getFootnote'](_0xb8acb8)&&!_0x4e54c3['includes'](_0xb8acb8);});for(const [_0x1b28c8,_0x3219f9]of Object['entries'](_0x445ba0)){const _0x99176=_0x523c2e[_0x1b28c8]||_0x1b28c8;let _0xd886c0;if('string'!=typeof _0x3219f9)_0xd886c0=_0x3219f9,_0x99176!==_0x1b28c8&&_0x3a179e['setAttribute']('footnoteId',_0x99176,_0xd886c0);else{_0xd886c0=_0x3a179e['createElement']('footnoteDefinition',{'footnoteId':_0x99176});const _0x14618c=_0x3eeac8['data']['htmlProcessor']['toView'](_0x3219f9);let _0x39cc88;if(_0xfaac0c)_0x39cc88=_0x3eeac8['data']['toModel'](_0x14618c,_0xd886c0);else{_0x39cc88=_0x3a179e['createElement']('footnoteInlineContent');const _0x47d282=_0x3eeac8['data']['toModel'](_0x14618c,_0x39cc88);_0x3a179e['insert'](_0x47d282,_0x39cc88);}_0x3a179e['append'](_0x39cc88,_0xd886c0);}_0x3a179e['insert'](_0xd886c0,_0x1e43d4,'end');}_0x445ba0=null;});});}}function G(_0x74bb3b,_0x4d45f2){for(const {item:_0x4d4ec4}of _0x74bb3b['createRangeIn'](_0x4d45f2))if(_0x4d4ec4['is']('element','footnotesDefinitions'))return _0x4d4ec4;return null;}function Q(_0x4d5874){const _0x3ea3d9=new Set();for(const {item:_0x2ec76d}of _0x4d5874)_0x2ec76d['is']('element','footnoteRef')&&_0x3ea3d9['add'](_0x2ec76d['getAttribute']('footnoteId'));return Array['from'](_0x3ea3d9);}class W extends _0x15cc4e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x191571}=this,{componentFactory:_0x44e279}=_0x191571['ui'];_0x44e279['add']('insertFootnote',Y(_0x191571,_0x380163)),_0x44e279['add']('menuBar:insertFootnote',Y(_0x191571,_0x61b96a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x338b82=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x401ab2;for(const _0x3154fc in _0x338b82){const _0x2164eb=_0x3154fc,_0x36e084=_0x338b82[_0x2164eb];if('footnotesLicenseKeyValid'==_0x36e084||'footnotesLicenseKeyInvalid'==_0x36e084||'footnotesLicenseKeyExpired'==_0x36e084||'footnotesLicenseKeyDomainLimit'==_0x36e084||'footnotesLicenseKeyNotAllowed'==_0x36e084||'footnotesLicenseKeyEvaluationLimit'==_0x36e084||'footnotesLicenseKeyUsageLimit'==_0x36e084){delete _0x338b82[_0x2164eb],_0x401ab2=_0x36e084,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x401ab2&&_0x338b82['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x401ab2&&_0x338b82['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x401ab2&&_0x338b82['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x401ab2&&_0x338b82['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x401ab2&&_0x338b82['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x401ab2&&_0x338b82['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x4aab32,_0x9cc71d){const _0x39cc9a=_0x4aab32['commands']['get']('insertFootnote');return _0x594f8a=>{const {t:t}=_0x594f8a,_0x21e4ad=new _0x9cc71d(_0x594f8a),_0x12c132=_0x21e4ad instanceof _0x61b96a;return _0x21e4ad['bind']('isEnabled')['to'](_0x39cc9a,'isEnabled'),_0x21e4ad['set']({'label':t(_0x12c132?'Footnote':'Insert\x20footnote'),'icon':_0x58063f,'tooltip':!0x0}),_0x21e4ad['on']('execute',()=>{_0x39cc9a['execute'](),_0x4aab32['editing']['view']['focus']();}),_0x21e4ad;};}class Z extends _0x15cc4e{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[$,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];class nt extends _0xd277b4{['refresh'](){const {editor:_0x54e72e}=this,_0x4c315d=_0x54e72e['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4c315d,this['value']=_0x4c315d?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x50d343}){const {editor:_0x41cef3}=this,_0x3087b6=_0x41cef3['plugins']['get'](K),_0x2170bc=_0x3087b6['getFootnotesDefinitionsObjectElement']();_0x2170bc&&ot['includes'](_0x50d343)&&_0x41cef3['model']['change'](_0x57180c=>{_0x57180c['setAttribute']('footnotesListStyle',_0x50d343,_0x2170bc),_0x3087b6['_updateFootnotesCounters'](_0x57180c);});}}class it extends _0xd277b4{['refresh'](){const {editor:_0x1d6132}=this,_0x5387b5=_0x1d6132['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5387b5,this['value']=_0x5387b5?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x250b99}){const {editor:_0x2fb07f}=this,_0x2373ac=_0x2fb07f['plugins']['get'](K),_0x4e14ae=_0x2373ac['getFootnotesDefinitionsObjectElement']();_0x4e14ae&&Number['isInteger'](_0x250b99)&&_0x2fb07f['model']['change'](_0x4164d5=>{_0x4164d5['setAttribute']('footnotesListStart',_0x250b99,_0x4e14ae),_0x2373ac['_updateFootnotesCounters'](_0x4164d5);});}}function st(_0x5eb372,_0x2eedfe){let _0x2441c2='',_0x35ec8f=_0x5eb372;for(;_0x35ec8f>0x0;){const _0x4749e0=(_0x35ec8f-0x1)%0x1a;_0x2441c2=String['fromCharCode'](0x61+_0x4749e0)+_0x2441c2,_0x35ec8f=Math['floor']((_0x35ec8f-0x1)/0x1a);}return _0x2eedfe?_0x2441c2['toUpperCase']():_0x2441c2;}const rt=[{'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 lt(_0x2c6acb,_0x5b965e){let _0x4459ef='',_0x1c7ab4=_0x2c6acb;for(const {value:_0x43fedb,numeral:_0x24888a}of rt)for(;_0x1c7ab4>=_0x43fedb;)_0x4459ef+=_0x24888a,_0x1c7ab4-=_0x43fedb;return _0x5b965e?_0x4459ef:_0x4459ef['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x15cc4e{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f7789}=this;_0x1f7789['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x1f7789['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x1f7789['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x1f7789['commands']['add']('footnotesStyle',new nt(_0x1f7789)),_0x1f7789['commands']['add']('footnotesStart',new it(_0x1f7789)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x25bfc7}=this,{schema:_0x144b44}=_0x25bfc7['model'];_0x144b44['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1ed6f5}=this,{conversion:_0x4d445d,model:_0x43c286}=_0x1ed6f5,{schema:_0x53adb2}=_0x43c286;_0x4d445d['for']('upcast')['add'](_0x5390d5=>{_0x5390d5['on']('element:ol',(_0xcd3d98,_0x24e231,_0x2b2d2a)=>{const _0x4a70a4=_0x24e231['viewItem'],_0x4daf15=_0x24e231['modelCursor']?.['parent'];_0x4a70a4['hasClass']('footnotes-list')&&_0x4daf15?.['is']('element','footnotesDefinitions')&&(function(_0x2e7bb5,_0x33b394,_0x376f57,_0x38cf61){if(!_0x38cf61['checkAttribute'](_0x33b394,'footnotesListStart'))return;let _0x11f35a=0x1;const _0x4a2839=_0x376f57['consumable']['consume'](_0x2e7bb5,{'attributes':'start'});if(_0x4a2839){const _0x4f9b55=Number['parseInt'](_0x2e7bb5['getAttribute']('start'),0xa);Number['isNaN'](_0x4f9b55)||(_0x11f35a=_0x4f9b55);}!_0x4a2839&&_0x33b394['hasAttribute']('footnotesListStart')||_0x376f57['writer']['setAttribute']('footnotesListStart',_0x11f35a,_0x33b394);}(_0x4a70a4,_0x4daf15,_0x2b2d2a,_0x53adb2),function(_0x5278f4,_0xd4f715,_0x162d1b,_0x3a5419){if(!_0x3a5419['checkAttribute'](_0xd4f715,'footnotesListStyle'))return;let _0x3c9644='decimal',_0x322d19=!0x1;if(_0x162d1b['consumable']['consume'](_0x5278f4,{'attributes':'type'})){const _0xccd807={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x5278f4['getAttribute']('type')];_0xccd807&&(_0x3c9644=_0xccd807),_0x322d19=!0x0;}if(_0x162d1b['consumable']['consume'](_0x5278f4,{'styles':'list-style-type'})){const _0x12702e=ct(_0x5278f4['getStyle']('list-style-type'));_0x12702e&&(_0x3c9644=_0x12702e),_0x322d19=!0x0;}!_0x322d19&&_0xd4f715['hasAttribute']('footnotesListStyle')||_0x162d1b['writer']['setAttribute']('footnotesListStyle',_0x3c9644,_0xd4f715);}(_0x4a70a4,_0x4daf15,_0x2b2d2a,_0x53adb2));});}),_0x4d445d['for']('downcast')['add'](_0xd18855=>{_0xd18855['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x502daf,_0x481859,_0x1893ac)=>{if(!_0x1893ac['consumable']['consume'](_0x481859['item'],_0x502daf['name']))return;const _0x3a8ed8=ut(_0x481859['item'],_0x1893ac['mapper']),{attributeNewValue:_0x3d3713}=_0x481859;null==_0x3d3713||0x1===_0x3d3713?_0x1893ac['writer']['removeAttribute']('start',_0x3a8ed8):_0x1893ac['writer']['setAttribute']('start',String(_0x3d3713),_0x3a8ed8);}),_0xd18855['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x319305,_0x2991f9,_0x5a5167)=>{if(!_0x5a5167['consumable']['consume'](_0x2991f9['item'],_0x319305['name']))return;const _0x5a7752=ut(_0x2991f9['item'],_0x5a5167['mapper']),{attributeNewValue:_0x4285e4}=_0x2991f9;_0x4285e4&&'decimal'!==_0x4285e4?_0x5a5167['writer']['setStyle']('list-style-type',_0x4285e4,_0x5a7752):_0x5a5167['writer']['removeStyle']('list-style-type',_0x5a7752);});});}['_definePostfixer'](){const {editor:_0x5fd543}=this,{model:_0x4cf37b}=_0x5fd543,_0x4c23dd=_0x5fd543['plugins']['get'](K),_0x19720b=this['_getDefaultListStyle'](),_0xad0576=this['_getDefaultStartIndex']();_0x4cf37b['document']['registerPostFixer'](_0x293e61=>{const _0x235346=_0x4cf37b['document']['differ']['getChanges']();let _0x39bcdd=!0x1;for(const _0x2f1d2a of _0x235346){if('insert'!==_0x2f1d2a['type']||'$text'===_0x2f1d2a['name'])continue;const _0x38bb4f=_0x4cf37b['createRangeOn'](_0x2f1d2a['position']['nodeAfter']);for(const _0x5bec95 of _0x38bb4f['getItems']())_0x5bec95['is']('element','footnotesDefinitions')&&(!_0x5bec95['hasAttribute']('footnotesListStart')&&_0x4cf37b['schema']['checkAttribute'](_0x5bec95,'footnotesListStart')&&(_0x293e61['setAttribute']('footnotesListStart',_0xad0576,_0x5bec95),_0x39bcdd=!0x0),!_0x5bec95['hasAttribute']('footnotesListStyle')&&_0x4cf37b['schema']['checkAttribute'](_0x5bec95,'footnotesListStyle')&&(_0x293e61['setAttribute']('footnotesListStyle',_0x19720b,_0x5bec95),_0x39bcdd=!0x0));}return _0x39bcdd&&_0x4c23dd['_updateFootnotesCounters'](_0x293e61),_0x39bcdd;});}['_defineFormatter'](){const {editor:_0x13af43}=this;_0x13af43['plugins']['get'](K)['setFootnoteFormatter'](_0x2f0a0f=>this['_formatFootnoteListValue'](_0x2f0a0f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x76afb3,value:_0x36cfc9,digits:_0x5256cf}){const _0x534dd7=_0x76afb3['getAttribute']('footnotesListStyle'),_0x23609a=_0x76afb3['getAttribute']('footnotesListStart'),_0x297f3b=Math['floor'](_0x36cfc9)+(_0x23609a??0x1)-0x1;switch(_0x534dd7){case'decimal-leading-zero':return function(_0x17161c,_0x6e9557){return String(_0x17161c)['padStart'](_0x6e9557,'0');}(_0x297f3b,Math['max'](0x2,_0x5256cf));case'lower-alpha':case'lower-latin':return st(_0x297f3b,!0x1);case'upper-alpha':case'upper-latin':return st(_0x297f3b,!0x0);case'lower-roman':return lt(_0x297f3b,!0x1);case'upper-roman':return lt(_0x297f3b,!0x0);case'arabic-indic':return String(_0x297f3b)['replace'](/\d/g,_0x1d6232=>ft[Number(_0x1d6232)]);default:return String(_0x297f3b);}}}function ct(_0x486100){if('string'==typeof _0x486100){const _0x21a0dd=et[_0x486100];if(_0x21a0dd)return _0x21a0dd;if(ot['includes'](_0x486100))return _0x486100;}return null;}function ut(_0x294f93,_0x255d31){const _0x724f1d=_0x255d31['toViewElement'](_0x294f93);return Array['from'](_0x724f1d['getChildren']())['find'](_0x3a242d=>_0x3a242d['is']('element','ol')&&_0x3a242d['hasClass']('footnotes-list'));}class dt extends _0xf57592{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x5ee4a3();['keystrokes']=new _0x3f7955();['focusables']=new _0x14d903();['focusCycler'];constructor(_0x40acbd,{styleButtonViews:_0x1df14c,styleGridAriaLabel:_0x2b71c3}){super(_0x40acbd),(this['focusCycler']=new _0x5e70b1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1df14c,_0x2b71c3),[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 _0x534ed3 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x534ed3['element']);_0x239e76({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x56e7e3['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 _0x317ef5=_0x178399=>_0x178399['stopPropagation']();this['keystrokes']['set']('arrowright',_0x317ef5),this['keystrokes']['set']('arrowleft',_0x317ef5),this['keystrokes']['set']('arrowup',_0x317ef5),this['keystrokes']['set']('arrowdown',_0x317ef5);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x14a1f2,_0x2e6e9d){const _0x263a99=new _0xf57592(this['locale']);return _0x263a99['children']=_0x263a99['createCollection'](),_0x263a99['children']['addMany'](_0x14a1f2),_0x263a99['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2e6e9d,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x263a99['children']}),_0x263a99['children']['delegate']('execute')['to'](this),_0x263a99['focus']=function(){for(const _0x4f2986 of this['children'])if(_0x4f2986 instanceof _0x380163&&_0x4f2986['isOn'])return void _0x4f2986['focus']();this['children']['first']['focus']();},_0x263a99['focusTracker']=new _0x5ee4a3(),_0x263a99['keystrokes']=new _0x3f7955(),_0x263a99['render'](),_0x263a99['keystrokes']['listenTo'](_0x263a99['element']),this['children']['add'](_0x263a99),_0x263a99;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2958ea=this['_createStartIndexPropertyView'](),_0x44a702=[_0x2958ea],_0x2b2ae3=new _0x3c810a(this['locale'],_0x44a702);return _0x2b2ae3['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2b2ae3['buttonView']['bind']('isEnabled')['toMany'](_0x44a702,'isEnabled',(..._0x16b14a)=>_0x16b14a['some'](_0x288355=>_0x288355)),_0x2b2ae3['buttonView']['on']('change:isEnabled',(_0xb8c684,_0x1e3582,_0x11a844)=>{_0x11a844||(_0x2b2ae3['isCollapsed']=!0x0);}),this['children']['add'](_0x2b2ae3),[_0x2958ea,_0x2b2ae3];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1772da=new _0x5cef59(this['locale'],_0x4ffa9e);return _0x1772da['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1772da['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1772da['fieldView']['on']('input',()=>{const _0x194908=_0x1772da['fieldView']['element'],_0x41f940=_0x194908['valueAsNumber'];Number['isNaN'](_0x41f940)?_0x1772da['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x194908['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x41f940}):_0x1772da['errorText']=t(_0x41f940<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1772da;}}class ht extends _0x15cc4e{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1ce94d,_0x46c8d2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e9394}=this,{componentFactory:_0x51db0c}=_0x4e9394['ui'];_0x4e9394['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x51db0c['add']('footnotesStyle',function(_0x3f8900){return _0xf6f305=>{const {t:t}=_0xf6f305,_0x1624ce=_0x3f8900['commands']['get']('footnotesStyle'),_0x1b3c45=_0x509316(_0xf6f305),{buttonView:_0x564fd7}=_0x1b3c45;return _0x1b3c45['class']='ck-footnotes-styles-dropdown',_0x1b3c45['bind']('isEnabled')['to'](_0x1624ce,'isEnabled'),_0x564fd7['set']({'label':t('Footnotes\x20style'),'icon':_0x58063f,'tooltip':!0x0}),_0x1b3c45['once']('change:isOpen',()=>{const _0x331bc7=function({editor:_0x484435,dropdownView:_0x3fe9d9}){const {t:t}=_0x484435['locale'],_0x1ccc81=t('Footnotes\x20definitions\x20styles'),_0x4376cd=function(_0xc14935){const {t:t}=_0xc14935['locale'],_0x3b2301=_0xc14935['config']['get']('footnotes.footnotesProperties.listStyles'),_0x37649c=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x3aa13c},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x614e4e},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x1926fb},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x1b542b},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x55f0a4},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x9a6442},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x3094ad}];return _0x3b2301['map'](_0x5bd344=>{const _0x26bcfa=ct(_0x5bd344),_0x5371a6=_0x37649c['find'](_0x4aa795=>_0x4aa795['style']===_0x26bcfa);return function(_0x48eb6c,_0xa1bd44){const {locale:_0x3fea44}=_0x48eb6c,{label:_0x2ddec1,icon:_0xcaf1b0,tooltip:_0x3526c6,style:_0x5da047}=_0xa1bd44,_0x174481=_0x48eb6c['commands']['get']('footnotesStyle'),_0x54581f=new _0x380163(_0x3fea44);return _0x54581f['set']({'label':_0x2ddec1,'icon':_0xcaf1b0,'tooltip':_0x3526c6}),_0x54581f['bind']('isOn')['to'](_0x174481,'value',_0x2bfbe0=>_0x2bfbe0===_0x5da047),_0x54581f['bind']('isEnabled')['to'](_0x174481,'isEnabled'),_0x54581f['on']('execute',()=>{_0x48eb6c['execute']('footnotesStyle',{'value':_0x5da047}),_0x48eb6c['editing']['view']['focus']();}),_0x54581f;}(_0xc14935,_0x5371a6);});}(_0x484435),_0x401e8f=new dt(_0x484435['locale'],{'styleGridAriaLabel':_0x1ccc81,'styleButtonViews':_0x4376cd}),_0x1531e5=_0x484435['commands']['get']('footnotesStart');return _0x401e8f['startIndexFieldView']['bind']('isEnabled')['to'](_0x1531e5),_0x401e8f['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x1531e5),_0x401e8f['on']('footnotesListStart',(_0x8f3725,_0x28d752)=>{_0x484435['execute']('footnotesStart',{'value':_0x28d752['startIndex']});}),_0x401e8f['delegate']('execute')['to'](_0x3fe9d9),_0x401e8f;}({'editor':_0x3f8900,'dropdownView':_0x1b3c45});_0x1b3c45['panelView']['children']['add'](_0x331bc7);}),_0x1b3c45;};}(_0x4e9394));}['afterInit'](){const {editor:_0x70bf1e}=this,{t:t}=_0x70bf1e['locale'],_0x3d2718=_0x70bf1e['plugins']['get'](_0x46c8d2),{defaultPositions:_0x2a799d}=_0x4fb591;_0x3d2718['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x70bf1e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1b1697=>{let _0x423a13=_0x1b1697['getFirstPosition']()?.['parent'];return _0x423a13?.['is']('$text')&&(_0x423a13=_0x423a13['parent']),_0x423a13?.['is']('element')?_0x423a13['findAncestor'](q):null;},'positions':[_0x2a799d['southArrowNorth'],_0x2a799d['southArrowNorthMiddleWest'],_0x2a799d['southArrowNorthMiddleEast'],_0x2a799d['southArrowNorthWest'],_0x2a799d['southArrowNorthEast'],_0x2a799d['northArrowSouth'],_0x2a799d['northArrowSouthMiddleWest'],_0x2a799d['northArrowSouthMiddleEast'],_0x2a799d['northArrowSouthWest'],_0x2a799d['northArrowSouthEast'],_0x2a799d['viewportStickyNorth']]});}}class mt extends _0x15cc4e{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[at,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Z as Footnotes,J as FootnotesClipboard,$ as FootnotesEditing,mt as FootnotesProperties,at as FootnotesPropertiesEditing,ht as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,K as FootnotesTracker,W as FootnotesUI,V as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x3dd23c,Command as _0xdcc877}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1cff52,isWidget as _0x483c93,toWidgetEditable as _0x1b2d09,WidgetToolbarRepository as _0x456899}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x35f10d,logWarning as _0xbd61be,FocusTracker as _0x1ab095,KeystrokeHandler as _0x5cde93,global as _0x2c2497}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1801f9,ClickObserver as _0x36d9e7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2eccd0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x547a38,ButtonView as _0x2629ee,View as _0xdb1982,ViewCollection as _0x53b920,FocusCycler as _0x4b3b4c,addKeyboardHandlingForGrid as _0x109d35,CollapsibleView as _0x1025a7,LabeledFieldView as _0x518956,createLabeledInputNumber as _0x57b4af,ContextualBalloon as _0x1cc358,BalloonPanelView as _0x2609da,createDropdown as _0x20c5a1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x25dd47,IconListStyleDecimal as _0x2cd24c,IconListStyleDecimalLeadingZero as _0x24cb86,IconListStyleLowerRoman as _0x55c18b,IconListStyleUpperRoman as _0x151f28,IconListStyleLowerLatin as _0xf1c778,IconListStyleUpperLatin as _0x369e04,IconListStyleArabicIndic as _0x4191d6}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x59ba53,_0x3aa6a4){this['_model']=_0x59ba53,this['_elementName']=_0x3aa6a4['elementName'],this['_getElementKey']=_0x3aa6a4['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5e4989){const _0x431cf9=new Set(),_0x39ccaa=new Map();for(const _0x58d163 of _0x5e4989){if('insert'===_0x58d163['type']&&'$text'!==_0x58d163['name']&&_0x58d163['position']['nodeAfter']){const _0x2f649e=this['_model']['createRangeOn'](_0x58d163['position']['nodeAfter']);for(const _0x56eb5a of _0x2f649e['getItems']()){if(!_0x56eb5a['is']('element',this['_elementName']))continue;const _0x391925=this['_getElementKey'](_0x56eb5a);_0x39ccaa['has'](_0x391925)||_0x39ccaa['set'](_0x391925,[]),_0x39ccaa['get'](_0x391925)['push'](_0x56eb5a);}}if('remove'===_0x58d163['type']&&_0x58d163['name']===this['_elementName']){const _0x17b8bf=this['_getElementKey']({'getAttribute':_0x4d330f=>_0x58d163['attributes']['get'](_0x4d330f)});_0x431cf9['add'](_0x17b8bf);}}for(const [_0x5f0bf7,_0x2b00c7]of this['_trackedElements'])'$graveyard'===_0x2b00c7['root']['rootName']&&_0x431cf9['add'](_0x5f0bf7);for(const _0x13702b of _0x431cf9)this['_trackedElements']['delete'](_0x13702b);for(const [_0x2cb1be,_0x41cf09]of _0x39ccaa)this['_trackedElements']['set'](_0x2cb1be,_0x41cf09[_0x41cf09['length']-0x1]);const _0x2c56f=new Set();for(const [_0x2fc0ce,_0x3a42e6]of _0x39ccaa)_0x431cf9['has'](_0x2fc0ce)&&(_0x2c56f['add'](_0x3a42e6[0x0]),_0x3a42e6['length']>0x1?_0x39ccaa['set'](_0x2fc0ce,_0x3a42e6['slice'](0x1)):_0x39ccaa['delete'](_0x2fc0ce),_0x431cf9['delete'](_0x2fc0ce));return{'removed':Array['from'](_0x431cf9),'inserted':Array['from'](_0x39ccaa['values']())['flat'](),'moved':Array['from'](_0x2c56f)};}}class K extends _0x3dd23c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20538b){super(_0x20538b),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2ba4a7=>_0x2ba4a7['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x244181=>_0x244181['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4e2bef}=this,{model:_0x4e2edb,data:_0x3596f9}=_0x4e2bef;_0x4e2edb['document']['registerPostFixer'](_0x22fec1=>{const _0x2f6b59=_0x4e2edb['document']['differ']['getChanges']();let _0x333b5f=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x22fec1,_0x2f6b59)&&(_0x333b5f=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x22fec1,_0x2f6b59)&&(_0x333b5f=!0x0),this['_handleFootnoteReferencesChanges'](_0x22fec1,_0x2f6b59)&&(_0x333b5f=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x22fec1)&&(_0x333b5f=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x22fec1)&&(_0x333b5f=!0x0),this['_sortFootnoteDefinitions'](_0x22fec1)&&(_0x333b5f=!0x0),_0x333b5f;}),this['listenTo'](_0x4e2edb['document'],'change:data',()=>{_0x4e2edb['enqueueChange']({'isUndoable':!0x1},_0x3dbd25=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x3dbd25);});},{'priority':'low'}),this['listenTo'](_0x3596f9,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x38666c){return this['_footnotes']['find'](_0x34bf13=>_0x34bf13['id']===_0x38666c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1caa1b){this['_footnoteFormatter']=_0x1caa1b;}['_updateFootnotesCounters'](_0x21e325,_0x1f0131=0x0){let _0x17f402=!0x1;for(let _0x23601f=_0x1f0131;_0x23601f<this['_footnotes']['length'];_0x23601f++)this['_updateFootnoteRefCounter'](_0x21e325,_0x23601f)&&(_0x17f402=!0x0);return _0x17f402;}['_insertEmptyFootnotesDefinitionsContainer'](_0x23e79e,_0x2c2ed6){const _0x3791d0=_0x23e79e['createElement']('footnotesDefinitions',{});return _0x23e79e['append'](_0x3791d0,_0x2c2ed6),this['_footnotesDefinitions']=_0x3791d0,_0x3791d0;}['_ensureFootnotesDefinitionsContainerExists'](_0x5280ee){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2c0e28=this['_footnotes'][0x0]['reference']['root'],_0x519147=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5280ee,_0x2c0e28);for(const _0x2e5543 of this['_footnotes'])_0x2e5543['definition']['parent']||_0x5280ee['insert'](_0x2e5543['definition'],_0x519147,'end');this['_updateFootnotesCounters'](_0x5280ee);}['_handleFootnotesDefinitionsObjectChanges'](_0x3f0b9c,_0x293178){let _0x5d5942=!0x1;const {inserted:_0x563f2c,removed:_0x2a52ae,moved:_0x4aae97}=this['_footnoteDefsContainerTracker']['getChanges'](_0x293178);if(_0x4aae97['length']&&(this['_footnotesDefinitions']=_0x4aae97[0x0]),_0x563f2c['length']){if(_0x563f2c['length']>0x1||this['_footnotesDefinitions']&&_0x563f2c['some'](_0x3c23ba=>_0x3c23ba!==this['_footnotesDefinitions'])){const _0x4991d2=_0x3f0b9c['createElement']('footnotesDefinitions',{}),_0x1583df=[];this['_footnotesDefinitions']&&_0x1583df['push'](this['_footnotesDefinitions']),_0x1583df['push'](..._0x563f2c),_0x3f0b9c['insert'](_0x4991d2,_0x1583df[0x0],'before');for(const _0x3bfaea of _0x1583df)_0x3f0b9c['move'](_0x3f0b9c['createRangeIn'](_0x3bfaea),_0x3f0b9c['createPositionAt'](_0x4991d2,'end')),_0x3f0b9c['remove'](_0x3bfaea);this['_footnotesDefinitions']=_0x4991d2,this['_updateFootnotesCounters'](_0x3f0b9c),_0x5d5942=!0x0;}else this['_footnotesDefinitions']=_0x563f2c[0x0];}if(_0x2a52ae['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x36c004 of this['_footnotes'])_0x3f0b9c['remove'](_0x36c004['reference']),_0x5d5942=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5d5942;}['_handleFootnoteDefinitionsChanges'](_0x194c42,_0x118cd6){let _0x3f2a7b=!0x1;const _0x50bb77=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x552a83,moved:_0x33950d}=this['_footnoteDefsTracker']['getChanges'](_0x118cd6);for(const _0x37e370 of[..._0x33950d,..._0x552a83]){const _0x8ad6e8=_0x37e370['getAttribute']('footnoteId'),_0x3ae4e0=this['getFootnote'](_0x8ad6e8);_0x3ae4e0&&(_0x3ae4e0['definition']=_0x37e370),j(_0x194c42,_0x50bb77,_0x37e370)&&(_0x3f2a7b=!0x0);}return _0x3f2a7b;}['_handleFootnoteReferencesChanges'](_0x2bd663,_0x3d8ca0){let _0x77475a=!0x1;const {removed:_0x1fcc70,inserted:_0x26e596,moved:_0x533cb6}=this['_footnoteRefsTracker']['getChanges'](_0x3d8ca0);for(const _0x3da901 of _0x1fcc70)this['_handleRemoveFootnoteReferenceById'](_0x2bd663,_0x3da901)&&(_0x77475a=!0x0);for(const _0x35bd8f of _0x26e596)this['_handleInsertedFootnoteReference'](_0x2bd663,_0x35bd8f)&&(_0x77475a=!0x0);for(const _0x4d70eb of _0x533cb6)this['_handleMovedFootnoteReference'](_0x2bd663,_0x4d70eb)&&(_0x77475a=!0x0);return _0x77475a;}['_handleFootnotesDefinitionsObjectSync'](_0x49ce1a){if(!this['_footnotesDefinitions'])return!0x1;let _0x13f509=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x38e632=[];for(const _0x445768 of this['_footnotesDefinitions']['getChildren']()){const _0x1aeafd=_0x445768['getAttribute']('footnoteId');this['getFootnote'](_0x1aeafd)||(_0x38e632['unshift'](_0x445768),_0x13f509=!0x0);}for(const _0x598c3e of _0x38e632)_0x49ce1a['remove'](_0x598c3e);}const _0x491087=new Set(),_0xa17a58=[];for(const _0xe5eab0 of this['_footnotesDefinitions']['getChildren']()){const _0x432fff=_0xe5eab0['getAttribute']('footnoteId');_0x491087['has'](_0x432fff)?(_0xa17a58['unshift'](_0xe5eab0),_0x13f509=!0x0):_0x491087['add'](_0x432fff);}for(const _0x1aad5e of _0xa17a58)_0x49ce1a['remove'](_0x1aad5e);return this['_footnotesDefinitions']['childCount']||(_0x49ce1a['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x13f509=!0x0),_0x13f509;}['_handleInsertedFootnoteReference'](_0x206e4c,_0x4c097d){if(this['_footnotes']['find'](_0x48413d=>_0x48413d['reference']===_0x4c097d))return!0x1;let _0x55a88b=!0x1;const _0x2bc1f8=_0x4c097d['getAttribute']('footnoteId'),_0x15d39a=this['_footnotes']['findIndex'](_0x1e9f95=>_0x1e9f95['id']===_0x2bc1f8);-0x1!==_0x15d39a&&(_0x206e4c['remove'](this['_footnotes'][_0x15d39a]['reference']),this['_footnotes']['splice'](_0x15d39a,0x1),_0x55a88b=!0x0);let _0x564e1f=this['_footnotesDefinitions']?function(_0x298d46,_0x304014){for(const _0x1ce9e3 of _0x298d46['getChildren']())if(_0x1ce9e3['getAttribute']('footnoteId')===_0x304014)return _0x1ce9e3;return null;}(this['_footnotesDefinitions'],_0x2bc1f8):null;_0x564e1f||(_0x564e1f=_0x206e4c['createElement']('footnoteDefinition',{'footnoteId':_0x2bc1f8}),this['_footnotesDefinitions']&&(_0x206e4c['insert'](_0x564e1f,this['_footnotesDefinitions'],'end'),_0x55a88b=!0x0));const _0x42e951={'id':_0x2bc1f8,'reference':_0x4c097d,'definition':_0x564e1f},_0x44e497=T(this['editor']['model'],this['_footnotes'],_0x4c097d);this['_footnotes']['splice'](_0x44e497,0x0,_0x42e951);let _0x1c20f6=_0x44e497;return-0x1!==_0x15d39a&&(_0x1c20f6=Math['min'](_0x44e497,_0x15d39a)),this['_updateFootnotesCounters'](_0x206e4c,_0x1c20f6)&&(_0x55a88b=!0x0),_0x55a88b;}['_handleRemoveFootnoteReferenceById'](_0x50379d,_0x139d49){const _0x2e6e6d=this['_footnotes']['findIndex'](_0x3b0212=>_0x3b0212['id']===_0x139d49);if(-0x1===_0x2e6e6d)return!0x1;let _0x586cc7=!0x1;const _0x5b3bf6=this['_footnotes'][_0x2e6e6d];return'$graveyard'!==_0x5b3bf6['definition']['root']['rootName']&&(_0x50379d['remove'](_0x5b3bf6['definition']),_0x586cc7=!0x0),this['_footnotes']['splice'](_0x2e6e6d,0x1),this['_updateFootnotesCounters'](_0x50379d,_0x2e6e6d)&&(_0x586cc7=!0x0),_0x586cc7;}['_handleMovedFootnoteReference'](_0x2f87de,_0x5b98f7){const _0x3c6ce7=_0x5b98f7['getAttribute']('footnoteId'),_0x4b387d=this['_footnotes']['findIndex'](_0x5f54b3=>_0x5f54b3['id']===_0x3c6ce7),_0x3cdb85=this['_footnotes'][_0x4b387d];let _0x595074=!0x1;_0x3cdb85['reference']=_0x5b98f7,this['_footnotes']['splice'](_0x4b387d,0x1);const _0x58d8ee=T(this['editor']['model'],this['_footnotes'],_0x5b98f7);return this['_footnotes']['splice'](_0x58d8ee,0x0,_0x3cdb85),this['_updateFootnotesCounters'](_0x2f87de,Math['min'](_0x4b387d,_0x58d8ee))&&(_0x595074=!0x0),_0x595074;}['_updateFootnoteRefCounter'](_0x578264,_0x2d02e6){if(!this['_footnotesDefinitions'])return!0x1;const _0x52fb41=this['_footnotes'][_0x2d02e6];let _0x16bfa;return _0x16bfa=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x52fb41,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2d02e6+0x1}):String(_0x2d02e6+0x1),_0x52fb41['reference']['getAttribute']('footnoteCounter')!=_0x16bfa&&(_0x578264['setAttribute']('footnoteCounter',_0x16bfa,_0x52fb41['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4d69a0){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xc0e96b,_0x40c9f9){if(_0xc0e96b['length']!==_0x40c9f9['length'])return!0x1;for(let _0x19ebc3=0x0;_0x19ebc3<_0xc0e96b['length'];_0x19ebc3++)if(_0xc0e96b[_0x19ebc3]!==_0x40c9f9[_0x19ebc3])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x46c424=>_0x46c424['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x831f8d=>_0x831f8d['getAttribute']('footnoteId'))))return!0x1;let _0x276e6=!0x1;for(let _0x2c9ab3=0x0;_0x2c9ab3<this['_footnotes']['length'];_0x2c9ab3++){const _0x149c0f=this['_footnotes'][_0x2c9ab3],_0x2e78d8=_0x4d69a0['createPositionBefore'](_0x149c0f['definition']),_0x1c9f90=_0x4d69a0['createPositionAt'](this['_footnotesDefinitions'],_0x2c9ab3);_0x2e78d8['isEqual'](_0x1c9f90)||(_0x4d69a0['move'](_0x4d69a0['createRangeOn'](_0x149c0f['definition']),_0x1c9f90),_0x276e6=!0x0);}return _0x276e6;}['_ensureFootnotesReferencesHaveProperOrder'](_0x92682e){if(!this['_footnotes']['length'])return!0x1;const {model:_0x57b0b6}=this['editor'];let _0x7ab22e=!0x1;for(let _0x261a52=0x0;_0x261a52<this['_footnotes']['length']-0x1;_0x261a52++){const _0x1b62c6=this['_footnotes'][_0x261a52],_0x177cd3=this['_footnotes'][_0x261a52+0x1],_0x1c7846=_0x57b0b6['createPositionBefore'](_0x1b62c6['reference']),_0xe607c0=_0x57b0b6['createPositionBefore'](_0x177cd3['reference']);'after'===_0x1c7846['compareWith'](_0xe607c0)&&(this['_handleMovedFootnoteReference'](_0x92682e,_0x1b62c6['reference']),_0x261a52=-0x1,_0x7ab22e=!0x0);}return _0x7ab22e;}}function j(_0x2a11e7,_0x39108e,_0x283922){if(_0x283922['childCount'])return!0x1;const _0x2e4c13=_0x39108e?'paragraph':'footnoteInlineContent';return _0x2a11e7['insert'](_0x2a11e7['createElement'](_0x2e4c13),_0x283922),!0x0;}function T(_0x1ff1e2,_0x2bb68d,_0x5d163a){if(0x0===_0x2bb68d['length'])return 0x0;const _0x6edfc9=_0x1ff1e2['createPositionBefore'](_0x5d163a);for(let _0x464087=0x0;_0x464087<_0x2bb68d['length'];_0x464087++){const _0x205aa3=_0x2bb68d[_0x464087],_0x360f00=_0x1ff1e2['createPositionBefore'](_0x205aa3['reference']);if('before'===_0x6edfc9['compareWith'](_0x360f00))return _0x464087;}const _0x2076e4=_0x5d163a['root'];let _0x24483c=-0x1;for(let _0x3b6dd0=_0x2bb68d['length']-0x1;_0x3b6dd0>=0x0;_0x3b6dd0--)if(_0x2bb68d[_0x3b6dd0]['reference']['root']===_0x2076e4){_0x24483c=_0x3b6dd0;break;}if(-0x1!==_0x24483c)return _0x24483c+0x1;const _0x350e7b=_0x1ff1e2['document']['getRootNames'](),_0x407471=_0x350e7b['indexOf'](_0x2076e4['rootName']),_0x5a9e65=_0x350e7b[_0x407471+0x1];if(_0x5a9e65){for(let _0x33841a=0x0;_0x33841a<_0x2bb68d['length'];_0x33841a++)if(_0x2bb68d[_0x33841a]['reference']['root']['rootName']===_0x5a9e65)return _0x33841a;}return _0x2bb68d['length'];}class V extends _0xdcc877{['refresh'](){const _0x5b2de5=this['editor']['model']['document']['selection'],_0x45f32f=this['_getPositionToInsertFootnote'](_0x5b2de5);this['isEnabled']=!!_0x45f32f;}['execute'](_0x1095f6){const {editor:_0x391724}=this,{model:_0x2fbe9b}=_0x391724,{selection:_0x13713c}=_0x2fbe9b['document'],_0x233b74=this['_getPositionToInsertFootnote'](_0x13713c);if(!_0x233b74)return;const _0x59e477=_0x391724['plugins']['get']('FootnotesEditing'),_0x553bf1=_0x1095f6?.['footnoteId']??_0x35f10d();!function(_0x13cd09){return'string'==typeof _0x13cd09&&_0x13cd09['length']>0x0&&!/\s/['test'](_0x13cd09)&&!/^\d/['test'](_0x13cd09);}(_0x553bf1)?_0xbd61be('insert-footnote-command-executed-with-invalid-id'):(_0x2fbe9b['change'](_0x87c833=>{const _0x161524=_0x87c833['createElement']('footnoteRef',{'footnoteId':_0x553bf1});_0x2fbe9b['insertObject'](_0x161524,_0x233b74,null);}),_0x59e477['_moveSelectionToFootnoteDefinition'](_0x553bf1));}['_getPositionToInsertFootnote'](_0x45d9d7){const {model:_0xbd1daf}=this['editor'],{schema:_0x3eab54}=_0xbd1daf,_0x18fc62=_0x45d9d7['getFirstRange']();for(const _0x40bca9 of _0x18fc62['getItems']())if(_0x3eab54['isBlock'](_0x40bca9)||_0x3eab54['isObject'](_0x40bca9))return null;const _0x16a5f9=_0x18fc62['end'];return _0x3eab54['checkChild'](_0x16a5f9,'footnoteRef')?_0x16a5f9:null;}}class $ extends _0x3dd23c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x409536}=this;_0x409536['config']['define']('footnotes.multiBlock',!0x0),_0x409536['commands']['add']('insertFootnote',new V(_0x409536)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x561bcf){const _0x3162da=_0x41e919([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]),_0x5f4ea8=0x47a28506,_0x20dbe7=0x47a500d6^_0x5f4ea8,_0x310b17=window[_0x41e919([0x44,0x61,0x74,0x65])][_0x41e919([0x6e,0x6f,0x77])](),_0x552c2c=_0x561bcf[_0x41e919([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ac88b=new window[(_0x41e919([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2579a8=>{_0x552c2c[_0x41e919([0x6f,0x6e,0x63,0x65])](_0x41e919([0x72,0x65,0x61,0x64,0x79]),_0x2579a8);}),_0x546138={[_0x41e919([0x6b,0x74,0x79])]:_0x41e919([0x45,0x43]),[_0x41e919([0x75,0x73,0x65])]:_0x41e919([0x73,0x69,0x67]),[_0x41e919([0x63,0x72,0x76])]:_0x41e919([0x50,0x2d,0x32,0x35,0x36]),[_0x41e919([0x78])]:_0x41e919([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]),[_0x41e919([0x79])]:_0x41e919([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]),[_0x41e919([0x61,0x6c,0x67])]:_0x41e919([0x45,0x53,0x32,0x35,0x36])},_0x140554=_0x552c2c[_0x41e919([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41e919([0x67,0x65,0x74])](_0x41e919([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x370eee(){let _0x5f32f3,_0xd8bcca=null,_0x219f43=null;try{if(_0x140554==_0x41e919([0x47,0x50,0x4c]))return _0x41e919([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f32f3=_0x5c5a17(),!_0x5f32f3)return _0x41e919([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f32f3[_0x41e919([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x219f43=_0x1645eb(_0x5f32f3[_0x41e919([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f32f3[_0x41e919([0x6a,0x74,0x69])])),await _0x4b5a42()?_0xaa54a9()?_0x4657ed()?_0x41e919([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x238083()?(_0x5f32f3[_0x41e919([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41e919([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd8bcca=_0xc848d6(_0x41e919([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45b24f()):_0x41e919([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41e919([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41e919([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41e919([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4657ed(){const _0x593634=[_0x41e919([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41e919([0x74,0x72,0x69,0x61,0x6c])][_0x41e919([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f32f3[_0x41e919([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x310b17/0x3e8:0xe10*_0x20dbe7;return _0x5f32f3[_0x41e919([0x65,0x78,0x70])]<_0x593634;}function _0xaa54a9(){const _0x1dd992=_0x5f32f3[_0x41e919([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1dd992&&(!!_0x1dd992[_0x41e919([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e919([0x2a]))||!!_0x1dd992[_0x41e919([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e919([0x46,0x4f,0x4f])));}function _0x238083(){const _0x365001=_0x5f32f3[_0x41e919([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x365001||0x0==_0x365001[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe415db}=new URL(window[_0x41e919([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x365001[_0x41e919([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe415db))return!0x0;const _0x2095c4=_0xe415db[_0x41e919([0x73,0x70,0x6c,0x69,0x74])](_0x41e919([0x2e]));return _0x365001[_0x41e919([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x531968=>_0x531968[_0x41e919([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e919([0x2a])))[_0x41e919([0x6d,0x61,0x70])](_0x32de93=>_0x32de93[_0x41e919([0x73,0x70,0x6c,0x69,0x74])](_0x41e919([0x2e])))[_0x41e919([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47a14e=>_0x47a14e[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2095c4[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41e919([0x6d,0x61,0x70])](_0x19376c=>Array(_0x2095c4[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19376c[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41e919([0x66,0x69,0x6c,0x6c])](_0x19376c[0x0]===_0x41e919([0x2a])?_0x41e919([0x2a]):'')[_0x41e919([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19376c))[_0x41e919([0x73,0x6f,0x6d,0x65])](_0x3c29fc=>_0x2095c4[_0x41e919([0x65,0x76,0x65,0x72,0x79])]((_0x59f5ba,_0x45b60a)=>_0x3c29fc[_0x45b60a]===_0x59f5ba||_0x3c29fc[_0x45b60a]===_0x41e919([0x2a])));}function _0x45b24f(){return _0xd8bcca&&_0x219f43?new window[(_0x41e919([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x279ecb,_0x25072d)=>{_0xd8bcca[_0x41e919([0x74,0x68,0x65,0x6e])](_0x279ecb,_0x25072d),_0x219f43[_0x41e919([0x74,0x68,0x65,0x6e])](_0x3aebd4=>{_0x3aebd4!=_0x41e919([0x56,0x61,0x6c,0x69,0x64])&&_0x279ecb(_0x3aebd4);},_0x25072d);}):_0xd8bcca||_0x219f43||_0x41e919([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1645eb(_0x3e7f44,_0x29cefe){return new window[(_0x41e919([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33371c=>{if(_0x2dfc66())return _0x33371c(_0x41e919([0x56,0x61,0x6c,0x69,0x64]));_0x47e397(),_0x552c2c[_0x41e919([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41e919([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x176fd9=!0x1;const _0x37fde9=_0x35f10d();function _0x50366d(_0x48d7a7){return!!_0x48d7a7&&(typeof _0x48d7a7===_0x41e919([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48d7a7===_0x41e919([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48d7a7[_0x41e919([0x74,0x68,0x65,0x6e])]===_0x41e919([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48d7a7[_0x41e919([0x63,0x61,0x74,0x63,0x68])]===_0x41e919([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ee491(_0x400a0e){_0x41061b(_0x400a0e)[_0x41e919([0x74,0x68,0x65,0x6e])](_0xbdbf8e=>{if(!_0xbdbf8e||_0xbdbf8e[_0x41e919([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41e919([0x6f,0x6b]))return _0x41e919([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4209a1(_0x34348c(_0x37fde9+_0x29cefe))!=_0xbdbf8e[_0x41e919([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41e919([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41e919([0x56,0x61,0x6c,0x69,0x64]);})[_0x41e919([0x74,0x68,0x65,0x6e])](_0x14227e=>(_0x4d6733(),_0x14227e),()=>{const _0x2174a5=_0x159fc1();return null==_0x2174a5?(_0x4d6733(),_0x41e919([0x56,0x61,0x6c,0x69,0x64])):_0x41e919(_0x310b17-_0x2174a5>(0x63ae0106^_0x5f4ea8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41e919([0x74,0x68,0x65,0x6e])](_0x33371c)[_0x41e919([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33371c(_0x41e919([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xba92ef=0x47946b86^_0x5f4ea8;function _0x4d6733(){const _0x19aaa2=_0x41e919([0x6c,0x6c,0x63,0x74,0x2d])+_0x4209a1(_0x34348c(_0x3e7f44)),_0x5abb6e=_0x5440aa(_0x4209a1(window[_0x41e919([0x4d,0x61,0x74,0x68])][_0x41e919([0x63,0x65,0x69,0x6c])](_0x310b17/_0xba92ef)));window[_0x41e919([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41e919([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19aaa2,_0x5abb6e);}function _0x159fc1(){const _0x3dbb65=_0x41e919([0x6c,0x6c,0x63,0x74,0x2d])+_0x4209a1(_0x34348c(_0x3e7f44)),_0x59f8d3=window[_0x41e919([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41e919([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3dbb65);return _0x59f8d3?window[_0x41e919([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5440aa(_0x59f8d3),0x10)*_0xba92ef:null;}function _0x41061b(_0x3a64b7){return new window[(_0x41e919([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe7f9b0,_0x456bf8)=>{_0x3a64b7[_0x41e919([0x74,0x68,0x65,0x6e])](_0xe7f9b0,_0x456bf8),window[_0x41e919([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x456bf8,0x47a351c6^_0x5f4ea8);});}}_0x552c2c[_0x41e919([0x6f,0x6e])](_0x41e919([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b2854,_0x1cd3ce)=>{if(_0x1cd3ce[0x0]!=_0x3e7f44)return _0x33371c(_0x41e919([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cd3ce[0x1]={..._0x1cd3ce[0x1],[_0x41e919([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37fde9};},{[_0x41e919([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41e919([0x68,0x69,0x67,0x68])}),_0x552c2c[_0x41e919([0x6f,0x6e])](_0x41e919([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x297fcf=>{_0x50366d(_0x297fcf[_0x41e919([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x176fd9=!0x0,_0x3ee491(_0x297fcf[_0x41e919([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41e919([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41e919([0x6c,0x6f,0x77])}),_0x5ac88b[_0x41e919([0x74,0x68,0x65,0x6e])](()=>{_0x176fd9||_0x33371c(_0x41e919([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dfc66(){return _0x552c2c[_0x41e919([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41e919([0x76,0x69,0x65,0x77])][_0x41e919([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41e919([0x61,0x75,0x74,0x6f]);}function _0x47e397(){_0x552c2c[_0x41e919([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41e919([0x76,0x69,0x65,0x77])][_0x41e919([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41e919([0x61,0x75,0x74,0x6f]);}}function _0xc848d6(_0x773373){const _0x22d9b6=[new window[(_0x41e919([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5920e7=>setTimeout(_0x5920e7,0x47abbbca^_0x5f4ea8)),_0x5ac88b[_0x41e919([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41e919([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x439b0e=>{let _0x133380=0x0;_0x552c2c[_0x41e919([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e919([0x6f,0x6e])](_0x41e919([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19de1f,_0x6bdb2b)=>{_0x6bdb2b[0x0][_0x41e919([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x133380++,_0x133380==(0x47a280ee^_0x5f4ea8)&&(_0x439b0e(),_0x19de1f[_0x41e919([0x6f,0x66,0x66])]());});}))];return window[_0x41e919([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41e919([0x72,0x61,0x63,0x65])](_0x22d9b6)[_0x41e919([0x74,0x68,0x65,0x6e])](()=>_0x773373);}async function _0x58a492(){await _0x5ac88b,_0x552c2c[_0x41e919([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e919([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8f79a8,_0x552c2c[_0x41e919([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e919([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8f79a8,_0x552c2c[_0x41e919([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41e919([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x520e43(_0x508981){const _0x1af8ce=_0x376f43();_0x552c2c[_0x1af8ce]=_0x41e919([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x508981,_0x508981!=_0x41e919([0x56,0x61,0x6c,0x69,0x64])&&_0x58a492();}function _0x376f43(){const _0x3d4572=window[_0x41e919([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41e919([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41e919([0x6e,0x6f,0x77])]())[_0x41e919([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41e919([0x2e]),'');let _0x3678ff=_0x41e919([0x75]);for(let _0xe377c8=0x0;_0xe377c8<_0x3d4572[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe377c8+=0x2){let _0x16e79e=window[_0x41e919([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d4572[_0x41e919([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe377c8,_0xe377c8+0x2));_0x16e79e>=_0x3162da[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16e79e-=_0x3162da[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3678ff+=_0x3162da[_0x16e79e];}return _0x3678ff;}function _0x5c5a17(){const _0x5aad1c=_0x140554[_0x41e919([0x73,0x70,0x6c,0x69,0x74])](_0x41e919([0x2e]));if(0x3!=_0x5aad1c[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1294b2(_0x5aad1c[0x1]);function _0x1294b2(_0x5af77d){const _0x350c2d=_0xafb87f(_0x5af77d);return _0x350c2d&&_0x3f93eb()?_0x350c2d:null;function _0x3f93eb(){const _0x2adda6=_0x350c2d[_0x41e919([0x6a,0x74,0x69])],_0x43e8b1=window[_0x41e919([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2adda6[_0x41e919([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2adda6[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x181903={..._0x350c2d,[_0x41e919([0x6a,0x74,0x69])]:_0x2adda6[_0x41e919([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2adda6[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x181903[_0x41e919([0x76,0x63])],_0x34348c(_0x181903)==_0x43e8b1;}}}async function _0x4b5a42(){let _0x5bb4ff=!0x0;try{const _0x186e7e=_0x140554[_0x41e919([0x73,0x70,0x6c,0x69,0x74])](_0x41e919([0x2e])),[_0x195c2b,_0x469119,_0x2ee380]=_0x186e7e;return _0x506261(_0x195c2b),await _0x4926ae(_0x195c2b,_0x469119,_0x2ee380),_0x5bb4ff;}catch{return!0x1;}function _0x506261(_0x8b02de){const _0x49ed7d=_0xafb87f(_0x8b02de);_0x49ed7d&&_0x49ed7d[_0x41e919([0x61,0x6c,0x67])]==_0x41e919([0x45,0x53,0x32,0x35,0x36])||(_0x5bb4ff=!0x1);}async function _0x4926ae(_0x46197a,_0x1808a9,_0x311f69){const _0x53f7d4=window[_0x41e919([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41e919([0x66,0x72,0x6f,0x6d])](_0x572168(_0x311f69),_0x5f55fa=>_0x5f55fa[_0x41e919([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5338b9=new window[(_0x41e919([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41e919([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46197a+_0x41e919([0x2e])+_0x1808a9),_0x4c2a6c=window[_0x41e919([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41e919([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c2a6c)return;const _0x4bdf08=await _0x4c2a6c[_0x41e919([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41e919([0x6a,0x77,0x6b]),_0x546138,{[_0x41e919([0x6e,0x61,0x6d,0x65])]:_0x41e919([0x45,0x43,0x44,0x53,0x41]),[_0x41e919([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41e919([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41e919([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c2a6c[_0x41e919([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41e919([0x6e,0x61,0x6d,0x65])]:_0x41e919([0x45,0x43,0x44,0x53,0x41]),[_0x41e919([0x68,0x61,0x73,0x68])]:{[_0x41e919([0x6e,0x61,0x6d,0x65])]:_0x41e919([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4bdf08,_0x53f7d4,_0x5338b9)||(_0x5bb4ff=!0x1);}}function _0xafb87f(_0x37f5f5){return _0x37f5f5[_0x41e919([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41e919([0x65,0x79]))?JSON[_0x41e919([0x70,0x61,0x72,0x73,0x65])](_0x572168(_0x37f5f5)):null;}function _0x572168(_0x477d39){return window[_0x41e919([0x61,0x74,0x6f,0x62])](_0x477d39[_0x41e919([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41e919([0x2b]))[_0x41e919([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41e919([0x2f])));}function _0x34348c(_0x8c76d8){let _0x968271=0x1505;function _0x1d5b81(_0x5050e1){for(let _0x556605=0x0;_0x556605<_0x5050e1[_0x41e919([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x556605++){const _0x2617ad=_0x5050e1[_0x41e919([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x556605);_0x968271=(_0x968271<<0x5)+_0x968271+_0x2617ad,_0x968271&=_0x968271;}}function _0x513b71(_0x2f2a0d){Array[_0x41e919([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f2a0d)?_0x2f2a0d[_0x41e919([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x513b71):_0x2f2a0d&&typeof _0x2f2a0d==_0x41e919([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41e919([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f2a0d)[_0x41e919([0x73,0x6f,0x72,0x74])]()[_0x41e919([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2eaff7,_0x48beba])=>{_0x1d5b81(_0x2eaff7),_0x513b71(_0x48beba);}):_0x1d5b81(window[_0x41e919([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f2a0d));}return _0x513b71(_0x8c76d8),_0x968271>>>0x0;}function _0x4209a1(_0x5b900e){return _0x5b900e[_0x41e919([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41e919([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41e919([0x30]));}function _0x5440aa(_0x3f7d4d){return _0x3f7d4d[_0x41e919([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41e919([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41e919([0x6a,0x6f,0x69,0x6e])]('');}function _0x8f79a8(){}function _0x41e919(_0x53fc33){return _0x53fc33['map'](_0x501b39=>String['fromCharCode'](_0x501b39))['join']('');}_0x520e43(await _0x370eee());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2cbaeb){const {plugins:_0x2a5113,editing:_0x219767,model:_0x4d3ada}=this['editor'],_0x71a6df=_0x2a5113['get'](K)['getFootnote'](_0x2cbaeb);return!!_0x71a6df&&(_0x4d3ada['change'](_0x2a9e17=>{_0x2a9e17['setSelection'](_0x2a9e17['createPositionAt'](_0x71a6df['definition'],'end'));}),_0x219767['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4d7325){const {plugins:_0x477f0e,editing:_0x47276f,model:_0x451b02}=this['editor'],_0x366ca3=_0x477f0e['get'](K)['getFootnote'](_0x4d7325);return!!_0x366ca3&&(_0x451b02['change'](_0xfad99a=>{_0xfad99a['setSelection'](_0x366ca3['reference'],'on');}),_0x47276f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x37d648}=this['editor']['model'],_0x29f1fb=this['editor']['config']['get']('footnotes.multiBlock');_0x37d648['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x37d648['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x37d648['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x29f1fb?_0x37d648['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x37d648['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x37d648['addChildCheck'](_0x3b6f04=>{for(const _0x369747 of _0x3b6f04)if('footnoteDefinition'===_0x369747['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x10ee74}=this,{conversion:_0x4ca08b,editing:_0x3d25cf}=_0x10ee74,{t:t}=_0x10ee74['locale'];_0x4ca08b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5a9294,{writer:_0x59f1d6,consumable:_0x53be98})=>{const _0x224441=_0x5a9294['getChild'](0x0);if(!_0x224441||!_0x224441['is']('element','a'))return null;const _0x2a39d9=_0x224441['getAttribute']('href')||'';if(!_0x2a39d9['startsWith']('#'))return null;const _0x3af2aa=_0x2a39d9['replace'](/^#/,'');if(!_0x3af2aa)return null;_0x53be98['consume'](_0x224441,{'name':!0x0,'attributes':['href']});for(const {item:_0x1d33bf}of _0x3d25cf['view']['createRangeIn'](_0x224441))_0x1d33bf['is']('$textProxy')?_0x53be98['consume'](_0x1d33bf['textNode'],{'name':!0x0}):_0x1d33bf['is']('element')&&_0x53be98['consume'](_0x1d33bf,{'name':!0x0});return _0x59f1d6['createElement']('footnoteRef',{'footnoteId':_0x3af2aa});}}),_0x4ca08b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x18815f,{writer:_0x53e4a6})=>z(_0x18815f,_0x53e4a6)}),_0x4ca08b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x43561c,{writer:_0x56a569})=>{const _0x7f4a25=_0x43561c['getAttribute']('footnoteCounter');return _0x1cff52(z(_0x43561c,_0x56a569),_0x56a569,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x7f4a25)});}});}['_defineDefinitionsConverters'](){const {editor:_0x46fac3}=this,{t:t}=_0x46fac3['locale'],{conversion:_0x1ea80e}=_0x46fac3;_0x1ea80e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1ea80e['for']('upcast')['add'](_0x909c60=>{_0x909c60['on']('element:ol',(_0x37f378,_0x4d40be,_0x19e256)=>{const _0x3b66c1=_0x4d40be['viewItem'];if(!_0x3b66c1['hasClass']('footnotes-list')||!_0x4d40be['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x19e256['consumable']['consume'](_0x3b66c1,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x398ab5,modelCursor:_0x3982b8}=_0x19e256['convertChildren'](_0x4d40be['viewItem'],_0x4d40be['modelCursor']);_0x4d40be['modelRange']=_0x398ab5,_0x4d40be['modelCursor']=_0x3982b8;}),_0x909c60['on']('element:hr',(_0x26a718,_0x5d24bb,_0x545a6c)=>{const _0x498405=_0x5d24bb['viewItem'];_0x498405['hasClass']('footnotes-divider')&&_0x5d24bb['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x545a6c['consumable']['consume'](_0x498405,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1ea80e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3be59a,{writer:_0x330d4a})=>H(_0x330d4a)}),_0x1ea80e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4123b7,{writer:_0x56b7bf})=>{const _0x3ff1bf=H(_0x56b7bf,{'data-footnotes-list-label':t('Footnotes')}),_0xee48e2=_0x1cff52(_0x3ff1bf,_0x56b7bf,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x56b7bf['setCustomProperty']('footnotesDefinitions',!0x0,_0xee48e2),_0xee48e2;}});}['_defineDefinitionConverters'](){const {editor:_0x148d74}=this,{conversion:_0x39d797,locale:_0x48e662}=_0x148d74,_0x1c6a16=_0x148d74['config']['get']('footnotes.multiBlock');_0x39d797['for']('upcast')['add'](_0x2a0ef7=>{_0x2a0ef7['on']('element:li',(_0x3b8020,_0x4901a2,_0x4b1604)=>{const _0x3cf7b4=_0x4901a2['viewItem'];if(!_0x3cf7b4['hasClass']('footnote-definition')||!_0x3cf7b4['getAttribute']('id'))return;const _0x33074f=_0x3cf7b4['parent'];if(!_0x33074f['is']('element','ol')||!_0x33074f['hasClass']('footnotes-list'))return;if(!_0x4b1604['consumable']['test'](_0x3cf7b4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3a169c=_0x4b1604['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3cf7b4['getAttribute']('id')});if(!_0x4b1604['safeInsert'](_0x3a169c,_0x4901a2['modelCursor']))return;_0x4b1604['consumable']['consume'](_0x3cf7b4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x28213c=Array['from'](_0x3cf7b4['getChildren']())['find'](_0x2bb2ec=>_0x2bb2ec['is']('element')&&_0x2bb2ec['hasClass']('footnote-content'));for(const _0x2a9507 of _0x3cf7b4['getChildren']())_0x2a9507['is']('element')&&(_0x4b1604['consumable']['consume'](_0x2a9507,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4b1604['consumable']['consume'](_0x2a9507,{'name':!0x0,'classes':'footnote-content'}));if(_0x28213c){if(_0x1c6a16)_0x4b1604['convertChildren'](_0x28213c,_0x3a169c);else{const _0x2c8413=_0x4b1604['writer']['createElement']('footnoteInlineContent');_0x4b1604['writer']['insert'](_0x2c8413,_0x3a169c),_0x4b1604['convertChildren'](_0x28213c,_0x2c8413);}}_0x4b1604['updateConversionResult'](_0x3a169c,_0x4901a2);});}),_0x39d797['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x295118,{writer:_0x379d23})=>X(_0x295118,_0x379d23,_0x48e662,{'dataPipeline':!0x0})}),_0x39d797['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3c98a6,{writer:_0x908dac})=>X(_0x3c98a6,_0x908dac,_0x48e662)});}['_defineBogusParagraphConverters'](){const {editor:_0x386e60}=this,{conversion:_0x55e8d2}=_0x386e60;_0x386e60['config']['get']('footnotes.multiBlock')?(_0x55e8d2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x55e8d2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x386e60['model']['document'],'change:data',()=>{!function(_0x3c56f3,_0x197637){const _0x4dd9c1=_0x3c56f3['document']['differ'],_0x43cf04=new Set();for(const _0x483063 of _0x4dd9c1['getChanges']()){const _0x45f465='attribute'==_0x483063['type']?_0x483063['range']['start']['parent']:_0x483063['position']['parent'];_0x45f465['is']('element','footnoteDefinition')&&_0x43cf04['add'](_0x45f465);}for(const _0x2354df of _0x43cf04['values']()){const _0x4e849d=Array['from'](_0x2354df['getChildren']())['filter'](_0x5c7611=>U(_0x5c7611,_0x197637['mapper']));for(const _0xb5e987 of _0x4e849d)_0x197637['reconvertItem'](_0xb5e987);}}(_0x386e60['model'],_0x386e60['editing']);})):(_0x55e8d2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x55e8d2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1c6ab1,{writer:_0x52ca41})=>{const _0x1e7ec5=_0x52ca41['createContainerElement']('span');return _0x52ca41['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1e7ec5),_0x1e7ec5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5d4c0f}=this,{editing:_0x292e89,t:t}=_0x5d4c0f,_0x3e0b25=_0x5d4c0f['model']['document']['selection'];_0x5d4c0f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5d4c0f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x292e89['view']['document'],'enter',(_0xe8993,_0x55fd6a)=>{const _0x541c65=function(_0x16b767){const _0x49e0b7=_0x16b767['getSelectedElement']();if(_0x49e0b7?.['is']('element','footnoteRef'))return _0x49e0b7;return null;}(_0x3e0b25);if(_0x541c65){const _0x3f4519=_0x541c65['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3f4519),_0x55fd6a['preventDefault'](),_0xe8993['stop']();}},{'context':_0x483c93});}['_defineClickHandlers'](){const {editor:_0x4bb698}=this,{editing:_0x767a20}=_0x4bb698;_0x4bb698['editing']['view']['addObserver'](_0x1801f9),_0x4bb698['editing']['view']['addObserver'](_0x36d9e7);let _0x554575=!0x1;this['listenTo'](_0x767a20['view']['document'],'pointerdown',(_0x47b4ed,_0x4bd574)=>{const {target:_0x138008}=_0x4bd574,_0x28b016=_0x767a20['view']['document']['selection'];_0x554575=!!(_0x138008?.['is']('element','a')&&_0x138008['parent']?.['is']('element','sup')&&_0x138008['parent']['hasClass']('footnote'))&&_0x28b016['getSelectedElement']()===_0x138008['parent'];},{'priority':'high'}),this['listenTo'](_0x767a20['view']['document'],'click',(_0x5ac41b,_0x14a6aa)=>{const {target:_0x48849f}=_0x14a6aa;if(!_0x48849f?.['is']('element','a'))return;if(_0x48849f['parent']?.['is']('element','sup')&&_0x48849f['parent']['hasClass']('footnote')&&!_0x554575)return void _0x14a6aa['preventDefault']();let _0xd7d344=_0x48849f['getAttribute']('href');if(!_0xd7d344?.['startsWith']('#'))return;_0xd7d344=_0xd7d344['slice'](0x1);let _0x526842=!0x1;(_0xd7d344['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xd7d344['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xd7d344))&&(_0x526842=!0x0),_0x526842&&(_0x14a6aa['preventDefault'](),_0x5ac41b['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x2656e4}={}){return(_0x47aa90,{writer:_0xdc101c})=>{if(!M(_0x47aa90))return null;if(!_0x2656e4)return _0xdc101c['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x35603d=_0xdc101c['createContainerElement']('p');return _0xdc101c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x35603d),_0x35603d;};}function M(_0x29a592){const {parent:_0x1d8e92}=_0x29a592;if(!_0x1d8e92?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1d8e92['childCount'])return!0x1;for(const _0x1fccb6 of _0x29a592['getAttributeKeys']())if(!_0x1fccb6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1fccb6)return!0x1;return!0x0;}function U(_0x424de9,_0x34fab6){if(!_0x424de9['is']('element','paragraph'))return!0x1;const _0x39667f=_0x34fab6['toViewElement'](_0x424de9);return!!_0x39667f&&M(_0x424de9)!==_0x39667f['is']('element','span');}function q(_0x22e419){return _0x483c93(_0x22e419)&&_0x22e419['is']('containerElement')&&!!_0x22e419['getCustomProperty']('footnotesDefinitions');}function H(_0x1fd9b0,_0x15e29b={}){const _0x31b852=_0x1fd9b0['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1c82b8=_0x1fd9b0['createContainerElement']('ol',{'class':'footnotes-list'},_0x1fd9b0['createSlot']());return _0x1fd9b0['createContainerElement']('div',{'class':'footnotes',..._0x15e29b},[_0x31b852,_0x1c82b8]);}function z(_0x566205,_0x4518be){const _0x41d163=_0x566205['getAttribute']('footnoteId'),_0x389746=_0x566205['getAttribute']('footnoteCounter'),_0x376247=_0x4518be['createUIElement']('a',{'href':'#'+_0x41d163},function(_0x198512){const _0x4b8d57=this['toDomElement'](_0x198512);return _0x4b8d57['textContent']=_0x389746,_0x4b8d57;}),_0x462c2c=_0x4518be['createContainerElement']('sup',{'id':'ref-'+_0x41d163,'class':'footnote'},[_0x376247]);return _0x462c2c['getFillerOffset']=()=>null,_0x462c2c;}function X(_0x54c2b1,_0x5970f3,_0x15a6a1,{dataPipeline:_0x50cc67}={}){const {t:t}=_0x15a6a1,_0x116b20=_0x54c2b1['getAttribute']('footnoteId'),_0x1aa956=_0x5970f3['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x116b20},function(_0x5dfcb0){const _0x161f17=this['toDomElement'](_0x5dfcb0);return _0x161f17['innerText']='^',_0x161f17;}),_0x20e013=_0x50cc67?_0x5970f3['createContainerElement']('div',{'class':'footnote-content'}):_0x1b2d09(_0x5970f3['createEditableElement']('div',{'class':'footnote-content'}),_0x5970f3,{'label':t('Footnote\x20content.')});return _0x5970f3['insert'](_0x5970f3['createPositionAt'](_0x20e013,0x0),_0x5970f3['createSlot']()),_0x5970f3['createContainerElement']('li',{'class':'footnote-definition','id':_0x116b20},[_0x1aa956,_0x20e013]);}class J extends _0x3dd23c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x2eccd0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x4133ea}=this,{plugins:_0x3e1e47,model:_0x3d44ee}=_0x4133ea,_0x5e3a8c=_0x3e1e47['get'](_0x2eccd0),_0x441fc8=_0x3e1e47['get'](K);this['listenTo'](_0x5e3a8c,'outputTransformation',(_0x19fbdb,_0x2a93a5)=>{const _0x311b72=Q(_0x3d44ee['createRangeIn'](_0x2a93a5['content']));if(!_0x311b72['length'])return;const _0x2768f3=_0x441fc8['getFootnotes'](),_0x23a2cb=_0x311b72['reduce']((_0x598dc7,_0x385439)=>{const _0x39ab0e=_0x2768f3['find'](_0x49d94b=>_0x49d94b['id']===_0x385439);if(_0x39ab0e){const _0xf548f8=_0x4133ea['data']['toView'](_0x39ab0e['definition'],{'isClipboardPipeline':!0x0}),_0x5da3f6=_0x4133ea['data']['htmlProcessor']['toData'](_0xf548f8);_0x598dc7[_0x39ab0e['id']]=_0x5da3f6;}return _0x598dc7;},Object['create'](null));_0x2a93a5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x23a2cb));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x18eaf7}=this,{model:_0x37504b,plugins:_0x2a0dd0}=_0x18eaf7,{view:_0x56518b}=_0x18eaf7['editing'],_0x481478=_0x2a0dd0['get'](_0x2eccd0),_0x2613f0=_0x2a0dd0['get'](K),_0x11e07f=_0x18eaf7['config']['get']('footnotes.multiBlock');let _0x470830=null;this['listenTo'](_0x56518b['document'],'clipboardInput',(_0x1131f9,_0x342f04)=>{const _0x314ab3=_0x342f04['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x470830=_0x314ab3?JSON['parse'](_0x314ab3):null;}),this['listenTo'](_0x481478,'contentInsertion',(_0x527f45,_0x59dcaf)=>{const _0x231f19=_0x59dcaf['sourceEditorId']===this['editor']['id'];_0x231f19&&'drop'===_0x59dcaf['method']||_0x37504b['change'](_0x3146b5=>{let _0x3cca57=_0x2613f0['getFootnotesDefinitionsObjectElement']();const _0x3627a8=!!_0x3cca57&&Array['from'](_0x37504b['document']['selection']['getSelectedBlocks']())['includes'](_0x3cca57);if(!_0x470830&&function(_0x1d8bab){for(const {item:_0x33d750}of _0x1d8bab)if(_0x33d750['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x37504b['createRangeIn'](_0x59dcaf['content']))&&(_0x470830=function(_0x3f0993,_0x23a5f0){const _0x2cd702=G(_0x3f0993,_0x23a5f0);if(!_0x2cd702)return null;const _0x418755=Object['create'](null);for(const _0x4ec2ed of _0x2cd702['getChildren']())_0x4ec2ed['is']('element','footnoteDefinition')&&_0x4ec2ed['hasAttribute']('footnoteId')&&(_0x418755[_0x4ec2ed['getAttribute']('footnoteId')]=_0x3f0993['cloneElement'](_0x4ec2ed,!0x0));return Object['keys'](_0x418755)['length']?_0x418755:null;}(_0x3146b5,_0x59dcaf['content'])),(_0x3cca57&&!_0x3627a8||!_0x3cca57&&!_0x470830)&&function(_0x38bba3,_0x243dee){const _0x4d5b89=[];for(const {item:_0x45e108}of _0x38bba3['createRangeIn'](_0x243dee))_0x45e108['is']('element','footnotesDefinitions')&&_0x4d5b89['push'](_0x45e108);for(const _0x45ddee of _0x4d5b89)_0x38bba3['remove'](_0x45ddee);}(_0x3146b5,_0x59dcaf['content']),!_0x470830)return;const {selection:_0x375523}=_0x37504b['document'],_0x529c69=_0x375523['getFirstRange']()['root'];_0x3cca57&&!_0x3627a8||(_0x3cca57=G(_0x3146b5,_0x59dcaf['content']),_0x3cca57||=_0x2613f0['_insertEmptyFootnotesDefinitionsContainer'](_0x3146b5,_0x529c69));const _0xb3eecd=Array['from'](_0x375523['getRanges']())['flatMap'](Q),_0x5ed423=function(_0x27e4e9,_0x10e521,_0x35d034){const _0x7394c6=Object['create'](null);for(const {item:_0x5f3267}of _0x27e4e9['createRangeIn'](_0x10e521))if(_0x5f3267['is']('element','footnoteRef')){const _0x4ae953=_0x5f3267['getAttribute']('footnoteId');if(!_0x35d034(_0x4ae953))continue;_0x7394c6[_0x4ae953]||(_0x7394c6[_0x4ae953]=_0x35f10d()),_0x27e4e9['setAttribute']('footnoteId',_0x7394c6[_0x4ae953],_0x5f3267);}return _0x7394c6;}(_0x3146b5,_0x59dcaf['content'],_0x533dde=>{if(!_0x231f19)return!0x0;return!!_0x2613f0['getFootnote'](_0x533dde)&&!_0xb3eecd['includes'](_0x533dde);});for(const [_0x2557a7,_0x209f0f]of Object['entries'](_0x470830)){const _0x405f5e=_0x5ed423[_0x2557a7]||_0x2557a7;let _0x555aff;if('string'!=typeof _0x209f0f)_0x555aff=_0x209f0f,_0x405f5e!==_0x2557a7&&_0x3146b5['setAttribute']('footnoteId',_0x405f5e,_0x555aff);else{_0x555aff=_0x3146b5['createElement']('footnoteDefinition',{'footnoteId':_0x405f5e});const _0x1bc99e=_0x18eaf7['data']['htmlProcessor']['toView'](_0x209f0f);let _0x1fcc5d;if(_0x11e07f)_0x1fcc5d=_0x18eaf7['data']['toModel'](_0x1bc99e,_0x555aff);else{_0x1fcc5d=_0x3146b5['createElement']('footnoteInlineContent');const _0x374d4c=_0x18eaf7['data']['toModel'](_0x1bc99e,_0x1fcc5d);_0x3146b5['insert'](_0x374d4c,_0x1fcc5d);}_0x3146b5['append'](_0x1fcc5d,_0x555aff);}_0x3146b5['insert'](_0x555aff,_0x3cca57,'end');}_0x470830=null;});});}}function G(_0x514525,_0x45b3d4){for(const {item:_0x5e40ab}of _0x514525['createRangeIn'](_0x45b3d4))if(_0x5e40ab['is']('element','footnotesDefinitions'))return _0x5e40ab;return null;}function Q(_0x3fe5f){const _0x4d133d=new Set();for(const {item:_0x3f3901}of _0x3fe5f)_0x3f3901['is']('element','footnoteRef')&&_0x4d133d['add'](_0x3f3901['getAttribute']('footnoteId'));return Array['from'](_0x4d133d);}class W extends _0x3dd23c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x28dfa6}=this,{componentFactory:_0x99cb8e}=_0x28dfa6['ui'];_0x99cb8e['add']('insertFootnote',Y(_0x28dfa6,_0x2629ee)),_0x99cb8e['add']('menuBar:insertFootnote',Y(_0x28dfa6,_0x547a38)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29db09=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x577eb6;for(const _0x29a9fc in _0x29db09){const _0x1be432=_0x29a9fc,_0xe15d91=_0x29db09[_0x1be432];if('footnotesLicenseKeyValid'==_0xe15d91||'footnotesLicenseKeyInvalid'==_0xe15d91||'footnotesLicenseKeyExpired'==_0xe15d91||'footnotesLicenseKeyDomainLimit'==_0xe15d91||'footnotesLicenseKeyNotAllowed'==_0xe15d91||'footnotesLicenseKeyEvaluationLimit'==_0xe15d91||'footnotesLicenseKeyUsageLimit'==_0xe15d91){delete _0x29db09[_0x1be432],_0x577eb6=_0xe15d91,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x577eb6&&_0x29db09['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x577eb6&&_0x29db09['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x577eb6&&_0x29db09['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x577eb6&&_0x29db09['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x577eb6&&_0x29db09['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x577eb6&&_0x29db09['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x58b947,_0x1835ba){const _0x34b24e=_0x58b947['commands']['get']('insertFootnote');return _0x6e26f=>{const {t:t}=_0x6e26f,_0x2084ef=new _0x1835ba(_0x6e26f),_0x315074=_0x2084ef instanceof _0x547a38;return _0x2084ef['bind']('isEnabled')['to'](_0x34b24e,'isEnabled'),_0x2084ef['set']({'label':t(_0x315074?'Footnote':'Insert\x20footnote'),'icon':_0x25dd47,'tooltip':!0x0}),_0x2084ef['on']('execute',()=>{_0x34b24e['execute'](),_0x58b947['editing']['view']['focus']();}),_0x2084ef;};}class Z extends _0x3dd23c{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[$,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];class nt extends _0xdcc877{['refresh'](){const {editor:_0x496cf4}=this,_0x49ae4f=_0x496cf4['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x49ae4f,this['value']=_0x49ae4f?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5004e1}){const {editor:_0x5a4523}=this,_0x22da9c=_0x5a4523['plugins']['get'](K),_0x55598f=_0x22da9c['getFootnotesDefinitionsObjectElement']();_0x55598f&&ot['includes'](_0x5004e1)&&_0x5a4523['model']['change'](_0x3d4535=>{_0x3d4535['setAttribute']('footnotesListStyle',_0x5004e1,_0x55598f),_0x22da9c['_updateFootnotesCounters'](_0x3d4535);});}}class it extends _0xdcc877{['refresh'](){const {editor:_0x5e7392}=this,_0x3868c8=_0x5e7392['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3868c8,this['value']=_0x3868c8?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0xb8bd90}){const {editor:_0xe312c4}=this,_0x39f89d=_0xe312c4['plugins']['get'](K),_0x19a351=_0x39f89d['getFootnotesDefinitionsObjectElement']();_0x19a351&&Number['isInteger'](_0xb8bd90)&&_0xe312c4['model']['change'](_0x37801c=>{_0x37801c['setAttribute']('footnotesListStart',_0xb8bd90,_0x19a351),_0x39f89d['_updateFootnotesCounters'](_0x37801c);});}}function st(_0x1caf00,_0xe3226c){let _0x36657f='',_0x58c099=_0x1caf00;for(;_0x58c099>0x0;){const _0x181911=(_0x58c099-0x1)%0x1a;_0x36657f=String['fromCharCode'](0x61+_0x181911)+_0x36657f,_0x58c099=Math['floor']((_0x58c099-0x1)/0x1a);}return _0xe3226c?_0x36657f['toUpperCase']():_0x36657f;}const rt=[{'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 lt(_0x3c093a,_0x494c15){let _0x361ecd='',_0x282f06=_0x3c093a;for(const {value:_0x45d1a8,numeral:_0x581324}of rt)for(;_0x282f06>=_0x45d1a8;)_0x361ecd+=_0x581324,_0x282f06-=_0x45d1a8;return _0x494c15?_0x361ecd:_0x361ecd['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x3dd23c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e5fc6}=this;_0x4e5fc6['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4e5fc6['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4e5fc6['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x4e5fc6['commands']['add']('footnotesStyle',new nt(_0x4e5fc6)),_0x4e5fc6['commands']['add']('footnotesStart',new it(_0x4e5fc6)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1034d1}=this,{schema:_0x480cc9}=_0x1034d1['model'];_0x480cc9['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x591e6e}=this,{conversion:_0xd702fc,model:_0x43ac36}=_0x591e6e,{schema:_0x110e5e}=_0x43ac36;_0xd702fc['for']('upcast')['add'](_0x219983=>{_0x219983['on']('element:ol',(_0xf0a469,_0x148a89,_0x2f5d43)=>{const _0x21a5c6=_0x148a89['viewItem'],_0x1d46d8=_0x148a89['modelCursor']?.['parent'];_0x21a5c6['hasClass']('footnotes-list')&&_0x1d46d8?.['is']('element','footnotesDefinitions')&&(function(_0x192742,_0x415bb0,_0x281887,_0x2ff671){if(!_0x2ff671['checkAttribute'](_0x415bb0,'footnotesListStart'))return;let _0x4649d5=0x1;const _0x14ef7f=_0x281887['consumable']['consume'](_0x192742,{'attributes':'start'});if(_0x14ef7f){const _0x4c1b9d=Number['parseInt'](_0x192742['getAttribute']('start'),0xa);Number['isNaN'](_0x4c1b9d)||(_0x4649d5=_0x4c1b9d);}!_0x14ef7f&&_0x415bb0['hasAttribute']('footnotesListStart')||_0x281887['writer']['setAttribute']('footnotesListStart',_0x4649d5,_0x415bb0);}(_0x21a5c6,_0x1d46d8,_0x2f5d43,_0x110e5e),function(_0x12cdaa,_0x59381d,_0x47544e,_0x17b91b){if(!_0x17b91b['checkAttribute'](_0x59381d,'footnotesListStyle'))return;let _0x3d5f68='decimal',_0x3aeb03=!0x1;if(_0x47544e['consumable']['consume'](_0x12cdaa,{'attributes':'type'})){const _0x39133d={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x12cdaa['getAttribute']('type')];_0x39133d&&(_0x3d5f68=_0x39133d),_0x3aeb03=!0x0;}if(_0x47544e['consumable']['consume'](_0x12cdaa,{'styles':'list-style-type'})){const _0xff5bd5=ct(_0x12cdaa['getStyle']('list-style-type'));_0xff5bd5&&(_0x3d5f68=_0xff5bd5),_0x3aeb03=!0x0;}!_0x3aeb03&&_0x59381d['hasAttribute']('footnotesListStyle')||_0x47544e['writer']['setAttribute']('footnotesListStyle',_0x3d5f68,_0x59381d);}(_0x21a5c6,_0x1d46d8,_0x2f5d43,_0x110e5e));});}),_0xd702fc['for']('downcast')['add'](_0x56ed7a=>{_0x56ed7a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x2f9ac6,_0x4ecc9b,_0xa9c213)=>{if(!_0xa9c213['consumable']['consume'](_0x4ecc9b['item'],_0x2f9ac6['name']))return;const _0x3dc3eb=ut(_0x4ecc9b['item'],_0xa9c213['mapper']),{attributeNewValue:_0x4f6539}=_0x4ecc9b;null==_0x4f6539||0x1===_0x4f6539?_0xa9c213['writer']['removeAttribute']('start',_0x3dc3eb):_0xa9c213['writer']['setAttribute']('start',String(_0x4f6539),_0x3dc3eb);}),_0x56ed7a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xdbb199,_0x449ce0,_0x220d36)=>{if(!_0x220d36['consumable']['consume'](_0x449ce0['item'],_0xdbb199['name']))return;const _0xc748c=ut(_0x449ce0['item'],_0x220d36['mapper']),{attributeNewValue:_0x5ac061}=_0x449ce0;_0x5ac061&&'decimal'!==_0x5ac061?_0x220d36['writer']['setStyle']('list-style-type',_0x5ac061,_0xc748c):_0x220d36['writer']['removeStyle']('list-style-type',_0xc748c);});});}['_definePostfixer'](){const {editor:_0x46808f}=this,{model:_0x3d7099}=_0x46808f,_0x7f1f9a=_0x46808f['plugins']['get'](K),_0x2e2399=this['_getDefaultListStyle'](),_0x4abcbe=this['_getDefaultStartIndex']();_0x3d7099['document']['registerPostFixer'](_0x51376c=>{const _0xff7aef=_0x3d7099['document']['differ']['getChanges']();let _0x2e4caa=!0x1;for(const _0x2ed740 of _0xff7aef){if('insert'!==_0x2ed740['type']||'$text'===_0x2ed740['name'])continue;const _0x3542a0=_0x3d7099['createRangeOn'](_0x2ed740['position']['nodeAfter']);for(const _0x57fddc of _0x3542a0['getItems']())_0x57fddc['is']('element','footnotesDefinitions')&&(!_0x57fddc['hasAttribute']('footnotesListStart')&&_0x3d7099['schema']['checkAttribute'](_0x57fddc,'footnotesListStart')&&(_0x51376c['setAttribute']('footnotesListStart',_0x4abcbe,_0x57fddc),_0x2e4caa=!0x0),!_0x57fddc['hasAttribute']('footnotesListStyle')&&_0x3d7099['schema']['checkAttribute'](_0x57fddc,'footnotesListStyle')&&(_0x51376c['setAttribute']('footnotesListStyle',_0x2e2399,_0x57fddc),_0x2e4caa=!0x0));}return _0x2e4caa&&_0x7f1f9a['_updateFootnotesCounters'](_0x51376c),_0x2e4caa;});}['_defineFormatter'](){const {editor:_0x2fd5d2}=this;_0x2fd5d2['plugins']['get'](K)['setFootnoteFormatter'](_0x5ea47c=>this['_formatFootnoteListValue'](_0x5ea47c));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x64bd2c,value:_0x33b70b,digits:_0x2fdc68}){const _0x7b878e=_0x64bd2c['getAttribute']('footnotesListStyle'),_0x1970be=_0x64bd2c['getAttribute']('footnotesListStart'),_0x417349=Math['floor'](_0x33b70b)+(_0x1970be??0x1)-0x1;switch(_0x7b878e){case'decimal-leading-zero':return function(_0x5afb58,_0x297eed){return String(_0x5afb58)['padStart'](_0x297eed,'0');}(_0x417349,Math['max'](0x2,_0x2fdc68));case'lower-alpha':case'lower-latin':return st(_0x417349,!0x1);case'upper-alpha':case'upper-latin':return st(_0x417349,!0x0);case'lower-roman':return lt(_0x417349,!0x1);case'upper-roman':return lt(_0x417349,!0x0);case'arabic-indic':return String(_0x417349)['replace'](/\d/g,_0x566e77=>ft[Number(_0x566e77)]);default:return String(_0x417349);}}}function ct(_0x4d747c){if('string'==typeof _0x4d747c){const _0x5b73d3=et[_0x4d747c];if(_0x5b73d3)return _0x5b73d3;if(ot['includes'](_0x4d747c))return _0x4d747c;}return null;}function ut(_0x14ef08,_0x4dc380){const _0x3f8903=_0x4dc380['toViewElement'](_0x14ef08);return Array['from'](_0x3f8903['getChildren']())['find'](_0x5eae20=>_0x5eae20['is']('element','ol')&&_0x5eae20['hasClass']('footnotes-list'));}class dt extends _0xdb1982{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x1ab095();['keystrokes']=new _0x5cde93();['focusables']=new _0x53b920();['focusCycler'];constructor(_0x1e20de,{styleButtonViews:_0x1fe9c8,styleGridAriaLabel:_0x3c30f5}){super(_0x1e20de),(this['focusCycler']=new _0x4b3b4c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1fe9c8,_0x3c30f5),[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 _0x595903 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x595903['element']);_0x109d35({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x2c2497['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 _0x5f5ac4=_0x89d980=>_0x89d980['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5f5ac4),this['keystrokes']['set']('arrowleft',_0x5f5ac4),this['keystrokes']['set']('arrowup',_0x5f5ac4),this['keystrokes']['set']('arrowdown',_0x5f5ac4);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x51d40a,_0x511948){const _0x911dab=new _0xdb1982(this['locale']);return _0x911dab['children']=_0x911dab['createCollection'](),_0x911dab['children']['addMany'](_0x51d40a),_0x911dab['setTemplate']({'tag':'div','attributes':{'aria-label':_0x511948,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x911dab['children']}),_0x911dab['children']['delegate']('execute')['to'](this),_0x911dab['focus']=function(){for(const _0x2d7c42 of this['children'])if(_0x2d7c42 instanceof _0x2629ee&&_0x2d7c42['isOn'])return void _0x2d7c42['focus']();this['children']['first']['focus']();},_0x911dab['focusTracker']=new _0x1ab095(),_0x911dab['keystrokes']=new _0x5cde93(),_0x911dab['render'](),_0x911dab['keystrokes']['listenTo'](_0x911dab['element']),this['children']['add'](_0x911dab),_0x911dab;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x39114a=this['_createStartIndexPropertyView'](),_0x2a6e09=[_0x39114a],_0x264e77=new _0x1025a7(this['locale'],_0x2a6e09);return _0x264e77['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x264e77['buttonView']['bind']('isEnabled')['toMany'](_0x2a6e09,'isEnabled',(..._0xfbb681)=>_0xfbb681['some'](_0x136f4a=>_0x136f4a)),_0x264e77['buttonView']['on']('change:isEnabled',(_0x22cf61,_0x1850e2,_0x52568e)=>{_0x52568e||(_0x264e77['isCollapsed']=!0x0);}),this['children']['add'](_0x264e77),[_0x39114a,_0x264e77];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xfe34a9=new _0x518956(this['locale'],_0x57b4af);return _0xfe34a9['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xfe34a9['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xfe34a9['fieldView']['on']('input',()=>{const _0xb739c8=_0xfe34a9['fieldView']['element'],_0x2997f7=_0xb739c8['valueAsNumber'];Number['isNaN'](_0x2997f7)?_0xfe34a9['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0xb739c8['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2997f7}):_0xfe34a9['errorText']=t(_0x2997f7<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xfe34a9;}}class ht extends _0x3dd23c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1cc358,_0x456899];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x19b0bf}=this,{componentFactory:_0x167e8e}=_0x19b0bf['ui'];_0x19b0bf['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x167e8e['add']('footnotesStyle',function(_0x14dfdc){return _0x40f504=>{const {t:t}=_0x40f504,_0x49a6be=_0x14dfdc['commands']['get']('footnotesStyle'),_0x362f9d=_0x20c5a1(_0x40f504),{buttonView:_0xdfbc31}=_0x362f9d;return _0x362f9d['class']='ck-footnotes-styles-dropdown',_0x362f9d['bind']('isEnabled')['to'](_0x49a6be,'isEnabled'),_0xdfbc31['set']({'label':t('Footnotes\x20style'),'icon':_0x25dd47,'tooltip':!0x0}),_0x362f9d['once']('change:isOpen',()=>{const _0x108e6a=function({editor:_0x404dc4,dropdownView:_0x40fb13}){const {t:t}=_0x404dc4['locale'],_0x523e99=t('Footnotes\x20definitions\x20styles'),_0x4edc98=function(_0x20dcba){const {t:t}=_0x20dcba['locale'],_0x3035c5=_0x20dcba['config']['get']('footnotes.footnotesProperties.listStyles'),_0xd00f3a=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x2cd24c},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x24cb86},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x55c18b},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x151f28},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0xf1c778},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x369e04},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x4191d6}];return _0x3035c5['map'](_0x4788de=>{const _0x2ee0a2=ct(_0x4788de),_0x220c0d=_0xd00f3a['find'](_0x48101c=>_0x48101c['style']===_0x2ee0a2);return function(_0x560236,_0x34417e){const {locale:_0x566c55}=_0x560236,{label:_0x555af5,icon:_0x1cfc7b,tooltip:_0x272740,style:_0x1430e1}=_0x34417e,_0x2c6fff=_0x560236['commands']['get']('footnotesStyle'),_0x3a34ec=new _0x2629ee(_0x566c55);return _0x3a34ec['set']({'label':_0x555af5,'icon':_0x1cfc7b,'tooltip':_0x272740}),_0x3a34ec['bind']('isOn')['to'](_0x2c6fff,'value',_0x30853c=>_0x30853c===_0x1430e1),_0x3a34ec['bind']('isEnabled')['to'](_0x2c6fff,'isEnabled'),_0x3a34ec['on']('execute',()=>{_0x560236['execute']('footnotesStyle',{'value':_0x1430e1}),_0x560236['editing']['view']['focus']();}),_0x3a34ec;}(_0x20dcba,_0x220c0d);});}(_0x404dc4),_0x4a7f80=new dt(_0x404dc4['locale'],{'styleGridAriaLabel':_0x523e99,'styleButtonViews':_0x4edc98}),_0x352d2e=_0x404dc4['commands']['get']('footnotesStart');return _0x4a7f80['startIndexFieldView']['bind']('isEnabled')['to'](_0x352d2e),_0x4a7f80['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x352d2e),_0x4a7f80['on']('footnotesListStart',(_0x4f16df,_0x2c4c7d)=>{_0x404dc4['execute']('footnotesStart',{'value':_0x2c4c7d['startIndex']});}),_0x4a7f80['delegate']('execute')['to'](_0x40fb13),_0x4a7f80;}({'editor':_0x14dfdc,'dropdownView':_0x362f9d});_0x362f9d['panelView']['children']['add'](_0x108e6a);}),_0x362f9d;};}(_0x19b0bf));}['afterInit'](){const {editor:_0x3db79a}=this,{t:t}=_0x3db79a['locale'],_0x594f0b=_0x3db79a['plugins']['get'](_0x456899),{defaultPositions:_0x4f4ccf}=_0x2609da;_0x594f0b['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3db79a['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1588f8=>{let _0x1de0a4=_0x1588f8['getFirstPosition']()?.['parent'];return _0x1de0a4?.['is']('$text')&&(_0x1de0a4=_0x1de0a4['parent']),_0x1de0a4?.['is']('element')?_0x1de0a4['findAncestor'](q):null;},'positions':[_0x4f4ccf['southArrowNorth'],_0x4f4ccf['southArrowNorthMiddleWest'],_0x4f4ccf['southArrowNorthMiddleEast'],_0x4f4ccf['southArrowNorthWest'],_0x4f4ccf['southArrowNorthEast'],_0x4f4ccf['northArrowSouth'],_0x4f4ccf['northArrowSouthMiddleWest'],_0x4f4ccf['northArrowSouthMiddleEast'],_0x4f4ccf['northArrowSouthWest'],_0x4f4ccf['northArrowSouthEast'],_0x4f4ccf['viewportStickyNorth']]});}}class mt extends _0x3dd23c{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[at,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Z as Footnotes,J as FootnotesClipboard,$ as FootnotesEditing,mt as FootnotesProperties,at as FootnotesPropertiesEditing,ht as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,K as FootnotesTracker,W as FootnotesUI,V as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "48.0.0-alpha.
|
|
3
|
+
"version": "48.0.0-alpha.11",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-clipboard": "48.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-enter": "48.0.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-widget": "48.0.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.0.0-alpha.11",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.11",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.11",
|
|
38
|
+
"@ckeditor/ckeditor5-enter": "48.0.0-alpha.11",
|
|
39
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.11",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.11",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.11",
|
|
42
|
+
"@ckeditor/ckeditor5-widget": "48.0.0-alpha.11"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist",
|