@ckeditor/ckeditor5-footnotes 48.1.0-alpha.4 → 48.1.0-alpha.5

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{Plugin as _0x1867df,Command as _0x2ed227}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x42f1dc,isWidget as _0x3706b2,toWidgetEditable as _0x450337,WidgetToolbarRepository as _0x1835de}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0xbfac14,logWarning as _0x5e5a97,FocusTracker as _0x54df5d,KeystrokeHandler as _0x51ce06,global as _0x4a565c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x4a45b8,ClickObserver as _0x338512}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1d6a4e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x37f44d,ButtonView as _0xb842d2,View as _0x35c2e6,ViewCollection as _0x4ac9cc,FocusCycler as _0x5dbf80,addKeyboardHandlingForGrid as _0x41c2d7,CollapsibleView as _0x378bcf,LabeledFieldView as _0x4973a3,createLabeledInputNumber as _0x1055d2,ContextualBalloon as _0x4e01c0,BalloonPanelView as _0x2aebde,createDropdown as _0x769365}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x402a18,IconListStyleDecimal as _0x398909,IconListStyleDecimalLeadingZero as _0x3014f7,IconListStyleLowerRoman as _0x261111,IconListStyleUpperRoman as _0x497bca,IconListStyleLowerLatin as _0x584756,IconListStyleUpperLatin as _0x40a812,IconListStyleArabicIndic as _0x3301f3}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x225203,_0x58f436){this['_model']=_0x225203,this['_elementName']=_0x58f436['elementName'],this['_getElementKey']=_0x58f436['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x44e538){const _0x319c81=new Set(),_0x5af505=new Map();for(const _0x281e06 of _0x44e538){if('insert'===_0x281e06['type']&&'$text'!==_0x281e06['name']&&_0x281e06['position']['nodeAfter']){const _0x1d578f=this['_model']['createRangeOn'](_0x281e06['position']['nodeAfter']);for(const _0x2c8d40 of _0x1d578f['getItems']()){if(!_0x2c8d40['is']('element',this['_elementName']))continue;const _0x404947=this['_getElementKey'](_0x2c8d40);_0x5af505['has'](_0x404947)||_0x5af505['set'](_0x404947,[]),_0x5af505['get'](_0x404947)['push'](_0x2c8d40);}}if('remove'===_0x281e06['type']&&_0x281e06['name']===this['_elementName']){const _0x433c8d=this['_getElementKey']({'getAttribute':_0x368b15=>_0x281e06['attributes']['get'](_0x368b15)});_0x319c81['add'](_0x433c8d);}}for(const [_0x40227e,_0x11b2b8]of this['_trackedElements'])'$graveyard'===_0x11b2b8['root']['rootName']&&_0x319c81['add'](_0x40227e);for(const _0x3a3d0b of _0x319c81)this['_trackedElements']['delete'](_0x3a3d0b);for(const [_0x40745f,_0x55aecd]of _0x5af505)this['_trackedElements']['set'](_0x40745f,_0x55aecd[_0x55aecd['length']-0x1]);const _0x5f201d=new Set();for(const [_0x1dec94,_0x2120e3]of _0x5af505)_0x319c81['has'](_0x1dec94)&&(_0x5f201d['add'](_0x2120e3[0x0]),_0x2120e3['length']>0x1?_0x5af505['set'](_0x1dec94,_0x2120e3['slice'](0x1)):_0x5af505['delete'](_0x1dec94),_0x319c81['delete'](_0x1dec94));return{'removed':Array['from'](_0x319c81),'inserted':Array['from'](_0x5af505['values']())['flat'](),'moved':Array['from'](_0x5f201d)};}}class K extends _0x1867df{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cb0e6){super(_0x3cb0e6),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x35e4c3=>_0x35e4c3['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x380e67=>_0x380e67['getAttribute']('footnoteId')});}['init'](){const {editor:_0x21ac21}=this,{model:_0x52c0aa,data:_0x8bf803}=_0x21ac21;_0x52c0aa['document']['registerPostFixer'](_0x123d24=>{const _0xb86c4e=_0x52c0aa['document']['differ']['getChanges']();let _0x2b52b5=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x123d24,_0xb86c4e)&&(_0x2b52b5=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x123d24,_0xb86c4e)&&(_0x2b52b5=!0x0),this['_handleFootnoteReferencesChanges'](_0x123d24,_0xb86c4e)&&(_0x2b52b5=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x123d24)&&(_0x2b52b5=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x123d24)&&(_0x2b52b5=!0x0),this['_sortFootnoteDefinitions'](_0x123d24)&&(_0x2b52b5=!0x0),_0x2b52b5;}),this['listenTo'](_0x52c0aa['document'],'change:data',()=>{_0x52c0aa['enqueueChange']({'isUndoable':!0x1},_0x58ab1d=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x58ab1d);});},{'priority':'low'}),this['listenTo'](_0x8bf803,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x329d4f){return this['_footnotes']['find'](_0x199a5c=>_0x199a5c['id']===_0x329d4f)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x36d548){this['_footnoteFormatter']=_0x36d548;}['_updateFootnotesCounters'](_0x4f3ccc,_0x2900bc=0x0){let _0x104865=!0x1;for(let _0x3f0a66=_0x2900bc;_0x3f0a66<this['_footnotes']['length'];_0x3f0a66++)this['_updateFootnoteRefCounter'](_0x4f3ccc,_0x3f0a66)&&(_0x104865=!0x0);return _0x104865;}['_insertEmptyFootnotesDefinitionsContainer'](_0xbc0974,_0x540543){const _0x356621=_0xbc0974['createElement']('footnotesDefinitions',{});return _0xbc0974['append'](_0x356621,_0x540543),this['_footnotesDefinitions']=_0x356621,_0x356621;}['_ensureFootnotesDefinitionsContainerExists'](_0x2e1b64){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4bef98=this['_footnotes'][0x0]['reference']['root'],_0x4342c5=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2e1b64,_0x4bef98);for(const _0x5dff1a of this['_footnotes'])_0x5dff1a['definition']['parent']||_0x2e1b64['insert'](_0x5dff1a['definition'],_0x4342c5,'end');this['_updateFootnotesCounters'](_0x2e1b64);}['_handleFootnotesDefinitionsObjectChanges'](_0x2d0689,_0x520609){let _0x81ea5c=!0x1;const {inserted:_0x50fc2e,removed:_0xb59e85,moved:_0x4a2fb3}=this['_footnoteDefsContainerTracker']['getChanges'](_0x520609);if(_0x4a2fb3['length']&&(this['_footnotesDefinitions']=_0x4a2fb3[0x0]),_0x50fc2e['length']){if(_0x50fc2e['length']>0x1||this['_footnotesDefinitions']&&_0x50fc2e['some'](_0x38e51d=>_0x38e51d!==this['_footnotesDefinitions'])){const _0x5186f0=_0x2d0689['createElement']('footnotesDefinitions',{}),_0x19107f=[];this['_footnotesDefinitions']&&_0x19107f['push'](this['_footnotesDefinitions']),_0x19107f['push'](..._0x50fc2e),_0x2d0689['insert'](_0x5186f0,_0x19107f[0x0],'before');for(const _0x4f3148 of _0x19107f)_0x2d0689['move'](_0x2d0689['createRangeIn'](_0x4f3148),_0x2d0689['createPositionAt'](_0x5186f0,'end')),_0x2d0689['remove'](_0x4f3148);this['_footnotesDefinitions']=_0x5186f0,this['_updateFootnotesCounters'](_0x2d0689),_0x81ea5c=!0x0;}else this['_footnotesDefinitions']=_0x50fc2e[0x0];}if(_0xb59e85['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1941cd of this['_footnotes'])_0x2d0689['remove'](_0x1941cd['reference']),_0x81ea5c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x81ea5c;}['_handleFootnoteDefinitionsChanges'](_0x4053da,_0x16d8fa){let _0x1e1298=!0x1;const _0x3efefa=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x436a85,moved:_0x17ff3c}=this['_footnoteDefsTracker']['getChanges'](_0x16d8fa);for(const _0x5a3d39 of[..._0x17ff3c,..._0x436a85]){const _0x215341=_0x5a3d39['getAttribute']('footnoteId'),_0x3e580a=this['getFootnote'](_0x215341);_0x3e580a&&(_0x3e580a['definition']=_0x5a3d39),j(_0x4053da,_0x3efefa,_0x5a3d39)&&(_0x1e1298=!0x0);}return _0x1e1298;}['_handleFootnoteReferencesChanges'](_0x25004f,_0xf9870a){let _0x3d2227=!0x1;const {removed:_0x2bc96e,inserted:_0x234182,moved:_0x1b185a}=this['_footnoteRefsTracker']['getChanges'](_0xf9870a);for(const _0x49fee1 of _0x2bc96e)this['_handleRemoveFootnoteReferenceById'](_0x25004f,_0x49fee1)&&(_0x3d2227=!0x0);for(const _0x4861d8 of _0x234182)this['_handleInsertedFootnoteReference'](_0x25004f,_0x4861d8)&&(_0x3d2227=!0x0);for(const _0x46af62 of _0x1b185a)this['_handleMovedFootnoteReference'](_0x25004f,_0x46af62)&&(_0x3d2227=!0x0);return _0x3d2227;}['_handleFootnotesDefinitionsObjectSync'](_0xd0cd23){if(!this['_footnotesDefinitions'])return!0x1;let _0x299930=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x53cc06=[];for(const _0x1582dd of this['_footnotesDefinitions']['getChildren']()){const _0x747a18=_0x1582dd['getAttribute']('footnoteId');this['getFootnote'](_0x747a18)||(_0x53cc06['unshift'](_0x1582dd),_0x299930=!0x0);}for(const _0x1e84b4 of _0x53cc06)_0xd0cd23['remove'](_0x1e84b4);}const _0x2aa048=new Set(),_0x57f6d7=[];for(const _0x53e2e6 of this['_footnotesDefinitions']['getChildren']()){const _0x491e97=_0x53e2e6['getAttribute']('footnoteId');_0x2aa048['has'](_0x491e97)?(_0x57f6d7['unshift'](_0x53e2e6),_0x299930=!0x0):_0x2aa048['add'](_0x491e97);}for(const _0xd55767 of _0x57f6d7)_0xd0cd23['remove'](_0xd55767);return this['_footnotesDefinitions']['childCount']||(_0xd0cd23['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x299930=!0x0),_0x299930;}['_handleInsertedFootnoteReference'](_0x190078,_0x43716d){if(this['_footnotes']['find'](_0x345fda=>_0x345fda['reference']===_0x43716d))return!0x1;let _0x207f3=!0x1;const _0x13a887=_0x43716d['getAttribute']('footnoteId'),_0x43f5bc=this['_footnotes']['findIndex'](_0x57e706=>_0x57e706['id']===_0x13a887);-0x1!==_0x43f5bc&&(_0x190078['remove'](this['_footnotes'][_0x43f5bc]['reference']),this['_footnotes']['splice'](_0x43f5bc,0x1),_0x207f3=!0x0);let _0x56910f=this['_footnotesDefinitions']?function(_0x137810,_0x4ef5fc){for(const _0x18e9d9 of _0x137810['getChildren']())if(_0x18e9d9['getAttribute']('footnoteId')===_0x4ef5fc)return _0x18e9d9;return null;}(this['_footnotesDefinitions'],_0x13a887):null;_0x56910f||(_0x56910f=_0x190078['createElement']('footnoteDefinition',{'footnoteId':_0x13a887}),this['_footnotesDefinitions']&&(_0x190078['insert'](_0x56910f,this['_footnotesDefinitions'],'end'),_0x207f3=!0x0));const _0x39980e={'id':_0x13a887,'reference':_0x43716d,'definition':_0x56910f},_0x28483a=T(this['editor']['model'],this['_footnotes'],_0x43716d);this['_footnotes']['splice'](_0x28483a,0x0,_0x39980e);let _0x7f6184=_0x28483a;return-0x1!==_0x43f5bc&&(_0x7f6184=Math['min'](_0x28483a,_0x43f5bc)),this['_updateFootnotesCounters'](_0x190078,_0x7f6184)&&(_0x207f3=!0x0),_0x207f3;}['_handleRemoveFootnoteReferenceById'](_0x6097ce,_0x58df8f){const _0x2a7b6e=this['_footnotes']['findIndex'](_0x9dd2b5=>_0x9dd2b5['id']===_0x58df8f);if(-0x1===_0x2a7b6e)return!0x1;let _0x172d9e=!0x1;const _0x414d1e=this['_footnotes'][_0x2a7b6e];return'$graveyard'!==_0x414d1e['definition']['root']['rootName']&&(_0x6097ce['remove'](_0x414d1e['definition']),_0x172d9e=!0x0),this['_footnotes']['splice'](_0x2a7b6e,0x1),this['_updateFootnotesCounters'](_0x6097ce,_0x2a7b6e)&&(_0x172d9e=!0x0),_0x172d9e;}['_handleMovedFootnoteReference'](_0x586b4c,_0x33ec41){const _0x26a67f=_0x33ec41['getAttribute']('footnoteId'),_0x31f11f=this['_footnotes']['findIndex'](_0x1df3ac=>_0x1df3ac['id']===_0x26a67f),_0x2cf649=this['_footnotes'][_0x31f11f];let _0x389185=!0x1;_0x2cf649['reference']=_0x33ec41,this['_footnotes']['splice'](_0x31f11f,0x1);const _0x43897b=T(this['editor']['model'],this['_footnotes'],_0x33ec41);return this['_footnotes']['splice'](_0x43897b,0x0,_0x2cf649),this['_updateFootnotesCounters'](_0x586b4c,Math['min'](_0x31f11f,_0x43897b))&&(_0x389185=!0x0),_0x389185;}['_updateFootnoteRefCounter'](_0x13f371,_0x35e892){if(!this['_footnotesDefinitions'])return!0x1;const _0x1b49db=this['_footnotes'][_0x35e892];let _0x32a4a4;return _0x32a4a4=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1b49db,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x35e892+0x1}):String(_0x35e892+0x1),_0x1b49db['reference']['getAttribute']('footnoteCounter')!=_0x32a4a4&&(_0x13f371['setAttribute']('footnoteCounter',_0x32a4a4,_0x1b49db['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3de313){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x25846b,_0x131ccd){if(_0x25846b['length']!==_0x131ccd['length'])return!0x1;for(let _0x451e7d=0x0;_0x451e7d<_0x25846b['length'];_0x451e7d++)if(_0x25846b[_0x451e7d]!==_0x131ccd[_0x451e7d])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1e6f7=>_0x1e6f7['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x129452=>_0x129452['getAttribute']('footnoteId'))))return!0x1;let _0x400a37=!0x1;for(let _0x4642d2=0x0;_0x4642d2<this['_footnotes']['length'];_0x4642d2++){const _0xf310b1=this['_footnotes'][_0x4642d2],_0x9d27f1=_0x3de313['createPositionBefore'](_0xf310b1['definition']),_0x1e0ba3=_0x3de313['createPositionAt'](this['_footnotesDefinitions'],_0x4642d2);_0x9d27f1['isEqual'](_0x1e0ba3)||(_0x3de313['move'](_0x3de313['createRangeOn'](_0xf310b1['definition']),_0x1e0ba3),_0x400a37=!0x0);}return _0x400a37;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3202b9){if(!this['_footnotes']['length'])return!0x1;const {model:_0x313823}=this['editor'];let _0x4e4c62=!0x1;for(let _0x4bc475=0x0;_0x4bc475<this['_footnotes']['length']-0x1;_0x4bc475++){const _0x43ea8d=this['_footnotes'][_0x4bc475],_0x4468a9=this['_footnotes'][_0x4bc475+0x1],_0x1cdd65=_0x313823['createPositionBefore'](_0x43ea8d['reference']),_0x3f68a1=_0x313823['createPositionBefore'](_0x4468a9['reference']);'after'===_0x1cdd65['compareWith'](_0x3f68a1)&&(this['_handleMovedFootnoteReference'](_0x3202b9,_0x43ea8d['reference']),_0x4bc475=-0x1,_0x4e4c62=!0x0);}return _0x4e4c62;}}function j(_0x2fc5a2,_0x51aedb,_0x2e48b6){if(_0x2e48b6['childCount'])return!0x1;const _0x565abc=_0x51aedb?'paragraph':'footnoteInlineContent';return _0x2fc5a2['insert'](_0x2fc5a2['createElement'](_0x565abc),_0x2e48b6),!0x0;}function T(_0x185e54,_0x5512c6,_0x354c9b){if(0x0===_0x5512c6['length'])return 0x0;const _0x1d1950=_0x185e54['createPositionBefore'](_0x354c9b);for(let _0x17418=0x0;_0x17418<_0x5512c6['length'];_0x17418++){const _0x550f4c=_0x5512c6[_0x17418],_0x2569ff=_0x185e54['createPositionBefore'](_0x550f4c['reference']);if('before'===_0x1d1950['compareWith'](_0x2569ff))return _0x17418;}const _0x59109f=_0x354c9b['root'];let _0x1a8499=-0x1;for(let _0x566f8e=_0x5512c6['length']-0x1;_0x566f8e>=0x0;_0x566f8e--)if(_0x5512c6[_0x566f8e]['reference']['root']===_0x59109f){_0x1a8499=_0x566f8e;break;}if(-0x1!==_0x1a8499)return _0x1a8499+0x1;const _0x248852=_0x185e54['document']['getRootNames'](),_0x2b8372=_0x248852['indexOf'](_0x59109f['rootName']),_0xc1e11a=_0x248852[_0x2b8372+0x1];if(_0xc1e11a){for(let _0xa792f4=0x0;_0xa792f4<_0x5512c6['length'];_0xa792f4++)if(_0x5512c6[_0xa792f4]['reference']['root']['rootName']===_0xc1e11a)return _0xa792f4;}return _0x5512c6['length'];}class V extends _0x2ed227{['refresh'](){const _0x23f2e5=this['editor']['model']['document']['selection'],_0xeb968=this['_getPositionToInsertFootnote'](_0x23f2e5);this['isEnabled']=!!_0xeb968;}['execute'](_0x5cef66){const {editor:_0x20330d}=this,{model:_0x1713ec}=_0x20330d,{selection:_0x28ee56}=_0x1713ec['document'],_0x112f37=this['_getPositionToInsertFootnote'](_0x28ee56);if(!_0x112f37)return;const _0x4d381c=_0x20330d['plugins']['get']('FootnotesEditing'),_0xe75d7b=_0x5cef66?.['footnoteId']??_0xbfac14();!function(_0x12f2db){return'string'==typeof _0x12f2db&&_0x12f2db['length']>0x0&&!/\s/['test'](_0x12f2db)&&!/^\d/['test'](_0x12f2db);}(_0xe75d7b)?_0x5e5a97('insert-footnote-command-executed-with-invalid-id'):(_0x1713ec['change'](_0x3f8f98=>{const _0x1471d8=_0x3f8f98['createElement']('footnoteRef',{'footnoteId':_0xe75d7b});_0x1713ec['insertObject'](_0x1471d8,_0x112f37,null);}),_0x4d381c['_moveSelectionToFootnoteDefinition'](_0xe75d7b));}['_getPositionToInsertFootnote'](_0x192dca){const {model:_0x3c7a19}=this['editor'],{schema:_0x49af65}=_0x3c7a19,_0x4595d0=_0x192dca['getFirstRange']();for(const _0x4bd770 of _0x4595d0['getItems']())if(_0x49af65['isBlock'](_0x4bd770)||_0x49af65['isObject'](_0x4bd770))return null;const _0x2a6e8f=_0x4595d0['end'];return _0x49af65['checkChild'](_0x2a6e8f,'footnoteRef')?_0x2a6e8f:null;}}class $ extends _0x1867df{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x53b785}=this;_0x53b785['config']['define']('footnotes.multiBlock',!0x0),_0x53b785['commands']['add']('insertFootnote',new V(_0x53b785)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5b94de){const _0x32a714=_0x212a61([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x595017=0x47a28506,_0x3dd34d=0x47a50cae^_0x595017,_0x3c33e4=window[_0x212a61([0x44,0x61,0x74,0x65])][_0x212a61([0x6e,0x6f,0x77])](),_0x1759e8=_0x5b94de[_0x212a61([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x145b9a=new window[(_0x212a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x480fab=>{_0x1759e8[_0x212a61([0x6f,0x6e,0x63,0x65])](_0x212a61([0x72,0x65,0x61,0x64,0x79]),_0x480fab);}),_0x2591f5={[_0x212a61([0x6b,0x74,0x79])]:_0x212a61([0x45,0x43]),[_0x212a61([0x75,0x73,0x65])]:_0x212a61([0x73,0x69,0x67]),[_0x212a61([0x63,0x72,0x76])]:_0x212a61([0x50,0x2d,0x32,0x35,0x36]),[_0x212a61([0x78])]:_0x212a61([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x212a61([0x79])]:_0x212a61([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x212a61([0x61,0x6c,0x67])]:_0x212a61([0x45,0x53,0x32,0x35,0x36])},_0x51dbc2=_0x1759e8[_0x212a61([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x212a61([0x67,0x65,0x74])](_0x212a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a853c(){let _0x5d40e2,_0x5be771=null,_0x4e650e=null;try{if(_0x51dbc2==_0x212a61([0x47,0x50,0x4c]))return _0x212a61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d40e2=_0x1aa8e3(),!_0x5d40e2)return _0x212a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d40e2[_0x212a61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e650e=_0x4a2052(_0x5d40e2[_0x212a61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d40e2[_0x212a61([0x6a,0x74,0x69])])),await _0x4e6352()?_0x2ba5e3()?_0x4e2f78()?_0x212a61([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x301b37()?(_0x5d40e2[_0x212a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x212a61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5be771=_0x4157a0(_0x212a61([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ae18c()):_0x212a61([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x212a61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x212a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x212a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e2f78(){const _0x9dace=[_0x212a61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x212a61([0x74,0x72,0x69,0x61,0x6c])][_0x212a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d40e2[_0x212a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c33e4/0x3e8:0xe10*_0x3dd34d;return _0x5d40e2[_0x212a61([0x65,0x78,0x70])]<_0x9dace;}function _0x2ba5e3(){const _0x420d06=_0x5d40e2[_0x212a61([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x420d06&&(!!_0x420d06[_0x212a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x212a61([0x2a]))||!!_0x420d06[_0x212a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x212a61([0x46,0x4f,0x4f])));}function _0x301b37(){const _0x76484a=_0x5d40e2[_0x212a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x76484a||0x0==_0x76484a[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d4db6}=new URL(window[_0x212a61([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x76484a[_0x212a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4db6))return!0x0;const _0x69b0cc=_0x3d4db6[_0x212a61([0x73,0x70,0x6c,0x69,0x74])](_0x212a61([0x2e]));return _0x76484a[_0x212a61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4632b1=>_0x4632b1[_0x212a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x212a61([0x2a])))[_0x212a61([0x6d,0x61,0x70])](_0x1d6da8=>_0x1d6da8[_0x212a61([0x73,0x70,0x6c,0x69,0x74])](_0x212a61([0x2e])))[_0x212a61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ab9fd=>_0x4ab9fd[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x69b0cc[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x212a61([0x6d,0x61,0x70])](_0x22343a=>Array(_0x69b0cc[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22343a[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x212a61([0x66,0x69,0x6c,0x6c])](_0x22343a[0x0]===_0x212a61([0x2a])?_0x212a61([0x2a]):'')[_0x212a61([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22343a))[_0x212a61([0x73,0x6f,0x6d,0x65])](_0x229b69=>_0x69b0cc[_0x212a61([0x65,0x76,0x65,0x72,0x79])]((_0x58dcbd,_0x586042)=>_0x229b69[_0x586042]===_0x58dcbd||_0x229b69[_0x586042]===_0x212a61([0x2a])));}function _0x5ae18c(){return _0x5be771&&_0x4e650e?new window[(_0x212a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x432082,_0x5e3c3d)=>{_0x5be771[_0x212a61([0x74,0x68,0x65,0x6e])](_0x432082,_0x5e3c3d),_0x4e650e[_0x212a61([0x74,0x68,0x65,0x6e])](_0x375703=>{_0x375703!=_0x212a61([0x56,0x61,0x6c,0x69,0x64])&&_0x432082(_0x375703);},_0x5e3c3d);}):_0x5be771||_0x4e650e||_0x212a61([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a2052(_0x1be543,_0x4d4c8e){return new window[(_0x212a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ca179=>{if(_0x1e8491())return _0x5ca179(_0x212a61([0x56,0x61,0x6c,0x69,0x64]));_0x1a7769(),_0x1759e8[_0x212a61([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x212a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d3fec=!0x1;const _0x3c68de=_0xbfac14();function _0x41cf85(_0x521b94){return!!_0x521b94&&(typeof _0x521b94===_0x212a61([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x521b94===_0x212a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x521b94[_0x212a61([0x74,0x68,0x65,0x6e])]===_0x212a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x521b94[_0x212a61([0x63,0x61,0x74,0x63,0x68])]===_0x212a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7d4a62(_0x1ffddc){_0x490369(_0x1ffddc)[_0x212a61([0x74,0x68,0x65,0x6e])](_0x544a3f=>{if(!_0x544a3f||_0x544a3f[_0x212a61([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x212a61([0x6f,0x6b]))return _0x212a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x405f65(_0x2a6a27(_0x3c68de+_0x4d4c8e))!=_0x544a3f[_0x212a61([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x212a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x212a61([0x56,0x61,0x6c,0x69,0x64]);})[_0x212a61([0x74,0x68,0x65,0x6e])](_0x174dbd=>(_0xe0d240(),_0x174dbd),()=>{const _0x4506b9=_0x5bc5cf();return null==_0x4506b9?(_0xe0d240(),_0x212a61([0x56,0x61,0x6c,0x69,0x64])):_0x212a61(_0x3c33e4-_0x4506b9>(0x63ae0106^_0x595017)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x212a61([0x74,0x68,0x65,0x6e])](_0x5ca179)[_0x212a61([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ca179(_0x212a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1566d2=0x47946b86^_0x595017;function _0xe0d240(){const _0x5d1b8a=_0x212a61([0x6c,0x6c,0x63,0x74,0x2d])+_0x405f65(_0x2a6a27(_0x1be543)),_0x4ec890=_0x2e1b75(_0x405f65(window[_0x212a61([0x4d,0x61,0x74,0x68])][_0x212a61([0x63,0x65,0x69,0x6c])](_0x3c33e4/_0x1566d2)));window[_0x212a61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x212a61([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d1b8a,_0x4ec890);}function _0x5bc5cf(){const _0x47a818=_0x212a61([0x6c,0x6c,0x63,0x74,0x2d])+_0x405f65(_0x2a6a27(_0x1be543)),_0x4b92a6=window[_0x212a61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x212a61([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47a818);return _0x4b92a6?window[_0x212a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e1b75(_0x4b92a6),0x10)*_0x1566d2:null;}function _0x490369(_0x40a7a7){return new window[(_0x212a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59f186,_0x232c7b)=>{_0x40a7a7[_0x212a61([0x74,0x68,0x65,0x6e])](_0x59f186,_0x232c7b),window[_0x212a61([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x232c7b,0x47a351c6^_0x595017);});}}_0x1759e8[_0x212a61([0x6f,0x6e])](_0x212a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x301c72,_0x47d242)=>{if(_0x47d242[0x0]!=_0x1be543)return _0x5ca179(_0x212a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47d242[0x1]={..._0x47d242[0x1],[_0x212a61([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c68de};},{[_0x212a61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x212a61([0x68,0x69,0x67,0x68])}),_0x1759e8[_0x212a61([0x6f,0x6e])](_0x212a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b660a=>{_0x41cf85(_0x2b660a[_0x212a61([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d3fec=!0x0,_0x7d4a62(_0x2b660a[_0x212a61([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x212a61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x212a61([0x6c,0x6f,0x77])}),_0x145b9a[_0x212a61([0x74,0x68,0x65,0x6e])](()=>{_0x5d3fec||_0x5ca179(_0x212a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e8491(){return _0x1759e8[_0x212a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x212a61([0x76,0x69,0x65,0x77])][_0x212a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x212a61([0x61,0x75,0x74,0x6f]);}function _0x1a7769(){_0x1759e8[_0x212a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x212a61([0x76,0x69,0x65,0x77])][_0x212a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x212a61([0x61,0x75,0x74,0x6f]);}}function _0x4157a0(_0x21df4a){const _0x31f6ea=[new window[(_0x212a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ae3c4=>setTimeout(_0x3ae3c4,0x47abbbca^_0x595017)),_0x145b9a[_0x212a61([0x74,0x68,0x65,0x6e])](()=>new window[(_0x212a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c960a=>{let _0xc0740e=0x0;_0x1759e8[_0x212a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x212a61([0x6f,0x6e])](_0x212a61([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d680d,_0x45a113)=>{_0x45a113[0x0][_0x212a61([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc0740e++,_0xc0740e==(0x47a280ee^_0x595017)&&(_0x3c960a(),_0x4d680d[_0x212a61([0x6f,0x66,0x66])]());});}))];return window[_0x212a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x212a61([0x72,0x61,0x63,0x65])](_0x31f6ea)[_0x212a61([0x74,0x68,0x65,0x6e])](()=>_0x21df4a);}async function _0x3d4752(){await _0x145b9a,_0x1759e8[_0x212a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x212a61([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1df895,_0x1759e8[_0x212a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x212a61([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1df895,_0x1759e8[_0x212a61([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x212a61([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x114228(_0x218719){const _0x4595c2=_0x53cadc();_0x1759e8[_0x4595c2]=_0x212a61([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x218719,_0x218719!=_0x212a61([0x56,0x61,0x6c,0x69,0x64])&&_0x3d4752();}function _0x53cadc(){const _0x369366=window[_0x212a61([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x212a61([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x212a61([0x6e,0x6f,0x77])]())[_0x212a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x212a61([0x2e]),'');let _0x4c4c6f=_0x212a61([0x75]);for(let _0x337715=0x0;_0x337715<_0x369366[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x337715+=0x2){let _0x5499d3=window[_0x212a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x369366[_0x212a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x337715,_0x337715+0x2));_0x5499d3>=_0x32a714[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5499d3-=_0x32a714[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c4c6f+=_0x32a714[_0x5499d3];}return _0x4c4c6f;}function _0x1aa8e3(){const _0x54d835=_0x51dbc2[_0x212a61([0x73,0x70,0x6c,0x69,0x74])](_0x212a61([0x2e]));if(0x3!=_0x54d835[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e130e(_0x54d835[0x1]);function _0x3e130e(_0x423052){const _0x4232e4=_0x1560b2(_0x423052);return _0x4232e4&&_0x527071()?_0x4232e4:null;function _0x527071(){const _0x4dcfbf=_0x4232e4[_0x212a61([0x6a,0x74,0x69])],_0x5e0c77=window[_0x212a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dcfbf[_0x212a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dcfbf[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9b0cda={..._0x4232e4,[_0x212a61([0x6a,0x74,0x69])]:_0x4dcfbf[_0x212a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dcfbf[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9b0cda[_0x212a61([0x76,0x63])],_0x2a6a27(_0x9b0cda)==_0x5e0c77;}}}async function _0x4e6352(){let _0x27a828=!0x0;try{const _0xc6c451=_0x51dbc2[_0x212a61([0x73,0x70,0x6c,0x69,0x74])](_0x212a61([0x2e])),[_0x5088d6,_0x1d49cc,_0x2261b7]=_0xc6c451;return _0x10982b(_0x5088d6),await _0x2b5c41(_0x5088d6,_0x1d49cc,_0x2261b7),_0x27a828;}catch{return!0x1;}function _0x10982b(_0x63a7c2){const _0x44f500=_0x1560b2(_0x63a7c2);_0x44f500&&_0x44f500[_0x212a61([0x61,0x6c,0x67])]==_0x212a61([0x45,0x53,0x32,0x35,0x36])||(_0x27a828=!0x1);}async function _0x2b5c41(_0x5c1a53,_0x3423b6,_0x233643){const _0x4b73fc=window[_0x212a61([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x212a61([0x66,0x72,0x6f,0x6d])](_0x4210d4(_0x233643),_0x19a964=>_0x19a964[_0x212a61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x156626=new window[(_0x212a61([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x212a61([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c1a53+_0x212a61([0x2e])+_0x3423b6),_0x3d9dea=window[_0x212a61([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x212a61([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d9dea)return;const _0x5c4835=await _0x3d9dea[_0x212a61([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x212a61([0x6a,0x77,0x6b]),_0x2591f5,{[_0x212a61([0x6e,0x61,0x6d,0x65])]:_0x212a61([0x45,0x43,0x44,0x53,0x41]),[_0x212a61([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x212a61([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x212a61([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d9dea[_0x212a61([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x212a61([0x6e,0x61,0x6d,0x65])]:_0x212a61([0x45,0x43,0x44,0x53,0x41]),[_0x212a61([0x68,0x61,0x73,0x68])]:{[_0x212a61([0x6e,0x61,0x6d,0x65])]:_0x212a61([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c4835,_0x4b73fc,_0x156626)||(_0x27a828=!0x1);}}function _0x1560b2(_0x26855a){return _0x26855a[_0x212a61([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x212a61([0x65,0x79]))?JSON[_0x212a61([0x70,0x61,0x72,0x73,0x65])](_0x4210d4(_0x26855a)):null;}function _0x4210d4(_0x427871){return window[_0x212a61([0x61,0x74,0x6f,0x62])](_0x427871[_0x212a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x212a61([0x2b]))[_0x212a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x212a61([0x2f])));}function _0x2a6a27(_0x1ed2db){let _0x22501e=0x1505;function _0x3ed005(_0x289c6e){for(let _0x1778cb=0x0;_0x1778cb<_0x289c6e[_0x212a61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1778cb++){const _0x25e423=_0x289c6e[_0x212a61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1778cb);_0x22501e=(_0x22501e<<0x5)+_0x22501e+_0x25e423,_0x22501e&=_0x22501e;}}function _0x479b5b(_0x56321f){Array[_0x212a61([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56321f)?_0x56321f[_0x212a61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x479b5b):_0x56321f&&typeof _0x56321f==_0x212a61([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x212a61([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56321f)[_0x212a61([0x73,0x6f,0x72,0x74])]()[_0x212a61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bdf02,_0x6a045d])=>{_0x3ed005(_0x5bdf02),_0x479b5b(_0x6a045d);}):_0x3ed005(window[_0x212a61([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56321f));}return _0x479b5b(_0x1ed2db),_0x22501e>>>0x0;}function _0x405f65(_0x13a8d8){return _0x13a8d8[_0x212a61([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x212a61([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x212a61([0x30]));}function _0x2e1b75(_0x1fb8be){return _0x1fb8be[_0x212a61([0x73,0x70,0x6c,0x69,0x74])]('')[_0x212a61([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x212a61([0x6a,0x6f,0x69,0x6e])]('');}function _0x1df895(){}function _0x212a61(_0x4936d2){return _0x4936d2['map'](_0x515fd8=>String['fromCharCode'](_0x515fd8))['join']('');}_0x114228(await _0x2a853c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1030d7){const {plugins:_0x313f22,editing:_0xe833ec,model:_0x4cb333}=this['editor'],_0x2bf7fb=_0x313f22['get'](K)['getFootnote'](_0x1030d7);return!!_0x2bf7fb&&(_0x4cb333['change'](_0x3f31f9=>{_0x3f31f9['setSelection'](_0x3f31f9['createPositionAt'](_0x2bf7fb['definition'],'end'));}),_0xe833ec['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x10bdb6){const {plugins:_0x5e6ce9,editing:_0x21ebca,model:_0x56428c}=this['editor'],_0x3d635e=_0x5e6ce9['get'](K)['getFootnote'](_0x10bdb6);return!!_0x3d635e&&(_0x56428c['change'](_0x3ebe28=>{_0x3ebe28['setSelection'](_0x3d635e['reference'],'on');}),_0x21ebca['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x66dcbf}=this['editor']['model'],_0x47f57c=this['editor']['config']['get']('footnotes.multiBlock');_0x66dcbf['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x66dcbf['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x66dcbf['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x47f57c?_0x66dcbf['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x66dcbf['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x66dcbf['addChildCheck'](_0x59c931=>{for(const _0x3a79e9 of _0x59c931)if('footnoteDefinition'===_0x3a79e9['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1d10c7}=this,{conversion:_0x376348,editing:_0x1c05ff}=_0x1d10c7,{t:t}=_0x1d10c7['locale'];_0x376348['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x9cb824,{writer:_0x3a48d7,consumable:_0x5a98fd})=>{const _0x1646d4=_0x9cb824['getChild'](0x0);if(!_0x1646d4||!_0x1646d4['is']('element','a'))return null;const _0x4032e1=_0x1646d4['getAttribute']('href')||'';if(!_0x4032e1['startsWith']('#'))return null;const _0x4cdabf=_0x4032e1['replace'](/^#/,'');if(!_0x4cdabf)return null;_0x5a98fd['consume'](_0x1646d4,{'name':!0x0,'attributes':['href']});for(const {item:_0x374620}of _0x1c05ff['view']['createRangeIn'](_0x1646d4))_0x374620['is']('$textProxy')?_0x5a98fd['consume'](_0x374620['textNode'],{'name':!0x0}):_0x374620['is']('element')&&_0x5a98fd['consume'](_0x374620,{'name':!0x0});return _0x3a48d7['createElement']('footnoteRef',{'footnoteId':_0x4cdabf});}}),_0x376348['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xa4d9b,{writer:_0x1c5934})=>z(_0xa4d9b,_0x1c5934)}),_0x376348['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2cad37,{writer:_0x433c59})=>{const _0x2e47f7=_0x2cad37['getAttribute']('footnoteCounter');return _0x42f1dc(z(_0x2cad37,_0x433c59),_0x433c59,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2e47f7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x134b83}=this,{t:t}=_0x134b83['locale'],{conversion:_0x5bed48}=_0x134b83;_0x5bed48['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5bed48['for']('upcast')['add'](_0x527bc=>{_0x527bc['on']('element:ol',(_0x2b9db6,_0x52b3b7,_0x406c81)=>{const _0x58ef76=_0x52b3b7['viewItem'];if(!_0x58ef76['hasClass']('footnotes-list')||!_0x52b3b7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x406c81['consumable']['consume'](_0x58ef76,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2711dd,modelCursor:_0x52b79a}=_0x406c81['convertChildren'](_0x52b3b7['viewItem'],_0x52b3b7['modelCursor']);_0x52b3b7['modelRange']=_0x2711dd,_0x52b3b7['modelCursor']=_0x52b79a;}),_0x527bc['on']('element:hr',(_0x83bf36,_0x357b5a,_0x1fc870)=>{const _0x2b8cb7=_0x357b5a['viewItem'];_0x2b8cb7['hasClass']('footnotes-divider')&&_0x357b5a['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1fc870['consumable']['consume'](_0x2b8cb7,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5bed48['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x599822,{writer:_0x687b41})=>H(_0x687b41)}),_0x5bed48['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5288c7,{writer:_0x229547})=>{const _0x204ad7=H(_0x229547,{'data-footnotes-list-label':t('Footnotes')}),_0x109f47=_0x42f1dc(_0x204ad7,_0x229547,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x229547['setCustomProperty']('footnotesDefinitions',!0x0,_0x109f47),_0x109f47;}});}['_defineDefinitionConverters'](){const {editor:_0x3bd968}=this,{conversion:_0x34173b,locale:_0x10dc2b}=_0x3bd968,_0x2a0dec=_0x3bd968['config']['get']('footnotes.multiBlock');_0x34173b['for']('upcast')['add'](_0x2c0098=>{_0x2c0098['on']('element:li',(_0x70962c,_0x4f4ba4,_0x2af8b2)=>{const _0x1962ec=_0x4f4ba4['viewItem'];if(!_0x1962ec['hasClass']('footnote-definition')||!_0x1962ec['getAttribute']('id'))return;const _0x4d4508=_0x1962ec['parent'];if(!_0x4d4508['is']('element','ol')||!_0x4d4508['hasClass']('footnotes-list'))return;if(!_0x2af8b2['consumable']['test'](_0x1962ec,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x306d48=_0x2af8b2['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1962ec['getAttribute']('id')});if(!_0x2af8b2['safeInsert'](_0x306d48,_0x4f4ba4['modelCursor']))return;_0x2af8b2['consumable']['consume'](_0x1962ec,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xec7789=Array['from'](_0x1962ec['getChildren']())['find'](_0x21ec10=>_0x21ec10['is']('element')&&_0x21ec10['hasClass']('footnote-content'));for(const _0x4d0736 of _0x1962ec['getChildren']())_0x4d0736['is']('element')&&(_0x2af8b2['consumable']['consume'](_0x4d0736,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2af8b2['consumable']['consume'](_0x4d0736,{'name':!0x0,'classes':'footnote-content'}));if(_0xec7789){if(_0x2a0dec)_0x2af8b2['convertChildren'](_0xec7789,_0x306d48);else{const _0x593f5a=_0x2af8b2['writer']['createElement']('footnoteInlineContent');_0x2af8b2['writer']['insert'](_0x593f5a,_0x306d48),_0x2af8b2['convertChildren'](_0xec7789,_0x593f5a);}}_0x2af8b2['updateConversionResult'](_0x306d48,_0x4f4ba4);});}),_0x34173b['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x561393,{writer:_0x42fc7f})=>X(_0x561393,_0x42fc7f,_0x10dc2b,{'dataPipeline':!0x0})}),_0x34173b['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x20d35b,{writer:_0x163a17})=>X(_0x20d35b,_0x163a17,_0x10dc2b)});}['_defineBogusParagraphConverters'](){const {editor:_0x35ed15}=this,{conversion:_0x3d7410}=_0x35ed15;_0x35ed15['config']['get']('footnotes.multiBlock')?(_0x3d7410['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x3d7410['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x35ed15['model']['document'],'change:data',()=>{!function(_0x49f248,_0xa7c7be){const _0x3a7f58=_0x49f248['document']['differ'],_0x351cdf=new Set();for(const _0x1def4a of _0x3a7f58['getChanges']()){const _0x2c0b78='attribute'==_0x1def4a['type']?_0x1def4a['range']['start']['parent']:_0x1def4a['position']['parent'];_0x2c0b78['is']('element','footnoteDefinition')&&_0x351cdf['add'](_0x2c0b78);}for(const _0x5506ec of _0x351cdf['values']()){const _0x22c2fa=Array['from'](_0x5506ec['getChildren']())['filter'](_0x3518fe=>U(_0x3518fe,_0xa7c7be['mapper']));for(const _0x2db287 of _0x22c2fa)_0xa7c7be['reconvertItem'](_0x2db287);}}(_0x35ed15['model'],_0x35ed15['editing']);})):(_0x3d7410['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x3d7410['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x265881,{writer:_0x17c915})=>{const _0x2b55fb=_0x17c915['createContainerElement']('span');return _0x17c915['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2b55fb),_0x2b55fb;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2a0bd0}=this,{editing:_0x32f6c2,t:t}=_0x2a0bd0,_0xe270ed=_0x2a0bd0['model']['document']['selection'];_0x2a0bd0['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2a0bd0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x32f6c2['view']['document'],'enter',(_0x4e8ba5,_0x11ca07)=>{const _0x2c2e2a=function(_0x54d192){const _0x1e5dcc=_0x54d192['getSelectedElement']();if(_0x1e5dcc?.['is']('element','footnoteRef'))return _0x1e5dcc;return null;}(_0xe270ed);if(_0x2c2e2a){const _0x28f1ee=_0x2c2e2a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x28f1ee),_0x11ca07['preventDefault'](),_0x4e8ba5['stop']();}},{'context':_0x3706b2});}['_defineClickHandlers'](){const {editor:_0x103ddc}=this,{editing:_0x5d05a5}=_0x103ddc;_0x103ddc['editing']['view']['addObserver'](_0x4a45b8),_0x103ddc['editing']['view']['addObserver'](_0x338512);let _0x323ad7=!0x1;this['listenTo'](_0x5d05a5['view']['document'],'pointerdown',(_0x4c7ba1,_0x35b5fe)=>{const {target:_0x5552e8}=_0x35b5fe,_0x5e0fb6=_0x5d05a5['view']['document']['selection'];_0x323ad7=!!(_0x5552e8?.['is']('element','a')&&_0x5552e8['parent']?.['is']('element','sup')&&_0x5552e8['parent']['hasClass']('footnote'))&&_0x5e0fb6['getSelectedElement']()===_0x5552e8['parent'];},{'priority':'high'}),this['listenTo'](_0x5d05a5['view']['document'],'click',(_0x15ca0b,_0x57dc9d)=>{const {target:_0x4f1a47}=_0x57dc9d;if(!_0x4f1a47?.['is']('element','a'))return;if(_0x4f1a47['parent']?.['is']('element','sup')&&_0x4f1a47['parent']['hasClass']('footnote')&&!_0x323ad7)return void _0x57dc9d['preventDefault']();let _0x45229e=_0x4f1a47['getAttribute']('href');if(!_0x45229e?.['startsWith']('#'))return;_0x45229e=_0x45229e['slice'](0x1);let _0x4caccf=!0x1;(_0x45229e['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x45229e['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x45229e))&&(_0x4caccf=!0x0),_0x4caccf&&(_0x57dc9d['preventDefault'](),_0x15ca0b['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x56cd96}={}){return(_0x5d150e,{writer:_0x880a99})=>{if(!M(_0x5d150e))return null;if(!_0x56cd96)return _0x880a99['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2dbfe6=_0x880a99['createContainerElement']('p');return _0x880a99['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2dbfe6),_0x2dbfe6;};}function M(_0x1a98c1){const {parent:_0x2efade}=_0x1a98c1;if(!_0x2efade?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2efade['childCount'])return!0x1;for(const _0x3f2201 of _0x1a98c1['getAttributeKeys']())if(!_0x3f2201['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3f2201)return!0x1;return!0x0;}function U(_0x176934,_0x5da52f){if(!_0x176934['is']('element','paragraph'))return!0x1;const _0x22b588=_0x5da52f['toViewElement'](_0x176934);return!!_0x22b588&&M(_0x176934)!==_0x22b588['is']('element','span');}function q(_0x9f9dd5){return _0x3706b2(_0x9f9dd5)&&_0x9f9dd5['is']('containerElement')&&!!_0x9f9dd5['getCustomProperty']('footnotesDefinitions');}function H(_0x3984d5,_0x2cc116={}){const _0x786795=_0x3984d5['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3821cb=_0x3984d5['createContainerElement']('ol',{'class':'footnotes-list'},_0x3984d5['createSlot']());return _0x3984d5['createContainerElement']('div',{'class':'footnotes',..._0x2cc116},[_0x786795,_0x3821cb]);}function z(_0x414bbd,_0x588123){const _0xcf3764=_0x414bbd['getAttribute']('footnoteId'),_0x38807f=_0x414bbd['getAttribute']('footnoteCounter'),_0x946bfd=_0x588123['createUIElement']('a',{'href':'#'+_0xcf3764},function(_0x200a38){const _0x309f96=this['toDomElement'](_0x200a38);return _0x309f96['textContent']=_0x38807f,_0x309f96;}),_0x2ab3d7=_0x588123['createContainerElement']('sup',{'id':'ref-'+_0xcf3764,'class':'footnote'},[_0x946bfd]);return _0x2ab3d7['getFillerOffset']=()=>null,_0x2ab3d7;}function X(_0x2d62d4,_0x26da46,_0x4a3715,{dataPipeline:_0x456f6a}={}){const {t:t}=_0x4a3715,_0x5c4ab1=_0x2d62d4['getAttribute']('footnoteId'),_0x46aa8d=_0x26da46['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5c4ab1},function(_0x143aef){const _0x7878f5=this['toDomElement'](_0x143aef);return _0x7878f5['innerText']='^',_0x7878f5;}),_0x55613a=_0x456f6a?_0x26da46['createContainerElement']('div',{'class':'footnote-content'}):_0x450337(_0x26da46['createEditableElement']('div',{'class':'footnote-content'}),_0x26da46,{'label':t('Footnote\x20content.')});return _0x26da46['insert'](_0x26da46['createPositionAt'](_0x55613a,0x0),_0x26da46['createSlot']()),_0x26da46['createContainerElement']('li',{'class':'footnote-definition','id':_0x5c4ab1},[_0x46aa8d,_0x55613a]);}class J extends _0x1867df{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x1d6a4e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x387294}=this,{plugins:_0x5f1045,model:_0x2e64ff}=_0x387294,_0x3ddcf0=_0x5f1045['get'](_0x1d6a4e),_0x4efcb8=_0x5f1045['get'](K);this['listenTo'](_0x3ddcf0,'outputTransformation',(_0x21783b,_0xd28a00)=>{const _0x15d018=Q(_0x2e64ff['createRangeIn'](_0xd28a00['content']));if(!_0x15d018['length'])return;const _0x4e8d75=_0x4efcb8['getFootnotes'](),_0xbbb755=_0x15d018['reduce']((_0x391de0,_0x436d66)=>{const _0x283a41=_0x4e8d75['find'](_0x4821b4=>_0x4821b4['id']===_0x436d66);if(_0x283a41){const _0x50146e=_0x387294['data']['toView'](_0x283a41['definition'],{'isClipboardPipeline':!0x0}),_0xc3bf83=_0x387294['data']['htmlProcessor']['toData'](_0x50146e);_0x391de0[_0x283a41['id']]=_0xc3bf83;}return _0x391de0;},Object['create'](null));_0xd28a00['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xbbb755));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x70df78}=this,{model:_0x145443,plugins:_0x4039a5}=_0x70df78,{view:_0x2179fe}=_0x70df78['editing'],_0x4aa8c5=_0x4039a5['get'](_0x1d6a4e),_0x4ebc8c=_0x4039a5['get'](K),_0x1e6969=_0x70df78['config']['get']('footnotes.multiBlock');let _0x3aef6b=null;this['listenTo'](_0x2179fe['document'],'clipboardInput',(_0x51e9c2,_0x9763fd)=>{const _0x2557dc=_0x9763fd['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x3aef6b=_0x2557dc?JSON['parse'](_0x2557dc):null;}),this['listenTo'](_0x4aa8c5,'contentInsertion',(_0x363345,_0x515b3a)=>{const _0x370068=_0x515b3a['sourceEditorId']===this['editor']['id'];_0x370068&&'drop'===_0x515b3a['method']||_0x145443['change'](_0x1808a5=>{let _0x1db2cf=_0x4ebc8c['getFootnotesDefinitionsObjectElement']();const _0x2457e4=!!_0x1db2cf&&Array['from'](_0x145443['document']['selection']['getSelectedBlocks']())['includes'](_0x1db2cf);if(!_0x3aef6b&&function(_0x2c78fc){for(const {item:_0x354267}of _0x2c78fc)if(_0x354267['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x145443['createRangeIn'](_0x515b3a['content']))&&(_0x3aef6b=function(_0x4eb439,_0x30d784){const _0x33f94e=G(_0x4eb439,_0x30d784);if(!_0x33f94e)return null;const _0x319e14=Object['create'](null);for(const _0x29662e of _0x33f94e['getChildren']())_0x29662e['is']('element','footnoteDefinition')&&_0x29662e['hasAttribute']('footnoteId')&&(_0x319e14[_0x29662e['getAttribute']('footnoteId')]=_0x4eb439['cloneElement'](_0x29662e,!0x0));return Object['keys'](_0x319e14)['length']?_0x319e14:null;}(_0x1808a5,_0x515b3a['content'])),(_0x1db2cf&&!_0x2457e4||!_0x1db2cf&&!_0x3aef6b)&&function(_0x325c91,_0x27d88a){const _0x8b4650=[];for(const {item:_0x27ad5e}of _0x325c91['createRangeIn'](_0x27d88a))_0x27ad5e['is']('element','footnotesDefinitions')&&_0x8b4650['push'](_0x27ad5e);for(const _0x18cc60 of _0x8b4650)_0x325c91['remove'](_0x18cc60);}(_0x1808a5,_0x515b3a['content']),!_0x3aef6b)return;const {selection:_0x7bb3fe}=_0x145443['document'],_0x104fa0=_0x7bb3fe['getFirstRange']()['root'];_0x1db2cf&&!_0x2457e4||(_0x1db2cf=G(_0x1808a5,_0x515b3a['content']),_0x1db2cf||=_0x4ebc8c['_insertEmptyFootnotesDefinitionsContainer'](_0x1808a5,_0x104fa0));const _0x196422=Array['from'](_0x7bb3fe['getRanges']())['flatMap'](Q),_0x5b9f35=function(_0x48cb08,_0x358715,_0x47a77d){const _0x3d269b=Object['create'](null);for(const {item:_0x41258a}of _0x48cb08['createRangeIn'](_0x358715))if(_0x41258a['is']('element','footnoteRef')){const _0x57061b=_0x41258a['getAttribute']('footnoteId');if(!_0x47a77d(_0x57061b))continue;_0x3d269b[_0x57061b]||(_0x3d269b[_0x57061b]=_0xbfac14()),_0x48cb08['setAttribute']('footnoteId',_0x3d269b[_0x57061b],_0x41258a);}return _0x3d269b;}(_0x1808a5,_0x515b3a['content'],_0x472a15=>{if(!_0x370068)return!0x0;return!!_0x4ebc8c['getFootnote'](_0x472a15)&&!_0x196422['includes'](_0x472a15);});for(const [_0x1071e6,_0x8d4bb1]of Object['entries'](_0x3aef6b)){const _0x2caa25=_0x5b9f35[_0x1071e6]||_0x1071e6;let _0x24373c;if('string'!=typeof _0x8d4bb1)_0x24373c=_0x8d4bb1,_0x2caa25!==_0x1071e6&&_0x1808a5['setAttribute']('footnoteId',_0x2caa25,_0x24373c);else{_0x24373c=_0x1808a5['createElement']('footnoteDefinition',{'footnoteId':_0x2caa25});const _0x28a9c9=_0x70df78['data']['htmlProcessor']['toView'](_0x8d4bb1);let _0xf37cc4;if(_0x1e6969)_0xf37cc4=_0x70df78['data']['toModel'](_0x28a9c9,_0x24373c);else{_0xf37cc4=_0x1808a5['createElement']('footnoteInlineContent');const _0x4d7b17=_0x70df78['data']['toModel'](_0x28a9c9,_0xf37cc4);_0x1808a5['insert'](_0x4d7b17,_0xf37cc4);}_0x1808a5['append'](_0xf37cc4,_0x24373c);}_0x1808a5['insert'](_0x24373c,_0x1db2cf,'end');}_0x3aef6b=null;});});}}function G(_0x2f71d4,_0x228e5c){for(const {item:_0x3b46f4}of _0x2f71d4['createRangeIn'](_0x228e5c))if(_0x3b46f4['is']('element','footnotesDefinitions'))return _0x3b46f4;return null;}function Q(_0x433d6d){const _0x2b1177=new Set();for(const {item:_0x4a92b8}of _0x433d6d)_0x4a92b8['is']('element','footnoteRef')&&_0x2b1177['add'](_0x4a92b8['getAttribute']('footnoteId'));return Array['from'](_0x2b1177);}class W extends _0x1867df{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x474b0e}=this,{componentFactory:_0x1fc474}=_0x474b0e['ui'];_0x1fc474['add']('insertFootnote',Y(_0x474b0e,_0xb842d2)),_0x1fc474['add']('menuBar:insertFootnote',Y(_0x474b0e,_0x37f44d)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f898c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4edf46;for(const _0x49a35d in _0x1f898c){const _0x31086f=_0x49a35d,_0x25b34c=_0x1f898c[_0x31086f];if('footnotesLicenseKeyValid'==_0x25b34c||'footnotesLicenseKeyInvalid'==_0x25b34c||'footnotesLicenseKeyExpired'==_0x25b34c||'footnotesLicenseKeyDomainLimit'==_0x25b34c||'footnotesLicenseKeyNotAllowed'==_0x25b34c||'footnotesLicenseKeyEvaluationLimit'==_0x25b34c||'footnotesLicenseKeyUsageLimit'==_0x25b34c){delete _0x1f898c[_0x31086f],_0x4edf46=_0x25b34c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4edf46&&_0x1f898c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4edf46&&_0x1f898c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4edf46&&_0x1f898c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4edf46&&_0x1f898c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4edf46&&_0x1f898c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x4edf46&&_0x1f898c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x285531,_0x5dd2e4){const _0x47fe31=_0x285531['commands']['get']('insertFootnote');return _0xe50b5c=>{const {t:t}=_0xe50b5c,_0x4a2a19=new _0x5dd2e4(_0xe50b5c),_0x5e0bcd=_0x4a2a19 instanceof _0x37f44d;return _0x4a2a19['bind']('isEnabled')['to'](_0x47fe31,'isEnabled'),_0x4a2a19['set']({'label':t(_0x5e0bcd?'Footnote':'Insert\x20footnote'),'icon':_0x402a18,'tooltip':!0x0}),_0x4a2a19['on']('execute',()=>{_0x47fe31['execute'](),_0x285531['editing']['view']['focus']();}),_0x4a2a19;};}class Z extends _0x1867df{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[$,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];class nt extends _0x2ed227{['refresh'](){const {editor:_0x2d9e69}=this,_0x13428f=_0x2d9e69['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x13428f,this['value']=_0x13428f?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x61ca3f}){const {editor:_0xf37ca}=this,_0x26dadb=_0xf37ca['plugins']['get'](K),_0x3837ea=_0x26dadb['getFootnotesDefinitionsObjectElement']();_0x3837ea&&ot['includes'](_0x61ca3f)&&_0xf37ca['model']['change'](_0x4ef20c=>{_0x4ef20c['setAttribute']('footnotesListStyle',_0x61ca3f,_0x3837ea),_0x26dadb['_updateFootnotesCounters'](_0x4ef20c);});}}class it extends _0x2ed227{['refresh'](){const {editor:_0x1270b0}=this,_0x195c55=_0x1270b0['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x195c55,this['value']=_0x195c55?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x7d4b03}){const {editor:_0x3f3b57}=this,_0x56b7d6=_0x3f3b57['plugins']['get'](K),_0x3fc4fb=_0x56b7d6['getFootnotesDefinitionsObjectElement']();_0x3fc4fb&&Number['isInteger'](_0x7d4b03)&&_0x3f3b57['model']['change'](_0x2542b2=>{_0x2542b2['setAttribute']('footnotesListStart',_0x7d4b03,_0x3fc4fb),_0x56b7d6['_updateFootnotesCounters'](_0x2542b2);});}}function st(_0x2e19ce,_0x1e4fbf){let _0x122de5='',_0x5c2a31=_0x2e19ce;for(;_0x5c2a31>0x0;){const _0x2192c1=(_0x5c2a31-0x1)%0x1a;_0x122de5=String['fromCharCode'](0x61+_0x2192c1)+_0x122de5,_0x5c2a31=Math['floor']((_0x5c2a31-0x1)/0x1a);}return _0x1e4fbf?_0x122de5['toUpperCase']():_0x122de5;}const rt=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function lt(_0x58e3f5,_0x57470a){let _0x1d8f40='',_0x1c1de4=_0x58e3f5;for(const {value:_0x3164e8,numeral:_0x556760}of rt)for(;_0x1c1de4>=_0x3164e8;)_0x1d8f40+=_0x556760,_0x1c1de4-=_0x3164e8;return _0x57470a?_0x1d8f40:_0x1d8f40['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x1867df{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x112e66}=this;_0x112e66['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x112e66['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x112e66['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x112e66['commands']['add']('footnotesStyle',new nt(_0x112e66)),_0x112e66['commands']['add']('footnotesStart',new it(_0x112e66)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x17d1f3}=this,{schema:_0xa41b45}=_0x17d1f3['model'];_0xa41b45['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x236f51}=this,{conversion:_0x5018a8,model:_0x415abe}=_0x236f51,{schema:_0x13f252}=_0x415abe;_0x5018a8['for']('upcast')['add'](_0x375552=>{_0x375552['on']('element:ol',(_0x597043,_0x57e3d5,_0x2d7188)=>{const _0x2c25d=_0x57e3d5['viewItem'],_0x492507=_0x57e3d5['modelCursor']?.['parent'];_0x2c25d['hasClass']('footnotes-list')&&_0x492507?.['is']('element','footnotesDefinitions')&&(function(_0x6c49e6,_0x4f8eae,_0x22d94d,_0x15d21c){if(!_0x15d21c['checkAttribute'](_0x4f8eae,'footnotesListStart'))return;let _0x5b8953=0x1;const _0xfed9b6=_0x22d94d['consumable']['consume'](_0x6c49e6,{'attributes':'start'});if(_0xfed9b6){const _0x23de8c=Number['parseInt'](_0x6c49e6['getAttribute']('start'),0xa);Number['isNaN'](_0x23de8c)||(_0x5b8953=_0x23de8c);}!_0xfed9b6&&_0x4f8eae['hasAttribute']('footnotesListStart')||_0x22d94d['writer']['setAttribute']('footnotesListStart',_0x5b8953,_0x4f8eae);}(_0x2c25d,_0x492507,_0x2d7188,_0x13f252),function(_0x3b6fc3,_0x2c2a26,_0x409bbc,_0xcd47fa){if(!_0xcd47fa['checkAttribute'](_0x2c2a26,'footnotesListStyle'))return;let _0x4b3f29='decimal',_0x3c8357=!0x1;if(_0x409bbc['consumable']['consume'](_0x3b6fc3,{'attributes':'type'})){const _0x2e3361={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x3b6fc3['getAttribute']('type')];_0x2e3361&&(_0x4b3f29=_0x2e3361),_0x3c8357=!0x0;}if(_0x409bbc['consumable']['consume'](_0x3b6fc3,{'styles':'list-style-type'})){const _0x84251=ct(_0x3b6fc3['getStyle']('list-style-type'));_0x84251&&(_0x4b3f29=_0x84251),_0x3c8357=!0x0;}!_0x3c8357&&_0x2c2a26['hasAttribute']('footnotesListStyle')||_0x409bbc['writer']['setAttribute']('footnotesListStyle',_0x4b3f29,_0x2c2a26);}(_0x2c25d,_0x492507,_0x2d7188,_0x13f252));});}),_0x5018a8['for']('downcast')['add'](_0xe96d6d=>{_0xe96d6d['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x469019,_0x14cbd4,_0x1ccf77)=>{if(!_0x1ccf77['consumable']['consume'](_0x14cbd4['item'],_0x469019['name']))return;const _0x4df05d=ut(_0x14cbd4['item'],_0x1ccf77['mapper']),{attributeNewValue:_0x309cc8}=_0x14cbd4;null==_0x309cc8||0x1===_0x309cc8?_0x1ccf77['writer']['removeAttribute']('start',_0x4df05d):_0x1ccf77['writer']['setAttribute']('start',String(_0x309cc8),_0x4df05d);}),_0xe96d6d['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x53cf9d,_0x108cad,_0x5a4cd0)=>{if(!_0x5a4cd0['consumable']['consume'](_0x108cad['item'],_0x53cf9d['name']))return;const _0x20e156=ut(_0x108cad['item'],_0x5a4cd0['mapper']),{attributeNewValue:_0x3b58e7}=_0x108cad;_0x3b58e7&&'decimal'!==_0x3b58e7?_0x5a4cd0['writer']['setStyle']('list-style-type',_0x3b58e7,_0x20e156):_0x5a4cd0['writer']['removeStyle']('list-style-type',_0x20e156);});});}['_definePostfixer'](){const {editor:_0x15e5b1}=this,{model:_0x21d1d9}=_0x15e5b1,_0x202ce6=_0x15e5b1['plugins']['get'](K),_0x11af49=this['_getDefaultListStyle'](),_0x44e30a=this['_getDefaultStartIndex']();_0x21d1d9['document']['registerPostFixer'](_0x382381=>{const _0x49ded9=_0x21d1d9['document']['differ']['getChanges']();let _0x46c5c8=!0x1;for(const _0x5b7035 of _0x49ded9){if('insert'!==_0x5b7035['type']||'$text'===_0x5b7035['name'])continue;const _0x367b48=_0x21d1d9['createRangeOn'](_0x5b7035['position']['nodeAfter']);for(const _0x33884f of _0x367b48['getItems']())_0x33884f['is']('element','footnotesDefinitions')&&(!_0x33884f['hasAttribute']('footnotesListStart')&&_0x21d1d9['schema']['checkAttribute'](_0x33884f,'footnotesListStart')&&(_0x382381['setAttribute']('footnotesListStart',_0x44e30a,_0x33884f),_0x46c5c8=!0x0),!_0x33884f['hasAttribute']('footnotesListStyle')&&_0x21d1d9['schema']['checkAttribute'](_0x33884f,'footnotesListStyle')&&(_0x382381['setAttribute']('footnotesListStyle',_0x11af49,_0x33884f),_0x46c5c8=!0x0));}return _0x46c5c8&&_0x202ce6['_updateFootnotesCounters'](_0x382381),_0x46c5c8;});}['_defineFormatter'](){const {editor:_0x158af9}=this;_0x158af9['plugins']['get'](K)['setFootnoteFormatter'](_0x5a0af8=>this['_formatFootnoteListValue'](_0x5a0af8));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2f34b8,value:_0x8e8d56,digits:_0x6abfcc}){const _0x562885=_0x2f34b8['getAttribute']('footnotesListStyle'),_0x2dd889=_0x2f34b8['getAttribute']('footnotesListStart'),_0x35c424=Math['floor'](_0x8e8d56)+(_0x2dd889??0x1)-0x1;switch(_0x562885){case'decimal-leading-zero':return function(_0x318ad2,_0x12ef27){return String(_0x318ad2)['padStart'](_0x12ef27,'0');}(_0x35c424,Math['max'](0x2,_0x6abfcc));case'lower-alpha':case'lower-latin':return st(_0x35c424,!0x1);case'upper-alpha':case'upper-latin':return st(_0x35c424,!0x0);case'lower-roman':return lt(_0x35c424,!0x1);case'upper-roman':return lt(_0x35c424,!0x0);case'arabic-indic':return String(_0x35c424)['replace'](/\d/g,_0x5efdee=>ft[Number(_0x5efdee)]);default:return String(_0x35c424);}}}function ct(_0x227e54){if('string'==typeof _0x227e54){const _0xcb37be=et[_0x227e54];if(_0xcb37be)return _0xcb37be;if(ot['includes'](_0x227e54))return _0x227e54;}return null;}function ut(_0x495bca,_0x57ab33){const _0x1c3350=_0x57ab33['toViewElement'](_0x495bca);return Array['from'](_0x1c3350['getChildren']())['find'](_0x1a45fd=>_0x1a45fd['is']('element','ol')&&_0x1a45fd['hasClass']('footnotes-list'));}class dt extends _0x35c2e6{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x54df5d();['keystrokes']=new _0x51ce06();['focusables']=new _0x4ac9cc();['focusCycler'];constructor(_0x1086ac,{styleButtonViews:_0x5195e8,styleGridAriaLabel:_0x49a1cf}){super(_0x1086ac),(this['focusCycler']=new _0x5dbf80({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5195e8,_0x49a1cf),[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 _0x19a537 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x19a537['element']);_0x41c2d7({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x4a565c['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 _0x5aa190=_0x3c4f93=>_0x3c4f93['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5aa190),this['keystrokes']['set']('arrowleft',_0x5aa190),this['keystrokes']['set']('arrowup',_0x5aa190),this['keystrokes']['set']('arrowdown',_0x5aa190);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4bf227,_0x1bff70){const _0xae1cd=new _0x35c2e6(this['locale']);return _0xae1cd['children']=_0xae1cd['createCollection'](),_0xae1cd['children']['addMany'](_0x4bf227),_0xae1cd['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1bff70,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xae1cd['children']}),_0xae1cd['children']['delegate']('execute')['to'](this),_0xae1cd['focus']=function(){for(const _0x4b815f of this['children'])if(_0x4b815f instanceof _0xb842d2&&_0x4b815f['isOn'])return void _0x4b815f['focus']();this['children']['first']['focus']();},_0xae1cd['focusTracker']=new _0x54df5d(),_0xae1cd['keystrokes']=new _0x51ce06(),_0xae1cd['render'](),_0xae1cd['keystrokes']['listenTo'](_0xae1cd['element']),this['children']['add'](_0xae1cd),_0xae1cd;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3ff173=this['_createStartIndexPropertyView'](),_0x382654=[_0x3ff173],_0x2c935e=new _0x378bcf(this['locale'],_0x382654);return _0x2c935e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2c935e['buttonView']['bind']('isEnabled')['toMany'](_0x382654,'isEnabled',(..._0x5d4d5)=>_0x5d4d5['some'](_0x36599f=>_0x36599f)),_0x2c935e['buttonView']['on']('change:isEnabled',(_0x2388c0,_0x232211,_0xf46dfb)=>{_0xf46dfb||(_0x2c935e['isCollapsed']=!0x0);}),this['children']['add'](_0x2c935e),[_0x3ff173,_0x2c935e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4b3e77=new _0x4973a3(this['locale'],_0x1055d2);return _0x4b3e77['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4b3e77['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4b3e77['fieldView']['on']('input',()=>{const _0x1076c0=_0x4b3e77['fieldView']['element'],_0x69cb48=_0x1076c0['valueAsNumber'];Number['isNaN'](_0x69cb48)?_0x4b3e77['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1076c0['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x69cb48}):_0x4b3e77['errorText']=t(_0x69cb48<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4b3e77;}}class ht extends _0x1867df{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4e01c0,_0x1835de];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2bc7a0}=this,{componentFactory:_0x2dab4e}=_0x2bc7a0['ui'];_0x2bc7a0['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2dab4e['add']('footnotesStyle',function(_0x38a220){return _0x3d7b90=>{const {t:t}=_0x3d7b90,_0x127564=_0x38a220['commands']['get']('footnotesStyle'),_0x5f0942=_0x769365(_0x3d7b90),{buttonView:_0x5cc945}=_0x5f0942;return _0x5f0942['class']='ck-footnotes-styles-dropdown',_0x5f0942['bind']('isEnabled')['to'](_0x127564,'isEnabled'),_0x5cc945['set']({'label':t('Footnotes\x20style'),'icon':_0x402a18,'tooltip':!0x0}),_0x5f0942['once']('change:isOpen',()=>{const _0x3392f0=function({editor:_0x43ca14,dropdownView:_0x56da60}){const {t:t}=_0x43ca14['locale'],_0x2f51bb=t('Footnotes\x20definitions\x20styles'),_0x37fddf=function(_0x56a3fa){const {t:t}=_0x56a3fa['locale'],_0x58eb3d=_0x56a3fa['config']['get']('footnotes.footnotesProperties.listStyles'),_0xb957ff=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x398909},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x3014f7},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x261111},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x497bca},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x584756},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x40a812},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x3301f3}];return _0x58eb3d['map'](_0x308369=>{const _0x3017fe=ct(_0x308369),_0x3d7f5e=_0xb957ff['find'](_0x2a4dbf=>_0x2a4dbf['style']===_0x3017fe);return function(_0x570a9e,_0x498102){const {locale:_0x2d399f}=_0x570a9e,{label:_0x2f512b,icon:_0x55a19c,tooltip:_0x19fdb1,style:_0x5e67d7}=_0x498102,_0x44407c=_0x570a9e['commands']['get']('footnotesStyle'),_0x1331da=new _0xb842d2(_0x2d399f);return _0x1331da['set']({'label':_0x2f512b,'icon':_0x55a19c,'tooltip':_0x19fdb1}),_0x1331da['bind']('isOn')['to'](_0x44407c,'value',_0x4e1e56=>_0x4e1e56===_0x5e67d7),_0x1331da['bind']('isEnabled')['to'](_0x44407c,'isEnabled'),_0x1331da['on']('execute',()=>{_0x570a9e['execute']('footnotesStyle',{'value':_0x5e67d7}),_0x570a9e['editing']['view']['focus']();}),_0x1331da;}(_0x56a3fa,_0x3d7f5e);});}(_0x43ca14),_0x16d1dc=new dt(_0x43ca14['locale'],{'styleGridAriaLabel':_0x2f51bb,'styleButtonViews':_0x37fddf}),_0x34f74d=_0x43ca14['commands']['get']('footnotesStart');return _0x16d1dc['startIndexFieldView']['bind']('isEnabled')['to'](_0x34f74d),_0x16d1dc['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x34f74d),_0x16d1dc['on']('footnotesListStart',(_0x37b4ad,_0x5a8c7f)=>{_0x43ca14['execute']('footnotesStart',{'value':_0x5a8c7f['startIndex']});}),_0x16d1dc['delegate']('execute')['to'](_0x56da60),_0x16d1dc;}({'editor':_0x38a220,'dropdownView':_0x5f0942});_0x5f0942['panelView']['children']['add'](_0x3392f0);}),_0x5f0942;};}(_0x2bc7a0));}['afterInit'](){const {editor:_0x58f18c}=this,{t:t}=_0x58f18c['locale'],_0x25ed49=_0x58f18c['plugins']['get'](_0x1835de),{defaultPositions:_0x14fc0f}=_0x2aebde;_0x25ed49['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x58f18c['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x52065b=>{let _0x3b55a3=_0x52065b['getFirstPosition']()?.['parent'];return _0x3b55a3?.['is']('$text')&&(_0x3b55a3=_0x3b55a3['parent']),_0x3b55a3?.['is']('element')?_0x3b55a3['findAncestor'](q):null;},'positions':[_0x14fc0f['southArrowNorth'],_0x14fc0f['southArrowNorthMiddleWest'],_0x14fc0f['southArrowNorthMiddleEast'],_0x14fc0f['southArrowNorthWest'],_0x14fc0f['southArrowNorthEast'],_0x14fc0f['northArrowSouth'],_0x14fc0f['northArrowSouthMiddleWest'],_0x14fc0f['northArrowSouthMiddleEast'],_0x14fc0f['northArrowSouthWest'],_0x14fc0f['northArrowSouthEast'],_0x14fc0f['viewportStickyNorth']]});}}class mt extends _0x1867df{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[at,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Z as Footnotes,J as FootnotesClipboard,$ as FootnotesEditing,mt as FootnotesProperties,at as FootnotesPropertiesEditing,ht as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,K as FootnotesTracker,W as FootnotesUI,V as InsertFootnoteCommand};
23
+ import{Plugin as _0x5cfb3d,Command as _0x21c5d1}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2e193e,isWidget as _0x5df730,toWidgetEditable as _0x3d3309,WidgetToolbarRepository as _0x47cf7f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3c3a12,logWarning as _0x26fd17,FocusTracker as _0x4fc2a7,KeystrokeHandler as _0x17cf75,global as _0x56deab}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x418968,ClickObserver as _0x1a169e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2d4c41}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4453c5,ButtonView as _0x3dc254,View as _0x325213,ViewCollection as _0x3b6b0c,FocusCycler as _0xe04fd5,addKeyboardHandlingForGrid as _0x4ef8a,CollapsibleView as _0x17e2e1,LabeledFieldView as _0x37d3fc,createLabeledInputNumber as _0x326cca,ContextualBalloon as _0x42c45b,BalloonPanelView as _0x272e06,createDropdown as _0xedf58b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2968f4,IconListStyleDecimal as _0xcf9b40,IconListStyleDecimalLeadingZero as _0x1ed7cb,IconListStyleLowerRoman as _0x10910d,IconListStyleUpperRoman as _0x56bbdb,IconListStyleLowerLatin as _0x1c230,IconListStyleUpperLatin as _0x285424,IconListStyleArabicIndic as _0xf9e9b6}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x491954,_0x244afa){this['_model']=_0x491954,this['_elementName']=_0x244afa['elementName'],this['_getElementKey']=_0x244afa['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x58f571){const _0x396460=new Set(),_0x2dfcaa=new Map();for(const _0x13f0c4 of _0x58f571){if('insert'===_0x13f0c4['type']&&'$text'!==_0x13f0c4['name']&&_0x13f0c4['position']['nodeAfter']){const _0x9c3334=this['_model']['createRangeOn'](_0x13f0c4['position']['nodeAfter']);for(const _0x59ff8b of _0x9c3334['getItems']()){if(!_0x59ff8b['is']('element',this['_elementName']))continue;const _0x4d130c=this['_getElementKey'](_0x59ff8b);_0x2dfcaa['has'](_0x4d130c)||_0x2dfcaa['set'](_0x4d130c,[]),_0x2dfcaa['get'](_0x4d130c)['push'](_0x59ff8b);}}if('remove'===_0x13f0c4['type']&&_0x13f0c4['name']===this['_elementName']){const _0x2ceef1=this['_getElementKey']({'getAttribute':_0x1e6181=>_0x13f0c4['attributes']['get'](_0x1e6181)});_0x396460['add'](_0x2ceef1);}}for(const [_0x11e8a7,_0x592114]of this['_trackedElements'])'$graveyard'===_0x592114['root']['rootName']&&_0x396460['add'](_0x11e8a7);for(const _0xfd358c of _0x396460)this['_trackedElements']['delete'](_0xfd358c);for(const [_0x16c592,_0x472cd9]of _0x2dfcaa)this['_trackedElements']['set'](_0x16c592,_0x472cd9[_0x472cd9['length']-0x1]);const _0x20fa34=new Set();for(const [_0x1c7129,_0x21b303]of _0x2dfcaa)_0x396460['has'](_0x1c7129)&&(_0x20fa34['add'](_0x21b303[0x0]),_0x21b303['length']>0x1?_0x2dfcaa['set'](_0x1c7129,_0x21b303['slice'](0x1)):_0x2dfcaa['delete'](_0x1c7129),_0x396460['delete'](_0x1c7129));return{'removed':Array['from'](_0x396460),'inserted':Array['from'](_0x2dfcaa['values']())['flat'](),'moved':Array['from'](_0x20fa34)};}}class K extends _0x5cfb3d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x933284){super(_0x933284),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x111916=>_0x111916['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1b4b08=>_0x1b4b08['getAttribute']('footnoteId')});}['init'](){const {editor:_0x15bf37}=this,{model:_0x56bb50,data:_0x16b00e}=_0x15bf37;_0x56bb50['document']['registerPostFixer'](_0x33030a=>{const _0x1b3d0d=_0x56bb50['document']['differ']['getChanges']();let _0x47860c=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x33030a,_0x1b3d0d)&&(_0x47860c=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x33030a,_0x1b3d0d)&&(_0x47860c=!0x0),this['_handleFootnoteReferencesChanges'](_0x33030a,_0x1b3d0d)&&(_0x47860c=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x33030a)&&(_0x47860c=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x33030a)&&(_0x47860c=!0x0),this['_sortFootnoteDefinitions'](_0x33030a)&&(_0x47860c=!0x0),_0x47860c;}),this['listenTo'](_0x56bb50['document'],'change:data',()=>{_0x56bb50['enqueueChange']({'isUndoable':!0x1},_0x413969=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x413969);});},{'priority':'low'}),this['listenTo'](_0x16b00e,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x194e00){return this['_footnotes']['find'](_0x573aa4=>_0x573aa4['id']===_0x194e00)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5ade32){this['_footnoteFormatter']=_0x5ade32;}['_updateFootnotesCounters'](_0xbe7d6d,_0x22d6f3=0x0){let _0x16eaa0=!0x1;for(let _0x3b3fa5=_0x22d6f3;_0x3b3fa5<this['_footnotes']['length'];_0x3b3fa5++)this['_updateFootnoteRefCounter'](_0xbe7d6d,_0x3b3fa5)&&(_0x16eaa0=!0x0);return _0x16eaa0;}['_insertEmptyFootnotesDefinitionsContainer'](_0x494146,_0x212eef){const _0x7bf4cf=_0x494146['createElement']('footnotesDefinitions',{});return _0x494146['append'](_0x7bf4cf,_0x212eef),this['_footnotesDefinitions']=_0x7bf4cf,_0x7bf4cf;}['_ensureFootnotesDefinitionsContainerExists'](_0x4a7094){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x468343=this['_footnotes'][0x0]['reference']['root'],_0x1e08ee=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4a7094,_0x468343);for(const _0x4f6a72 of this['_footnotes'])_0x4f6a72['definition']['parent']||_0x4a7094['insert'](_0x4f6a72['definition'],_0x1e08ee,'end');this['_updateFootnotesCounters'](_0x4a7094);}['_handleFootnotesDefinitionsObjectChanges'](_0x4c3b65,_0x1231e2){let _0x2daf5a=!0x1;const {inserted:_0x25d0fb,removed:_0x3f2522,moved:_0x42368e}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1231e2);if(_0x42368e['length']&&(this['_footnotesDefinitions']=_0x42368e[0x0]),_0x25d0fb['length']){if(_0x25d0fb['length']>0x1||this['_footnotesDefinitions']&&_0x25d0fb['some'](_0xd44dc7=>_0xd44dc7!==this['_footnotesDefinitions'])){const _0x46c21d=_0x4c3b65['createElement']('footnotesDefinitions',{}),_0x1745e1=[];this['_footnotesDefinitions']&&_0x1745e1['push'](this['_footnotesDefinitions']),_0x1745e1['push'](..._0x25d0fb),_0x4c3b65['insert'](_0x46c21d,_0x1745e1[0x0],'before');for(const _0x3b2e22 of _0x1745e1)_0x4c3b65['move'](_0x4c3b65['createRangeIn'](_0x3b2e22),_0x4c3b65['createPositionAt'](_0x46c21d,'end')),_0x4c3b65['remove'](_0x3b2e22);this['_footnotesDefinitions']=_0x46c21d,this['_updateFootnotesCounters'](_0x4c3b65),_0x2daf5a=!0x0;}else this['_footnotesDefinitions']=_0x25d0fb[0x0];}if(_0x3f2522['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x530a3b of this['_footnotes'])_0x4c3b65['remove'](_0x530a3b['reference']),_0x2daf5a=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2daf5a;}['_handleFootnoteDefinitionsChanges'](_0x2e78de,_0x4992a4){let _0x424177=!0x1;const _0x498d22=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x3e44ff,moved:_0x3fbb9e}=this['_footnoteDefsTracker']['getChanges'](_0x4992a4);for(const _0x585fa8 of[..._0x3fbb9e,..._0x3e44ff]){const _0x4b97b4=_0x585fa8['getAttribute']('footnoteId'),_0x94f389=this['getFootnote'](_0x4b97b4);_0x94f389&&(_0x94f389['definition']=_0x585fa8),j(_0x2e78de,_0x498d22,_0x585fa8)&&(_0x424177=!0x0);}return _0x424177;}['_handleFootnoteReferencesChanges'](_0x4f1055,_0x434263){let _0x315f3d=!0x1;const {removed:_0x28f3a4,inserted:_0x47e85a,moved:_0x6823}=this['_footnoteRefsTracker']['getChanges'](_0x434263);for(const _0x5b1db8 of _0x28f3a4)this['_handleRemoveFootnoteReferenceById'](_0x4f1055,_0x5b1db8)&&(_0x315f3d=!0x0);for(const _0x4ad3f2 of _0x47e85a)this['_handleInsertedFootnoteReference'](_0x4f1055,_0x4ad3f2)&&(_0x315f3d=!0x0);for(const _0x4b05d0 of _0x6823)this['_handleMovedFootnoteReference'](_0x4f1055,_0x4b05d0)&&(_0x315f3d=!0x0);return _0x315f3d;}['_handleFootnotesDefinitionsObjectSync'](_0xe8a4c9){if(!this['_footnotesDefinitions'])return!0x1;let _0x4c272b=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2a3d6b=[];for(const _0x5c9437 of this['_footnotesDefinitions']['getChildren']()){const _0x1ee5cc=_0x5c9437['getAttribute']('footnoteId');this['getFootnote'](_0x1ee5cc)||(_0x2a3d6b['unshift'](_0x5c9437),_0x4c272b=!0x0);}for(const _0x2fb2ce of _0x2a3d6b)_0xe8a4c9['remove'](_0x2fb2ce);}const _0x4b0d6b=new Set(),_0x380639=[];for(const _0x29d069 of this['_footnotesDefinitions']['getChildren']()){const _0x24723d=_0x29d069['getAttribute']('footnoteId');_0x4b0d6b['has'](_0x24723d)?(_0x380639['unshift'](_0x29d069),_0x4c272b=!0x0):_0x4b0d6b['add'](_0x24723d);}for(const _0x4f0fcc of _0x380639)_0xe8a4c9['remove'](_0x4f0fcc);return this['_footnotesDefinitions']['childCount']||(_0xe8a4c9['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4c272b=!0x0),_0x4c272b;}['_handleInsertedFootnoteReference'](_0x419e6c,_0x4c7573){if(this['_footnotes']['find'](_0x4a39e8=>_0x4a39e8['reference']===_0x4c7573))return!0x1;let _0x17e4f8=!0x1;const _0x18f100=_0x4c7573['getAttribute']('footnoteId'),_0x4904d0=this['_footnotes']['findIndex'](_0x160da5=>_0x160da5['id']===_0x18f100);-0x1!==_0x4904d0&&(_0x419e6c['remove'](this['_footnotes'][_0x4904d0]['reference']),this['_footnotes']['splice'](_0x4904d0,0x1),_0x17e4f8=!0x0);let _0x232edd=this['_footnotesDefinitions']?function(_0x36cda7,_0x23ce53){for(const _0x73d316 of _0x36cda7['getChildren']())if(_0x73d316['getAttribute']('footnoteId')===_0x23ce53)return _0x73d316;return null;}(this['_footnotesDefinitions'],_0x18f100):null;_0x232edd||(_0x232edd=_0x419e6c['createElement']('footnoteDefinition',{'footnoteId':_0x18f100}),this['_footnotesDefinitions']&&(_0x419e6c['insert'](_0x232edd,this['_footnotesDefinitions'],'end'),_0x17e4f8=!0x0));const _0x16bbd3={'id':_0x18f100,'reference':_0x4c7573,'definition':_0x232edd},_0x387213=T(this['editor']['model'],this['_footnotes'],_0x4c7573);this['_footnotes']['splice'](_0x387213,0x0,_0x16bbd3);let _0x533d38=_0x387213;return-0x1!==_0x4904d0&&(_0x533d38=Math['min'](_0x387213,_0x4904d0)),this['_updateFootnotesCounters'](_0x419e6c,_0x533d38)&&(_0x17e4f8=!0x0),_0x17e4f8;}['_handleRemoveFootnoteReferenceById'](_0x1a9a69,_0x450684){const _0x23255d=this['_footnotes']['findIndex'](_0x2ec79b=>_0x2ec79b['id']===_0x450684);if(-0x1===_0x23255d)return!0x1;let _0x1aee84=!0x1;const _0x35c13c=this['_footnotes'][_0x23255d];return'$graveyard'!==_0x35c13c['definition']['root']['rootName']&&(_0x1a9a69['remove'](_0x35c13c['definition']),_0x1aee84=!0x0),this['_footnotes']['splice'](_0x23255d,0x1),this['_updateFootnotesCounters'](_0x1a9a69,_0x23255d)&&(_0x1aee84=!0x0),_0x1aee84;}['_handleMovedFootnoteReference'](_0x277d77,_0x481f8e){const _0x4f47dc=_0x481f8e['getAttribute']('footnoteId'),_0x26b80d=this['_footnotes']['findIndex'](_0x11d05b=>_0x11d05b['id']===_0x4f47dc),_0xfeb511=this['_footnotes'][_0x26b80d];let _0x40e804=!0x1;_0xfeb511['reference']=_0x481f8e,this['_footnotes']['splice'](_0x26b80d,0x1);const _0x1b2ed5=T(this['editor']['model'],this['_footnotes'],_0x481f8e);return this['_footnotes']['splice'](_0x1b2ed5,0x0,_0xfeb511),this['_updateFootnotesCounters'](_0x277d77,Math['min'](_0x26b80d,_0x1b2ed5))&&(_0x40e804=!0x0),_0x40e804;}['_updateFootnoteRefCounter'](_0x7ca20c,_0x1b26a2){if(!this['_footnotesDefinitions'])return!0x1;const _0x1eb578=this['_footnotes'][_0x1b26a2];let _0xa08306;return _0xa08306=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1eb578,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1b26a2+0x1}):String(_0x1b26a2+0x1),_0x1eb578['reference']['getAttribute']('footnoteCounter')!=_0xa08306&&(_0x7ca20c['setAttribute']('footnoteCounter',_0xa08306,_0x1eb578['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x11bb8d){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2ddb60,_0x4bbbed){if(_0x2ddb60['length']!==_0x4bbbed['length'])return!0x1;for(let _0x1b8fec=0x0;_0x1b8fec<_0x2ddb60['length'];_0x1b8fec++)if(_0x2ddb60[_0x1b8fec]!==_0x4bbbed[_0x1b8fec])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5bbf49=>_0x5bbf49['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5866af=>_0x5866af['getAttribute']('footnoteId'))))return!0x1;let _0x5f6b50=!0x1;for(let _0x2eee98=0x0;_0x2eee98<this['_footnotes']['length'];_0x2eee98++){const _0x14d83c=this['_footnotes'][_0x2eee98],_0x57def1=_0x11bb8d['createPositionBefore'](_0x14d83c['definition']),_0x49379c=_0x11bb8d['createPositionAt'](this['_footnotesDefinitions'],_0x2eee98);_0x57def1['isEqual'](_0x49379c)||(_0x11bb8d['move'](_0x11bb8d['createRangeOn'](_0x14d83c['definition']),_0x49379c),_0x5f6b50=!0x0);}return _0x5f6b50;}['_ensureFootnotesReferencesHaveProperOrder'](_0x367c08){if(!this['_footnotes']['length'])return!0x1;const {model:_0xccc5cf}=this['editor'];let _0x454386=!0x1;for(let _0x903a47=0x0;_0x903a47<this['_footnotes']['length']-0x1;_0x903a47++){const _0x31e3e2=this['_footnotes'][_0x903a47],_0x14a0ad=this['_footnotes'][_0x903a47+0x1],_0x2e7b49=_0xccc5cf['createPositionBefore'](_0x31e3e2['reference']),_0x5de2fb=_0xccc5cf['createPositionBefore'](_0x14a0ad['reference']);'after'===_0x2e7b49['compareWith'](_0x5de2fb)&&(this['_handleMovedFootnoteReference'](_0x367c08,_0x31e3e2['reference']),_0x903a47=-0x1,_0x454386=!0x0);}return _0x454386;}}function j(_0x5e90b6,_0x433165,_0x10af1b){if(_0x10af1b['childCount'])return!0x1;const _0xc219a1=_0x433165?'paragraph':'footnoteInlineContent';return _0x5e90b6['insert'](_0x5e90b6['createElement'](_0xc219a1),_0x10af1b),!0x0;}function T(_0x823e5a,_0x476478,_0x4fa14d){if(0x0===_0x476478['length'])return 0x0;const _0x53af1c=_0x823e5a['createPositionBefore'](_0x4fa14d);for(let _0xa4b580=0x0;_0xa4b580<_0x476478['length'];_0xa4b580++){const _0x814930=_0x476478[_0xa4b580],_0x1811ff=_0x823e5a['createPositionBefore'](_0x814930['reference']);if('before'===_0x53af1c['compareWith'](_0x1811ff))return _0xa4b580;}const _0x56c899=_0x4fa14d['root'];let _0x530df5=-0x1;for(let _0x5a8d9c=_0x476478['length']-0x1;_0x5a8d9c>=0x0;_0x5a8d9c--)if(_0x476478[_0x5a8d9c]['reference']['root']===_0x56c899){_0x530df5=_0x5a8d9c;break;}if(-0x1!==_0x530df5)return _0x530df5+0x1;const _0x5e4f83=_0x823e5a['document']['getRootNames'](),_0x185346=_0x5e4f83['indexOf'](_0x56c899['rootName']),_0x576618=_0x5e4f83[_0x185346+0x1];if(_0x576618){for(let _0x44c454=0x0;_0x44c454<_0x476478['length'];_0x44c454++)if(_0x476478[_0x44c454]['reference']['root']['rootName']===_0x576618)return _0x44c454;}return _0x476478['length'];}class V extends _0x21c5d1{['refresh'](){const _0x20dffd=this['editor']['model']['document']['selection'],_0x3c1636=this['_getPositionToInsertFootnote'](_0x20dffd);this['isEnabled']=!!_0x3c1636;}['execute'](_0x4cad3f){const {editor:_0x18732c}=this,{model:_0x3f4ff9}=_0x18732c,{selection:_0x3e9642}=_0x3f4ff9['document'],_0x59a48d=this['_getPositionToInsertFootnote'](_0x3e9642);if(!_0x59a48d)return;const _0x28bdc0=_0x18732c['plugins']['get']('FootnotesEditing'),_0x248704=_0x4cad3f?.['footnoteId']??_0x3c3a12();!function(_0x32f96b){return'string'==typeof _0x32f96b&&_0x32f96b['length']>0x0&&!/\s/['test'](_0x32f96b)&&!/^\d/['test'](_0x32f96b);}(_0x248704)?_0x26fd17('insert-footnote-command-executed-with-invalid-id'):(_0x3f4ff9['change'](_0x2cd205=>{const _0x38a019=_0x2cd205['createElement']('footnoteRef',{'footnoteId':_0x248704});_0x3f4ff9['insertObject'](_0x38a019,_0x59a48d,null);}),_0x28bdc0['_moveSelectionToFootnoteDefinition'](_0x248704));}['_getPositionToInsertFootnote'](_0x51b0f1){const {model:_0x5e4b51}=this['editor'],{schema:_0x12cf49}=_0x5e4b51,_0x3fb668=_0x51b0f1['getFirstRange']();for(const _0xf6954 of _0x3fb668['getItems']())if(_0x12cf49['isBlock'](_0xf6954)||_0x12cf49['isObject'](_0xf6954))return null;const _0x4acc0e=_0x3fb668['end'];return _0x12cf49['checkChild'](_0x4acc0e,'footnoteRef')?_0x4acc0e:null;}}class $ extends _0x5cfb3d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5621d9}=this;_0x5621d9['config']['define']('footnotes.multiBlock',!0x0),_0x5621d9['commands']['add']('insertFootnote',new V(_0x5621d9)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x251dd9){const _0x3556d8=_0x28cac0([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x42cfb5=0x47a28506,_0x388217=0x47a50cc6^_0x42cfb5,_0x2f423c=window[_0x28cac0([0x44,0x61,0x74,0x65])][_0x28cac0([0x6e,0x6f,0x77])](),_0x4b31a0=_0x251dd9[_0x28cac0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cb857=new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f3a4=>{_0x4b31a0[_0x28cac0([0x6f,0x6e,0x63,0x65])](_0x28cac0([0x72,0x65,0x61,0x64,0x79]),_0x20f3a4);}),_0x76710f={[_0x28cac0([0x6b,0x74,0x79])]:_0x28cac0([0x45,0x43]),[_0x28cac0([0x75,0x73,0x65])]:_0x28cac0([0x73,0x69,0x67]),[_0x28cac0([0x63,0x72,0x76])]:_0x28cac0([0x50,0x2d,0x32,0x35,0x36]),[_0x28cac0([0x78])]:_0x28cac0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x28cac0([0x79])]:_0x28cac0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x28cac0([0x61,0x6c,0x67])]:_0x28cac0([0x45,0x53,0x32,0x35,0x36])},_0x33cace=_0x4b31a0[_0x28cac0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28cac0([0x67,0x65,0x74])](_0x28cac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59d2a6(){let _0x2323c5,_0x156973=null,_0x3181a4=null;try{if(_0x33cace==_0x28cac0([0x47,0x50,0x4c]))return _0x28cac0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2323c5=_0x4abc63(),!_0x2323c5)return _0x28cac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2323c5[_0x28cac0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3181a4=_0x3ef616(_0x2323c5[_0x28cac0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2323c5[_0x28cac0([0x6a,0x74,0x69])])),await _0x5c5cee()?_0x285848()?_0x523c5d()?_0x28cac0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1616f6()?(_0x2323c5[_0x28cac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28cac0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x156973=_0x5c461e(_0x28cac0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49bbbd()):_0x28cac0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28cac0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28cac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28cac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x523c5d(){const _0x3c0031=[_0x28cac0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28cac0([0x74,0x72,0x69,0x61,0x6c])][_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2323c5[_0x28cac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f423c/0x3e8:0xe10*_0x388217;return _0x2323c5[_0x28cac0([0x65,0x78,0x70])]<_0x3c0031;}function _0x285848(){const _0x1bbe27=_0x2323c5[_0x28cac0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1bbe27&&(!!_0x1bbe27[_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28cac0([0x2a]))||!!_0x1bbe27[_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28cac0([0x46,0x4f,0x4f])));}function _0x1616f6(){const _0x549d66=_0x2323c5[_0x28cac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x549d66||0x0==_0x549d66[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4eea5b}=new URL(window[_0x28cac0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x549d66[_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eea5b))return!0x0;const _0x4f1ab6=_0x4eea5b[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])](_0x28cac0([0x2e]));return _0x549d66[_0x28cac0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41ffe1=>_0x41ffe1[_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28cac0([0x2a])))[_0x28cac0([0x6d,0x61,0x70])](_0xa34c7=>_0xa34c7[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])](_0x28cac0([0x2e])))[_0x28cac0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x220093=>_0x220093[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f1ab6[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28cac0([0x6d,0x61,0x70])](_0x4edde0=>Array(_0x4f1ab6[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4edde0[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28cac0([0x66,0x69,0x6c,0x6c])](_0x4edde0[0x0]===_0x28cac0([0x2a])?_0x28cac0([0x2a]):'')[_0x28cac0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4edde0))[_0x28cac0([0x73,0x6f,0x6d,0x65])](_0x221455=>_0x4f1ab6[_0x28cac0([0x65,0x76,0x65,0x72,0x79])]((_0x470bd6,_0x2aa8a7)=>_0x221455[_0x2aa8a7]===_0x470bd6||_0x221455[_0x2aa8a7]===_0x28cac0([0x2a])));}function _0x49bbbd(){return _0x156973&&_0x3181a4?new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfec61b,_0xb0bf0d)=>{_0x156973[_0x28cac0([0x74,0x68,0x65,0x6e])](_0xfec61b,_0xb0bf0d),_0x3181a4[_0x28cac0([0x74,0x68,0x65,0x6e])](_0x5bf823=>{_0x5bf823!=_0x28cac0([0x56,0x61,0x6c,0x69,0x64])&&_0xfec61b(_0x5bf823);},_0xb0bf0d);}):_0x156973||_0x3181a4||_0x28cac0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ef616(_0x1d5412,_0x43eb0c){return new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3952b5=>{if(_0xfb8b98())return _0x3952b5(_0x28cac0([0x56,0x61,0x6c,0x69,0x64]));_0xd4c43a(),_0x4b31a0[_0x28cac0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28cac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14eb5d=!0x1;const _0x3881b1=_0x3c3a12();function _0x46aac8(_0x30d63c){return!!_0x30d63c&&(typeof _0x30d63c===_0x28cac0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30d63c===_0x28cac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30d63c[_0x28cac0([0x74,0x68,0x65,0x6e])]===_0x28cac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30d63c[_0x28cac0([0x63,0x61,0x74,0x63,0x68])]===_0x28cac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x425220(_0x559d9f){_0x274877(_0x559d9f)[_0x28cac0([0x74,0x68,0x65,0x6e])](_0xf21f0=>{if(!_0xf21f0||_0xf21f0[_0x28cac0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28cac0([0x6f,0x6b]))return _0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ced79(_0x23d3db(_0x3881b1+_0x43eb0c))!=_0xf21f0[_0x28cac0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28cac0([0x56,0x61,0x6c,0x69,0x64]);})[_0x28cac0([0x74,0x68,0x65,0x6e])](_0x78f39=>(_0x817ec5(),_0x78f39),()=>{const _0x65d71c=_0x3aa3dd();return null==_0x65d71c?(_0x817ec5(),_0x28cac0([0x56,0x61,0x6c,0x69,0x64])):_0x28cac0(_0x2f423c-_0x65d71c>(0x63ae0106^_0x42cfb5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28cac0([0x74,0x68,0x65,0x6e])](_0x3952b5)[_0x28cac0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3952b5(_0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x336657=0x47946b86^_0x42cfb5;function _0x817ec5(){const _0x4eb95e=_0x28cac0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ced79(_0x23d3db(_0x1d5412)),_0x4bc523=_0x10b2f3(_0x3ced79(window[_0x28cac0([0x4d,0x61,0x74,0x68])][_0x28cac0([0x63,0x65,0x69,0x6c])](_0x2f423c/_0x336657)));window[_0x28cac0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28cac0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4eb95e,_0x4bc523);}function _0x3aa3dd(){const _0x4e905e=_0x28cac0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ced79(_0x23d3db(_0x1d5412)),_0x27c3bb=window[_0x28cac0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28cac0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e905e);return _0x27c3bb?window[_0x28cac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10b2f3(_0x27c3bb),0x10)*_0x336657:null;}function _0x274877(_0x74ffa){return new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c8758,_0x23dea2)=>{_0x74ffa[_0x28cac0([0x74,0x68,0x65,0x6e])](_0x4c8758,_0x23dea2),window[_0x28cac0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23dea2,0x47a351c6^_0x42cfb5);});}}_0x4b31a0[_0x28cac0([0x6f,0x6e])](_0x28cac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4945ad,_0x27d745)=>{if(_0x27d745[0x0]!=_0x1d5412)return _0x3952b5(_0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27d745[0x1]={..._0x27d745[0x1],[_0x28cac0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3881b1};},{[_0x28cac0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28cac0([0x68,0x69,0x67,0x68])}),_0x4b31a0[_0x28cac0([0x6f,0x6e])](_0x28cac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xeb0774=>{_0x46aac8(_0xeb0774[_0x28cac0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14eb5d=!0x0,_0x425220(_0xeb0774[_0x28cac0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28cac0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28cac0([0x6c,0x6f,0x77])}),_0x4cb857[_0x28cac0([0x74,0x68,0x65,0x6e])](()=>{_0x14eb5d||_0x3952b5(_0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfb8b98(){return _0x4b31a0[_0x28cac0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28cac0([0x76,0x69,0x65,0x77])][_0x28cac0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28cac0([0x61,0x75,0x74,0x6f]);}function _0xd4c43a(){_0x4b31a0[_0x28cac0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28cac0([0x76,0x69,0x65,0x77])][_0x28cac0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28cac0([0x61,0x75,0x74,0x6f]);}}function _0x5c461e(_0x4878c4){const _0x56671f=[new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329e99=>setTimeout(_0x329e99,0x47abbbca^_0x42cfb5)),_0x4cb857[_0x28cac0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ba00b=>{let _0x16c4e7=0x0;_0x4b31a0[_0x28cac0([0x6d,0x6f,0x64,0x65,0x6c])][_0x28cac0([0x6f,0x6e])](_0x28cac0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x276d6e,_0x1a1e94)=>{_0x1a1e94[0x0][_0x28cac0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16c4e7++,_0x16c4e7==(0x47a280ee^_0x42cfb5)&&(_0x4ba00b(),_0x276d6e[_0x28cac0([0x6f,0x66,0x66])]());});}))];return window[_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28cac0([0x72,0x61,0x63,0x65])](_0x56671f)[_0x28cac0([0x74,0x68,0x65,0x6e])](()=>_0x4878c4);}async function _0x4ebd90(){await _0x4cb857,_0x4b31a0[_0x28cac0([0x6d,0x6f,0x64,0x65,0x6c])][_0x28cac0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4797d7,_0x4b31a0[_0x28cac0([0x6d,0x6f,0x64,0x65,0x6c])][_0x28cac0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4797d7,_0x4b31a0[_0x28cac0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28cac0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e2ff2(_0x359112){const _0x5bd7f5=_0x25fbb3();_0x4b31a0[_0x5bd7f5]=_0x28cac0([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x359112,_0x359112!=_0x28cac0([0x56,0x61,0x6c,0x69,0x64])&&_0x4ebd90();}function _0x25fbb3(){const _0x3e253e=window[_0x28cac0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28cac0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28cac0([0x6e,0x6f,0x77])]())[_0x28cac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28cac0([0x2e]),'');let _0x1776e4=_0x28cac0([0x75]);for(let _0x5a83d8=0x0;_0x5a83d8<_0x3e253e[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a83d8+=0x2){let _0x2fa6ae=window[_0x28cac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e253e[_0x28cac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a83d8,_0x5a83d8+0x2));_0x2fa6ae>=_0x3556d8[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fa6ae-=_0x3556d8[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1776e4+=_0x3556d8[_0x2fa6ae];}return _0x1776e4;}function _0x4abc63(){const _0x5d7ce8=_0x33cace[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])](_0x28cac0([0x2e]));if(0x3!=_0x5d7ce8[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cc223(_0x5d7ce8[0x1]);function _0x5cc223(_0x49d7c4){const _0x9c0f78=_0x91d84f(_0x49d7c4);return _0x9c0f78&&_0x34e430()?_0x9c0f78:null;function _0x34e430(){const _0x56bdac=_0x9c0f78[_0x28cac0([0x6a,0x74,0x69])],_0x305856=window[_0x28cac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56bdac[_0x28cac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56bdac[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x248c75={..._0x9c0f78,[_0x28cac0([0x6a,0x74,0x69])]:_0x56bdac[_0x28cac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56bdac[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x248c75[_0x28cac0([0x76,0x63])],_0x23d3db(_0x248c75)==_0x305856;}}}async function _0x5c5cee(){let _0x51e57f=!0x0;try{const _0x4fccf7=_0x33cace[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])](_0x28cac0([0x2e])),[_0x5a116d,_0x5523f2,_0x3cdcc9]=_0x4fccf7;return _0x509c12(_0x5a116d),await _0xa9a16a(_0x5a116d,_0x5523f2,_0x3cdcc9),_0x51e57f;}catch{return!0x1;}function _0x509c12(_0x37086f){const _0x1e2884=_0x91d84f(_0x37086f);_0x1e2884&&_0x1e2884[_0x28cac0([0x61,0x6c,0x67])]==_0x28cac0([0x45,0x53,0x32,0x35,0x36])||(_0x51e57f=!0x1);}async function _0xa9a16a(_0x165a34,_0x24172b,_0x4a078d){const _0x10b50a=window[_0x28cac0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28cac0([0x66,0x72,0x6f,0x6d])](_0x2def98(_0x4a078d),_0x3268d7=>_0x3268d7[_0x28cac0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50770d=new window[(_0x28cac0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28cac0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x165a34+_0x28cac0([0x2e])+_0x24172b),_0x246c96=window[_0x28cac0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28cac0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x246c96)return;const _0x513212=await _0x246c96[_0x28cac0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28cac0([0x6a,0x77,0x6b]),_0x76710f,{[_0x28cac0([0x6e,0x61,0x6d,0x65])]:_0x28cac0([0x45,0x43,0x44,0x53,0x41]),[_0x28cac0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28cac0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28cac0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x246c96[_0x28cac0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28cac0([0x6e,0x61,0x6d,0x65])]:_0x28cac0([0x45,0x43,0x44,0x53,0x41]),[_0x28cac0([0x68,0x61,0x73,0x68])]:{[_0x28cac0([0x6e,0x61,0x6d,0x65])]:_0x28cac0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x513212,_0x10b50a,_0x50770d)||(_0x51e57f=!0x1);}}function _0x91d84f(_0x4784cb){return _0x4784cb[_0x28cac0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28cac0([0x65,0x79]))?JSON[_0x28cac0([0x70,0x61,0x72,0x73,0x65])](_0x2def98(_0x4784cb)):null;}function _0x2def98(_0x37d1be){return window[_0x28cac0([0x61,0x74,0x6f,0x62])](_0x37d1be[_0x28cac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28cac0([0x2b]))[_0x28cac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28cac0([0x2f])));}function _0x23d3db(_0x3054d7){let _0x99b923=0x1505;function _0x286411(_0x816397){for(let _0xff7266=0x0;_0xff7266<_0x816397[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xff7266++){const _0x5590d9=_0x816397[_0x28cac0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xff7266);_0x99b923=(_0x99b923<<0x5)+_0x99b923+_0x5590d9,_0x99b923&=_0x99b923;}}function _0x35e14e(_0x1a7902){Array[_0x28cac0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a7902)?_0x1a7902[_0x28cac0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35e14e):_0x1a7902&&typeof _0x1a7902==_0x28cac0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28cac0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a7902)[_0x28cac0([0x73,0x6f,0x72,0x74])]()[_0x28cac0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5cf043,_0x774278])=>{_0x286411(_0x5cf043),_0x35e14e(_0x774278);}):_0x286411(window[_0x28cac0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a7902));}return _0x35e14e(_0x3054d7),_0x99b923>>>0x0;}function _0x3ced79(_0xe18dae){return _0xe18dae[_0x28cac0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28cac0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28cac0([0x30]));}function _0x10b2f3(_0x16f300){return _0x16f300[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28cac0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28cac0([0x6a,0x6f,0x69,0x6e])]('');}function _0x4797d7(){}function _0x28cac0(_0xce03a4){return _0xce03a4['map'](_0x52583d=>String['fromCharCode'](_0x52583d))['join']('');}_0x4e2ff2(await _0x59d2a6());}(this);}['_moveSelectionToFootnoteDefinition'](_0x389e78){const {plugins:_0x4316be,editing:_0x34dac0,model:_0x2d7e43}=this['editor'],_0x747dd3=_0x4316be['get'](K)['getFootnote'](_0x389e78);return!!_0x747dd3&&(_0x2d7e43['change'](_0xdd0195=>{_0xdd0195['setSelection'](_0xdd0195['createPositionAt'](_0x747dd3['definition'],'end'));}),_0x34dac0['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x21dd70){const {plugins:_0x1ff131,editing:_0x13795e,model:_0xa535aa}=this['editor'],_0x8cf71b=_0x1ff131['get'](K)['getFootnote'](_0x21dd70);return!!_0x8cf71b&&(_0xa535aa['change'](_0x219b02=>{_0x219b02['setSelection'](_0x8cf71b['reference'],'on');}),_0x13795e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5f3886}=this['editor']['model'],_0x427b87=this['editor']['config']['get']('footnotes.multiBlock');_0x5f3886['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5f3886['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5f3886['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x427b87?_0x5f3886['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5f3886['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5f3886['addChildCheck'](_0x1109b9=>{for(const _0x56fab4 of _0x1109b9)if('footnoteDefinition'===_0x56fab4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1c4df0}=this,{conversion:_0x4bb353,editing:_0xbf408}=_0x1c4df0,{t:t}=_0x1c4df0['locale'];_0x4bb353['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xceafc8,{writer:_0x1cab28,consumable:_0x47daa4})=>{const _0x4426fa=_0xceafc8['getChild'](0x0);if(!_0x4426fa||!_0x4426fa['is']('element','a'))return null;const _0x89d1f2=_0x4426fa['getAttribute']('href')||'';if(!_0x89d1f2['startsWith']('#'))return null;const _0x119131=_0x89d1f2['replace'](/^#/,'');if(!_0x119131)return null;_0x47daa4['consume'](_0x4426fa,{'name':!0x0,'attributes':['href']});for(const {item:_0x248842}of _0xbf408['view']['createRangeIn'](_0x4426fa))_0x248842['is']('$textProxy')?_0x47daa4['consume'](_0x248842['textNode'],{'name':!0x0}):_0x248842['is']('element')&&_0x47daa4['consume'](_0x248842,{'name':!0x0});return _0x1cab28['createElement']('footnoteRef',{'footnoteId':_0x119131});}}),_0x4bb353['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x46e8b,{writer:_0x38968a})=>z(_0x46e8b,_0x38968a)}),_0x4bb353['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x161684,{writer:_0xb5fe34})=>{const _0x363f47=_0x161684['getAttribute']('footnoteCounter');return _0x2e193e(z(_0x161684,_0xb5fe34),_0xb5fe34,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x363f47)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2b0a70}=this,{t:t}=_0x2b0a70['locale'],{conversion:_0x327289}=_0x2b0a70;_0x327289['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x327289['for']('upcast')['add'](_0xd6888a=>{_0xd6888a['on']('element:ol',(_0x379e8a,_0x50a6b8,_0x4cf1b1)=>{const _0x29a283=_0x50a6b8['viewItem'];if(!_0x29a283['hasClass']('footnotes-list')||!_0x50a6b8['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4cf1b1['consumable']['consume'](_0x29a283,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x258352,modelCursor:_0x5696e1}=_0x4cf1b1['convertChildren'](_0x50a6b8['viewItem'],_0x50a6b8['modelCursor']);_0x50a6b8['modelRange']=_0x258352,_0x50a6b8['modelCursor']=_0x5696e1;}),_0xd6888a['on']('element:hr',(_0x158152,_0x582051,_0x3a04d6)=>{const _0x21c9b3=_0x582051['viewItem'];_0x21c9b3['hasClass']('footnotes-divider')&&_0x582051['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3a04d6['consumable']['consume'](_0x21c9b3,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x327289['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22f1ac,{writer:_0x1eed2b})=>H(_0x1eed2b)}),_0x327289['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x800ef7,{writer:_0x2c9999})=>{const _0x7c0018=H(_0x2c9999,{'data-footnotes-list-label':t('Footnotes')}),_0x36927e=_0x2e193e(_0x7c0018,_0x2c9999,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2c9999['setCustomProperty']('footnotesDefinitions',!0x0,_0x36927e),_0x36927e;}});}['_defineDefinitionConverters'](){const {editor:_0x1a915f}=this,{conversion:_0x5a3ff5,locale:_0x1789a0}=_0x1a915f,_0xe58e4=_0x1a915f['config']['get']('footnotes.multiBlock');_0x5a3ff5['for']('upcast')['add'](_0xa3d5af=>{_0xa3d5af['on']('element:li',(_0x2aa791,_0x52e328,_0x24bdd9)=>{const _0xfd2a34=_0x52e328['viewItem'];if(!_0xfd2a34['hasClass']('footnote-definition')||!_0xfd2a34['getAttribute']('id'))return;const _0x2a9fb7=_0xfd2a34['parent'];if(!_0x2a9fb7['is']('element','ol')||!_0x2a9fb7['hasClass']('footnotes-list'))return;if(!_0x24bdd9['consumable']['test'](_0xfd2a34,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2d4212=_0x24bdd9['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xfd2a34['getAttribute']('id')});if(!_0x24bdd9['safeInsert'](_0x2d4212,_0x52e328['modelCursor']))return;_0x24bdd9['consumable']['consume'](_0xfd2a34,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4396e8=Array['from'](_0xfd2a34['getChildren']())['find'](_0x5c664e=>_0x5c664e['is']('element')&&_0x5c664e['hasClass']('footnote-content'));for(const _0x382199 of _0xfd2a34['getChildren']())_0x382199['is']('element')&&(_0x24bdd9['consumable']['consume'](_0x382199,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x24bdd9['consumable']['consume'](_0x382199,{'name':!0x0,'classes':'footnote-content'}));if(_0x4396e8){if(_0xe58e4)_0x24bdd9['convertChildren'](_0x4396e8,_0x2d4212);else{const _0x33f6a2=_0x24bdd9['writer']['createElement']('footnoteInlineContent');_0x24bdd9['writer']['insert'](_0x33f6a2,_0x2d4212),_0x24bdd9['convertChildren'](_0x4396e8,_0x33f6a2);}}_0x24bdd9['updateConversionResult'](_0x2d4212,_0x52e328);});}),_0x5a3ff5['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2e1578,{writer:_0x2657c4})=>X(_0x2e1578,_0x2657c4,_0x1789a0,{'dataPipeline':!0x0})}),_0x5a3ff5['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xa30990,{writer:_0x14f0fd})=>X(_0xa30990,_0x14f0fd,_0x1789a0)});}['_defineBogusParagraphConverters'](){const {editor:_0x38484e}=this,{conversion:_0x720431}=_0x38484e;_0x38484e['config']['get']('footnotes.multiBlock')?(_0x720431['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x720431['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x38484e['model']['document'],'change:data',()=>{!function(_0x50af36,_0x37cfc0){const _0x2daa3f=_0x50af36['document']['differ'],_0x3d5213=new Set();for(const _0x19f9cc of _0x2daa3f['getChanges']()){const _0x47c96b='attribute'==_0x19f9cc['type']?_0x19f9cc['range']['start']['parent']:_0x19f9cc['position']['parent'];_0x47c96b['is']('element','footnoteDefinition')&&_0x3d5213['add'](_0x47c96b);}for(const _0x343e09 of _0x3d5213['values']()){const _0x19da3b=Array['from'](_0x343e09['getChildren']())['filter'](_0x227808=>U(_0x227808,_0x37cfc0['mapper']));for(const _0x20dcef of _0x19da3b)_0x37cfc0['reconvertItem'](_0x20dcef);}}(_0x38484e['model'],_0x38484e['editing']);})):(_0x720431['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x720431['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x365038,{writer:_0x2fd729})=>{const _0x156257=_0x2fd729['createContainerElement']('span');return _0x2fd729['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x156257),_0x156257;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5eb4be}=this,{editing:_0x569783,t:t}=_0x5eb4be,_0x4d01b1=_0x5eb4be['model']['document']['selection'];_0x5eb4be['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5eb4be['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x569783['view']['document'],'enter',(_0x123277,_0x5aa6f4)=>{const _0xc634ff=function(_0x40aca3){const _0x893bfb=_0x40aca3['getSelectedElement']();if(_0x893bfb?.['is']('element','footnoteRef'))return _0x893bfb;return null;}(_0x4d01b1);if(_0xc634ff){const _0x198e55=_0xc634ff['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x198e55),_0x5aa6f4['preventDefault'](),_0x123277['stop']();}},{'context':_0x5df730});}['_defineClickHandlers'](){const {editor:_0x2c8683}=this,{editing:_0x4aae4f}=_0x2c8683;_0x2c8683['editing']['view']['addObserver'](_0x418968),_0x2c8683['editing']['view']['addObserver'](_0x1a169e);let _0x3eaaec=!0x1;this['listenTo'](_0x4aae4f['view']['document'],'pointerdown',(_0x9d2f1a,_0x322f91)=>{const {target:_0x1c3ae8}=_0x322f91,_0x1267a0=_0x4aae4f['view']['document']['selection'];_0x3eaaec=!!(_0x1c3ae8?.['is']('element','a')&&_0x1c3ae8['parent']?.['is']('element','sup')&&_0x1c3ae8['parent']['hasClass']('footnote'))&&_0x1267a0['getSelectedElement']()===_0x1c3ae8['parent'];},{'priority':'high'}),this['listenTo'](_0x4aae4f['view']['document'],'click',(_0x14db74,_0x364878)=>{const {target:_0x440d79}=_0x364878;if(!_0x440d79?.['is']('element','a'))return;if(_0x440d79['parent']?.['is']('element','sup')&&_0x440d79['parent']['hasClass']('footnote')&&!_0x3eaaec)return void _0x364878['preventDefault']();let _0x4ea585=_0x440d79['getAttribute']('href');if(!_0x4ea585?.['startsWith']('#'))return;_0x4ea585=_0x4ea585['slice'](0x1);let _0x4c24e4=!0x1;(_0x4ea585['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4ea585['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4ea585))&&(_0x4c24e4=!0x0),_0x4c24e4&&(_0x364878['preventDefault'](),_0x14db74['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x1d3701}={}){return(_0x4d9275,{writer:_0x5c7ac7})=>{if(!M(_0x4d9275))return null;if(!_0x1d3701)return _0x5c7ac7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x57310d=_0x5c7ac7['createContainerElement']('p');return _0x5c7ac7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x57310d),_0x57310d;};}function M(_0x4c58df){const {parent:_0x3b3996}=_0x4c58df;if(!_0x3b3996?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3b3996['childCount'])return!0x1;for(const _0xc7fbf0 of _0x4c58df['getAttributeKeys']())if(!_0xc7fbf0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xc7fbf0)return!0x1;return!0x0;}function U(_0x1f8cf6,_0x1109ec){if(!_0x1f8cf6['is']('element','paragraph'))return!0x1;const _0x1f4fed=_0x1109ec['toViewElement'](_0x1f8cf6);return!!_0x1f4fed&&M(_0x1f8cf6)!==_0x1f4fed['is']('element','span');}function q(_0x4b295b){return _0x5df730(_0x4b295b)&&_0x4b295b['is']('containerElement')&&!!_0x4b295b['getCustomProperty']('footnotesDefinitions');}function H(_0x4e61a1,_0x3299e7={}){const _0x1b66ec=_0x4e61a1['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x161d3c=_0x4e61a1['createContainerElement']('ol',{'class':'footnotes-list'},_0x4e61a1['createSlot']());return _0x4e61a1['createContainerElement']('div',{'class':'footnotes',..._0x3299e7},[_0x1b66ec,_0x161d3c]);}function z(_0x27307d,_0x2c8bbe){const _0x2d4c9a=_0x27307d['getAttribute']('footnoteId'),_0x11d8cf=_0x27307d['getAttribute']('footnoteCounter'),_0xf8fc65=_0x2c8bbe['createUIElement']('a',{'href':'#'+_0x2d4c9a},function(_0x2a998c){const _0x52629d=this['toDomElement'](_0x2a998c);return _0x52629d['textContent']=_0x11d8cf,_0x52629d;}),_0x38e7ab=_0x2c8bbe['createContainerElement']('sup',{'id':'ref-'+_0x2d4c9a,'class':'footnote'},[_0xf8fc65]);return _0x38e7ab['getFillerOffset']=()=>null,_0x38e7ab;}function X(_0x46cccb,_0x14e634,_0x103023,{dataPipeline:_0x253c9b}={}){const {t:t}=_0x103023,_0x5bc410=_0x46cccb['getAttribute']('footnoteId'),_0x2a7041=_0x14e634['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5bc410},function(_0x2bba57){const _0x59370d=this['toDomElement'](_0x2bba57);return _0x59370d['innerText']='^',_0x59370d;}),_0x52d00a=_0x253c9b?_0x14e634['createContainerElement']('div',{'class':'footnote-content'}):_0x3d3309(_0x14e634['createEditableElement']('div',{'class':'footnote-content'}),_0x14e634,{'label':t('Footnote\x20content.')});return _0x14e634['insert'](_0x14e634['createPositionAt'](_0x52d00a,0x0),_0x14e634['createSlot']()),_0x14e634['createContainerElement']('li',{'class':'footnote-definition','id':_0x5bc410},[_0x2a7041,_0x52d00a]);}class J extends _0x5cfb3d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x2d4c41];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2dbf15}=this,{plugins:_0x4d9687,model:_0x5dcc50}=_0x2dbf15,_0x164c67=_0x4d9687['get'](_0x2d4c41),_0x2e7910=_0x4d9687['get'](K);this['listenTo'](_0x164c67,'outputTransformation',(_0x849405,_0x421a67)=>{const _0x183c08=Q(_0x5dcc50['createRangeIn'](_0x421a67['content']));if(!_0x183c08['length'])return;const _0x3b44ee=_0x2e7910['getFootnotes'](),_0x568203=_0x183c08['reduce']((_0x32ed7b,_0x3c7ea6)=>{const _0x50ef8e=_0x3b44ee['find'](_0x3b456b=>_0x3b456b['id']===_0x3c7ea6);if(_0x50ef8e){const _0x236a67=_0x2dbf15['data']['toView'](_0x50ef8e['definition'],{'isClipboardPipeline':!0x0}),_0x4c7955=_0x2dbf15['data']['htmlProcessor']['toData'](_0x236a67);_0x32ed7b[_0x50ef8e['id']]=_0x4c7955;}return _0x32ed7b;},Object['create'](null));_0x421a67['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x568203));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x390d46}=this,{model:_0x4d01b6,plugins:_0x3fecfd}=_0x390d46,{view:_0x488dc2}=_0x390d46['editing'],_0x1ecb7b=_0x3fecfd['get'](_0x2d4c41),_0x3e7d77=_0x3fecfd['get'](K),_0x15a36a=_0x390d46['config']['get']('footnotes.multiBlock');let _0x5a9913=null;this['listenTo'](_0x488dc2['document'],'clipboardInput',(_0x3d95e2,_0x2b3f3e)=>{const _0xa8c0eb=_0x2b3f3e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5a9913=_0xa8c0eb?JSON['parse'](_0xa8c0eb):null;}),this['listenTo'](_0x1ecb7b,'contentInsertion',(_0x2d387e,_0x3e5ef7)=>{const _0x75c5bb=_0x3e5ef7['sourceEditorId']===this['editor']['id'];_0x75c5bb&&'drop'===_0x3e5ef7['method']||_0x4d01b6['change'](_0x15bec3=>{let _0x3ba8a9=_0x3e7d77['getFootnotesDefinitionsObjectElement']();const _0x452cad=!!_0x3ba8a9&&Array['from'](_0x4d01b6['document']['selection']['getSelectedBlocks']())['includes'](_0x3ba8a9);if(!_0x5a9913&&function(_0x4397bd){for(const {item:_0x38148d}of _0x4397bd)if(_0x38148d['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4d01b6['createRangeIn'](_0x3e5ef7['content']))&&(_0x5a9913=function(_0x307ab0,_0x2fdc91){const _0x4b7730=G(_0x307ab0,_0x2fdc91);if(!_0x4b7730)return null;const _0x20dfd0=Object['create'](null);for(const _0x501e70 of _0x4b7730['getChildren']())_0x501e70['is']('element','footnoteDefinition')&&_0x501e70['hasAttribute']('footnoteId')&&(_0x20dfd0[_0x501e70['getAttribute']('footnoteId')]=_0x307ab0['cloneElement'](_0x501e70,!0x0));return Object['keys'](_0x20dfd0)['length']?_0x20dfd0:null;}(_0x15bec3,_0x3e5ef7['content'])),(_0x3ba8a9&&!_0x452cad||!_0x3ba8a9&&!_0x5a9913)&&function(_0x34dd50,_0x14c2e1){const _0x341f0a=[];for(const {item:_0xeb3e85}of _0x34dd50['createRangeIn'](_0x14c2e1))_0xeb3e85['is']('element','footnotesDefinitions')&&_0x341f0a['push'](_0xeb3e85);for(const _0x43616e of _0x341f0a)_0x34dd50['remove'](_0x43616e);}(_0x15bec3,_0x3e5ef7['content']),!_0x5a9913)return;const {selection:_0x511fc6}=_0x4d01b6['document'],_0x120791=_0x511fc6['getFirstRange']()['root'];_0x3ba8a9&&!_0x452cad||(_0x3ba8a9=G(_0x15bec3,_0x3e5ef7['content']),_0x3ba8a9||=_0x3e7d77['_insertEmptyFootnotesDefinitionsContainer'](_0x15bec3,_0x120791));const _0x54f6a9=Array['from'](_0x511fc6['getRanges']())['flatMap'](Q),_0x51db88=function(_0x52335e,_0x15e6af,_0x3835f1){const _0x1cccd6=Object['create'](null);for(const {item:_0x3e0dc0}of _0x52335e['createRangeIn'](_0x15e6af))if(_0x3e0dc0['is']('element','footnoteRef')){const _0x67fe14=_0x3e0dc0['getAttribute']('footnoteId');if(!_0x3835f1(_0x67fe14))continue;_0x1cccd6[_0x67fe14]||(_0x1cccd6[_0x67fe14]=_0x3c3a12()),_0x52335e['setAttribute']('footnoteId',_0x1cccd6[_0x67fe14],_0x3e0dc0);}return _0x1cccd6;}(_0x15bec3,_0x3e5ef7['content'],_0x28ceed=>{if(!_0x75c5bb)return!0x0;return!!_0x3e7d77['getFootnote'](_0x28ceed)&&!_0x54f6a9['includes'](_0x28ceed);});for(const [_0x3e2ecf,_0xca2598]of Object['entries'](_0x5a9913)){const _0x122399=_0x51db88[_0x3e2ecf]||_0x3e2ecf;let _0x3f555;if('string'!=typeof _0xca2598)_0x3f555=_0xca2598,_0x122399!==_0x3e2ecf&&_0x15bec3['setAttribute']('footnoteId',_0x122399,_0x3f555);else{_0x3f555=_0x15bec3['createElement']('footnoteDefinition',{'footnoteId':_0x122399});const _0x51a92b=_0x390d46['data']['htmlProcessor']['toView'](_0xca2598);let _0x21a26e;if(_0x15a36a)_0x21a26e=_0x390d46['data']['toModel'](_0x51a92b,_0x3f555);else{_0x21a26e=_0x15bec3['createElement']('footnoteInlineContent');const _0x5361e0=_0x390d46['data']['toModel'](_0x51a92b,_0x21a26e);_0x15bec3['insert'](_0x5361e0,_0x21a26e);}_0x15bec3['append'](_0x21a26e,_0x3f555);}_0x15bec3['insert'](_0x3f555,_0x3ba8a9,'end');}_0x5a9913=null;});});}}function G(_0x596016,_0x4d2165){for(const {item:_0x5b92eb}of _0x596016['createRangeIn'](_0x4d2165))if(_0x5b92eb['is']('element','footnotesDefinitions'))return _0x5b92eb;return null;}function Q(_0x2a9d7f){const _0x41106f=new Set();for(const {item:_0x2d79af}of _0x2a9d7f)_0x2d79af['is']('element','footnoteRef')&&_0x41106f['add'](_0x2d79af['getAttribute']('footnoteId'));return Array['from'](_0x41106f);}class W extends _0x5cfb3d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x57e6d6}=this,{componentFactory:_0x105387}=_0x57e6d6['ui'];_0x105387['add']('insertFootnote',Y(_0x57e6d6,_0x3dc254)),_0x105387['add']('menuBar:insertFootnote',Y(_0x57e6d6,_0x4453c5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x12bc18=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53718a;for(const _0x4aa4ee in _0x12bc18){const _0x5aa789=_0x4aa4ee,_0x1c3ad5=_0x12bc18[_0x5aa789];if('footnotesLicenseKeyValid'==_0x1c3ad5||'footnotesLicenseKeyInvalid'==_0x1c3ad5||'footnotesLicenseKeyExpired'==_0x1c3ad5||'footnotesLicenseKeyDomainLimit'==_0x1c3ad5||'footnotesLicenseKeyNotAllowed'==_0x1c3ad5||'footnotesLicenseKeyEvaluationLimit'==_0x1c3ad5||'footnotesLicenseKeyUsageLimit'==_0x1c3ad5){delete _0x12bc18[_0x5aa789],_0x53718a=_0x1c3ad5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x53718a&&_0x12bc18['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x53718a&&_0x12bc18['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x53718a&&_0x12bc18['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x53718a&&_0x12bc18['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x53718a&&_0x12bc18['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x53718a&&_0x12bc18['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x1b712d,_0x22b713){const _0x27f8b5=_0x1b712d['commands']['get']('insertFootnote');return _0x8ed6fd=>{const {t:t}=_0x8ed6fd,_0x45e21f=new _0x22b713(_0x8ed6fd),_0x29ce73=_0x45e21f instanceof _0x4453c5;return _0x45e21f['bind']('isEnabled')['to'](_0x27f8b5,'isEnabled'),_0x45e21f['set']({'label':t(_0x29ce73?'Footnote':'Insert\x20footnote'),'icon':_0x2968f4,'tooltip':!0x0}),_0x45e21f['on']('execute',()=>{_0x27f8b5['execute'](),_0x1b712d['editing']['view']['focus']();}),_0x45e21f;};}class Z extends _0x5cfb3d{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[$,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];class nt extends _0x21c5d1{['refresh'](){const {editor:_0x457626}=this,_0x3d6fe4=_0x457626['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3d6fe4,this['value']=_0x3d6fe4?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x39f555}){const {editor:_0x58aead}=this,_0x5688eb=_0x58aead['plugins']['get'](K),_0x379a2f=_0x5688eb['getFootnotesDefinitionsObjectElement']();_0x379a2f&&ot['includes'](_0x39f555)&&_0x58aead['model']['change'](_0x4a89ae=>{_0x4a89ae['setAttribute']('footnotesListStyle',_0x39f555,_0x379a2f),_0x5688eb['_updateFootnotesCounters'](_0x4a89ae);});}}class it extends _0x21c5d1{['refresh'](){const {editor:_0x35c1b9}=this,_0x3235cd=_0x35c1b9['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3235cd,this['value']=_0x3235cd?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4a6623}){const {editor:_0x514356}=this,_0x81aeb7=_0x514356['plugins']['get'](K),_0x28939f=_0x81aeb7['getFootnotesDefinitionsObjectElement']();_0x28939f&&Number['isInteger'](_0x4a6623)&&_0x514356['model']['change'](_0x47e8c9=>{_0x47e8c9['setAttribute']('footnotesListStart',_0x4a6623,_0x28939f),_0x81aeb7['_updateFootnotesCounters'](_0x47e8c9);});}}function st(_0x3911de,_0x42353c){let _0x35c62f='',_0x564c0b=_0x3911de;for(;_0x564c0b>0x0;){const _0x1a8731=(_0x564c0b-0x1)%0x1a;_0x35c62f=String['fromCharCode'](0x61+_0x1a8731)+_0x35c62f,_0x564c0b=Math['floor']((_0x564c0b-0x1)/0x1a);}return _0x42353c?_0x35c62f['toUpperCase']():_0x35c62f;}const rt=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function lt(_0x4c4142,_0x41b091){let _0x277896='',_0x4ad47e=_0x4c4142;for(const {value:_0x294b8a,numeral:_0x5abbc3}of rt)for(;_0x4ad47e>=_0x294b8a;)_0x277896+=_0x5abbc3,_0x4ad47e-=_0x294b8a;return _0x41b091?_0x277896:_0x277896['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x5cfb3d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x412755}=this;_0x412755['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x412755['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x412755['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x412755['commands']['add']('footnotesStyle',new nt(_0x412755)),_0x412755['commands']['add']('footnotesStart',new it(_0x412755)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3c0ebc}=this,{schema:_0x2fae4c}=_0x3c0ebc['model'];_0x2fae4c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x56a018}=this,{conversion:_0x546f00,model:_0x4d3dc3}=_0x56a018,{schema:_0x36170d}=_0x4d3dc3;_0x546f00['for']('upcast')['add'](_0x433dad=>{_0x433dad['on']('element:ol',(_0x4074ee,_0x26ac73,_0x387f86)=>{const _0x125be5=_0x26ac73['viewItem'],_0xbdfc63=_0x26ac73['modelCursor']?.['parent'];_0x125be5['hasClass']('footnotes-list')&&_0xbdfc63?.['is']('element','footnotesDefinitions')&&(function(_0x3d56b7,_0x464305,_0x4a20fb,_0x5999cb){if(!_0x5999cb['checkAttribute'](_0x464305,'footnotesListStart'))return;let _0x2d6d85=0x1;const _0x3cf543=_0x4a20fb['consumable']['consume'](_0x3d56b7,{'attributes':'start'});if(_0x3cf543){const _0x56856=Number['parseInt'](_0x3d56b7['getAttribute']('start'),0xa);Number['isNaN'](_0x56856)||(_0x2d6d85=_0x56856);}!_0x3cf543&&_0x464305['hasAttribute']('footnotesListStart')||_0x4a20fb['writer']['setAttribute']('footnotesListStart',_0x2d6d85,_0x464305);}(_0x125be5,_0xbdfc63,_0x387f86,_0x36170d),function(_0x140471,_0x4e2032,_0x49dd07,_0x1e6cea){if(!_0x1e6cea['checkAttribute'](_0x4e2032,'footnotesListStyle'))return;let _0xf2a91e='decimal',_0x2366c3=!0x1;if(_0x49dd07['consumable']['consume'](_0x140471,{'attributes':'type'})){const _0x529fb3={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x140471['getAttribute']('type')];_0x529fb3&&(_0xf2a91e=_0x529fb3),_0x2366c3=!0x0;}if(_0x49dd07['consumable']['consume'](_0x140471,{'styles':'list-style-type'})){const _0x3e060d=ct(_0x140471['getStyle']('list-style-type'));_0x3e060d&&(_0xf2a91e=_0x3e060d),_0x2366c3=!0x0;}!_0x2366c3&&_0x4e2032['hasAttribute']('footnotesListStyle')||_0x49dd07['writer']['setAttribute']('footnotesListStyle',_0xf2a91e,_0x4e2032);}(_0x125be5,_0xbdfc63,_0x387f86,_0x36170d));});}),_0x546f00['for']('downcast')['add'](_0x284a80=>{_0x284a80['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5c988a,_0xa43433,_0x3b8f74)=>{if(!_0x3b8f74['consumable']['consume'](_0xa43433['item'],_0x5c988a['name']))return;const _0x4f0c45=ut(_0xa43433['item'],_0x3b8f74['mapper']),{attributeNewValue:_0x5d9965}=_0xa43433;null==_0x5d9965||0x1===_0x5d9965?_0x3b8f74['writer']['removeAttribute']('start',_0x4f0c45):_0x3b8f74['writer']['setAttribute']('start',String(_0x5d9965),_0x4f0c45);}),_0x284a80['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1731bc,_0x1ba393,_0x295b99)=>{if(!_0x295b99['consumable']['consume'](_0x1ba393['item'],_0x1731bc['name']))return;const _0x227e10=ut(_0x1ba393['item'],_0x295b99['mapper']),{attributeNewValue:_0x3cee3a}=_0x1ba393;_0x3cee3a&&'decimal'!==_0x3cee3a?_0x295b99['writer']['setStyle']('list-style-type',_0x3cee3a,_0x227e10):_0x295b99['writer']['removeStyle']('list-style-type',_0x227e10);});});}['_definePostfixer'](){const {editor:_0x1ddf70}=this,{model:_0x22b573}=_0x1ddf70,_0x5b2abf=_0x1ddf70['plugins']['get'](K),_0xb7acd6=this['_getDefaultListStyle'](),_0x3c9637=this['_getDefaultStartIndex']();_0x22b573['document']['registerPostFixer'](_0x355a9d=>{const _0x8f7121=_0x22b573['document']['differ']['getChanges']();let _0x28d235=!0x1;for(const _0x22fb05 of _0x8f7121){if('insert'!==_0x22fb05['type']||'$text'===_0x22fb05['name'])continue;const _0x4a8fc2=_0x22b573['createRangeOn'](_0x22fb05['position']['nodeAfter']);for(const _0x25739a of _0x4a8fc2['getItems']())_0x25739a['is']('element','footnotesDefinitions')&&(!_0x25739a['hasAttribute']('footnotesListStart')&&_0x22b573['schema']['checkAttribute'](_0x25739a,'footnotesListStart')&&(_0x355a9d['setAttribute']('footnotesListStart',_0x3c9637,_0x25739a),_0x28d235=!0x0),!_0x25739a['hasAttribute']('footnotesListStyle')&&_0x22b573['schema']['checkAttribute'](_0x25739a,'footnotesListStyle')&&(_0x355a9d['setAttribute']('footnotesListStyle',_0xb7acd6,_0x25739a),_0x28d235=!0x0));}return _0x28d235&&_0x5b2abf['_updateFootnotesCounters'](_0x355a9d),_0x28d235;});}['_defineFormatter'](){const {editor:_0x4e84e7}=this;_0x4e84e7['plugins']['get'](K)['setFootnoteFormatter'](_0x273b30=>this['_formatFootnoteListValue'](_0x273b30));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2b884b,value:_0x241165,digits:_0x1fce48}){const _0x3520b8=_0x2b884b['getAttribute']('footnotesListStyle'),_0x4aa193=_0x2b884b['getAttribute']('footnotesListStart'),_0x41a356=Math['floor'](_0x241165)+(_0x4aa193??0x1)-0x1;switch(_0x3520b8){case'decimal-leading-zero':return function(_0x287d08,_0x1a87d5){return String(_0x287d08)['padStart'](_0x1a87d5,'0');}(_0x41a356,Math['max'](0x2,_0x1fce48));case'lower-alpha':case'lower-latin':return st(_0x41a356,!0x1);case'upper-alpha':case'upper-latin':return st(_0x41a356,!0x0);case'lower-roman':return lt(_0x41a356,!0x1);case'upper-roman':return lt(_0x41a356,!0x0);case'arabic-indic':return String(_0x41a356)['replace'](/\d/g,_0x174bea=>ft[Number(_0x174bea)]);default:return String(_0x41a356);}}}function ct(_0x3388c2){if('string'==typeof _0x3388c2){const _0x35d651=et[_0x3388c2];if(_0x35d651)return _0x35d651;if(ot['includes'](_0x3388c2))return _0x3388c2;}return null;}function ut(_0x26cd46,_0x512cf7){const _0x63146d=_0x512cf7['toViewElement'](_0x26cd46);return Array['from'](_0x63146d['getChildren']())['find'](_0x1c571f=>_0x1c571f['is']('element','ol')&&_0x1c571f['hasClass']('footnotes-list'));}class dt extends _0x325213{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x4fc2a7();['keystrokes']=new _0x17cf75();['focusables']=new _0x3b6b0c();['focusCycler'];constructor(_0x2f88cd,{styleButtonViews:_0x4b82f6,styleGridAriaLabel:_0x1d0272}){super(_0x2f88cd),(this['focusCycler']=new _0xe04fd5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4b82f6,_0x1d0272),[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 _0x3fe2b7 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3fe2b7['element']);_0x4ef8a({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x56deab['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 _0x5b9f88=_0x161815=>_0x161815['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5b9f88),this['keystrokes']['set']('arrowleft',_0x5b9f88),this['keystrokes']['set']('arrowup',_0x5b9f88),this['keystrokes']['set']('arrowdown',_0x5b9f88);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x13810d,_0x397dca){const _0x74021e=new _0x325213(this['locale']);return _0x74021e['children']=_0x74021e['createCollection'](),_0x74021e['children']['addMany'](_0x13810d),_0x74021e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x397dca,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x74021e['children']}),_0x74021e['children']['delegate']('execute')['to'](this),_0x74021e['focus']=function(){for(const _0x20419e of this['children'])if(_0x20419e instanceof _0x3dc254&&_0x20419e['isOn'])return void _0x20419e['focus']();this['children']['first']['focus']();},_0x74021e['focusTracker']=new _0x4fc2a7(),_0x74021e['keystrokes']=new _0x17cf75(),_0x74021e['render'](),_0x74021e['keystrokes']['listenTo'](_0x74021e['element']),this['children']['add'](_0x74021e),_0x74021e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5747cd=this['_createStartIndexPropertyView'](),_0x43640c=[_0x5747cd],_0xc26d8f=new _0x17e2e1(this['locale'],_0x43640c);return _0xc26d8f['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xc26d8f['buttonView']['bind']('isEnabled')['toMany'](_0x43640c,'isEnabled',(..._0x13170d)=>_0x13170d['some'](_0x439d9d=>_0x439d9d)),_0xc26d8f['buttonView']['on']('change:isEnabled',(_0xbf43ff,_0x2feaf0,_0x80ca85)=>{_0x80ca85||(_0xc26d8f['isCollapsed']=!0x0);}),this['children']['add'](_0xc26d8f),[_0x5747cd,_0xc26d8f];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x180ed2=new _0x37d3fc(this['locale'],_0x326cca);return _0x180ed2['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x180ed2['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x180ed2['fieldView']['on']('input',()=>{const _0x1851dc=_0x180ed2['fieldView']['element'],_0x5aa482=_0x1851dc['valueAsNumber'];Number['isNaN'](_0x5aa482)?_0x180ed2['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1851dc['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5aa482}):_0x180ed2['errorText']=t(_0x5aa482<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x180ed2;}}class ht extends _0x5cfb3d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x42c45b,_0x47cf7f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb3f81b}=this,{componentFactory:_0xd57d56}=_0xb3f81b['ui'];_0xb3f81b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xd57d56['add']('footnotesStyle',function(_0x5ea1fb){return _0x4fe5fc=>{const {t:t}=_0x4fe5fc,_0x2ed5ec=_0x5ea1fb['commands']['get']('footnotesStyle'),_0x59333d=_0xedf58b(_0x4fe5fc),{buttonView:_0x19e424}=_0x59333d;return _0x59333d['class']='ck-footnotes-styles-dropdown',_0x59333d['bind']('isEnabled')['to'](_0x2ed5ec,'isEnabled'),_0x19e424['set']({'label':t('Footnotes\x20style'),'icon':_0x2968f4,'tooltip':!0x0}),_0x59333d['once']('change:isOpen',()=>{const _0x1d66eb=function({editor:_0x48e470,dropdownView:_0xe4c484}){const {t:t}=_0x48e470['locale'],_0x5a0f05=t('Footnotes\x20definitions\x20styles'),_0x5f52a7=function(_0x48eb6e){const {t:t}=_0x48eb6e['locale'],_0x368d7a=_0x48eb6e['config']['get']('footnotes.footnotesProperties.listStyles'),_0x2af4b9=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0xcf9b40},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x1ed7cb},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x10910d},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x56bbdb},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x1c230},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x285424},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0xf9e9b6}];return _0x368d7a['map'](_0x30c84d=>{const _0x3ef1ca=ct(_0x30c84d),_0x331f6e=_0x2af4b9['find'](_0x1fa1c3=>_0x1fa1c3['style']===_0x3ef1ca);return function(_0x1a6646,_0x22f139){const {locale:_0x15ee5e}=_0x1a6646,{label:_0x1908ca,icon:_0x28f97f,tooltip:_0x360faf,style:_0x1fbac4}=_0x22f139,_0x244abc=_0x1a6646['commands']['get']('footnotesStyle'),_0x2f1195=new _0x3dc254(_0x15ee5e);return _0x2f1195['set']({'label':_0x1908ca,'icon':_0x28f97f,'tooltip':_0x360faf}),_0x2f1195['bind']('isOn')['to'](_0x244abc,'value',_0x231bc5=>_0x231bc5===_0x1fbac4),_0x2f1195['bind']('isEnabled')['to'](_0x244abc,'isEnabled'),_0x2f1195['on']('execute',()=>{_0x1a6646['execute']('footnotesStyle',{'value':_0x1fbac4}),_0x1a6646['editing']['view']['focus']();}),_0x2f1195;}(_0x48eb6e,_0x331f6e);});}(_0x48e470),_0x2d153c=new dt(_0x48e470['locale'],{'styleGridAriaLabel':_0x5a0f05,'styleButtonViews':_0x5f52a7}),_0x52e2f0=_0x48e470['commands']['get']('footnotesStart');return _0x2d153c['startIndexFieldView']['bind']('isEnabled')['to'](_0x52e2f0),_0x2d153c['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x52e2f0),_0x2d153c['on']('footnotesListStart',(_0x13218c,_0x5afcb0)=>{_0x48e470['execute']('footnotesStart',{'value':_0x5afcb0['startIndex']});}),_0x2d153c['delegate']('execute')['to'](_0xe4c484),_0x2d153c;}({'editor':_0x5ea1fb,'dropdownView':_0x59333d});_0x59333d['panelView']['children']['add'](_0x1d66eb);}),_0x59333d;};}(_0xb3f81b));}['afterInit'](){const {editor:_0x19d8f6}=this,{t:t}=_0x19d8f6['locale'],_0xcabbe=_0x19d8f6['plugins']['get'](_0x47cf7f),{defaultPositions:_0xc5583}=_0x272e06;_0xcabbe['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x19d8f6['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5a0b0c=>{let _0x4979e3=_0x5a0b0c['getFirstPosition']()?.['parent'];return _0x4979e3?.['is']('$text')&&(_0x4979e3=_0x4979e3['parent']),_0x4979e3?.['is']('element')?_0x4979e3['findAncestor'](q):null;},'positions':[_0xc5583['southArrowNorth'],_0xc5583['southArrowNorthMiddleWest'],_0xc5583['southArrowNorthMiddleEast'],_0xc5583['southArrowNorthWest'],_0xc5583['southArrowNorthEast'],_0xc5583['northArrowSouth'],_0xc5583['northArrowSouthMiddleWest'],_0xc5583['northArrowSouthMiddleEast'],_0xc5583['northArrowSouthWest'],_0xc5583['northArrowSouthEast'],_0xc5583['viewportStickyNorth']]});}}class mt extends _0x5cfb3d{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[at,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Z as Footnotes,J as FootnotesClipboard,$ as FootnotesEditing,mt as FootnotesProperties,at as FootnotesPropertiesEditing,ht as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,K as FootnotesTracker,W as FootnotesUI,V as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "48.1.0-alpha.4",
3
+ "version": "48.1.0-alpha.5",
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.1.0-alpha.4",
36
- "@ckeditor/ckeditor5-core": "48.1.0-alpha.4",
37
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
38
- "@ckeditor/ckeditor5-enter": "48.1.0-alpha.4",
39
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
40
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
41
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.4",
42
- "@ckeditor/ckeditor5-widget": "48.1.0-alpha.4"
35
+ "@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.5",
36
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
37
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
38
+ "@ckeditor/ckeditor5-enter": "48.1.0-alpha.5",
39
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
40
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
41
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.5",
42
+ "@ckeditor/ckeditor5-widget": "48.1.0-alpha.5"
43
43
  },
44
44
  "files": [
45
45
  "dist",