@ckeditor/ckeditor5-footnotes 48.3.1-alpha.0 → 48.3.1-alpha.1

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0xfc9322,Plugin as _0xbedcb6}from'@ckeditor/ckeditor5-core';import{WidgetToolbarRepository as _0x5c0000,isWidget as _0x4a3890,toWidget as _0x122ade,toWidgetEditable as _0x39dc1e}from'@ckeditor/ckeditor5-widget';import{FocusTracker as _0x5403ae,KeystrokeHandler as _0x2d9c5e,global as _0x5d7eca,logWarning as _0xd864b4,uid as _0x545501}from'@ckeditor/ckeditor5-utils';import{ClickObserver as _0x16e62b,PointerObserver as _0x46b531}from'@ckeditor/ckeditor5-engine';import{ClipboardPipeline as _0x47113a}from'@ckeditor/ckeditor5-clipboard';import{BalloonPanelView as _0x4ac46d,ButtonView as _0x31aa72,CollapsibleView as _0x5b4f2a,ContextualBalloon as _0x1445e9,FocusCycler as _0xb8e486,LabeledFieldView as _0x488e6c,MenuBarMenuListItemButtonView as _0x596a2f,View as _0x582811,ViewCollection as _0x2ac941,addKeyboardHandlingForGrid as _0x4b457e,createDropdown as _0x13f9fe,createLabeledInputNumber as _0x4f18bf}from'@ckeditor/ckeditor5-ui';import{IconFootnote as _0x5250b4,IconListStyleArabicIndic as _0x3591bf,IconListStyleDecimal as _0x280380,IconListStyleDecimalLeadingZero as _0x49c6fe,IconListStyleLowerLatin as _0x444383,IconListStyleLowerRoman as _0x1b7c64,IconListStyleUpperLatin as _0x4a2cbb,IconListStyleUpperRoman as _0x5856d8}from'@ckeditor/ckeditor5-icons';var N=class{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0xfd08ad,_0xeb146e){this['_model']=_0xfd08ad,this['_elementName']=_0xeb146e['elementName'],this['_getElementKey']=_0xeb146e['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1fffbd){const _0x303072=new Set(),_0x45426a=new Map();for(const _0x2648e6 of _0x1fffbd){if('insert'===_0x2648e6['type']&&'$text'!==_0x2648e6['name']&&_0x2648e6['position']['nodeAfter']){const _0x3c2d35=this['_model']['createRangeOn'](_0x2648e6['position']['nodeAfter']);for(const _0xe7452 of _0x3c2d35['getItems']()){if(!_0xe7452['is']('element',this['_elementName']))continue;const _0x4863bc=this['_getElementKey'](_0xe7452);_0x45426a['has'](_0x4863bc)||_0x45426a['set'](_0x4863bc,[]),_0x45426a['get'](_0x4863bc)['push'](_0xe7452);}}if('remove'===_0x2648e6['type']&&_0x2648e6['name']===this['_elementName']){const _0xc7f7c3=this['_getElementKey']({'getAttribute':_0x431453=>_0x2648e6['attributes']['get'](_0x431453)});_0x303072['add'](_0xc7f7c3);}}for(const [_0x23edbe,_0x9abece]of this['_trackedElements'])'$graveyard'===_0x9abece['root']['rootName']&&_0x303072['add'](_0x23edbe);for(const _0x463e6f of _0x303072)this['_trackedElements']['delete'](_0x463e6f);for(const [_0x127287,_0x589253]of _0x45426a)this['_trackedElements']['set'](_0x127287,_0x589253[_0x589253['length']-0x1]);const _0x373c14=new Set();for(const [_0x127d4a,_0x12db54]of _0x45426a)_0x303072['has'](_0x127d4a)&&(_0x373c14['add'](_0x12db54[0x0]),_0x12db54['length']>0x1?_0x45426a['set'](_0x127d4a,_0x12db54['slice'](0x1)):_0x45426a['delete'](_0x127d4a),_0x303072['delete'](_0x127d4a));return{'removed':Array['from'](_0x303072),'inserted':Array['from'](_0x45426a['values']())['flat'](),'moved':Array['from'](_0x373c14)};}},V=class extends _0xbedcb6{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x320466){super(_0x320466),this['_footnoteDefsContainerTracker']=new N(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new N(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4592f4=>_0x4592f4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new N(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x59fff1=>_0x59fff1['getAttribute']('footnoteId')});}['init'](){const {editor:_0x6d6604}=this,{model:_0x5ae444,data:_0x106adb}=_0x6d6604;_0x5ae444['document']['registerPostFixer'](_0x6754fe=>{const _0x517d1c=_0x5ae444['document']['differ']['getChanges']();let _0x1043d8=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x6754fe,_0x517d1c)&&(_0x1043d8=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x6754fe,_0x517d1c)&&(_0x1043d8=!0x0),this['_handleFootnoteReferencesChanges'](_0x6754fe,_0x517d1c)&&(_0x1043d8=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x6754fe)&&(_0x1043d8=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x6754fe)&&(_0x1043d8=!0x0),this['_sortFootnoteDefinitions'](_0x6754fe)&&(_0x1043d8=!0x0),_0x1043d8;}),this['listenTo'](_0x5ae444['document'],'change:data',()=>{_0x5ae444['enqueueChange']({'isUndoable':!0x1},_0x382a67=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x382a67);});},{'priority':'low'}),this['listenTo'](_0x106adb,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3c44da){return this['_footnotes']['find'](_0x190c21=>_0x190c21['id']===_0x3c44da)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4164a0){this['_footnoteFormatter']=_0x4164a0;}['_updateFootnotesCounters'](_0x29e088,_0x4ce419=0x0){let _0x1b43dc=!0x1;for(let _0x394b1e=_0x4ce419;_0x394b1e<this['_footnotes']['length'];_0x394b1e++)this['_updateFootnoteRefCounter'](_0x29e088,_0x394b1e)&&(_0x1b43dc=!0x0);return _0x1b43dc;}['_insertEmptyFootnotesDefinitionsContainer'](_0x53cc75,_0xf0dd7){const _0x5e27ef=_0x53cc75['createElement']('footnotesDefinitions',{});return _0x53cc75['append'](_0x5e27ef,_0xf0dd7),this['_footnotesDefinitions']=_0x5e27ef,_0x5e27ef;}['_ensureFootnotesDefinitionsContainerExists'](_0xdf6c15){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x28d80a=this['_footnotes'][0x0]['reference']['root'],_0x1687a0=this['_insertEmptyFootnotesDefinitionsContainer'](_0xdf6c15,_0x28d80a);for(const _0x21122e of this['_footnotes'])_0x21122e['definition']['parent']||_0xdf6c15['insert'](_0x21122e['definition'],_0x1687a0,'end');this['_updateFootnotesCounters'](_0xdf6c15);}['_handleFootnotesDefinitionsObjectChanges'](_0x590017,_0x287006){let _0x3d72b7=!0x1;const {inserted:_0x21a573,removed:_0x2e4c6f,moved:_0xabf9a0}=this['_footnoteDefsContainerTracker']['getChanges'](_0x287006);if(_0xabf9a0['length']&&(this['_footnotesDefinitions']=_0xabf9a0[0x0]),_0x21a573['length']){if(_0x21a573['length']>0x1||this['_footnotesDefinitions']&&_0x21a573['some'](_0x211286=>_0x211286!==this['_footnotesDefinitions'])){const _0x1213dd=_0x590017['createElement']('footnotesDefinitions',{}),_0x2fad39=[];this['_footnotesDefinitions']&&_0x2fad39['push'](this['_footnotesDefinitions']),_0x2fad39['push'](..._0x21a573),_0x590017['insert'](_0x1213dd,_0x2fad39[0x0],'before');for(const _0x4e0815 of _0x2fad39)_0x590017['move'](_0x590017['createRangeIn'](_0x4e0815),_0x590017['createPositionAt'](_0x1213dd,'end')),_0x590017['remove'](_0x4e0815);this['_footnotesDefinitions']=_0x1213dd,this['_updateFootnotesCounters'](_0x590017),_0x3d72b7=!0x0;}else this['_footnotesDefinitions']=_0x21a573[0x0];}if(_0x2e4c6f['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x31ca87 of this['_footnotes'])_0x590017['remove'](_0x31ca87['reference']),_0x3d72b7=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x3d72b7;}['_handleFootnoteDefinitionsChanges'](_0x143296,_0x3b9867){let _0x18b725=!0x1;const _0x287d51=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2e0013,moved:_0x88823f}=this['_footnoteDefsTracker']['getChanges'](_0x3b9867);for(const _0x39a3b7 of[..._0x88823f,..._0x2e0013]){const _0x174d45=_0x39a3b7['getAttribute']('footnoteId'),_0x308a3c=this['getFootnote'](_0x174d45);_0x308a3c&&(_0x308a3c['definition']=_0x39a3b7),K(_0x143296,_0x287d51,_0x39a3b7)&&(_0x18b725=!0x0);}return _0x18b725;}['_handleFootnoteReferencesChanges'](_0xeb7773,_0x1d6a60){let _0x49f49a=!0x1;const {removed:_0x3b1358,inserted:_0x1bae8b,moved:_0x1fe7d6}=this['_footnoteRefsTracker']['getChanges'](_0x1d6a60);for(const _0x311528 of _0x3b1358)this['_handleRemoveFootnoteReferenceById'](_0xeb7773,_0x311528)&&(_0x49f49a=!0x0);for(const _0x1626b1 of _0x1bae8b)this['_handleInsertedFootnoteReference'](_0xeb7773,_0x1626b1)&&(_0x49f49a=!0x0);for(const _0xe1f2ad of _0x1fe7d6)this['_handleMovedFootnoteReference'](_0xeb7773,_0xe1f2ad)&&(_0x49f49a=!0x0);return _0x49f49a;}['_handleFootnotesDefinitionsObjectSync'](_0x2477e2){if(!this['_footnotesDefinitions'])return!0x1;let _0x1a1047=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2c30d4=[];for(const _0x574efd of this['_footnotesDefinitions']['getChildren']()){const _0x4d1758=_0x574efd['getAttribute']('footnoteId');this['getFootnote'](_0x4d1758)||(_0x2c30d4['unshift'](_0x574efd),_0x1a1047=!0x0);}for(const _0x13bcbe of _0x2c30d4)_0x2477e2['remove'](_0x13bcbe);}const _0x3ce0c2=new Set(),_0x1475d6=[];for(const _0xcc401b of this['_footnotesDefinitions']['getChildren']()){const _0x377145=_0xcc401b['getAttribute']('footnoteId');_0x3ce0c2['has'](_0x377145)?(_0x1475d6['unshift'](_0xcc401b),_0x1a1047=!0x0):_0x3ce0c2['add'](_0x377145);}for(const _0x15274d of _0x1475d6)_0x2477e2['remove'](_0x15274d);return this['_footnotesDefinitions']['childCount']||(_0x2477e2['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1a1047=!0x0),_0x1a1047;}['_handleInsertedFootnoteReference'](_0x4916ff,_0x2f97f0){if(this['_footnotes']['find'](_0x520fd6=>_0x520fd6['reference']===_0x2f97f0))return!0x1;let _0x2bd8cf=!0x1;const _0x1b04aa=_0x2f97f0['getAttribute']('footnoteId'),_0x5c76f5=this['_footnotes']['findIndex'](_0x4c70a7=>_0x4c70a7['id']===_0x1b04aa);-0x1!==_0x5c76f5&&(_0x4916ff['remove'](this['_footnotes'][_0x5c76f5]['reference']),this['_footnotes']['splice'](_0x5c76f5,0x1),_0x2bd8cf=!0x0);let _0x94288c=this['_footnotesDefinitions']?function(_0x565e5a,_0x3a89f1){for(const _0x3dd8d7 of _0x565e5a['getChildren']())if(_0x3dd8d7['getAttribute']('footnoteId')===_0x3a89f1)return _0x3dd8d7;return null;}(this['_footnotesDefinitions'],_0x1b04aa):null;_0x94288c||(_0x94288c=_0x4916ff['createElement']('footnoteDefinition',{'footnoteId':_0x1b04aa}),this['_footnotesDefinitions']&&(_0x4916ff['insert'](_0x94288c,this['_footnotesDefinitions'],'end'),_0x2bd8cf=!0x0));const _0x13fc4b={'id':_0x1b04aa,'reference':_0x2f97f0,'definition':_0x94288c},_0x437da5=T(this['editor']['model'],this['_footnotes'],_0x2f97f0);this['_footnotes']['splice'](_0x437da5,0x0,_0x13fc4b);let _0x28108d=_0x437da5;return-0x1!==_0x5c76f5&&(_0x28108d=Math['min'](_0x437da5,_0x5c76f5)),this['_updateFootnotesCounters'](_0x4916ff,_0x28108d)&&(_0x2bd8cf=!0x0),_0x2bd8cf;}['_handleRemoveFootnoteReferenceById'](_0x296e9a,_0x376f26){const _0xf93513=this['_footnotes']['findIndex'](_0x37cce4=>_0x37cce4['id']===_0x376f26);if(-0x1===_0xf93513)return!0x1;let _0x560199=!0x1;const _0x329259=this['_footnotes'][_0xf93513];return'$graveyard'!==_0x329259['definition']['root']['rootName']&&(_0x296e9a['remove'](_0x329259['definition']),_0x560199=!0x0),this['_footnotes']['splice'](_0xf93513,0x1),this['_updateFootnotesCounters'](_0x296e9a,_0xf93513)&&(_0x560199=!0x0),_0x560199;}['_handleMovedFootnoteReference'](_0x55f005,_0x1d0ba0){const _0x55e663=_0x1d0ba0['getAttribute']('footnoteId'),_0x259792=this['_footnotes']['findIndex'](_0x594bfb=>_0x594bfb['id']===_0x55e663),_0x1b8f96=this['_footnotes'][_0x259792];let _0xad30f8=!0x1;_0x1b8f96['reference']=_0x1d0ba0,this['_footnotes']['splice'](_0x259792,0x1);const _0x1824c7=T(this['editor']['model'],this['_footnotes'],_0x1d0ba0);return this['_footnotes']['splice'](_0x1824c7,0x0,_0x1b8f96),this['_updateFootnotesCounters'](_0x55f005,Math['min'](_0x259792,_0x1824c7))&&(_0xad30f8=!0x0),_0xad30f8;}['_updateFootnoteRefCounter'](_0x1197a3,_0x4d3559){if(!this['_footnotesDefinitions'])return!0x1;const _0x17a6d3=this['_footnotes'][_0x4d3559];let _0x13eaa8;return _0x13eaa8=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x17a6d3,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4d3559+0x1}):String(_0x4d3559+0x1),_0x17a6d3['reference']['getAttribute']('footnoteCounter')!=_0x13eaa8&&(_0x1197a3['setAttribute']('footnoteCounter',_0x13eaa8,_0x17a6d3['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4e70f8){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3e9924,_0x3b732e){if(_0x3e9924['length']!==_0x3b732e['length'])return!0x1;for(let _0x9edfa4=0x0;_0x9edfa4<_0x3e9924['length'];_0x9edfa4++)if(_0x3e9924[_0x9edfa4]!==_0x3b732e[_0x9edfa4])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3e7eef=>_0x3e7eef['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x133883=>_0x133883['getAttribute']('footnoteId'))))return!0x1;let _0x36a70e=!0x1;for(let _0xf98e18=0x0;_0xf98e18<this['_footnotes']['length'];_0xf98e18++){const _0x28fd7e=this['_footnotes'][_0xf98e18],_0x3ce9a7=_0x4e70f8['createPositionBefore'](_0x28fd7e['definition']),_0x4f86e3=_0x4e70f8['createPositionAt'](this['_footnotesDefinitions'],_0xf98e18);_0x3ce9a7['isEqual'](_0x4f86e3)||(_0x4e70f8['move'](_0x4e70f8['createRangeOn'](_0x28fd7e['definition']),_0x4f86e3),_0x36a70e=!0x0);}return _0x36a70e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x502615){if(!this['_footnotes']['length'])return!0x1;const {model:_0xb8fd7d}=this['editor'];let _0x447e48=!0x1;for(let _0x2d2221=0x0;_0x2d2221<this['_footnotes']['length']-0x1;_0x2d2221++){const _0x516197=this['_footnotes'][_0x2d2221],_0x275ecc=this['_footnotes'][_0x2d2221+0x1],_0xdb2c17=_0xb8fd7d['createPositionBefore'](_0x516197['reference']),_0x4c10c5=_0xb8fd7d['createPositionBefore'](_0x275ecc['reference']);'after'===_0xdb2c17['compareWith'](_0x4c10c5)&&(this['_handleMovedFootnoteReference'](_0x502615,_0x516197['reference']),_0x2d2221=-0x1,_0x447e48=!0x0);}return _0x447e48;}};function K(_0x27edbb,_0x282c26,_0x3abf6c){if(_0x3abf6c['childCount'])return!0x1;const _0x52d8a4=_0x282c26?'paragraph':'footnoteInlineContent';return _0x27edbb['insert'](_0x27edbb['createElement'](_0x52d8a4),_0x3abf6c),!0x0;}function T(_0x45d437,_0x5b84d4,_0x27e54e){if(0x0===_0x5b84d4['length'])return 0x0;const _0x50b537=_0x45d437['createPositionBefore'](_0x27e54e);for(let _0x56d5ed=0x0;_0x56d5ed<_0x5b84d4['length'];_0x56d5ed++){const _0x582a42=_0x5b84d4[_0x56d5ed],_0x3462a1=_0x45d437['createPositionBefore'](_0x582a42['reference']);if('before'===_0x50b537['compareWith'](_0x3462a1))return _0x56d5ed;}const _0x1badcb=_0x27e54e['root'];let _0x293a90=-0x1;for(let _0x5658e=_0x5b84d4['length']-0x1;_0x5658e>=0x0;_0x5658e--)if(_0x5b84d4[_0x5658e]['reference']['root']===_0x1badcb){_0x293a90=_0x5658e;break;}if(-0x1!==_0x293a90)return _0x293a90+0x1;const _0xb99355=_0x45d437['document']['getRootNames'](),_0x1e9e77=_0xb99355[_0xb99355['indexOf'](_0x1badcb['rootName'])+0x1];if(_0x1e9e77){for(let _0x46e893=0x0;_0x46e893<_0x5b84d4['length'];_0x46e893++)if(_0x5b84d4[_0x46e893]['reference']['root']['rootName']===_0x1e9e77)return _0x46e893;}return _0x5b84d4['length'];}var j=class extends _0xfc9322{['refresh'](){const _0x45794e=this['editor']['model']['document']['selection'],_0x385901=this['_getPositionToInsertFootnote'](_0x45794e);this['isEnabled']=!!_0x385901;}['execute'](_0x5e19e2){const {editor:_0x389a95}=this,{model:_0x3f6a51}=_0x389a95,{selection:_0x104d80}=_0x3f6a51['document'],_0x5bee49=this['_getPositionToInsertFootnote'](_0x104d80);if(!_0x5bee49)return;const _0x128649=_0x389a95['plugins']['get']('FootnotesEditing'),_0x2cb078=_0x5e19e2?.['footnoteId']??_0x545501();!function(_0x190649){return'string'==typeof _0x190649&&_0x190649['length']>0x0&&!/\s/['test'](_0x190649)&&!/^\d/['test'](_0x190649);}(_0x2cb078)?_0xd864b4('insert-footnote-command-executed-with-invalid-id'):(_0x3f6a51['change'](_0x100d27=>{const _0x3940e5=_0x100d27['createElement']('footnoteRef',{'footnoteId':_0x2cb078});_0x3f6a51['insertObject'](_0x3940e5,_0x5bee49,null);}),_0x128649['_moveSelectionToFootnoteDefinition'](_0x2cb078));}['_getPositionToInsertFootnote'](_0x3a8a40){const {model:_0xe91881}=this['editor'],{schema:_0x31e504}=_0xe91881,_0x103b34=_0x3a8a40['getFirstRange']();for(const _0x321a2a of _0x103b34['getItems']())if(_0x31e504['isBlock'](_0x321a2a)||_0x31e504['isObject'](_0x321a2a))return null;const _0x24c14e=_0x103b34['end'];return _0x31e504['checkChild'](_0x24c14e,'footnoteRef')?_0x24c14e:null;}},U=class extends _0xbedcb6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[V];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x36c38f}=this;_0x36c38f['config']['define']('footnotes.multiBlock',!0x0),_0x36c38f['commands']['add']('insertFootnote',new j(_0x36c38f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4a4cfa){const _0x26b16f='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0x2e70e4=0x78fa8,_0x31dd62=window['Date']['now'](),_0x2dc731=_0x4a4cfa['editor'],_0x13719a=new window['Promise'](_0x169c9d=>{_0x2dc731['once']('ready',_0x169c9d);}),_0xa4ed64={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x785d33=_0x2dc731['config']['get']('licenseKey');async function _0x42a50f(){let _0x3526be,_0x4063dd=null,_0x12a446=null;try{return'GPL'==_0x785d33?'NotAllowed':(_0x3526be=_0x1e8e37(),_0x3526be?(_0x3526be['usageEndpoint']&&(_0x12a446=_0x3fd71a(_0x3526be['usageEndpoint'],_0x3526be['jti'])),await _0xf1fc7b()?_0x1ae997()?_0x30657f()?'Expired':_0xfd5960()?('evaluation'==_0x3526be['licenseType']&&(_0x4063dd=_0x559e21('EvaluationLimit')),await _0x34deeb()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x30657f(){const _0x153096=['evaluation','trial']['includes'](_0x3526be['licenseType'])?_0x31dd62/0x3e8:0xe10*_0x2e70e4;return _0x3526be['exp']<_0x153096;}function _0x1ae997(){const _0x52b8d6=_0x3526be['features'];return!!_0x52b8d6&&(!!_0x52b8d6['includes']('*')||!!_0x52b8d6['includes']('FOO'));}function _0xfd5960(){const _0x2d30b4=_0x3526be['licensedHosts'];if(!_0x2d30b4||0x0==_0x2d30b4['length'])return!0x0;const {hostname:_0x3144bd}=new URL(window['location']['href']);if(_0x2d30b4['includes'](_0x3144bd))return!0x0;const _0x315acf=_0x3144bd['split']('.');return _0x2d30b4['filter'](_0x54ab4c=>_0x54ab4c['includes']('*'))['map'](_0x592bab=>_0x592bab['split']('.'))['filter'](_0x1e0d18=>_0x1e0d18['length']<=_0x315acf['length'])['map'](_0x3cc364=>Array(_0x315acf['length']-_0x3cc364['length'])['fill']('*'===_0x3cc364[0x0]?'*':'')['concat'](_0x3cc364))['some'](_0x2adeb7=>_0x315acf['every']((_0x504526,_0x4c8e7a)=>_0x2adeb7[_0x4c8e7a]===_0x504526||'*'===_0x2adeb7[_0x4c8e7a]));}function _0x34deeb(){return _0x4063dd&&_0x12a446?new window['Promise']((_0x5ebaf6,_0x2ee5a1)=>{_0x4063dd['then'](_0x5ebaf6,_0x2ee5a1),_0x12a446['then'](_0x488875=>{'Valid'!=_0x488875&&_0x5ebaf6(_0x488875);},_0x2ee5a1);}):_0x4063dd||_0x12a446||'Valid';}}function _0x3fd71a(_0x2d0800,_0x33a170){return new window['Promise'](_0x1cf393=>{if(_0x615eae())return _0x1cf393('Valid');_0x3eede9(),_0x2dc731['decorate']('_sendUsageRequest');let _0x225c4e=!0x1;const _0xf459cf=_0x545501();function _0x19d9dc(_0x524559){return!!_0x524559&&('object'==typeof _0x524559||'function'==typeof _0x524559)&&'function'==typeof _0x524559['then']&&'function'==typeof _0x524559['catch'];}function _0x3f3cd7(_0x1fcdb4){_0x1b0d0e(_0x1fcdb4)['then'](_0x54b69b=>_0x54b69b&&'ok'==_0x54b69b['status']?_0xeadb08(_0x3ba55a(_0xf459cf+_0x33a170))!=_0x54b69b['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xa5c033=>(_0x55c2fc(),_0xa5c033),()=>{const _0x467aaf=_0x12af1b();return null==_0x467aaf?(_0x55c2fc(),'Valid'):_0x31dd62-_0x467aaf>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1cf393)['catch'](()=>{_0x1cf393('UsageLimit');});const _0x5cd81a=0x36ee80;function _0x55c2fc(){const _0x2dfb17='llct-'+_0xeadb08(_0x3ba55a(_0x2d0800)),_0x2607f5=_0x33ca08(_0xeadb08(window['Math']['ceil'](_0x31dd62/_0x5cd81a)));window['localStorage']['setItem'](_0x2dfb17,_0x2607f5);}function _0x12af1b(){const _0x308bce='llct-'+_0xeadb08(_0x3ba55a(_0x2d0800)),_0x21b17b=window['localStorage']['getItem'](_0x308bce);return _0x21b17b?window['parseInt'](_0x33ca08(_0x21b17b),0x10)*_0x5cd81a:null;}function _0x1b0d0e(_0x892fbc){return new window['Promise']((_0x51f3bc,_0x3072c0)=>{_0x892fbc['then'](_0x51f3bc,_0x3072c0),window['setTimeout'](_0x3072c0,0x1d4c0);});}}_0x2dc731['on']('_sendUsageRequest',(_0xd8a8bd,_0xeebd02)=>{if(_0xeebd02[0x0]!=_0x2d0800)return _0x1cf393('UsageLimit');_0xeebd02[0x1]={..._0xeebd02[0x1],'requestId':_0xf459cf};},{'priority':'high'}),_0x2dc731['on']('_sendUsageRequest',_0x22bfa9=>{_0x19d9dc(_0x22bfa9['return'])&&(_0x225c4e=!0x0,_0x3f3cd7(_0x22bfa9['return']));},{'priority':'low'}),_0x13719a['then'](()=>{_0x225c4e||_0x1cf393('UsageLimit');});});function _0x615eae(){return'auto'==_0x2dc731['editing']['view']['_overlayModeHint'];}function _0x3eede9(){_0x2dc731['editing']['view']['_overlayModeHint']='auto';}}function _0x559e21(_0x479131){const _0x4aaf2e=[new window['Promise'](_0xdc5ea=>setTimeout(_0xdc5ea,0x93ecc)),_0x13719a['then'](()=>new window['Promise'](_0x4f2355=>{let _0x3b2aa6=0x0;_0x2dc731['model']['on']('applyOperation',(_0x68a5f9,_0x138c5a)=>{_0x138c5a[0x0]['isDocumentOperation']&&_0x3b2aa6++,0x5e8==_0x3b2aa6&&(_0x4f2355(),_0x68a5f9['off']());});}))];return window['Promise']['race'](_0x4aaf2e)['then'](()=>_0x479131);}async function _0x60d0dc(){await _0x13719a,_0x2dc731['model']['change']=_0x3c26bd,_0x2dc731['model']['enqueueChange']=_0x3c26bd,_0x2dc731['enableReadOnlyMode']('model');}function _0x54ee60(_0x486564){const _0x5a241b=_0x4fce5f();_0x2dc731[_0x5a241b]='footnotesLicenseKey'+_0x486564,'Valid'!=_0x486564&&_0x60d0dc();}function _0x4fce5f(){const _0x33c2e7=window['String'](window['performance']['now']())['replace']('.','');let _0xee76a1='u';for(let _0x2647af=0x0;_0x2647af<_0x33c2e7['length'];_0x2647af+=0x2){let _0x16ced6=window['parseInt'](_0x33c2e7['substring'](_0x2647af,_0x2647af+0x2));_0x16ced6>=0x3e&&(_0x16ced6-=0x3e),_0xee76a1+=_0x26b16f[_0x16ced6];}return _0xee76a1;}function _0x1e8e37(){const _0xf383a2=_0x785d33['split']('.');if(0x3!=_0xf383a2['length'])return null;return _0x243d37(_0xf383a2[0x1]);function _0x243d37(_0x2d96d3){const _0x49bce4=_0x2ffa47(_0x2d96d3);return _0x49bce4&&_0x43879f()?_0x49bce4:null;function _0x43879f(){const _0x3cbd9f=_0x49bce4['jti'],_0x2ee443=window['parseInt'](_0x3cbd9f['substring'](_0x3cbd9f['length']-0x8),0x10),_0x24b926={..._0x49bce4,'jti':_0x3cbd9f['substring'](0x0,_0x3cbd9f['length']-0x8)};return delete _0x24b926['vc'],_0x3ba55a(_0x24b926)==_0x2ee443;}}}async function _0xf1fc7b(){let _0x349194=!0x0;try{const [_0x5a80fd,_0x366b37,_0x3650d5]=_0x785d33['split']('.');return _0x31ef8f(_0x5a80fd),await _0x4f5f68(_0x5a80fd,_0x366b37,_0x3650d5),_0x349194;}catch{return!0x1;}function _0x31ef8f(_0xafe883){const _0x5df5e4=_0x2ffa47(_0xafe883);_0x5df5e4&&'ES256'==_0x5df5e4['alg']||(_0x349194=!0x1);}async function _0x4f5f68(_0x16384f,_0x3c7a68,_0x2cb440){const _0x5bbd08=window['Uint8Array']['from'](_0x1ffbe1(_0x2cb440),_0x577720=>_0x577720['charCodeAt'](0x0)),_0x64f650=new window['TextEncoder']()['encode'](_0x16384f+'.'+_0x3c7a68),_0x2e895d=window['crypto']['subtle'];if(!_0x2e895d)return;const _0x2de43d=await _0x2e895d['importKey']('jwk',_0xa4ed64,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2e895d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2de43d,_0x5bbd08,_0x64f650)||(_0x349194=!0x1);}}function _0x2ffa47(_0xa5479){return _0xa5479['startsWith']('ey')?JSON['parse'](_0x1ffbe1(_0xa5479)):null;}function _0x1ffbe1(_0xb7acc3){return window['atob'](_0xb7acc3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3ba55a(_0x182137){let _0x19b4c2=0x1505;function _0x3df97a(_0x4caedf){for(let _0x4427e5=0x0;_0x4427e5<_0x4caedf['length'];_0x4427e5++){const _0x4d4f44=_0x4caedf['charCodeAt'](_0x4427e5);_0x19b4c2=(_0x19b4c2<<0x5)+_0x19b4c2+_0x4d4f44,_0x19b4c2&=_0x19b4c2;}}function _0x438e6a(_0x4b246f){Array['isArray'](_0x4b246f)?_0x4b246f['forEach'](_0x438e6a):_0x4b246f&&'object'==typeof _0x4b246f?Object['entries'](_0x4b246f)['sort']()['forEach'](([_0x437df9,_0x4891a2])=>{_0x3df97a(_0x437df9),_0x438e6a(_0x4891a2);}):_0x3df97a(window['String'](_0x4b246f));}return _0x438e6a(_0x182137),_0x19b4c2>>>0x0;}function _0xeadb08(_0x3af9d7){return _0x3af9d7['toString'](0x10)['padStart'](0x8,'0');}function _0x33ca08(_0x518a42){return _0x518a42['split']('')['reverse']()['join']('');}function _0x3c26bd(){}_0x54ee60(await _0x42a50f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x69ffa){const {plugins:_0x25a45a,editing:_0x77505c,model:_0x3d3d1b}=this['editor'],_0xe7e767=_0x25a45a['get'](V)['getFootnote'](_0x69ffa);return!!_0xe7e767&&(_0x3d3d1b['change'](_0xf14d02=>{_0xf14d02['setSelection'](_0xf14d02['createPositionAt'](_0xe7e767['definition'],'end'));}),_0x77505c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1ae9e3){const {plugins:_0x150144,editing:_0x4d27a4,model:_0x23bd03}=this['editor'],_0x2aaad0=_0x150144['get'](V)['getFootnote'](_0x1ae9e3);return!!_0x2aaad0&&(_0x23bd03['change'](_0x50d995=>{_0x50d995['setSelection'](_0x2aaad0['reference'],'on');}),_0x4d27a4['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x396501}=this['editor']['model'],_0x342393=this['editor']['config']['get']('footnotes.multiBlock');_0x396501['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x396501['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x396501['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x342393?_0x396501['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x396501['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x396501['addChildCheck'](_0x3b5374=>{for(const _0xc6aeaa of _0x3b5374)if('footnoteDefinition'===_0xc6aeaa['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1f7f8a}=this,{conversion:_0x4cd425,editing:_0x4c4c1f}=_0x1f7f8a,{t:t}=_0x1f7f8a['locale'];_0x4cd425['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x299843,{writer:_0x535e5c,consumable:_0x265899})=>{const _0x179b4e=_0x299843['getChild'](0x0);if(!_0x179b4e||!_0x179b4e['is']('element','a'))return null;const _0x514ea8=_0x179b4e['getAttribute']('href')||'';if(!_0x514ea8['startsWith']('#'))return null;const _0x446024=_0x514ea8['replace'](/^#/,'');if(!_0x446024)return null;_0x265899['consume'](_0x179b4e,{'name':!0x0,'attributes':['href']});for(const {item:_0x58c771}of _0x4c4c1f['view']['createRangeIn'](_0x179b4e))_0x58c771['is']('$textProxy')?_0x265899['consume'](_0x58c771['textNode'],{'name':!0x0}):_0x58c771['is']('element')&&_0x265899['consume'](_0x58c771,{'name':!0x0});return _0x535e5c['createElement']('footnoteRef',{'footnoteId':_0x446024});}}),_0x4cd425['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x14c38c,{writer:_0x3748de})=>X(_0x14c38c,_0x3748de)}),_0x4cd425['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x69ce19,{writer:_0x1571b0})=>{const _0x28b7a4=_0x69ce19['getAttribute']('footnoteCounter');return _0x122ade(X(_0x69ce19,_0x1571b0),_0x1571b0,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x28b7a4)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3371f9}=this,{t:t}=_0x3371f9['locale'],{conversion:_0x18eb38}=_0x3371f9;_0x18eb38['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x18eb38['for']('upcast')['add'](_0x31efc0=>{_0x31efc0['on']('element:ol',(_0x2570ac,_0x305f7d,_0x1b9e6e)=>{const _0x490de0=_0x305f7d['viewItem'];if(!_0x490de0['hasClass']('footnotes-list')||!_0x305f7d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1b9e6e['consumable']['consume'](_0x490de0,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2b2c4d,modelCursor:_0x374c36}=_0x1b9e6e['convertChildren'](_0x305f7d['viewItem'],_0x305f7d['modelCursor']);_0x305f7d['modelRange']=_0x2b2c4d,_0x305f7d['modelCursor']=_0x374c36;}),_0x31efc0['on']('element:hr',(_0x121268,_0x5747ae,_0x151156)=>{const _0x323e7e=_0x5747ae['viewItem'];_0x323e7e['hasClass']('footnotes-divider')&&_0x5747ae['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x151156['consumable']['consume'](_0x323e7e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x18eb38['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1309db,{writer:_0x3ae0b6})=>H(_0x3ae0b6)}),_0x18eb38['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xcc2730,{writer:_0xfd3264})=>{const _0x397dde=_0x122ade(H(_0xfd3264,{'data-footnotes-list-label':t('Footnotes')}),_0xfd3264,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xfd3264['setCustomProperty']('footnotesDefinitions',!0x0,_0x397dde),_0x397dde;}});}['_defineDefinitionConverters'](){const {editor:_0x3957a7}=this,{conversion:_0x430f05,locale:_0x41d903}=_0x3957a7,_0x5543c2=_0x3957a7['config']['get']('footnotes.multiBlock');_0x430f05['for']('upcast')['add'](_0xdfbf08=>{_0xdfbf08['on']('element:li',(_0x3e3c78,_0x54dcf8,_0x509724)=>{const _0x87a6a=_0x54dcf8['viewItem'];if(!_0x87a6a['hasClass']('footnote-definition')||!_0x87a6a['getAttribute']('id'))return;const _0x4bc582=_0x87a6a['parent'];if(!_0x4bc582['is']('element','ol')||!_0x4bc582['hasClass']('footnotes-list'))return;if(!_0x509724['consumable']['test'](_0x87a6a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x210cfd=_0x509724['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x87a6a['getAttribute']('id')});if(!_0x509724['safeInsert'](_0x210cfd,_0x54dcf8['modelCursor']))return;_0x509724['consumable']['consume'](_0x87a6a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x367118=Array['from'](_0x87a6a['getChildren']())['find'](_0x204918=>_0x204918['is']('element')&&_0x204918['hasClass']('footnote-content'));for(const _0x5ea5dd of _0x87a6a['getChildren']())_0x5ea5dd['is']('element')&&(_0x509724['consumable']['consume'](_0x5ea5dd,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x509724['consumable']['consume'](_0x5ea5dd,{'name':!0x0,'classes':'footnote-content'}));if(_0x367118){if(_0x5543c2)_0x509724['convertChildren'](_0x367118,_0x210cfd);else{const _0x597dac=_0x509724['writer']['createElement']('footnoteInlineContent');_0x509724['writer']['insert'](_0x597dac,_0x210cfd),_0x509724['convertChildren'](_0x367118,_0x597dac);}}_0x509724['updateConversionResult'](_0x210cfd,_0x54dcf8);});}),_0x430f05['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x48f3d9,{writer:_0x495ff4})=>z(_0x48f3d9,_0x495ff4,_0x41d903,{'dataPipeline':!0x0})}),_0x430f05['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xede4d9,{writer:_0x17cde6})=>z(_0xede4d9,_0x17cde6,_0x41d903)});}['_defineBogusParagraphConverters'](){const {editor:_0x1792ab}=this,{conversion:_0x4405a7}=_0x1792ab;_0x1792ab['config']['get']('footnotes.multiBlock')?(_0x4405a7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':$(),'converterPriority':'high'}),_0x4405a7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':$({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1792ab['model']['document'],'change:data',()=>{!function(_0x11c4a8,_0x3803ac){const _0xbd5582=_0x11c4a8['document']['differ'],_0x5a9335=new Set();for(const _0x456073 of _0xbd5582['getChanges']()){const _0x3b7dfc='attribute'==_0x456073['type']?_0x456073['range']['start']['parent']:_0x456073['position']['parent'];_0x3b7dfc['is']('element','footnoteDefinition')&&_0x5a9335['add'](_0x3b7dfc);}for(const _0x6c844c of _0x5a9335['values']()){const _0x2a36f7=Array['from'](_0x6c844c['getChildren']())['filter'](_0x52c9cc=>B(_0x52c9cc,_0x3803ac['mapper']));for(const _0x487c42 of _0x2a36f7)_0x3803ac['reconvertItem'](_0x487c42);}}(_0x1792ab['model'],_0x1792ab['editing']);})):(_0x4405a7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':$()}),_0x4405a7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x161b8a,{writer:_0x236f8a})=>{const _0xa3c403=_0x236f8a['createContainerElement']('span');return _0x236f8a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xa3c403),_0xa3c403;}}));}['_defineKeyboardHandlers'](){const {editor:_0x11a937}=this,{editing:_0x207c34,t:t}=_0x11a937,_0xd2ef48=_0x11a937['model']['document']['selection'];_0x11a937['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x11a937['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x207c34['view']['document'],'enter',(_0x23d43b,_0x365b25)=>{const _0x1e0cfd=function(_0x145ed0){const _0x21fc07=_0x145ed0['getSelectedElement']();return _0x21fc07?.['is']('element','footnoteRef')?_0x21fc07:null;}(_0xd2ef48);if(_0x1e0cfd){const _0x4e725f=_0x1e0cfd['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4e725f),_0x365b25['preventDefault'](),_0x23d43b['stop']();}},{'context':_0x4a3890});}['_defineClickHandlers'](){const {editor:_0x1842e4}=this,{editing:_0x3c7ffd}=_0x1842e4;_0x1842e4['editing']['view']['addObserver'](_0x46b531),_0x1842e4['editing']['view']['addObserver'](_0x16e62b);let _0x103790=!0x1;this['listenTo'](_0x3c7ffd['view']['document'],'pointerdown',(_0x4c328c,_0x5244c2)=>{const {target:_0x4ae2a4}=_0x5244c2,_0xf0b688=_0x3c7ffd['view']['document']['selection'];_0x103790=!!(_0x4ae2a4?.['is']('element','a')&&_0x4ae2a4['parent']?.['is']('element','sup')&&_0x4ae2a4['parent']['hasClass']('footnote'))&&_0xf0b688['getSelectedElement']()===_0x4ae2a4['parent'];},{'priority':'high'}),this['listenTo'](_0x3c7ffd['view']['document'],'click',(_0x4203ca,_0x50a532)=>{const {target:_0x285e4d}=_0x50a532;if(!_0x285e4d?.['is']('element','a'))return;if(_0x285e4d['parent']?.['is']('element','sup')&&_0x285e4d['parent']['hasClass']('footnote')&&!_0x103790)return void _0x50a532['preventDefault']();let _0x16485d=_0x285e4d['getAttribute']('href');if(!_0x16485d?.['startsWith']('#'))return;_0x16485d=_0x16485d['slice'](0x1);let _0x9e34d=!0x1;(_0x16485d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x16485d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x16485d))&&(_0x9e34d=!0x0),_0x9e34d&&(_0x50a532['preventDefault'](),_0x4203ca['stop']());},{'priority':'high','context':'$capture'});}};function $({dataPipeline:_0x2a88f5}={}){return(_0x1262c5,{writer:_0xe22f97})=>{if(!M(_0x1262c5))return null;if(!_0x2a88f5)return _0xe22f97['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x589d0f=_0xe22f97['createContainerElement']('p');return _0xe22f97['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x589d0f),_0x589d0f;};}function M(_0x47b5e0){const {parent:_0x2dc7e0}=_0x47b5e0;if(!_0x2dc7e0?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2dc7e0['childCount'])return!0x1;for(const _0x146866 of _0x47b5e0['getAttributeKeys']())if(!_0x146866['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x146866)return!0x1;return!0x0;}function B(_0x371d7e,_0x56008e){if(!_0x371d7e['is']('element','paragraph'))return!0x1;const _0x3045da=_0x56008e['toViewElement'](_0x371d7e);return!!_0x3045da&&M(_0x371d7e)!==_0x3045da['is']('element','span');}function q(_0x4db274){return _0x4a3890(_0x4db274)&&_0x4db274['is']('containerElement')&&!!_0x4db274['getCustomProperty']('footnotesDefinitions');}function H(_0x29fd57,_0x16934f={}){const _0x129d7a=_0x29fd57['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x32ab02=_0x29fd57['createContainerElement']('ol',{'class':'footnotes-list'},_0x29fd57['createSlot']());return _0x29fd57['createContainerElement']('div',{'class':'footnotes',..._0x16934f},[_0x129d7a,_0x32ab02]);}function X(_0x2f6718,_0x53562d){const _0x2d4d1f=_0x2f6718['getAttribute']('footnoteId'),_0x439c06=_0x2f6718['getAttribute']('footnoteCounter'),_0x49252e=_0x53562d['createUIElement']('a',{'href':'#'+_0x2d4d1f},function(_0x3bb1c5){const _0x1c59ec=this['toDomElement'](_0x3bb1c5);return _0x1c59ec['textContent']=_0x439c06,_0x1c59ec;}),_0x2634fc=_0x53562d['createContainerElement']('sup',{'id':'ref-'+_0x2d4d1f,'class':'footnote'},[_0x49252e]);return _0x2634fc['getFillerOffset']=()=>null,_0x2634fc;}function z(_0x34a9fd,_0x5abd7f,_0x3f7d8a,{dataPipeline:_0x58ae0e}={}){const {t:t}=_0x3f7d8a,_0x1571d0=_0x34a9fd['getAttribute']('footnoteId'),_0x3e1ab2=_0x5abd7f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1571d0},function(_0x103f21){const _0x42666d=this['toDomElement'](_0x103f21);return _0x42666d['innerText']='^',_0x42666d;}),_0x3ed166=_0x58ae0e?_0x5abd7f['createContainerElement']('div',{'class':'footnote-content'}):_0x39dc1e(_0x5abd7f['createEditableElement']('div',{'class':'footnote-content'}),_0x5abd7f,{'label':t('Footnote\x20content.')});return _0x5abd7f['insert'](_0x5abd7f['createPositionAt'](_0x3ed166,0x0),_0x5abd7f['createSlot']()),_0x5abd7f['createContainerElement']('li',{'class':'footnote-definition','id':_0x1571d0},[_0x3e1ab2,_0x3ed166]);}var J=class extends _0xbedcb6{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[U,_0x47113a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5b920f}=this,{plugins:_0x39369f,model:_0x30710d}=_0x5b920f,_0x1898b0=_0x39369f['get'](_0x47113a),_0x412ced=_0x39369f['get'](V);this['listenTo'](_0x1898b0,'outputTransformation',(_0x16dabc,_0x2653f0)=>{const _0xa5d0d7=G(_0x30710d['createRangeIn'](_0x2653f0['content']));if(!_0xa5d0d7['length'])return;const _0x493134=_0x412ced['getFootnotes'](),_0x5b7f85=_0xa5d0d7['reduce']((_0x5445d0,_0x2bc560)=>{const _0xa867cd=_0x493134['find'](_0x3099fd=>_0x3099fd['id']===_0x2bc560);if(_0xa867cd){const _0x307018=_0x5b920f['data']['toView'](_0xa867cd['definition'],{'isClipboardPipeline':!0x0}),_0x20f493=_0x5b920f['data']['htmlProcessor']['toData'](_0x307018);_0x5445d0[_0xa867cd['id']]=_0x20f493;}return _0x5445d0;},Object['create'](null));_0x2653f0['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5b7f85));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5cac3c}=this,{model:_0x545684,plugins:_0x2110e8}=_0x5cac3c,{view:_0x17df8d}=_0x5cac3c['editing'],_0x2370a2=_0x2110e8['get'](_0x47113a),_0x22aa3d=_0x2110e8['get'](V),_0xdb9ff2=_0x5cac3c['config']['get']('footnotes.multiBlock');let _0x4d1a2e=null;this['listenTo'](_0x17df8d['document'],'clipboardInput',(_0x498895,_0x3ceb72)=>{const _0x59d3fd=_0x3ceb72['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4d1a2e=_0x59d3fd?JSON['parse'](_0x59d3fd):null;}),this['listenTo'](_0x2370a2,'contentInsertion',(_0x12dfa0,_0x2a2afe)=>{const _0x133426=_0x2a2afe['sourceEditorId']===this['editor']['id'];_0x133426&&'drop'===_0x2a2afe['method']||_0x545684['change'](_0x206ff8=>{let _0x3bec1f=_0x22aa3d['getFootnotesDefinitionsObjectElement']();const _0x548bf6=!!_0x3bec1f&&Array['from'](_0x545684['document']['selection']['getSelectedBlocks']())['includes'](_0x3bec1f);if(!_0x4d1a2e&&function(_0x1b8adf){for(const {item:_0x4c4d25}of _0x1b8adf)if(_0x4c4d25['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x545684['createRangeIn'](_0x2a2afe['content']))&&(_0x4d1a2e=function(_0x44df9a,_0x578150){const _0xb7d0ff=Q(_0x44df9a,_0x578150);if(!_0xb7d0ff)return null;const _0x364944=Object['create'](null);for(const _0x33fc3f of _0xb7d0ff['getChildren']())_0x33fc3f['is']('element','footnoteDefinition')&&_0x33fc3f['hasAttribute']('footnoteId')&&(_0x364944[_0x33fc3f['getAttribute']('footnoteId')]=_0x44df9a['cloneElement'](_0x33fc3f,!0x0));return Object['keys'](_0x364944)['length']?_0x364944:null;}(_0x206ff8,_0x2a2afe['content'])),(_0x3bec1f&&!_0x548bf6||!_0x3bec1f&&!_0x4d1a2e)&&function(_0x161f5d,_0x46be77){const _0x33a4cd=[];for(const {item:_0xc4049e}of _0x161f5d['createRangeIn'](_0x46be77))_0xc4049e['is']('element','footnotesDefinitions')&&_0x33a4cd['push'](_0xc4049e);for(const _0x40acdf of _0x33a4cd)_0x161f5d['remove'](_0x40acdf);}(_0x206ff8,_0x2a2afe['content']),!_0x4d1a2e)return;const {selection:_0x387f85}=_0x545684['document'],_0x349bdf=_0x387f85['getFirstRange']()['root'];_0x3bec1f&&!_0x548bf6||(_0x3bec1f=Q(_0x206ff8,_0x2a2afe['content']),_0x3bec1f||=_0x22aa3d['_insertEmptyFootnotesDefinitionsContainer'](_0x206ff8,_0x349bdf));const _0x3b00bc=Array['from'](_0x387f85['getRanges']())['flatMap'](G),_0x19972c=function(_0x209af1,_0x1b6606,_0x31bb47){const _0x47f8d8=Object['create'](null);for(const {item:_0x3e0c63}of _0x209af1['createRangeIn'](_0x1b6606))if(_0x3e0c63['is']('element','footnoteRef')){const _0x2498ea=_0x3e0c63['getAttribute']('footnoteId');if(!_0x31bb47(_0x2498ea))continue;_0x47f8d8[_0x2498ea]||(_0x47f8d8[_0x2498ea]=_0x545501()),_0x209af1['setAttribute']('footnoteId',_0x47f8d8[_0x2498ea],_0x3e0c63);}return _0x47f8d8;}(_0x206ff8,_0x2a2afe['content'],_0x19ba23=>!_0x133426||!!_0x22aa3d['getFootnote'](_0x19ba23)&&!_0x3b00bc['includes'](_0x19ba23));for(const [_0x134afc,_0x1864a3]of Object['entries'](_0x4d1a2e)){const _0xd60c17=_0x19972c[_0x134afc]||_0x134afc;let _0x427530;if('string'!=typeof _0x1864a3)_0x427530=_0x1864a3,_0xd60c17!==_0x134afc&&_0x206ff8['setAttribute']('footnoteId',_0xd60c17,_0x427530);else{_0x427530=_0x206ff8['createElement']('footnoteDefinition',{'footnoteId':_0xd60c17});const _0x2a1dd9=_0x5cac3c['data']['htmlProcessor']['toView'](_0x1864a3);let _0x1dc2a4;if(_0xdb9ff2)_0x1dc2a4=_0x5cac3c['data']['toModel'](_0x2a1dd9,_0x427530);else{_0x1dc2a4=_0x206ff8['createElement']('footnoteInlineContent');const _0x27e38a=_0x5cac3c['data']['toModel'](_0x2a1dd9,_0x1dc2a4);_0x206ff8['insert'](_0x27e38a,_0x1dc2a4);}_0x206ff8['append'](_0x1dc2a4,_0x427530);}_0x206ff8['insert'](_0x427530,_0x3bec1f,'end');}_0x4d1a2e=null;});});}};function Q(_0x3917b2,_0x31ebd6){for(const {item:_0x4f9735}of _0x3917b2['createRangeIn'](_0x31ebd6))if(_0x4f9735['is']('element','footnotesDefinitions'))return _0x4f9735;return null;}function G(_0x152ac7){const _0x30109d=new Set();for(const {item:_0x27288a}of _0x152ac7)_0x27288a['is']('element','footnoteRef')&&_0x30109d['add'](_0x27288a['getAttribute']('footnoteId'));return Array['from'](_0x30109d);}var W=class extends _0xbedcb6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x6503f8}=this,{componentFactory:_0x34ebfb}=_0x6503f8['ui'];_0x34ebfb['add']('insertFootnote',Y(_0x6503f8,_0x31aa72)),_0x34ebfb['add']('menuBar:insertFootnote',Y(_0x6503f8,_0x596a2f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2f9652=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x247bb3;for(const _0x49bfc5 in _0x2f9652){const _0x370eca=_0x49bfc5,_0x53dc97=_0x2f9652[_0x370eca];if('footnotesLicenseKeyValid'==_0x53dc97||'footnotesLicenseKeyInvalid'==_0x53dc97||'footnotesLicenseKeyExpired'==_0x53dc97||'footnotesLicenseKeyDomainLimit'==_0x53dc97||'footnotesLicenseKeyNotAllowed'==_0x53dc97||'footnotesLicenseKeyEvaluationLimit'==_0x53dc97||'footnotesLicenseKeyUsageLimit'==_0x53dc97){delete _0x2f9652[_0x370eca],_0x247bb3=_0x53dc97,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x247bb3&&_0x2f9652['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x247bb3&&_0x2f9652['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x247bb3&&_0x2f9652['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x247bb3&&_0x2f9652['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x247bb3&&_0x2f9652['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x247bb3&&_0x2f9652['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Y(_0x1e0e66,_0x54a11a){const _0x51df0a=_0x1e0e66['commands']['get']('insertFootnote');return _0x238906=>{const {t:t}=_0x238906,_0x69b55c=new _0x54a11a(_0x238906),_0x729c3a=_0x69b55c instanceof _0x596a2f;return _0x69b55c['bind']('isEnabled')['to'](_0x51df0a,'isEnabled'),_0x69b55c['set']({'label':t(_0x729c3a?'Footnote':'Insert\x20footnote'),'icon':_0x5250b4,'tooltip':!0x0}),_0x69b55c['on']('execute',()=>{_0x51df0a['execute'](),_0x1e0e66['editing']['view']['focus']();}),_0x69b55c;};}var Z=class extends _0xbedcb6{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[U,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];var nt=class extends _0xfc9322{['refresh'](){const {editor:_0x1d65e8}=this,_0x1ea4cb=_0x1d65e8['plugins']['get'](V)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1ea4cb,this['value']=_0x1ea4cb?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3a8af6}){const {editor:_0x362879}=this,_0xd3f42d=_0x362879['plugins']['get'](V),_0x34e5f3=_0xd3f42d['getFootnotesDefinitionsObjectElement']();_0x34e5f3&&ot['includes'](_0x3a8af6)&&_0x362879['model']['change'](_0x133f37=>{_0x133f37['setAttribute']('footnotesListStyle',_0x3a8af6,_0x34e5f3),_0xd3f42d['_updateFootnotesCounters'](_0x133f37);});}},it=class extends _0xfc9322{['refresh'](){const {editor:_0x3eff04}=this,_0x5208e2=_0x3eff04['plugins']['get'](V)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5208e2,this['value']=_0x5208e2?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x539c43}){const {editor:_0x1cc3f1}=this,_0x4be5e6=_0x1cc3f1['plugins']['get'](V),_0x1d4014=_0x4be5e6['getFootnotesDefinitionsObjectElement']();_0x1d4014&&Number['isInteger'](_0x539c43)&&_0x1cc3f1['model']['change'](_0x4c5719=>{_0x4c5719['setAttribute']('footnotesListStart',_0x539c43,_0x1d4014),_0x4be5e6['_updateFootnotesCounters'](_0x4c5719);});}};function st({style:_0x2711fe,digits:_0x2b33b6,value:_0x49f9a0}){const _0x2ea9d9=Math['floor'](_0x49f9a0),_0x1112a2=function(_0x45578f){switch(_0x45578f){case'lower-alpha':case'lower-latin':case'upper-alpha':case'upper-latin':return{'min':0x1,'max':0x1/0x0};case'lower-roman':case'upper-roman':return{'min':0x1,'max':0xf9f};default:return{'min':-0x1/0x0,'max':0x1/0x0};}}(_0x2711fe);switch((_0x2ea9d9>_0x1112a2['max']||_0x2ea9d9<_0x1112a2['min'])&&(_0x2711fe='decimal'),_0x2711fe){case'decimal-leading-zero':return function(_0x306975,_0x57e51e){return String(_0x306975)['padStart'](_0x57e51e,'0');}(_0x2ea9d9,Math['max'](0x2,_0x2b33b6));case'lower-alpha':case'lower-latin':return rt(_0x2ea9d9,!0x1);case'upper-alpha':case'upper-latin':return rt(_0x2ea9d9,!0x0);case'lower-roman':return at(_0x2ea9d9,!0x1);case'upper-roman':return at(_0x2ea9d9,!0x0);case'arabic-indic':return String(_0x2ea9d9)['replace'](/\d/g,_0x4cceaa=>ft[Number(_0x4cceaa)]);default:return String(_0x2ea9d9);}}function rt(_0x1c0f05,_0x39581a){let _0x52c33b='',_0x347b6a=_0x1c0f05;for(;_0x347b6a>0x0;){const _0x42fb26=(_0x347b6a-0x1)%0x1a;_0x52c33b=String['fromCharCode'](0x61+_0x42fb26)+_0x52c33b,_0x347b6a=Math['floor']((_0x347b6a-0x1)/0x1a);}return _0x39581a?_0x52c33b['toUpperCase']():_0x52c33b;}const lt=[{'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 at(_0xbd3ed2,_0x5bcced){let _0xb4fd9='',_0x11361b=_0xbd3ed2;for(const {value:_0x4a2bf1,numeral:_0xf04e59}of lt)for(;_0x11361b>=_0x4a2bf1;)_0xb4fd9+=_0xf04e59,_0x11361b-=_0x4a2bf1;return _0x5bcced?_0xb4fd9:_0xb4fd9['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];var ct=class extends _0xbedcb6{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[U,V];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x157ebb}=this;_0x157ebb['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x157ebb['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x157ebb['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x157ebb['commands']['add']('footnotesStyle',new nt(_0x157ebb)),_0x157ebb['commands']['add']('footnotesStart',new it(_0x157ebb)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1b8644}=this,{schema:_0x346d60}=_0x1b8644['model'];_0x346d60['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x153d3b}=this,{conversion:_0x401c01,model:_0x1c43db}=_0x153d3b,{schema:_0x1d9bf7}=_0x1c43db;_0x401c01['for']('upcast')['add'](_0x262450=>{_0x262450['on']('element:ol',(_0x1c204a,_0xbffe77,_0xe6da80)=>{const _0x30e3b=_0xbffe77['viewItem'],_0xfc91ac=_0xbffe77['modelCursor']?.['parent'];_0x30e3b['hasClass']('footnotes-list')&&_0xfc91ac?.['is']('element','footnotesDefinitions')&&(function(_0x3a0625,_0x4a3d42,_0x280598,_0x4ffb29){if(!_0x4ffb29['checkAttribute'](_0x4a3d42,'footnotesListStart'))return;let _0x20b0ef=0x1;const _0x34924c=_0x280598['consumable']['consume'](_0x3a0625,{'attributes':'start'});if(_0x34924c){const _0x4204fb=Number['parseInt'](_0x3a0625['getAttribute']('start'),0xa);Number['isNaN'](_0x4204fb)||(_0x20b0ef=_0x4204fb);}!_0x34924c&&_0x4a3d42['hasAttribute']('footnotesListStart')||_0x280598['writer']['setAttribute']('footnotesListStart',_0x20b0ef,_0x4a3d42);}(_0x30e3b,_0xfc91ac,_0xe6da80,_0x1d9bf7),function(_0x6e5877,_0x4e5b1a,_0x30ee4b,_0x2d72f0){if(!_0x2d72f0['checkAttribute'](_0x4e5b1a,'footnotesListStyle'))return;let _0x5d77db='decimal',_0x12ad5d=!0x1;if(_0x30ee4b['consumable']['consume'](_0x6e5877,{'attributes':'type'})){const _0x22b2ce={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x6e5877['getAttribute']('type')];_0x22b2ce&&(_0x5d77db=_0x22b2ce),_0x12ad5d=!0x0;}if(_0x30ee4b['consumable']['consume'](_0x6e5877,{'styles':'list-style-type'})){const _0x1571df=ut(_0x6e5877['getStyle']('list-style-type'));_0x1571df&&(_0x5d77db=_0x1571df),_0x12ad5d=!0x0;}!_0x12ad5d&&_0x4e5b1a['hasAttribute']('footnotesListStyle')||_0x30ee4b['writer']['setAttribute']('footnotesListStyle',_0x5d77db,_0x4e5b1a);}(_0x30e3b,_0xfc91ac,_0xe6da80,_0x1d9bf7));});}),_0x401c01['for']('downcast')['add'](_0x8e0722=>{_0x8e0722['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x3526ed,_0x5ddd7a,_0x546072)=>{if(!_0x546072['consumable']['consume'](_0x5ddd7a['item'],_0x3526ed['name']))return;const _0x135102=dt(_0x5ddd7a['item'],_0x546072['mapper']),{attributeNewValue:_0x50d911}=_0x5ddd7a;null==_0x50d911||0x1===_0x50d911?_0x546072['writer']['removeAttribute']('start',_0x135102):_0x546072['writer']['setAttribute']('start',String(_0x50d911),_0x135102);}),_0x8e0722['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x24c75c,_0x1acf64,_0x2fb39b)=>{if(!_0x2fb39b['consumable']['consume'](_0x1acf64['item'],_0x24c75c['name']))return;const _0x18756e=dt(_0x1acf64['item'],_0x2fb39b['mapper']),{attributeNewValue:_0x3af5d9}=_0x1acf64;_0x3af5d9&&'decimal'!==_0x3af5d9?_0x2fb39b['writer']['setStyle']('list-style-type',_0x3af5d9,_0x18756e):_0x2fb39b['writer']['removeStyle']('list-style-type',_0x18756e);});});}['_definePostfixer'](){const {editor:_0x5587f2}=this,{model:_0x11254a}=_0x5587f2,_0xea2f78=_0x5587f2['plugins']['get'](V),_0x2c0c4b=this['_getDefaultListStyle'](),_0x5cfd70=this['_getDefaultStartIndex']();_0x11254a['document']['registerPostFixer'](_0x4dddf6=>{const _0x285bee=_0x11254a['document']['differ']['getChanges']();let _0x55144b=!0x1;for(const _0x1217f0 of _0x285bee){if('insert'!==_0x1217f0['type']||'$text'===_0x1217f0['name'])continue;const _0x23c0f8=_0x11254a['createRangeOn'](_0x1217f0['position']['nodeAfter']);for(const _0x876524 of _0x23c0f8['getItems']())_0x876524['is']('element','footnotesDefinitions')&&(!_0x876524['hasAttribute']('footnotesListStart')&&_0x11254a['schema']['checkAttribute'](_0x876524,'footnotesListStart')&&(_0x4dddf6['setAttribute']('footnotesListStart',_0x5cfd70,_0x876524),_0x55144b=!0x0),!_0x876524['hasAttribute']('footnotesListStyle')&&_0x11254a['schema']['checkAttribute'](_0x876524,'footnotesListStyle')&&(_0x4dddf6['setAttribute']('footnotesListStyle',_0x2c0c4b,_0x876524),_0x55144b=!0x0));}return _0x55144b&&_0xea2f78['_updateFootnotesCounters'](_0x4dddf6),_0x55144b;});}['_defineFormatter'](){const {editor:_0x399db9}=this;_0x399db9['plugins']['get'](V)['setFootnoteFormatter'](_0x176500=>this['_formatFootnoteListValue'](_0x176500));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x257932,value:_0x4bcfd4,digits:_0x1d6c2f}){const _0x2ae61b=_0x257932['getAttribute']('footnotesListStyle');return st({'value':_0x4bcfd4+(_0x257932['getAttribute']('footnotesListStart')??0x1)-0x1,'style':_0x2ae61b,'digits':_0x1d6c2f});}};function ut(_0x1cff6f){if('string'==typeof _0x1cff6f){const _0x5c2e1d=et[_0x1cff6f];if(_0x5c2e1d)return _0x5c2e1d;if(ot['includes'](_0x1cff6f))return _0x1cff6f;}return null;}function dt(_0x1c27c1,_0x21081e){const _0x32c296=_0x21081e['toViewElement'](_0x1c27c1);return Array['from'](_0x32c296['getChildren']())['find'](_0xe199b9=>_0xe199b9['is']('element','ol')&&_0xe199b9['hasClass']('footnotes-list'));}var ht=class extends _0x582811{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x5403ae();['keystrokes']=new _0x2d9c5e();['focusables']=new _0x2ac941();['focusCycler'];constructor(_0x1ec11d,{styleButtonViews:_0x2e1be4,styleGridAriaLabel:_0x3c51da}){super(_0x1ec11d),(this['focusCycler']=new _0xb8e486({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x2e1be4,_0x3c51da),[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 _0x277df8 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x277df8['element']);_0x4b457e({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x5d7eca['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 _0x33cef9=_0x2aecd3=>_0x2aecd3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x33cef9),this['keystrokes']['set']('arrowleft',_0x33cef9),this['keystrokes']['set']('arrowup',_0x33cef9),this['keystrokes']['set']('arrowdown',_0x33cef9);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x886212,_0x35036f){const _0x30e080=new _0x582811(this['locale']);return _0x30e080['children']=_0x30e080['createCollection'](),_0x30e080['children']['addMany'](_0x886212),_0x30e080['setTemplate']({'tag':'div','attributes':{'aria-label':_0x35036f,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x30e080['children']}),_0x30e080['children']['delegate']('execute')['to'](this),_0x30e080['focus']=function(){for(const _0x17d4bb of this['children'])if(_0x17d4bb instanceof _0x31aa72&&_0x17d4bb['isOn'])return void _0x17d4bb['focus']();this['children']['first']['focus']();},_0x30e080['focusTracker']=new _0x5403ae(),_0x30e080['keystrokes']=new _0x2d9c5e(),_0x30e080['render'](),_0x30e080['keystrokes']['listenTo'](_0x30e080['element']),this['children']['add'](_0x30e080),_0x30e080;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x847460=this['_createStartIndexPropertyView'](),_0x870a8f=[_0x847460],_0x40f7dd=new _0x5b4f2a(this['locale'],_0x870a8f);return _0x40f7dd['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x40f7dd['buttonView']['bind']('isEnabled')['toMany'](_0x870a8f,'isEnabled',(..._0x45de2f)=>_0x45de2f['some'](_0x319fb7=>_0x319fb7)),_0x40f7dd['buttonView']['on']('change:isEnabled',(_0x4d991a,_0x1c6098,_0x1d2169)=>{_0x1d2169||(_0x40f7dd['isCollapsed']=!0x0);}),this['children']['add'](_0x40f7dd),[_0x847460,_0x40f7dd];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3913c2=new _0x488e6c(this['locale'],_0x4f18bf);return _0x3913c2['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3913c2['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3913c2['fieldView']['on']('input',()=>{const _0x1bedb6=_0x3913c2['fieldView']['element'],_0x4a6594=_0x1bedb6['valueAsNumber'];Number['isNaN'](_0x4a6594)?_0x3913c2['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1bedb6['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4a6594}):_0x3913c2['errorText']=t(_0x4a6594<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3913c2;}},mt=class extends _0xbedcb6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1445e9,_0x5c0000];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2dbfdb}=this,{componentFactory:_0x1697d6}=_0x2dbfdb['ui'];_0x2dbfdb['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1697d6['add']('footnotesStyle',function(_0x803c74){return _0x2dceb1=>{const {t:t}=_0x2dceb1,_0x239551=_0x803c74['commands']['get']('footnotesStyle'),_0x88246e=_0x13f9fe(_0x2dceb1),{buttonView:_0x51934f}=_0x88246e;return _0x88246e['class']='ck-footnotes-styles-dropdown',_0x88246e['bind']('isEnabled')['to'](_0x239551,'isEnabled'),_0x51934f['set']({'label':t('Footnotes\x20style'),'icon':_0x5250b4,'tooltip':!0x0}),_0x88246e['once']('change:isOpen',()=>{const _0xe7d708=function({editor:_0x54b84a,dropdownView:_0x56d897}){const {t:t}=_0x54b84a['locale'],_0x3ffd28=t('Footnotes\x20definitions\x20styles'),_0x1d9d94=function(_0x2d0fdb){const {t:t}=_0x2d0fdb['locale'],_0xba93a3=_0x2d0fdb['config']['get']('footnotes.footnotesProperties.listStyles'),_0xfa7f0e=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x280380},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x49c6fe},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x1b7c64},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x5856d8},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x444383},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x4a2cbb},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x3591bf}];return _0xba93a3['map'](_0x156f14=>{const _0x597a97=ut(_0x156f14);return function(_0x3a0ddf,_0x3e268c){const {locale:_0x489a17}=_0x3a0ddf,{label:_0xcbaf0e,icon:_0x19e292,tooltip:_0x4953be,style:_0x23bc02}=_0x3e268c,_0x1139e5=_0x3a0ddf['commands']['get']('footnotesStyle'),_0x34e923=new _0x31aa72(_0x489a17);return _0x34e923['set']({'label':_0xcbaf0e,'icon':_0x19e292,'tooltip':_0x4953be}),_0x34e923['bind']('isOn')['to'](_0x1139e5,'value',_0x199e67=>_0x199e67===_0x23bc02),_0x34e923['bind']('isEnabled')['to'](_0x1139e5,'isEnabled'),_0x34e923['on']('execute',()=>{_0x3a0ddf['execute']('footnotesStyle',{'value':_0x23bc02}),_0x3a0ddf['editing']['view']['focus']();}),_0x34e923;}(_0x2d0fdb,_0xfa7f0e['find'](_0x956519=>_0x956519['style']===_0x597a97));});}(_0x54b84a),_0x58fefb=new ht(_0x54b84a['locale'],{'styleGridAriaLabel':_0x3ffd28,'styleButtonViews':_0x1d9d94}),_0x55fada=_0x54b84a['commands']['get']('footnotesStart');return _0x58fefb['startIndexFieldView']['bind']('isEnabled')['to'](_0x55fada),_0x58fefb['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x55fada),_0x58fefb['on']('footnotesListStart',(_0x24508c,_0x4e88c3)=>{_0x54b84a['execute']('footnotesStart',{'value':_0x4e88c3['startIndex']});}),_0x58fefb['delegate']('execute')['to'](_0x56d897),_0x58fefb;}({'editor':_0x803c74,'dropdownView':_0x88246e});_0x88246e['panelView']['children']['add'](_0xe7d708);}),_0x88246e;};}(_0x2dbfdb));}['afterInit'](){const {editor:_0x2a3cdf}=this,{t:t}=_0x2a3cdf['locale'],_0xa8e4ec=_0x2a3cdf['plugins']['get'](_0x5c0000),{defaultPositions:_0x41b9a3}=_0x4ac46d;_0xa8e4ec['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2a3cdf['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x35e090=>{let _0x1e2bc6=_0x35e090['getFirstPosition']()?.['parent'];return _0x1e2bc6?.['is']('$text')&&(_0x1e2bc6=_0x1e2bc6['parent']),_0x1e2bc6?.['is']('element')?_0x1e2bc6['findAncestor'](q):null;},'positions':[_0x41b9a3['southArrowNorth'],_0x41b9a3['southArrowNorthMiddleWest'],_0x41b9a3['southArrowNorthMiddleEast'],_0x41b9a3['southArrowNorthWest'],_0x41b9a3['southArrowNorthEast'],_0x41b9a3['northArrowSouth'],_0x41b9a3['northArrowSouthMiddleWest'],_0x41b9a3['northArrowSouthMiddleEast'],_0x41b9a3['northArrowSouthWest'],_0x41b9a3['northArrowSouthEast'],_0x41b9a3['viewportStickyNorth']]});}},pt=class extends _0xbedcb6{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[ct,mt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Z as Footnotes,J as FootnotesClipboard,U as FootnotesEditing,pt as FootnotesProperties,ct as FootnotesPropertiesEditing,mt as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,V as FootnotesTracker,W as FootnotesUI,j as InsertFootnoteCommand};
23
+ import{Command as _0x3904c5,Plugin as _0x430bd6}from'@ckeditor/ckeditor5-core';import{WidgetToolbarRepository as _0x4f08e4,isWidget as _0x5778a2,toWidget as _0x4a0b38,toWidgetEditable as _0xeadc9}from'@ckeditor/ckeditor5-widget';import{FocusTracker as _0x2beea5,KeystrokeHandler as _0x5e8285,global as _0x368376,logWarning as _0x22c551,uid as _0x44b89c}from'@ckeditor/ckeditor5-utils';import{ClickObserver as _0x13a465,PointerObserver as _0x1ca26c}from'@ckeditor/ckeditor5-engine';import{ClipboardPipeline as _0x1b520b}from'@ckeditor/ckeditor5-clipboard';import{BalloonPanelView as _0x534280,ButtonView as _0x357f47,CollapsibleView as _0x5498af,ContextualBalloon as _0x10011f,FocusCycler as _0x1e9d99,LabeledFieldView as _0x5bd45d,MenuBarMenuListItemButtonView as _0x2e0374,View as _0x20d9b3,ViewCollection as _0x4fdb0a,addKeyboardHandlingForGrid as _0x4595d6,createDropdown as _0x13d5d1,createLabeledInputNumber as _0x3f6dae}from'@ckeditor/ckeditor5-ui';import{IconFootnote as _0x24d0e5,IconListStyleArabicIndic as _0xcf4e7a,IconListStyleDecimal as _0x51f85d,IconListStyleDecimalLeadingZero as _0x372850,IconListStyleLowerLatin as _0x1f64a5,IconListStyleLowerRoman as _0x12924e,IconListStyleUpperLatin as _0x252079,IconListStyleUpperRoman as _0x57af67}from'@ckeditor/ckeditor5-icons';var N=class{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x249d92,_0x4b71cb){this['_model']=_0x249d92,this['_elementName']=_0x4b71cb['elementName'],this['_getElementKey']=_0x4b71cb['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x58149f){const _0x1e10a6=new Set(),_0x506c80=new Map();for(const _0x1bb139 of _0x58149f){if('insert'===_0x1bb139['type']&&'$text'!==_0x1bb139['name']&&_0x1bb139['position']['nodeAfter']){const _0x407d21=this['_model']['createRangeOn'](_0x1bb139['position']['nodeAfter']);for(const _0x3d5fb2 of _0x407d21['getItems']()){if(!_0x3d5fb2['is']('element',this['_elementName']))continue;const _0x485019=this['_getElementKey'](_0x3d5fb2);_0x506c80['has'](_0x485019)||_0x506c80['set'](_0x485019,[]),_0x506c80['get'](_0x485019)['push'](_0x3d5fb2);}}if('remove'===_0x1bb139['type']&&_0x1bb139['name']===this['_elementName']){const _0xe8019b=this['_getElementKey']({'getAttribute':_0x7c3fce=>_0x1bb139['attributes']['get'](_0x7c3fce)});_0x1e10a6['add'](_0xe8019b);}}for(const [_0xf90195,_0x5549b3]of this['_trackedElements'])'$graveyard'===_0x5549b3['root']['rootName']&&_0x1e10a6['add'](_0xf90195);for(const _0x3e09b3 of _0x1e10a6)this['_trackedElements']['delete'](_0x3e09b3);for(const [_0x294e05,_0x8d4e3a]of _0x506c80)this['_trackedElements']['set'](_0x294e05,_0x8d4e3a[_0x8d4e3a['length']-0x1]);const _0x54b466=new Set();for(const [_0x575da0,_0x5a27c3]of _0x506c80)_0x1e10a6['has'](_0x575da0)&&(_0x54b466['add'](_0x5a27c3[0x0]),_0x5a27c3['length']>0x1?_0x506c80['set'](_0x575da0,_0x5a27c3['slice'](0x1)):_0x506c80['delete'](_0x575da0),_0x1e10a6['delete'](_0x575da0));return{'removed':Array['from'](_0x1e10a6),'inserted':Array['from'](_0x506c80['values']())['flat'](),'moved':Array['from'](_0x54b466)};}},V=class extends _0x430bd6{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a873f){super(_0x5a873f),this['_footnoteDefsContainerTracker']=new N(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new N(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2b0240=>_0x2b0240['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new N(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x186f33=>_0x186f33['getAttribute']('footnoteId')});}['init'](){const {editor:_0x6f0a9f}=this,{model:_0x29c154,data:_0x5c0aea}=_0x6f0a9f;_0x29c154['document']['registerPostFixer'](_0x5c27db=>{const _0x31d603=_0x29c154['document']['differ']['getChanges']();let _0x1ab073=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5c27db,_0x31d603)&&(_0x1ab073=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5c27db,_0x31d603)&&(_0x1ab073=!0x0),this['_handleFootnoteReferencesChanges'](_0x5c27db,_0x31d603)&&(_0x1ab073=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5c27db)&&(_0x1ab073=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5c27db)&&(_0x1ab073=!0x0),this['_sortFootnoteDefinitions'](_0x5c27db)&&(_0x1ab073=!0x0),_0x1ab073;}),this['listenTo'](_0x29c154['document'],'change:data',()=>{_0x29c154['enqueueChange']({'isUndoable':!0x1},_0x44cbdd=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x44cbdd);});},{'priority':'low'}),this['listenTo'](_0x5c0aea,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3845c5){return this['_footnotes']['find'](_0x242830=>_0x242830['id']===_0x3845c5)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2e3c58){this['_footnoteFormatter']=_0x2e3c58;}['_updateFootnotesCounters'](_0x589ee2,_0x48f557=0x0){let _0x5868f3=!0x1;for(let _0x2506fe=_0x48f557;_0x2506fe<this['_footnotes']['length'];_0x2506fe++)this['_updateFootnoteRefCounter'](_0x589ee2,_0x2506fe)&&(_0x5868f3=!0x0);return _0x5868f3;}['_insertEmptyFootnotesDefinitionsContainer'](_0x22fd3f,_0x5328b5){const _0x3fdf56=_0x22fd3f['createElement']('footnotesDefinitions',{});return _0x22fd3f['append'](_0x3fdf56,_0x5328b5),this['_footnotesDefinitions']=_0x3fdf56,_0x3fdf56;}['_ensureFootnotesDefinitionsContainerExists'](_0x359944){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0xd2b0e7=this['_footnotes'][0x0]['reference']['root'],_0x4adebb=this['_insertEmptyFootnotesDefinitionsContainer'](_0x359944,_0xd2b0e7);for(const _0x585679 of this['_footnotes'])_0x585679['definition']['parent']||_0x359944['insert'](_0x585679['definition'],_0x4adebb,'end');this['_updateFootnotesCounters'](_0x359944);}['_handleFootnotesDefinitionsObjectChanges'](_0x549616,_0x352bf5){let _0x57cc07=!0x1;const {inserted:_0x5268cd,removed:_0x17a6cb,moved:_0x42b05f}=this['_footnoteDefsContainerTracker']['getChanges'](_0x352bf5);if(_0x42b05f['length']&&(this['_footnotesDefinitions']=_0x42b05f[0x0]),_0x5268cd['length']){if(_0x5268cd['length']>0x1||this['_footnotesDefinitions']&&_0x5268cd['some'](_0x121b93=>_0x121b93!==this['_footnotesDefinitions'])){const _0x2979bf=_0x549616['createElement']('footnotesDefinitions',{}),_0x1f1caa=[];this['_footnotesDefinitions']&&_0x1f1caa['push'](this['_footnotesDefinitions']),_0x1f1caa['push'](..._0x5268cd),_0x549616['insert'](_0x2979bf,_0x1f1caa[0x0],'before');for(const _0x31e752 of _0x1f1caa)_0x549616['move'](_0x549616['createRangeIn'](_0x31e752),_0x549616['createPositionAt'](_0x2979bf,'end')),_0x549616['remove'](_0x31e752);this['_footnotesDefinitions']=_0x2979bf,this['_updateFootnotesCounters'](_0x549616),_0x57cc07=!0x0;}else this['_footnotesDefinitions']=_0x5268cd[0x0];}if(_0x17a6cb['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3efa54 of this['_footnotes'])_0x549616['remove'](_0x3efa54['reference']),_0x57cc07=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x57cc07;}['_handleFootnoteDefinitionsChanges'](_0x2ed592,_0x270e50){let _0x12c338=!0x1;const _0x2ebf6c=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x89f854,moved:_0x2b2ce2}=this['_footnoteDefsTracker']['getChanges'](_0x270e50);for(const _0x433b45 of[..._0x2b2ce2,..._0x89f854]){const _0x54c4e5=_0x433b45['getAttribute']('footnoteId'),_0xf4dc1a=this['getFootnote'](_0x54c4e5);_0xf4dc1a&&(_0xf4dc1a['definition']=_0x433b45),K(_0x2ed592,_0x2ebf6c,_0x433b45)&&(_0x12c338=!0x0);}return _0x12c338;}['_handleFootnoteReferencesChanges'](_0x2dbb7f,_0x150bb2){let _0x19be27=!0x1;const {removed:_0x3ea57c,inserted:_0x41620f,moved:_0x5b8616}=this['_footnoteRefsTracker']['getChanges'](_0x150bb2);for(const _0x35d85a of _0x3ea57c)this['_handleRemoveFootnoteReferenceById'](_0x2dbb7f,_0x35d85a)&&(_0x19be27=!0x0);for(const _0x297c57 of _0x41620f)this['_handleInsertedFootnoteReference'](_0x2dbb7f,_0x297c57)&&(_0x19be27=!0x0);for(const _0x440b9e of _0x5b8616)this['_handleMovedFootnoteReference'](_0x2dbb7f,_0x440b9e)&&(_0x19be27=!0x0);return _0x19be27;}['_handleFootnotesDefinitionsObjectSync'](_0x33e79b){if(!this['_footnotesDefinitions'])return!0x1;let _0x520e41=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x592b94=[];for(const _0x32735a of this['_footnotesDefinitions']['getChildren']()){const _0x408bbe=_0x32735a['getAttribute']('footnoteId');this['getFootnote'](_0x408bbe)||(_0x592b94['unshift'](_0x32735a),_0x520e41=!0x0);}for(const _0x5ce8e5 of _0x592b94)_0x33e79b['remove'](_0x5ce8e5);}const _0x46f197=new Set(),_0x444450=[];for(const _0x61ab24 of this['_footnotesDefinitions']['getChildren']()){const _0x60d4e6=_0x61ab24['getAttribute']('footnoteId');_0x46f197['has'](_0x60d4e6)?(_0x444450['unshift'](_0x61ab24),_0x520e41=!0x0):_0x46f197['add'](_0x60d4e6);}for(const _0x2c932e of _0x444450)_0x33e79b['remove'](_0x2c932e);return this['_footnotesDefinitions']['childCount']||(_0x33e79b['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x520e41=!0x0),_0x520e41;}['_handleInsertedFootnoteReference'](_0x5341b0,_0x2a0eba){if(this['_footnotes']['find'](_0x13099d=>_0x13099d['reference']===_0x2a0eba))return!0x1;let _0x98e1dd=!0x1;const _0x4bd8d8=_0x2a0eba['getAttribute']('footnoteId'),_0x11aa4c=this['_footnotes']['findIndex'](_0x5ce5c0=>_0x5ce5c0['id']===_0x4bd8d8);-0x1!==_0x11aa4c&&(_0x5341b0['remove'](this['_footnotes'][_0x11aa4c]['reference']),this['_footnotes']['splice'](_0x11aa4c,0x1),_0x98e1dd=!0x0);let _0xacfa68=this['_footnotesDefinitions']?function(_0x27e2d8,_0x453532){for(const _0x3d2f62 of _0x27e2d8['getChildren']())if(_0x3d2f62['getAttribute']('footnoteId')===_0x453532)return _0x3d2f62;return null;}(this['_footnotesDefinitions'],_0x4bd8d8):null;_0xacfa68||(_0xacfa68=_0x5341b0['createElement']('footnoteDefinition',{'footnoteId':_0x4bd8d8}),this['_footnotesDefinitions']&&(_0x5341b0['insert'](_0xacfa68,this['_footnotesDefinitions'],'end'),_0x98e1dd=!0x0));const _0x667025={'id':_0x4bd8d8,'reference':_0x2a0eba,'definition':_0xacfa68},_0x1ccf4e=T(this['editor']['model'],this['_footnotes'],_0x2a0eba);this['_footnotes']['splice'](_0x1ccf4e,0x0,_0x667025);let _0x495feb=_0x1ccf4e;return-0x1!==_0x11aa4c&&(_0x495feb=Math['min'](_0x1ccf4e,_0x11aa4c)),this['_updateFootnotesCounters'](_0x5341b0,_0x495feb)&&(_0x98e1dd=!0x0),_0x98e1dd;}['_handleRemoveFootnoteReferenceById'](_0x1248fc,_0x2708ed){const _0x323ed6=this['_footnotes']['findIndex'](_0x2ef83a=>_0x2ef83a['id']===_0x2708ed);if(-0x1===_0x323ed6)return!0x1;let _0x28d829=!0x1;const _0xfb0d94=this['_footnotes'][_0x323ed6];return'$graveyard'!==_0xfb0d94['definition']['root']['rootName']&&(_0x1248fc['remove'](_0xfb0d94['definition']),_0x28d829=!0x0),this['_footnotes']['splice'](_0x323ed6,0x1),this['_updateFootnotesCounters'](_0x1248fc,_0x323ed6)&&(_0x28d829=!0x0),_0x28d829;}['_handleMovedFootnoteReference'](_0x37e12f,_0x26cafd){const _0x4b1b95=_0x26cafd['getAttribute']('footnoteId'),_0x153302=this['_footnotes']['findIndex'](_0xd94227=>_0xd94227['id']===_0x4b1b95),_0x4a64fe=this['_footnotes'][_0x153302];let _0x4d3181=!0x1;_0x4a64fe['reference']=_0x26cafd,this['_footnotes']['splice'](_0x153302,0x1);const _0x356b9d=T(this['editor']['model'],this['_footnotes'],_0x26cafd);return this['_footnotes']['splice'](_0x356b9d,0x0,_0x4a64fe),this['_updateFootnotesCounters'](_0x37e12f,Math['min'](_0x153302,_0x356b9d))&&(_0x4d3181=!0x0),_0x4d3181;}['_updateFootnoteRefCounter'](_0x19fbd3,_0x3bccc6){if(!this['_footnotesDefinitions'])return!0x1;const _0x8d4963=this['_footnotes'][_0x3bccc6];let _0x3c8d7a;return _0x3c8d7a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x8d4963,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3bccc6+0x1}):String(_0x3bccc6+0x1),_0x8d4963['reference']['getAttribute']('footnoteCounter')!=_0x3c8d7a&&(_0x19fbd3['setAttribute']('footnoteCounter',_0x3c8d7a,_0x8d4963['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4a9fc1){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2fdf3d,_0xec82b6){if(_0x2fdf3d['length']!==_0xec82b6['length'])return!0x1;for(let _0x3abe85=0x0;_0x3abe85<_0x2fdf3d['length'];_0x3abe85++)if(_0x2fdf3d[_0x3abe85]!==_0xec82b6[_0x3abe85])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5df2ef=>_0x5df2ef['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5532ff=>_0x5532ff['getAttribute']('footnoteId'))))return!0x1;let _0x56e908=!0x1;for(let _0x50d559=0x0;_0x50d559<this['_footnotes']['length'];_0x50d559++){const _0x173ceb=this['_footnotes'][_0x50d559],_0x294973=_0x4a9fc1['createPositionBefore'](_0x173ceb['definition']),_0x56d077=_0x4a9fc1['createPositionAt'](this['_footnotesDefinitions'],_0x50d559);_0x294973['isEqual'](_0x56d077)||(_0x4a9fc1['move'](_0x4a9fc1['createRangeOn'](_0x173ceb['definition']),_0x56d077),_0x56e908=!0x0);}return _0x56e908;}['_ensureFootnotesReferencesHaveProperOrder'](_0x50ebd1){if(!this['_footnotes']['length'])return!0x1;const {model:_0x383326}=this['editor'];let _0xe05635=!0x1;for(let _0xc64e64=0x0;_0xc64e64<this['_footnotes']['length']-0x1;_0xc64e64++){const _0x36a073=this['_footnotes'][_0xc64e64],_0x5e147b=this['_footnotes'][_0xc64e64+0x1],_0x5a69ea=_0x383326['createPositionBefore'](_0x36a073['reference']),_0x1bb0a2=_0x383326['createPositionBefore'](_0x5e147b['reference']);'after'===_0x5a69ea['compareWith'](_0x1bb0a2)&&(this['_handleMovedFootnoteReference'](_0x50ebd1,_0x36a073['reference']),_0xc64e64=-0x1,_0xe05635=!0x0);}return _0xe05635;}};function K(_0x473e83,_0x3caf6e,_0x5bf2a7){if(_0x5bf2a7['childCount'])return!0x1;const _0x2fb858=_0x3caf6e?'paragraph':'footnoteInlineContent';return _0x473e83['insert'](_0x473e83['createElement'](_0x2fb858),_0x5bf2a7),!0x0;}function T(_0x481a20,_0x499561,_0xcbc181){if(0x0===_0x499561['length'])return 0x0;const _0x3ef005=_0x481a20['createPositionBefore'](_0xcbc181);for(let _0x38e594=0x0;_0x38e594<_0x499561['length'];_0x38e594++){const _0x3c05fb=_0x499561[_0x38e594],_0x304330=_0x481a20['createPositionBefore'](_0x3c05fb['reference']);if('before'===_0x3ef005['compareWith'](_0x304330))return _0x38e594;}const _0x41621d=_0xcbc181['root'];let _0x467a7a=-0x1;for(let _0x59d043=_0x499561['length']-0x1;_0x59d043>=0x0;_0x59d043--)if(_0x499561[_0x59d043]['reference']['root']===_0x41621d){_0x467a7a=_0x59d043;break;}if(-0x1!==_0x467a7a)return _0x467a7a+0x1;const _0x2ae90a=_0x481a20['document']['getRootNames'](),_0x37ce41=_0x2ae90a[_0x2ae90a['indexOf'](_0x41621d['rootName'])+0x1];if(_0x37ce41){for(let _0x30d4c1=0x0;_0x30d4c1<_0x499561['length'];_0x30d4c1++)if(_0x499561[_0x30d4c1]['reference']['root']['rootName']===_0x37ce41)return _0x30d4c1;}return _0x499561['length'];}var j=class extends _0x3904c5{['refresh'](){const _0x31d487=this['editor']['model']['document']['selection'],_0x13e63c=this['_getPositionToInsertFootnote'](_0x31d487);this['isEnabled']=!!_0x13e63c;}['execute'](_0x43e973){const {editor:_0x291874}=this,{model:_0x35c9b8}=_0x291874,{selection:_0x46191b}=_0x35c9b8['document'],_0x2113a6=this['_getPositionToInsertFootnote'](_0x46191b);if(!_0x2113a6)return;const _0xd1e33b=_0x291874['plugins']['get']('FootnotesEditing'),_0x54abba=_0x43e973?.['footnoteId']??_0x44b89c();!function(_0x169a17){return'string'==typeof _0x169a17&&_0x169a17['length']>0x0&&!/\s/['test'](_0x169a17)&&!/^\d/['test'](_0x169a17);}(_0x54abba)?_0x22c551('insert-footnote-command-executed-with-invalid-id'):(_0x35c9b8['change'](_0x28812b=>{const _0x5a5d82=_0x28812b['createElement']('footnoteRef',{'footnoteId':_0x54abba});_0x35c9b8['insertObject'](_0x5a5d82,_0x2113a6,null);}),_0xd1e33b['_moveSelectionToFootnoteDefinition'](_0x54abba));}['_getPositionToInsertFootnote'](_0x204f15){const {model:_0x2685c9}=this['editor'],{schema:_0xc07090}=_0x2685c9,_0x37e241=_0x204f15['getFirstRange']();for(const _0x4e0db5 of _0x37e241['getItems']())if(_0xc07090['isBlock'](_0x4e0db5)||_0xc07090['isObject'](_0x4e0db5))return null;const _0x4b5a90=_0x37e241['end'];return _0xc07090['checkChild'](_0x4b5a90,'footnoteRef')?_0x4b5a90:null;}},U=class extends _0x430bd6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[V];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24c360}=this;_0x24c360['config']['define']('footnotes.multiBlock',!0x0),_0x24c360['commands']['add']('insertFootnote',new j(_0x24c360)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2a3f31){const _0x4bf779='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0xd408d4=0x78fc0,_0x345607=window['Date']['now'](),_0x302b4f=_0x2a3f31['editor'],_0x53ab2c=new window['Promise'](_0x18cd9b=>{_0x302b4f['once']('ready',_0x18cd9b);}),_0x578a24={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x9fd600=_0x302b4f['config']['get']('licenseKey');async function _0x5fb1d6(){let _0x4a4bfa,_0x541cbd=null,_0xe76a96=null;try{return'GPL'==_0x9fd600?'NotAllowed':(_0x4a4bfa=_0x2d1b7(),_0x4a4bfa?(_0x4a4bfa['usageEndpoint']&&(_0xe76a96=_0x2c1687(_0x4a4bfa['usageEndpoint'],_0x4a4bfa['jti'])),await _0x1b6682()?_0x24b840()?_0xd2d49f()?'Expired':_0x34e10d()?('evaluation'==_0x4a4bfa['licenseType']&&(_0x541cbd=_0xb17ae6('EvaluationLimit')),await _0x1ed66e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xd2d49f(){const _0x4223ed=['evaluation','trial']['includes'](_0x4a4bfa['licenseType'])?_0x345607/0x3e8:0xe10*_0xd408d4;return _0x4a4bfa['exp']<_0x4223ed;}function _0x24b840(){const _0x118b4e=_0x4a4bfa['features'];return!!_0x118b4e&&(!!_0x118b4e['includes']('*')||!!_0x118b4e['includes']('FOO'));}function _0x34e10d(){const _0x2f903f=_0x4a4bfa['licensedHosts'];if(!_0x2f903f||0x0==_0x2f903f['length'])return!0x0;const {hostname:_0x367a30}=new URL(window['location']['href']);if(_0x2f903f['includes'](_0x367a30))return!0x0;const _0x39fc5f=_0x367a30['split']('.');return _0x2f903f['filter'](_0x244411=>_0x244411['includes']('*'))['map'](_0x295c43=>_0x295c43['split']('.'))['filter'](_0x2ddccc=>_0x2ddccc['length']<=_0x39fc5f['length'])['map'](_0x3b7ac2=>Array(_0x39fc5f['length']-_0x3b7ac2['length'])['fill']('*'===_0x3b7ac2[0x0]?'*':'')['concat'](_0x3b7ac2))['some'](_0x11efd7=>_0x39fc5f['every']((_0x2f8c7b,_0x22b7c3)=>_0x11efd7[_0x22b7c3]===_0x2f8c7b||'*'===_0x11efd7[_0x22b7c3]));}function _0x1ed66e(){return _0x541cbd&&_0xe76a96?new window['Promise']((_0x27435c,_0x16efb8)=>{_0x541cbd['then'](_0x27435c,_0x16efb8),_0xe76a96['then'](_0x3cbee1=>{'Valid'!=_0x3cbee1&&_0x27435c(_0x3cbee1);},_0x16efb8);}):_0x541cbd||_0xe76a96||'Valid';}}function _0x2c1687(_0x2977bd,_0x5c19b0){return new window['Promise'](_0x50e163=>{if(_0x4cac1d())return _0x50e163('Valid');_0x8de274(),_0x302b4f['decorate']('_sendUsageRequest');let _0x4c2ef0=!0x1;const _0x34378c=_0x44b89c();function _0x46b60b(_0x4ccd7e){return!!_0x4ccd7e&&('object'==typeof _0x4ccd7e||'function'==typeof _0x4ccd7e)&&'function'==typeof _0x4ccd7e['then']&&'function'==typeof _0x4ccd7e['catch'];}function _0x399818(_0x4fdd78){_0x20be9b(_0x4fdd78)['then'](_0x5f348e=>_0x5f348e&&'ok'==_0x5f348e['status']?_0x450d8b(_0x35cb51(_0x34378c+_0x5c19b0))!=_0x5f348e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x55f9e4=>(_0x53ce02(),_0x55f9e4),()=>{const _0x1ab1a1=_0x307420();return null==_0x1ab1a1?(_0x53ce02(),'Valid'):_0x345607-_0x1ab1a1>0x240c8400?'UsageLimit':'Valid';})['then'](_0x50e163)['catch'](()=>{_0x50e163('UsageLimit');});const _0x3ab1f4=0x36ee80;function _0x53ce02(){const _0x3267ef='llct-'+_0x450d8b(_0x35cb51(_0x2977bd)),_0x2af0b1=_0xea18c7(_0x450d8b(window['Math']['ceil'](_0x345607/_0x3ab1f4)));window['localStorage']['setItem'](_0x3267ef,_0x2af0b1);}function _0x307420(){const _0x1ce443='llct-'+_0x450d8b(_0x35cb51(_0x2977bd)),_0x6f2fe8=window['localStorage']['getItem'](_0x1ce443);return _0x6f2fe8?window['parseInt'](_0xea18c7(_0x6f2fe8),0x10)*_0x3ab1f4:null;}function _0x20be9b(_0x2c172c){return new window['Promise']((_0x2ebe97,_0x392b59)=>{_0x2c172c['then'](_0x2ebe97,_0x392b59),window['setTimeout'](_0x392b59,0x1d4c0);});}}_0x302b4f['on']('_sendUsageRequest',(_0x3dceca,_0x3e30e0)=>{if(_0x3e30e0[0x0]!=_0x2977bd)return _0x50e163('UsageLimit');_0x3e30e0[0x1]={..._0x3e30e0[0x1],'requestId':_0x34378c};},{'priority':'high'}),_0x302b4f['on']('_sendUsageRequest',_0x8050ba=>{_0x46b60b(_0x8050ba['return'])&&(_0x4c2ef0=!0x0,_0x399818(_0x8050ba['return']));},{'priority':'low'}),_0x53ab2c['then'](()=>{_0x4c2ef0||_0x50e163('UsageLimit');});});function _0x4cac1d(){return'auto'==_0x302b4f['editing']['view']['_overlayModeHint'];}function _0x8de274(){_0x302b4f['editing']['view']['_overlayModeHint']='auto';}}function _0xb17ae6(_0x4dac5d){const _0x2cea92=[new window['Promise'](_0x4ec965=>setTimeout(_0x4ec965,0x93ecc)),_0x53ab2c['then'](()=>new window['Promise'](_0x16adf9=>{let _0x5947ac=0x0;_0x302b4f['model']['on']('applyOperation',(_0x5cea94,_0x28eb40)=>{_0x28eb40[0x0]['isDocumentOperation']&&_0x5947ac++,0x5e8==_0x5947ac&&(_0x16adf9(),_0x5cea94['off']());});}))];return window['Promise']['race'](_0x2cea92)['then'](()=>_0x4dac5d);}async function _0x393b47(){await _0x53ab2c,_0x302b4f['model']['change']=_0xe5714d,_0x302b4f['model']['enqueueChange']=_0xe5714d,_0x302b4f['enableReadOnlyMode']('model');}function _0x2162dc(_0x4e86dc){const _0x446368=_0x4ff77d();_0x302b4f[_0x446368]='footnotesLicenseKey'+_0x4e86dc,'Valid'!=_0x4e86dc&&_0x393b47();}function _0x4ff77d(){const _0x2cb239=window['String'](window['performance']['now']())['replace']('.','');let _0x5abdc9='u';for(let _0x4b1cda=0x0;_0x4b1cda<_0x2cb239['length'];_0x4b1cda+=0x2){let _0x55838a=window['parseInt'](_0x2cb239['substring'](_0x4b1cda,_0x4b1cda+0x2));_0x55838a>=0x3e&&(_0x55838a-=0x3e),_0x5abdc9+=_0x4bf779[_0x55838a];}return _0x5abdc9;}function _0x2d1b7(){const _0x3c329d=_0x9fd600['split']('.');if(0x3!=_0x3c329d['length'])return null;return _0xdcbffe(_0x3c329d[0x1]);function _0xdcbffe(_0x4157c3){const _0x4c7f3f=_0x5cead4(_0x4157c3);return _0x4c7f3f&&_0x1a8cc4()?_0x4c7f3f:null;function _0x1a8cc4(){const _0x2cb5dc=_0x4c7f3f['jti'],_0xb9aa4b=window['parseInt'](_0x2cb5dc['substring'](_0x2cb5dc['length']-0x8),0x10),_0x3d8bef={..._0x4c7f3f,'jti':_0x2cb5dc['substring'](0x0,_0x2cb5dc['length']-0x8)};return delete _0x3d8bef['vc'],_0x35cb51(_0x3d8bef)==_0xb9aa4b;}}}async function _0x1b6682(){let _0x958a25=!0x0;try{const [_0x2cc4f1,_0x3093e0,_0x4f49c0]=_0x9fd600['split']('.');return _0x984233(_0x2cc4f1),await _0x3f81e9(_0x2cc4f1,_0x3093e0,_0x4f49c0),_0x958a25;}catch{return!0x1;}function _0x984233(_0x34b89a){const _0x4d967a=_0x5cead4(_0x34b89a);_0x4d967a&&'ES256'==_0x4d967a['alg']||(_0x958a25=!0x1);}async function _0x3f81e9(_0x4fd46d,_0x4beb9e,_0x19fc7e){const _0x5804b6=window['Uint8Array']['from'](_0x3ba3f(_0x19fc7e),_0x4e4180=>_0x4e4180['charCodeAt'](0x0)),_0x9b50e7=new window['TextEncoder']()['encode'](_0x4fd46d+'.'+_0x4beb9e),_0x3694fb=window['crypto']['subtle'];if(!_0x3694fb)return;const _0x55a101=await _0x3694fb['importKey']('jwk',_0x578a24,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3694fb['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x55a101,_0x5804b6,_0x9b50e7)||(_0x958a25=!0x1);}}function _0x5cead4(_0x2fd3e7){return _0x2fd3e7['startsWith']('ey')?JSON['parse'](_0x3ba3f(_0x2fd3e7)):null;}function _0x3ba3f(_0x5096b9){return window['atob'](_0x5096b9['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x35cb51(_0x4df537){let _0x8ea798=0x1505;function _0x52b59a(_0x14c28f){for(let _0xdb1a7d=0x0;_0xdb1a7d<_0x14c28f['length'];_0xdb1a7d++){const _0x5a3eec=_0x14c28f['charCodeAt'](_0xdb1a7d);_0x8ea798=(_0x8ea798<<0x5)+_0x8ea798+_0x5a3eec,_0x8ea798&=_0x8ea798;}}function _0x112c98(_0x27bb3e){Array['isArray'](_0x27bb3e)?_0x27bb3e['forEach'](_0x112c98):_0x27bb3e&&'object'==typeof _0x27bb3e?Object['entries'](_0x27bb3e)['sort']()['forEach'](([_0x42aeb1,_0x2f35b3])=>{_0x52b59a(_0x42aeb1),_0x112c98(_0x2f35b3);}):_0x52b59a(window['String'](_0x27bb3e));}return _0x112c98(_0x4df537),_0x8ea798>>>0x0;}function _0x450d8b(_0x15c8d2){return _0x15c8d2['toString'](0x10)['padStart'](0x8,'0');}function _0xea18c7(_0x5e6ca8){return _0x5e6ca8['split']('')['reverse']()['join']('');}function _0xe5714d(){}_0x2162dc(await _0x5fb1d6());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3ba263){const {plugins:_0x1ce81f,editing:_0x56724a,model:_0x1ab906}=this['editor'],_0x290537=_0x1ce81f['get'](V)['getFootnote'](_0x3ba263);return!!_0x290537&&(_0x1ab906['change'](_0x4362b=>{_0x4362b['setSelection'](_0x4362b['createPositionAt'](_0x290537['definition'],'end'));}),_0x56724a['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x55d2f2){const {plugins:_0x19a9d4,editing:_0x18e56b,model:_0xe9869a}=this['editor'],_0xdc9d3c=_0x19a9d4['get'](V)['getFootnote'](_0x55d2f2);return!!_0xdc9d3c&&(_0xe9869a['change'](_0x103bfc=>{_0x103bfc['setSelection'](_0xdc9d3c['reference'],'on');}),_0x18e56b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x45ce9a}=this['editor']['model'],_0x438780=this['editor']['config']['get']('footnotes.multiBlock');_0x45ce9a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x45ce9a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x45ce9a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x438780?_0x45ce9a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x45ce9a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x45ce9a['addChildCheck'](_0x53cd2c=>{for(const _0x49e3d2 of _0x53cd2c)if('footnoteDefinition'===_0x49e3d2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x17cdd5}=this,{conversion:_0x25c03e,editing:_0x38646f}=_0x17cdd5,{t:t}=_0x17cdd5['locale'];_0x25c03e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x297208,{writer:_0x36aabf,consumable:_0x553ee8})=>{const _0x54e9a2=_0x297208['getChild'](0x0);if(!_0x54e9a2||!_0x54e9a2['is']('element','a'))return null;const _0x5b4f41=_0x54e9a2['getAttribute']('href')||'';if(!_0x5b4f41['startsWith']('#'))return null;const _0xa70e53=_0x5b4f41['replace'](/^#/,'');if(!_0xa70e53)return null;_0x553ee8['consume'](_0x54e9a2,{'name':!0x0,'attributes':['href']});for(const {item:_0x47f05f}of _0x38646f['view']['createRangeIn'](_0x54e9a2))_0x47f05f['is']('$textProxy')?_0x553ee8['consume'](_0x47f05f['textNode'],{'name':!0x0}):_0x47f05f['is']('element')&&_0x553ee8['consume'](_0x47f05f,{'name':!0x0});return _0x36aabf['createElement']('footnoteRef',{'footnoteId':_0xa70e53});}}),_0x25c03e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x9d4cbd,{writer:_0x1e60f7})=>X(_0x9d4cbd,_0x1e60f7)}),_0x25c03e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3f3de9,{writer:_0x3204c9})=>{const _0x56941e=_0x3f3de9['getAttribute']('footnoteCounter');return _0x4a0b38(X(_0x3f3de9,_0x3204c9),_0x3204c9,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x56941e)});}});}['_defineDefinitionsConverters'](){const {editor:_0x277b67}=this,{t:t}=_0x277b67['locale'],{conversion:_0x2f5e37}=_0x277b67;_0x2f5e37['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2f5e37['for']('upcast')['add'](_0x440983=>{_0x440983['on']('element:ol',(_0xf6415f,_0x186613,_0xa259f3)=>{const _0x6f014=_0x186613['viewItem'];if(!_0x6f014['hasClass']('footnotes-list')||!_0x186613['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xa259f3['consumable']['consume'](_0x6f014,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5edd39,modelCursor:_0x17e362}=_0xa259f3['convertChildren'](_0x186613['viewItem'],_0x186613['modelCursor']);_0x186613['modelRange']=_0x5edd39,_0x186613['modelCursor']=_0x17e362;}),_0x440983['on']('element:hr',(_0x31353b,_0x492b33,_0x40bad6)=>{const _0x2ff8d3=_0x492b33['viewItem'];_0x2ff8d3['hasClass']('footnotes-divider')&&_0x492b33['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x40bad6['consumable']['consume'](_0x2ff8d3,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2f5e37['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x182b62,{writer:_0x1017f5})=>H(_0x1017f5)}),_0x2f5e37['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5502e1,{writer:_0x1971f9})=>{const _0x2cc717=_0x4a0b38(H(_0x1971f9,{'data-footnotes-list-label':t('Footnotes')}),_0x1971f9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1971f9['setCustomProperty']('footnotesDefinitions',!0x0,_0x2cc717),_0x2cc717;}});}['_defineDefinitionConverters'](){const {editor:_0x4d4a69}=this,{conversion:_0x11b698,locale:_0xb8e282}=_0x4d4a69,_0x5b6cf6=_0x4d4a69['config']['get']('footnotes.multiBlock');_0x11b698['for']('upcast')['add'](_0x358b02=>{_0x358b02['on']('element:li',(_0x2233bd,_0x23f65d,_0x56286f)=>{const _0x1bc4a6=_0x23f65d['viewItem'];if(!_0x1bc4a6['hasClass']('footnote-definition')||!_0x1bc4a6['getAttribute']('id'))return;const _0x56dc26=_0x1bc4a6['parent'];if(!_0x56dc26['is']('element','ol')||!_0x56dc26['hasClass']('footnotes-list'))return;if(!_0x56286f['consumable']['test'](_0x1bc4a6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x51a734=_0x56286f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1bc4a6['getAttribute']('id')});if(!_0x56286f['safeInsert'](_0x51a734,_0x23f65d['modelCursor']))return;_0x56286f['consumable']['consume'](_0x1bc4a6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1a91a4=Array['from'](_0x1bc4a6['getChildren']())['find'](_0x44fd8d=>_0x44fd8d['is']('element')&&_0x44fd8d['hasClass']('footnote-content'));for(const _0x3e2c7e of _0x1bc4a6['getChildren']())_0x3e2c7e['is']('element')&&(_0x56286f['consumable']['consume'](_0x3e2c7e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x56286f['consumable']['consume'](_0x3e2c7e,{'name':!0x0,'classes':'footnote-content'}));if(_0x1a91a4){if(_0x5b6cf6)_0x56286f['convertChildren'](_0x1a91a4,_0x51a734);else{const _0x2a35ed=_0x56286f['writer']['createElement']('footnoteInlineContent');_0x56286f['writer']['insert'](_0x2a35ed,_0x51a734),_0x56286f['convertChildren'](_0x1a91a4,_0x2a35ed);}}_0x56286f['updateConversionResult'](_0x51a734,_0x23f65d);});}),_0x11b698['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x272877,{writer:_0x1848b7})=>z(_0x272877,_0x1848b7,_0xb8e282,{'dataPipeline':!0x0})}),_0x11b698['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x296e73,{writer:_0x548bb0})=>z(_0x296e73,_0x548bb0,_0xb8e282)});}['_defineBogusParagraphConverters'](){const {editor:_0x168bf4}=this,{conversion:_0x4a4cd3}=_0x168bf4;_0x168bf4['config']['get']('footnotes.multiBlock')?(_0x4a4cd3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':$(),'converterPriority':'high'}),_0x4a4cd3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':$({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x168bf4['model']['document'],'change:data',()=>{!function(_0x283a13,_0x1f0ab2){const _0xec352f=_0x283a13['document']['differ'],_0x13d923=new Set();for(const _0x196811 of _0xec352f['getChanges']()){const _0x2149b3='attribute'==_0x196811['type']?_0x196811['range']['start']['parent']:_0x196811['position']['parent'];_0x2149b3['is']('element','footnoteDefinition')&&_0x13d923['add'](_0x2149b3);}for(const _0x1ef6e6 of _0x13d923['values']()){const _0x4f574b=Array['from'](_0x1ef6e6['getChildren']())['filter'](_0x346a11=>B(_0x346a11,_0x1f0ab2['mapper']));for(const _0x18435c of _0x4f574b)_0x1f0ab2['reconvertItem'](_0x18435c);}}(_0x168bf4['model'],_0x168bf4['editing']);})):(_0x4a4cd3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':$()}),_0x4a4cd3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2c779c,{writer:_0x4f5fde})=>{const _0x4e3df6=_0x4f5fde['createContainerElement']('span');return _0x4f5fde['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4e3df6),_0x4e3df6;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4cf251}=this,{editing:_0x591c03,t:t}=_0x4cf251,_0x4c1338=_0x4cf251['model']['document']['selection'];_0x4cf251['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4cf251['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x591c03['view']['document'],'enter',(_0x4fa967,_0x3aebff)=>{const _0x93ef5b=function(_0x5bb32){const _0x15a51d=_0x5bb32['getSelectedElement']();return _0x15a51d?.['is']('element','footnoteRef')?_0x15a51d:null;}(_0x4c1338);if(_0x93ef5b){const _0x21c9da=_0x93ef5b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x21c9da),_0x3aebff['preventDefault'](),_0x4fa967['stop']();}},{'context':_0x5778a2});}['_defineClickHandlers'](){const {editor:_0x5e61c3}=this,{editing:_0x427e57}=_0x5e61c3;_0x5e61c3['editing']['view']['addObserver'](_0x1ca26c),_0x5e61c3['editing']['view']['addObserver'](_0x13a465);let _0x2b50eb=!0x1;this['listenTo'](_0x427e57['view']['document'],'pointerdown',(_0x16ec77,_0x478028)=>{const {target:_0x1f8ef7}=_0x478028,_0x10f72e=_0x427e57['view']['document']['selection'];_0x2b50eb=!!(_0x1f8ef7?.['is']('element','a')&&_0x1f8ef7['parent']?.['is']('element','sup')&&_0x1f8ef7['parent']['hasClass']('footnote'))&&_0x10f72e['getSelectedElement']()===_0x1f8ef7['parent'];},{'priority':'high'}),this['listenTo'](_0x427e57['view']['document'],'click',(_0x92392,_0x3f52fe)=>{const {target:_0x3e7e9c}=_0x3f52fe;if(!_0x3e7e9c?.['is']('element','a'))return;if(_0x3e7e9c['parent']?.['is']('element','sup')&&_0x3e7e9c['parent']['hasClass']('footnote')&&!_0x2b50eb)return void _0x3f52fe['preventDefault']();let _0x3eed89=_0x3e7e9c['getAttribute']('href');if(!_0x3eed89?.['startsWith']('#'))return;_0x3eed89=_0x3eed89['slice'](0x1);let _0x54e69e=!0x1;(_0x3eed89['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3eed89['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3eed89))&&(_0x54e69e=!0x0),_0x54e69e&&(_0x3f52fe['preventDefault'](),_0x92392['stop']());},{'priority':'high','context':'$capture'});}};function $({dataPipeline:_0x47a479}={}){return(_0x5c24a6,{writer:_0x41d965})=>{if(!M(_0x5c24a6))return null;if(!_0x47a479)return _0x41d965['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4c6555=_0x41d965['createContainerElement']('p');return _0x41d965['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4c6555),_0x4c6555;};}function M(_0x2257ac){const {parent:_0x541ead}=_0x2257ac;if(!_0x541ead?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x541ead['childCount'])return!0x1;for(const _0x1b7332 of _0x2257ac['getAttributeKeys']())if(!_0x1b7332['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1b7332)return!0x1;return!0x0;}function B(_0x5d4e20,_0x4d0df0){if(!_0x5d4e20['is']('element','paragraph'))return!0x1;const _0x5dfa19=_0x4d0df0['toViewElement'](_0x5d4e20);return!!_0x5dfa19&&M(_0x5d4e20)!==_0x5dfa19['is']('element','span');}function q(_0x3905a1){return _0x5778a2(_0x3905a1)&&_0x3905a1['is']('containerElement')&&!!_0x3905a1['getCustomProperty']('footnotesDefinitions');}function H(_0x1a030e,_0x5b7061={}){const _0x465881=_0x1a030e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x42a3ba=_0x1a030e['createContainerElement']('ol',{'class':'footnotes-list'},_0x1a030e['createSlot']());return _0x1a030e['createContainerElement']('div',{'class':'footnotes',..._0x5b7061},[_0x465881,_0x42a3ba]);}function X(_0x54749b,_0x3dddcb){const _0x2e51e7=_0x54749b['getAttribute']('footnoteId'),_0x47fe59=_0x54749b['getAttribute']('footnoteCounter'),_0x56715f=_0x3dddcb['createUIElement']('a',{'href':'#'+_0x2e51e7},function(_0x426a73){const _0x139f8e=this['toDomElement'](_0x426a73);return _0x139f8e['textContent']=_0x47fe59,_0x139f8e;}),_0x42c820=_0x3dddcb['createContainerElement']('sup',{'id':'ref-'+_0x2e51e7,'class':'footnote'},[_0x56715f]);return _0x42c820['getFillerOffset']=()=>null,_0x42c820;}function z(_0x5a4a8c,_0x22a890,_0x6b8b0d,{dataPipeline:_0x4329f7}={}){const {t:t}=_0x6b8b0d,_0x539316=_0x5a4a8c['getAttribute']('footnoteId'),_0x261a93=_0x22a890['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x539316},function(_0x4f369e){const _0x2c24c3=this['toDomElement'](_0x4f369e);return _0x2c24c3['innerText']='^',_0x2c24c3;}),_0x443168=_0x4329f7?_0x22a890['createContainerElement']('div',{'class':'footnote-content'}):_0xeadc9(_0x22a890['createEditableElement']('div',{'class':'footnote-content'}),_0x22a890,{'label':t('Footnote\x20content.')});return _0x22a890['insert'](_0x22a890['createPositionAt'](_0x443168,0x0),_0x22a890['createSlot']()),_0x22a890['createContainerElement']('li',{'class':'footnote-definition','id':_0x539316},[_0x261a93,_0x443168]);}var J=class extends _0x430bd6{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[U,_0x1b520b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x456ec3}=this,{plugins:_0x3c5330,model:_0x40689c}=_0x456ec3,_0x4894c5=_0x3c5330['get'](_0x1b520b),_0x22d075=_0x3c5330['get'](V);this['listenTo'](_0x4894c5,'outputTransformation',(_0x53bec1,_0x3148f7)=>{const _0x535a1d=G(_0x40689c['createRangeIn'](_0x3148f7['content']));if(!_0x535a1d['length'])return;const _0x34a4cc=_0x22d075['getFootnotes'](),_0x1c86b5=_0x535a1d['reduce']((_0x399ed7,_0x4b863a)=>{const _0x56583a=_0x34a4cc['find'](_0xc7855c=>_0xc7855c['id']===_0x4b863a);if(_0x56583a){const _0x354783=_0x456ec3['data']['toView'](_0x56583a['definition'],{'isClipboardPipeline':!0x0}),_0x4e1211=_0x456ec3['data']['htmlProcessor']['toData'](_0x354783);_0x399ed7[_0x56583a['id']]=_0x4e1211;}return _0x399ed7;},Object['create'](null));_0x3148f7['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x1c86b5));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0xa69585}=this,{model:_0x30b95d,plugins:_0x4aefc2}=_0xa69585,{view:_0x1fa1ac}=_0xa69585['editing'],_0x1e5553=_0x4aefc2['get'](_0x1b520b),_0x2e6dc4=_0x4aefc2['get'](V),_0x520d71=_0xa69585['config']['get']('footnotes.multiBlock');let _0x330686=null;this['listenTo'](_0x1fa1ac['document'],'clipboardInput',(_0x5cbca4,_0x417c32)=>{const _0x1c05cb=_0x417c32['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x330686=_0x1c05cb?JSON['parse'](_0x1c05cb):null;}),this['listenTo'](_0x1e5553,'contentInsertion',(_0x14c1eb,_0x2aa6be)=>{const _0x28cf60=_0x2aa6be['sourceEditorId']===this['editor']['id'];_0x28cf60&&'drop'===_0x2aa6be['method']||_0x30b95d['change'](_0x4b72ce=>{let _0x2add92=_0x2e6dc4['getFootnotesDefinitionsObjectElement']();const _0x3e85be=!!_0x2add92&&Array['from'](_0x30b95d['document']['selection']['getSelectedBlocks']())['includes'](_0x2add92);if(!_0x330686&&function(_0xbf2879){for(const {item:_0x4a5cdf}of _0xbf2879)if(_0x4a5cdf['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x30b95d['createRangeIn'](_0x2aa6be['content']))&&(_0x330686=function(_0x4cf51f,_0x4cdaff){const _0x30ad49=Q(_0x4cf51f,_0x4cdaff);if(!_0x30ad49)return null;const _0xae360d=Object['create'](null);for(const _0x16b05c of _0x30ad49['getChildren']())_0x16b05c['is']('element','footnoteDefinition')&&_0x16b05c['hasAttribute']('footnoteId')&&(_0xae360d[_0x16b05c['getAttribute']('footnoteId')]=_0x4cf51f['cloneElement'](_0x16b05c,!0x0));return Object['keys'](_0xae360d)['length']?_0xae360d:null;}(_0x4b72ce,_0x2aa6be['content'])),(_0x2add92&&!_0x3e85be||!_0x2add92&&!_0x330686)&&function(_0x279874,_0x9455be){const _0x551dea=[];for(const {item:_0x39d95f}of _0x279874['createRangeIn'](_0x9455be))_0x39d95f['is']('element','footnotesDefinitions')&&_0x551dea['push'](_0x39d95f);for(const _0x74bf69 of _0x551dea)_0x279874['remove'](_0x74bf69);}(_0x4b72ce,_0x2aa6be['content']),!_0x330686)return;const {selection:_0x58cba5}=_0x30b95d['document'],_0x21a563=_0x58cba5['getFirstRange']()['root'];_0x2add92&&!_0x3e85be||(_0x2add92=Q(_0x4b72ce,_0x2aa6be['content']),_0x2add92||=_0x2e6dc4['_insertEmptyFootnotesDefinitionsContainer'](_0x4b72ce,_0x21a563));const _0x2f8f35=Array['from'](_0x58cba5['getRanges']())['flatMap'](G),_0x5176d9=function(_0x4ae01e,_0x259f6a,_0x543869){const _0x2ebf0d=Object['create'](null);for(const {item:_0x3787a0}of _0x4ae01e['createRangeIn'](_0x259f6a))if(_0x3787a0['is']('element','footnoteRef')){const _0x11b879=_0x3787a0['getAttribute']('footnoteId');if(!_0x543869(_0x11b879))continue;_0x2ebf0d[_0x11b879]||(_0x2ebf0d[_0x11b879]=_0x44b89c()),_0x4ae01e['setAttribute']('footnoteId',_0x2ebf0d[_0x11b879],_0x3787a0);}return _0x2ebf0d;}(_0x4b72ce,_0x2aa6be['content'],_0xab6006=>!_0x28cf60||!!_0x2e6dc4['getFootnote'](_0xab6006)&&!_0x2f8f35['includes'](_0xab6006));for(const [_0x591cce,_0x218972]of Object['entries'](_0x330686)){const _0x345974=_0x5176d9[_0x591cce]||_0x591cce;let _0x488990;if('string'!=typeof _0x218972)_0x488990=_0x218972,_0x345974!==_0x591cce&&_0x4b72ce['setAttribute']('footnoteId',_0x345974,_0x488990);else{_0x488990=_0x4b72ce['createElement']('footnoteDefinition',{'footnoteId':_0x345974});const _0x491553=_0xa69585['data']['htmlProcessor']['toView'](_0x218972);let _0x5618bf;if(_0x520d71)_0x5618bf=_0xa69585['data']['toModel'](_0x491553,_0x488990);else{_0x5618bf=_0x4b72ce['createElement']('footnoteInlineContent');const _0x3f771e=_0xa69585['data']['toModel'](_0x491553,_0x5618bf);_0x4b72ce['insert'](_0x3f771e,_0x5618bf);}_0x4b72ce['append'](_0x5618bf,_0x488990);}_0x4b72ce['insert'](_0x488990,_0x2add92,'end');}_0x330686=null;});});}};function Q(_0x4dec6e,_0x528191){for(const {item:_0x5c2711}of _0x4dec6e['createRangeIn'](_0x528191))if(_0x5c2711['is']('element','footnotesDefinitions'))return _0x5c2711;return null;}function G(_0x1b2860){const _0x3a8bc1=new Set();for(const {item:_0x26583e}of _0x1b2860)_0x26583e['is']('element','footnoteRef')&&_0x3a8bc1['add'](_0x26583e['getAttribute']('footnoteId'));return Array['from'](_0x3a8bc1);}var W=class extends _0x430bd6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15b174}=this,{componentFactory:_0x419b58}=_0x15b174['ui'];_0x419b58['add']('insertFootnote',Y(_0x15b174,_0x357f47)),_0x419b58['add']('menuBar:insertFootnote',Y(_0x15b174,_0x2e0374)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a71c9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x520cb5;for(const _0x31a6ce in _0x5a71c9){const _0x5a038a=_0x31a6ce,_0x340cba=_0x5a71c9[_0x5a038a];if('footnotesLicenseKeyValid'==_0x340cba||'footnotesLicenseKeyInvalid'==_0x340cba||'footnotesLicenseKeyExpired'==_0x340cba||'footnotesLicenseKeyDomainLimit'==_0x340cba||'footnotesLicenseKeyNotAllowed'==_0x340cba||'footnotesLicenseKeyEvaluationLimit'==_0x340cba||'footnotesLicenseKeyUsageLimit'==_0x340cba){delete _0x5a71c9[_0x5a038a],_0x520cb5=_0x340cba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x520cb5&&_0x5a71c9['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x520cb5&&_0x5a71c9['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x520cb5&&_0x5a71c9['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x520cb5&&_0x5a71c9['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x520cb5&&_0x5a71c9['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x520cb5&&_0x5a71c9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Y(_0x431e47,_0x143c14){const _0x345307=_0x431e47['commands']['get']('insertFootnote');return _0x47cac0=>{const {t:t}=_0x47cac0,_0x50ae54=new _0x143c14(_0x47cac0),_0x5ea237=_0x50ae54 instanceof _0x2e0374;return _0x50ae54['bind']('isEnabled')['to'](_0x345307,'isEnabled'),_0x50ae54['set']({'label':t(_0x5ea237?'Footnote':'Insert\x20footnote'),'icon':_0x24d0e5,'tooltip':!0x0}),_0x50ae54['on']('execute',()=>{_0x345307['execute'](),_0x431e47['editing']['view']['focus']();}),_0x50ae54;};}var Z=class extends _0x430bd6{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[U,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];var nt=class extends _0x3904c5{['refresh'](){const {editor:_0xc0370e}=this,_0x270918=_0xc0370e['plugins']['get'](V)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x270918,this['value']=_0x270918?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2dcf93}){const {editor:_0x19fe5b}=this,_0x4881df=_0x19fe5b['plugins']['get'](V),_0xd5f898=_0x4881df['getFootnotesDefinitionsObjectElement']();_0xd5f898&&ot['includes'](_0x2dcf93)&&_0x19fe5b['model']['change'](_0x47b508=>{_0x47b508['setAttribute']('footnotesListStyle',_0x2dcf93,_0xd5f898),_0x4881df['_updateFootnotesCounters'](_0x47b508);});}},it=class extends _0x3904c5{['refresh'](){const {editor:_0xa7084e}=this,_0x5c2a4b=_0xa7084e['plugins']['get'](V)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5c2a4b,this['value']=_0x5c2a4b?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5d2433}){const {editor:_0x18f466}=this,_0x3dc0c8=_0x18f466['plugins']['get'](V),_0x593eb5=_0x3dc0c8['getFootnotesDefinitionsObjectElement']();_0x593eb5&&Number['isInteger'](_0x5d2433)&&_0x18f466['model']['change'](_0x473973=>{_0x473973['setAttribute']('footnotesListStart',_0x5d2433,_0x593eb5),_0x3dc0c8['_updateFootnotesCounters'](_0x473973);});}};function st({style:_0x500399,digits:_0x4e7b38,value:_0x5618e9}){const _0x4019c3=Math['floor'](_0x5618e9),_0x1bae14=function(_0x2daa64){switch(_0x2daa64){case'lower-alpha':case'lower-latin':case'upper-alpha':case'upper-latin':return{'min':0x1,'max':0x1/0x0};case'lower-roman':case'upper-roman':return{'min':0x1,'max':0xf9f};default:return{'min':-0x1/0x0,'max':0x1/0x0};}}(_0x500399);switch((_0x4019c3>_0x1bae14['max']||_0x4019c3<_0x1bae14['min'])&&(_0x500399='decimal'),_0x500399){case'decimal-leading-zero':return function(_0x53b15c,_0x385fae){return String(_0x53b15c)['padStart'](_0x385fae,'0');}(_0x4019c3,Math['max'](0x2,_0x4e7b38));case'lower-alpha':case'lower-latin':return rt(_0x4019c3,!0x1);case'upper-alpha':case'upper-latin':return rt(_0x4019c3,!0x0);case'lower-roman':return at(_0x4019c3,!0x1);case'upper-roman':return at(_0x4019c3,!0x0);case'arabic-indic':return String(_0x4019c3)['replace'](/\d/g,_0x28182d=>ft[Number(_0x28182d)]);default:return String(_0x4019c3);}}function rt(_0x4c11cb,_0x34fd1a){let _0x564b7c='',_0x2dbda5=_0x4c11cb;for(;_0x2dbda5>0x0;){const _0x43ea05=(_0x2dbda5-0x1)%0x1a;_0x564b7c=String['fromCharCode'](0x61+_0x43ea05)+_0x564b7c,_0x2dbda5=Math['floor']((_0x2dbda5-0x1)/0x1a);}return _0x34fd1a?_0x564b7c['toUpperCase']():_0x564b7c;}const lt=[{'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 at(_0x39dd0b,_0x192921){let _0x2629cf='',_0x54b914=_0x39dd0b;for(const {value:_0xa505b3,numeral:_0x153041}of lt)for(;_0x54b914>=_0xa505b3;)_0x2629cf+=_0x153041,_0x54b914-=_0xa505b3;return _0x192921?_0x2629cf:_0x2629cf['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];var ct=class extends _0x430bd6{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[U,V];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x45972a}=this;_0x45972a['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x45972a['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x45972a['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x45972a['commands']['add']('footnotesStyle',new nt(_0x45972a)),_0x45972a['commands']['add']('footnotesStart',new it(_0x45972a)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x461ae7}=this,{schema:_0x20b544}=_0x461ae7['model'];_0x20b544['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4a9679}=this,{conversion:_0x198ade,model:_0x5ab8c7}=_0x4a9679,{schema:_0x245525}=_0x5ab8c7;_0x198ade['for']('upcast')['add'](_0x134dad=>{_0x134dad['on']('element:ol',(_0x43864b,_0x3703cc,_0x1d89d2)=>{const _0x50e43d=_0x3703cc['viewItem'],_0x127328=_0x3703cc['modelCursor']?.['parent'];_0x50e43d['hasClass']('footnotes-list')&&_0x127328?.['is']('element','footnotesDefinitions')&&(function(_0x1fc5f5,_0x21a09d,_0x2ac7dc,_0x5673ba){if(!_0x5673ba['checkAttribute'](_0x21a09d,'footnotesListStart'))return;let _0x4e2257=0x1;const _0x5c932e=_0x2ac7dc['consumable']['consume'](_0x1fc5f5,{'attributes':'start'});if(_0x5c932e){const _0x5d1dc3=Number['parseInt'](_0x1fc5f5['getAttribute']('start'),0xa);Number['isNaN'](_0x5d1dc3)||(_0x4e2257=_0x5d1dc3);}!_0x5c932e&&_0x21a09d['hasAttribute']('footnotesListStart')||_0x2ac7dc['writer']['setAttribute']('footnotesListStart',_0x4e2257,_0x21a09d);}(_0x50e43d,_0x127328,_0x1d89d2,_0x245525),function(_0xfe3039,_0x28ea73,_0x539918,_0x21894c){if(!_0x21894c['checkAttribute'](_0x28ea73,'footnotesListStyle'))return;let _0xcb7be2='decimal',_0x78788e=!0x1;if(_0x539918['consumable']['consume'](_0xfe3039,{'attributes':'type'})){const _0x3b5c87={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0xfe3039['getAttribute']('type')];_0x3b5c87&&(_0xcb7be2=_0x3b5c87),_0x78788e=!0x0;}if(_0x539918['consumable']['consume'](_0xfe3039,{'styles':'list-style-type'})){const _0x3fe5e5=ut(_0xfe3039['getStyle']('list-style-type'));_0x3fe5e5&&(_0xcb7be2=_0x3fe5e5),_0x78788e=!0x0;}!_0x78788e&&_0x28ea73['hasAttribute']('footnotesListStyle')||_0x539918['writer']['setAttribute']('footnotesListStyle',_0xcb7be2,_0x28ea73);}(_0x50e43d,_0x127328,_0x1d89d2,_0x245525));});}),_0x198ade['for']('downcast')['add'](_0x118332=>{_0x118332['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x2b9b5d,_0x5116e4,_0x8a9882)=>{if(!_0x8a9882['consumable']['consume'](_0x5116e4['item'],_0x2b9b5d['name']))return;const _0x41b6e6=dt(_0x5116e4['item'],_0x8a9882['mapper']),{attributeNewValue:_0x2f5fe0}=_0x5116e4;null==_0x2f5fe0||0x1===_0x2f5fe0?_0x8a9882['writer']['removeAttribute']('start',_0x41b6e6):_0x8a9882['writer']['setAttribute']('start',String(_0x2f5fe0),_0x41b6e6);}),_0x118332['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x549500,_0x4c6d31,_0x1074cc)=>{if(!_0x1074cc['consumable']['consume'](_0x4c6d31['item'],_0x549500['name']))return;const _0x1bbae6=dt(_0x4c6d31['item'],_0x1074cc['mapper']),{attributeNewValue:_0x368fb5}=_0x4c6d31;_0x368fb5&&'decimal'!==_0x368fb5?_0x1074cc['writer']['setStyle']('list-style-type',_0x368fb5,_0x1bbae6):_0x1074cc['writer']['removeStyle']('list-style-type',_0x1bbae6);});});}['_definePostfixer'](){const {editor:_0x7a5e51}=this,{model:_0x11af5a}=_0x7a5e51,_0x4681bc=_0x7a5e51['plugins']['get'](V),_0x47e8a1=this['_getDefaultListStyle'](),_0x1146bb=this['_getDefaultStartIndex']();_0x11af5a['document']['registerPostFixer'](_0x5413d5=>{const _0x1c2f62=_0x11af5a['document']['differ']['getChanges']();let _0x166fa4=!0x1;for(const _0x32202d of _0x1c2f62){if('insert'!==_0x32202d['type']||'$text'===_0x32202d['name'])continue;const _0x4ed5c3=_0x11af5a['createRangeOn'](_0x32202d['position']['nodeAfter']);for(const _0x15f398 of _0x4ed5c3['getItems']())_0x15f398['is']('element','footnotesDefinitions')&&(!_0x15f398['hasAttribute']('footnotesListStart')&&_0x11af5a['schema']['checkAttribute'](_0x15f398,'footnotesListStart')&&(_0x5413d5['setAttribute']('footnotesListStart',_0x1146bb,_0x15f398),_0x166fa4=!0x0),!_0x15f398['hasAttribute']('footnotesListStyle')&&_0x11af5a['schema']['checkAttribute'](_0x15f398,'footnotesListStyle')&&(_0x5413d5['setAttribute']('footnotesListStyle',_0x47e8a1,_0x15f398),_0x166fa4=!0x0));}return _0x166fa4&&_0x4681bc['_updateFootnotesCounters'](_0x5413d5),_0x166fa4;});}['_defineFormatter'](){const {editor:_0x45ff96}=this;_0x45ff96['plugins']['get'](V)['setFootnoteFormatter'](_0x339683=>this['_formatFootnoteListValue'](_0x339683));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4793eb,value:_0x369026,digits:_0x5920a9}){const _0x344df1=_0x4793eb['getAttribute']('footnotesListStyle');return st({'value':_0x369026+(_0x4793eb['getAttribute']('footnotesListStart')??0x1)-0x1,'style':_0x344df1,'digits':_0x5920a9});}};function ut(_0x332db0){if('string'==typeof _0x332db0){const _0x44ec76=et[_0x332db0];if(_0x44ec76)return _0x44ec76;if(ot['includes'](_0x332db0))return _0x332db0;}return null;}function dt(_0x401fb9,_0x1816a1){const _0x46cea8=_0x1816a1['toViewElement'](_0x401fb9);return Array['from'](_0x46cea8['getChildren']())['find'](_0x60e3f6=>_0x60e3f6['is']('element','ol')&&_0x60e3f6['hasClass']('footnotes-list'));}var ht=class extends _0x20d9b3{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x2beea5();['keystrokes']=new _0x5e8285();['focusables']=new _0x4fdb0a();['focusCycler'];constructor(_0x45938a,{styleButtonViews:_0x5925ee,styleGridAriaLabel:_0x11dc39}){super(_0x45938a),(this['focusCycler']=new _0x1e9d99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5925ee,_0x11dc39),[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 _0x3d0441 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3d0441['element']);_0x4595d6({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x368376['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 _0x4e4e8f=_0x5f2a8d=>_0x5f2a8d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4e4e8f),this['keystrokes']['set']('arrowleft',_0x4e4e8f),this['keystrokes']['set']('arrowup',_0x4e4e8f),this['keystrokes']['set']('arrowdown',_0x4e4e8f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a5eb7,_0x4f91f7){const _0x380a28=new _0x20d9b3(this['locale']);return _0x380a28['children']=_0x380a28['createCollection'](),_0x380a28['children']['addMany'](_0x5a5eb7),_0x380a28['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4f91f7,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x380a28['children']}),_0x380a28['children']['delegate']('execute')['to'](this),_0x380a28['focus']=function(){for(const _0x4902d7 of this['children'])if(_0x4902d7 instanceof _0x357f47&&_0x4902d7['isOn'])return void _0x4902d7['focus']();this['children']['first']['focus']();},_0x380a28['focusTracker']=new _0x2beea5(),_0x380a28['keystrokes']=new _0x5e8285(),_0x380a28['render'](),_0x380a28['keystrokes']['listenTo'](_0x380a28['element']),this['children']['add'](_0x380a28),_0x380a28;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x15929f=this['_createStartIndexPropertyView'](),_0x81abb1=[_0x15929f],_0x20cd69=new _0x5498af(this['locale'],_0x81abb1);return _0x20cd69['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x20cd69['buttonView']['bind']('isEnabled')['toMany'](_0x81abb1,'isEnabled',(..._0x4d39e7)=>_0x4d39e7['some'](_0x4f55ff=>_0x4f55ff)),_0x20cd69['buttonView']['on']('change:isEnabled',(_0x95c798,_0x1d5808,_0x19b1b5)=>{_0x19b1b5||(_0x20cd69['isCollapsed']=!0x0);}),this['children']['add'](_0x20cd69),[_0x15929f,_0x20cd69];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x21ef20=new _0x5bd45d(this['locale'],_0x3f6dae);return _0x21ef20['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x21ef20['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x21ef20['fieldView']['on']('input',()=>{const _0x23225d=_0x21ef20['fieldView']['element'],_0x5d6186=_0x23225d['valueAsNumber'];Number['isNaN'](_0x5d6186)?_0x21ef20['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x23225d['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5d6186}):_0x21ef20['errorText']=t(_0x5d6186<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x21ef20;}},mt=class extends _0x430bd6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x10011f,_0x4f08e4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x172058}=this,{componentFactory:_0x53ec22}=_0x172058['ui'];_0x172058['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x53ec22['add']('footnotesStyle',function(_0x1f948c){return _0x53618d=>{const {t:t}=_0x53618d,_0x28eac5=_0x1f948c['commands']['get']('footnotesStyle'),_0x57d698=_0x13d5d1(_0x53618d),{buttonView:_0xce78ec}=_0x57d698;return _0x57d698['class']='ck-footnotes-styles-dropdown',_0x57d698['bind']('isEnabled')['to'](_0x28eac5,'isEnabled'),_0xce78ec['set']({'label':t('Footnotes\x20style'),'icon':_0x24d0e5,'tooltip':!0x0}),_0x57d698['once']('change:isOpen',()=>{const _0x72035c=function({editor:_0xf96db4,dropdownView:_0x2e4804}){const {t:t}=_0xf96db4['locale'],_0x8f1042=t('Footnotes\x20definitions\x20styles'),_0x34edb2=function(_0x1a58d4){const {t:t}=_0x1a58d4['locale'],_0x21e02b=_0x1a58d4['config']['get']('footnotes.footnotesProperties.listStyles'),_0x25291d=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x51f85d},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x372850},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x12924e},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x57af67},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x1f64a5},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x252079},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0xcf4e7a}];return _0x21e02b['map'](_0x127301=>{const _0x4fee3=ut(_0x127301);return function(_0x38d8c9,_0x1c8428){const {locale:_0x4b0e3}=_0x38d8c9,{label:_0x57efb3,icon:_0x154653,tooltip:_0x2ab67c,style:_0x2a009a}=_0x1c8428,_0x1f16b2=_0x38d8c9['commands']['get']('footnotesStyle'),_0x116613=new _0x357f47(_0x4b0e3);return _0x116613['set']({'label':_0x57efb3,'icon':_0x154653,'tooltip':_0x2ab67c}),_0x116613['bind']('isOn')['to'](_0x1f16b2,'value',_0x17df27=>_0x17df27===_0x2a009a),_0x116613['bind']('isEnabled')['to'](_0x1f16b2,'isEnabled'),_0x116613['on']('execute',()=>{_0x38d8c9['execute']('footnotesStyle',{'value':_0x2a009a}),_0x38d8c9['editing']['view']['focus']();}),_0x116613;}(_0x1a58d4,_0x25291d['find'](_0x5dfaec=>_0x5dfaec['style']===_0x4fee3));});}(_0xf96db4),_0x6563aa=new ht(_0xf96db4['locale'],{'styleGridAriaLabel':_0x8f1042,'styleButtonViews':_0x34edb2}),_0x44c28f=_0xf96db4['commands']['get']('footnotesStart');return _0x6563aa['startIndexFieldView']['bind']('isEnabled')['to'](_0x44c28f),_0x6563aa['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x44c28f),_0x6563aa['on']('footnotesListStart',(_0x26a531,_0x479baf)=>{_0xf96db4['execute']('footnotesStart',{'value':_0x479baf['startIndex']});}),_0x6563aa['delegate']('execute')['to'](_0x2e4804),_0x6563aa;}({'editor':_0x1f948c,'dropdownView':_0x57d698});_0x57d698['panelView']['children']['add'](_0x72035c);}),_0x57d698;};}(_0x172058));}['afterInit'](){const {editor:_0x3747ca}=this,{t:t}=_0x3747ca['locale'],_0x1272bd=_0x3747ca['plugins']['get'](_0x4f08e4),{defaultPositions:_0x2fd25e}=_0x534280;_0x1272bd['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3747ca['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x454355=>{let _0x3ab26d=_0x454355['getFirstPosition']()?.['parent'];return _0x3ab26d?.['is']('$text')&&(_0x3ab26d=_0x3ab26d['parent']),_0x3ab26d?.['is']('element')?_0x3ab26d['findAncestor'](q):null;},'positions':[_0x2fd25e['southArrowNorth'],_0x2fd25e['southArrowNorthMiddleWest'],_0x2fd25e['southArrowNorthMiddleEast'],_0x2fd25e['southArrowNorthWest'],_0x2fd25e['southArrowNorthEast'],_0x2fd25e['northArrowSouth'],_0x2fd25e['northArrowSouthMiddleWest'],_0x2fd25e['northArrowSouthMiddleEast'],_0x2fd25e['northArrowSouthWest'],_0x2fd25e['northArrowSouthEast'],_0x2fd25e['viewportStickyNorth']]});}},pt=class extends _0x430bd6{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[ct,mt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Z as Footnotes,J as FootnotesClipboard,U as FootnotesEditing,pt as FootnotesProperties,ct as FootnotesPropertiesEditing,mt as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,V as FootnotesTracker,W as FootnotesUI,j as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "48.3.1-alpha.0",
3
+ "version": "48.3.1-alpha.1",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,14 +32,14 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-clipboard": "48.3.1-alpha.0",
36
- "@ckeditor/ckeditor5-core": "48.3.1-alpha.0",
37
- "@ckeditor/ckeditor5-engine": "48.3.1-alpha.0",
38
- "@ckeditor/ckeditor5-enter": "48.3.1-alpha.0",
39
- "@ckeditor/ckeditor5-icons": "48.3.1-alpha.0",
40
- "@ckeditor/ckeditor5-ui": "48.3.1-alpha.0",
41
- "@ckeditor/ckeditor5-utils": "48.3.1-alpha.0",
42
- "@ckeditor/ckeditor5-widget": "48.3.1-alpha.0"
35
+ "@ckeditor/ckeditor5-clipboard": "48.3.1-alpha.1",
36
+ "@ckeditor/ckeditor5-core": "48.3.1-alpha.1",
37
+ "@ckeditor/ckeditor5-engine": "48.3.1-alpha.1",
38
+ "@ckeditor/ckeditor5-enter": "48.3.1-alpha.1",
39
+ "@ckeditor/ckeditor5-icons": "48.3.1-alpha.1",
40
+ "@ckeditor/ckeditor5-ui": "48.3.1-alpha.1",
41
+ "@ckeditor/ckeditor5-utils": "48.3.1-alpha.1",
42
+ "@ckeditor/ckeditor5-widget": "48.3.1-alpha.1"
43
43
  },
44
44
  "files": [
45
45
  "dist",