@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251019.0 → 0.0.0-nightly-20251021.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x381f4b,Command as _0x180100}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x27240f,isWidget as _0x1862ca,toWidgetEditable as _0x147785,WidgetToolbarRepository as _0x289e52}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x204d37,logWarning as _0x204d57,FocusTracker as it,KeystrokeHandler as et,global as ot}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xfde7da,ClickObserver as _0x46b2f1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1b023c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x528eb8,ButtonView as _0x37c695,View as _0xf9108b,ViewCollection as _0x44558e,FocusCycler as _0x1e2e91,addKeyboardHandlingForGrid as _0x34cdf8,CollapsibleView as _0x4a1638,LabeledFieldView as tt,createLabeledInputNumber as st,ContextualBalloon as _0x45a7bd,BalloonPanelView as _0x33377f,createDropdown as _0x4519ce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5eae8f,IconListStyleDecimal as _0x437365,IconListStyleDecimalLeadingZero as _0x4025d5,IconListStyleLowerRoman as _0x50417e,IconListStyleUpperRoman as _0x18d6e3,IconListStyleLowerLatin as _0x2868d1,IconListStyleUpperLatin as _0x317054}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x273550,_0x299146){this['_model']=_0x273550,this['_elementName']=_0x299146['elementName'],this['_getElementKey']=_0x299146['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3476ac){const _0x16a989=new Set(),_0x431d27=new Map();for(const _0x305f64 of _0x3476ac){if('insert'===_0x305f64['type']&&'$text'!==_0x305f64['name']&&_0x305f64['position']['nodeAfter']){const _0x572a05=this['_model']['createRangeOn'](_0x305f64['position']['nodeAfter']);for(const _0x839f8 of _0x572a05['getItems']()){if(!_0x839f8['is']('element',this['_elementName']))continue;const _0x32b38c=this['_getElementKey'](_0x839f8);_0x431d27['has'](_0x32b38c)||_0x431d27['set'](_0x32b38c,[]),_0x431d27['get'](_0x32b38c)['push'](_0x839f8);}}if('remove'===_0x305f64['type']&&_0x305f64['name']===this['_elementName']){const _0x2ad0da=this['_getElementKey']({'getAttribute':_0x180417=>_0x305f64['attributes']['get'](_0x180417)});_0x16a989['add'](_0x2ad0da);}}for(const [_0x1eb524,_0x2fd420]of this['_trackedElements'])'$graveyard'===_0x2fd420['root']['rootName']&&_0x16a989['add'](_0x1eb524);for(const _0x30ff8a of _0x16a989)this['_trackedElements']['delete'](_0x30ff8a);for(const [_0x63c77d,_0xd01e6e]of _0x431d27)this['_trackedElements']['set'](_0x63c77d,_0xd01e6e[_0xd01e6e['length']-0x1]);const _0x29167d=new Set();for(const [_0xf44454,_0x5c1d63]of _0x431d27)_0x16a989['has'](_0xf44454)&&(_0x29167d['add'](_0x5c1d63[0x0]),_0x5c1d63['length']>0x1?_0x431d27['set'](_0xf44454,_0x5c1d63['slice'](0x1)):_0x431d27['delete'](_0xf44454),_0x16a989['delete'](_0xf44454));return{'removed':Array['from'](_0x16a989),'inserted':Array['from'](_0x431d27['values']())['flat'](),'moved':Array['from'](_0x29167d)};}}class c extends _0x381f4b{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24b10b){super(_0x24b10b),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x8ae00d=>_0x8ae00d['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3cd929=>_0x3cd929['getAttribute']('footnoteId')});}['init'](){const {editor:_0x30af4e}=this,{model:_0x3e3bb5,data:_0x4d2f27}=_0x30af4e;_0x3e3bb5['document']['registerPostFixer'](_0x5d50b3=>{const _0x46f2a6=_0x3e3bb5['document']['differ']['getChanges']();let _0x430ae2=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5d50b3,_0x46f2a6)&&(_0x430ae2=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5d50b3,_0x46f2a6)&&(_0x430ae2=!0x0),this['_handleFootnoteReferencesChanges'](_0x5d50b3,_0x46f2a6)&&(_0x430ae2=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5d50b3)&&(_0x430ae2=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5d50b3)&&(_0x430ae2=!0x0),this['_sortFootnoteDefinitions'](_0x5d50b3)&&(_0x430ae2=!0x0),_0x430ae2;}),this['listenTo'](_0x3e3bb5['document'],'change:data',()=>{_0x3e3bb5['enqueueChange']({'isUndoable':!0x1},_0x347295=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x347295);});},{'priority':'low'}),this['listenTo'](_0x4d2f27,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3d76cd){return this['_footnotes']['find'](_0x133353=>_0x133353['id']===_0x3d76cd)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x33b4fd){this['_footnoteFormatter']=_0x33b4fd;}['_updateFootnotesCounters'](_0x2931f9,_0x1cd4da=0x0){let _0x4ca9a4=!0x1;for(let _0x4ad934=_0x1cd4da;_0x4ad934<this['_footnotes']['length'];_0x4ad934++)this['_updateFootnoteRefCounter'](_0x2931f9,_0x4ad934)&&(_0x4ca9a4=!0x0);return _0x4ca9a4;}['_insertEmptyFootnotesDefinitionsContainer'](_0x45ad99,_0x2f04c6){const _0x49ebe6=_0x45ad99['createElement']('footnotesDefinitions',{});return _0x45ad99['append'](_0x49ebe6,_0x2f04c6),this['_footnotesDefinitions']=_0x49ebe6,_0x49ebe6;}['_ensureFootnotesDefinitionsContainerExists'](_0xbcb258){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x254fbe=this['_footnotes'][0x0]['reference']['root'],_0x51d4cf=this['_insertEmptyFootnotesDefinitionsContainer'](_0xbcb258,_0x254fbe);for(const _0x1b7530 of this['_footnotes'])_0x1b7530['definition']['parent']||_0xbcb258['insert'](_0x1b7530['definition'],_0x51d4cf,'end');this['_updateFootnotesCounters'](_0xbcb258);}['_handleFootnotesDefinitionsObjectChanges'](_0x5ec8ce,_0x5ee677){let _0x5d439a=!0x1;const {inserted:_0x357ae1,removed:_0x3a1fec,moved:_0x261565}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5ee677);if(_0x261565['length']&&(this['_footnotesDefinitions']=_0x261565[0x0]),_0x357ae1['length']){if(_0x357ae1['length']>0x1||this['_footnotesDefinitions']&&_0x357ae1['some'](_0x403b90=>_0x403b90!==this['_footnotesDefinitions'])){const _0x35f044=_0x5ec8ce['createElement']('footnotesDefinitions',{}),_0x1944d0=[];this['_footnotesDefinitions']&&_0x1944d0['push'](this['_footnotesDefinitions']),_0x1944d0['push'](..._0x357ae1),_0x5ec8ce['insert'](_0x35f044,_0x1944d0[0x0],'before');for(const _0x3156de of _0x1944d0)_0x5ec8ce['move'](_0x5ec8ce['createRangeIn'](_0x3156de),_0x5ec8ce['createPositionAt'](_0x35f044,'end')),_0x5ec8ce['remove'](_0x3156de);this['_footnotesDefinitions']=_0x35f044,this['_updateFootnotesCounters'](_0x5ec8ce),_0x5d439a=!0x0;}else this['_footnotesDefinitions']=_0x357ae1[0x0];}if(_0x3a1fec['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2e6678 of this['_footnotes'])_0x5ec8ce['remove'](_0x2e6678['reference']),_0x5d439a=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5d439a;}['_handleFootnoteDefinitionsChanges'](_0x2933c7,_0x2530f7){let _0x14d73b=!0x1;const _0x3db977=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x131b23,moved:_0x2068f1}=this['_footnoteDefsTracker']['getChanges'](_0x2530f7);for(const _0x4f0fa5 of[..._0x2068f1,..._0x131b23]){const _0x4cfe9c=_0x4f0fa5['getAttribute']('footnoteId'),_0x2a2359=this['getFootnote'](_0x4cfe9c);_0x2a2359&&(_0x2a2359['definition']=_0x4f0fa5),_(_0x2933c7,_0x3db977,_0x4f0fa5)&&(_0x14d73b=!0x0);}return _0x14d73b;}['_handleFootnoteReferencesChanges'](_0x3dbcb6,_0x48306f){let _0x3598d1=!0x1;const {removed:_0x596f91,inserted:_0x275423,moved:_0xf8a934}=this['_footnoteRefsTracker']['getChanges'](_0x48306f);for(const _0x273cc9 of _0x596f91)this['_handleRemoveFootnoteReferenceById'](_0x3dbcb6,_0x273cc9)&&(_0x3598d1=!0x0);for(const _0x14322f of _0x275423)this['_handleInsertedFootnoteReference'](_0x3dbcb6,_0x14322f)&&(_0x3598d1=!0x0);for(const _0x293ca9 of _0xf8a934)this['_handleMovedFootnoteReference'](_0x3dbcb6,_0x293ca9)&&(_0x3598d1=!0x0);return _0x3598d1;}['_handleFootnotesDefinitionsObjectSync'](_0x34ce57){if(!this['_footnotesDefinitions'])return!0x1;let _0xd1f0bb=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5c3a05=[];for(const _0x352516 of this['_footnotesDefinitions']['getChildren']()){const _0x5656e1=_0x352516['getAttribute']('footnoteId');this['getFootnote'](_0x5656e1)||(_0x5c3a05['unshift'](_0x352516),_0xd1f0bb=!0x0);}for(const _0x35853 of _0x5c3a05)_0x34ce57['remove'](_0x35853);}const _0x4136f2=new Set(),_0x5b36db=[];for(const _0x476fe4 of this['_footnotesDefinitions']['getChildren']()){const _0x22719f=_0x476fe4['getAttribute']('footnoteId');_0x4136f2['has'](_0x22719f)?(_0x5b36db['unshift'](_0x476fe4),_0xd1f0bb=!0x0):_0x4136f2['add'](_0x22719f);}for(const _0x2c4074 of _0x5b36db)_0x34ce57['remove'](_0x2c4074);return this['_footnotesDefinitions']['childCount']||(_0x34ce57['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xd1f0bb=!0x0),_0xd1f0bb;}['_handleInsertedFootnoteReference'](_0x5adb15,_0x2a3461){if(this['_footnotes']['find'](_0x31a338=>_0x31a338['reference']===_0x2a3461))return!0x1;let _0x805f35=!0x1;const _0x3f065d=_0x2a3461['getAttribute']('footnoteId'),_0x26231a=this['getFootnote'](_0x3f065d);_0x26231a&&(_0x5adb15['remove'](_0x26231a['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x1e3911=>_0x1e3911['id']!==_0x3f065d),_0x805f35=!0x0);let _0x4524d6=this['_footnotesDefinitions']?function(_0x5dffdc,_0x4013ca){for(const _0x536319 of _0x5dffdc['getChildren']())if(_0x536319['getAttribute']('footnoteId')===_0x4013ca)return _0x536319;return null;}(this['_footnotesDefinitions'],_0x3f065d):null;_0x4524d6||(_0x4524d6=_0x5adb15['createElement']('footnoteDefinition',{'footnoteId':_0x3f065d}),this['_footnotesDefinitions']&&(_0x5adb15['insert'](_0x4524d6,this['_footnotesDefinitions'],'end'),_0x805f35=!0x0));const _0xeb5adc={'id':_0x3f065d,'reference':_0x2a3461,'definition':_0x4524d6},_0x34b50a=I(this['editor']['model'],this['_footnotes'],_0x2a3461);return this['_footnotes']['splice'](_0x34b50a,0x0,_0xeb5adc),this['_updateFootnotesCounters'](_0x5adb15,_0x34b50a)&&(_0x805f35=!0x0),_0x805f35;}['_handleRemoveFootnoteReferenceById'](_0x214935,_0x82a8bd){const _0x1758da=this['_footnotes']['findIndex'](_0x5696ef=>_0x5696ef['id']===_0x82a8bd);if(-0x1===_0x1758da)return!0x1;let _0x5b7dd2=!0x1;const _0x2f2a37=this['_footnotes'][_0x1758da];return'$graveyard'!==_0x2f2a37['definition']['root']['rootName']&&(_0x214935['remove'](_0x2f2a37['definition']),_0x5b7dd2=!0x0),this['_footnotes']['splice'](_0x1758da,0x1),this['_updateFootnotesCounters'](_0x214935,_0x1758da)&&(_0x5b7dd2=!0x0),_0x5b7dd2;}['_handleMovedFootnoteReference'](_0x1d0e71,_0x3dd93){const _0x2a74bc=_0x3dd93['getAttribute']('footnoteId'),_0x322501=this['_footnotes']['findIndex'](_0x1d55cb=>_0x1d55cb['id']===_0x2a74bc),_0x2ad0cd=this['_footnotes'][_0x322501];let _0x3a8a47=!0x1;_0x2ad0cd['reference']=_0x3dd93,this['_footnotes']['splice'](_0x322501,0x1);const _0x3bf2f5=I(this['editor']['model'],this['_footnotes'],_0x3dd93);return this['_footnotes']['splice'](_0x3bf2f5,0x0,_0x2ad0cd),this['_updateFootnotesCounters'](_0x1d0e71,Math['min'](_0x322501,_0x3bf2f5))&&(_0x3a8a47=!0x0),_0x3a8a47;}['_updateFootnoteRefCounter'](_0x2e4e66,_0x1c1783){if(!this['_footnotesDefinitions'])return!0x1;const _0x40c2f5=this['_footnotes'][_0x1c1783];let _0x191326;return _0x191326=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x40c2f5,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1c1783+0x1}):String(_0x1c1783+0x1),_0x40c2f5['reference']['getAttribute']('footnoteCounter')!=_0x191326&&(_0x2e4e66['setAttribute']('footnoteCounter',_0x191326,_0x40c2f5['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4c7028){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5925d1,_0x969c2e){if(_0x5925d1['length']!==_0x969c2e['length'])return!0x1;for(let _0x2e930c=0x0;_0x2e930c<_0x5925d1['length'];_0x2e930c++)if(_0x5925d1[_0x2e930c]!==_0x969c2e[_0x2e930c])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x12ead1=>_0x12ead1['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5058c1=>_0x5058c1['getAttribute']('footnoteId'))))return!0x1;let _0x1f465d=!0x1;for(let _0x3b2302=0x0;_0x3b2302<this['_footnotes']['length'];_0x3b2302++){const _0xd2eac3=this['_footnotes'][_0x3b2302],_0xa3aa2a=_0x4c7028['createPositionBefore'](_0xd2eac3['definition']),_0xbe9c6b=_0x4c7028['createPositionAt'](this['_footnotesDefinitions'],_0x3b2302);_0xa3aa2a['isEqual'](_0xbe9c6b)||(_0x4c7028['move'](_0x4c7028['createRangeOn'](_0xd2eac3['definition']),_0xbe9c6b),_0x1f465d=!0x0);}return _0x1f465d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x1b4685){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1fe1ef}=this['editor'];let _0x2ce830=!0x1;for(let _0x1ca628=0x0;_0x1ca628<this['_footnotes']['length']-0x1;_0x1ca628++){const _0x9bc768=this['_footnotes'][_0x1ca628],_0x500a11=this['_footnotes'][_0x1ca628+0x1],_0x3a0432=_0x1fe1ef['createPositionBefore'](_0x9bc768['reference']),_0x3228d9=_0x1fe1ef['createPositionBefore'](_0x500a11['reference']);'after'===_0x3a0432['compareWith'](_0x3228d9)&&(this['_handleMovedFootnoteReference'](_0x1b4685,_0x9bc768['reference']),_0x1ca628=-0x1,_0x2ce830=!0x0);}return _0x2ce830;}}function _(_0x53cde2,_0x19f3c4,_0x3ed0ea){if(_0x3ed0ea['childCount'])return!0x1;const _0x45b5bb=_0x19f3c4?'paragraph':'footnoteInlineContent';return _0x53cde2['insert'](_0x53cde2['createElement'](_0x45b5bb),_0x3ed0ea),!0x0;}function I(_0x23094f,_0x302c5f,_0x2f7d03){if(0x0===_0x302c5f['length'])return 0x0;const _0x1462e3=_0x23094f['createPositionBefore'](_0x2f7d03);for(let _0x4791b0=0x0;_0x4791b0<_0x302c5f['length'];_0x4791b0++){const _0x42449c=_0x302c5f[_0x4791b0],_0x343d12=_0x23094f['createPositionBefore'](_0x42449c['reference']);if('before'===_0x1462e3['compareWith'](_0x343d12))return _0x4791b0;}const _0x28ea0f=_0x2f7d03['root'];let _0x5ddd22=-0x1;for(let _0x85d504=_0x302c5f['length']-0x1;_0x85d504>=0x0;_0x85d504--)if(_0x302c5f[_0x85d504]['reference']['root']===_0x28ea0f){_0x5ddd22=_0x85d504;break;}if(-0x1!==_0x5ddd22)return _0x5ddd22+0x1;const _0x2515f0=_0x23094f['document']['getRootNames'](),_0x4dd0fe=_0x2515f0['indexOf'](_0x28ea0f['rootName']),_0x2ad486=_0x2515f0[_0x4dd0fe+0x1];if(_0x2ad486){for(let _0x1625ab=0x0;_0x1625ab<_0x302c5f['length'];_0x1625ab++)if(_0x302c5f[_0x1625ab]['reference']['root']['rootName']===_0x2ad486)return _0x1625ab;}return _0x302c5f['length'];}class w extends _0x180100{['refresh'](){const _0x57e23c=this['editor']['model']['document']['selection'],_0x20e1b7=this['_getPositionToInsertFootnote'](_0x57e23c);this['isEnabled']=!!_0x20e1b7;}['execute'](_0x585b41){const {editor:_0x357515}=this,{model:_0xa7f8d1}=_0x357515,{selection:_0x5f4c8f}=_0xa7f8d1['document'],_0x4c51b8=this['_getPositionToInsertFootnote'](_0x5f4c8f);if(!_0x4c51b8)return;const _0x540bc3=_0x357515['plugins']['get']('FootnotesEditing'),_0x5317de=_0x585b41?.['footnoteId']??_0x204d37();!function(_0x8c3fda){return'string'==typeof _0x8c3fda&&_0x8c3fda['length']>0x0&&!/\s/['test'](_0x8c3fda)&&!/^\d/['test'](_0x8c3fda);}(_0x5317de)?_0x204d57('insert-footnote-command-executed-with-invalid-id'):(_0xa7f8d1['change'](_0x4e027c=>{const _0x38655d=_0x4e027c['createElement']('footnoteRef',{'footnoteId':_0x5317de});_0xa7f8d1['insertObject'](_0x38655d,_0x4c51b8,null);}),_0x540bc3['_moveSelectionToFootnoteDefinition'](_0x5317de));}['_getPositionToInsertFootnote'](_0x1f5287){const {model:_0x1b4bcf}=this['editor'],{schema:_0x47eb01}=_0x1b4bcf,_0x3fb384=_0x1f5287['getFirstRange']();for(const _0xedf323 of _0x3fb384['getItems']())if(_0x47eb01['isBlock'](_0xedf323)||_0x47eb01['isObject'](_0xedf323))return null;const _0x31e5e0=_0x3fb384['end'];return _0x47eb01['checkChild'](_0x31e5e0,'footnoteRef')?_0x31e5e0:null;}}class r extends _0x381f4b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5e0871}=this;_0x5e0871['config']['define']('footnotes.multiBlock',!0x0),_0x5e0871['commands']['add']('insertFootnote',new w(_0x5e0871)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x26852b){const _0x4e49f=_0x140651([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]),_0x32c943=0x47a28506,_0x3d4c15=0x47a5f3a6^_0x32c943,_0x5afed0=window[_0x140651([0x44,0x61,0x74,0x65])][_0x140651([0x6e,0x6f,0x77])](),_0x17d5fe=_0x26852b[_0x140651([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11bb98=new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a509f=>{_0x17d5fe[_0x140651([0x6f,0x6e,0x63,0x65])](_0x140651([0x72,0x65,0x61,0x64,0x79]),_0x2a509f);}),_0x442dea={[_0x140651([0x6b,0x74,0x79])]:_0x140651([0x45,0x43]),[_0x140651([0x75,0x73,0x65])]:_0x140651([0x73,0x69,0x67]),[_0x140651([0x63,0x72,0x76])]:_0x140651([0x50,0x2d,0x32,0x35,0x36]),[_0x140651([0x78])]:_0x140651([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]),[_0x140651([0x79])]:_0x140651([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]),[_0x140651([0x61,0x6c,0x67])]:_0x140651([0x45,0x53,0x32,0x35,0x36])},_0x45b716=_0x17d5fe[_0x140651([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x140651([0x67,0x65,0x74])](_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x526d60(){let _0x114924,_0x3433c9=null,_0x4f1b87=null;try{if(_0x45b716==_0x140651([0x47,0x50,0x4c]))return _0x140651([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x114924=_0x2f0106(),!_0x114924)return _0x140651([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x114924[_0x140651([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f1b87=_0x13594c(_0x114924[_0x140651([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x114924[_0x140651([0x6a,0x74,0x69])])),await _0x234449()?_0x49af2f()?_0x26e1f1()?_0x140651([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1709cb()?(_0x114924[_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x140651([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3433c9=_0x18110d(_0x140651([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x114924[_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x140651([0x74,0x72,0x69,0x61,0x6c])&&(_0x3433c9=_0x18110d(_0x140651([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x281e0f()):_0x140651([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x140651([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x140651([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x140651([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26e1f1(){const _0x9f5b49=[_0x140651([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x140651([0x74,0x72,0x69,0x61,0x6c])][_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x114924[_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5afed0/0x3e8:0xe10*_0x3d4c15;return _0x114924[_0x140651([0x65,0x78,0x70])]<_0x9f5b49;}function _0x49af2f(){const _0x167ade=_0x114924[_0x140651([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x167ade&&(!!_0x167ade[_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140651([0x2a]))||!!_0x167ade[_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140651([0x46,0x4f,0x4f])));}function _0x1709cb(){const _0x29fcef=_0x114924[_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29fcef||0x0==_0x29fcef[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfe6bb}=new URL(window[_0x140651([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29fcef[_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfe6bb))return!0x0;const _0xe32e5=_0xfe6bb[_0x140651([0x73,0x70,0x6c,0x69,0x74])](_0x140651([0x2e]));return _0x29fcef[_0x140651([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23c0e9=>_0x23c0e9[_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140651([0x2a])))[_0x140651([0x6d,0x61,0x70])](_0x4bca3f=>_0x4bca3f[_0x140651([0x73,0x70,0x6c,0x69,0x74])](_0x140651([0x2e])))[_0x140651([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d8e21=>_0x1d8e21[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe32e5[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x140651([0x6d,0x61,0x70])](_0x36347c=>Array(_0xe32e5[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36347c[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x140651([0x66,0x69,0x6c,0x6c])](_0x36347c[0x0]===_0x140651([0x2a])?_0x140651([0x2a]):'')[_0x140651([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36347c))[_0x140651([0x73,0x6f,0x6d,0x65])](_0x6b1410=>_0xe32e5[_0x140651([0x65,0x76,0x65,0x72,0x79])]((_0x133180,_0x5cb714)=>_0x6b1410[_0x5cb714]===_0x133180||_0x6b1410[_0x5cb714]===_0x140651([0x2a])));}function _0x281e0f(){return _0x3433c9&&_0x4f1b87?new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29d8aa,_0x1ddcf8)=>{_0x3433c9[_0x140651([0x74,0x68,0x65,0x6e])](_0x29d8aa,_0x1ddcf8),_0x4f1b87[_0x140651([0x74,0x68,0x65,0x6e])](_0x1d4eed=>{_0x1d4eed!=_0x140651([0x56,0x61,0x6c,0x69,0x64])&&_0x29d8aa(_0x1d4eed);},_0x1ddcf8);}):_0x3433c9||_0x4f1b87||_0x140651([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13594c(_0x1e10b6,_0x670c1f){return new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x841ff7=>{if(_0xc1ac87())return _0x841ff7(_0x140651([0x56,0x61,0x6c,0x69,0x64]));_0x3afb51(),_0x17d5fe[_0x140651([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x140651([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5de218=!0x1;const _0x48ae32=_0x204d37();function _0x117769(_0x348991){return!!_0x348991&&(typeof _0x348991===_0x140651([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x348991===_0x140651([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x348991[_0x140651([0x74,0x68,0x65,0x6e])]===_0x140651([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x348991[_0x140651([0x63,0x61,0x74,0x63,0x68])]===_0x140651([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbda430(_0x2e197e){_0x3c0903(_0x2e197e)[_0x140651([0x74,0x68,0x65,0x6e])](_0x2570cc=>{if(!_0x2570cc||_0x2570cc[_0x140651([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x140651([0x6f,0x6b]))return _0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b236b(_0x5564d8(_0x48ae32+_0x670c1f))!=_0x2570cc[_0x140651([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x140651([0x56,0x61,0x6c,0x69,0x64]);})[_0x140651([0x74,0x68,0x65,0x6e])](_0xbc2799=>(_0x6a652b(),_0xbc2799),()=>{const _0x74ea0f=_0x22bd44();return null==_0x74ea0f?(_0x6a652b(),_0x140651([0x56,0x61,0x6c,0x69,0x64])):_0x140651(_0x5afed0-_0x74ea0f>(0x63ae0106^_0x32c943)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x140651([0x74,0x68,0x65,0x6e])](_0x841ff7)[_0x140651([0x63,0x61,0x74,0x63,0x68])](()=>{_0x841ff7(_0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xef4b33=0x47946b86^_0x32c943;function _0x6a652b(){const _0x1e3ed7=_0x140651([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b236b(_0x5564d8(_0x1e10b6)),_0x3c98c2=_0x1216a8(_0x5b236b(window[_0x140651([0x4d,0x61,0x74,0x68])][_0x140651([0x63,0x65,0x69,0x6c])](_0x5afed0/_0xef4b33)));window[_0x140651([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x140651([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e3ed7,_0x3c98c2);}function _0x22bd44(){const _0x465ede=_0x140651([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b236b(_0x5564d8(_0x1e10b6)),_0x4152d5=window[_0x140651([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x140651([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x465ede);return _0x4152d5?window[_0x140651([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1216a8(_0x4152d5),0x10)*_0xef4b33:null;}function _0x3c0903(_0x1e58fd){return new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x329a12,_0x5257e2)=>{_0x1e58fd[_0x140651([0x74,0x68,0x65,0x6e])](_0x329a12,_0x5257e2),window[_0x140651([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5257e2,0x47a351c6^_0x32c943);});}}_0x17d5fe[_0x140651([0x6f,0x6e])](_0x140651([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x500086,_0x3b0a33)=>{if(_0x3b0a33[0x0]!=_0x1e10b6)return _0x841ff7(_0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b0a33[0x1]={..._0x3b0a33[0x1],[_0x140651([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48ae32};},{[_0x140651([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x140651([0x68,0x69,0x67,0x68])}),_0x17d5fe[_0x140651([0x6f,0x6e])](_0x140651([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x342cfa=>{_0x117769(_0x342cfa[_0x140651([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5de218=!0x0,_0xbda430(_0x342cfa[_0x140651([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x140651([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x140651([0x6c,0x6f,0x77])}),_0x11bb98[_0x140651([0x74,0x68,0x65,0x6e])](()=>{_0x5de218||_0x841ff7(_0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc1ac87(){return _0x17d5fe[_0x140651([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x140651([0x76,0x69,0x65,0x77])][_0x140651([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x140651([0x61,0x75,0x74,0x6f]);}function _0x3afb51(){_0x17d5fe[_0x140651([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x140651([0x76,0x69,0x65,0x77])][_0x140651([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x140651([0x61,0x75,0x74,0x6f]);}}function _0x18110d(_0x1a638d){const _0x12dac5=[new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b36e9=>setTimeout(_0x4b36e9,0x47abbbca^_0x32c943)),_0x11bb98[_0x140651([0x74,0x68,0x65,0x6e])](()=>new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d85f=>{let _0x8c1b2e=0x0;_0x17d5fe[_0x140651([0x6d,0x6f,0x64,0x65,0x6c])][_0x140651([0x6f,0x6e])](_0x140651([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a9122,_0x244fe3)=>{_0x244fe3[0x0][_0x140651([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8c1b2e++,_0x8c1b2e==(0x47a284fe^_0x32c943)&&(_0x54d85f(),_0x4a9122[_0x140651([0x6f,0x66,0x66])]());});}))];return window[_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x140651([0x72,0x61,0x63,0x65])](_0x12dac5)[_0x140651([0x74,0x68,0x65,0x6e])](()=>_0x1a638d);}async function _0x3cc0a0(){await _0x11bb98,_0x17d5fe[_0x140651([0x6d,0x6f,0x64,0x65,0x6c])][_0x140651([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf5988b,_0x17d5fe[_0x140651([0x6d,0x6f,0x64,0x65,0x6c])][_0x140651([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf5988b,_0x17d5fe[_0x140651([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x140651([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa51ae3(_0x4c1e59){const _0x44a148=_0x3bac5f();_0x17d5fe[_0x44a148]=_0x140651([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c1e59,_0x4c1e59!=_0x140651([0x56,0x61,0x6c,0x69,0x64])&&_0x3cc0a0();}function _0x3bac5f(){const _0xb9bc74=window[_0x140651([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x140651([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x140651([0x6e,0x6f,0x77])]())[_0x140651([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x140651([0x2e]),'');let _0x4dd3b7=_0x140651([0x75]);for(let _0x364ade=0x0;_0x364ade<_0xb9bc74[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x364ade+=0x2){let _0x37ce20=window[_0x140651([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9bc74[_0x140651([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x364ade,_0x364ade+0x2));_0x37ce20>=_0x4e49f[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37ce20-=_0x4e49f[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4dd3b7+=_0x4e49f[_0x37ce20];}return _0x4dd3b7;}function _0x2f0106(){const _0x3548d2=_0x45b716[_0x140651([0x73,0x70,0x6c,0x69,0x74])](_0x140651([0x2e]));if(0x3!=_0x3548d2[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x427b7b(_0x3548d2[0x1]);function _0x427b7b(_0x24935f){const _0x1cfb76=_0x55c5df(_0x24935f);return _0x1cfb76&&_0x4cbfbb()?_0x1cfb76:null;function _0x4cbfbb(){const _0x3b049b=_0x1cfb76[_0x140651([0x6a,0x74,0x69])],_0x460026=window[_0x140651([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b049b[_0x140651([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b049b[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x543261={..._0x1cfb76,[_0x140651([0x6a,0x74,0x69])]:_0x3b049b[_0x140651([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b049b[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x543261[_0x140651([0x76,0x63])],_0x5564d8(_0x543261)==_0x460026;}}}async function _0x234449(){let _0x1e9c99=!0x0;try{const _0x40db4b=_0x45b716[_0x140651([0x73,0x70,0x6c,0x69,0x74])](_0x140651([0x2e])),[_0x1454aa,_0xdea782,_0x1f886d]=_0x40db4b;return _0x4e5cb3(_0x1454aa),await _0x3d3993(_0x1454aa,_0xdea782,_0x1f886d),_0x1e9c99;}catch{return!0x1;}function _0x4e5cb3(_0x5de5bc){const _0x31d953=_0x55c5df(_0x5de5bc);_0x31d953&&_0x31d953[_0x140651([0x61,0x6c,0x67])]==_0x140651([0x45,0x53,0x32,0x35,0x36])||(_0x1e9c99=!0x1);}async function _0x3d3993(_0x4bf868,_0x219a39,_0x564ab5){const _0x17edc6=window[_0x140651([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x140651([0x66,0x72,0x6f,0x6d])](_0x27dff3(_0x564ab5),_0x1d7ec3=>_0x1d7ec3[_0x140651([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d26fe=new window[(_0x140651([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x140651([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4bf868+_0x140651([0x2e])+_0x219a39),_0x5162d1=window[_0x140651([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x140651([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5162d1)return;const _0x110baf=await _0x5162d1[_0x140651([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x140651([0x6a,0x77,0x6b]),_0x442dea,{[_0x140651([0x6e,0x61,0x6d,0x65])]:_0x140651([0x45,0x43,0x44,0x53,0x41]),[_0x140651([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x140651([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x140651([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5162d1[_0x140651([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x140651([0x6e,0x61,0x6d,0x65])]:_0x140651([0x45,0x43,0x44,0x53,0x41]),[_0x140651([0x68,0x61,0x73,0x68])]:{[_0x140651([0x6e,0x61,0x6d,0x65])]:_0x140651([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x110baf,_0x17edc6,_0x3d26fe)||(_0x1e9c99=!0x1);}}function _0x55c5df(_0x585a42){return _0x585a42[_0x140651([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x140651([0x65,0x79]))?JSON[_0x140651([0x70,0x61,0x72,0x73,0x65])](_0x27dff3(_0x585a42)):null;}function _0x27dff3(_0x27b6bf){return window[_0x140651([0x61,0x74,0x6f,0x62])](_0x27b6bf[_0x140651([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x140651([0x2b]))[_0x140651([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x140651([0x2f])));}function _0x5564d8(_0x31d41d){let _0x517218=0x1505;function _0x29a876(_0x46d70f){for(let _0x2be509=0x0;_0x2be509<_0x46d70f[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2be509++){const _0x4f2798=_0x46d70f[_0x140651([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2be509);_0x517218=(_0x517218<<0x5)+_0x517218+_0x4f2798,_0x517218&=_0x517218;}}function _0x30c197(_0x474b9a){Array[_0x140651([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x474b9a)?_0x474b9a[_0x140651([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30c197):_0x474b9a&&typeof _0x474b9a==_0x140651([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x140651([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x474b9a)[_0x140651([0x73,0x6f,0x72,0x74])]()[_0x140651([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12b1cd,_0x45416e])=>{_0x29a876(_0x12b1cd),_0x30c197(_0x45416e);}):_0x29a876(window[_0x140651([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x474b9a));}return _0x30c197(_0x31d41d),_0x517218>>>0x0;}function _0x5b236b(_0x4b460c){return _0x4b460c[_0x140651([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x140651([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x140651([0x30]));}function _0x1216a8(_0x506fee){return _0x506fee[_0x140651([0x73,0x70,0x6c,0x69,0x74])]('')[_0x140651([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x140651([0x6a,0x6f,0x69,0x6e])]('');}function _0xf5988b(){}function _0x140651(_0xbdbc4e){return _0xbdbc4e['map'](_0x41160f=>String['fromCharCode'](_0x41160f))['join']('');}_0xa51ae3(await _0x526d60());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2c2af4){const {plugins:_0x53f59a,editing:_0x51278b,model:_0x4629f6}=this['editor'],_0x46425d=_0x53f59a['get'](c)['getFootnote'](_0x2c2af4);return!!_0x46425d&&(_0x4629f6['change'](_0x96d3a9=>{_0x96d3a9['setSelection'](_0x96d3a9['createPositionAt'](_0x46425d['definition'],'end'));}),_0x51278b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2e2731){const {plugins:_0x15442d,editing:_0x48991c,model:_0x37b381}=this['editor'],_0x4be2f3=_0x15442d['get'](c)['getFootnote'](_0x2e2731);return!!_0x4be2f3&&(_0x37b381['change'](_0x472718=>{_0x472718['setSelection'](_0x4be2f3['reference'],'on');}),_0x48991c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2cd47f}=this['editor']['model'],_0x3ee39f=this['editor']['config']['get']('footnotes.multiBlock');_0x2cd47f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2cd47f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2cd47f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3ee39f?_0x2cd47f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2cd47f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2cd47f['addChildCheck'](_0x49985a=>{for(const _0x5b429f of _0x49985a)if('footnoteDefinition'===_0x5b429f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x218de3}=this,{conversion:_0x306c9d,editing:_0x4a4aa2}=_0x218de3,{t:t}=_0x218de3['locale'];_0x306c9d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5bb3f0,{writer:_0x44fd98,consumable:_0x2b894d})=>{const _0x33bbe2=_0x5bb3f0['getChild'](0x0);if(!_0x33bbe2||!_0x33bbe2['is']('element','a'))return null;const _0x3ecd38=_0x33bbe2['getAttribute']('href')||'';if(!_0x3ecd38['startsWith']('#'))return null;const _0x4fcd31=_0x3ecd38['replace'](/^#/,'');if(!_0x4fcd31)return null;_0x2b894d['consume'](_0x33bbe2,{'name':!0x0,'attributes':['href']});for(const {item:_0x236bc9}of _0x4a4aa2['view']['createRangeIn'](_0x33bbe2))_0x236bc9['is']('$textProxy')?_0x2b894d['consume'](_0x236bc9['textNode'],{'name':!0x0}):_0x236bc9['is']('element')&&_0x2b894d['consume'](_0x236bc9,{'name':!0x0});return _0x44fd98['createElement']('footnoteRef',{'footnoteId':_0x4fcd31});}}),_0x306c9d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x22c175,{writer:_0x520ccb})=>g(_0x22c175,_0x520ccb)}),_0x306c9d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3540a9,{writer:_0x1ea946})=>{const _0x4bf39f=_0x3540a9['getAttribute']('footnoteCounter');return _0x27240f(g(_0x3540a9,_0x1ea946),_0x1ea946,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4bf39f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x131bee}=this,{t:t}=_0x131bee['locale'],{conversion:_0x101098}=_0x131bee;_0x101098['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x101098['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x101098['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x212785,{writer:_0x4ec8c0})=>{const _0x41fa99=_0x4ec8c0['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x4ec8c0['createContainerElement']('ol',{'class':'footnotes'},_0x4ec8c0['createSlot']())),_0x13208f=_0x27240f(_0x41fa99,_0x4ec8c0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4ec8c0['setCustomProperty']('footnotesDefinitions',!0x0,_0x13208f),_0x13208f;}});}['_defineDefinitionConverters'](){const {editor:_0x341ef6}=this,{conversion:_0x4fbd8e,locale:_0x4579f0}=_0x341ef6,_0x487a62=_0x341ef6['config']['get']('footnotes.multiBlock');_0x4fbd8e['for']('upcast')['add'](_0x4ad634=>{_0x4ad634['on']('element:li',(_0x25e5a9,_0x4f991b,_0x43c047)=>{const _0x2fddec=_0x4f991b['viewItem'];if(!_0x2fddec['hasClass']('footnote-definition')||!_0x2fddec['getAttribute']('id'))return;const _0x46a427=_0x2fddec['parent'];if(!_0x46a427['is']('element','ol')||!_0x46a427['hasClass']('footnotes'))return;if(!_0x43c047['consumable']['test'](_0x2fddec,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xa27550=_0x43c047['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2fddec['getAttribute']('id')});if(!_0x43c047['safeInsert'](_0xa27550,_0x4f991b['modelCursor']))return;_0x43c047['consumable']['consume'](_0x2fddec,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3c8ab7=Array['from'](_0x2fddec['getChildren']())['find'](_0x3ce77b=>_0x3ce77b['is']('element')&&_0x3ce77b['hasClass']('footnote-content'));for(const _0x18aab2 of _0x2fddec['getChildren']())_0x18aab2['is']('element')&&(_0x43c047['consumable']['consume'](_0x18aab2,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x43c047['consumable']['consume'](_0x18aab2,{'name':!0x0,'classes':'footnote-content'}));if(_0x3c8ab7){if(_0x487a62)_0x43c047['convertChildren'](_0x3c8ab7,_0xa27550);else{const _0x26da5c=_0x43c047['writer']['createElement']('footnoteInlineContent');_0x43c047['writer']['insert'](_0x26da5c,_0xa27550),_0x43c047['convertChildren'](_0x3c8ab7,_0x26da5c);}}_0x43c047['updateConversionResult'](_0xa27550,_0x4f991b);});}),_0x4fbd8e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4cc0ce,{writer:_0x44f9e9})=>D(_0x4cc0ce,_0x44f9e9,_0x4579f0,{'dataPipeline':!0x0})}),_0x4fbd8e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24bb85,{writer:_0x18a13f})=>D(_0x24bb85,_0x18a13f,_0x4579f0)});}['_defineBogusParagraphConverters'](){const {editor:_0x130499}=this,{conversion:_0x316ec1}=_0x130499;_0x130499['config']['get']('footnotes.multiBlock')?(_0x316ec1['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x316ec1['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x130499['model']['document'],'change:data',()=>{!function(_0xcc81a7,_0x3dca53){const _0x4e2708=_0xcc81a7['document']['differ'],_0x25b7d6=new Set();for(const _0x1a2159 of _0x4e2708['getChanges']()){const _0x96d283='attribute'==_0x1a2159['type']?_0x1a2159['range']['start']['parent']:_0x1a2159['position']['parent'];_0x96d283['is']('element','footnoteDefinition')&&_0x25b7d6['add'](_0x96d283);}for(const _0x29697f of _0x25b7d6['values']()){const _0x3ab395=Array['from'](_0x29697f['getChildren']())['filter'](_0x340875=>p(_0x340875,_0x3dca53['mapper']));for(const _0x13e0d1 of _0x3ab395)_0x3dca53['reconvertItem'](_0x13e0d1);}}(_0x130499['model'],_0x130499['editing']);})):(_0x316ec1['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x316ec1['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3656c1,{writer:_0x510c2d})=>{const _0x1e3601=_0x510c2d['createContainerElement']('span');return _0x510c2d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1e3601),_0x1e3601;}}));}['_defineKeyboardHandlers'](){const {editor:_0x467cf6}=this,{editing:_0x8deffc,t:t}=_0x467cf6,_0x209562=_0x467cf6['model']['document']['selection'];_0x467cf6['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x467cf6['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x8deffc['view']['document'],'enter',(_0x468042,_0x2d4c81)=>{const _0x1b2e81=function(_0x336053){const _0x1d3f4b=_0x336053['getSelectedElement']();if(_0x1d3f4b?.['is']('element','footnoteRef'))return _0x1d3f4b;return null;}(_0x209562);if(_0x1b2e81){const _0x90db00=_0x1b2e81['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x90db00),_0x2d4c81['preventDefault'](),_0x468042['stop']();}},{'context':_0x1862ca});}['_defineClickHandlers'](){const {editor:_0x573600}=this,{editing:_0x3531ae}=_0x573600;_0x573600['editing']['view']['addObserver'](_0xfde7da),_0x573600['editing']['view']['addObserver'](_0x46b2f1);let _0x431166=!0x1;this['listenTo'](_0x3531ae['view']['document'],'pointerdown',(_0x376653,_0x1a90e4)=>{const {target:_0x4d8727}=_0x1a90e4,_0x3af5e4=_0x3531ae['view']['document']['selection'];_0x431166=!(!_0x4d8727['is']('element','sup')||!_0x4d8727['hasClass']('footnote'))&&_0x3af5e4['getSelectedElement']()===_0x4d8727;},{'priority':'high'}),this['listenTo'](_0x3531ae['view']['document'],'click',(_0x47da20,_0x12e886)=>{const {target:_0x526a86}=_0x12e886,_0x13cb13=_0x526a86['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x13cb13['slice'](0x1)),_0x47da20['stop'](),_0x12e886['preventDefault']();},{'priority':'high','context':_0x567216=>_0x567216['is']('element','sup')&&_0x567216['hasClass']('footnote')&&_0x431166}),this['listenTo'](_0x3531ae['view']['document'],'click',(_0x5ade61,_0x42901c)=>{const {target:_0x1d9f5e}=_0x42901c;if(!_0x1d9f5e['is']('element','a'))return;let _0x423338=_0x1d9f5e['getAttribute']('href');if(!_0x423338?.['startsWith']('#'))return;_0x423338=_0x423338['slice'](0x1);let _0x44a131=!0x1;(_0x423338['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x423338['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x423338))&&(_0x44a131=!0x0),_0x44a131&&(_0x42901c['preventDefault'](),_0x5ade61['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x173450}={}){return(_0x16f6d5,{writer:_0x3bdc48})=>{if(!h(_0x16f6d5))return null;if(!_0x173450)return _0x3bdc48['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4fefc4=_0x3bdc48['createContainerElement']('p');return _0x3bdc48['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4fefc4),_0x4fefc4;};}function h(_0x42e06e){const {parent:_0x4a6be3}=_0x42e06e;if(!_0x4a6be3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4a6be3['childCount'])return!0x1;for(const _0x5b3ccf of _0x42e06e['getAttributeKeys']())if(!_0x5b3ccf['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5b3ccf)return!0x1;return!0x0;}function p(_0x3f8928,_0x1442eb){if(!_0x3f8928['is']('element','paragraph'))return!0x1;const _0xdb5df3=_0x1442eb['toViewElement'](_0x3f8928);return!!_0xdb5df3&&h(_0x3f8928)!==_0xdb5df3['is']('element','span');}function $(_0x118e23){return _0x1862ca(_0x118e23)&&_0x118e23['is']('containerElement')&&!!_0x118e23['getCustomProperty']('footnotesDefinitions');}function g(_0x120a0d,_0x339330){const _0x167a1e=_0x120a0d['getAttribute']('footnoteId'),_0x33fdd2=_0x120a0d['getAttribute']('footnoteCounter'),_0x3c246a=_0x339330['createUIElement']('a',{'id':'ref-'+_0x167a1e,'href':'#'+_0x167a1e},function(_0x325031){const _0x118821=this['toDomElement'](_0x325031);return _0x118821['textContent']=_0x33fdd2,_0x118821;}),_0x105f70=_0x339330['createContainerElement']('sup',{'class':'footnote'},[_0x3c246a]);return _0x105f70['getFillerOffset']=()=>null,_0x105f70;}function D(_0x285332,_0x4d811a,_0x36ad24,{dataPipeline:_0x125281}={}){const {t:t}=_0x36ad24,_0x5acc80=_0x285332['getAttribute']('footnoteId'),_0xb2418f=_0x4d811a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5acc80},function(_0xb8ea21){const _0x3d7a3d=this['toDomElement'](_0xb8ea21);return _0x3d7a3d['innerText']='^',_0x3d7a3d;}),_0x2e4115=_0x125281?_0x4d811a['createContainerElement']('div',{'class':'footnote-content'}):_0x147785(_0x4d811a['createEditableElement']('div',{'class':'footnote-content'}),_0x4d811a,{'label':t('Footnote\x20content.')});return _0x4d811a['insert'](_0x4d811a['createPositionAt'](_0x2e4115,0x0),_0x4d811a['createSlot']()),_0x4d811a['createContainerElement']('li',{'class':'footnote-definition','id':_0x5acc80},[_0xb2418f,_0x2e4115]);}class e extends _0x381f4b{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1b023c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x24cb3e}=this,{plugins:_0x23946e,model:_0x445522}=_0x24cb3e,_0x5e972c=_0x23946e['get'](_0x1b023c),_0x3d035a=_0x23946e['get'](c);this['listenTo'](_0x5e972c,'outputTransformation',(_0x3915dc,_0x2167f7)=>{const _0x463b56=function(_0x496f94,_0xd4624c){const _0x4bb135=new Set();for(const {item:_0x5382c0}of _0x496f94['createRangeIn'](_0xd4624c))_0x5382c0['is']('element','footnoteRef')&&_0x4bb135['add'](_0x5382c0['getAttribute']('footnoteId'));return Array['from'](_0x4bb135);}(_0x445522,_0x2167f7['content']);if(!_0x463b56['length'])return;const _0x5191c3=_0x3d035a['getFootnotes'](),_0x40ba64=_0x463b56['reduce']((_0x1bcf0a,_0x148fef)=>{const _0xdfad00=_0x5191c3['find'](_0x26af7c=>_0x26af7c['id']===_0x148fef);if(_0xdfad00){const _0x34e7ef=_0x24cb3e['data']['toView'](_0xdfad00['definition'],{'isClipboardPipeline':!0x0}),_0x15bada=_0x24cb3e['data']['htmlProcessor']['toData'](_0x34e7ef);_0x1bcf0a[_0xdfad00['id']]=_0x15bada;}return _0x1bcf0a;},Object['create'](null));_0x2167f7['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x40ba64));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x557f8e}=this,{model:_0x20fcc2,plugins:_0xe29be7}=_0x557f8e,{view:_0x5b2c79}=_0x557f8e['editing'],_0x3f64ae=_0xe29be7['get'](_0x1b023c),_0x361536=_0xe29be7['get'](c);let _0x2f3ca2=null;this['listenTo'](_0x5b2c79['document'],'clipboardInput',(_0x120da6,_0x2eef27)=>{const _0x3e2687=_0x2eef27['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2f3ca2=_0x3e2687?JSON['parse'](_0x3e2687):null;}),this['listenTo'](_0x3f64ae,'contentInsertion',(_0x4f910c,_0x17b2e6)=>{if(!_0x2f3ca2)return;const _0x33bff7=_0x17b2e6['sourceEditorId']===this['editor']['id'];_0x33bff7&&'drop'===_0x17b2e6['method']||_0x20fcc2['change'](_0x497503=>{!function(_0x4a9b0c,_0x5aa800){const _0x3e73c6=[];for(const {item:_0x28f695}of _0x4a9b0c['createRangeIn'](_0x5aa800))_0x28f695['is']('element','footnotesDefinitions')&&_0x3e73c6['push'](_0x28f695);for(const _0x38cff1 of _0x3e73c6)_0x4a9b0c['remove'](_0x38cff1);}(_0x497503,_0x17b2e6['content']);let _0xab393f=_0x361536['getFootnotesDefinitionsObjectElement']();if(!_0xab393f){const _0x563acb=_0x20fcc2['document']['selection']['getFirstRange']()['root'];_0xab393f=_0x361536['_insertEmptyFootnotesDefinitionsContainer'](_0x497503,_0x563acb);}const _0x1a3b7c=function(_0x3e21c2,_0x11c8ec,_0x37b071){const _0x4008e9=Object['create'](null);for(const {item:_0x3bdfa0}of _0x3e21c2['createRangeIn'](_0x11c8ec))if(_0x3bdfa0['is']('element','footnoteRef')){const _0x70f8fd=_0x3bdfa0['getAttribute']('footnoteId');if(!_0x37b071(_0x70f8fd))continue;_0x4008e9[_0x70f8fd]||(_0x4008e9[_0x70f8fd]=_0x204d37()),_0x3e21c2['setAttribute']('footnoteId',_0x4008e9[_0x70f8fd],_0x3bdfa0);}return _0x4008e9;}(_0x497503,_0x17b2e6['content'],_0x1f9bef=>!_0x33bff7||null!==_0x361536['getFootnote'](_0x1f9bef));for(const [_0xe65ede,_0x390f01]of Object['entries'](_0x2f3ca2)){const _0x378bd3=_0x1a3b7c[_0xe65ede]||_0xe65ede,_0x51a8c3=_0x497503['createElement']('footnoteDefinition',{'footnoteId':_0x378bd3}),_0x535776=_0x557f8e['data']['htmlProcessor']['toView'](_0x390f01),_0xc05956=_0x557f8e['data']['toModel'](_0x535776,_0x51a8c3);_0x497503['append'](_0xc05956,_0x51a8c3),_0x497503['insert'](_0x51a8c3,_0xab393f,'end');}_0x2f3ca2=null;});});}}class i extends _0x381f4b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x360b9c}=this,{componentFactory:_0x4b9634}=_0x360b9c['ui'];_0x4b9634['add']('insertFootnote',v(_0x360b9c,_0x37c695)),_0x4b9634['add']('menuBar:insertFootnote',v(_0x360b9c,_0x528eb8)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43dc08=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x466685;for(const _0x561057 in _0x43dc08){const _0x23922c=_0x561057,_0x28c4bb=_0x43dc08[_0x23922c];if('footnotesLicenseKeyValid'==_0x28c4bb||'footnotesLicenseKeyInvalid'==_0x28c4bb||'footnotesLicenseKeyExpired'==_0x28c4bb||'footnotesLicenseKeyDomainLimit'==_0x28c4bb||'footnotesLicenseKeyNotAllowed'==_0x28c4bb||'footnotesLicenseKeyEvaluationLimit'==_0x28c4bb||'footnotesLicenseKeyTrialLimit'==_0x28c4bb||'footnotesLicenseKeyUsageLimit'==_0x28c4bb){delete _0x43dc08[_0x23922c],_0x466685=_0x28c4bb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x466685&&_0x43dc08['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x466685&&_0x43dc08['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x466685&&_0x43dc08['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x466685&&_0x43dc08['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x466685&&_0x43dc08['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x466685&&_0x43dc08['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x466685&&_0x43dc08['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x2e7a28,_0x3da6a7){const _0x103567=_0x2e7a28['commands']['get']('insertFootnote');return _0x3e03ff=>{const {t:t}=_0x3e03ff,_0x2f86c2=new _0x3da6a7(_0x3e03ff),_0x51c7f5=_0x2f86c2 instanceof _0x528eb8;return _0x2f86c2['bind']('isEnabled')['to'](_0x103567,'isEnabled'),_0x2f86c2['set']({'label':t(_0x51c7f5?'Footnote':'Insert\x20footnote'),'icon':_0x5eae8f,'tooltip':!0x0}),_0x2f86c2['on']('execute',()=>{_0x103567['execute'](),_0x2e7a28['editing']['view']['focus']();}),_0x2f86c2;};}class nt extends _0x381f4b{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const H=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x180100{['refresh'](){const {editor:_0x7a70dd}=this,_0x10c7d5=_0x7a70dd['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x10c7d5,this['value']=_0x10c7d5?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x522e2a}){const {editor:_0x475392}=this,_0x14c79c=_0x475392['plugins']['get'](c),_0x1988ba=_0x14c79c['getFootnotesDefinitionsObjectElement']();_0x1988ba&&H['includes'](_0x522e2a)&&_0x475392['model']['change'](_0xea9f25=>{_0xea9f25['setAttribute']('footnotesListStyle',_0x522e2a,_0x1988ba),_0x14c79c['_updateFootnotesCounters'](_0xea9f25);});}}class b extends _0x180100{['refresh'](){const {editor:_0x2d9bfd}=this,_0x3d168c=_0x2d9bfd['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3d168c,this['value']=_0x3d168c?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x173c18}){const {editor:_0x3b24e5}=this,_0x7a54dc=_0x3b24e5['plugins']['get'](c),_0x348c18=_0x7a54dc['getFootnotesDefinitionsObjectElement']();_0x348c18&&Number['isInteger'](_0x173c18)&&_0x3b24e5['model']['change'](_0x4d41e6=>{_0x4d41e6['setAttribute']('footnotesListStart',_0x173c18,_0x348c18),_0x7a54dc['_updateFootnotesCounters'](_0x4d41e6);});}}class P extends _0x381f4b{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b1a7b}=this;_0x2b1a7b['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2b1a7b['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2b1a7b['commands']['add']('footnotesStyle',new S(_0x2b1a7b)),_0x2b1a7b['commands']['add']('footnotesStart',new b(_0x2b1a7b)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x247fc4}=this,{schema:_0x14efe6}=_0x247fc4['model'];_0x14efe6['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x276169}=this,{conversion:_0x2da6b8,model:_0x43819c}=_0x276169,{schema:_0x1c235b}=_0x43819c;_0x2da6b8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x222e66=>_0x222e66['getStyle']('list-style-type')}}),_0x2da6b8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x957ff3=>{const _0x54a850=_0x957ff3['getAttribute']('start'),_0x292109=Number['parseInt'](_0x54a850,0xa);return Number['isNaN'](_0x292109)?null:_0x292109;}}}),_0x2da6b8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x5d683f=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5d683f['getAttribute']('type')])}}),_0x2da6b8['for']('upcast')['add'](_0x4ac867=>{_0x4ac867['on']('element:ol',(_0x553006,_0x72b0d8,_0x6044bd)=>{const _0x303d8c=_0x72b0d8['modelRange']?.['start']['nodeAfter'];_0x303d8c?.['is']('element','footnotesDefinitions')&&(!_0x303d8c['hasAttribute']('footnotesListStyle')&&_0x1c235b['checkAttribute'](_0x303d8c,'footnotesListStyle')&&_0x6044bd['writer']['setAttribute']('footnotesListStyle','decimal',_0x303d8c),!_0x303d8c['hasAttribute']('footnotesListStart')&&_0x1c235b['checkAttribute'](_0x303d8c,'footnotesListStart')&&_0x6044bd['writer']['setAttribute']('footnotesListStart',0x1,_0x303d8c));},{'priority':'low'});}),_0x2da6b8['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x2f4944=>0x1===_0x2f4944?null:{'key':'start','value':String(_0x2f4944)}}),_0x2da6b8['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x766e2=>'decimal'===_0x766e2?null:{'key':'style','value':{'list-style-type':_0x766e2}}}),_0x2da6b8['for']('editingDowncast')['add'](_0x5d89f9=>{_0x5d89f9['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x35eda7,_0x59fc56,_0x54713b)=>{if(!_0x54713b['consumable']['consume'](_0x59fc56['item'],_0x35eda7['name']))return;const _0x19b941=C(_0x59fc56['item'],_0x54713b['mapper']);null===_0x59fc56['attributeNewValue']||void 0x0===_0x59fc56['attributeNewValue']||0x1===_0x59fc56['attributeNewValue']?_0x54713b['writer']['removeAttribute']('start',_0x19b941):_0x54713b['writer']['setAttribute']('start',String(_0x59fc56['attributeNewValue']),_0x19b941);}),_0x5d89f9['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x58a02c,_0x47f1e7,_0x511465)=>{if(!_0x511465['consumable']['consume'](_0x47f1e7['item'],_0x58a02c['name']))return;const _0xec5414=C(_0x47f1e7['item'],_0x511465['mapper']);_0x47f1e7['attributeNewValue']&&'decimal'!==_0x47f1e7['attributeNewValue']?_0x511465['writer']['setStyle']('list-style-type',_0x47f1e7['attributeNewValue'],_0xec5414):_0x511465['writer']['removeStyle']('list-style-type',_0xec5414);});});}['_definePostfixer'](){const {editor:_0x27b5e9}=this,{model:_0x399b05}=_0x27b5e9,_0x5e4775=_0x27b5e9['plugins']['get'](c),_0x2b45bd=this['_getDefaultListStyle'](),_0x20e70e=this['_getDefaultStartIndex']();_0x399b05['document']['registerPostFixer'](_0x431aa6=>{const _0x25476f=_0x399b05['document']['differ']['getChanges']();let _0x202f6f=!0x1;for(const _0x4ef49f of _0x25476f){if('insert'!==_0x4ef49f['type']||'$text'===_0x4ef49f['name'])continue;const _0x56ffd8=_0x399b05['createRangeOn'](_0x4ef49f['position']['nodeAfter']);for(const _0x2e57cd of _0x56ffd8['getItems']())_0x2e57cd['is']('element','footnotesDefinitions')&&(_0x2e57cd['hasAttribute']('footnotesListStart')||(_0x431aa6['setAttribute']('footnotesListStart',_0x20e70e,_0x2e57cd),_0x202f6f=!0x0),_0x2e57cd['hasAttribute']('footnotesListStyle')||(_0x431aa6['setAttribute']('footnotesListStyle',_0x2b45bd,_0x2e57cd),_0x202f6f=!0x0));}return _0x202f6f&&_0x5e4775['_updateFootnotesCounters'](_0x431aa6),_0x202f6f;});}['_defineFormatter'](){const {editor:_0x1946e1}=this;_0x1946e1['plugins']['get'](c)['setFootnoteFormatter'](_0x5d1d26=>this['_formatFootnoteListValue'](_0x5d1d26));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4c95b8,value:_0x5c895f,digits:_0x3079c4}){const _0x48332f=_0x4c95b8['getAttribute']('footnotesListStyle'),_0x15a798=_0x4c95b8['getAttribute']('footnotesListStart'),_0x368d08=Math['floor'](_0x5c895f)+(_0x15a798-0x1);switch(_0x48332f){case'decimal':default:return String(_0x368d08);case'decimal-leading-zero':return function(_0x9b0b00,_0x8f64c0){return String(_0x9b0b00)['padStart'](_0x8f64c0,'0');}(_0x368d08,Math['max'](0x2,_0x3079c4));case'lower-alpha':case'lower-latin':return M(_0x368d08,!0x1);case'upper-alpha':case'upper-latin':return M(_0x368d08,!0x0);case'lower-roman':return A(_0x368d08,!0x1);case'upper-roman':return A(_0x368d08,!0x0);}}}function C(_0x159a5a,_0x8d62fa){const _0x4e14e8=_0x8d62fa['toViewElement'](_0x159a5a);return Array['from'](_0x4e14e8['getChildren']())['find'](_0x2ef5a5=>_0x2ef5a5['is']('element','ol'));}function M(_0x461b4e,_0x2e9a33){let _0x267e4='',_0x58c182=_0x461b4e;for(;_0x58c182>0x0;){const _0x385dca=(_0x58c182-0x1)%0x1a;_0x267e4=String['fromCharCode'](0x61+_0x385dca)+_0x267e4,_0x58c182=Math['floor']((_0x58c182-0x1)/0x1a);}return _0x2e9a33?_0x267e4['toUpperCase']():_0x267e4;}const X=[{'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 A(_0x3e126d,_0x491b2a){let _0x56ce57='',_0xdbdb19=_0x3e126d;for(const {value:_0x6c606f,numeral:_0x3082f8}of X)for(;_0xdbdb19>=_0x6c606f;)_0x56ce57+=_0x3082f8,_0xdbdb19-=_0x6c606f;return _0x491b2a?_0x56ce57:_0x56ce57['toLowerCase']();}class R extends _0xf9108b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x44558e();['focusCycler'];constructor(_0x5b23a1,{styleButtonViews:_0x32830f,styleGridAriaLabel:_0x229dff}){super(_0x5b23a1),(this['focusCycler']=new _0x1e2e91({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x32830f,_0x229dff),[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 _0x254d95 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x254d95['element']);_0x34cdf8({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['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 _0x29b79f=_0x472027=>_0x472027['stopPropagation']();this['keystrokes']['set']('arrowright',_0x29b79f),this['keystrokes']['set']('arrowleft',_0x29b79f),this['keystrokes']['set']('arrowup',_0x29b79f),this['keystrokes']['set']('arrowdown',_0x29b79f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x409997,_0x45dc02){const _0x19800a=new _0xf9108b(this['locale']);return _0x19800a['children']=_0x19800a['createCollection'](),_0x19800a['children']['addMany'](_0x409997),_0x19800a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x45dc02,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x19800a['children']}),_0x19800a['children']['delegate']('execute')['to'](this),_0x19800a['focus']=function(){for(const _0x8e7a10 of this['children'])if(_0x8e7a10 instanceof _0x37c695&&_0x8e7a10['isOn'])return void _0x8e7a10['focus']();this['children']['first']['focus']();},_0x19800a['focusTracker']=new it(),_0x19800a['keystrokes']=new et(),_0x19800a['render'](),_0x19800a['keystrokes']['listenTo'](_0x19800a['element']),this['children']['add'](_0x19800a),_0x19800a;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4132a3=this['_createStartIndexPropertyView'](),_0x3dcaa6=[_0x4132a3],_0x1b689d=new _0x4a1638(this['locale'],_0x3dcaa6);return _0x1b689d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1b689d['buttonView']['bind']('isEnabled')['toMany'](_0x3dcaa6,'isEnabled',(..._0x245c1b)=>_0x245c1b['some'](_0x207a10=>_0x207a10)),_0x1b689d['buttonView']['on']('change:isEnabled',(_0x114625,_0x351e41,_0x4e9166)=>{_0x4e9166||(_0x1b689d['isCollapsed']=!0x0);}),this['children']['add'](_0x1b689d),[_0x4132a3,_0x1b689d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x27fedd=new tt(this['locale'],st);return _0x27fedd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x27fedd['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x27fedd['fieldView']['on']('input',()=>{const _0x8bab73=_0x27fedd['fieldView']['element'],_0x18db03=_0x8bab73['valueAsNumber'];Number['isNaN'](_0x18db03)?_0x27fedd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x8bab73['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x18db03}):_0x27fedd['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x27fedd;}}class j extends _0x381f4b{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x45a7bd,_0x289e52];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b9db4}=this,{componentFactory:_0x3bf2e2}=_0x2b9db4['ui'];_0x2b9db4['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3bf2e2['add']('footnotesStyle',function(_0x4521c5){return _0x3587b2=>{const {t:t}=_0x3587b2,_0x4f1e71=_0x4521c5['commands']['get']('footnotesStyle'),_0x227459=_0x4519ce(_0x3587b2),{buttonView:_0x5971d1}=_0x227459;return _0x227459['class']='ck-footnotes-styles-dropdown',_0x227459['bind']('isEnabled')['to'](_0x4f1e71,'isEnabled'),_0x5971d1['set']({'label':t('Footnotes\x20style'),'icon':_0x5eae8f,'tooltip':!0x0}),_0x227459['once']('change:isOpen',()=>{const _0x149a72=function({editor:_0x5c07ee,dropdownView:_0x417393}){const {t:t}=_0x5c07ee['locale'],_0x5786dd=t('Footnotes\x20definitions\x20styles'),_0x7ee6a8=function(_0x485c48){const t=_0x485c48['locale']['t'],_0x5a28e7=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x437365},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4025d5},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x50417e},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x18d6e3},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2868d1},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x317054}];return _0x5a28e7['map'](function(_0x196249){const _0x2122e2=_0x196249['locale'];return({label:_0x5391fd,icon:_0x2d9274,tooltip:_0x237731,style:_0x4115c2})=>{const _0xf21f7b=_0x196249['commands']['get']('footnotesStyle'),_0x55b9ff=new _0x37c695(_0x2122e2);return _0x55b9ff['set']({'label':_0x5391fd,'icon':_0x2d9274,'tooltip':_0x237731}),_0x55b9ff['bind']('isOn')['to'](_0xf21f7b,'value',_0xf8a515=>_0xf8a515===_0x4115c2),_0x55b9ff['bind']('isEnabled')['to'](_0xf21f7b,'isEnabled'),_0x55b9ff['on']('execute',()=>{_0x196249['execute']('footnotesStyle',{'value':_0x4115c2}),_0x196249['editing']['view']['focus']();}),_0x55b9ff;};}(_0x485c48));}(_0x5c07ee),_0x324460=new R(_0x5c07ee['locale'],{'styleGridAriaLabel':_0x5786dd,'styleButtonViews':_0x7ee6a8});return _0x324460['delegate']('execute')['to'](_0x417393),_0x324460['on']('footnotesListStart',(_0xbe3f1e,_0x5e4e5e)=>{_0x5c07ee['execute']('footnotesStart',{'value':_0x5e4e5e['startIndex']});}),_0x324460;}({'editor':_0x4521c5,'dropdownView':_0x227459});_0x227459['panelView']['children']['add'](_0x149a72);}),_0x227459;};}(_0x2b9db4));}['afterInit'](){const {editor:_0x215b26}=this,{t:t}=_0x215b26['locale'],_0x3f0c31=_0x215b26['plugins']['get'](_0x289e52),{defaultPositions:_0x46ee3b}=_0x33377f;_0x3f0c31['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x215b26['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x11475f=>{let _0x4edd98=_0x11475f['getFirstPosition']()?.['parent'];return _0x4edd98?.['is']('$text')&&(_0x4edd98=_0x4edd98['parent']),_0x4edd98?.['is']('element')?_0x4edd98['findAncestor']($):null;},'positions':[_0x46ee3b['southArrowNorth'],_0x46ee3b['southArrowNorthMiddleWest'],_0x46ee3b['southArrowNorthMiddleEast'],_0x46ee3b['southArrowNorthWest'],_0x46ee3b['southArrowNorthEast'],_0x46ee3b['northArrowSouth'],_0x46ee3b['northArrowSouthMiddleWest'],_0x46ee3b['northArrowSouthMiddleEast'],_0x46ee3b['northArrowSouthWest'],_0x46ee3b['northArrowSouthEast'],_0x46ee3b['viewportStickyNorth']]});}}class rt extends _0x381f4b{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,rt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
23
+ import{Plugin as _0x353bc1,Command as _0xbc1792}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x27fb12,isWidget as _0x297061,toWidgetEditable as _0xcb8e3f,WidgetToolbarRepository as _0x2011e2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3cd315,logWarning as _0x104c04,FocusTracker as it,KeystrokeHandler as et,global as ot}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3409bd,ClickObserver as _0x200c3a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4d595d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x182982,ButtonView as _0x24a7e2,View as _0x1e7bd5,ViewCollection as _0xecfddf,FocusCycler as _0x598d36,addKeyboardHandlingForGrid as _0x4091cc,CollapsibleView as _0x4aac7f,LabeledFieldView as tt,createLabeledInputNumber as st,ContextualBalloon as _0x572487,BalloonPanelView as _0x5a3874,createDropdown as _0x44916a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3ca3de,IconListStyleDecimal as _0x1c2a82,IconListStyleDecimalLeadingZero as _0x3696d2,IconListStyleLowerRoman as _0xb4ffe8,IconListStyleUpperRoman as _0xe48280,IconListStyleLowerLatin as _0x37c439,IconListStyleUpperLatin as _0xd636a4}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x58c97a,_0x528340){this['_model']=_0x58c97a,this['_elementName']=_0x528340['elementName'],this['_getElementKey']=_0x528340['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x19106c){const _0x533102=new Set(),_0x52b30d=new Map();for(const _0x514934 of _0x19106c){if('insert'===_0x514934['type']&&'$text'!==_0x514934['name']&&_0x514934['position']['nodeAfter']){const _0x46f339=this['_model']['createRangeOn'](_0x514934['position']['nodeAfter']);for(const _0x115219 of _0x46f339['getItems']()){if(!_0x115219['is']('element',this['_elementName']))continue;const _0x5a2e7f=this['_getElementKey'](_0x115219);_0x52b30d['has'](_0x5a2e7f)||_0x52b30d['set'](_0x5a2e7f,[]),_0x52b30d['get'](_0x5a2e7f)['push'](_0x115219);}}if('remove'===_0x514934['type']&&_0x514934['name']===this['_elementName']){const _0x1895da=this['_getElementKey']({'getAttribute':_0x2bea89=>_0x514934['attributes']['get'](_0x2bea89)});_0x533102['add'](_0x1895da);}}for(const [_0xfdb207,_0x54da80]of this['_trackedElements'])'$graveyard'===_0x54da80['root']['rootName']&&_0x533102['add'](_0xfdb207);for(const _0x139d70 of _0x533102)this['_trackedElements']['delete'](_0x139d70);for(const [_0x58c2c5,_0x19952b]of _0x52b30d)this['_trackedElements']['set'](_0x58c2c5,_0x19952b[_0x19952b['length']-0x1]);const _0xd783b9=new Set();for(const [_0x188ba3,_0x24365e]of _0x52b30d)_0x533102['has'](_0x188ba3)&&(_0xd783b9['add'](_0x24365e[0x0]),_0x24365e['length']>0x1?_0x52b30d['set'](_0x188ba3,_0x24365e['slice'](0x1)):_0x52b30d['delete'](_0x188ba3),_0x533102['delete'](_0x188ba3));return{'removed':Array['from'](_0x533102),'inserted':Array['from'](_0x52b30d['values']())['flat'](),'moved':Array['from'](_0xd783b9)};}}class c extends _0x353bc1{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5be4ef){super(_0x5be4ef),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0xbd5d4f=>_0xbd5d4f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3a1f90=>_0x3a1f90['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1316cf}=this,{model:_0x4d4c91,data:_0x44f1d4}=_0x1316cf;_0x4d4c91['document']['registerPostFixer'](_0xb7ccb1=>{const _0x5202e8=_0x4d4c91['document']['differ']['getChanges']();let _0x5c9038=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xb7ccb1,_0x5202e8)&&(_0x5c9038=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xb7ccb1,_0x5202e8)&&(_0x5c9038=!0x0),this['_handleFootnoteReferencesChanges'](_0xb7ccb1,_0x5202e8)&&(_0x5c9038=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xb7ccb1)&&(_0x5c9038=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xb7ccb1)&&(_0x5c9038=!0x0),this['_sortFootnoteDefinitions'](_0xb7ccb1)&&(_0x5c9038=!0x0),_0x5c9038;}),this['listenTo'](_0x4d4c91['document'],'change:data',()=>{_0x4d4c91['enqueueChange']({'isUndoable':!0x1},_0xe51f1b=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xe51f1b);});},{'priority':'low'}),this['listenTo'](_0x44f1d4,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2403c1){return this['_footnotes']['find'](_0x1a1dcb=>_0x1a1dcb['id']===_0x2403c1)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x46ca7b){this['_footnoteFormatter']=_0x46ca7b;}['_updateFootnotesCounters'](_0x273abc,_0x3dab63=0x0){let _0x5e8e67=!0x1;for(let _0x145be1=_0x3dab63;_0x145be1<this['_footnotes']['length'];_0x145be1++)this['_updateFootnoteRefCounter'](_0x273abc,_0x145be1)&&(_0x5e8e67=!0x0);return _0x5e8e67;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1e1a31,_0x298806){const _0x23f26b=_0x1e1a31['createElement']('footnotesDefinitions',{});return _0x1e1a31['append'](_0x23f26b,_0x298806),this['_footnotesDefinitions']=_0x23f26b,_0x23f26b;}['_ensureFootnotesDefinitionsContainerExists'](_0x41ecc2){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x170ded=this['_footnotes'][0x0]['reference']['root'],_0x1c8068=this['_insertEmptyFootnotesDefinitionsContainer'](_0x41ecc2,_0x170ded);for(const _0x2c4317 of this['_footnotes'])_0x2c4317['definition']['parent']||_0x41ecc2['insert'](_0x2c4317['definition'],_0x1c8068,'end');this['_updateFootnotesCounters'](_0x41ecc2);}['_handleFootnotesDefinitionsObjectChanges'](_0x38041d,_0x4b3264){let _0x4cf615=!0x1;const {inserted:_0x1aec18,removed:_0x3f671e,moved:_0x19daef}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4b3264);if(_0x19daef['length']&&(this['_footnotesDefinitions']=_0x19daef[0x0]),_0x1aec18['length']){if(_0x1aec18['length']>0x1||this['_footnotesDefinitions']&&_0x1aec18['some'](_0x25493a=>_0x25493a!==this['_footnotesDefinitions'])){const _0x2a5958=_0x38041d['createElement']('footnotesDefinitions',{}),_0x2518c5=[];this['_footnotesDefinitions']&&_0x2518c5['push'](this['_footnotesDefinitions']),_0x2518c5['push'](..._0x1aec18),_0x38041d['insert'](_0x2a5958,_0x2518c5[0x0],'before');for(const _0x46db30 of _0x2518c5)_0x38041d['move'](_0x38041d['createRangeIn'](_0x46db30),_0x38041d['createPositionAt'](_0x2a5958,'end')),_0x38041d['remove'](_0x46db30);this['_footnotesDefinitions']=_0x2a5958,this['_updateFootnotesCounters'](_0x38041d),_0x4cf615=!0x0;}else this['_footnotesDefinitions']=_0x1aec18[0x0];}if(_0x3f671e['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x23d3ee of this['_footnotes'])_0x38041d['remove'](_0x23d3ee['reference']),_0x4cf615=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4cf615;}['_handleFootnoteDefinitionsChanges'](_0x3f803c,_0x292921){let _0x296abd=!0x1;const _0x56db56=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x559308,moved:_0x17ba96}=this['_footnoteDefsTracker']['getChanges'](_0x292921);for(const _0xd69e8 of[..._0x17ba96,..._0x559308]){const _0x246121=_0xd69e8['getAttribute']('footnoteId'),_0x2e1f84=this['getFootnote'](_0x246121);_0x2e1f84&&(_0x2e1f84['definition']=_0xd69e8),_(_0x3f803c,_0x56db56,_0xd69e8)&&(_0x296abd=!0x0);}return _0x296abd;}['_handleFootnoteReferencesChanges'](_0x3925ec,_0x38ce28){let _0x341f4f=!0x1;const {removed:_0xecfc33,inserted:_0x12badf,moved:_0xa421b7}=this['_footnoteRefsTracker']['getChanges'](_0x38ce28);for(const _0x465185 of _0xecfc33)this['_handleRemoveFootnoteReferenceById'](_0x3925ec,_0x465185)&&(_0x341f4f=!0x0);for(const _0x1d4384 of _0x12badf)this['_handleInsertedFootnoteReference'](_0x3925ec,_0x1d4384)&&(_0x341f4f=!0x0);for(const _0x2bb2d1 of _0xa421b7)this['_handleMovedFootnoteReference'](_0x3925ec,_0x2bb2d1)&&(_0x341f4f=!0x0);return _0x341f4f;}['_handleFootnotesDefinitionsObjectSync'](_0xc7ad8){if(!this['_footnotesDefinitions'])return!0x1;let _0x15382c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x15f344=[];for(const _0x5a51b8 of this['_footnotesDefinitions']['getChildren']()){const _0x424bc7=_0x5a51b8['getAttribute']('footnoteId');this['getFootnote'](_0x424bc7)||(_0x15f344['unshift'](_0x5a51b8),_0x15382c=!0x0);}for(const _0x598757 of _0x15f344)_0xc7ad8['remove'](_0x598757);}const _0x19f179=new Set(),_0x256fd5=[];for(const _0x485efa of this['_footnotesDefinitions']['getChildren']()){const _0x51dffa=_0x485efa['getAttribute']('footnoteId');_0x19f179['has'](_0x51dffa)?(_0x256fd5['unshift'](_0x485efa),_0x15382c=!0x0):_0x19f179['add'](_0x51dffa);}for(const _0x47ecc1 of _0x256fd5)_0xc7ad8['remove'](_0x47ecc1);return this['_footnotesDefinitions']['childCount']||(_0xc7ad8['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x15382c=!0x0),_0x15382c;}['_handleInsertedFootnoteReference'](_0x4d61f8,_0x115bd0){if(this['_footnotes']['find'](_0x53bccb=>_0x53bccb['reference']===_0x115bd0))return!0x1;let _0x52d441=!0x1;const _0x3e03d3=_0x115bd0['getAttribute']('footnoteId'),_0x5c3a40=this['getFootnote'](_0x3e03d3);_0x5c3a40&&(_0x4d61f8['remove'](_0x5c3a40['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x2dc835=>_0x2dc835['id']!==_0x3e03d3),_0x52d441=!0x0);let _0x291576=this['_footnotesDefinitions']?function(_0x99553,_0x976e74){for(const _0x267eb3 of _0x99553['getChildren']())if(_0x267eb3['getAttribute']('footnoteId')===_0x976e74)return _0x267eb3;return null;}(this['_footnotesDefinitions'],_0x3e03d3):null;_0x291576||(_0x291576=_0x4d61f8['createElement']('footnoteDefinition',{'footnoteId':_0x3e03d3}),this['_footnotesDefinitions']&&(_0x4d61f8['insert'](_0x291576,this['_footnotesDefinitions'],'end'),_0x52d441=!0x0));const _0x1243ae={'id':_0x3e03d3,'reference':_0x115bd0,'definition':_0x291576},_0x22ed0b=I(this['editor']['model'],this['_footnotes'],_0x115bd0);return this['_footnotes']['splice'](_0x22ed0b,0x0,_0x1243ae),this['_updateFootnotesCounters'](_0x4d61f8,_0x22ed0b)&&(_0x52d441=!0x0),_0x52d441;}['_handleRemoveFootnoteReferenceById'](_0x42baff,_0xa9fd36){const _0x48aed7=this['_footnotes']['findIndex'](_0x1d2dfe=>_0x1d2dfe['id']===_0xa9fd36);if(-0x1===_0x48aed7)return!0x1;let _0x5dd3c1=!0x1;const _0x162401=this['_footnotes'][_0x48aed7];return'$graveyard'!==_0x162401['definition']['root']['rootName']&&(_0x42baff['remove'](_0x162401['definition']),_0x5dd3c1=!0x0),this['_footnotes']['splice'](_0x48aed7,0x1),this['_updateFootnotesCounters'](_0x42baff,_0x48aed7)&&(_0x5dd3c1=!0x0),_0x5dd3c1;}['_handleMovedFootnoteReference'](_0xc311fc,_0x790566){const _0x62995a=_0x790566['getAttribute']('footnoteId'),_0x40afb3=this['_footnotes']['findIndex'](_0x346fb3=>_0x346fb3['id']===_0x62995a),_0xf76138=this['_footnotes'][_0x40afb3];let _0x3c9876=!0x1;_0xf76138['reference']=_0x790566,this['_footnotes']['splice'](_0x40afb3,0x1);const _0x298b77=I(this['editor']['model'],this['_footnotes'],_0x790566);return this['_footnotes']['splice'](_0x298b77,0x0,_0xf76138),this['_updateFootnotesCounters'](_0xc311fc,Math['min'](_0x40afb3,_0x298b77))&&(_0x3c9876=!0x0),_0x3c9876;}['_updateFootnoteRefCounter'](_0x9381a2,_0x29e431){if(!this['_footnotesDefinitions'])return!0x1;const _0x9bef06=this['_footnotes'][_0x29e431];let _0x3cb04a;return _0x3cb04a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x9bef06,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x29e431+0x1}):String(_0x29e431+0x1),_0x9bef06['reference']['getAttribute']('footnoteCounter')!=_0x3cb04a&&(_0x9381a2['setAttribute']('footnoteCounter',_0x3cb04a,_0x9bef06['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x19bc66){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x59ca83,_0x19c930){if(_0x59ca83['length']!==_0x19c930['length'])return!0x1;for(let _0x339270=0x0;_0x339270<_0x59ca83['length'];_0x339270++)if(_0x59ca83[_0x339270]!==_0x19c930[_0x339270])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x6a4de0=>_0x6a4de0['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0xc85163=>_0xc85163['getAttribute']('footnoteId'))))return!0x1;let _0x5ae6bc=!0x1;for(let _0x582a51=0x0;_0x582a51<this['_footnotes']['length'];_0x582a51++){const _0x293528=this['_footnotes'][_0x582a51],_0x3cdfa7=_0x19bc66['createPositionBefore'](_0x293528['definition']),_0x56a29c=_0x19bc66['createPositionAt'](this['_footnotesDefinitions'],_0x582a51);_0x3cdfa7['isEqual'](_0x56a29c)||(_0x19bc66['move'](_0x19bc66['createRangeOn'](_0x293528['definition']),_0x56a29c),_0x5ae6bc=!0x0);}return _0x5ae6bc;}['_ensureFootnotesReferencesHaveProperOrder'](_0x44e635){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2dd661}=this['editor'];let _0x266fed=!0x1;for(let _0x3964c0=0x0;_0x3964c0<this['_footnotes']['length']-0x1;_0x3964c0++){const _0x260572=this['_footnotes'][_0x3964c0],_0x471703=this['_footnotes'][_0x3964c0+0x1],_0x45869f=_0x2dd661['createPositionBefore'](_0x260572['reference']),_0xce18fb=_0x2dd661['createPositionBefore'](_0x471703['reference']);'after'===_0x45869f['compareWith'](_0xce18fb)&&(this['_handleMovedFootnoteReference'](_0x44e635,_0x260572['reference']),_0x3964c0=-0x1,_0x266fed=!0x0);}return _0x266fed;}}function _(_0x3e9f3f,_0x528ab9,_0x4e1281){if(_0x4e1281['childCount'])return!0x1;const _0x5dc82d=_0x528ab9?'paragraph':'footnoteInlineContent';return _0x3e9f3f['insert'](_0x3e9f3f['createElement'](_0x5dc82d),_0x4e1281),!0x0;}function I(_0x8d1963,_0x11e1ca,_0x23934c){if(0x0===_0x11e1ca['length'])return 0x0;const _0x3348ea=_0x8d1963['createPositionBefore'](_0x23934c);for(let _0x61ba11=0x0;_0x61ba11<_0x11e1ca['length'];_0x61ba11++){const _0x3a4fe3=_0x11e1ca[_0x61ba11],_0x5ca986=_0x8d1963['createPositionBefore'](_0x3a4fe3['reference']);if('before'===_0x3348ea['compareWith'](_0x5ca986))return _0x61ba11;}const _0x58e664=_0x23934c['root'];let _0x5535ef=-0x1;for(let _0x1d9c6b=_0x11e1ca['length']-0x1;_0x1d9c6b>=0x0;_0x1d9c6b--)if(_0x11e1ca[_0x1d9c6b]['reference']['root']===_0x58e664){_0x5535ef=_0x1d9c6b;break;}if(-0x1!==_0x5535ef)return _0x5535ef+0x1;const _0x13a27c=_0x8d1963['document']['getRootNames'](),_0x533619=_0x13a27c['indexOf'](_0x58e664['rootName']),_0x270e4d=_0x13a27c[_0x533619+0x1];if(_0x270e4d){for(let _0x7b6139=0x0;_0x7b6139<_0x11e1ca['length'];_0x7b6139++)if(_0x11e1ca[_0x7b6139]['reference']['root']['rootName']===_0x270e4d)return _0x7b6139;}return _0x11e1ca['length'];}class w extends _0xbc1792{['refresh'](){const _0x273b53=this['editor']['model']['document']['selection'],_0x3d0cfa=this['_getPositionToInsertFootnote'](_0x273b53);this['isEnabled']=!!_0x3d0cfa;}['execute'](_0x17bcdf){const {editor:_0x2508e7}=this,{model:_0x5e8cfa}=_0x2508e7,{selection:_0x9abaff}=_0x5e8cfa['document'],_0xb8c60d=this['_getPositionToInsertFootnote'](_0x9abaff);if(!_0xb8c60d)return;const _0x342c15=_0x2508e7['plugins']['get']('FootnotesEditing'),_0x31566e=_0x17bcdf?.['footnoteId']??_0x3cd315();!function(_0x333b78){return'string'==typeof _0x333b78&&_0x333b78['length']>0x0&&!/\s/['test'](_0x333b78)&&!/^\d/['test'](_0x333b78);}(_0x31566e)?_0x104c04('insert-footnote-command-executed-with-invalid-id'):(_0x5e8cfa['change'](_0x241e55=>{const _0x1d63f2=_0x241e55['createElement']('footnoteRef',{'footnoteId':_0x31566e});_0x5e8cfa['insertObject'](_0x1d63f2,_0xb8c60d,null);}),_0x342c15['_moveSelectionToFootnoteDefinition'](_0x31566e));}['_getPositionToInsertFootnote'](_0x437906){const {model:_0x39d042}=this['editor'],{schema:_0xfc5a78}=_0x39d042,_0x5543e7=_0x437906['getFirstRange']();for(const _0x43580c of _0x5543e7['getItems']())if(_0xfc5a78['isBlock'](_0x43580c)||_0xfc5a78['isObject'](_0x43580c))return null;const _0x42dda2=_0x5543e7['end'];return _0xfc5a78['checkChild'](_0x42dda2,'footnoteRef')?_0x42dda2:null;}}class r extends _0x353bc1{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x966a82}=this;_0x966a82['config']['define']('footnotes.multiBlock',!0x0),_0x966a82['commands']['add']('insertFootnote',new w(_0x966a82)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x114cd3){const _0x52f600=_0x5a5883([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]),_0x19e778=0x47a28506,_0x13787a=0x47a5f3d6^_0x19e778,_0x26ae8f=window[_0x5a5883([0x44,0x61,0x74,0x65])][_0x5a5883([0x6e,0x6f,0x77])](),_0x10523e=_0x114cd3[_0x5a5883([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fdf77=new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x273630=>{_0x10523e[_0x5a5883([0x6f,0x6e,0x63,0x65])](_0x5a5883([0x72,0x65,0x61,0x64,0x79]),_0x273630);}),_0x20a377={[_0x5a5883([0x6b,0x74,0x79])]:_0x5a5883([0x45,0x43]),[_0x5a5883([0x75,0x73,0x65])]:_0x5a5883([0x73,0x69,0x67]),[_0x5a5883([0x63,0x72,0x76])]:_0x5a5883([0x50,0x2d,0x32,0x35,0x36]),[_0x5a5883([0x78])]:_0x5a5883([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]),[_0x5a5883([0x79])]:_0x5a5883([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]),[_0x5a5883([0x61,0x6c,0x67])]:_0x5a5883([0x45,0x53,0x32,0x35,0x36])},_0x561901=_0x10523e[_0x5a5883([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a5883([0x67,0x65,0x74])](_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5542e8(){let _0x1b3231,_0x282f47=null,_0x11a801=null;try{if(_0x561901==_0x5a5883([0x47,0x50,0x4c]))return _0x5a5883([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b3231=_0x327c44(),!_0x1b3231)return _0x5a5883([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b3231[_0x5a5883([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11a801=_0x2c09a1(_0x1b3231[_0x5a5883([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b3231[_0x5a5883([0x6a,0x74,0x69])])),await _0x5284a4()?_0x83dbe5()?_0x43c961()?_0x5a5883([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a6af2()?(_0x1b3231[_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a5883([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x282f47=_0xe8497b(_0x5a5883([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b3231[_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a5883([0x74,0x72,0x69,0x61,0x6c])&&(_0x282f47=_0xe8497b(_0x5a5883([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x224190()):_0x5a5883([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5883([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a5883([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a5883([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43c961(){const _0x4f16a5=[_0x5a5883([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a5883([0x74,0x72,0x69,0x61,0x6c])][_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3231[_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26ae8f/0x3e8:0xe10*_0x13787a;return _0x1b3231[_0x5a5883([0x65,0x78,0x70])]<_0x4f16a5;}function _0x83dbe5(){const _0x673267=_0x1b3231[_0x5a5883([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x673267&&(!!_0x673267[_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5883([0x2a]))||!!_0x673267[_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5883([0x46,0x4f,0x4f])));}function _0x3a6af2(){const _0x127175=_0x1b3231[_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x127175||0x0==_0x127175[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4dd103}=new URL(window[_0x5a5883([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x127175[_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dd103))return!0x0;const _0x83303f=_0x4dd103[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])](_0x5a5883([0x2e]));return _0x127175[_0x5a5883([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13b3e2=>_0x13b3e2[_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5883([0x2a])))[_0x5a5883([0x6d,0x61,0x70])](_0x4040e8=>_0x4040e8[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])](_0x5a5883([0x2e])))[_0x5a5883([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25bea4=>_0x25bea4[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x83303f[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5883([0x6d,0x61,0x70])](_0x50c94=>Array(_0x83303f[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50c94[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5883([0x66,0x69,0x6c,0x6c])](_0x50c94[0x0]===_0x5a5883([0x2a])?_0x5a5883([0x2a]):'')[_0x5a5883([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50c94))[_0x5a5883([0x73,0x6f,0x6d,0x65])](_0xc5cf34=>_0x83303f[_0x5a5883([0x65,0x76,0x65,0x72,0x79])]((_0x591c7b,_0x37667b)=>_0xc5cf34[_0x37667b]===_0x591c7b||_0xc5cf34[_0x37667b]===_0x5a5883([0x2a])));}function _0x224190(){return _0x282f47&&_0x11a801?new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42ff7c,_0x1fac7a)=>{_0x282f47[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x42ff7c,_0x1fac7a),_0x11a801[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x1d7973=>{_0x1d7973!=_0x5a5883([0x56,0x61,0x6c,0x69,0x64])&&_0x42ff7c(_0x1d7973);},_0x1fac7a);}):_0x282f47||_0x11a801||_0x5a5883([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c09a1(_0x2a75fc,_0x45e086){return new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2761af=>{if(_0x280724())return _0x2761af(_0x5a5883([0x56,0x61,0x6c,0x69,0x64]));_0x5878d2(),_0x10523e[_0x5a5883([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a5883([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x220a80=!0x1;const _0x216db5=_0x3cd315();function _0x116fef(_0x32f437){return!!_0x32f437&&(typeof _0x32f437===_0x5a5883([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32f437===_0x5a5883([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32f437[_0x5a5883([0x74,0x68,0x65,0x6e])]===_0x5a5883([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32f437[_0x5a5883([0x63,0x61,0x74,0x63,0x68])]===_0x5a5883([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e88a2(_0x1cd5c1){_0x3256b9(_0x1cd5c1)[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x4d5cad=>{if(!_0x4d5cad||_0x4d5cad[_0x5a5883([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a5883([0x6f,0x6b]))return _0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xce4c29(_0x327609(_0x216db5+_0x45e086))!=_0x4d5cad[_0x5a5883([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5883([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x42a8a7=>(_0x1c7a88(),_0x42a8a7),()=>{const _0x56ecef=_0x3c4ff4();return null==_0x56ecef?(_0x1c7a88(),_0x5a5883([0x56,0x61,0x6c,0x69,0x64])):_0x5a5883(_0x26ae8f-_0x56ecef>(0x63ae0106^_0x19e778)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x2761af)[_0x5a5883([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2761af(_0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e8f72=0x47946b86^_0x19e778;function _0x1c7a88(){const _0x31e95e=_0x5a5883([0x6c,0x6c,0x63,0x74,0x2d])+_0xce4c29(_0x327609(_0x2a75fc)),_0x47ad08=_0x3da4b0(_0xce4c29(window[_0x5a5883([0x4d,0x61,0x74,0x68])][_0x5a5883([0x63,0x65,0x69,0x6c])](_0x26ae8f/_0x4e8f72)));window[_0x5a5883([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5883([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31e95e,_0x47ad08);}function _0x3c4ff4(){const _0xe65237=_0x5a5883([0x6c,0x6c,0x63,0x74,0x2d])+_0xce4c29(_0x327609(_0x2a75fc)),_0x57daec=window[_0x5a5883([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5883([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe65237);return _0x57daec?window[_0x5a5883([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3da4b0(_0x57daec),0x10)*_0x4e8f72:null;}function _0x3256b9(_0x9b5805){return new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3937a7,_0x39fbd5)=>{_0x9b5805[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x3937a7,_0x39fbd5),window[_0x5a5883([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39fbd5,0x47a351c6^_0x19e778);});}}_0x10523e[_0x5a5883([0x6f,0x6e])](_0x5a5883([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5695f1,_0x54e9dc)=>{if(_0x54e9dc[0x0]!=_0x2a75fc)return _0x2761af(_0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54e9dc[0x1]={..._0x54e9dc[0x1],[_0x5a5883([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x216db5};},{[_0x5a5883([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5883([0x68,0x69,0x67,0x68])}),_0x10523e[_0x5a5883([0x6f,0x6e])](_0x5a5883([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57430f=>{_0x116fef(_0x57430f[_0x5a5883([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x220a80=!0x0,_0x3e88a2(_0x57430f[_0x5a5883([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a5883([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5883([0x6c,0x6f,0x77])}),_0x3fdf77[_0x5a5883([0x74,0x68,0x65,0x6e])](()=>{_0x220a80||_0x2761af(_0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x280724(){return _0x10523e[_0x5a5883([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5883([0x76,0x69,0x65,0x77])][_0x5a5883([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a5883([0x61,0x75,0x74,0x6f]);}function _0x5878d2(){_0x10523e[_0x5a5883([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5883([0x76,0x69,0x65,0x77])][_0x5a5883([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a5883([0x61,0x75,0x74,0x6f]);}}function _0xe8497b(_0x5b9de7){const _0x2dad9e=[new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x425573=>setTimeout(_0x425573,0x47abbbca^_0x19e778)),_0x3fdf77[_0x5a5883([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x124978=>{let _0x3da80d=0x0;_0x10523e[_0x5a5883([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5883([0x6f,0x6e])](_0x5a5883([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4be984,_0x25d476)=>{_0x25d476[0x0][_0x5a5883([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3da80d++,_0x3da80d==(0x47a284fe^_0x19e778)&&(_0x124978(),_0x4be984[_0x5a5883([0x6f,0x66,0x66])]());});}))];return window[_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a5883([0x72,0x61,0x63,0x65])](_0x2dad9e)[_0x5a5883([0x74,0x68,0x65,0x6e])](()=>_0x5b9de7);}async function _0x4d2d85(){await _0x3fdf77,_0x10523e[_0x5a5883([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5883([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3426ae,_0x10523e[_0x5a5883([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5883([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3426ae,_0x10523e[_0x5a5883([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a5883([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1dcb2c(_0x432ff9){const _0x5bf225=_0x26b664();_0x10523e[_0x5bf225]=_0x5a5883([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x432ff9,_0x432ff9!=_0x5a5883([0x56,0x61,0x6c,0x69,0x64])&&_0x4d2d85();}function _0x26b664(){const _0x2c0456=window[_0x5a5883([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a5883([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a5883([0x6e,0x6f,0x77])]())[_0x5a5883([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a5883([0x2e]),'');let _0xc8e36b=_0x5a5883([0x75]);for(let _0x35e695=0x0;_0x35e695<_0x2c0456[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35e695+=0x2){let _0x12d1cb=window[_0x5a5883([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c0456[_0x5a5883([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35e695,_0x35e695+0x2));_0x12d1cb>=_0x52f600[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12d1cb-=_0x52f600[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc8e36b+=_0x52f600[_0x12d1cb];}return _0xc8e36b;}function _0x327c44(){const _0x5e5a97=_0x561901[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])](_0x5a5883([0x2e]));if(0x3!=_0x5e5a97[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x573ebf(_0x5e5a97[0x1]);function _0x573ebf(_0x49db0d){const _0x52cb4f=_0xd0fd33(_0x49db0d);return _0x52cb4f&&_0x3b0437()?_0x52cb4f:null;function _0x3b0437(){const _0xf64504=_0x52cb4f[_0x5a5883([0x6a,0x74,0x69])],_0x1ffcd2=window[_0x5a5883([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf64504[_0x5a5883([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf64504[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x24260a={..._0x52cb4f,[_0x5a5883([0x6a,0x74,0x69])]:_0xf64504[_0x5a5883([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf64504[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x24260a[_0x5a5883([0x76,0x63])],_0x327609(_0x24260a)==_0x1ffcd2;}}}async function _0x5284a4(){let _0x3b8d66=!0x0;try{const _0x5378e5=_0x561901[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])](_0x5a5883([0x2e])),[_0xeadcfa,_0x7132cf,_0x1ab3a1]=_0x5378e5;return _0x4bada5(_0xeadcfa),await _0x15460a(_0xeadcfa,_0x7132cf,_0x1ab3a1),_0x3b8d66;}catch{return!0x1;}function _0x4bada5(_0x3296c2){const _0x568c5d=_0xd0fd33(_0x3296c2);_0x568c5d&&_0x568c5d[_0x5a5883([0x61,0x6c,0x67])]==_0x5a5883([0x45,0x53,0x32,0x35,0x36])||(_0x3b8d66=!0x1);}async function _0x15460a(_0x5c1d8a,_0x174c22,_0xcfd424){const _0x1a9bb5=window[_0x5a5883([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a5883([0x66,0x72,0x6f,0x6d])](_0x2c3e2c(_0xcfd424),_0x16bbb1=>_0x16bbb1[_0x5a5883([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2471cb=new window[(_0x5a5883([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a5883([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c1d8a+_0x5a5883([0x2e])+_0x174c22),_0x3c1f2b=window[_0x5a5883([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a5883([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c1f2b)return;const _0x481052=await _0x3c1f2b[_0x5a5883([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a5883([0x6a,0x77,0x6b]),_0x20a377,{[_0x5a5883([0x6e,0x61,0x6d,0x65])]:_0x5a5883([0x45,0x43,0x44,0x53,0x41]),[_0x5a5883([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a5883([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a5883([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c1f2b[_0x5a5883([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a5883([0x6e,0x61,0x6d,0x65])]:_0x5a5883([0x45,0x43,0x44,0x53,0x41]),[_0x5a5883([0x68,0x61,0x73,0x68])]:{[_0x5a5883([0x6e,0x61,0x6d,0x65])]:_0x5a5883([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x481052,_0x1a9bb5,_0x2471cb)||(_0x3b8d66=!0x1);}}function _0xd0fd33(_0x39e544){return _0x39e544[_0x5a5883([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a5883([0x65,0x79]))?JSON[_0x5a5883([0x70,0x61,0x72,0x73,0x65])](_0x2c3e2c(_0x39e544)):null;}function _0x2c3e2c(_0x5681a7){return window[_0x5a5883([0x61,0x74,0x6f,0x62])](_0x5681a7[_0x5a5883([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a5883([0x2b]))[_0x5a5883([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a5883([0x2f])));}function _0x327609(_0x427343){let _0x270bd1=0x1505;function _0x4f7379(_0x19a28c){for(let _0x138e3a=0x0;_0x138e3a<_0x19a28c[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x138e3a++){const _0x32a25e=_0x19a28c[_0x5a5883([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x138e3a);_0x270bd1=(_0x270bd1<<0x5)+_0x270bd1+_0x32a25e,_0x270bd1&=_0x270bd1;}}function _0x2ae505(_0x3e3611){Array[_0x5a5883([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e3611)?_0x3e3611[_0x5a5883([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ae505):_0x3e3611&&typeof _0x3e3611==_0x5a5883([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a5883([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e3611)[_0x5a5883([0x73,0x6f,0x72,0x74])]()[_0x5a5883([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xcc2d06,_0x182662])=>{_0x4f7379(_0xcc2d06),_0x2ae505(_0x182662);}):_0x4f7379(window[_0x5a5883([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e3611));}return _0x2ae505(_0x427343),_0x270bd1>>>0x0;}function _0xce4c29(_0x58903){return _0x58903[_0x5a5883([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a5883([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a5883([0x30]));}function _0x3da4b0(_0x2c9bf9){return _0x2c9bf9[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a5883([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a5883([0x6a,0x6f,0x69,0x6e])]('');}function _0x3426ae(){}function _0x5a5883(_0x2309f4){return _0x2309f4['map'](_0x37a33c=>String['fromCharCode'](_0x37a33c))['join']('');}_0x1dcb2c(await _0x5542e8());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4b16f6){const {plugins:_0x4b5209,editing:_0x1ec703,model:_0x2eedf1}=this['editor'],_0x426cbb=_0x4b5209['get'](c)['getFootnote'](_0x4b16f6);return!!_0x426cbb&&(_0x2eedf1['change'](_0x4fca3f=>{_0x4fca3f['setSelection'](_0x4fca3f['createPositionAt'](_0x426cbb['definition'],'end'));}),_0x1ec703['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1ffb56){const {plugins:_0x4707c9,editing:_0x2830c2,model:_0x312ec4}=this['editor'],_0x781934=_0x4707c9['get'](c)['getFootnote'](_0x1ffb56);return!!_0x781934&&(_0x312ec4['change'](_0x3b1e87=>{_0x3b1e87['setSelection'](_0x781934['reference'],'on');}),_0x2830c2['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4a3691}=this['editor']['model'],_0x2223ae=this['editor']['config']['get']('footnotes.multiBlock');_0x4a3691['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4a3691['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4a3691['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2223ae?_0x4a3691['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4a3691['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4a3691['addChildCheck'](_0x1b9936=>{for(const _0x1b3b8d of _0x1b9936)if('footnoteDefinition'===_0x1b3b8d['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xce83d0}=this,{conversion:_0x3ad223,editing:_0x57af02}=_0xce83d0,{t:t}=_0xce83d0['locale'];_0x3ad223['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4f25b4,{writer:_0x2553e9,consumable:_0x50f183})=>{const _0x49a2c9=_0x4f25b4['getChild'](0x0);if(!_0x49a2c9||!_0x49a2c9['is']('element','a'))return null;const _0x410692=_0x49a2c9['getAttribute']('href')||'';if(!_0x410692['startsWith']('#'))return null;const _0x4bd7ca=_0x410692['replace'](/^#/,'');if(!_0x4bd7ca)return null;_0x50f183['consume'](_0x49a2c9,{'name':!0x0,'attributes':['href']});for(const {item:_0x315095}of _0x57af02['view']['createRangeIn'](_0x49a2c9))_0x315095['is']('$textProxy')?_0x50f183['consume'](_0x315095['textNode'],{'name':!0x0}):_0x315095['is']('element')&&_0x50f183['consume'](_0x315095,{'name':!0x0});return _0x2553e9['createElement']('footnoteRef',{'footnoteId':_0x4bd7ca});}}),_0x3ad223['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xb1cbf9,{writer:_0x2b778d})=>g(_0xb1cbf9,_0x2b778d)}),_0x3ad223['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x53366f,{writer:_0x3e6dde})=>{const _0x48b26b=_0x53366f['getAttribute']('footnoteCounter');return _0x27fb12(g(_0x53366f,_0x3e6dde),_0x3e6dde,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x48b26b)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5be68d}=this,{t:t}=_0x5be68d['locale'],{conversion:_0x3a6e58}=_0x5be68d;_0x3a6e58['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x3a6e58['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x3a6e58['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x278d5b,{writer:_0x3b63eb})=>{const _0x173fd8=_0x3b63eb['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x3b63eb['createContainerElement']('ol',{'class':'footnotes'},_0x3b63eb['createSlot']())),_0x1485a7=_0x27fb12(_0x173fd8,_0x3b63eb,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3b63eb['setCustomProperty']('footnotesDefinitions',!0x0,_0x1485a7),_0x1485a7;}});}['_defineDefinitionConverters'](){const {editor:_0xb005b}=this,{conversion:_0x4ff7d7,locale:_0x361af4}=_0xb005b,_0x4c185f=_0xb005b['config']['get']('footnotes.multiBlock');_0x4ff7d7['for']('upcast')['add'](_0x308693=>{_0x308693['on']('element:li',(_0x231bb3,_0x48a923,_0x2910ad)=>{const _0x3491f3=_0x48a923['viewItem'];if(!_0x3491f3['hasClass']('footnote-definition')||!_0x3491f3['getAttribute']('id'))return;const _0x693782=_0x3491f3['parent'];if(!_0x693782['is']('element','ol')||!_0x693782['hasClass']('footnotes'))return;if(!_0x2910ad['consumable']['test'](_0x3491f3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x256672=_0x2910ad['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3491f3['getAttribute']('id')});if(!_0x2910ad['safeInsert'](_0x256672,_0x48a923['modelCursor']))return;_0x2910ad['consumable']['consume'](_0x3491f3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x50e669=Array['from'](_0x3491f3['getChildren']())['find'](_0x2cb23=>_0x2cb23['is']('element')&&_0x2cb23['hasClass']('footnote-content'));for(const _0x5c7a3b of _0x3491f3['getChildren']())_0x5c7a3b['is']('element')&&(_0x2910ad['consumable']['consume'](_0x5c7a3b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2910ad['consumable']['consume'](_0x5c7a3b,{'name':!0x0,'classes':'footnote-content'}));if(_0x50e669){if(_0x4c185f)_0x2910ad['convertChildren'](_0x50e669,_0x256672);else{const _0x2d8a48=_0x2910ad['writer']['createElement']('footnoteInlineContent');_0x2910ad['writer']['insert'](_0x2d8a48,_0x256672),_0x2910ad['convertChildren'](_0x50e669,_0x2d8a48);}}_0x2910ad['updateConversionResult'](_0x256672,_0x48a923);});}),_0x4ff7d7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x38cfff,{writer:_0x52a960})=>D(_0x38cfff,_0x52a960,_0x361af4,{'dataPipeline':!0x0})}),_0x4ff7d7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1512e3,{writer:_0xd0d9ed})=>D(_0x1512e3,_0xd0d9ed,_0x361af4)});}['_defineBogusParagraphConverters'](){const {editor:_0x343ba3}=this,{conversion:_0x46c369}=_0x343ba3;_0x343ba3['config']['get']('footnotes.multiBlock')?(_0x46c369['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x46c369['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x343ba3['model']['document'],'change:data',()=>{!function(_0x198bed,_0xb11fc){const _0x41b154=_0x198bed['document']['differ'],_0x33687f=new Set();for(const _0x4fb0ce of _0x41b154['getChanges']()){const _0x1eb2d1='attribute'==_0x4fb0ce['type']?_0x4fb0ce['range']['start']['parent']:_0x4fb0ce['position']['parent'];_0x1eb2d1['is']('element','footnoteDefinition')&&_0x33687f['add'](_0x1eb2d1);}for(const _0x33d5cc of _0x33687f['values']()){const _0x55d7f1=Array['from'](_0x33d5cc['getChildren']())['filter'](_0x4ae1d7=>p(_0x4ae1d7,_0xb11fc['mapper']));for(const _0x4ff78d of _0x55d7f1)_0xb11fc['reconvertItem'](_0x4ff78d);}}(_0x343ba3['model'],_0x343ba3['editing']);})):(_0x46c369['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x46c369['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x373080,{writer:_0x2d45a9})=>{const _0x10cd97=_0x2d45a9['createContainerElement']('span');return _0x2d45a9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x10cd97),_0x10cd97;}}));}['_defineKeyboardHandlers'](){const {editor:_0x323a1c}=this,{editing:_0x1d944f,t:t}=_0x323a1c,_0x2f84dd=_0x323a1c['model']['document']['selection'];_0x323a1c['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x323a1c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x1d944f['view']['document'],'enter',(_0x248b20,_0x5dffbb)=>{const _0x1057b8=function(_0x23ec5e){const _0x58d7bf=_0x23ec5e['getSelectedElement']();if(_0x58d7bf?.['is']('element','footnoteRef'))return _0x58d7bf;return null;}(_0x2f84dd);if(_0x1057b8){const _0x24ea1b=_0x1057b8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x24ea1b),_0x5dffbb['preventDefault'](),_0x248b20['stop']();}},{'context':_0x297061});}['_defineClickHandlers'](){const {editor:_0x29e06b}=this,{editing:_0x25d668}=_0x29e06b;_0x29e06b['editing']['view']['addObserver'](_0x3409bd),_0x29e06b['editing']['view']['addObserver'](_0x200c3a);let _0xb4a3dd=!0x1;this['listenTo'](_0x25d668['view']['document'],'pointerdown',(_0x1c58f9,_0x397aea)=>{const {target:_0x31fbe9}=_0x397aea,_0x1250de=_0x25d668['view']['document']['selection'];_0xb4a3dd=!(!_0x31fbe9['is']('element','sup')||!_0x31fbe9['hasClass']('footnote'))&&_0x1250de['getSelectedElement']()===_0x31fbe9;},{'priority':'high'}),this['listenTo'](_0x25d668['view']['document'],'click',(_0x4ad871,_0x16e3f6)=>{const {target:_0x32b161}=_0x16e3f6,_0x2f2b21=_0x32b161['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2f2b21['slice'](0x1)),_0x4ad871['stop'](),_0x16e3f6['preventDefault']();},{'priority':'high','context':_0x5c1d89=>_0x5c1d89['is']('element','sup')&&_0x5c1d89['hasClass']('footnote')&&_0xb4a3dd}),this['listenTo'](_0x25d668['view']['document'],'click',(_0xc9e4c3,_0x4dfcaf)=>{const {target:_0x566fdc}=_0x4dfcaf;if(!_0x566fdc['is']('element','a'))return;let _0x568b26=_0x566fdc['getAttribute']('href');if(!_0x568b26?.['startsWith']('#'))return;_0x568b26=_0x568b26['slice'](0x1);let _0x4a14e1=!0x1;(_0x568b26['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x568b26['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x568b26))&&(_0x4a14e1=!0x0),_0x4a14e1&&(_0x4dfcaf['preventDefault'](),_0xc9e4c3['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x4cc0d5}={}){return(_0x693d07,{writer:_0x13d82a})=>{if(!h(_0x693d07))return null;if(!_0x4cc0d5)return _0x13d82a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x40136c=_0x13d82a['createContainerElement']('p');return _0x13d82a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x40136c),_0x40136c;};}function h(_0x49c9ea){const {parent:_0x4f3b99}=_0x49c9ea;if(!_0x4f3b99?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4f3b99['childCount'])return!0x1;for(const _0x16ef45 of _0x49c9ea['getAttributeKeys']())if(!_0x16ef45['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x16ef45)return!0x1;return!0x0;}function p(_0x1e25dd,_0x5064af){if(!_0x1e25dd['is']('element','paragraph'))return!0x1;const _0x1676ad=_0x5064af['toViewElement'](_0x1e25dd);return!!_0x1676ad&&h(_0x1e25dd)!==_0x1676ad['is']('element','span');}function R(_0x2c8f8a){return _0x297061(_0x2c8f8a)&&_0x2c8f8a['is']('containerElement')&&!!_0x2c8f8a['getCustomProperty']('footnotesDefinitions');}function g(_0x489b74,_0x1348f4){const _0x446a58=_0x489b74['getAttribute']('footnoteId'),_0x22c2bc=_0x489b74['getAttribute']('footnoteCounter'),_0x4f699b=_0x1348f4['createUIElement']('a',{'id':'ref-'+_0x446a58,'href':'#'+_0x446a58},function(_0x2d7a0e){const _0x1eaab6=this['toDomElement'](_0x2d7a0e);return _0x1eaab6['textContent']=_0x22c2bc,_0x1eaab6;}),_0x20fb94=_0x1348f4['createContainerElement']('sup',{'class':'footnote'},[_0x4f699b]);return _0x20fb94['getFillerOffset']=()=>null,_0x20fb94;}function D(_0x587cdd,_0x166371,_0x84d8ad,{dataPipeline:_0x49c247}={}){const {t:t}=_0x84d8ad,_0x549e43=_0x587cdd['getAttribute']('footnoteId'),_0x39fd2d=_0x166371['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x549e43},function(_0x502fca){const _0x3d38d0=this['toDomElement'](_0x502fca);return _0x3d38d0['innerText']='^',_0x3d38d0;}),_0x21109c=_0x49c247?_0x166371['createContainerElement']('div',{'class':'footnote-content'}):_0xcb8e3f(_0x166371['createEditableElement']('div',{'class':'footnote-content'}),_0x166371,{'label':t('Footnote\x20content.')});return _0x166371['insert'](_0x166371['createPositionAt'](_0x21109c,0x0),_0x166371['createSlot']()),_0x166371['createContainerElement']('li',{'class':'footnote-definition','id':_0x549e43},[_0x39fd2d,_0x21109c]);}class e extends _0x353bc1{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4d595d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x193ab8}=this,{plugins:_0x5a90ea,model:_0x4d6b78}=_0x193ab8,_0xf50509=_0x5a90ea['get'](_0x4d595d),_0x2f8764=_0x5a90ea['get'](c);this['listenTo'](_0xf50509,'outputTransformation',(_0x16d4c4,_0x3e077e)=>{const _0x382b0b=function(_0x26f689,_0x442a89){const _0x26481d=new Set();for(const {item:_0x30fd30}of _0x26f689['createRangeIn'](_0x442a89))_0x30fd30['is']('element','footnoteRef')&&_0x26481d['add'](_0x30fd30['getAttribute']('footnoteId'));return Array['from'](_0x26481d);}(_0x4d6b78,_0x3e077e['content']);if(!_0x382b0b['length'])return;const _0x5218bf=_0x2f8764['getFootnotes'](),_0x393b70=_0x382b0b['reduce']((_0x1207f4,_0x14a403)=>{const _0x26332b=_0x5218bf['find'](_0x5186b7=>_0x5186b7['id']===_0x14a403);if(_0x26332b){const _0x427f87=_0x193ab8['data']['toView'](_0x26332b['definition'],{'isClipboardPipeline':!0x0}),_0x34d082=_0x193ab8['data']['htmlProcessor']['toData'](_0x427f87);_0x1207f4[_0x26332b['id']]=_0x34d082;}return _0x1207f4;},Object['create'](null));_0x3e077e['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x393b70));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x52386f}=this,{model:_0x43942e,plugins:_0x20acb7}=_0x52386f,{view:_0x3df4fc}=_0x52386f['editing'],_0x42c2ce=_0x20acb7['get'](_0x4d595d),_0x3c58cb=_0x20acb7['get'](c);let _0x2d94fd=null;this['listenTo'](_0x3df4fc['document'],'clipboardInput',(_0xa166d1,_0x85b0a5)=>{const _0xfbb927=_0x85b0a5['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2d94fd=_0xfbb927?JSON['parse'](_0xfbb927):null;}),this['listenTo'](_0x42c2ce,'contentInsertion',(_0x2bc279,_0x1b8691)=>{if(!_0x2d94fd)return;const _0x214523=_0x1b8691['sourceEditorId']===this['editor']['id'];_0x214523&&'drop'===_0x1b8691['method']||_0x43942e['change'](_0xdce5ac=>{!function(_0xcd9866,_0x19e21a){const _0x32d530=[];for(const {item:_0x144e0d}of _0xcd9866['createRangeIn'](_0x19e21a))_0x144e0d['is']('element','footnotesDefinitions')&&_0x32d530['push'](_0x144e0d);for(const _0x3aee3b of _0x32d530)_0xcd9866['remove'](_0x3aee3b);}(_0xdce5ac,_0x1b8691['content']);let _0x4edb03=_0x3c58cb['getFootnotesDefinitionsObjectElement']();if(!_0x4edb03){const _0x431cba=_0x43942e['document']['selection']['getFirstRange']()['root'];_0x4edb03=_0x3c58cb['_insertEmptyFootnotesDefinitionsContainer'](_0xdce5ac,_0x431cba);}const _0x56f6d0=function(_0x547245,_0x249566,_0xe19a3f){const _0x3e6896=Object['create'](null);for(const {item:_0x19e056}of _0x547245['createRangeIn'](_0x249566))if(_0x19e056['is']('element','footnoteRef')){const _0xcccd0b=_0x19e056['getAttribute']('footnoteId');if(!_0xe19a3f(_0xcccd0b))continue;_0x3e6896[_0xcccd0b]||(_0x3e6896[_0xcccd0b]=_0x3cd315()),_0x547245['setAttribute']('footnoteId',_0x3e6896[_0xcccd0b],_0x19e056);}return _0x3e6896;}(_0xdce5ac,_0x1b8691['content'],_0x456452=>!_0x214523||null!==_0x3c58cb['getFootnote'](_0x456452));for(const [_0x16f111,_0x1c0e47]of Object['entries'](_0x2d94fd)){const _0x4e2ca7=_0x56f6d0[_0x16f111]||_0x16f111,_0x4a54f1=_0xdce5ac['createElement']('footnoteDefinition',{'footnoteId':_0x4e2ca7}),_0x2fbcaf=_0x52386f['data']['htmlProcessor']['toView'](_0x1c0e47),_0x26c313=_0x52386f['data']['toModel'](_0x2fbcaf,_0x4a54f1);_0xdce5ac['append'](_0x26c313,_0x4a54f1),_0xdce5ac['insert'](_0x4a54f1,_0x4edb03,'end');}_0x2d94fd=null;});});}}class i extends _0x353bc1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f37fe}=this,{componentFactory:_0x1890b3}=_0x4f37fe['ui'];_0x1890b3['add']('insertFootnote',v(_0x4f37fe,_0x24a7e2)),_0x1890b3['add']('menuBar:insertFootnote',v(_0x4f37fe,_0x182982)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d2f29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46c59f;for(const _0x586b57 in _0x2d2f29){const _0x48adf9=_0x586b57,_0x2c1390=_0x2d2f29[_0x48adf9];if('footnotesLicenseKeyValid'==_0x2c1390||'footnotesLicenseKeyInvalid'==_0x2c1390||'footnotesLicenseKeyExpired'==_0x2c1390||'footnotesLicenseKeyDomainLimit'==_0x2c1390||'footnotesLicenseKeyNotAllowed'==_0x2c1390||'footnotesLicenseKeyEvaluationLimit'==_0x2c1390||'footnotesLicenseKeyTrialLimit'==_0x2c1390||'footnotesLicenseKeyUsageLimit'==_0x2c1390){delete _0x2d2f29[_0x48adf9],_0x46c59f=_0x2c1390,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x46c59f&&_0x2d2f29['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x46c59f&&_0x2d2f29['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x46c59f&&_0x2d2f29['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x46c59f&&_0x2d2f29['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x46c59f&&_0x2d2f29['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x46c59f&&_0x2d2f29['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x46c59f&&_0x2d2f29['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x2305cc,_0x3bb9ce){const _0x101200=_0x2305cc['commands']['get']('insertFootnote');return _0x35bdb0=>{const {t:t}=_0x35bdb0,_0x4c3c25=new _0x3bb9ce(_0x35bdb0),_0x574df2=_0x4c3c25 instanceof _0x182982;return _0x4c3c25['bind']('isEnabled')['to'](_0x101200,'isEnabled'),_0x4c3c25['set']({'label':t(_0x574df2?'Footnote':'Insert\x20footnote'),'icon':_0x3ca3de,'tooltip':!0x0}),_0x4c3c25['on']('execute',()=>{_0x101200['execute'](),_0x2305cc['editing']['view']['focus']();}),_0x4c3c25;};}class nt extends _0x353bc1{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0xbc1792{['refresh'](){const {editor:_0x11d7ee}=this,_0x5ca08c=_0x11d7ee['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5ca08c,this['value']=_0x5ca08c?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x520172}){const {editor:_0x5f429c}=this,_0x2f3998=_0x5f429c['plugins']['get'](c),_0x3fcba2=_0x2f3998['getFootnotesDefinitionsObjectElement']();_0x3fcba2&&Q['includes'](_0x520172)&&_0x5f429c['model']['change'](_0x231df7=>{_0x231df7['setAttribute']('footnotesListStyle',_0x520172,_0x3fcba2),_0x2f3998['_updateFootnotesCounters'](_0x231df7);});}}class k extends _0xbc1792{['refresh'](){const {editor:_0x223e28}=this,_0x419b9b=_0x223e28['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x419b9b,this['value']=_0x419b9b?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2ec292}){const {editor:_0x238832}=this,_0x585eb1=_0x238832['plugins']['get'](c),_0x3bf84b=_0x585eb1['getFootnotesDefinitionsObjectElement']();_0x3bf84b&&Number['isInteger'](_0x2ec292)&&_0x238832['model']['change'](_0x4b301c=>{_0x4b301c['setAttribute']('footnotesListStart',_0x2ec292,_0x3bf84b),_0x585eb1['_updateFootnotesCounters'](_0x4b301c);});}}class P extends _0x353bc1{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c0e45}=this;_0x4c0e45['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4c0e45['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4c0e45['commands']['add']('footnotesStyle',new S(_0x4c0e45)),_0x4c0e45['commands']['add']('footnotesStart',new k(_0x4c0e45)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1c9983}=this,{schema:_0x55ab84}=_0x1c9983['model'];_0x55ab84['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5e9aca}=this,{conversion:_0x58f5f6,model:_0x2e6732}=_0x5e9aca,{schema:_0x9dbb58}=_0x2e6732;_0x58f5f6['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x2ac9f6=>_0x2ac9f6['getStyle']('list-style-type')}}),_0x58f5f6['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x1193b8=>{const _0x1b5723=_0x1193b8['getAttribute']('start'),_0x423099=Number['parseInt'](_0x1b5723,0xa);return Number['isNaN'](_0x423099)?null:_0x423099;}}}),_0x58f5f6['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x58bec9=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x58bec9['getAttribute']('type')])}}),_0x58f5f6['for']('upcast')['add'](_0x1de4b5=>{_0x1de4b5['on']('element:ol',(_0x423ad4,_0x25c3ab,_0x433c36)=>{const _0x426fb3=_0x25c3ab['modelRange']?.['start']['nodeAfter'];_0x426fb3?.['is']('element','footnotesDefinitions')&&(!_0x426fb3['hasAttribute']('footnotesListStyle')&&_0x9dbb58['checkAttribute'](_0x426fb3,'footnotesListStyle')&&_0x433c36['writer']['setAttribute']('footnotesListStyle','decimal',_0x426fb3),!_0x426fb3['hasAttribute']('footnotesListStart')&&_0x9dbb58['checkAttribute'](_0x426fb3,'footnotesListStart')&&_0x433c36['writer']['setAttribute']('footnotesListStart',0x1,_0x426fb3));},{'priority':'low'});}),_0x58f5f6['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x4a60ba=>0x1===_0x4a60ba?null:{'key':'start','value':String(_0x4a60ba)}}),_0x58f5f6['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x56e906=>'decimal'===_0x56e906?null:{'key':'style','value':{'list-style-type':_0x56e906}}}),_0x58f5f6['for']('editingDowncast')['add'](_0x17a000=>{_0x17a000['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x18f222,_0x1dbf92,_0x503a3b)=>{if(!_0x503a3b['consumable']['consume'](_0x1dbf92['item'],_0x18f222['name']))return;const _0x487a75=b(_0x1dbf92['item'],_0x503a3b['mapper']);null===_0x1dbf92['attributeNewValue']||void 0x0===_0x1dbf92['attributeNewValue']||0x1===_0x1dbf92['attributeNewValue']?_0x503a3b['writer']['removeAttribute']('start',_0x487a75):_0x503a3b['writer']['setAttribute']('start',String(_0x1dbf92['attributeNewValue']),_0x487a75);}),_0x17a000['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x322c1d,_0x42e638,_0x43fb97)=>{if(!_0x43fb97['consumable']['consume'](_0x42e638['item'],_0x322c1d['name']))return;const _0x5c7704=b(_0x42e638['item'],_0x43fb97['mapper']);_0x42e638['attributeNewValue']&&'decimal'!==_0x42e638['attributeNewValue']?_0x43fb97['writer']['setStyle']('list-style-type',_0x42e638['attributeNewValue'],_0x5c7704):_0x43fb97['writer']['removeStyle']('list-style-type',_0x5c7704);});});}['_definePostfixer'](){const {editor:_0x3c15cb}=this,{model:_0x2d45e3}=_0x3c15cb,_0x558bd2=_0x3c15cb['plugins']['get'](c),_0x3d29ae=this['_getDefaultListStyle'](),_0xe83fc1=this['_getDefaultStartIndex']();_0x2d45e3['document']['registerPostFixer'](_0x549777=>{const _0x5acf7c=_0x2d45e3['document']['differ']['getChanges']();let _0x3401d5=!0x1;for(const _0x15426f of _0x5acf7c){if('insert'!==_0x15426f['type']||'$text'===_0x15426f['name'])continue;const _0x16932e=_0x2d45e3['createRangeOn'](_0x15426f['position']['nodeAfter']);for(const _0x2d105e of _0x16932e['getItems']())_0x2d105e['is']('element','footnotesDefinitions')&&(_0x2d105e['hasAttribute']('footnotesListStart')||(_0x549777['setAttribute']('footnotesListStart',_0xe83fc1,_0x2d105e),_0x3401d5=!0x0),_0x2d105e['hasAttribute']('footnotesListStyle')||(_0x549777['setAttribute']('footnotesListStyle',_0x3d29ae,_0x2d105e),_0x3401d5=!0x0));}return _0x3401d5&&_0x558bd2['_updateFootnotesCounters'](_0x549777),_0x3401d5;});}['_defineFormatter'](){const {editor:_0x45c386}=this;_0x45c386['plugins']['get'](c)['setFootnoteFormatter'](_0x341c6b=>this['_formatFootnoteListValue'](_0x341c6b));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x452e9,value:_0x1473ec,digits:_0x49e708}){const _0xce36fd=_0x452e9['getAttribute']('footnotesListStyle'),_0x20363f=_0x452e9['getAttribute']('footnotesListStart'),_0x1e2c98=Math['floor'](_0x1473ec)+(_0x20363f-0x1);switch(_0xce36fd){case'decimal':default:return String(_0x1e2c98);case'decimal-leading-zero':return function(_0x22cdc9,_0x48ba42){return String(_0x22cdc9)['padStart'](_0x48ba42,'0');}(_0x1e2c98,Math['max'](0x2,_0x49e708));case'lower-alpha':case'lower-latin':return x(_0x1e2c98,!0x1);case'upper-alpha':case'upper-latin':return x(_0x1e2c98,!0x0);case'lower-roman':return M(_0x1e2c98,!0x1);case'upper-roman':return M(_0x1e2c98,!0x0);}}}function b(_0xc6b85f,_0x1dc77b){const _0x373e81=_0x1dc77b['toViewElement'](_0xc6b85f);return Array['from'](_0x373e81['getChildren']())['find'](_0xdd3f28=>_0xdd3f28['is']('element','ol'));}function x(_0x49ce90,_0x429506){let _0x3b02c4='',_0x3e0605=_0x49ce90;for(;_0x3e0605>0x0;){const _0x25ed1f=(_0x3e0605-0x1)%0x1a;_0x3b02c4=String['fromCharCode'](0x61+_0x25ed1f)+_0x3b02c4,_0x3e0605=Math['floor']((_0x3e0605-0x1)/0x1a);}return _0x429506?_0x3b02c4['toUpperCase']():_0x3b02c4;}const C=[{'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 M(_0x202451,_0x4e083f){let _0x49a3ba='',_0xb913ba=_0x202451;for(const {value:_0x4ef7b2,numeral:_0x1bd0f2}of C)for(;_0xb913ba>=_0x4ef7b2;)_0x49a3ba+=_0x1bd0f2,_0xb913ba-=_0x4ef7b2;return _0x4e083f?_0x49a3ba:_0x49a3ba['toLowerCase']();}class G extends _0x1e7bd5{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0xecfddf();['focusCycler'];constructor(_0x3d8ff3,{styleButtonViews:_0x28a61a,styleGridAriaLabel:_0x4a6b98}){super(_0x3d8ff3),(this['focusCycler']=new _0x598d36({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x28a61a,_0x4a6b98),[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 _0x58c545 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x58c545['element']);_0x4091cc({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['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 _0x3d0d0b=_0x5cf050=>_0x5cf050['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3d0d0b),this['keystrokes']['set']('arrowleft',_0x3d0d0b),this['keystrokes']['set']('arrowup',_0x3d0d0b),this['keystrokes']['set']('arrowdown',_0x3d0d0b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x415471,_0xda39de){const _0x343b4f=new _0x1e7bd5(this['locale']);return _0x343b4f['children']=_0x343b4f['createCollection'](),_0x343b4f['children']['addMany'](_0x415471),_0x343b4f['setTemplate']({'tag':'div','attributes':{'aria-label':_0xda39de,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x343b4f['children']}),_0x343b4f['children']['delegate']('execute')['to'](this),_0x343b4f['focus']=function(){for(const _0x3c938c of this['children'])if(_0x3c938c instanceof _0x24a7e2&&_0x3c938c['isOn'])return void _0x3c938c['focus']();this['children']['first']['focus']();},_0x343b4f['focusTracker']=new it(),_0x343b4f['keystrokes']=new et(),_0x343b4f['render'](),_0x343b4f['keystrokes']['listenTo'](_0x343b4f['element']),this['children']['add'](_0x343b4f),_0x343b4f;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x405eba=this['_createStartIndexPropertyView'](),_0x4d0593=[_0x405eba],_0x93a1d1=new _0x4aac7f(this['locale'],_0x4d0593);return _0x93a1d1['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x93a1d1['buttonView']['bind']('isEnabled')['toMany'](_0x4d0593,'isEnabled',(..._0x30cb5b)=>_0x30cb5b['some'](_0x675aa5=>_0x675aa5)),_0x93a1d1['buttonView']['on']('change:isEnabled',(_0x4ae671,_0x1b40f2,_0x1a8bcd)=>{_0x1a8bcd||(_0x93a1d1['isCollapsed']=!0x0);}),this['children']['add'](_0x93a1d1),[_0x405eba,_0x93a1d1];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4b7f5a=new tt(this['locale'],st);return _0x4b7f5a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4b7f5a['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4b7f5a['fieldView']['on']('input',()=>{const _0x4c248c=_0x4b7f5a['fieldView']['element'],_0xa6c919=_0x4c248c['valueAsNumber'];Number['isNaN'](_0xa6c919)?_0x4b7f5a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4c248c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xa6c919}):_0x4b7f5a['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x4b7f5a;}}class j extends _0x353bc1{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x572487,_0x2011e2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3538c7}=this,{componentFactory:_0x27cbd1}=_0x3538c7['ui'];_0x3538c7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x27cbd1['add']('footnotesStyle',function(_0x14f24b){return _0x1b0f4e=>{const {t:t}=_0x1b0f4e,_0x14dc22=_0x14f24b['commands']['get']('footnotesStyle'),_0x1a7658=_0x44916a(_0x1b0f4e),{buttonView:_0x11274b}=_0x1a7658;return _0x1a7658['class']='ck-footnotes-styles-dropdown',_0x1a7658['bind']('isEnabled')['to'](_0x14dc22,'isEnabled'),_0x11274b['set']({'label':t('Footnotes\x20style'),'icon':_0x3ca3de,'tooltip':!0x0}),_0x1a7658['once']('change:isOpen',()=>{const _0x34fc26=function({editor:_0x3ce753,dropdownView:_0x2350f0}){const {t:t}=_0x3ce753['locale'],_0x9801e4=t('Footnotes\x20definitions\x20styles'),_0x3b00f0=function(_0x11be5e){const t=_0x11be5e['locale']['t'],_0x49b9a2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1c2a82},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3696d2},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xb4ffe8},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xe48280},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x37c439},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xd636a4}];return _0x49b9a2['map'](function(_0x2f1423){const _0x37a2a5=_0x2f1423['locale'];return({label:_0x536f75,icon:_0x58ac33,tooltip:_0x500eb,style:_0x2f8fa5})=>{const _0x236233=_0x2f1423['commands']['get']('footnotesStyle'),_0x30bb6f=new _0x24a7e2(_0x37a2a5);return _0x30bb6f['set']({'label':_0x536f75,'icon':_0x58ac33,'tooltip':_0x500eb}),_0x30bb6f['bind']('isOn')['to'](_0x236233,'value',_0x2ddd01=>_0x2ddd01===_0x2f8fa5),_0x30bb6f['bind']('isEnabled')['to'](_0x236233,'isEnabled'),_0x30bb6f['on']('execute',()=>{_0x2f1423['execute']('footnotesStyle',{'value':_0x2f8fa5}),_0x2f1423['editing']['view']['focus']();}),_0x30bb6f;};}(_0x11be5e));}(_0x3ce753),_0x20ec4f=new G(_0x3ce753['locale'],{'styleGridAriaLabel':_0x9801e4,'styleButtonViews':_0x3b00f0});return _0x20ec4f['delegate']('execute')['to'](_0x2350f0),_0x20ec4f['on']('footnotesListStart',(_0x4d3c1c,_0x3763f8)=>{_0x3ce753['execute']('footnotesStart',{'value':_0x3763f8['startIndex']});}),_0x20ec4f;}({'editor':_0x14f24b,'dropdownView':_0x1a7658});_0x1a7658['panelView']['children']['add'](_0x34fc26);}),_0x1a7658;};}(_0x3538c7));}['afterInit'](){const {editor:_0x5e48d8}=this,{t:t}=_0x5e48d8['locale'],_0x4953f6=_0x5e48d8['plugins']['get'](_0x2011e2),{defaultPositions:_0x208b69}=_0x5a3874;_0x4953f6['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5e48d8['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xfef413=>{let _0x23074a=_0xfef413['getFirstPosition']()?.['parent'];return _0x23074a?.['is']('$text')&&(_0x23074a=_0x23074a['parent']),_0x23074a?.['is']('element')?_0x23074a['findAncestor'](R):null;},'positions':[_0x208b69['southArrowNorth'],_0x208b69['southArrowNorthMiddleWest'],_0x208b69['southArrowNorthMiddleEast'],_0x208b69['southArrowNorthWest'],_0x208b69['southArrowNorthEast'],_0x208b69['northArrowSouth'],_0x208b69['northArrowSouthMiddleWest'],_0x208b69['northArrowSouthMiddleEast'],_0x208b69['northArrowSouthWest'],_0x208b69['northArrowSouthEast'],_0x208b69['viewportStickyNorth']]});}}class rt extends _0x353bc1{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,rt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,k as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-20251019.0",
3
+ "version": "0.0.0-nightly-20251021.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251019.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251019.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251019.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251019.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251019.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251019.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251019.0",
33
- "ckeditor5": "0.0.0-nightly-20251019.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251021.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251021.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251021.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251021.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251021.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251021.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251021.0",
33
+ "ckeditor5": "0.0.0-nightly-20251021.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2f8b(){const _0x70c5e3=['_moveSelectionToFootnoteDefinition','74VDsVBP','insert-footnote-command-executed-with-invalid-id','change','editor','execute','document','footnoteId','insertObject','FootnotesEditing','end','176056oOkvHH','length','selection','10NXAtai','checkChild','getFirstRange','20005TERwFD','get','378960ZiDfYK','2023884yivceV','6579564xPsqUY','footnoteRef','isObject','isEnabled','test','createElement','model','plugins','refresh','string','3892746PYXNLt','7WjjOkG','isBlock','3902589LZjEyI','_getPositionToInsertFootnote','getItems'];_0x2f8b=function(){return _0x70c5e3;};return _0x2f8b();}const _0x177bd8=_0x49c7;(function(_0x583791,_0x1b7b42){const _0x20bc4b=_0x49c7,_0x2c2b3c=_0x583791();while(!![]){try{const _0x9f6d4a=parseInt(_0x20bc4b(0xea))/0x1*(-parseInt(_0x20bc4b(0xda))/0x2)+parseInt(_0x20bc4b(0xf8))/0x3+-parseInt(_0x20bc4b(0xed))/0x4+-parseInt(_0x20bc4b(0xec))/0x5+parseInt(_0x20bc4b(0xee))/0x6+parseInt(_0x20bc4b(0xf9))/0x7*(parseInt(_0x20bc4b(0xe4))/0x8)+parseInt(_0x20bc4b(0xd6))/0x9*(-parseInt(_0x20bc4b(0xe7))/0xa);if(_0x9f6d4a===_0x1b7b42)break;else _0x2c2b3c['push'](_0x2c2b3c['shift']());}catch(_0x257bb7){_0x2c2b3c['push'](_0x2c2b3c['shift']());}}}(_0x2f8b,0xa1486));import{logWarning as _0x1a832f,uid as _0x3c190f}from'ckeditor5/src/utils.js';function _0x49c7(_0x1f65a1,_0x2c2b8b){const _0x2f8b4b=_0x2f8b();return _0x49c7=function(_0x49c7d7,_0x43cea4){_0x49c7d7=_0x49c7d7-0xd6;let _0x545b2d=_0x2f8b4b[_0x49c7d7];return _0x545b2d;},_0x49c7(_0x1f65a1,_0x2c2b8b);}import{Command as _0x12126c}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x12126c{[_0x177bd8(0xf6)](){const _0xd42c59=_0x177bd8,_0x19f0e5=this[_0xd42c59(0xdd)][_0xd42c59(0xf4)][_0xd42c59(0xdf)][_0xd42c59(0xe6)],_0x20f7fb=this[_0xd42c59(0xd7)](_0x19f0e5);this[_0xd42c59(0xf1)]=!!_0x20f7fb;}[_0x177bd8(0xde)](_0x5e254f){const _0x342dd9=_0x177bd8,{editor:_0x15d3a8}=this,{model:_0x33ec33}=_0x15d3a8,{selection:_0x188611}=_0x33ec33[_0x342dd9(0xdf)],_0x1e4fe5=this[_0x342dd9(0xd7)](_0x188611);if(!_0x1e4fe5)return;const _0x2945e0=_0x15d3a8[_0x342dd9(0xf5)][_0x342dd9(0xeb)](_0x342dd9(0xe2)),_0x439a2f=_0x5e254f?.[_0x342dd9(0xe0)]??_0x3c190f();!function(_0x83f20c){const _0x5ebcbc=_0x342dd9;return _0x5ebcbc(0xf7)==typeof _0x83f20c&&_0x83f20c[_0x5ebcbc(0xe5)]>0x0&&!/\s/[_0x5ebcbc(0xf2)](_0x83f20c)&&!/^\d/[_0x5ebcbc(0xf2)](_0x83f20c);}(_0x439a2f)?_0x1a832f(_0x342dd9(0xdb)):(_0x33ec33[_0x342dd9(0xdc)](_0x54e524=>{const _0x10cc9e=_0x342dd9,_0x58daea=_0x54e524[_0x10cc9e(0xf3)](_0x10cc9e(0xef),{'footnoteId':_0x439a2f});_0x33ec33[_0x10cc9e(0xe1)](_0x58daea,_0x1e4fe5,null);}),_0x2945e0[_0x342dd9(0xd9)](_0x439a2f));}[_0x177bd8(0xd7)](_0x91fa90){const _0x9e3c00=_0x177bd8,{model:_0x1cf280}=this[_0x9e3c00(0xdd)],{schema:_0x42579b}=_0x1cf280,_0x5d7d74=_0x91fa90[_0x9e3c00(0xe9)]();for(const _0x43207c of _0x5d7d74[_0x9e3c00(0xd8)]())if(_0x42579b[_0x9e3c00(0xfa)](_0x43207c)||_0x42579b[_0x9e3c00(0xf0)](_0x43207c))return null;const _0x15b870=_0x5d7d74[_0x9e3c00(0xe3)];return _0x42579b[_0x9e3c00(0xe8)](_0x15b870,_0x9e3c00(0xef))?_0x15b870:null;}}
23
+ function _0x483b(){const _0x5c8379=['1426982fyEbrV','plugins','length','insertObject','editor','getFirstRange','model','footnoteRef','FootnotesEditing','isObject','6775WazQie','refresh','change','selection','execute','43637FnVurt','53712NfqAeJ','4160307qoyNrx','isEnabled','document','1009404aSjCaY','test','string','1576ZqFAeA','1SZpEeP','insert-footnote-command-executed-with-invalid-id','6564ReQTrS','footnoteId','_getPositionToInsertFootnote','checkChild','getItems','49777MyRkoh','createElement','end','get','5868XeUZRp','160iPdfjX','isBlock','_moveSelectionToFootnoteDefinition'];_0x483b=function(){return _0x5c8379;};return _0x483b();}function _0x2375(_0x329aa2,_0x38619b){const _0x483ba9=_0x483b();return _0x2375=function(_0x23755b,_0x2b8919){_0x23755b=_0x23755b-0x1d2;let _0x25b607=_0x483ba9[_0x23755b];return _0x25b607;},_0x2375(_0x329aa2,_0x38619b);}const _0x559906=_0x2375;(function(_0x28fb61,_0x2eb5fa){const _0x15b135=_0x2375,_0x2371ca=_0x28fb61();while(!![]){try{const _0x1cbdaf=parseInt(_0x15b135(0x1f7))/0x1*(-parseInt(_0x15b135(0x1df))/0x2)+parseInt(_0x15b135(0x1f0))/0x3+-parseInt(_0x15b135(0x1f3))/0x4+parseInt(_0x15b135(0x1e9))/0x5*(parseInt(_0x15b135(0x1db))/0x6)+-parseInt(_0x15b135(0x1d7))/0x7*(-parseInt(_0x15b135(0x1f6))/0x8)+-parseInt(_0x15b135(0x1ef))/0x9*(parseInt(_0x15b135(0x1dc))/0xa)+parseInt(_0x15b135(0x1ee))/0xb*(-parseInt(_0x15b135(0x1d2))/0xc);if(_0x1cbdaf===_0x2eb5fa)break;else _0x2371ca['push'](_0x2371ca['shift']());}catch(_0x470a38){_0x2371ca['push'](_0x2371ca['shift']());}}}(_0x483b,0xd738b));import{logWarning as _0x201b51,uid as _0x59a10f}from'ckeditor5/src/utils.js';import{Command as _0x5ae832}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x5ae832{[_0x559906(0x1ea)](){const _0x4b48b1=_0x559906,_0x3b5e1a=this[_0x4b48b1(0x1e3)][_0x4b48b1(0x1e5)][_0x4b48b1(0x1f2)][_0x4b48b1(0x1ec)],_0x35102e=this[_0x4b48b1(0x1d4)](_0x3b5e1a);this[_0x4b48b1(0x1f1)]=!!_0x35102e;}[_0x559906(0x1ed)](_0x20e83e){const _0x31e2b8=_0x559906,{editor:_0x36a2e3}=this,{model:_0x6ab74e}=_0x36a2e3,{selection:_0x13b401}=_0x6ab74e[_0x31e2b8(0x1f2)],_0x4b4107=this[_0x31e2b8(0x1d4)](_0x13b401);if(!_0x4b4107)return;const _0xf47f51=_0x36a2e3[_0x31e2b8(0x1e0)][_0x31e2b8(0x1da)](_0x31e2b8(0x1e7)),_0x2ef130=_0x20e83e?.[_0x31e2b8(0x1d3)]??_0x59a10f();!function(_0x403683){const _0x9d9e61=_0x31e2b8;return _0x9d9e61(0x1f5)==typeof _0x403683&&_0x403683[_0x9d9e61(0x1e1)]>0x0&&!/\s/[_0x9d9e61(0x1f4)](_0x403683)&&!/^\d/[_0x9d9e61(0x1f4)](_0x403683);}(_0x2ef130)?_0x201b51(_0x31e2b8(0x1f8)):(_0x6ab74e[_0x31e2b8(0x1eb)](_0x1bd6ce=>{const _0x570874=_0x31e2b8,_0x19b9fe=_0x1bd6ce[_0x570874(0x1d8)](_0x570874(0x1e6),{'footnoteId':_0x2ef130});_0x6ab74e[_0x570874(0x1e2)](_0x19b9fe,_0x4b4107,null);}),_0xf47f51[_0x31e2b8(0x1de)](_0x2ef130));}[_0x559906(0x1d4)](_0x51d087){const _0x4ad36a=_0x559906,{model:_0x40fc8e}=this[_0x4ad36a(0x1e3)],{schema:_0x86e9fd}=_0x40fc8e,_0xe0d037=_0x51d087[_0x4ad36a(0x1e4)]();for(const _0x5b5572 of _0xe0d037[_0x4ad36a(0x1d6)]())if(_0x86e9fd[_0x4ad36a(0x1dd)](_0x5b5572)||_0x86e9fd[_0x4ad36a(0x1e8)](_0x5b5572))return null;const _0x2f7694=_0xe0d037[_0x4ad36a(0x1d9)];return _0x86e9fd[_0x4ad36a(0x1d5)](_0x2f7694,_0x4ad36a(0x1e6))?_0x2f7694:null;}}