@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251030.0 → 0.0.0-nightly-20251101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5a4266,Command as _0x43caa9}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4c01dd,isWidget as _0x154edf,toWidgetEditable as _0x498796,WidgetToolbarRepository as _0x6c205}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x4ead23,logWarning as _0x5b511c,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x275c97,ClickObserver as _0x1889c7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xb323c9}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x51d454,ButtonView as _0x253836,View as _0xf5b978,ViewCollection as _0x2b99b2,FocusCycler as _0x3cadfa,addKeyboardHandlingForGrid as _0x1023bc,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x3e82de,BalloonPanelView as _0x3db375,createDropdown as _0x3a1861}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4503ac,IconListStyleDecimal as _0x2df69b,IconListStyleDecimalLeadingZero as _0x4459ae,IconListStyleLowerRoman as _0x965475,IconListStyleUpperRoman as _0x29a9a7,IconListStyleLowerLatin as _0x1129b8,IconListStyleUpperLatin as _0x17a7e5}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x583047,_0x5071fd){this['_model']=_0x583047,this['_elementName']=_0x5071fd['elementName'],this['_getElementKey']=_0x5071fd['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x384f12){const _0x12f91e=new Set(),_0x1334c1=new Map();for(const _0x959851 of _0x384f12){if('insert'===_0x959851['type']&&'$text'!==_0x959851['name']&&_0x959851['position']['nodeAfter']){const _0x3d36ce=this['_model']['createRangeOn'](_0x959851['position']['nodeAfter']);for(const _0x206337 of _0x3d36ce['getItems']()){if(!_0x206337['is']('element',this['_elementName']))continue;const _0x28b58c=this['_getElementKey'](_0x206337);_0x1334c1['has'](_0x28b58c)||_0x1334c1['set'](_0x28b58c,[]),_0x1334c1['get'](_0x28b58c)['push'](_0x206337);}}if('remove'===_0x959851['type']&&_0x959851['name']===this['_elementName']){const _0x1f52c0=this['_getElementKey']({'getAttribute':_0x3149df=>_0x959851['attributes']['get'](_0x3149df)});_0x12f91e['add'](_0x1f52c0);}}for(const [_0x40439d,_0x3ac8fe]of this['_trackedElements'])'$graveyard'===_0x3ac8fe['root']['rootName']&&_0x12f91e['add'](_0x40439d);for(const _0x421eca of _0x12f91e)this['_trackedElements']['delete'](_0x421eca);for(const [_0x4606a7,_0x3d7316]of _0x1334c1)this['_trackedElements']['set'](_0x4606a7,_0x3d7316[_0x3d7316['length']-0x1]);const _0x22d473=new Set();for(const [_0x31e956,_0x42bcc0]of _0x1334c1)_0x12f91e['has'](_0x31e956)&&(_0x22d473['add'](_0x42bcc0[0x0]),_0x42bcc0['length']>0x1?_0x1334c1['set'](_0x31e956,_0x42bcc0['slice'](0x1)):_0x1334c1['delete'](_0x31e956),_0x12f91e['delete'](_0x31e956));return{'removed':Array['from'](_0x12f91e),'inserted':Array['from'](_0x1334c1['values']())['flat'](),'moved':Array['from'](_0x22d473)};}}class c extends _0x5a4266{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43db6d){super(_0x43db6d),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x53b5af=>_0x53b5af['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x332028=>_0x332028['getAttribute']('footnoteId')});}['init'](){const {editor:_0x421cea}=this,{model:_0x570cf6,data:_0x1fe483}=_0x421cea;_0x570cf6['document']['registerPostFixer'](_0x27cb21=>{const _0xd41c6e=_0x570cf6['document']['differ']['getChanges']();let _0x14914a=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x27cb21,_0xd41c6e)&&(_0x14914a=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x27cb21,_0xd41c6e)&&(_0x14914a=!0x0),this['_handleFootnoteReferencesChanges'](_0x27cb21,_0xd41c6e)&&(_0x14914a=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x27cb21)&&(_0x14914a=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x27cb21)&&(_0x14914a=!0x0),this['_sortFootnoteDefinitions'](_0x27cb21)&&(_0x14914a=!0x0),_0x14914a;}),this['listenTo'](_0x570cf6['document'],'change:data',()=>{_0x570cf6['enqueueChange']({'isUndoable':!0x1},_0x540538=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x540538);});},{'priority':'low'}),this['listenTo'](_0x1fe483,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x280c30){return this['_footnotes']['find'](_0x4bf09a=>_0x4bf09a['id']===_0x280c30)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1392a6){this['_footnoteFormatter']=_0x1392a6;}['_updateFootnotesCounters'](_0x26d816,_0xbc8339=0x0){let _0x4f4764=!0x1;for(let _0x543a42=_0xbc8339;_0x543a42<this['_footnotes']['length'];_0x543a42++)this['_updateFootnoteRefCounter'](_0x26d816,_0x543a42)&&(_0x4f4764=!0x0);return _0x4f4764;}['_insertEmptyFootnotesDefinitionsContainer'](_0x31dcce,_0x47a009){const _0xc3c872=_0x31dcce['createElement']('footnotesDefinitions',{});return _0x31dcce['append'](_0xc3c872,_0x47a009),this['_footnotesDefinitions']=_0xc3c872,_0xc3c872;}['_ensureFootnotesDefinitionsContainerExists'](_0x409431){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x111beb=this['_footnotes'][0x0]['reference']['root'],_0x1e37df=this['_insertEmptyFootnotesDefinitionsContainer'](_0x409431,_0x111beb);for(const _0x300b5a of this['_footnotes'])_0x300b5a['definition']['parent']||_0x409431['insert'](_0x300b5a['definition'],_0x1e37df,'end');this['_updateFootnotesCounters'](_0x409431);}['_handleFootnotesDefinitionsObjectChanges'](_0x296274,_0x4e3708){let _0x39ee3e=!0x1;const {inserted:_0x283150,removed:_0x1d478,moved:_0x70c9a5}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4e3708);if(_0x70c9a5['length']&&(this['_footnotesDefinitions']=_0x70c9a5[0x0]),_0x283150['length']){if(_0x283150['length']>0x1||this['_footnotesDefinitions']&&_0x283150['some'](_0x35f943=>_0x35f943!==this['_footnotesDefinitions'])){const _0x2a1b75=_0x296274['createElement']('footnotesDefinitions',{}),_0x27f453=[];this['_footnotesDefinitions']&&_0x27f453['push'](this['_footnotesDefinitions']),_0x27f453['push'](..._0x283150),_0x296274['insert'](_0x2a1b75,_0x27f453[0x0],'before');for(const _0x4a9132 of _0x27f453)_0x296274['move'](_0x296274['createRangeIn'](_0x4a9132),_0x296274['createPositionAt'](_0x2a1b75,'end')),_0x296274['remove'](_0x4a9132);this['_footnotesDefinitions']=_0x2a1b75,this['_updateFootnotesCounters'](_0x296274),_0x39ee3e=!0x0;}else this['_footnotesDefinitions']=_0x283150[0x0];}if(_0x1d478['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x58f5a5 of this['_footnotes'])_0x296274['remove'](_0x58f5a5['reference']),_0x39ee3e=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x39ee3e;}['_handleFootnoteDefinitionsChanges'](_0x49a29e,_0x2628d5){let _0x364897=!0x1;const _0x4be354=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x6c5dc,moved:_0x58102d}=this['_footnoteDefsTracker']['getChanges'](_0x2628d5);for(const _0x196de5 of[..._0x58102d,..._0x6c5dc]){const _0x4576e3=_0x196de5['getAttribute']('footnoteId'),_0x17632a=this['getFootnote'](_0x4576e3);_0x17632a&&(_0x17632a['definition']=_0x196de5),_(_0x49a29e,_0x4be354,_0x196de5)&&(_0x364897=!0x0);}return _0x364897;}['_handleFootnoteReferencesChanges'](_0x24cd79,_0x55a0b5){let _0x2ea682=!0x1;const {removed:_0x367679,inserted:_0x44e81d,moved:_0x19db34}=this['_footnoteRefsTracker']['getChanges'](_0x55a0b5);for(const _0x557db2 of _0x367679)this['_handleRemoveFootnoteReferenceById'](_0x24cd79,_0x557db2)&&(_0x2ea682=!0x0);for(const _0x5a32d4 of _0x44e81d)this['_handleInsertedFootnoteReference'](_0x24cd79,_0x5a32d4)&&(_0x2ea682=!0x0);for(const _0x111e3c of _0x19db34)this['_handleMovedFootnoteReference'](_0x24cd79,_0x111e3c)&&(_0x2ea682=!0x0);return _0x2ea682;}['_handleFootnotesDefinitionsObjectSync'](_0x2358c6){if(!this['_footnotesDefinitions'])return!0x1;let _0x4e9dfd=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x317001=[];for(const _0x1a364 of this['_footnotesDefinitions']['getChildren']()){const _0x37dfc7=_0x1a364['getAttribute']('footnoteId');this['getFootnote'](_0x37dfc7)||(_0x317001['unshift'](_0x1a364),_0x4e9dfd=!0x0);}for(const _0x57e7a6 of _0x317001)_0x2358c6['remove'](_0x57e7a6);}const _0x3abd59=new Set(),_0x12128a=[];for(const _0x1aaa72 of this['_footnotesDefinitions']['getChildren']()){const _0x3c519c=_0x1aaa72['getAttribute']('footnoteId');_0x3abd59['has'](_0x3c519c)?(_0x12128a['unshift'](_0x1aaa72),_0x4e9dfd=!0x0):_0x3abd59['add'](_0x3c519c);}for(const _0x29df84 of _0x12128a)_0x2358c6['remove'](_0x29df84);return this['_footnotesDefinitions']['childCount']||(_0x2358c6['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4e9dfd=!0x0),_0x4e9dfd;}['_handleInsertedFootnoteReference'](_0x407c4c,_0x4a7fc9){if(this['_footnotes']['find'](_0x65d1d4=>_0x65d1d4['reference']===_0x4a7fc9))return!0x1;let _0x419581=!0x1;const _0x430180=_0x4a7fc9['getAttribute']('footnoteId'),_0x1a9c77=this['_footnotes']['findIndex'](_0x56cc74=>_0x56cc74['id']===_0x430180);-0x1!==_0x1a9c77&&(_0x407c4c['remove'](this['_footnotes'][_0x1a9c77]['reference']),this['_footnotes']['splice'](_0x1a9c77,0x1),_0x419581=!0x0);let _0x11bf7c=this['_footnotesDefinitions']?function(_0x501b6f,_0x3a3a53){for(const _0x494cf1 of _0x501b6f['getChildren']())if(_0x494cf1['getAttribute']('footnoteId')===_0x3a3a53)return _0x494cf1;return null;}(this['_footnotesDefinitions'],_0x430180):null;_0x11bf7c||(_0x11bf7c=_0x407c4c['createElement']('footnoteDefinition',{'footnoteId':_0x430180}),this['_footnotesDefinitions']&&(_0x407c4c['insert'](_0x11bf7c,this['_footnotesDefinitions'],'end'),_0x419581=!0x0));const _0x5eda4c={'id':_0x430180,'reference':_0x4a7fc9,'definition':_0x11bf7c},_0x1e04ee=I(this['editor']['model'],this['_footnotes'],_0x4a7fc9);this['_footnotes']['splice'](_0x1e04ee,0x0,_0x5eda4c);let _0x567344=_0x1e04ee;return-0x1!==_0x1a9c77&&(_0x567344=Math['min'](_0x1e04ee,_0x1a9c77)),this['_updateFootnotesCounters'](_0x407c4c,_0x567344)&&(_0x419581=!0x0),_0x419581;}['_handleRemoveFootnoteReferenceById'](_0x3dbe7e,_0x5be729){const _0x2b5be2=this['_footnotes']['findIndex'](_0x4abbff=>_0x4abbff['id']===_0x5be729);if(-0x1===_0x2b5be2)return!0x1;let _0x4019dc=!0x1;const _0x45f854=this['_footnotes'][_0x2b5be2];return'$graveyard'!==_0x45f854['definition']['root']['rootName']&&(_0x3dbe7e['remove'](_0x45f854['definition']),_0x4019dc=!0x0),this['_footnotes']['splice'](_0x2b5be2,0x1),this['_updateFootnotesCounters'](_0x3dbe7e,_0x2b5be2)&&(_0x4019dc=!0x0),_0x4019dc;}['_handleMovedFootnoteReference'](_0xba7843,_0x37e6de){const _0x5024c1=_0x37e6de['getAttribute']('footnoteId'),_0x1189a0=this['_footnotes']['findIndex'](_0x490e92=>_0x490e92['id']===_0x5024c1),_0x907193=this['_footnotes'][_0x1189a0];let _0x32cb8e=!0x1;_0x907193['reference']=_0x37e6de,this['_footnotes']['splice'](_0x1189a0,0x1);const _0xbf40a1=I(this['editor']['model'],this['_footnotes'],_0x37e6de);return this['_footnotes']['splice'](_0xbf40a1,0x0,_0x907193),this['_updateFootnotesCounters'](_0xba7843,Math['min'](_0x1189a0,_0xbf40a1))&&(_0x32cb8e=!0x0),_0x32cb8e;}['_updateFootnoteRefCounter'](_0x84996,_0xa29573){if(!this['_footnotesDefinitions'])return!0x1;const _0x21c948=this['_footnotes'][_0xa29573];let _0x445819;return _0x445819=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x21c948,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xa29573+0x1}):String(_0xa29573+0x1),_0x21c948['reference']['getAttribute']('footnoteCounter')!=_0x445819&&(_0x84996['setAttribute']('footnoteCounter',_0x445819,_0x21c948['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x1e19c2){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x398f4e,_0x10757f){if(_0x398f4e['length']!==_0x10757f['length'])return!0x1;for(let _0x41e041=0x0;_0x41e041<_0x398f4e['length'];_0x41e041++)if(_0x398f4e[_0x41e041]!==_0x10757f[_0x41e041])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1fb7a1=>_0x1fb7a1['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x226103=>_0x226103['getAttribute']('footnoteId'))))return!0x1;let _0x161284=!0x1;for(let _0x32db35=0x0;_0x32db35<this['_footnotes']['length'];_0x32db35++){const _0x461616=this['_footnotes'][_0x32db35],_0x51a270=_0x1e19c2['createPositionBefore'](_0x461616['definition']),_0x3f4741=_0x1e19c2['createPositionAt'](this['_footnotesDefinitions'],_0x32db35);_0x51a270['isEqual'](_0x3f4741)||(_0x1e19c2['move'](_0x1e19c2['createRangeOn'](_0x461616['definition']),_0x3f4741),_0x161284=!0x0);}return _0x161284;}['_ensureFootnotesReferencesHaveProperOrder'](_0x25ea3e){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5ee0e0}=this['editor'];let _0x5d6d74=!0x1;for(let _0xa98194=0x0;_0xa98194<this['_footnotes']['length']-0x1;_0xa98194++){const _0x465769=this['_footnotes'][_0xa98194],_0x561ebb=this['_footnotes'][_0xa98194+0x1],_0x4e9709=_0x5ee0e0['createPositionBefore'](_0x465769['reference']),_0x1a4880=_0x5ee0e0['createPositionBefore'](_0x561ebb['reference']);'after'===_0x4e9709['compareWith'](_0x1a4880)&&(this['_handleMovedFootnoteReference'](_0x25ea3e,_0x465769['reference']),_0xa98194=-0x1,_0x5d6d74=!0x0);}return _0x5d6d74;}}function _(_0x38f8ea,_0x2c66e9,_0x976790){if(_0x976790['childCount'])return!0x1;const _0x3b7a13=_0x2c66e9?'paragraph':'footnoteInlineContent';return _0x38f8ea['insert'](_0x38f8ea['createElement'](_0x3b7a13),_0x976790),!0x0;}function I(_0x2f8fb9,_0x38cf82,_0x3225b9){if(0x0===_0x38cf82['length'])return 0x0;const _0x314a2c=_0x2f8fb9['createPositionBefore'](_0x3225b9);for(let _0x150806=0x0;_0x150806<_0x38cf82['length'];_0x150806++){const _0x33732a=_0x38cf82[_0x150806],_0x11b178=_0x2f8fb9['createPositionBefore'](_0x33732a['reference']);if('before'===_0x314a2c['compareWith'](_0x11b178))return _0x150806;}const _0x5fcff9=_0x3225b9['root'];let _0x327f86=-0x1;for(let _0x4d5ac8=_0x38cf82['length']-0x1;_0x4d5ac8>=0x0;_0x4d5ac8--)if(_0x38cf82[_0x4d5ac8]['reference']['root']===_0x5fcff9){_0x327f86=_0x4d5ac8;break;}if(-0x1!==_0x327f86)return _0x327f86+0x1;const _0x2ff127=_0x2f8fb9['document']['getRootNames'](),_0x34e0ba=_0x2ff127['indexOf'](_0x5fcff9['rootName']),_0x1c5ab4=_0x2ff127[_0x34e0ba+0x1];if(_0x1c5ab4){for(let _0x32bf6b=0x0;_0x32bf6b<_0x38cf82['length'];_0x32bf6b++)if(_0x38cf82[_0x32bf6b]['reference']['root']['rootName']===_0x1c5ab4)return _0x32bf6b;}return _0x38cf82['length'];}class w extends _0x43caa9{['refresh'](){const _0x5531ea=this['editor']['model']['document']['selection'],_0x473000=this['_getPositionToInsertFootnote'](_0x5531ea);this['isEnabled']=!!_0x473000;}['execute'](_0x4e288d){const {editor:_0x4f7aa8}=this,{model:_0x3e347d}=_0x4f7aa8,{selection:_0x2517c0}=_0x3e347d['document'],_0x29770b=this['_getPositionToInsertFootnote'](_0x2517c0);if(!_0x29770b)return;const _0x25b582=_0x4f7aa8['plugins']['get']('FootnotesEditing'),_0x176244=_0x4e288d?.['footnoteId']??_0x4ead23();!function(_0x48c2f1){return'string'==typeof _0x48c2f1&&_0x48c2f1['length']>0x0&&!/\s/['test'](_0x48c2f1)&&!/^\d/['test'](_0x48c2f1);}(_0x176244)?_0x5b511c('insert-footnote-command-executed-with-invalid-id'):(_0x3e347d['change'](_0x40b072=>{const _0x332a34=_0x40b072['createElement']('footnoteRef',{'footnoteId':_0x176244});_0x3e347d['insertObject'](_0x332a34,_0x29770b,null);}),_0x25b582['_moveSelectionToFootnoteDefinition'](_0x176244));}['_getPositionToInsertFootnote'](_0xaadb40){const {model:_0x384443}=this['editor'],{schema:_0x470dd8}=_0x384443,_0x497f0f=_0xaadb40['getFirstRange']();for(const _0x2964d2 of _0x497f0f['getItems']())if(_0x470dd8['isBlock'](_0x2964d2)||_0x470dd8['isObject'](_0x2964d2))return null;const _0x3b2e4a=_0x497f0f['end'];return _0x470dd8['checkChild'](_0x3b2e4a,'footnoteRef')?_0x3b2e4a:null;}}class r extends _0x5a4266{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x844cbd}=this;_0x844cbd['config']['define']('footnotes.multiBlock',!0x0),_0x844cbd['commands']['add']('insertFootnote',new w(_0x844cbd)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3d8c88){const _0x255fe2=_0x4f8f81([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]),_0x395930=0x47a28506,_0x3e007c=0x47a5f2ae^_0x395930,_0x167e35=window[_0x4f8f81([0x44,0x61,0x74,0x65])][_0x4f8f81([0x6e,0x6f,0x77])](),_0x544b11=_0x3d8c88[_0x4f8f81([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x155572=new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebd89=>{_0x544b11[_0x4f8f81([0x6f,0x6e,0x63,0x65])](_0x4f8f81([0x72,0x65,0x61,0x64,0x79]),_0x2ebd89);}),_0x1916d3={[_0x4f8f81([0x6b,0x74,0x79])]:_0x4f8f81([0x45,0x43]),[_0x4f8f81([0x75,0x73,0x65])]:_0x4f8f81([0x73,0x69,0x67]),[_0x4f8f81([0x63,0x72,0x76])]:_0x4f8f81([0x50,0x2d,0x32,0x35,0x36]),[_0x4f8f81([0x78])]:_0x4f8f81([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]),[_0x4f8f81([0x79])]:_0x4f8f81([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]),[_0x4f8f81([0x61,0x6c,0x67])]:_0x4f8f81([0x45,0x53,0x32,0x35,0x36])},_0x54ae50=_0x544b11[_0x4f8f81([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f8f81([0x67,0x65,0x74])](_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58af49(){let _0x34d09b,_0x451043=null,_0x561618=null;try{if(_0x54ae50==_0x4f8f81([0x47,0x50,0x4c]))return _0x4f8f81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34d09b=_0x5df630(),!_0x34d09b)return _0x4f8f81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34d09b[_0x4f8f81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x561618=_0x12d823(_0x34d09b[_0x4f8f81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34d09b[_0x4f8f81([0x6a,0x74,0x69])])),await _0x9a6f20()?_0x261661()?_0x52c624()?_0x4f8f81([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19c2e0()?(_0x34d09b[_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f8f81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x451043=_0x4230de(_0x4f8f81([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34d09b[_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f8f81([0x74,0x72,0x69,0x61,0x6c])&&(_0x451043=_0x4230de(_0x4f8f81([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x355041()):_0x4f8f81([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f8f81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f8f81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f8f81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52c624(){const _0x2046d4=[_0x4f8f81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f8f81([0x74,0x72,0x69,0x61,0x6c])][_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34d09b[_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x167e35/0x3e8:0xe10*_0x3e007c;return _0x34d09b[_0x4f8f81([0x65,0x78,0x70])]<_0x2046d4;}function _0x261661(){const _0x35d30a=_0x34d09b[_0x4f8f81([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35d30a&&(!!_0x35d30a[_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8f81([0x2a]))||!!_0x35d30a[_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8f81([0x46,0x4f,0x4f])));}function _0x19c2e0(){const _0x4ed57e=_0x34d09b[_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ed57e||0x0==_0x4ed57e[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52d890}=new URL(window[_0x4f8f81([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ed57e[_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d890))return!0x0;const _0x5c923b=_0x52d890[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])](_0x4f8f81([0x2e]));return _0x4ed57e[_0x4f8f81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37caa1=>_0x37caa1[_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8f81([0x2a])))[_0x4f8f81([0x6d,0x61,0x70])](_0x32e236=>_0x32e236[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])](_0x4f8f81([0x2e])))[_0x4f8f81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39f680=>_0x39f680[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c923b[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f8f81([0x6d,0x61,0x70])](_0x1b7e43=>Array(_0x5c923b[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b7e43[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f8f81([0x66,0x69,0x6c,0x6c])](_0x1b7e43[0x0]===_0x4f8f81([0x2a])?_0x4f8f81([0x2a]):'')[_0x4f8f81([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b7e43))[_0x4f8f81([0x73,0x6f,0x6d,0x65])](_0x351936=>_0x5c923b[_0x4f8f81([0x65,0x76,0x65,0x72,0x79])]((_0x471274,_0xcfb331)=>_0x351936[_0xcfb331]===_0x471274||_0x351936[_0xcfb331]===_0x4f8f81([0x2a])));}function _0x355041(){return _0x451043&&_0x561618?new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x159624,_0x500c92)=>{_0x451043[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x159624,_0x500c92),_0x561618[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x50d844=>{_0x50d844!=_0x4f8f81([0x56,0x61,0x6c,0x69,0x64])&&_0x159624(_0x50d844);},_0x500c92);}):_0x451043||_0x561618||_0x4f8f81([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12d823(_0x142c26,_0x134f50){return new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b9c4c=>{if(_0x3e2e45())return _0x2b9c4c(_0x4f8f81([0x56,0x61,0x6c,0x69,0x64]));_0x3495f9(),_0x544b11[_0x4f8f81([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f8f81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x483b9e=!0x1;const _0x224d81=_0x4ead23();function _0xb44d4c(_0x41d4a5){return!!_0x41d4a5&&(typeof _0x41d4a5===_0x4f8f81([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41d4a5===_0x4f8f81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41d4a5[_0x4f8f81([0x74,0x68,0x65,0x6e])]===_0x4f8f81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41d4a5[_0x4f8f81([0x63,0x61,0x74,0x63,0x68])]===_0x4f8f81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b4e30(_0x5701e8){_0x2dc2ad(_0x5701e8)[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x2c081e=>{if(!_0x2c081e||_0x2c081e[_0x4f8f81([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f8f81([0x6f,0x6b]))return _0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10dba5(_0x5902a9(_0x224d81+_0x134f50))!=_0x2c081e[_0x4f8f81([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f8f81([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x264207=>(_0x29b00e(),_0x264207),()=>{const _0xa490c9=_0x1311fd();return null==_0xa490c9?(_0x29b00e(),_0x4f8f81([0x56,0x61,0x6c,0x69,0x64])):_0x4f8f81(_0x167e35-_0xa490c9>(0x63ae0106^_0x395930)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x2b9c4c)[_0x4f8f81([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b9c4c(_0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55e0f8=0x47946b86^_0x395930;function _0x29b00e(){const _0x58121e=_0x4f8f81([0x6c,0x6c,0x63,0x74,0x2d])+_0x10dba5(_0x5902a9(_0x142c26)),_0x548aa1=_0x4874d6(_0x10dba5(window[_0x4f8f81([0x4d,0x61,0x74,0x68])][_0x4f8f81([0x63,0x65,0x69,0x6c])](_0x167e35/_0x55e0f8)));window[_0x4f8f81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f8f81([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58121e,_0x548aa1);}function _0x1311fd(){const _0xd75436=_0x4f8f81([0x6c,0x6c,0x63,0x74,0x2d])+_0x10dba5(_0x5902a9(_0x142c26)),_0x58a014=window[_0x4f8f81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f8f81([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd75436);return _0x58a014?window[_0x4f8f81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4874d6(_0x58a014),0x10)*_0x55e0f8:null;}function _0x2dc2ad(_0x5ddf4d){return new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46daac,_0x26d494)=>{_0x5ddf4d[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x46daac,_0x26d494),window[_0x4f8f81([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26d494,0x47a351c6^_0x395930);});}}_0x544b11[_0x4f8f81([0x6f,0x6e])](_0x4f8f81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2438eb,_0x50a165)=>{if(_0x50a165[0x0]!=_0x142c26)return _0x2b9c4c(_0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50a165[0x1]={..._0x50a165[0x1],[_0x4f8f81([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x224d81};},{[_0x4f8f81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f8f81([0x68,0x69,0x67,0x68])}),_0x544b11[_0x4f8f81([0x6f,0x6e])](_0x4f8f81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c6d3a=>{_0xb44d4c(_0x4c6d3a[_0x4f8f81([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x483b9e=!0x0,_0x4b4e30(_0x4c6d3a[_0x4f8f81([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f8f81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f8f81([0x6c,0x6f,0x77])}),_0x155572[_0x4f8f81([0x74,0x68,0x65,0x6e])](()=>{_0x483b9e||_0x2b9c4c(_0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e2e45(){return _0x544b11[_0x4f8f81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f8f81([0x76,0x69,0x65,0x77])][_0x4f8f81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f8f81([0x61,0x75,0x74,0x6f]);}function _0x3495f9(){_0x544b11[_0x4f8f81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f8f81([0x76,0x69,0x65,0x77])][_0x4f8f81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f8f81([0x61,0x75,0x74,0x6f]);}}function _0x4230de(_0x2f5860){const _0x41c5bb=[new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c930=>setTimeout(_0x32c930,0x47abbbca^_0x395930)),_0x155572[_0x4f8f81([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c255c=>{let _0x150878=0x0;_0x544b11[_0x4f8f81([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f8f81([0x6f,0x6e])](_0x4f8f81([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54877a,_0xaee65)=>{_0xaee65[0x0][_0x4f8f81([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x150878++,_0x150878==(0x47a284fe^_0x395930)&&(_0x4c255c(),_0x54877a[_0x4f8f81([0x6f,0x66,0x66])]());});}))];return window[_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f8f81([0x72,0x61,0x63,0x65])](_0x41c5bb)[_0x4f8f81([0x74,0x68,0x65,0x6e])](()=>_0x2f5860);}async function _0x406cc2(){await _0x155572,_0x544b11[_0x4f8f81([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f8f81([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43caa6,_0x544b11[_0x4f8f81([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f8f81([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43caa6,_0x544b11[_0x4f8f81([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f8f81([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ae5e5(_0x3912d9){const _0x3cd52c=_0x358630();_0x544b11[_0x3cd52c]=_0x4f8f81([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3912d9,_0x3912d9!=_0x4f8f81([0x56,0x61,0x6c,0x69,0x64])&&_0x406cc2();}function _0x358630(){const _0x494979=window[_0x4f8f81([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f8f81([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f8f81([0x6e,0x6f,0x77])]())[_0x4f8f81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f8f81([0x2e]),'');let _0x23e994=_0x4f8f81([0x75]);for(let _0x1be876=0x0;_0x1be876<_0x494979[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1be876+=0x2){let _0x284240=window[_0x4f8f81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x494979[_0x4f8f81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1be876,_0x1be876+0x2));_0x284240>=_0x255fe2[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x284240-=_0x255fe2[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23e994+=_0x255fe2[_0x284240];}return _0x23e994;}function _0x5df630(){const _0xd56ce1=_0x54ae50[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])](_0x4f8f81([0x2e]));if(0x3!=_0xd56ce1[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4512bc(_0xd56ce1[0x1]);function _0x4512bc(_0x4ffc2c){const _0x5240c7=_0x52b393(_0x4ffc2c);return _0x5240c7&&_0x1729a9()?_0x5240c7:null;function _0x1729a9(){const _0x5d1b97=_0x5240c7[_0x4f8f81([0x6a,0x74,0x69])],_0x420258=window[_0x4f8f81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1b97[_0x4f8f81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d1b97[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1984d2={..._0x5240c7,[_0x4f8f81([0x6a,0x74,0x69])]:_0x5d1b97[_0x4f8f81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d1b97[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1984d2[_0x4f8f81([0x76,0x63])],_0x5902a9(_0x1984d2)==_0x420258;}}}async function _0x9a6f20(){let _0x3558ed=!0x0;try{const _0x91f9f5=_0x54ae50[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])](_0x4f8f81([0x2e])),[_0x1967b5,_0x55ce5f,_0xeadef4]=_0x91f9f5;return _0x2d7a42(_0x1967b5),await _0xc6f76c(_0x1967b5,_0x55ce5f,_0xeadef4),_0x3558ed;}catch{return!0x1;}function _0x2d7a42(_0x304986){const _0x4f1334=_0x52b393(_0x304986);_0x4f1334&&_0x4f1334[_0x4f8f81([0x61,0x6c,0x67])]==_0x4f8f81([0x45,0x53,0x32,0x35,0x36])||(_0x3558ed=!0x1);}async function _0xc6f76c(_0x546a4c,_0x31b46f,_0x325e16){const _0x5db4ca=window[_0x4f8f81([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f8f81([0x66,0x72,0x6f,0x6d])](_0x309ad2(_0x325e16),_0x3ab479=>_0x3ab479[_0x4f8f81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b14c4=new window[(_0x4f8f81([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f8f81([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x546a4c+_0x4f8f81([0x2e])+_0x31b46f),_0x416a36=window[_0x4f8f81([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f8f81([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x416a36)return;const _0x1d381f=await _0x416a36[_0x4f8f81([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f8f81([0x6a,0x77,0x6b]),_0x1916d3,{[_0x4f8f81([0x6e,0x61,0x6d,0x65])]:_0x4f8f81([0x45,0x43,0x44,0x53,0x41]),[_0x4f8f81([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f8f81([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f8f81([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x416a36[_0x4f8f81([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f8f81([0x6e,0x61,0x6d,0x65])]:_0x4f8f81([0x45,0x43,0x44,0x53,0x41]),[_0x4f8f81([0x68,0x61,0x73,0x68])]:{[_0x4f8f81([0x6e,0x61,0x6d,0x65])]:_0x4f8f81([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d381f,_0x5db4ca,_0x4b14c4)||(_0x3558ed=!0x1);}}function _0x52b393(_0x296c04){return _0x296c04[_0x4f8f81([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f8f81([0x65,0x79]))?JSON[_0x4f8f81([0x70,0x61,0x72,0x73,0x65])](_0x309ad2(_0x296c04)):null;}function _0x309ad2(_0x29deaf){return window[_0x4f8f81([0x61,0x74,0x6f,0x62])](_0x29deaf[_0x4f8f81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f8f81([0x2b]))[_0x4f8f81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f8f81([0x2f])));}function _0x5902a9(_0x51ad07){let _0x1f3656=0x1505;function _0x403a5a(_0x2de061){for(let _0x29141b=0x0;_0x29141b<_0x2de061[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29141b++){const _0x37c94f=_0x2de061[_0x4f8f81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29141b);_0x1f3656=(_0x1f3656<<0x5)+_0x1f3656+_0x37c94f,_0x1f3656&=_0x1f3656;}}function _0x4154ba(_0x4aa60d){Array[_0x4f8f81([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4aa60d)?_0x4aa60d[_0x4f8f81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4154ba):_0x4aa60d&&typeof _0x4aa60d==_0x4f8f81([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f8f81([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4aa60d)[_0x4f8f81([0x73,0x6f,0x72,0x74])]()[_0x4f8f81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e0004,_0xaedc52])=>{_0x403a5a(_0x4e0004),_0x4154ba(_0xaedc52);}):_0x403a5a(window[_0x4f8f81([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4aa60d));}return _0x4154ba(_0x51ad07),_0x1f3656>>>0x0;}function _0x10dba5(_0x12a2ed){return _0x12a2ed[_0x4f8f81([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f8f81([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f8f81([0x30]));}function _0x4874d6(_0x41a4b5){return _0x41a4b5[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f8f81([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f8f81([0x6a,0x6f,0x69,0x6e])]('');}function _0x43caa6(){}function _0x4f8f81(_0x229d76){return _0x229d76['map'](_0x5def67=>String['fromCharCode'](_0x5def67))['join']('');}_0x3ae5e5(await _0x58af49());}(this);}['_moveSelectionToFootnoteDefinition'](_0x457a64){const {plugins:_0x296a05,editing:_0x4bd66c,model:_0xa776cb}=this['editor'],_0x4732da=_0x296a05['get'](c)['getFootnote'](_0x457a64);return!!_0x4732da&&(_0xa776cb['change'](_0x2405bc=>{_0x2405bc['setSelection'](_0x2405bc['createPositionAt'](_0x4732da['definition'],'end'));}),_0x4bd66c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5ad4e5){const {plugins:_0x4ff7bf,editing:_0x121a2b,model:_0x1eb7ac}=this['editor'],_0x19d56e=_0x4ff7bf['get'](c)['getFootnote'](_0x5ad4e5);return!!_0x19d56e&&(_0x1eb7ac['change'](_0x18d34a=>{_0x18d34a['setSelection'](_0x19d56e['reference'],'on');}),_0x121a2b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4af477}=this['editor']['model'],_0x24415f=this['editor']['config']['get']('footnotes.multiBlock');_0x4af477['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4af477['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4af477['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x24415f?_0x4af477['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4af477['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4af477['addChildCheck'](_0x4fcc73=>{for(const _0x14cd45 of _0x4fcc73)if('footnoteDefinition'===_0x14cd45['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2617d5}=this,{conversion:_0x1a8f5c,editing:_0x5c492f}=_0x2617d5,{t:t}=_0x2617d5['locale'];_0x1a8f5c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2ff8ad,{writer:_0x4ca86b,consumable:_0xa7a7c1})=>{const _0x38882=_0x2ff8ad['getChild'](0x0);if(!_0x38882||!_0x38882['is']('element','a'))return null;const _0x1746ec=_0x38882['getAttribute']('href')||'';if(!_0x1746ec['startsWith']('#'))return null;const _0x182086=_0x1746ec['replace'](/^#/,'');if(!_0x182086)return null;_0xa7a7c1['consume'](_0x38882,{'name':!0x0,'attributes':['href']});for(const {item:_0x47c374}of _0x5c492f['view']['createRangeIn'](_0x38882))_0x47c374['is']('$textProxy')?_0xa7a7c1['consume'](_0x47c374['textNode'],{'name':!0x0}):_0x47c374['is']('element')&&_0xa7a7c1['consume'](_0x47c374,{'name':!0x0});return _0x4ca86b['createElement']('footnoteRef',{'footnoteId':_0x182086});}}),_0x1a8f5c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1d3a45,{writer:_0x4edbca})=>D(_0x1d3a45,_0x4edbca)}),_0x1a8f5c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4313fe,{writer:_0x1687a7})=>{const _0x5232a9=_0x4313fe['getAttribute']('footnoteCounter');return _0x4c01dd(D(_0x4313fe,_0x1687a7),_0x1687a7,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5232a9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3935f8}=this,{t:t}=_0x3935f8['locale'],{conversion:_0x43f52d}=_0x3935f8;_0x43f52d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x43f52d['for']('upcast')['add'](_0x3cf396=>{_0x3cf396['on']('element:ol',(_0x2704a6,_0x405350,_0x4bd88a)=>{const _0x6a01df=_0x405350['viewItem'];if(!_0x6a01df['hasClass']('footnotes-list')||!_0x405350['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4bd88a['consumable']['consume'](_0x6a01df,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x47b41f,modelCursor:_0x482d85}=_0x4bd88a['convertChildren'](_0x405350['viewItem'],_0x405350['modelCursor']);_0x405350['modelRange']=_0x47b41f,_0x405350['modelCursor']=_0x482d85;}),_0x3cf396['on']('element:hr',(_0xfffe22,_0x45a5f9,_0x23c7b0)=>{const _0x1541bc=_0x45a5f9['viewItem'];_0x1541bc['hasClass']('footnotes-divider')&&_0x45a5f9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x23c7b0['consumable']['consume'](_0x1541bc,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x43f52d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x267c6d,{writer:_0x1c849d})=>g(_0x1c849d)}),_0x43f52d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4a9aa0,{writer:_0x4c68e8})=>{const _0xf84daf=g(_0x4c68e8,{'data-footnotes-list-label':t('Footnotes')}),_0x2a73cb=_0x4c01dd(_0xf84daf,_0x4c68e8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4c68e8['setCustomProperty']('footnotesDefinitions',!0x0,_0x2a73cb),_0x2a73cb;}});}['_defineDefinitionConverters'](){const {editor:_0x3b5b25}=this,{conversion:_0x3701e1,locale:_0x4ec979}=_0x3b5b25,_0x4c1c14=_0x3b5b25['config']['get']('footnotes.multiBlock');_0x3701e1['for']('upcast')['add'](_0x43e993=>{_0x43e993['on']('element:li',(_0x668a25,_0x2b0ea5,_0x388fe4)=>{const _0x4b81d2=_0x2b0ea5['viewItem'];if(!_0x4b81d2['hasClass']('footnote-definition')||!_0x4b81d2['getAttribute']('id'))return;const _0x3e3a5d=_0x4b81d2['parent'];if(!_0x3e3a5d['is']('element','ol')||!_0x3e3a5d['hasClass']('footnotes-list'))return;if(!_0x388fe4['consumable']['test'](_0x4b81d2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4d529e=_0x388fe4['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4b81d2['getAttribute']('id')});if(!_0x388fe4['safeInsert'](_0x4d529e,_0x2b0ea5['modelCursor']))return;_0x388fe4['consumable']['consume'](_0x4b81d2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x529209=Array['from'](_0x4b81d2['getChildren']())['find'](_0x5af7b3=>_0x5af7b3['is']('element')&&_0x5af7b3['hasClass']('footnote-content'));for(const _0xd22740 of _0x4b81d2['getChildren']())_0xd22740['is']('element')&&(_0x388fe4['consumable']['consume'](_0xd22740,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x388fe4['consumable']['consume'](_0xd22740,{'name':!0x0,'classes':'footnote-content'}));if(_0x529209){if(_0x4c1c14)_0x388fe4['convertChildren'](_0x529209,_0x4d529e);else{const _0x9708a8=_0x388fe4['writer']['createElement']('footnoteInlineContent');_0x388fe4['writer']['insert'](_0x9708a8,_0x4d529e),_0x388fe4['convertChildren'](_0x529209,_0x9708a8);}}_0x388fe4['updateConversionResult'](_0x4d529e,_0x2b0ea5);});}),_0x3701e1['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4e5c3c,{writer:_0x2a4365})=>v(_0x4e5c3c,_0x2a4365,_0x4ec979,{'dataPipeline':!0x0})}),_0x3701e1['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24b49f,{writer:_0x321dd7})=>v(_0x24b49f,_0x321dd7,_0x4ec979)});}['_defineBogusParagraphConverters'](){const {editor:_0x4b6bb6}=this,{conversion:_0x527e2b}=_0x4b6bb6;_0x4b6bb6['config']['get']('footnotes.multiBlock')?(_0x527e2b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x527e2b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4b6bb6['model']['document'],'change:data',()=>{!function(_0x302b33,_0x9a3699){const _0x152131=_0x302b33['document']['differ'],_0x52c45d=new Set();for(const _0x3f82f7 of _0x152131['getChanges']()){const _0x3a299b='attribute'==_0x3f82f7['type']?_0x3f82f7['range']['start']['parent']:_0x3f82f7['position']['parent'];_0x3a299b['is']('element','footnoteDefinition')&&_0x52c45d['add'](_0x3a299b);}for(const _0xbf1d0 of _0x52c45d['values']()){const _0x297d87=Array['from'](_0xbf1d0['getChildren']())['filter'](_0x52108e=>p(_0x52108e,_0x9a3699['mapper']));for(const _0x31fff7 of _0x297d87)_0x9a3699['reconvertItem'](_0x31fff7);}}(_0x4b6bb6['model'],_0x4b6bb6['editing']);})):(_0x527e2b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x527e2b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x318185,{writer:_0x340179})=>{const _0x181b4a=_0x340179['createContainerElement']('span');return _0x340179['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x181b4a),_0x181b4a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x186587}=this,{editing:_0x267c2c,t:t}=_0x186587,_0x6c453a=_0x186587['model']['document']['selection'];_0x186587['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x186587['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x267c2c['view']['document'],'enter',(_0x3168ed,_0x23a0cd)=>{const _0x405c47=function(_0x55ed49){const _0x4bb96d=_0x55ed49['getSelectedElement']();if(_0x4bb96d?.['is']('element','footnoteRef'))return _0x4bb96d;return null;}(_0x6c453a);if(_0x405c47){const _0x2ae145=_0x405c47['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2ae145),_0x23a0cd['preventDefault'](),_0x3168ed['stop']();}},{'context':_0x154edf});}['_defineClickHandlers'](){const {editor:_0x362cea}=this,{editing:_0x1b1264}=_0x362cea;_0x362cea['editing']['view']['addObserver'](_0x275c97),_0x362cea['editing']['view']['addObserver'](_0x1889c7);let _0x254def=!0x1;this['listenTo'](_0x1b1264['view']['document'],'pointerdown',(_0x51eadc,_0x51ec06)=>{const {target:_0x12edec}=_0x51ec06,_0x1ad8bf=_0x1b1264['view']['document']['selection'];_0x254def=!!(_0x12edec['is']('element','a')&&_0x12edec['parent']?.['is']('element','sup')&&_0x12edec['parent']['hasClass']('footnote'))&&_0x1ad8bf['getSelectedElement']()===_0x12edec['parent'];},{'priority':'high'}),this['listenTo'](_0x1b1264['view']['document'],'click',(_0x5bc067,_0x299c75)=>{const {target:_0x256e23}=_0x299c75;if(!_0x256e23['is']('element','a'))return;if(_0x256e23['parent']?.['is']('element','sup')&&_0x256e23['parent']['hasClass']('footnote')&&!_0x254def)return void _0x299c75['preventDefault']();let _0xcd855b=_0x256e23['getAttribute']('href');if(!_0xcd855b?.['startsWith']('#'))return;_0xcd855b=_0xcd855b['slice'](0x1);let _0x5a7bc0=!0x1;(_0xcd855b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xcd855b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xcd855b))&&(_0x5a7bc0=!0x0),_0x5a7bc0&&(_0x299c75['preventDefault'](),_0x5bc067['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x44e9e2}={}){return(_0x200222,{writer:_0x41bafc})=>{if(!h(_0x200222))return null;if(!_0x44e9e2)return _0x41bafc['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x85aad5=_0x41bafc['createContainerElement']('p');return _0x41bafc['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x85aad5),_0x85aad5;};}function h(_0x817c7d){const {parent:_0x3bfd94}=_0x817c7d;if(!_0x3bfd94?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3bfd94['childCount'])return!0x1;for(const _0x56d904 of _0x817c7d['getAttributeKeys']())if(!_0x56d904['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x56d904)return!0x1;return!0x0;}function p(_0x4feeb3,_0x37efd3){if(!_0x4feeb3['is']('element','paragraph'))return!0x1;const _0x509424=_0x37efd3['toViewElement'](_0x4feeb3);return!!_0x509424&&h(_0x4feeb3)!==_0x509424['is']('element','span');}function J(_0x129ac2){return _0x154edf(_0x129ac2)&&_0x129ac2['is']('containerElement')&&!!_0x129ac2['getCustomProperty']('footnotesDefinitions');}function g(_0x5d4777,_0x12d803={}){const _0x1f37eb=_0x5d4777['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5d2aae=_0x5d4777['createContainerElement']('ol',{'class':'footnotes-list'},_0x5d4777['createSlot']());return _0x5d4777['createContainerElement']('div',{'class':'footnotes',..._0x12d803},[_0x1f37eb,_0x5d2aae]);}function D(_0x181f15,_0x1be973){const _0x305ad8=_0x181f15['getAttribute']('footnoteId'),_0x3b2580=_0x181f15['getAttribute']('footnoteCounter'),_0x30a004=_0x1be973['createUIElement']('a',{'href':'#'+_0x305ad8},function(_0x2f291b){const _0x842d8a=this['toDomElement'](_0x2f291b);return _0x842d8a['textContent']=_0x3b2580,_0x842d8a;}),_0xb78eb0=_0x1be973['createContainerElement']('sup',{'id':'ref-'+_0x305ad8,'class':'footnote'},[_0x30a004]);return _0xb78eb0['getFillerOffset']=()=>null,_0xb78eb0;}function v(_0x445418,_0x506255,_0x339dce,{dataPipeline:_0x47884c}={}){const {t:t}=_0x339dce,_0x583cec=_0x445418['getAttribute']('footnoteId'),_0x47efed=_0x506255['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x583cec},function(_0x478670){const _0x5efc1f=this['toDomElement'](_0x478670);return _0x5efc1f['innerText']='^',_0x5efc1f;}),_0x39ae6f=_0x47884c?_0x506255['createContainerElement']('div',{'class':'footnote-content'}):_0x498796(_0x506255['createEditableElement']('div',{'class':'footnote-content'}),_0x506255,{'label':t('Footnote\x20content.')});return _0x506255['insert'](_0x506255['createPositionAt'](_0x39ae6f,0x0),_0x506255['createSlot']()),_0x506255['createContainerElement']('li',{'class':'footnote-definition','id':_0x583cec},[_0x47efed,_0x39ae6f]);}class e extends _0x5a4266{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xb323c9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x308427}=this,{plugins:_0x279bc4,model:_0x17f5f9}=_0x308427,_0x1f245f=_0x279bc4['get'](_0xb323c9),_0x380a42=_0x279bc4['get'](c);this['listenTo'](_0x1f245f,'outputTransformation',(_0x439a76,_0x3f55a6)=>{const _0x2ae5b6=function(_0x2f56ea,_0xb0ff2f){const _0x80d353=new Set();for(const {item:_0x2fa9ef}of _0x2f56ea['createRangeIn'](_0xb0ff2f))_0x2fa9ef['is']('element','footnoteRef')&&_0x80d353['add'](_0x2fa9ef['getAttribute']('footnoteId'));return Array['from'](_0x80d353);}(_0x17f5f9,_0x3f55a6['content']);if(!_0x2ae5b6['length'])return;const _0x22181e=_0x380a42['getFootnotes'](),_0x937530=_0x2ae5b6['reduce']((_0xbff18c,_0x36a8c9)=>{const _0x461811=_0x22181e['find'](_0x3d10f0=>_0x3d10f0['id']===_0x36a8c9);if(_0x461811){const _0x11d36c=_0x308427['data']['toView'](_0x461811['definition'],{'isClipboardPipeline':!0x0}),_0x30f2bc=_0x308427['data']['htmlProcessor']['toData'](_0x11d36c);_0xbff18c[_0x461811['id']]=_0x30f2bc;}return _0xbff18c;},Object['create'](null));_0x3f55a6['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x937530));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x631a3b}=this,{model:_0x326337,plugins:_0x24a9f2}=_0x631a3b,{view:_0x1fe5ea}=_0x631a3b['editing'],_0x2257a6=_0x24a9f2['get'](_0xb323c9),_0xe0e39=_0x24a9f2['get'](c);let _0x27dd13=null;this['listenTo'](_0x1fe5ea['document'],'clipboardInput',(_0x35fb32,_0x6a1c53)=>{const _0xf46570=_0x6a1c53['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x27dd13=_0xf46570?JSON['parse'](_0xf46570):null;}),this['listenTo'](_0x2257a6,'contentInsertion',(_0x493a67,_0x499e6f)=>{if(!_0x27dd13)return;const _0x12b7af=_0x499e6f['sourceEditorId']===this['editor']['id'];_0x12b7af&&'drop'===_0x499e6f['method']||_0x326337['change'](_0x1133ab=>{!function(_0x58bb68,_0x1fd36){const _0x1c7a89=[];for(const {item:_0x5f3fe1}of _0x58bb68['createRangeIn'](_0x1fd36))_0x5f3fe1['is']('element','footnotesDefinitions')&&_0x1c7a89['push'](_0x5f3fe1);for(const _0x169893 of _0x1c7a89)_0x58bb68['remove'](_0x169893);}(_0x1133ab,_0x499e6f['content']);let _0x48615a=_0xe0e39['getFootnotesDefinitionsObjectElement']();if(!_0x48615a){const _0x5ed593=_0x326337['document']['selection']['getFirstRange']()['root'];_0x48615a=_0xe0e39['_insertEmptyFootnotesDefinitionsContainer'](_0x1133ab,_0x5ed593);}const _0x511ad9=function(_0x578748,_0x6c970c,_0x127c78){const _0x47fc1e=Object['create'](null);for(const {item:_0x97b71a}of _0x578748['createRangeIn'](_0x6c970c))if(_0x97b71a['is']('element','footnoteRef')){const _0x2702d1=_0x97b71a['getAttribute']('footnoteId');if(!_0x127c78(_0x2702d1))continue;_0x47fc1e[_0x2702d1]||(_0x47fc1e[_0x2702d1]=_0x4ead23()),_0x578748['setAttribute']('footnoteId',_0x47fc1e[_0x2702d1],_0x97b71a);}return _0x47fc1e;}(_0x1133ab,_0x499e6f['content'],_0x20c335=>!_0x12b7af||null!==_0xe0e39['getFootnote'](_0x20c335));for(const [_0x1c1814,_0xe5b27d]of Object['entries'](_0x27dd13)){const _0x1e6b70=_0x511ad9[_0x1c1814]||_0x1c1814,_0xff5399=_0x1133ab['createElement']('footnoteDefinition',{'footnoteId':_0x1e6b70}),_0x586401=_0x631a3b['data']['htmlProcessor']['toView'](_0xe5b27d),_0x55fa20=_0x631a3b['data']['toModel'](_0x586401,_0xff5399);_0x1133ab['append'](_0x55fa20,_0xff5399),_0x1133ab['insert'](_0xff5399,_0x48615a,'end');}_0x27dd13=null;});});}}class i extends _0x5a4266{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xaae9b6}=this,{componentFactory:_0x4588cc}=_0xaae9b6['ui'];_0x4588cc['add']('insertFootnote',x(_0xaae9b6,_0x253836)),_0x4588cc['add']('menuBar:insertFootnote',x(_0xaae9b6,_0x51d454)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x214969=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d4530;for(const _0x25445b in _0x214969){const _0x327471=_0x25445b,_0x3c8582=_0x214969[_0x327471];if('footnotesLicenseKeyValid'==_0x3c8582||'footnotesLicenseKeyInvalid'==_0x3c8582||'footnotesLicenseKeyExpired'==_0x3c8582||'footnotesLicenseKeyDomainLimit'==_0x3c8582||'footnotesLicenseKeyNotAllowed'==_0x3c8582||'footnotesLicenseKeyEvaluationLimit'==_0x3c8582||'footnotesLicenseKeyTrialLimit'==_0x3c8582||'footnotesLicenseKeyUsageLimit'==_0x3c8582){delete _0x214969[_0x327471],_0x2d4530=_0x3c8582,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2d4530&&_0x214969['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2d4530&&_0x214969['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2d4530&&_0x214969['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2d4530&&_0x214969['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2d4530&&_0x214969['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2d4530&&_0x214969['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2d4530&&_0x214969['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x31c85a,_0x61520e){const _0x4ef337=_0x31c85a['commands']['get']('insertFootnote');return _0xeed551=>{const {t:t}=_0xeed551,_0x48abe9=new _0x61520e(_0xeed551),_0x2cc0b9=_0x48abe9 instanceof _0x51d454;return _0x48abe9['bind']('isEnabled')['to'](_0x4ef337,'isEnabled'),_0x48abe9['set']({'label':t(_0x2cc0b9?'Footnote':'Insert\x20footnote'),'icon':_0x4503ac,'tooltip':!0x0}),_0x48abe9['on']('execute',()=>{_0x4ef337['execute'](),_0x31c85a['editing']['view']['focus']();}),_0x48abe9;};}class nt extends _0x5a4266{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x43caa9{['refresh'](){const {editor:_0xb9867b}=this,_0x4645dd=_0xb9867b['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4645dd,this['value']=_0x4645dd?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x149ffb}){const {editor:_0x19ed3c}=this,_0x4f1f1d=_0x19ed3c['plugins']['get'](c),_0x28eeee=_0x4f1f1d['getFootnotesDefinitionsObjectElement']();_0x28eeee&&Q['includes'](_0x149ffb)&&_0x19ed3c['model']['change'](_0x50cb6a=>{_0x50cb6a['setAttribute']('footnotesListStyle',_0x149ffb,_0x28eeee),_0x4f1f1d['_updateFootnotesCounters'](_0x50cb6a);});}}class b extends _0x43caa9{['refresh'](){const {editor:_0x180865}=this,_0x42e1a2=_0x180865['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x42e1a2,this['value']=_0x42e1a2?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x405d5e}){const {editor:_0x49cbc5}=this,_0x5559e0=_0x49cbc5['plugins']['get'](c),_0x4029b6=_0x5559e0['getFootnotesDefinitionsObjectElement']();_0x4029b6&&Number['isInteger'](_0x405d5e)&&_0x49cbc5['model']['change'](_0x51cf02=>{_0x51cf02['setAttribute']('footnotesListStart',_0x405d5e,_0x4029b6),_0x5559e0['_updateFootnotesCounters'](_0x51cf02);});}}class P extends _0x5a4266{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ad16b}=this;_0x2ad16b['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2ad16b['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2ad16b['commands']['add']('footnotesStyle',new S(_0x2ad16b)),_0x2ad16b['commands']['add']('footnotesStart',new b(_0x2ad16b)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x252872}=this,{schema:_0x326d8c}=_0x252872['model'];_0x326d8c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0xdeff10}=this,{conversion:_0x31afee,model:_0x64dd1f}=_0xdeff10,{schema:_0x4f1b81}=_0x64dd1f;_0x31afee['for']('upcast')['add'](_0x48fecb=>{_0x48fecb['on']('element:ol',(_0x4dca73,_0x1920b9,_0x34307c)=>{const _0xb0e015=_0x1920b9['viewItem'],_0x1e445a=_0x1920b9['modelCursor']?.['parent'];_0xb0e015['hasClass']('footnotes-list')&&_0x1e445a?.['is']('element','footnotesDefinitions')&&(function(_0x3d3bd2,_0x15af42,_0x4f082d,_0x145ccf){if(!_0x145ccf['checkAttribute'](_0x15af42,'footnotesListStart'))return;let _0x2faaed=0x1;const _0x161137=_0x4f082d['consumable']['consume'](_0x3d3bd2,{'attributes':'start'});if(_0x161137){const _0x1ab915=Number['parseInt'](_0x3d3bd2['getAttribute']('start'),0xa);Number['isNaN'](_0x1ab915)||(_0x2faaed=_0x1ab915);}!_0x161137&&_0x15af42['hasAttribute']('footnotesListStart')||_0x4f082d['writer']['setAttribute']('footnotesListStart',_0x2faaed,_0x15af42);}(_0xb0e015,_0x1e445a,_0x34307c,_0x4f1b81),function(_0x29d38f,_0x45dbd7,_0x590eef,_0x42e7a1){if(!_0x42e7a1['checkAttribute'](_0x45dbd7,'footnotesListStyle'))return;let _0x1b1074='decimal',_0x3a73ed=!0x1;if(_0x590eef['consumable']['consume'](_0x29d38f,{'attributes':'type'})){const _0x500c81={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x29d38f['getAttribute']('type')];_0x500c81&&(_0x1b1074=_0x500c81),_0x3a73ed=!0x0;}_0x590eef['consumable']['consume'](_0x29d38f,{'styles':'list-style-type'})&&(_0x1b1074=_0x29d38f['getStyle']('list-style-type'),_0x3a73ed=!0x0),!_0x3a73ed&&_0x45dbd7['hasAttribute']('footnotesListStyle')||_0x590eef['writer']['setAttribute']('footnotesListStyle',_0x1b1074,_0x45dbd7);}(_0xb0e015,_0x1e445a,_0x34307c,_0x4f1b81));});}),_0x31afee['for']('downcast')['add'](_0x39d9da=>{_0x39d9da['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x196c97,_0x5b67e7,_0x229f55)=>{if(!_0x229f55['consumable']['consume'](_0x5b67e7['item'],_0x196c97['name']))return;const _0x5825e8=C(_0x5b67e7['item'],_0x229f55['mapper']),{attributeNewValue:_0x5ec56e}=_0x5b67e7;null==_0x5ec56e||0x1===_0x5ec56e?_0x229f55['writer']['removeAttribute']('start',_0x5825e8):_0x229f55['writer']['setAttribute']('start',String(_0x5ec56e),_0x5825e8);}),_0x39d9da['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x36f335,_0x32d024,_0x1b2df7)=>{if(!_0x1b2df7['consumable']['consume'](_0x32d024['item'],_0x36f335['name']))return;const _0x35bd9f=C(_0x32d024['item'],_0x1b2df7['mapper']),{attributeNewValue:_0x51bbda}=_0x32d024;_0x51bbda&&'decimal'!==_0x51bbda?_0x1b2df7['writer']['setStyle']('list-style-type',_0x51bbda,_0x35bd9f):_0x1b2df7['writer']['removeStyle']('list-style-type',_0x35bd9f);});});}['_definePostfixer'](){const {editor:_0x2a4161}=this,{model:_0x397516}=_0x2a4161,_0x1100e5=_0x2a4161['plugins']['get'](c),_0x64da37=this['_getDefaultListStyle'](),_0x3982f1=this['_getDefaultStartIndex']();_0x397516['document']['registerPostFixer'](_0x1f9ff2=>{const _0x330ba5=_0x397516['document']['differ']['getChanges']();let _0x3338dd=!0x1;for(const _0xc3522e of _0x330ba5){if('insert'!==_0xc3522e['type']||'$text'===_0xc3522e['name'])continue;const _0x323549=_0x397516['createRangeOn'](_0xc3522e['position']['nodeAfter']);for(const _0x40fe44 of _0x323549['getItems']())_0x40fe44['is']('element','footnotesDefinitions')&&(!_0x40fe44['hasAttribute']('footnotesListStart')&&_0x397516['schema']['checkAttribute'](_0x40fe44,'footnotesListStart')&&(_0x1f9ff2['setAttribute']('footnotesListStart',_0x3982f1,_0x40fe44),_0x3338dd=!0x0),!_0x40fe44['hasAttribute']('footnotesListStyle')&&_0x397516['schema']['checkAttribute'](_0x40fe44,'footnotesListStyle')&&(_0x1f9ff2['setAttribute']('footnotesListStyle',_0x64da37,_0x40fe44),_0x3338dd=!0x0));}return _0x3338dd&&_0x1100e5['_updateFootnotesCounters'](_0x1f9ff2),_0x3338dd;});}['_defineFormatter'](){const {editor:_0x138274}=this;_0x138274['plugins']['get'](c)['setFootnoteFormatter'](_0x206004=>this['_formatFootnoteListValue'](_0x206004));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5b9900,value:_0x1cc3b0,digits:_0x39daea}){const _0x4806d2=_0x5b9900['getAttribute']('footnotesListStyle'),_0x5b76b6=_0x5b9900['getAttribute']('footnotesListStart'),_0x4df2ef=Math['floor'](_0x1cc3b0)+(_0x5b76b6??0x1)-0x1;switch(_0x4806d2){case'decimal-leading-zero':return function(_0x59a911,_0x2240d5){return String(_0x59a911)['padStart'](_0x2240d5,'0');}(_0x4df2ef,Math['max'](0x2,_0x39daea));case'lower-alpha':case'lower-latin':return M(_0x4df2ef,!0x1);case'upper-alpha':case'upper-latin':return M(_0x4df2ef,!0x0);case'lower-roman':return V(_0x4df2ef,!0x1);case'upper-roman':return V(_0x4df2ef,!0x0);default:return String(_0x4df2ef);}}}function C(_0x5d03e4,_0x217c19){const _0x5d1cec=_0x217c19['toViewElement'](_0x5d03e4);return Array['from'](_0x5d1cec['getChildren']())['find'](_0x19b674=>_0x19b674['is']('element','ol')&&_0x19b674['hasClass']('footnotes-list'));}function M(_0x44f75d,_0xf661ae){let _0x19eb1e='',_0x1fe7c4=_0x44f75d;for(;_0x1fe7c4>0x0;){const _0x354cdd=(_0x1fe7c4-0x1)%0x1a;_0x19eb1e=String['fromCharCode'](0x61+_0x354cdd)+_0x19eb1e,_0x1fe7c4=Math['floor']((_0x1fe7c4-0x1)/0x1a);}return _0xf661ae?_0x19eb1e['toUpperCase']():_0x19eb1e;}const N=[{'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 V(_0x5f50ef,_0x5dafeb){let _0x21a55a='',_0x40bbe5=_0x5f50ef;for(const {value:_0x4aaf8d,numeral:_0x3b10d9}of N)for(;_0x40bbe5>=_0x4aaf8d;)_0x21a55a+=_0x3b10d9,_0x40bbe5-=_0x4aaf8d;return _0x5dafeb?_0x21a55a:_0x21a55a['toLowerCase']();}class H extends _0xf5b978{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x2b99b2();['focusCycler'];constructor(_0x7350a4,{styleButtonViews:_0x3c20f5,styleGridAriaLabel:_0x2b9ecf}){super(_0x7350a4),(this['focusCycler']=new _0x3cadfa({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3c20f5,_0x2b9ecf),[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 _0x3fef38 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3fef38['element']);_0x1023bc({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x2f3cff=_0x205582=>_0x205582['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f3cff),this['keystrokes']['set']('arrowleft',_0x2f3cff),this['keystrokes']['set']('arrowup',_0x2f3cff),this['keystrokes']['set']('arrowdown',_0x2f3cff);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5c68d8,_0x2272ba){const _0x1ca299=new _0xf5b978(this['locale']);return _0x1ca299['children']=_0x1ca299['createCollection'](),_0x1ca299['children']['addMany'](_0x5c68d8),_0x1ca299['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2272ba,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1ca299['children']}),_0x1ca299['children']['delegate']('execute')['to'](this),_0x1ca299['focus']=function(){for(const _0x2aa7d8 of this['children'])if(_0x2aa7d8 instanceof _0x253836&&_0x2aa7d8['isOn'])return void _0x2aa7d8['focus']();this['children']['first']['focus']();},_0x1ca299['focusTracker']=new et(),_0x1ca299['keystrokes']=new ot(),_0x1ca299['render'](),_0x1ca299['keystrokes']['listenTo'](_0x1ca299['element']),this['children']['add'](_0x1ca299),_0x1ca299;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x38f816=this['_createStartIndexPropertyView'](),_0x5a4b5c=[_0x38f816],_0x45592e=new tt(this['locale'],_0x5a4b5c);return _0x45592e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x45592e['buttonView']['bind']('isEnabled')['toMany'](_0x5a4b5c,'isEnabled',(..._0xff0376)=>_0xff0376['some'](_0x159c69=>_0x159c69)),_0x45592e['buttonView']['on']('change:isEnabled',(_0x46b399,_0x15c0fb,_0x15d7b4)=>{_0x15d7b4||(_0x45592e['isCollapsed']=!0x0);}),this['children']['add'](_0x45592e),[_0x38f816,_0x45592e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xf7485c=new st(this['locale'],it);return _0xf7485c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xf7485c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xf7485c['fieldView']['on']('input',()=>{const _0x366eb7=_0xf7485c['fieldView']['element'],_0x192f4f=_0x366eb7['valueAsNumber'];Number['isNaN'](_0x192f4f)?_0xf7485c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x366eb7['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x192f4f}):_0xf7485c['errorText']=t(_0x192f4f<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xf7485c;}}class j extends _0x5a4266{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3e82de,_0x6c205];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x12242a}=this,{componentFactory:_0x15d9d0}=_0x12242a['ui'];_0x12242a['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x15d9d0['add']('footnotesStyle',function(_0x523e88){return _0x2c91f9=>{const {t:t}=_0x2c91f9,_0x197528=_0x523e88['commands']['get']('footnotesStyle'),_0x352fa1=_0x3a1861(_0x2c91f9),{buttonView:_0x325d00}=_0x352fa1;return _0x352fa1['class']='ck-footnotes-styles-dropdown',_0x352fa1['bind']('isEnabled')['to'](_0x197528,'isEnabled'),_0x325d00['set']({'label':t('Footnotes\x20style'),'icon':_0x4503ac,'tooltip':!0x0}),_0x352fa1['once']('change:isOpen',()=>{const _0x1172aa=function({editor:_0x4f40c1,dropdownView:_0x2e3d64}){const {t:t}=_0x4f40c1['locale'],_0x551d2c=t('Footnotes\x20definitions\x20styles'),_0x127a3b=function(_0x5460f9){const t=_0x5460f9['locale']['t'],_0x1a26a2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2df69b},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4459ae},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x965475},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x29a9a7},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1129b8},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x17a7e5}];return _0x1a26a2['map'](function(_0x4c2da8){const _0x3367c6=_0x4c2da8['locale'];return({label:_0xc5fbee,icon:_0x34b849,tooltip:_0x389ed1,style:_0x45dea7})=>{const _0x32a066=_0x4c2da8['commands']['get']('footnotesStyle'),_0x23b556=new _0x253836(_0x3367c6);return _0x23b556['set']({'label':_0xc5fbee,'icon':_0x34b849,'tooltip':_0x389ed1}),_0x23b556['bind']('isOn')['to'](_0x32a066,'value',_0x1c70a0=>_0x1c70a0===_0x45dea7),_0x23b556['bind']('isEnabled')['to'](_0x32a066,'isEnabled'),_0x23b556['on']('execute',()=>{_0x4c2da8['execute']('footnotesStyle',{'value':_0x45dea7}),_0x4c2da8['editing']['view']['focus']();}),_0x23b556;};}(_0x5460f9));}(_0x4f40c1),_0x5503d3=new H(_0x4f40c1['locale'],{'styleGridAriaLabel':_0x551d2c,'styleButtonViews':_0x127a3b});return _0x5503d3['delegate']('execute')['to'](_0x2e3d64),_0x5503d3['on']('footnotesListStart',(_0xe835b4,_0x3583ed)=>{_0x4f40c1['execute']('footnotesStart',{'value':_0x3583ed['startIndex']});}),_0x5503d3;}({'editor':_0x523e88,'dropdownView':_0x352fa1});_0x352fa1['panelView']['children']['add'](_0x1172aa);}),_0x352fa1;};}(_0x12242a));}['afterInit'](){const {editor:_0x482610}=this,{t:t}=_0x482610['locale'],_0x48dd99=_0x482610['plugins']['get'](_0x6c205),{defaultPositions:_0x317860}=_0x3db375;_0x48dd99['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x482610['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x31d9e5=>{let _0x46f021=_0x31d9e5['getFirstPosition']()?.['parent'];return _0x46f021?.['is']('$text')&&(_0x46f021=_0x46f021['parent']),_0x46f021?.['is']('element')?_0x46f021['findAncestor'](J):null;},'positions':[_0x317860['southArrowNorth'],_0x317860['southArrowNorthMiddleWest'],_0x317860['southArrowNorthMiddleEast'],_0x317860['southArrowNorthWest'],_0x317860['southArrowNorthEast'],_0x317860['northArrowSouth'],_0x317860['northArrowSouthMiddleWest'],_0x317860['northArrowSouthMiddleEast'],_0x317860['northArrowSouthWest'],_0x317860['northArrowSouthEast'],_0x317860['viewportStickyNorth']]});}}class lt extends _0x5a4266{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
23
+ import{Plugin as _0x1f3d21,Command as _0x278339}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2c15fa,isWidget as _0x54acc0,toWidgetEditable as _0x3a0a31,WidgetToolbarRepository as _0x148e9e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x17bb3f,logWarning as _0x5d35ce,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5743a6,ClickObserver as _0x4d8c97}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x268d6c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4d1176,ButtonView as _0x238c7e,View as _0x13cfa5,ViewCollection as _0x5477af,FocusCycler as _0x5f207d,addKeyboardHandlingForGrid as _0x4bc2e2,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x37b4f6,BalloonPanelView as _0x2e5d73,createDropdown as _0x5d7306}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x205cc2,IconListStyleDecimal as _0x2284b3,IconListStyleDecimalLeadingZero as _0x5b5fd6,IconListStyleLowerRoman as _0x2fb8f2,IconListStyleUpperRoman as _0x3bb33d,IconListStyleLowerLatin as _0x3379b4,IconListStyleUpperLatin as _0x159f95}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x51ff45,_0x4d13ee){this['_model']=_0x51ff45,this['_elementName']=_0x4d13ee['elementName'],this['_getElementKey']=_0x4d13ee['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1a6e2e){const _0x3160ef=new Set(),_0x5892b8=new Map();for(const _0x3e843a of _0x1a6e2e){if('insert'===_0x3e843a['type']&&'$text'!==_0x3e843a['name']&&_0x3e843a['position']['nodeAfter']){const _0x4dbf10=this['_model']['createRangeOn'](_0x3e843a['position']['nodeAfter']);for(const _0x3e375d of _0x4dbf10['getItems']()){if(!_0x3e375d['is']('element',this['_elementName']))continue;const _0x5598f3=this['_getElementKey'](_0x3e375d);_0x5892b8['has'](_0x5598f3)||_0x5892b8['set'](_0x5598f3,[]),_0x5892b8['get'](_0x5598f3)['push'](_0x3e375d);}}if('remove'===_0x3e843a['type']&&_0x3e843a['name']===this['_elementName']){const _0x54ed32=this['_getElementKey']({'getAttribute':_0x25d888=>_0x3e843a['attributes']['get'](_0x25d888)});_0x3160ef['add'](_0x54ed32);}}for(const [_0x52a0ab,_0x362972]of this['_trackedElements'])'$graveyard'===_0x362972['root']['rootName']&&_0x3160ef['add'](_0x52a0ab);for(const _0x2e5b73 of _0x3160ef)this['_trackedElements']['delete'](_0x2e5b73);for(const [_0x80991b,_0x208820]of _0x5892b8)this['_trackedElements']['set'](_0x80991b,_0x208820[_0x208820['length']-0x1]);const _0x844b71=new Set();for(const [_0x485908,_0x27ba37]of _0x5892b8)_0x3160ef['has'](_0x485908)&&(_0x844b71['add'](_0x27ba37[0x0]),_0x27ba37['length']>0x1?_0x5892b8['set'](_0x485908,_0x27ba37['slice'](0x1)):_0x5892b8['delete'](_0x485908),_0x3160ef['delete'](_0x485908));return{'removed':Array['from'](_0x3160ef),'inserted':Array['from'](_0x5892b8['values']())['flat'](),'moved':Array['from'](_0x844b71)};}}class c extends _0x1f3d21{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x190a49){super(_0x190a49),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x37c7ed=>_0x37c7ed['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1ea96a=>_0x1ea96a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x29845f}=this,{model:_0x2e91fb,data:_0x2342b5}=_0x29845f;_0x2e91fb['document']['registerPostFixer'](_0x57c280=>{const _0x1b71b4=_0x2e91fb['document']['differ']['getChanges']();let _0x1f76cd=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_handleFootnoteReferencesChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x57c280)&&(_0x1f76cd=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x57c280)&&(_0x1f76cd=!0x0),this['_sortFootnoteDefinitions'](_0x57c280)&&(_0x1f76cd=!0x0),_0x1f76cd;}),this['listenTo'](_0x2e91fb['document'],'change:data',()=>{_0x2e91fb['enqueueChange']({'isUndoable':!0x1},_0xd02de6=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xd02de6);});},{'priority':'low'}),this['listenTo'](_0x2342b5,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4811c3){return this['_footnotes']['find'](_0x3b26fa=>_0x3b26fa['id']===_0x4811c3)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2ea01e){this['_footnoteFormatter']=_0x2ea01e;}['_updateFootnotesCounters'](_0x24216d,_0x1f5cff=0x0){let _0x5b42ff=!0x1;for(let _0x3a7246=_0x1f5cff;_0x3a7246<this['_footnotes']['length'];_0x3a7246++)this['_updateFootnoteRefCounter'](_0x24216d,_0x3a7246)&&(_0x5b42ff=!0x0);return _0x5b42ff;}['_insertEmptyFootnotesDefinitionsContainer'](_0x193cce,_0x1c9b08){const _0x53294b=_0x193cce['createElement']('footnotesDefinitions',{});return _0x193cce['append'](_0x53294b,_0x1c9b08),this['_footnotesDefinitions']=_0x53294b,_0x53294b;}['_ensureFootnotesDefinitionsContainerExists'](_0x89f711){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x379baa=this['_footnotes'][0x0]['reference']['root'],_0x368b1a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x89f711,_0x379baa);for(const _0xe441d of this['_footnotes'])_0xe441d['definition']['parent']||_0x89f711['insert'](_0xe441d['definition'],_0x368b1a,'end');this['_updateFootnotesCounters'](_0x89f711);}['_handleFootnotesDefinitionsObjectChanges'](_0x273069,_0x318fcd){let _0x21859d=!0x1;const {inserted:_0x4afd69,removed:_0x336952,moved:_0x15ecf2}=this['_footnoteDefsContainerTracker']['getChanges'](_0x318fcd);if(_0x15ecf2['length']&&(this['_footnotesDefinitions']=_0x15ecf2[0x0]),_0x4afd69['length']){if(_0x4afd69['length']>0x1||this['_footnotesDefinitions']&&_0x4afd69['some'](_0x411d76=>_0x411d76!==this['_footnotesDefinitions'])){const _0x12dab3=_0x273069['createElement']('footnotesDefinitions',{}),_0x1f5a72=[];this['_footnotesDefinitions']&&_0x1f5a72['push'](this['_footnotesDefinitions']),_0x1f5a72['push'](..._0x4afd69),_0x273069['insert'](_0x12dab3,_0x1f5a72[0x0],'before');for(const _0x24ddaf of _0x1f5a72)_0x273069['move'](_0x273069['createRangeIn'](_0x24ddaf),_0x273069['createPositionAt'](_0x12dab3,'end')),_0x273069['remove'](_0x24ddaf);this['_footnotesDefinitions']=_0x12dab3,this['_updateFootnotesCounters'](_0x273069),_0x21859d=!0x0;}else this['_footnotesDefinitions']=_0x4afd69[0x0];}if(_0x336952['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x75b367 of this['_footnotes'])_0x273069['remove'](_0x75b367['reference']),_0x21859d=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x21859d;}['_handleFootnoteDefinitionsChanges'](_0x4b75c5,_0x4218e3){let _0x1c34ed=!0x1;const _0xa58559=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xc04ddb,moved:_0x306632}=this['_footnoteDefsTracker']['getChanges'](_0x4218e3);for(const _0x47dc0b of[..._0x306632,..._0xc04ddb]){const _0x41e836=_0x47dc0b['getAttribute']('footnoteId'),_0x3eb7ee=this['getFootnote'](_0x41e836);_0x3eb7ee&&(_0x3eb7ee['definition']=_0x47dc0b),_(_0x4b75c5,_0xa58559,_0x47dc0b)&&(_0x1c34ed=!0x0);}return _0x1c34ed;}['_handleFootnoteReferencesChanges'](_0xf6ea97,_0x4346de){let _0x25cae0=!0x1;const {removed:_0x46177f,inserted:_0xd65261,moved:_0x5c5ffe}=this['_footnoteRefsTracker']['getChanges'](_0x4346de);for(const _0x434911 of _0x46177f)this['_handleRemoveFootnoteReferenceById'](_0xf6ea97,_0x434911)&&(_0x25cae0=!0x0);for(const _0x283bba of _0xd65261)this['_handleInsertedFootnoteReference'](_0xf6ea97,_0x283bba)&&(_0x25cae0=!0x0);for(const _0x4255f7 of _0x5c5ffe)this['_handleMovedFootnoteReference'](_0xf6ea97,_0x4255f7)&&(_0x25cae0=!0x0);return _0x25cae0;}['_handleFootnotesDefinitionsObjectSync'](_0x340e25){if(!this['_footnotesDefinitions'])return!0x1;let _0x3b1274=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3bd472=[];for(const _0x2887e5 of this['_footnotesDefinitions']['getChildren']()){const _0x204bb2=_0x2887e5['getAttribute']('footnoteId');this['getFootnote'](_0x204bb2)||(_0x3bd472['unshift'](_0x2887e5),_0x3b1274=!0x0);}for(const _0x4246c7 of _0x3bd472)_0x340e25['remove'](_0x4246c7);}const _0x2b5c95=new Set(),_0x355535=[];for(const _0x4b405b of this['_footnotesDefinitions']['getChildren']()){const _0x287ff8=_0x4b405b['getAttribute']('footnoteId');_0x2b5c95['has'](_0x287ff8)?(_0x355535['unshift'](_0x4b405b),_0x3b1274=!0x0):_0x2b5c95['add'](_0x287ff8);}for(const _0x45c650 of _0x355535)_0x340e25['remove'](_0x45c650);return this['_footnotesDefinitions']['childCount']||(_0x340e25['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3b1274=!0x0),_0x3b1274;}['_handleInsertedFootnoteReference'](_0x2c76b2,_0x150b35){if(this['_footnotes']['find'](_0x3d8eab=>_0x3d8eab['reference']===_0x150b35))return!0x1;let _0x5e1791=!0x1;const _0x46dddc=_0x150b35['getAttribute']('footnoteId'),_0x4b4bb9=this['_footnotes']['findIndex'](_0x368fe9=>_0x368fe9['id']===_0x46dddc);-0x1!==_0x4b4bb9&&(_0x2c76b2['remove'](this['_footnotes'][_0x4b4bb9]['reference']),this['_footnotes']['splice'](_0x4b4bb9,0x1),_0x5e1791=!0x0);let _0x56f0a0=this['_footnotesDefinitions']?function(_0x589021,_0x2541e9){for(const _0x4d02d7 of _0x589021['getChildren']())if(_0x4d02d7['getAttribute']('footnoteId')===_0x2541e9)return _0x4d02d7;return null;}(this['_footnotesDefinitions'],_0x46dddc):null;_0x56f0a0||(_0x56f0a0=_0x2c76b2['createElement']('footnoteDefinition',{'footnoteId':_0x46dddc}),this['_footnotesDefinitions']&&(_0x2c76b2['insert'](_0x56f0a0,this['_footnotesDefinitions'],'end'),_0x5e1791=!0x0));const _0x3921c3={'id':_0x46dddc,'reference':_0x150b35,'definition':_0x56f0a0},_0x114cde=I(this['editor']['model'],this['_footnotes'],_0x150b35);this['_footnotes']['splice'](_0x114cde,0x0,_0x3921c3);let _0x4753f3=_0x114cde;return-0x1!==_0x4b4bb9&&(_0x4753f3=Math['min'](_0x114cde,_0x4b4bb9)),this['_updateFootnotesCounters'](_0x2c76b2,_0x4753f3)&&(_0x5e1791=!0x0),_0x5e1791;}['_handleRemoveFootnoteReferenceById'](_0x589eae,_0x16a0b4){const _0x4424b4=this['_footnotes']['findIndex'](_0x1d4260=>_0x1d4260['id']===_0x16a0b4);if(-0x1===_0x4424b4)return!0x1;let _0x5a7596=!0x1;const _0x5cf07f=this['_footnotes'][_0x4424b4];return'$graveyard'!==_0x5cf07f['definition']['root']['rootName']&&(_0x589eae['remove'](_0x5cf07f['definition']),_0x5a7596=!0x0),this['_footnotes']['splice'](_0x4424b4,0x1),this['_updateFootnotesCounters'](_0x589eae,_0x4424b4)&&(_0x5a7596=!0x0),_0x5a7596;}['_handleMovedFootnoteReference'](_0x4e5cae,_0x4b5aeb){const _0x179fe8=_0x4b5aeb['getAttribute']('footnoteId'),_0x4a17ed=this['_footnotes']['findIndex'](_0x367fd2=>_0x367fd2['id']===_0x179fe8),_0x24c1f3=this['_footnotes'][_0x4a17ed];let _0x1e5c7d=!0x1;_0x24c1f3['reference']=_0x4b5aeb,this['_footnotes']['splice'](_0x4a17ed,0x1);const _0x41baae=I(this['editor']['model'],this['_footnotes'],_0x4b5aeb);return this['_footnotes']['splice'](_0x41baae,0x0,_0x24c1f3),this['_updateFootnotesCounters'](_0x4e5cae,Math['min'](_0x4a17ed,_0x41baae))&&(_0x1e5c7d=!0x0),_0x1e5c7d;}['_updateFootnoteRefCounter'](_0x2dafa7,_0x25976d){if(!this['_footnotesDefinitions'])return!0x1;const _0x19aa1f=this['_footnotes'][_0x25976d];let _0x193429;return _0x193429=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x19aa1f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x25976d+0x1}):String(_0x25976d+0x1),_0x19aa1f['reference']['getAttribute']('footnoteCounter')!=_0x193429&&(_0x2dafa7['setAttribute']('footnoteCounter',_0x193429,_0x19aa1f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3fbb54){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3ac97a,_0x4b4e1b){if(_0x3ac97a['length']!==_0x4b4e1b['length'])return!0x1;for(let _0x2c1ffb=0x0;_0x2c1ffb<_0x3ac97a['length'];_0x2c1ffb++)if(_0x3ac97a[_0x2c1ffb]!==_0x4b4e1b[_0x2c1ffb])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x151244=>_0x151244['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x21e3b1=>_0x21e3b1['getAttribute']('footnoteId'))))return!0x1;let _0x3bf5c4=!0x1;for(let _0x98b774=0x0;_0x98b774<this['_footnotes']['length'];_0x98b774++){const _0x386eb8=this['_footnotes'][_0x98b774],_0x327ab3=_0x3fbb54['createPositionBefore'](_0x386eb8['definition']),_0x4e9a72=_0x3fbb54['createPositionAt'](this['_footnotesDefinitions'],_0x98b774);_0x327ab3['isEqual'](_0x4e9a72)||(_0x3fbb54['move'](_0x3fbb54['createRangeOn'](_0x386eb8['definition']),_0x4e9a72),_0x3bf5c4=!0x0);}return _0x3bf5c4;}['_ensureFootnotesReferencesHaveProperOrder'](_0x499889){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2d3291}=this['editor'];let _0x158787=!0x1;for(let _0x4732dd=0x0;_0x4732dd<this['_footnotes']['length']-0x1;_0x4732dd++){const _0x4d2ab2=this['_footnotes'][_0x4732dd],_0x396ec5=this['_footnotes'][_0x4732dd+0x1],_0x5e81b5=_0x2d3291['createPositionBefore'](_0x4d2ab2['reference']),_0x256fea=_0x2d3291['createPositionBefore'](_0x396ec5['reference']);'after'===_0x5e81b5['compareWith'](_0x256fea)&&(this['_handleMovedFootnoteReference'](_0x499889,_0x4d2ab2['reference']),_0x4732dd=-0x1,_0x158787=!0x0);}return _0x158787;}}function _(_0x409219,_0x41a556,_0x1d80da){if(_0x1d80da['childCount'])return!0x1;const _0x3b2685=_0x41a556?'paragraph':'footnoteInlineContent';return _0x409219['insert'](_0x409219['createElement'](_0x3b2685),_0x1d80da),!0x0;}function I(_0x3f572c,_0x4019bc,_0x1243a8){if(0x0===_0x4019bc['length'])return 0x0;const _0x4c9d98=_0x3f572c['createPositionBefore'](_0x1243a8);for(let _0x74aff6=0x0;_0x74aff6<_0x4019bc['length'];_0x74aff6++){const _0x4cc16a=_0x4019bc[_0x74aff6],_0x2d2651=_0x3f572c['createPositionBefore'](_0x4cc16a['reference']);if('before'===_0x4c9d98['compareWith'](_0x2d2651))return _0x74aff6;}const _0x599d0c=_0x1243a8['root'];let _0xcb2166=-0x1;for(let _0x126936=_0x4019bc['length']-0x1;_0x126936>=0x0;_0x126936--)if(_0x4019bc[_0x126936]['reference']['root']===_0x599d0c){_0xcb2166=_0x126936;break;}if(-0x1!==_0xcb2166)return _0xcb2166+0x1;const _0x2a0a65=_0x3f572c['document']['getRootNames'](),_0x502efa=_0x2a0a65['indexOf'](_0x599d0c['rootName']),_0x1464cb=_0x2a0a65[_0x502efa+0x1];if(_0x1464cb){for(let _0xe7d606=0x0;_0xe7d606<_0x4019bc['length'];_0xe7d606++)if(_0x4019bc[_0xe7d606]['reference']['root']['rootName']===_0x1464cb)return _0xe7d606;}return _0x4019bc['length'];}class w extends _0x278339{['refresh'](){const _0x194dd6=this['editor']['model']['document']['selection'],_0x1574f3=this['_getPositionToInsertFootnote'](_0x194dd6);this['isEnabled']=!!_0x1574f3;}['execute'](_0x256460){const {editor:_0x2b9226}=this,{model:_0x4e827f}=_0x2b9226,{selection:_0x5bbd15}=_0x4e827f['document'],_0x42c6bc=this['_getPositionToInsertFootnote'](_0x5bbd15);if(!_0x42c6bc)return;const _0x1bf39c=_0x2b9226['plugins']['get']('FootnotesEditing'),_0x39a68a=_0x256460?.['footnoteId']??_0x17bb3f();!function(_0x532f4d){return'string'==typeof _0x532f4d&&_0x532f4d['length']>0x0&&!/\s/['test'](_0x532f4d)&&!/^\d/['test'](_0x532f4d);}(_0x39a68a)?_0x5d35ce('insert-footnote-command-executed-with-invalid-id'):(_0x4e827f['change'](_0x15be06=>{const _0x240b86=_0x15be06['createElement']('footnoteRef',{'footnoteId':_0x39a68a});_0x4e827f['insertObject'](_0x240b86,_0x42c6bc,null);}),_0x1bf39c['_moveSelectionToFootnoteDefinition'](_0x39a68a));}['_getPositionToInsertFootnote'](_0x24376c){const {model:_0xa523a2}=this['editor'],{schema:_0x5ceb32}=_0xa523a2,_0x2166c5=_0x24376c['getFirstRange']();for(const _0x2118d9 of _0x2166c5['getItems']())if(_0x5ceb32['isBlock'](_0x2118d9)||_0x5ceb32['isObject'](_0x2118d9))return null;const _0xcda1d2=_0x2166c5['end'];return _0x5ceb32['checkChild'](_0xcda1d2,'footnoteRef')?_0xcda1d2:null;}}class r extends _0x1f3d21{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a1dc1}=this;_0x1a1dc1['config']['define']('footnotes.multiBlock',!0x0),_0x1a1dc1['commands']['add']('insertFootnote',new w(_0x1a1dc1)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x15b3eb){const _0x56a332=_0x51eb34([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]),_0x3b3a7d=0x47a28506,_0x4008a0=0x47a5f2de^_0x3b3a7d,_0x45119c=window[_0x51eb34([0x44,0x61,0x74,0x65])][_0x51eb34([0x6e,0x6f,0x77])](),_0x55effc=_0x15b3eb[_0x51eb34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f1fc3=new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f1b38=>{_0x55effc[_0x51eb34([0x6f,0x6e,0x63,0x65])](_0x51eb34([0x72,0x65,0x61,0x64,0x79]),_0x2f1b38);}),_0x8d833d={[_0x51eb34([0x6b,0x74,0x79])]:_0x51eb34([0x45,0x43]),[_0x51eb34([0x75,0x73,0x65])]:_0x51eb34([0x73,0x69,0x67]),[_0x51eb34([0x63,0x72,0x76])]:_0x51eb34([0x50,0x2d,0x32,0x35,0x36]),[_0x51eb34([0x78])]:_0x51eb34([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]),[_0x51eb34([0x79])]:_0x51eb34([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]),[_0x51eb34([0x61,0x6c,0x67])]:_0x51eb34([0x45,0x53,0x32,0x35,0x36])},_0x3b751b=_0x55effc[_0x51eb34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51eb34([0x67,0x65,0x74])](_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x266379(){let _0x38f071,_0x39c2d2=null,_0x5b8cac=null;try{if(_0x3b751b==_0x51eb34([0x47,0x50,0x4c]))return _0x51eb34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38f071=_0x453e17(),!_0x38f071)return _0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38f071[_0x51eb34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b8cac=_0x21a651(_0x38f071[_0x51eb34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38f071[_0x51eb34([0x6a,0x74,0x69])])),await _0x54fedf()?_0xd4b54()?_0x253538()?_0x51eb34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a6f0b()?(_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51eb34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39c2d2=_0x26167a(_0x51eb34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51eb34([0x74,0x72,0x69,0x61,0x6c])&&(_0x39c2d2=_0x26167a(_0x51eb34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb43cf9()):_0x51eb34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51eb34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x253538(){const _0x1a55e6=[_0x51eb34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51eb34([0x74,0x72,0x69,0x61,0x6c])][_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45119c/0x3e8:0xe10*_0x4008a0;return _0x38f071[_0x51eb34([0x65,0x78,0x70])]<_0x1a55e6;}function _0xd4b54(){const _0x42ab8f=_0x38f071[_0x51eb34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42ab8f&&(!!_0x42ab8f[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x2a]))||!!_0x42ab8f[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x46,0x4f,0x4f])));}function _0x2a6f0b(){const _0x1b10b7=_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b10b7||0x0==_0x1b10b7[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52d3df}=new URL(window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b10b7[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d3df))return!0x0;const _0x5b91e1=_0x52d3df[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e]));return _0x1b10b7[_0x51eb34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1491cc=>_0x1491cc[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x2a])))[_0x51eb34([0x6d,0x61,0x70])](_0xdcb4d=>_0xdcb4d[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e])))[_0x51eb34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x801b36=>_0x801b36[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b91e1[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51eb34([0x6d,0x61,0x70])](_0x6c9ee2=>Array(_0x5b91e1[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6c9ee2[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51eb34([0x66,0x69,0x6c,0x6c])](_0x6c9ee2[0x0]===_0x51eb34([0x2a])?_0x51eb34([0x2a]):'')[_0x51eb34([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6c9ee2))[_0x51eb34([0x73,0x6f,0x6d,0x65])](_0x19b6c4=>_0x5b91e1[_0x51eb34([0x65,0x76,0x65,0x72,0x79])]((_0x5a7b22,_0x1095b0)=>_0x19b6c4[_0x1095b0]===_0x5a7b22||_0x19b6c4[_0x1095b0]===_0x51eb34([0x2a])));}function _0xb43cf9(){return _0x39c2d2&&_0x5b8cac?new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b50ad,_0x1839cf)=>{_0x39c2d2[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x3b50ad,_0x1839cf),_0x5b8cac[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x33a1bd=>{_0x33a1bd!=_0x51eb34([0x56,0x61,0x6c,0x69,0x64])&&_0x3b50ad(_0x33a1bd);},_0x1839cf);}):_0x39c2d2||_0x5b8cac||_0x51eb34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21a651(_0x5a724c,_0x2d6ea8){return new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x323e29=>{if(_0x4871ff())return _0x323e29(_0x51eb34([0x56,0x61,0x6c,0x69,0x64]));_0x242598(),_0x55effc[_0x51eb34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x584ed1=!0x1;const _0x30ca2e=_0x17bb3f();function _0x1b6dd2(_0xb2d4a8){return!!_0xb2d4a8&&(typeof _0xb2d4a8===_0x51eb34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb2d4a8===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb2d4a8[_0x51eb34([0x74,0x68,0x65,0x6e])]===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb2d4a8[_0x51eb34([0x63,0x61,0x74,0x63,0x68])]===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44838a(_0x384e4a){_0x9791e8(_0x384e4a)[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x52880b=>{if(!_0x52880b||_0x52880b[_0x51eb34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51eb34([0x6f,0x6b]))return _0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ba8d5(_0x457d54(_0x30ca2e+_0x2d6ea8))!=_0x52880b[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51eb34([0x56,0x61,0x6c,0x69,0x64]);})[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x45669a=>(_0x1823ce(),_0x45669a),()=>{const _0x5552f9=_0x3f0072();return null==_0x5552f9?(_0x1823ce(),_0x51eb34([0x56,0x61,0x6c,0x69,0x64])):_0x51eb34(_0x45119c-_0x5552f9>(0x63ae0106^_0x3b3a7d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x323e29)[_0x51eb34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3783e2=0x47946b86^_0x3b3a7d;function _0x1823ce(){const _0x48c661=_0x51eb34([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ba8d5(_0x457d54(_0x5a724c)),_0x348a4b=_0xeb571b(_0x1ba8d5(window[_0x51eb34([0x4d,0x61,0x74,0x68])][_0x51eb34([0x63,0x65,0x69,0x6c])](_0x45119c/_0x3783e2)));window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51eb34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48c661,_0x348a4b);}function _0x3f0072(){const _0x198b7f=_0x51eb34([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ba8d5(_0x457d54(_0x5a724c)),_0x43c674=window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51eb34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x198b7f);return _0x43c674?window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeb571b(_0x43c674),0x10)*_0x3783e2:null;}function _0x9791e8(_0x41a997){return new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x586dd8,_0x587770)=>{_0x41a997[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x586dd8,_0x587770),window[_0x51eb34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x587770,0x47a351c6^_0x3b3a7d);});}}_0x55effc[_0x51eb34([0x6f,0x6e])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21c70a,_0x5147e4)=>{if(_0x5147e4[0x0]!=_0x5a724c)return _0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5147e4[0x1]={..._0x5147e4[0x1],[_0x51eb34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30ca2e};},{[_0x51eb34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51eb34([0x68,0x69,0x67,0x68])}),_0x55effc[_0x51eb34([0x6f,0x6e])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x138f35=>{_0x1b6dd2(_0x138f35[_0x51eb34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x584ed1=!0x0,_0x44838a(_0x138f35[_0x51eb34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51eb34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51eb34([0x6c,0x6f,0x77])}),_0x4f1fc3[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>{_0x584ed1||_0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4871ff(){return _0x55effc[_0x51eb34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51eb34([0x76,0x69,0x65,0x77])][_0x51eb34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51eb34([0x61,0x75,0x74,0x6f]);}function _0x242598(){_0x55effc[_0x51eb34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51eb34([0x76,0x69,0x65,0x77])][_0x51eb34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51eb34([0x61,0x75,0x74,0x6f]);}}function _0x26167a(_0xfbba4f){const _0x4e8e3f=[new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349f8c=>setTimeout(_0x349f8c,0x47abbbca^_0x3b3a7d)),_0x4f1fc3[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316190=>{let _0x2e2e8a=0x0;_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x6f,0x6e])](_0x51eb34([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f22e6,_0x216a87)=>{_0x216a87[0x0][_0x51eb34([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e2e8a++,_0x2e2e8a==(0x47a284fe^_0x3b3a7d)&&(_0x316190(),_0x3f22e6[_0x51eb34([0x6f,0x66,0x66])]());});}))];return window[_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51eb34([0x72,0x61,0x63,0x65])](_0x4e8e3f)[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>_0xfbba4f);}async function _0x273f41(){await _0x4f1fc3,_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9706e2,_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9706e2,_0x55effc[_0x51eb34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44eac1(_0x1184e4){const _0x24157a=_0x145e62();_0x55effc[_0x24157a]=_0x51eb34([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1184e4,_0x1184e4!=_0x51eb34([0x56,0x61,0x6c,0x69,0x64])&&_0x273f41();}function _0x145e62(){const _0x5dd9a3=window[_0x51eb34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51eb34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51eb34([0x6e,0x6f,0x77])]())[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51eb34([0x2e]),'');let _0x28d199=_0x51eb34([0x75]);for(let _0x2207ad=0x0;_0x2207ad<_0x5dd9a3[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2207ad+=0x2){let _0x1a7958=window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dd9a3[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2207ad,_0x2207ad+0x2));_0x1a7958>=_0x56a332[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a7958-=_0x56a332[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28d199+=_0x56a332[_0x1a7958];}return _0x28d199;}function _0x453e17(){const _0x2730e7=_0x3b751b[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e]));if(0x3!=_0x2730e7[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b3dcf(_0x2730e7[0x1]);function _0x5b3dcf(_0x16cd8d){const _0xdc1c2f=_0x1497ea(_0x16cd8d);return _0xdc1c2f&&_0x3fb5aa()?_0xdc1c2f:null;function _0x3fb5aa(){const _0x576fa4=_0xdc1c2f[_0x51eb34([0x6a,0x74,0x69])],_0x56df05=window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x576fa4[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x576fa4[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9c54a2={..._0xdc1c2f,[_0x51eb34([0x6a,0x74,0x69])]:_0x576fa4[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x576fa4[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9c54a2[_0x51eb34([0x76,0x63])],_0x457d54(_0x9c54a2)==_0x56df05;}}}async function _0x54fedf(){let _0x2cee5d=!0x0;try{const _0x508ed9=_0x3b751b[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e])),[_0x215322,_0x398908,_0x4c4584]=_0x508ed9;return _0x13d4c4(_0x215322),await _0x14589e(_0x215322,_0x398908,_0x4c4584),_0x2cee5d;}catch{return!0x1;}function _0x13d4c4(_0x5b4ff4){const _0x45b67d=_0x1497ea(_0x5b4ff4);_0x45b67d&&_0x45b67d[_0x51eb34([0x61,0x6c,0x67])]==_0x51eb34([0x45,0x53,0x32,0x35,0x36])||(_0x2cee5d=!0x1);}async function _0x14589e(_0x2bfe42,_0x54bc9b,_0x39483b){const _0x6610cc=window[_0x51eb34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51eb34([0x66,0x72,0x6f,0x6d])](_0x1a3783(_0x39483b),_0x368234=>_0x368234[_0x51eb34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x313f8f=new window[(_0x51eb34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51eb34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bfe42+_0x51eb34([0x2e])+_0x54bc9b),_0x51d97e=window[_0x51eb34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51eb34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51d97e)return;const _0x4535d3=await _0x51d97e[_0x51eb34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51eb34([0x6a,0x77,0x6b]),_0x8d833d,{[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x45,0x43,0x44,0x53,0x41]),[_0x51eb34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51eb34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51d97e[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x45,0x43,0x44,0x53,0x41]),[_0x51eb34([0x68,0x61,0x73,0x68])]:{[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4535d3,_0x6610cc,_0x313f8f)||(_0x2cee5d=!0x1);}}function _0x1497ea(_0x4ec858){return _0x4ec858[_0x51eb34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51eb34([0x65,0x79]))?JSON[_0x51eb34([0x70,0x61,0x72,0x73,0x65])](_0x1a3783(_0x4ec858)):null;}function _0x1a3783(_0x45de61){return window[_0x51eb34([0x61,0x74,0x6f,0x62])](_0x45de61[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51eb34([0x2b]))[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51eb34([0x2f])));}function _0x457d54(_0x44b5b2){let _0x440e18=0x1505;function _0x4106f6(_0x54b528){for(let _0x35968a=0x0;_0x35968a<_0x54b528[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35968a++){const _0x419688=_0x54b528[_0x51eb34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35968a);_0x440e18=(_0x440e18<<0x5)+_0x440e18+_0x419688,_0x440e18&=_0x440e18;}}function _0x981679(_0x123c66){Array[_0x51eb34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x123c66)?_0x123c66[_0x51eb34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x981679):_0x123c66&&typeof _0x123c66==_0x51eb34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51eb34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x123c66)[_0x51eb34([0x73,0x6f,0x72,0x74])]()[_0x51eb34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ced81,_0x520bfa])=>{_0x4106f6(_0x2ced81),_0x981679(_0x520bfa);}):_0x4106f6(window[_0x51eb34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x123c66));}return _0x981679(_0x44b5b2),_0x440e18>>>0x0;}function _0x1ba8d5(_0x42dbf7){return _0x42dbf7[_0x51eb34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51eb34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51eb34([0x30]));}function _0xeb571b(_0xf2a5ab){return _0xf2a5ab[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51eb34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51eb34([0x6a,0x6f,0x69,0x6e])]('');}function _0x9706e2(){}function _0x51eb34(_0x406b61){return _0x406b61['map'](_0x4061e4=>String['fromCharCode'](_0x4061e4))['join']('');}_0x44eac1(await _0x266379());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2b949b){const {plugins:_0x507b34,editing:_0x51d5a9,model:_0x38e12e}=this['editor'],_0x32a6f9=_0x507b34['get'](c)['getFootnote'](_0x2b949b);return!!_0x32a6f9&&(_0x38e12e['change'](_0x362657=>{_0x362657['setSelection'](_0x362657['createPositionAt'](_0x32a6f9['definition'],'end'));}),_0x51d5a9['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3df88b){const {plugins:_0x978888,editing:_0x49c0c6,model:_0x3eb157}=this['editor'],_0xb36b76=_0x978888['get'](c)['getFootnote'](_0x3df88b);return!!_0xb36b76&&(_0x3eb157['change'](_0x44a438=>{_0x44a438['setSelection'](_0xb36b76['reference'],'on');}),_0x49c0c6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x429266}=this['editor']['model'],_0x49e129=this['editor']['config']['get']('footnotes.multiBlock');_0x429266['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x429266['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x429266['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x49e129?_0x429266['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x429266['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x429266['addChildCheck'](_0x164a1a=>{for(const _0x148d30 of _0x164a1a)if('footnoteDefinition'===_0x148d30['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1d162a}=this,{conversion:_0x20bb67,editing:_0x245c5e}=_0x1d162a,{t:t}=_0x1d162a['locale'];_0x20bb67['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2a3595,{writer:_0x20e91d,consumable:_0x10ea57})=>{const _0x376cc9=_0x2a3595['getChild'](0x0);if(!_0x376cc9||!_0x376cc9['is']('element','a'))return null;const _0x4b180=_0x376cc9['getAttribute']('href')||'';if(!_0x4b180['startsWith']('#'))return null;const _0x32f9bc=_0x4b180['replace'](/^#/,'');if(!_0x32f9bc)return null;_0x10ea57['consume'](_0x376cc9,{'name':!0x0,'attributes':['href']});for(const {item:_0x599ec7}of _0x245c5e['view']['createRangeIn'](_0x376cc9))_0x599ec7['is']('$textProxy')?_0x10ea57['consume'](_0x599ec7['textNode'],{'name':!0x0}):_0x599ec7['is']('element')&&_0x10ea57['consume'](_0x599ec7,{'name':!0x0});return _0x20e91d['createElement']('footnoteRef',{'footnoteId':_0x32f9bc});}}),_0x20bb67['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x545300,{writer:_0x53bba0})=>D(_0x545300,_0x53bba0)}),_0x20bb67['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xd2890c,{writer:_0x305474})=>{const _0x166233=_0xd2890c['getAttribute']('footnoteCounter');return _0x2c15fa(D(_0xd2890c,_0x305474),_0x305474,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x166233)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5195b6}=this,{t:t}=_0x5195b6['locale'],{conversion:_0x3f082b}=_0x5195b6;_0x3f082b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3f082b['for']('upcast')['add'](_0x495f29=>{_0x495f29['on']('element:ol',(_0x53620d,_0x592076,_0x48ab2e)=>{const _0x4c1c04=_0x592076['viewItem'];if(!_0x4c1c04['hasClass']('footnotes-list')||!_0x592076['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x48ab2e['consumable']['consume'](_0x4c1c04,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5c6c5a,modelCursor:_0x1db45d}=_0x48ab2e['convertChildren'](_0x592076['viewItem'],_0x592076['modelCursor']);_0x592076['modelRange']=_0x5c6c5a,_0x592076['modelCursor']=_0x1db45d;}),_0x495f29['on']('element:hr',(_0x2079ea,_0x15bcac,_0x1d200e)=>{const _0x5c6b6b=_0x15bcac['viewItem'];_0x5c6b6b['hasClass']('footnotes-divider')&&_0x15bcac['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1d200e['consumable']['consume'](_0x5c6b6b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3f082b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1be48,{writer:_0x27f190})=>g(_0x27f190)}),_0x3f082b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x330319,{writer:_0x280dd9})=>{const _0x375e5f=g(_0x280dd9,{'data-footnotes-list-label':t('Footnotes')}),_0x208676=_0x2c15fa(_0x375e5f,_0x280dd9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x280dd9['setCustomProperty']('footnotesDefinitions',!0x0,_0x208676),_0x208676;}});}['_defineDefinitionConverters'](){const {editor:_0x37ce85}=this,{conversion:_0x2ea3d9,locale:_0x5400b5}=_0x37ce85,_0xae38a=_0x37ce85['config']['get']('footnotes.multiBlock');_0x2ea3d9['for']('upcast')['add'](_0x4d769d=>{_0x4d769d['on']('element:li',(_0x319f2d,_0xaf3c21,_0x213b56)=>{const _0x19589a=_0xaf3c21['viewItem'];if(!_0x19589a['hasClass']('footnote-definition')||!_0x19589a['getAttribute']('id'))return;const _0x28913d=_0x19589a['parent'];if(!_0x28913d['is']('element','ol')||!_0x28913d['hasClass']('footnotes-list'))return;if(!_0x213b56['consumable']['test'](_0x19589a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x298ceb=_0x213b56['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x19589a['getAttribute']('id')});if(!_0x213b56['safeInsert'](_0x298ceb,_0xaf3c21['modelCursor']))return;_0x213b56['consumable']['consume'](_0x19589a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x328203=Array['from'](_0x19589a['getChildren']())['find'](_0x15258c=>_0x15258c['is']('element')&&_0x15258c['hasClass']('footnote-content'));for(const _0x5d7633 of _0x19589a['getChildren']())_0x5d7633['is']('element')&&(_0x213b56['consumable']['consume'](_0x5d7633,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x213b56['consumable']['consume'](_0x5d7633,{'name':!0x0,'classes':'footnote-content'}));if(_0x328203){if(_0xae38a)_0x213b56['convertChildren'](_0x328203,_0x298ceb);else{const _0x406fd0=_0x213b56['writer']['createElement']('footnoteInlineContent');_0x213b56['writer']['insert'](_0x406fd0,_0x298ceb),_0x213b56['convertChildren'](_0x328203,_0x406fd0);}}_0x213b56['updateConversionResult'](_0x298ceb,_0xaf3c21);});}),_0x2ea3d9['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x36a40a,{writer:_0x4e92ef})=>v(_0x36a40a,_0x4e92ef,_0x5400b5,{'dataPipeline':!0x0})}),_0x2ea3d9['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x302d0f,{writer:_0x77ea46})=>v(_0x302d0f,_0x77ea46,_0x5400b5)});}['_defineBogusParagraphConverters'](){const {editor:_0x58f39c}=this,{conversion:_0x1fd39e}=_0x58f39c;_0x58f39c['config']['get']('footnotes.multiBlock')?(_0x1fd39e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x1fd39e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x58f39c['model']['document'],'change:data',()=>{!function(_0x593879,_0x177df0){const _0x54eb2b=_0x593879['document']['differ'],_0xcb1bbb=new Set();for(const _0xb4f446 of _0x54eb2b['getChanges']()){const _0x3c9945='attribute'==_0xb4f446['type']?_0xb4f446['range']['start']['parent']:_0xb4f446['position']['parent'];_0x3c9945['is']('element','footnoteDefinition')&&_0xcb1bbb['add'](_0x3c9945);}for(const _0x3d2d52 of _0xcb1bbb['values']()){const _0x4b116f=Array['from'](_0x3d2d52['getChildren']())['filter'](_0x47037b=>p(_0x47037b,_0x177df0['mapper']));for(const _0x3b01e0 of _0x4b116f)_0x177df0['reconvertItem'](_0x3b01e0);}}(_0x58f39c['model'],_0x58f39c['editing']);})):(_0x1fd39e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x1fd39e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5eb7fa,{writer:_0xd2c6fa})=>{const _0x3446d5=_0xd2c6fa['createContainerElement']('span');return _0xd2c6fa['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3446d5),_0x3446d5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5ca190}=this,{editing:_0x2f3daa,t:t}=_0x5ca190,_0x516de7=_0x5ca190['model']['document']['selection'];_0x5ca190['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5ca190['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x2f3daa['view']['document'],'enter',(_0xc9f51,_0x2f47a2)=>{const _0x400017=function(_0x56c469){const _0x1ac725=_0x56c469['getSelectedElement']();if(_0x1ac725?.['is']('element','footnoteRef'))return _0x1ac725;return null;}(_0x516de7);if(_0x400017){const _0x580612=_0x400017['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x580612),_0x2f47a2['preventDefault'](),_0xc9f51['stop']();}},{'context':_0x54acc0});}['_defineClickHandlers'](){const {editor:_0x8fccf7}=this,{editing:_0x56f919}=_0x8fccf7;_0x8fccf7['editing']['view']['addObserver'](_0x5743a6),_0x8fccf7['editing']['view']['addObserver'](_0x4d8c97);let _0x326546=!0x1;this['listenTo'](_0x56f919['view']['document'],'pointerdown',(_0x213d67,_0x3472b2)=>{const {target:_0x38cf82}=_0x3472b2,_0xbd6393=_0x56f919['view']['document']['selection'];_0x326546=!!(_0x38cf82['is']('element','a')&&_0x38cf82['parent']?.['is']('element','sup')&&_0x38cf82['parent']['hasClass']('footnote'))&&_0xbd6393['getSelectedElement']()===_0x38cf82['parent'];},{'priority':'high'}),this['listenTo'](_0x56f919['view']['document'],'click',(_0x16f4da,_0x5efc71)=>{const {target:_0x4fbdbd}=_0x5efc71;if(!_0x4fbdbd['is']('element','a'))return;if(_0x4fbdbd['parent']?.['is']('element','sup')&&_0x4fbdbd['parent']['hasClass']('footnote')&&!_0x326546)return void _0x5efc71['preventDefault']();let _0x22b4c3=_0x4fbdbd['getAttribute']('href');if(!_0x22b4c3?.['startsWith']('#'))return;_0x22b4c3=_0x22b4c3['slice'](0x1);let _0x3228ba=!0x1;(_0x22b4c3['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x22b4c3['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x22b4c3))&&(_0x3228ba=!0x0),_0x3228ba&&(_0x5efc71['preventDefault'](),_0x16f4da['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x362259}={}){return(_0x167c18,{writer:_0x38a5ed})=>{if(!h(_0x167c18))return null;if(!_0x362259)return _0x38a5ed['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x55bf5c=_0x38a5ed['createContainerElement']('p');return _0x38a5ed['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x55bf5c),_0x55bf5c;};}function h(_0x441eb1){const {parent:_0x1e40cc}=_0x441eb1;if(!_0x1e40cc?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e40cc['childCount'])return!0x1;for(const _0x1cebc6 of _0x441eb1['getAttributeKeys']())if(!_0x1cebc6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1cebc6)return!0x1;return!0x0;}function p(_0x1bbcc0,_0x2c9422){if(!_0x1bbcc0['is']('element','paragraph'))return!0x1;const _0x57e521=_0x2c9422['toViewElement'](_0x1bbcc0);return!!_0x57e521&&h(_0x1bbcc0)!==_0x57e521['is']('element','span');}function J(_0x2994c2){return _0x54acc0(_0x2994c2)&&_0x2994c2['is']('containerElement')&&!!_0x2994c2['getCustomProperty']('footnotesDefinitions');}function g(_0x577b9e,_0x260ded={}){const _0x5a660c=_0x577b9e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x451ed4=_0x577b9e['createContainerElement']('ol',{'class':'footnotes-list'},_0x577b9e['createSlot']());return _0x577b9e['createContainerElement']('div',{'class':'footnotes',..._0x260ded},[_0x5a660c,_0x451ed4]);}function D(_0xcc4a83,_0x58c0a0){const _0x27716b=_0xcc4a83['getAttribute']('footnoteId'),_0x145b2e=_0xcc4a83['getAttribute']('footnoteCounter'),_0xec2938=_0x58c0a0['createUIElement']('a',{'href':'#'+_0x27716b},function(_0x2db0cf){const _0x1e996a=this['toDomElement'](_0x2db0cf);return _0x1e996a['textContent']=_0x145b2e,_0x1e996a;}),_0xf6f1e6=_0x58c0a0['createContainerElement']('sup',{'id':'ref-'+_0x27716b,'class':'footnote'},[_0xec2938]);return _0xf6f1e6['getFillerOffset']=()=>null,_0xf6f1e6;}function v(_0x270928,_0x179b4a,_0x4bd8f4,{dataPipeline:_0x103853}={}){const {t:t}=_0x4bd8f4,_0x5ea890=_0x270928['getAttribute']('footnoteId'),_0x2f4465=_0x179b4a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5ea890},function(_0x293a5f){const _0x327781=this['toDomElement'](_0x293a5f);return _0x327781['innerText']='^',_0x327781;}),_0x1892ca=_0x103853?_0x179b4a['createContainerElement']('div',{'class':'footnote-content'}):_0x3a0a31(_0x179b4a['createEditableElement']('div',{'class':'footnote-content'}),_0x179b4a,{'label':t('Footnote\x20content.')});return _0x179b4a['insert'](_0x179b4a['createPositionAt'](_0x1892ca,0x0),_0x179b4a['createSlot']()),_0x179b4a['createContainerElement']('li',{'class':'footnote-definition','id':_0x5ea890},[_0x2f4465,_0x1892ca]);}class e extends _0x1f3d21{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x268d6c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5ad368}=this,{plugins:_0x76b9c7,model:_0x2d59b4}=_0x5ad368,_0x5cb5eb=_0x76b9c7['get'](_0x268d6c),_0xb4cca=_0x76b9c7['get'](c);this['listenTo'](_0x5cb5eb,'outputTransformation',(_0x31b3a5,_0x3de4da)=>{const _0xf31427=function(_0x5532b8,_0x3b1d60){const _0x4a4934=new Set();for(const {item:_0x5bc40f}of _0x5532b8['createRangeIn'](_0x3b1d60))_0x5bc40f['is']('element','footnoteRef')&&_0x4a4934['add'](_0x5bc40f['getAttribute']('footnoteId'));return Array['from'](_0x4a4934);}(_0x2d59b4,_0x3de4da['content']);if(!_0xf31427['length'])return;const _0x52ae34=_0xb4cca['getFootnotes'](),_0x81e75a=_0xf31427['reduce']((_0x38326b,_0x5e883e)=>{const _0x4930cc=_0x52ae34['find'](_0x73dd35=>_0x73dd35['id']===_0x5e883e);if(_0x4930cc){const _0xab1153=_0x5ad368['data']['toView'](_0x4930cc['definition'],{'isClipboardPipeline':!0x0}),_0x95f289=_0x5ad368['data']['htmlProcessor']['toData'](_0xab1153);_0x38326b[_0x4930cc['id']]=_0x95f289;}return _0x38326b;},Object['create'](null));_0x3de4da['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x81e75a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x309647}=this,{model:_0x5ae7b6,plugins:_0xcea926}=_0x309647,{view:_0x5966d3}=_0x309647['editing'],_0x2abaeb=_0xcea926['get'](_0x268d6c),_0x3b5fc3=_0xcea926['get'](c);let _0x48c142=null;this['listenTo'](_0x5966d3['document'],'clipboardInput',(_0x59fb5c,_0xe7dca)=>{const _0x440207=_0xe7dca['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x48c142=_0x440207?JSON['parse'](_0x440207):null;}),this['listenTo'](_0x2abaeb,'contentInsertion',(_0x48ce16,_0x1c729c)=>{if(!_0x48c142)return;const _0x54e416=_0x1c729c['sourceEditorId']===this['editor']['id'];_0x54e416&&'drop'===_0x1c729c['method']||_0x5ae7b6['change'](_0x52f3ed=>{!function(_0x490c78,_0x29275e){const _0x38b0f5=[];for(const {item:_0x5c211e}of _0x490c78['createRangeIn'](_0x29275e))_0x5c211e['is']('element','footnotesDefinitions')&&_0x38b0f5['push'](_0x5c211e);for(const _0x248da9 of _0x38b0f5)_0x490c78['remove'](_0x248da9);}(_0x52f3ed,_0x1c729c['content']);let _0x1533c0=_0x3b5fc3['getFootnotesDefinitionsObjectElement']();if(!_0x1533c0){const _0xf826c9=_0x5ae7b6['document']['selection']['getFirstRange']()['root'];_0x1533c0=_0x3b5fc3['_insertEmptyFootnotesDefinitionsContainer'](_0x52f3ed,_0xf826c9);}const _0x1ffce2=function(_0x28ac5e,_0x236cf6,_0x339b37){const _0x25ba36=Object['create'](null);for(const {item:_0x8f040e}of _0x28ac5e['createRangeIn'](_0x236cf6))if(_0x8f040e['is']('element','footnoteRef')){const _0x4206d3=_0x8f040e['getAttribute']('footnoteId');if(!_0x339b37(_0x4206d3))continue;_0x25ba36[_0x4206d3]||(_0x25ba36[_0x4206d3]=_0x17bb3f()),_0x28ac5e['setAttribute']('footnoteId',_0x25ba36[_0x4206d3],_0x8f040e);}return _0x25ba36;}(_0x52f3ed,_0x1c729c['content'],_0x2645ee=>!_0x54e416||null!==_0x3b5fc3['getFootnote'](_0x2645ee));for(const [_0x456b7c,_0x3f403b]of Object['entries'](_0x48c142)){const _0x475200=_0x1ffce2[_0x456b7c]||_0x456b7c,_0x58d057=_0x52f3ed['createElement']('footnoteDefinition',{'footnoteId':_0x475200}),_0x97e2f3=_0x309647['data']['htmlProcessor']['toView'](_0x3f403b),_0x53a1f1=_0x309647['data']['toModel'](_0x97e2f3,_0x58d057);_0x52f3ed['append'](_0x53a1f1,_0x58d057),_0x52f3ed['insert'](_0x58d057,_0x1533c0,'end');}_0x48c142=null;});});}}class i extends _0x1f3d21{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x608bd4}=this,{componentFactory:_0x322615}=_0x608bd4['ui'];_0x322615['add']('insertFootnote',x(_0x608bd4,_0x238c7e)),_0x322615['add']('menuBar:insertFootnote',x(_0x608bd4,_0x4d1176)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd5da9c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26d2c3;for(const _0x110132 in _0xd5da9c){const _0x362e41=_0x110132,_0x136afe=_0xd5da9c[_0x362e41];if('footnotesLicenseKeyValid'==_0x136afe||'footnotesLicenseKeyInvalid'==_0x136afe||'footnotesLicenseKeyExpired'==_0x136afe||'footnotesLicenseKeyDomainLimit'==_0x136afe||'footnotesLicenseKeyNotAllowed'==_0x136afe||'footnotesLicenseKeyEvaluationLimit'==_0x136afe||'footnotesLicenseKeyTrialLimit'==_0x136afe||'footnotesLicenseKeyUsageLimit'==_0x136afe){delete _0xd5da9c[_0x362e41],_0x26d2c3=_0x136afe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x36f086,_0x19fd90){const _0x33dd57=_0x36f086['commands']['get']('insertFootnote');return _0x3d881b=>{const {t:t}=_0x3d881b,_0x1661d6=new _0x19fd90(_0x3d881b),_0xd6b79e=_0x1661d6 instanceof _0x4d1176;return _0x1661d6['bind']('isEnabled')['to'](_0x33dd57,'isEnabled'),_0x1661d6['set']({'label':t(_0xd6b79e?'Footnote':'Insert\x20footnote'),'icon':_0x205cc2,'tooltip':!0x0}),_0x1661d6['on']('execute',()=>{_0x33dd57['execute'](),_0x36f086['editing']['view']['focus']();}),_0x1661d6;};}class nt extends _0x1f3d21{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x278339{['refresh'](){const {editor:_0x33132d}=this,_0x4ba462=_0x33132d['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4ba462,this['value']=_0x4ba462?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x138af7}){const {editor:_0x1dc921}=this,_0x4b9645=_0x1dc921['plugins']['get'](c),_0x2ceb0f=_0x4b9645['getFootnotesDefinitionsObjectElement']();_0x2ceb0f&&Q['includes'](_0x138af7)&&_0x1dc921['model']['change'](_0x89b574=>{_0x89b574['setAttribute']('footnotesListStyle',_0x138af7,_0x2ceb0f),_0x4b9645['_updateFootnotesCounters'](_0x89b574);});}}class b extends _0x278339{['refresh'](){const {editor:_0x1a0e68}=this,_0x4f04eb=_0x1a0e68['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4f04eb,this['value']=_0x4f04eb?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1bffb5}){const {editor:_0x4db566}=this,_0x49935b=_0x4db566['plugins']['get'](c),_0x1da13d=_0x49935b['getFootnotesDefinitionsObjectElement']();_0x1da13d&&Number['isInteger'](_0x1bffb5)&&_0x4db566['model']['change'](_0x1c9509=>{_0x1c9509['setAttribute']('footnotesListStart',_0x1bffb5,_0x1da13d),_0x49935b['_updateFootnotesCounters'](_0x1c9509);});}}class P extends _0x1f3d21{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x561014}=this;_0x561014['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x561014['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x561014['commands']['add']('footnotesStyle',new S(_0x561014)),_0x561014['commands']['add']('footnotesStart',new b(_0x561014)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x37c198}=this,{schema:_0x3dd664}=_0x37c198['model'];_0x3dd664['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2b397e}=this,{conversion:_0x45cc80,model:_0x15d635}=_0x2b397e,{schema:_0x547799}=_0x15d635;_0x45cc80['for']('upcast')['add'](_0x1d76b3=>{_0x1d76b3['on']('element:ol',(_0x560998,_0x37f3c4,_0x1e45e0)=>{const _0xffccac=_0x37f3c4['viewItem'],_0x54cd1b=_0x37f3c4['modelCursor']?.['parent'];_0xffccac['hasClass']('footnotes-list')&&_0x54cd1b?.['is']('element','footnotesDefinitions')&&(function(_0x5068a9,_0x5ea8d2,_0x232ff2,_0x458d84){if(!_0x458d84['checkAttribute'](_0x5ea8d2,'footnotesListStart'))return;let _0x44553f=0x1;const _0x4055df=_0x232ff2['consumable']['consume'](_0x5068a9,{'attributes':'start'});if(_0x4055df){const _0x56ff29=Number['parseInt'](_0x5068a9['getAttribute']('start'),0xa);Number['isNaN'](_0x56ff29)||(_0x44553f=_0x56ff29);}!_0x4055df&&_0x5ea8d2['hasAttribute']('footnotesListStart')||_0x232ff2['writer']['setAttribute']('footnotesListStart',_0x44553f,_0x5ea8d2);}(_0xffccac,_0x54cd1b,_0x1e45e0,_0x547799),function(_0x29b99a,_0xef20f6,_0x35792c,_0x1f3e60){if(!_0x1f3e60['checkAttribute'](_0xef20f6,'footnotesListStyle'))return;let _0x21eb51='decimal',_0x19ad37=!0x1;if(_0x35792c['consumable']['consume'](_0x29b99a,{'attributes':'type'})){const _0xcdfb96={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x29b99a['getAttribute']('type')];_0xcdfb96&&(_0x21eb51=_0xcdfb96),_0x19ad37=!0x0;}_0x35792c['consumable']['consume'](_0x29b99a,{'styles':'list-style-type'})&&(_0x21eb51=_0x29b99a['getStyle']('list-style-type'),_0x19ad37=!0x0),!_0x19ad37&&_0xef20f6['hasAttribute']('footnotesListStyle')||_0x35792c['writer']['setAttribute']('footnotesListStyle',_0x21eb51,_0xef20f6);}(_0xffccac,_0x54cd1b,_0x1e45e0,_0x547799));});}),_0x45cc80['for']('downcast')['add'](_0x2bd269=>{_0x2bd269['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x27b70e,_0x1a417c,_0x1f35c8)=>{if(!_0x1f35c8['consumable']['consume'](_0x1a417c['item'],_0x27b70e['name']))return;const _0x596db0=C(_0x1a417c['item'],_0x1f35c8['mapper']),{attributeNewValue:_0x48d112}=_0x1a417c;null==_0x48d112||0x1===_0x48d112?_0x1f35c8['writer']['removeAttribute']('start',_0x596db0):_0x1f35c8['writer']['setAttribute']('start',String(_0x48d112),_0x596db0);}),_0x2bd269['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3a5b7f,_0x2f584b,_0x548bcc)=>{if(!_0x548bcc['consumable']['consume'](_0x2f584b['item'],_0x3a5b7f['name']))return;const _0x18aa65=C(_0x2f584b['item'],_0x548bcc['mapper']),{attributeNewValue:_0x50e382}=_0x2f584b;_0x50e382&&'decimal'!==_0x50e382?_0x548bcc['writer']['setStyle']('list-style-type',_0x50e382,_0x18aa65):_0x548bcc['writer']['removeStyle']('list-style-type',_0x18aa65);});});}['_definePostfixer'](){const {editor:_0x22e5c0}=this,{model:_0x29e909}=_0x22e5c0,_0x575c9f=_0x22e5c0['plugins']['get'](c),_0x39547a=this['_getDefaultListStyle'](),_0x6ac73=this['_getDefaultStartIndex']();_0x29e909['document']['registerPostFixer'](_0x5a6203=>{const _0x14fcbe=_0x29e909['document']['differ']['getChanges']();let _0xd3fc56=!0x1;for(const _0x4e794d of _0x14fcbe){if('insert'!==_0x4e794d['type']||'$text'===_0x4e794d['name'])continue;const _0x8f210a=_0x29e909['createRangeOn'](_0x4e794d['position']['nodeAfter']);for(const _0x23f66c of _0x8f210a['getItems']())_0x23f66c['is']('element','footnotesDefinitions')&&(!_0x23f66c['hasAttribute']('footnotesListStart')&&_0x29e909['schema']['checkAttribute'](_0x23f66c,'footnotesListStart')&&(_0x5a6203['setAttribute']('footnotesListStart',_0x6ac73,_0x23f66c),_0xd3fc56=!0x0),!_0x23f66c['hasAttribute']('footnotesListStyle')&&_0x29e909['schema']['checkAttribute'](_0x23f66c,'footnotesListStyle')&&(_0x5a6203['setAttribute']('footnotesListStyle',_0x39547a,_0x23f66c),_0xd3fc56=!0x0));}return _0xd3fc56&&_0x575c9f['_updateFootnotesCounters'](_0x5a6203),_0xd3fc56;});}['_defineFormatter'](){const {editor:_0x5c3b8b}=this;_0x5c3b8b['plugins']['get'](c)['setFootnoteFormatter'](_0x1da184=>this['_formatFootnoteListValue'](_0x1da184));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2f2db8,value:_0x1e21bc,digits:_0x564e10}){const _0x4ca9c7=_0x2f2db8['getAttribute']('footnotesListStyle'),_0x341d18=_0x2f2db8['getAttribute']('footnotesListStart'),_0x461047=Math['floor'](_0x1e21bc)+(_0x341d18??0x1)-0x1;switch(_0x4ca9c7){case'decimal-leading-zero':return function(_0x173b07,_0x3fb035){return String(_0x173b07)['padStart'](_0x3fb035,'0');}(_0x461047,Math['max'](0x2,_0x564e10));case'lower-alpha':case'lower-latin':return M(_0x461047,!0x1);case'upper-alpha':case'upper-latin':return M(_0x461047,!0x0);case'lower-roman':return V(_0x461047,!0x1);case'upper-roman':return V(_0x461047,!0x0);default:return String(_0x461047);}}}function C(_0x424d54,_0xe8daa4){const _0x2a4510=_0xe8daa4['toViewElement'](_0x424d54);return Array['from'](_0x2a4510['getChildren']())['find'](_0x42d8ab=>_0x42d8ab['is']('element','ol')&&_0x42d8ab['hasClass']('footnotes-list'));}function M(_0xddbe96,_0x27a58b){let _0xc79b90='',_0x282f5c=_0xddbe96;for(;_0x282f5c>0x0;){const _0x144d12=(_0x282f5c-0x1)%0x1a;_0xc79b90=String['fromCharCode'](0x61+_0x144d12)+_0xc79b90,_0x282f5c=Math['floor']((_0x282f5c-0x1)/0x1a);}return _0x27a58b?_0xc79b90['toUpperCase']():_0xc79b90;}const N=[{'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 V(_0x475c04,_0x39e7ba){let _0xebec45='',_0x2a5f29=_0x475c04;for(const {value:_0x3b6daa,numeral:_0x545e2a}of N)for(;_0x2a5f29>=_0x3b6daa;)_0xebec45+=_0x545e2a,_0x2a5f29-=_0x3b6daa;return _0x39e7ba?_0xebec45:_0xebec45['toLowerCase']();}class H extends _0x13cfa5{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x5477af();['focusCycler'];constructor(_0x5b582f,{styleButtonViews:_0x3c11df,styleGridAriaLabel:_0x40d0e9}){super(_0x5b582f),(this['focusCycler']=new _0x5f207d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3c11df,_0x40d0e9),[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 _0x2338af of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2338af['element']);_0x4bc2e2({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x912140=_0x33246b=>_0x33246b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x912140),this['keystrokes']['set']('arrowleft',_0x912140),this['keystrokes']['set']('arrowup',_0x912140),this['keystrokes']['set']('arrowdown',_0x912140);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4d66bb,_0x5a92e1){const _0x55d831=new _0x13cfa5(this['locale']);return _0x55d831['children']=_0x55d831['createCollection'](),_0x55d831['children']['addMany'](_0x4d66bb),_0x55d831['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5a92e1,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x55d831['children']}),_0x55d831['children']['delegate']('execute')['to'](this),_0x55d831['focus']=function(){for(const _0x5cfd27 of this['children'])if(_0x5cfd27 instanceof _0x238c7e&&_0x5cfd27['isOn'])return void _0x5cfd27['focus']();this['children']['first']['focus']();},_0x55d831['focusTracker']=new et(),_0x55d831['keystrokes']=new ot(),_0x55d831['render'](),_0x55d831['keystrokes']['listenTo'](_0x55d831['element']),this['children']['add'](_0x55d831),_0x55d831;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x296237=this['_createStartIndexPropertyView'](),_0x188b2f=[_0x296237],_0x433375=new tt(this['locale'],_0x188b2f);return _0x433375['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x433375['buttonView']['bind']('isEnabled')['toMany'](_0x188b2f,'isEnabled',(..._0x5ad8a7)=>_0x5ad8a7['some'](_0x215e75=>_0x215e75)),_0x433375['buttonView']['on']('change:isEnabled',(_0x26cce2,_0x4a0a84,_0x470508)=>{_0x470508||(_0x433375['isCollapsed']=!0x0);}),this['children']['add'](_0x433375),[_0x296237,_0x433375];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x10184e=new st(this['locale'],it);return _0x10184e['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x10184e['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x10184e['fieldView']['on']('input',()=>{const _0x42175c=_0x10184e['fieldView']['element'],_0x12685e=_0x42175c['valueAsNumber'];Number['isNaN'](_0x12685e)?_0x10184e['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x42175c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x12685e}):_0x10184e['errorText']=t(_0x12685e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x10184e;}}class j extends _0x1f3d21{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x37b4f6,_0x148e9e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f67ff}=this,{componentFactory:_0x5b7294}=_0x1f67ff['ui'];_0x1f67ff['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5b7294['add']('footnotesStyle',function(_0x4477dd){return _0x5dfb0e=>{const {t:t}=_0x5dfb0e,_0x56bcd0=_0x4477dd['commands']['get']('footnotesStyle'),_0x4e00f2=_0x5d7306(_0x5dfb0e),{buttonView:_0x5c1f69}=_0x4e00f2;return _0x4e00f2['class']='ck-footnotes-styles-dropdown',_0x4e00f2['bind']('isEnabled')['to'](_0x56bcd0,'isEnabled'),_0x5c1f69['set']({'label':t('Footnotes\x20style'),'icon':_0x205cc2,'tooltip':!0x0}),_0x4e00f2['once']('change:isOpen',()=>{const _0x3a4164=function({editor:_0x5985e8,dropdownView:_0xe0dcab}){const {t:t}=_0x5985e8['locale'],_0x53dd87=t('Footnotes\x20definitions\x20styles'),_0x122905=function(_0x563d8f){const t=_0x563d8f['locale']['t'],_0x39d6c5=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2284b3},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5b5fd6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2fb8f2},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3bb33d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3379b4},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x159f95}];return _0x39d6c5['map'](function(_0x363434){const _0xc02cf4=_0x363434['locale'];return({label:_0x44072f,icon:_0x225b11,tooltip:_0x181a51,style:_0x4b6b9a})=>{const _0x1fa567=_0x363434['commands']['get']('footnotesStyle'),_0x13c288=new _0x238c7e(_0xc02cf4);return _0x13c288['set']({'label':_0x44072f,'icon':_0x225b11,'tooltip':_0x181a51}),_0x13c288['bind']('isOn')['to'](_0x1fa567,'value',_0x46aa04=>_0x46aa04===_0x4b6b9a),_0x13c288['bind']('isEnabled')['to'](_0x1fa567,'isEnabled'),_0x13c288['on']('execute',()=>{_0x363434['execute']('footnotesStyle',{'value':_0x4b6b9a}),_0x363434['editing']['view']['focus']();}),_0x13c288;};}(_0x563d8f));}(_0x5985e8),_0x1f45b1=new H(_0x5985e8['locale'],{'styleGridAriaLabel':_0x53dd87,'styleButtonViews':_0x122905});return _0x1f45b1['delegate']('execute')['to'](_0xe0dcab),_0x1f45b1['on']('footnotesListStart',(_0x3eae6a,_0x2e217d)=>{_0x5985e8['execute']('footnotesStart',{'value':_0x2e217d['startIndex']});}),_0x1f45b1;}({'editor':_0x4477dd,'dropdownView':_0x4e00f2});_0x4e00f2['panelView']['children']['add'](_0x3a4164);}),_0x4e00f2;};}(_0x1f67ff));}['afterInit'](){const {editor:_0x59ab5f}=this,{t:t}=_0x59ab5f['locale'],_0x291d46=_0x59ab5f['plugins']['get'](_0x148e9e),{defaultPositions:_0x54c364}=_0x2e5d73;_0x291d46['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x59ab5f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xc26f7d=>{let _0x408c50=_0xc26f7d['getFirstPosition']()?.['parent'];return _0x408c50?.['is']('$text')&&(_0x408c50=_0x408c50['parent']),_0x408c50?.['is']('element')?_0x408c50['findAncestor'](J):null;},'positions':[_0x54c364['southArrowNorth'],_0x54c364['southArrowNorthMiddleWest'],_0x54c364['southArrowNorthMiddleEast'],_0x54c364['southArrowNorthWest'],_0x54c364['southArrowNorthEast'],_0x54c364['northArrowSouth'],_0x54c364['northArrowSouthMiddleWest'],_0x54c364['northArrowSouthMiddleEast'],_0x54c364['northArrowSouthWest'],_0x54c364['northArrowSouthEast'],_0x54c364['viewportStickyNorth']]});}}class lt extends _0x1f3d21{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-20251030.0",
3
+ "version": "0.0.0-nightly-20251101.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251030.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251030.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251030.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251030.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251030.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251030.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251030.0",
33
- "ckeditor5": "0.0.0-nightly-20251030.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251101.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251101.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251101.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251101.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251101.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251101.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251101.0",
33
+ "ckeditor5": "0.0.0-nightly-20251101.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a447f=_0x23a8;function _0x23a8(_0x131309,_0xc3906b){const _0x3e9024=_0x3e90();return _0x23a8=function(_0x23a8cb,_0x1b8052){_0x23a8cb=_0x23a8cb-0xb3;let _0x527b13=_0x3e9024[_0x23a8cb];return _0x527b13;},_0x23a8(_0x131309,_0xc3906b);}(function(_0x2d068a,_0x1d5c89){const _0xca421e=_0x23a8,_0x17bda3=_0x2d068a();while(!![]){try{const _0x212e84=parseInt(_0xca421e(0xca))/0x1*(-parseInt(_0xca421e(0xd7))/0x2)+-parseInt(_0xca421e(0xb8))/0x3*(-parseInt(_0xca421e(0xc2))/0x4)+parseInt(_0xca421e(0xc4))/0x5+-parseInt(_0xca421e(0xc6))/0x6+-parseInt(_0xca421e(0xc9))/0x7+-parseInt(_0xca421e(0xb7))/0x8*(-parseInt(_0xca421e(0xb5))/0x9)+parseInt(_0xca421e(0xc7))/0xa;if(_0x212e84===_0x1d5c89)break;else _0x17bda3['push'](_0x17bda3['shift']());}catch(_0x28ae37){_0x17bda3['push'](_0x17bda3['shift']());}}}(_0x3e90,0x61fff));import{logWarning as _0x10f41c,uid as _0x143fdc}from'ckeditor5/src/utils.js';import{Command as _0x56c289}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x56c289{[_0x5a447f(0xd4)](){const _0x43bc6c=_0x5a447f,_0x36d79e=this[_0x43bc6c(0xc3)][_0x43bc6c(0xbd)][_0x43bc6c(0xd3)][_0x43bc6c(0xbc)],_0x58bb83=this[_0x43bc6c(0xc1)](_0x36d79e);this[_0x43bc6c(0xb4)]=!!_0x58bb83;}[_0x5a447f(0xd5)](_0x5094d5){const _0x2bf7e0=_0x5a447f,{editor:_0x38cb93}=this,{model:_0xb6ced7}=_0x38cb93,{selection:_0x53e66a}=_0xb6ced7[_0x2bf7e0(0xd3)],_0x4de188=this[_0x2bf7e0(0xc1)](_0x53e66a);if(!_0x4de188)return;const _0x573b90=_0x38cb93[_0x2bf7e0(0xb9)][_0x2bf7e0(0xb6)](_0x2bf7e0(0xc8)),_0x2a9c7f=_0x5094d5?.[_0x2bf7e0(0xbb)]??_0x143fdc();!function(_0x12c08f){const _0x58cadf=_0x2bf7e0;return _0x58cadf(0xc5)==typeof _0x12c08f&&_0x12c08f[_0x58cadf(0xbe)]>0x0&&!/\s/[_0x58cadf(0xce)](_0x12c08f)&&!/^\d/[_0x58cadf(0xce)](_0x12c08f);}(_0x2a9c7f)?_0x10f41c(_0x2bf7e0(0xc0)):(_0xb6ced7[_0x2bf7e0(0xcd)](_0x23baba=>{const _0x342923=_0x2bf7e0,_0x438fdd=_0x23baba[_0x342923(0xbf)](_0x342923(0xd1),{'footnoteId':_0x2a9c7f});_0xb6ced7[_0x342923(0xb3)](_0x438fdd,_0x4de188,null);}),_0x573b90[_0x2bf7e0(0xd6)](_0x2a9c7f));}[_0x5a447f(0xc1)](_0x7f5829){const _0x35bef5=_0x5a447f,{model:_0xec838e}=this[_0x35bef5(0xc3)],{schema:_0x1c555c}=_0xec838e,_0x250db1=_0x7f5829[_0x35bef5(0xd2)]();for(const _0x8ffa50 of _0x250db1[_0x35bef5(0xba)]())if(_0x1c555c[_0x35bef5(0xcb)](_0x8ffa50)||_0x1c555c[_0x35bef5(0xcc)](_0x8ffa50))return null;const _0x427582=_0x250db1[_0x35bef5(0xd0)];return _0x1c555c[_0x35bef5(0xcf)](_0x427582,_0x35bef5(0xd1))?_0x427582:null;}}function _0x3e90(){const _0x2c79c4=['insertObject','isEnabled','7127451wftWRA','get','8bLYgyp','405327QfgQCH','plugins','getItems','footnoteId','selection','model','length','createElement','insert-footnote-command-executed-with-invalid-id','_getPositionToInsertFootnote','8oGtnpZ','editor','1015305LPtVJu','string','89766WrQwYv','170000bMoioc','FootnotesEditing','719649UJfRqM','1wglhbJ','isBlock','isObject','change','test','checkChild','end','footnoteRef','getFirstRange','document','refresh','execute','_moveSelectionToFootnoteDefinition','1526086FiNAOs'];_0x3e90=function(){return _0x2c79c4;};return _0x3e90();}
23
+ const _0x2215a9=_0x2c31;(function(_0x42e7e4,_0x32e798){const _0x14809e=_0x2c31,_0x78361d=_0x42e7e4();while(!![]){try{const _0x1f24bd=parseInt(_0x14809e(0x16c))/0x1+-parseInt(_0x14809e(0x188))/0x2*(parseInt(_0x14809e(0x165))/0x3)+-parseInt(_0x14809e(0x184))/0x4+parseInt(_0x14809e(0x183))/0x5+-parseInt(_0x14809e(0x170))/0x6+-parseInt(_0x14809e(0x176))/0x7*(parseInt(_0x14809e(0x167))/0x8)+parseInt(_0x14809e(0x182))/0x9*(parseInt(_0x14809e(0x17f))/0xa);if(_0x1f24bd===_0x32e798)break;else _0x78361d['push'](_0x78361d['shift']());}catch(_0x4af74c){_0x78361d['push'](_0x78361d['shift']());}}}(_0x550d,0x1ef65));function _0x550d(){const _0x2ecdda=['model','length','293652Nmeenp','get','insert-footnote-command-executed-with-invalid-id','string','editor','document','7lfhyzL','_getPositionToInsertFootnote','isObject','execute','getFirstRange','getItems','selection','checkChild','end','19920wPfupR','isEnabled','_moveSelectionToFootnoteDefinition','1134ymvITt','1106700YGUslL','75376lKtZrR','plugins','test','refresh','12KhhpbN','change','59397sUDaiC','FootnotesEditing','1882952wauUit','footnoteId','footnoteRef','isBlock','insertObject','76438JgQjLA','createElement'];_0x550d=function(){return _0x2ecdda;};return _0x550d();}import{logWarning as _0x475bf9,uid as _0x1fe851}from'ckeditor5/src/utils.js';import{Command as _0x291809}from'ckeditor5/src/core.js';function _0x2c31(_0x2b365a,_0x441893){const _0x550dc7=_0x550d();return _0x2c31=function(_0x2c310b,_0x59697e){_0x2c310b=_0x2c310b-0x164;let _0x34f008=_0x550dc7[_0x2c310b];return _0x34f008;},_0x2c31(_0x2b365a,_0x441893);}export class InsertFootnoteCommand extends _0x291809{[_0x2215a9(0x187)](){const _0x1d9855=_0x2215a9,_0x2f0a82=this[_0x1d9855(0x174)][_0x1d9855(0x16e)][_0x1d9855(0x175)][_0x1d9855(0x17c)],_0x3378bc=this[_0x1d9855(0x177)](_0x2f0a82);this[_0x1d9855(0x180)]=!!_0x3378bc;}[_0x2215a9(0x179)](_0x1b53f0){const _0x2fd0ea=_0x2215a9,{editor:_0x38fe3a}=this,{model:_0x1b7e04}=_0x38fe3a,{selection:_0x5669ac}=_0x1b7e04[_0x2fd0ea(0x175)],_0x17150e=this[_0x2fd0ea(0x177)](_0x5669ac);if(!_0x17150e)return;const _0x3dc04f=_0x38fe3a[_0x2fd0ea(0x185)][_0x2fd0ea(0x171)](_0x2fd0ea(0x166)),_0x3909dc=_0x1b53f0?.[_0x2fd0ea(0x168)]??_0x1fe851();!function(_0x31bdcc){const _0x588d23=_0x2fd0ea;return _0x588d23(0x173)==typeof _0x31bdcc&&_0x31bdcc[_0x588d23(0x16f)]>0x0&&!/\s/[_0x588d23(0x186)](_0x31bdcc)&&!/^\d/[_0x588d23(0x186)](_0x31bdcc);}(_0x3909dc)?_0x475bf9(_0x2fd0ea(0x172)):(_0x1b7e04[_0x2fd0ea(0x164)](_0xcdc776=>{const _0x20178b=_0x2fd0ea,_0x4c96e9=_0xcdc776[_0x20178b(0x16d)](_0x20178b(0x169),{'footnoteId':_0x3909dc});_0x1b7e04[_0x20178b(0x16b)](_0x4c96e9,_0x17150e,null);}),_0x3dc04f[_0x2fd0ea(0x181)](_0x3909dc));}[_0x2215a9(0x177)](_0x58ec96){const _0x17926d=_0x2215a9,{model:_0x3d6f30}=this[_0x17926d(0x174)],{schema:_0x2acd40}=_0x3d6f30,_0x2a84dc=_0x58ec96[_0x17926d(0x17a)]();for(const _0x151765 of _0x2a84dc[_0x17926d(0x17b)]())if(_0x2acd40[_0x17926d(0x16a)](_0x151765)||_0x2acd40[_0x17926d(0x178)](_0x151765))return null;const _0x19e995=_0x2a84dc[_0x17926d(0x17e)];return _0x2acd40[_0x17926d(0x17d)](_0x19e995,_0x17926d(0x169))?_0x19e995:null;}}
package/src/footnotes.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2d0c(_0xbd15cb,_0x45f519){var _0x5b6417=_0x5b64();return _0x2d0c=function(_0x2d0ce3,_0x3e584b){_0x2d0ce3=_0x2d0ce3-0x109;var _0xeb1340=_0x5b6417[_0x2d0ce3];return _0xeb1340;},_0x2d0c(_0xbd15cb,_0x45f519);}function _0x5b64(){var _0x5024a8=['4223272rUjVtL','7ZnXpTS','160746RKKvLX','requires','isPremiumPlugin','5xcFLcm','Footnotes','793408LtgLYg','2228148EGqeJt','9745zvRjrs','isOfficialPlugin','115924CcpOwP','305658KmIfHW','pluginName'];_0x5b64=function(){return _0x5024a8;};return _0x5b64();}var _0x390f71=_0x2d0c;(function(_0x3b23fa,_0x33f2da){var _0x207089=_0x2d0c,_0xeffac9=_0x3b23fa();while(!![]){try{var _0xff4e06=-parseInt(_0x207089(0x10e))/0x1+-parseInt(_0x207089(0x10c))/0x2+-parseInt(_0x207089(0x111))/0x3+-parseInt(_0x207089(0x110))/0x4*(parseInt(_0x207089(0x10a))/0x5)+parseInt(_0x207089(0x115))/0x6+-parseInt(_0x207089(0x114))/0x7*(-parseInt(_0x207089(0x113))/0x8)+parseInt(_0x207089(0x10d))/0x9;if(_0xff4e06===_0x33f2da)break;else _0xeffac9['push'](_0xeffac9['shift']());}catch(_0x19a0c8){_0xeffac9['push'](_0xeffac9['shift']());}}}(_0x5b64,0x40afc));import{Plugin as _0x35a0b1}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x19a8e1}from'./footnotesediting.js';import{FootnotesClipboard as _0x3d5430}from'./footnotesclipboard.js';import{FootnotesUI as _0x4ab0da}from'./footnotesui.js';export class Footnotes extends _0x35a0b1{static get[_0x390f71(0x112)](){var _0x21f4b2=_0x390f71;return _0x21f4b2(0x10b);}static get[_0x390f71(0x116)](){return[_0x19a8e1,_0x3d5430,_0x4ab0da];}static get[_0x390f71(0x10f)](){return!0x0;}static get[_0x390f71(0x109)](){return!0x0;}}
23
+ function _0x4927(){var _0x566d63=['66100980Bzjsap','194IWhyjQ','1240670fvjPmo','15178FXocBZ','isOfficialPlugin','pluginName','isPremiumPlugin','8qrgUMO','16596738WZYvGZ','16FTgFDa','2179608ektjCy','1335900EfBXfL','4795098ypJpqB','Footnotes','requires'];_0x4927=function(){return _0x566d63;};return _0x4927();}var _0x455cbb=_0x45e0;(function(_0x61fa98,_0x178a5f){var _0x1c1403=_0x45e0,_0x30304c=_0x61fa98();while(!![]){try{var _0x41c7d1=parseInt(_0x1c1403(0x18a))/0x1*(-parseInt(_0x1c1403(0x18c))/0x2)+-parseInt(_0x1c1403(0x184))/0x3+parseInt(_0x1c1403(0x181))/0x4*(-parseInt(_0x1c1403(0x18b))/0x5)+parseInt(_0x1c1403(0x185))/0x6+parseInt(_0x1c1403(0x186))/0x7*(-parseInt(_0x1c1403(0x183))/0x8)+-parseInt(_0x1c1403(0x182))/0x9+parseInt(_0x1c1403(0x189))/0xa;if(_0x41c7d1===_0x178a5f)break;else _0x30304c['push'](_0x30304c['shift']());}catch(_0x96aea7){_0x30304c['push'](_0x30304c['shift']());}}}(_0x4927,0xe17b0));import{Plugin as _0x2b7972}from'ckeditor5/src/core.js';function _0x45e0(_0x1bb41b,_0x249166){var _0x49278c=_0x4927();return _0x45e0=function(_0x45e0aa,_0x3486db){_0x45e0aa=_0x45e0aa-0x180;var _0x19b6f8=_0x49278c[_0x45e0aa];return _0x19b6f8;},_0x45e0(_0x1bb41b,_0x249166);}import{FootnotesEditing as _0x2dac56}from'./footnotesediting.js';import{FootnotesClipboard as _0x189de5}from'./footnotesclipboard.js';import{FootnotesUI as _0x59a236}from'./footnotesui.js';export class Footnotes extends _0x2b7972{static get[_0x455cbb(0x18e)](){var _0x570ce1=_0x455cbb;return _0x570ce1(0x187);}static get[_0x455cbb(0x188)](){return[_0x2dac56,_0x189de5,_0x59a236];}static get[_0x455cbb(0x18d)](){return!0x0;}static get[_0x455cbb(0x180)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x414002=_0x6fb0;function _0x6fb0(_0x1d110f,_0x747e49){const _0x3bb4a1=_0x3bb4();return _0x6fb0=function(_0x6fb095,_0x17cbf2){_0x6fb095=_0x6fb095-0xf9;let _0x43218b=_0x3bb4a1[_0x6fb095];return _0x43218b;},_0x6fb0(_0x1d110f,_0x747e49);}(function(_0x53277d,_0x15d3c3){const _0x3bd4f1=_0x6fb0,_0x5e2d07=_0x53277d();while(!![]){try{const _0x34c3ac=-parseInt(_0x3bd4f1(0x122))/0x1+parseInt(_0x3bd4f1(0x12a))/0x2*(parseInt(_0x3bd4f1(0x10b))/0x3)+parseInt(_0x3bd4f1(0x132))/0x4+parseInt(_0x3bd4f1(0xff))/0x5*(parseInt(_0x3bd4f1(0x11c))/0x6)+parseInt(_0x3bd4f1(0x10a))/0x7*(-parseInt(_0x3bd4f1(0x111))/0x8)+-parseInt(_0x3bd4f1(0x124))/0x9+parseInt(_0x3bd4f1(0x108))/0xa*(parseInt(_0x3bd4f1(0x120))/0xb);if(_0x34c3ac===_0x15d3c3)break;else _0x5e2d07['push'](_0x5e2d07['shift']());}catch(_0x300ddf){_0x5e2d07['push'](_0x5e2d07['shift']());}}}(_0x3bb4,0x37ece));import{Plugin as _0x11f8a1}from'ckeditor5/src/core.js';import{uid as _0x3b3618}from'ckeditor5/src/utils.js';function _0x3bb4(){const _0x3d730b=['_handleCopyFootnotesDefinitions','add','contentInsertion','clipboardInput','root','140vWaMQX','parse','2207303gSgdxz','517317cVYgpz','_insertEmptyFootnotesDefinitionsContainer','toModel','setAttribute','getFirstRange','sourceEditorId','8RsMrfk','getFootnotes','getData','toData','from','remove','editing','outputTransformation','append','footnotesDefinitions','selection','78wYddrg','isOfficialPlugin','isPremiumPlugin','init','316030QGFhbS','createElement','349281nVkJgu','entries','3447540bEvREZ','content','toView','length','document','create','2VMtrtV','application/ckeditor5-footnotes','listenTo','dataTransfer','change','drop','setData','htmlProcessor','1022592isBupt','push','element','stringify','requires','footnoteId','end','method','pluginName','editor','_defineClipboardIntegration','definition','_handlePasteFootnotesDefinitions','FootnotesClipboard','getFootnotesDefinitionsObjectElement','getAttribute','data','insert','createRangeIn','reduce','footnoteDefinition','find','171705xeJJkD','footnoteRef','getFootnote','get'];_0x3bb4=function(){return _0x3d730b;};return _0x3bb4();}import{ClipboardPipeline as _0x4735ff}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x211d45}from'./footnotesediting.js';import{FootnotesTracker as _0x52d9b3}from'./footnotestracker.js';export class FootnotesClipboard extends _0x11f8a1{static get[_0x414002(0x13a)](){const _0x4ec244=_0x414002;return _0x4ec244(0x13f);}static get[_0x414002(0x136)](){return[_0x211d45,_0x4735ff];}static get[_0x414002(0x11d)](){return!0x0;}static get[_0x414002(0x11e)](){return!0x0;}[_0x414002(0x11f)](){const _0x3a6537=_0x414002;this[_0x3a6537(0x13c)]();}[_0x414002(0x13c)](){const _0x5439aa=_0x414002;this[_0x5439aa(0x103)](),this[_0x5439aa(0x13e)]();}[_0x414002(0x103)](){const _0x56ad77=_0x414002,{editor:_0x278b52}=this,{plugins:_0x13ab73,model:_0x5a0989}=_0x278b52,_0xf21400=_0x13ab73[_0x56ad77(0x102)](_0x4735ff),_0x5c7ad4=_0x13ab73[_0x56ad77(0x102)](_0x52d9b3);this[_0x56ad77(0x12c)](_0xf21400,_0x56ad77(0x118),(_0x55a9ff,_0x28bfd4)=>{const _0x1e5887=_0x56ad77,_0x447694=function(_0x3d2492,_0x3a6da6){const _0x29b948=_0x6fb0,_0x22f0fb=new Set();for(const {item:_0x44ef3d}of _0x3d2492[_0x29b948(0xfb)](_0x3a6da6))_0x44ef3d['is'](_0x29b948(0x134),_0x29b948(0x100))&&_0x22f0fb[_0x29b948(0x104)](_0x44ef3d[_0x29b948(0x141)](_0x29b948(0x137)));return Array[_0x29b948(0x115)](_0x22f0fb);}(_0x5a0989,_0x28bfd4[_0x1e5887(0x125)]);if(!_0x447694[_0x1e5887(0x127)])return;const _0x57fa8f=_0x5c7ad4[_0x1e5887(0x112)](),_0x2bf465=_0x447694[_0x1e5887(0xfc)]((_0x384b5b,_0x2f3798)=>{const _0x11d5cd=_0x1e5887,_0x13b901=_0x57fa8f[_0x11d5cd(0xfe)](_0x24f768=>_0x24f768['id']===_0x2f3798);if(_0x13b901){const _0x18293b=_0x278b52[_0x11d5cd(0xf9)][_0x11d5cd(0x126)](_0x13b901[_0x11d5cd(0x13d)],{'isClipboardPipeline':!0x0}),_0x376550=_0x278b52[_0x11d5cd(0xf9)][_0x11d5cd(0x131)][_0x11d5cd(0x114)](_0x18293b);_0x384b5b[_0x13b901['id']]=_0x376550;}return _0x384b5b;},Object[_0x1e5887(0x129)](null));_0x28bfd4[_0x1e5887(0x12d)][_0x1e5887(0x130)](_0x1e5887(0x12b),JSON[_0x1e5887(0x135)](_0x2bf465));});}[_0x414002(0x13e)](){const _0x5d3945=_0x414002,{editor:_0x4ed1bc}=this,{model:_0x274f48,plugins:_0x5e340b}=_0x4ed1bc,{view:_0x55bce0}=_0x4ed1bc[_0x5d3945(0x117)],_0x24a9be=_0x5e340b[_0x5d3945(0x102)](_0x4735ff),_0xc78a59=_0x5e340b[_0x5d3945(0x102)](_0x52d9b3);let _0x2c4cdd=null;this[_0x5d3945(0x12c)](_0x55bce0[_0x5d3945(0x128)],_0x5d3945(0x106),(_0x3a54e0,_0x4b06d5)=>{const _0x4aaf4b=_0x5d3945,_0x13e72b=_0x4b06d5[_0x4aaf4b(0x12d)][_0x4aaf4b(0x113)](_0x4aaf4b(0x12b));_0x2c4cdd=_0x13e72b?JSON[_0x4aaf4b(0x109)](_0x13e72b):null;}),this[_0x5d3945(0x12c)](_0x24a9be,_0x5d3945(0x105),(_0x385852,_0x185a7e)=>{const _0x569bc9=_0x5d3945;if(!_0x2c4cdd)return;const _0x3dc7b5=_0x185a7e[_0x569bc9(0x110)]===this[_0x569bc9(0x13b)]['id'];_0x3dc7b5&&_0x569bc9(0x12f)===_0x185a7e[_0x569bc9(0x139)]||_0x274f48[_0x569bc9(0x12e)](_0x3b1260=>{const _0x5c5048=_0x569bc9;!function(_0x51c8ed,_0x1839e9){const _0x449f03=_0x6fb0,_0x4d5d80=[];for(const {item:_0x20737e}of _0x51c8ed[_0x449f03(0xfb)](_0x1839e9))_0x20737e['is'](_0x449f03(0x134),_0x449f03(0x11a))&&_0x4d5d80[_0x449f03(0x133)](_0x20737e);for(const _0x32fe39 of _0x4d5d80)_0x51c8ed[_0x449f03(0x116)](_0x32fe39);}(_0x3b1260,_0x185a7e[_0x5c5048(0x125)]);let _0xf28df8=_0xc78a59[_0x5c5048(0x140)]();if(!_0xf28df8){const _0x46b8a3=_0x274f48[_0x5c5048(0x128)][_0x5c5048(0x11b)][_0x5c5048(0x10f)]()[_0x5c5048(0x107)];_0xf28df8=_0xc78a59[_0x5c5048(0x10c)](_0x3b1260,_0x46b8a3);}const _0x49c369=function(_0x5b54d1,_0x4b6a22,_0x38afb3){const _0x4266db=_0x5c5048,_0x1a5aac=Object[_0x4266db(0x129)](null);for(const {item:_0x126ccc}of _0x5b54d1[_0x4266db(0xfb)](_0x4b6a22))if(_0x126ccc['is'](_0x4266db(0x134),_0x4266db(0x100))){const _0x25b703=_0x126ccc[_0x4266db(0x141)](_0x4266db(0x137));if(!_0x38afb3(_0x25b703))continue;_0x1a5aac[_0x25b703]||(_0x1a5aac[_0x25b703]=_0x3b3618()),_0x5b54d1[_0x4266db(0x10e)](_0x4266db(0x137),_0x1a5aac[_0x25b703],_0x126ccc);}return _0x1a5aac;}(_0x3b1260,_0x185a7e[_0x5c5048(0x125)],_0x1c7521=>!_0x3dc7b5||null!==_0xc78a59[_0x5c5048(0x101)](_0x1c7521));for(const [_0x4ff3da,_0x4fabd0]of Object[_0x5c5048(0x123)](_0x2c4cdd)){const _0x3384f2=_0x49c369[_0x4ff3da]||_0x4ff3da,_0x3e9578=_0x3b1260[_0x5c5048(0x121)](_0x5c5048(0xfd),{'footnoteId':_0x3384f2}),_0x487cf1=_0x4ed1bc[_0x5c5048(0xf9)][_0x5c5048(0x131)][_0x5c5048(0x126)](_0x4fabd0),_0x6739bc=_0x4ed1bc[_0x5c5048(0xf9)][_0x5c5048(0x10d)](_0x487cf1,_0x3e9578);_0x3b1260[_0x5c5048(0x119)](_0x6739bc,_0x3e9578),_0x3b1260[_0x5c5048(0xfa)](_0x3e9578,_0xf28df8,_0x5c5048(0x138));}_0x2c4cdd=null;});});}}
23
+ function _0x15e7(){const _0x236fbb=['footnoteRef','change','application/ckeditor5-footnotes','init','250YPraqM','add','pluginName','toModel','dataTransfer','definition','getFootnote','create','setAttribute','_insertEmptyFootnotesDefinitionsContainer','method','_defineClipboardIntegration','selection','reduce','push','getFootnotesDefinitionsObjectElement','177133RbLFBy','toView','insert','entries','541509IeKKyu','drop','1788708GElHLs','getData','find','content','setData','append','7QXIGJe','isOfficialPlugin','footnoteDefinition','sourceEditorId','from','createElement','isPremiumPlugin','footnoteId','18ZFpxkE','getAttribute','toData','2lzvIsp','htmlProcessor','footnotesDefinitions','outputTransformation','root','createRangeIn','length','getFootnotes','get','parse','stringify','element','clipboardInput','remove','document','_handleCopyFootnotesDefinitions','editing','data','editor','end','3180528pKhVDC','contentInsertion','getFirstRange','FootnotesClipboard','5sGLTqu','1308780MmnkBY','1135388vvRbay','requires','_handlePasteFootnotesDefinitions','listenTo','17490648GMgCou'];_0x15e7=function(){return _0x236fbb;};return _0x15e7();}const _0x15821d=_0x5704;(function(_0xda5b35,_0x733976){const _0x577087=_0x5704,_0x170548=_0xda5b35();while(!![]){try{const _0x46cd10=parseInt(_0x577087(0x18b))/0x1*(parseInt(_0x577087(0x19e))/0x2)+-parseInt(_0x577087(0x18d))/0x3+-parseInt(_0x577087(0x16e))/0x4*(-parseInt(_0x577087(0x16c))/0x5)+-parseInt(_0x577087(0x16d))/0x6*(-parseInt(_0x577087(0x193))/0x7)+parseInt(_0x577087(0x168))/0x8*(-parseInt(_0x577087(0x19b))/0x9)+-parseInt(_0x577087(0x177))/0xa*(parseInt(_0x577087(0x187))/0xb)+parseInt(_0x577087(0x172))/0xc;if(_0x46cd10===_0x733976)break;else _0x170548['push'](_0x170548['shift']());}catch(_0x362c05){_0x170548['push'](_0x170548['shift']());}}}(_0x15e7,0xaca19));import{Plugin as _0x3e023e}from'ckeditor5/src/core.js';import{uid as _0x2dc85e}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0xcca9e3}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x31c39b}from'./footnotesediting.js';import{FootnotesTracker as _0x31fd04}from'./footnotestracker.js';function _0x5704(_0x30b604,_0x4f4d99){const _0x15e722=_0x15e7();return _0x5704=function(_0x570475,_0x5ea68a){_0x570475=_0x570475-0x160;let _0xb59d54=_0x15e722[_0x570475];return _0xb59d54;},_0x5704(_0x30b604,_0x4f4d99);}export class FootnotesClipboard extends _0x3e023e{static get[_0x15821d(0x179)](){const _0x485263=_0x15821d;return _0x485263(0x16b);}static get[_0x15821d(0x16f)](){return[_0x31c39b,_0xcca9e3];}static get[_0x15821d(0x194)](){return!0x0;}static get[_0x15821d(0x199)](){return!0x0;}[_0x15821d(0x176)](){const _0x4ef5a9=_0x15821d;this[_0x4ef5a9(0x182)]();}[_0x15821d(0x182)](){const _0x3ccb20=_0x15821d;this[_0x3ccb20(0x163)](),this[_0x3ccb20(0x170)]();}[_0x15821d(0x163)](){const _0x52a359=_0x15821d,{editor:_0x185f73}=this,{plugins:_0x26dd03,model:_0x4decb1}=_0x185f73,_0x1af064=_0x26dd03[_0x52a359(0x1a6)](_0xcca9e3),_0x2b84d2=_0x26dd03[_0x52a359(0x1a6)](_0x31fd04);this[_0x52a359(0x171)](_0x1af064,_0x52a359(0x1a1),(_0x37a6bd,_0x2a458f)=>{const _0x3e828b=_0x52a359,_0x44a3f1=function(_0x1c801c,_0x2e7116){const _0x5c9973=_0x5704,_0x5e9dca=new Set();for(const {item:_0x195d89}of _0x1c801c[_0x5c9973(0x1a3)](_0x2e7116))_0x195d89['is'](_0x5c9973(0x1a9),_0x5c9973(0x173))&&_0x5e9dca[_0x5c9973(0x178)](_0x195d89[_0x5c9973(0x19c)](_0x5c9973(0x19a)));return Array[_0x5c9973(0x197)](_0x5e9dca);}(_0x4decb1,_0x2a458f[_0x3e828b(0x190)]);if(!_0x44a3f1[_0x3e828b(0x1a4)])return;const _0x93c88=_0x2b84d2[_0x3e828b(0x1a5)](),_0xe8b3de=_0x44a3f1[_0x3e828b(0x184)]((_0x58def1,_0x11f1c2)=>{const _0x108e04=_0x3e828b,_0x13d09a=_0x93c88[_0x108e04(0x18f)](_0x49cafd=>_0x49cafd['id']===_0x11f1c2);if(_0x13d09a){const _0xad011f=_0x185f73[_0x108e04(0x165)][_0x108e04(0x188)](_0x13d09a[_0x108e04(0x17c)],{'isClipboardPipeline':!0x0}),_0x58d765=_0x185f73[_0x108e04(0x165)][_0x108e04(0x19f)][_0x108e04(0x19d)](_0xad011f);_0x58def1[_0x13d09a['id']]=_0x58d765;}return _0x58def1;},Object[_0x3e828b(0x17e)](null));_0x2a458f[_0x3e828b(0x17b)][_0x3e828b(0x191)](_0x3e828b(0x175),JSON[_0x3e828b(0x1a8)](_0xe8b3de));});}[_0x15821d(0x170)](){const _0x1484ee=_0x15821d,{editor:_0x17c60e}=this,{model:_0x5f5ac8,plugins:_0x2730fd}=_0x17c60e,{view:_0x51f9be}=_0x17c60e[_0x1484ee(0x164)],_0x1e4c2a=_0x2730fd[_0x1484ee(0x1a6)](_0xcca9e3),_0x14431a=_0x2730fd[_0x1484ee(0x1a6)](_0x31fd04);let _0x47afdf=null;this[_0x1484ee(0x171)](_0x51f9be[_0x1484ee(0x162)],_0x1484ee(0x160),(_0x33aead,_0x1ede84)=>{const _0x1f41fa=_0x1484ee,_0x21b62c=_0x1ede84[_0x1f41fa(0x17b)][_0x1f41fa(0x18e)](_0x1f41fa(0x175));_0x47afdf=_0x21b62c?JSON[_0x1f41fa(0x1a7)](_0x21b62c):null;}),this[_0x1484ee(0x171)](_0x1e4c2a,_0x1484ee(0x169),(_0x5b5188,_0x3019f4)=>{const _0x161c4e=_0x1484ee;if(!_0x47afdf)return;const _0x2ddb13=_0x3019f4[_0x161c4e(0x196)]===this[_0x161c4e(0x166)]['id'];_0x2ddb13&&_0x161c4e(0x18c)===_0x3019f4[_0x161c4e(0x181)]||_0x5f5ac8[_0x161c4e(0x174)](_0x251ac0=>{const _0x29e935=_0x161c4e;!function(_0x9f7976,_0x4e65f4){const _0x46aac0=_0x5704,_0x3009fd=[];for(const {item:_0x326eb9}of _0x9f7976[_0x46aac0(0x1a3)](_0x4e65f4))_0x326eb9['is'](_0x46aac0(0x1a9),_0x46aac0(0x1a0))&&_0x3009fd[_0x46aac0(0x185)](_0x326eb9);for(const _0x4f5731 of _0x3009fd)_0x9f7976[_0x46aac0(0x161)](_0x4f5731);}(_0x251ac0,_0x3019f4[_0x29e935(0x190)]);let _0x225355=_0x14431a[_0x29e935(0x186)]();if(!_0x225355){const _0x46f1a6=_0x5f5ac8[_0x29e935(0x162)][_0x29e935(0x183)][_0x29e935(0x16a)]()[_0x29e935(0x1a2)];_0x225355=_0x14431a[_0x29e935(0x180)](_0x251ac0,_0x46f1a6);}const _0x544ee8=function(_0x114b28,_0x33a0a9,_0x2be1ba){const _0x14e287=_0x29e935,_0x32ac88=Object[_0x14e287(0x17e)](null);for(const {item:_0x313f6a}of _0x114b28[_0x14e287(0x1a3)](_0x33a0a9))if(_0x313f6a['is'](_0x14e287(0x1a9),_0x14e287(0x173))){const _0x25c461=_0x313f6a[_0x14e287(0x19c)](_0x14e287(0x19a));if(!_0x2be1ba(_0x25c461))continue;_0x32ac88[_0x25c461]||(_0x32ac88[_0x25c461]=_0x2dc85e()),_0x114b28[_0x14e287(0x17f)](_0x14e287(0x19a),_0x32ac88[_0x25c461],_0x313f6a);}return _0x32ac88;}(_0x251ac0,_0x3019f4[_0x29e935(0x190)],_0x167bb3=>!_0x2ddb13||null!==_0x14431a[_0x29e935(0x17d)](_0x167bb3));for(const [_0x4a35a1,_0x483ac4]of Object[_0x29e935(0x18a)](_0x47afdf)){const _0x161894=_0x544ee8[_0x4a35a1]||_0x4a35a1,_0x133d47=_0x251ac0[_0x29e935(0x198)](_0x29e935(0x195),{'footnoteId':_0x161894}),_0x36fc44=_0x17c60e[_0x29e935(0x165)][_0x29e935(0x19f)][_0x29e935(0x188)](_0x483ac4),_0x359783=_0x17c60e[_0x29e935(0x165)][_0x29e935(0x17a)](_0x36fc44,_0x133d47);_0x251ac0[_0x29e935(0x192)](_0x359783,_0x133d47),_0x251ac0[_0x29e935(0x189)](_0x133d47,_0x225355,_0x29e935(0x167));}_0x47afdf=null;});});}}