@ckeditor/ckeditor5-footnotes 48.8.1-alpha.1 → 48.8.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x15780c,Command as _0x979695}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x203158,isWidget as _0x261f6d,toWidgetEditable as _0x413a3a,WidgetToolbarRepository as _0x1f47ce}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x754011,logWarning as _0x3c2d4e,FocusTracker as _0x22fd70,KeystrokeHandler as _0x6e9aa6,global as _0x4a4065}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x36b03c,ClickObserver as _0x5d3acb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x28f8ce}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4ba87a,ButtonView as _0x2bc05c,View as _0xb70dd8,ViewCollection as _0x1f57ca,FocusCycler as _0x3432a0,addKeyboardHandlingForGrid as _0x571e2e,CollapsibleView as _0x1245f6,LabeledFieldView as _0x4a1604,createLabeledInputNumber as _0x2ff836,ContextualBalloon as _0x561fc1,BalloonPanelView as _0xe82c6c,createDropdown as _0x4f1a9e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3fac32,IconListStyleDecimal as _0x11a8dc,IconListStyleDecimalLeadingZero as _0x946324,IconListStyleLowerRoman as _0x14e7fd,IconListStyleUpperRoman as _0x2878fb,IconListStyleLowerLatin as _0x22b770,IconListStyleUpperLatin as _0x466b63,IconListStyleArabicIndic as _0x4123db}from'@ckeditor/ckeditor5-icons/dist/index.js';class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x53919e,_0x14cc4f){this['_model']=_0x53919e,this['_elementName']=_0x14cc4f['elementName'],this['_getElementKey']=_0x14cc4f['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x4a61ec){const _0x5c9b18=new Set(),_0x58a725=new Map();for(const _0x3a504c of _0x4a61ec){if('insert'===_0x3a504c['type']&&'$text'!==_0x3a504c['name']&&_0x3a504c['position']['nodeAfter']){const _0x5db387=this['_model']['createRangeOn'](_0x3a504c['position']['nodeAfter']);for(const _0x5c7842 of _0x5db387['getItems']()){if(!_0x5c7842['is']('element',this['_elementName']))continue;const _0x326950=this['_getElementKey'](_0x5c7842);_0x58a725['has'](_0x326950)||_0x58a725['set'](_0x326950,[]),_0x58a725['get'](_0x326950)['push'](_0x5c7842);}}if('remove'===_0x3a504c['type']&&_0x3a504c['name']===this['_elementName']){const _0x3dd611=this['_getElementKey']({'getAttribute':_0x5340ae=>_0x3a504c['attributes']['get'](_0x5340ae)});_0x5c9b18['add'](_0x3dd611);}}for(const [_0x56f6a1,_0x329bb7]of this['_trackedElements'])'$graveyard'===_0x329bb7['root']['rootName']&&_0x5c9b18['add'](_0x56f6a1);for(const _0x3310c7 of _0x5c9b18)this['_trackedElements']['delete'](_0x3310c7);for(const [_0x6b8921,_0x12271c]of _0x58a725)this['_trackedElements']['set'](_0x6b8921,_0x12271c[_0x12271c['length']-0x1]);const _0x123619=new Set();for(const [_0x5394de,_0x11d2b8]of _0x58a725)_0x5c9b18['has'](_0x5394de)&&(_0x123619['add'](_0x11d2b8[0x0]),_0x11d2b8['length']>0x1?_0x58a725['set'](_0x5394de,_0x11d2b8['slice'](0x1)):_0x58a725['delete'](_0x5394de),_0x5c9b18['delete'](_0x5394de));return{'removed':Array['from'](_0x5c9b18),'inserted':Array['from'](_0x58a725['values']())['flat'](),'moved':Array['from'](_0x123619)};}}class FootnotesTracker extends _0x15780c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50bfcc){super(_0x50bfcc),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x100b00=>_0x100b00['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x40773d=>_0x40773d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x146318}=this,{model:_0x56bd5c,data:_0xaf4d6a}=_0x146318;_0x56bd5c['document']['registerPostFixer'](_0x2d4b95=>{const _0x43c806=_0x56bd5c['document']['differ']['getChanges']();let _0x118817=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2d4b95,_0x43c806)&&(_0x118817=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2d4b95,_0x43c806)&&(_0x118817=!0x0),this['_handleFootnoteReferencesChanges'](_0x2d4b95,_0x43c806)&&(_0x118817=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2d4b95)&&(_0x118817=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2d4b95)&&(_0x118817=!0x0),this['_sortFootnoteDefinitions'](_0x2d4b95)&&(_0x118817=!0x0),_0x118817;}),this['listenTo'](_0x56bd5c['document'],'change:data',()=>{_0x56bd5c['enqueueChange']({'isUndoable':!0x1},_0x548032=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x548032);});},{'priority':'low'}),this['listenTo'](_0xaf4d6a,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x33e73d){return this['_footnotes']['find'](_0x4c930e=>_0x4c930e['id']===_0x33e73d)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x167d47){this['_footnoteFormatter']=_0x167d47;}['_updateFootnotesCounters'](_0xbe3b96,_0x40ee2a=0x0){let _0x14533d=!0x1;for(let _0x12a81a=_0x40ee2a;_0x12a81a<this['_footnotes']['length'];_0x12a81a++)this['_updateFootnoteRefCounter'](_0xbe3b96,_0x12a81a)&&(_0x14533d=!0x0);return _0x14533d;}['_insertEmptyFootnotesDefinitionsContainer'](_0x145701,_0x36fe26){const _0xb3246=_0x145701['createElement']('footnotesDefinitions',{});return _0x145701['append'](_0xb3246,_0x36fe26),this['_footnotesDefinitions']=_0xb3246,_0xb3246;}['_ensureFootnotesDefinitionsContainerExists'](_0x4913b7){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x3bc607=this['_footnotes'][0x0]['reference']['root'],_0x56dacc=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4913b7,_0x3bc607);for(const _0x1a10a9 of this['_footnotes'])_0x1a10a9['definition']['parent']||_0x4913b7['insert'](_0x1a10a9['definition'],_0x56dacc,'end');this['_updateFootnotesCounters'](_0x4913b7);}['_handleFootnotesDefinitionsObjectChanges'](_0x36f867,_0x4d334a){let _0x5c9674=!0x1;const {inserted:_0x4aa9f2,removed:_0x374466,moved:_0x33fde1}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4d334a);if(_0x33fde1['length']&&(this['_footnotesDefinitions']=_0x33fde1[0x0]),_0x4aa9f2['length']){if(_0x4aa9f2['length']>0x1||this['_footnotesDefinitions']&&_0x4aa9f2['some'](_0x1cb8d8=>_0x1cb8d8!==this['_footnotesDefinitions'])){const _0x3b9cb5=_0x36f867['createElement']('footnotesDefinitions',{}),_0x3c0931=[];this['_footnotesDefinitions']&&_0x3c0931['push'](this['_footnotesDefinitions']),_0x3c0931['push'](..._0x4aa9f2),_0x36f867['insert'](_0x3b9cb5,_0x3c0931[0x0],'before');for(const _0x4e38e1 of _0x3c0931)_0x36f867['move'](_0x36f867['createRangeIn'](_0x4e38e1),_0x36f867['createPositionAt'](_0x3b9cb5,'end')),_0x36f867['remove'](_0x4e38e1);this['_footnotesDefinitions']=_0x3b9cb5,this['_updateFootnotesCounters'](_0x36f867),_0x5c9674=!0x0;}else this['_footnotesDefinitions']=_0x4aa9f2[0x0];}if(_0x374466['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2929b3 of this['_footnotes'])_0x36f867['remove'](_0x2929b3['reference']),_0x5c9674=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5c9674;}['_handleFootnoteDefinitionsChanges'](_0x3db041,_0x2a3d59){let _0x484e99=!0x1;const _0xf4c0cb=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x44f452,moved:_0x34e425}=this['_footnoteDefsTracker']['getChanges'](_0x2a3d59);for(const _0x27b0e7 of[..._0x34e425,..._0x44f452]){const _0x46d9d1=_0x27b0e7['getAttribute']('footnoteId'),_0x225803=this['getFootnote'](_0x46d9d1);_0x225803&&(_0x225803['definition']=_0x27b0e7),N(_0x3db041,_0xf4c0cb,_0x27b0e7)&&(_0x484e99=!0x0);}return _0x484e99;}['_handleFootnoteReferencesChanges'](_0x59d24d,_0x1a3c34){let _0x5e26f5=!0x1;const {removed:_0x19e85d,inserted:_0x45e34a,moved:_0xd6573a}=this['_footnoteRefsTracker']['getChanges'](_0x1a3c34);for(const _0x3429b9 of _0x19e85d)this['_handleRemoveFootnoteReferenceById'](_0x59d24d,_0x3429b9)&&(_0x5e26f5=!0x0);for(const _0x32692b of _0x45e34a)this['_handleInsertedFootnoteReference'](_0x59d24d,_0x32692b)&&(_0x5e26f5=!0x0);for(const _0x130979 of _0xd6573a)this['_handleMovedFootnoteReference'](_0x59d24d,_0x130979)&&(_0x5e26f5=!0x0);return _0x5e26f5;}['_handleFootnotesDefinitionsObjectSync'](_0x1077e6){if(!this['_footnotesDefinitions'])return!0x1;let _0x1feccd=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4b0c3a=[];for(const _0x1c52f4 of this['_footnotesDefinitions']['getChildren']()){const _0x5c90ba=_0x1c52f4['getAttribute']('footnoteId');this['getFootnote'](_0x5c90ba)||(_0x4b0c3a['unshift'](_0x1c52f4),_0x1feccd=!0x0);}for(const _0xbc589b of _0x4b0c3a)_0x1077e6['remove'](_0xbc589b);}const _0x2ec854=new Set(),_0x37d17e=[];for(const _0xdf9fec of this['_footnotesDefinitions']['getChildren']()){const _0x1d1401=_0xdf9fec['getAttribute']('footnoteId');_0x2ec854['has'](_0x1d1401)?(_0x37d17e['unshift'](_0xdf9fec),_0x1feccd=!0x0):_0x2ec854['add'](_0x1d1401);}for(const _0x5b5919 of _0x37d17e)_0x1077e6['remove'](_0x5b5919);return this['_footnotesDefinitions']['childCount']||(_0x1077e6['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1feccd=!0x0),_0x1feccd;}['_handleInsertedFootnoteReference'](_0x1b86b7,_0x4bdcff){if(this['_footnotes']['find'](_0x4ac00a=>_0x4ac00a['reference']===_0x4bdcff))return!0x1;let _0x63b09b=!0x1;const _0x462fc4=_0x4bdcff['getAttribute']('footnoteId'),_0x4da658=this['_footnotes']['findIndex'](_0x344fae=>_0x344fae['id']===_0x462fc4);-0x1!==_0x4da658&&(_0x1b86b7['remove'](this['_footnotes'][_0x4da658]['reference']),this['_footnotes']['splice'](_0x4da658,0x1),_0x63b09b=!0x0);let _0x1e926c=this['_footnotesDefinitions']?function(_0x166d4d,_0x1024d4){for(const _0x2742c4 of _0x166d4d['getChildren']())if(_0x2742c4['getAttribute']('footnoteId')===_0x1024d4)return _0x2742c4;return null;}(this['_footnotesDefinitions'],_0x462fc4):null;_0x1e926c||(_0x1e926c=_0x1b86b7['createElement']('footnoteDefinition',{'footnoteId':_0x462fc4}),this['_footnotesDefinitions']&&(_0x1b86b7['insert'](_0x1e926c,this['_footnotesDefinitions'],'end'),_0x63b09b=!0x0));const _0x20bdd0={'id':_0x462fc4,'reference':_0x4bdcff,'definition':_0x1e926c},_0x5fd30b=R(this['editor']['model'],this['_footnotes'],_0x4bdcff);this['_footnotes']['splice'](_0x5fd30b,0x0,_0x20bdd0);let _0x2d18e8=_0x5fd30b;return-0x1!==_0x4da658&&(_0x2d18e8=Math['min'](_0x5fd30b,_0x4da658)),this['_updateFootnotesCounters'](_0x1b86b7,_0x2d18e8)&&(_0x63b09b=!0x0),_0x63b09b;}['_handleRemoveFootnoteReferenceById'](_0x9af309,_0x5ea5e7){const _0x3c6c44=this['_footnotes']['findIndex'](_0x2b3054=>_0x2b3054['id']===_0x5ea5e7);if(-0x1===_0x3c6c44)return!0x1;let _0x14b0f0=!0x1;const _0x481729=this['_footnotes'][_0x3c6c44];return'$graveyard'!==_0x481729['definition']['root']['rootName']&&(_0x9af309['remove'](_0x481729['definition']),_0x14b0f0=!0x0),this['_footnotes']['splice'](_0x3c6c44,0x1),this['_updateFootnotesCounters'](_0x9af309,_0x3c6c44)&&(_0x14b0f0=!0x0),_0x14b0f0;}['_handleMovedFootnoteReference'](_0xf9d3cf,_0xd89524){const _0x47b718=_0xd89524['getAttribute']('footnoteId'),_0x41611a=this['_footnotes']['findIndex'](_0x3f6a18=>_0x3f6a18['id']===_0x47b718),_0x3eb661=this['_footnotes'][_0x41611a];let _0xa4dad=!0x1;_0x3eb661['reference']=_0xd89524,this['_footnotes']['splice'](_0x41611a,0x1);const _0x137005=R(this['editor']['model'],this['_footnotes'],_0xd89524);return this['_footnotes']['splice'](_0x137005,0x0,_0x3eb661),this['_updateFootnotesCounters'](_0xf9d3cf,Math['min'](_0x41611a,_0x137005))&&(_0xa4dad=!0x0),_0xa4dad;}['_updateFootnoteRefCounter'](_0x19733d,_0x2ff7b7){if(!this['_footnotesDefinitions'])return!0x1;const _0x39275c=this['_footnotes'][_0x2ff7b7];let _0x440d8d;return _0x440d8d=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x39275c,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2ff7b7+0x1}):String(_0x2ff7b7+0x1),_0x39275c['reference']['getAttribute']('footnoteCounter')!=_0x440d8d&&(_0x19733d['setAttribute']('footnoteCounter',_0x440d8d,_0x39275c['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3b40ae){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x563e20,_0x4dd031){if(_0x563e20['length']!==_0x4dd031['length'])return!0x1;for(let _0x29ede7=0x0;_0x29ede7<_0x563e20['length'];_0x29ede7++)if(_0x563e20[_0x29ede7]!==_0x4dd031[_0x29ede7])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2bdfc3=>_0x2bdfc3['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0xa97dec=>_0xa97dec['getAttribute']('footnoteId'))))return!0x1;let _0x39bace=!0x1;for(let _0x5d0080=0x0;_0x5d0080<this['_footnotes']['length'];_0x5d0080++){const _0x574864=this['_footnotes'][_0x5d0080],_0x44a5bb=_0x3b40ae['createPositionBefore'](_0x574864['definition']),_0x329ff6=_0x3b40ae['createPositionAt'](this['_footnotesDefinitions'],_0x5d0080);_0x44a5bb['isEqual'](_0x329ff6)||(_0x3b40ae['move'](_0x3b40ae['createRangeOn'](_0x574864['definition']),_0x329ff6),_0x39bace=!0x0);}return _0x39bace;}['_ensureFootnotesReferencesHaveProperOrder'](_0x227f70){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5142a9}=this['editor'];let _0x497ae2=!0x1;for(let _0x4c14d8=0x0;_0x4c14d8<this['_footnotes']['length']-0x1;_0x4c14d8++){const _0x4c48fe=this['_footnotes'][_0x4c14d8],_0x5fc5cc=this['_footnotes'][_0x4c14d8+0x1],_0x4a192d=_0x5142a9['createPositionBefore'](_0x4c48fe['reference']),_0x478082=_0x5142a9['createPositionBefore'](_0x5fc5cc['reference']);'after'===_0x4a192d['compareWith'](_0x478082)&&(this['_handleMovedFootnoteReference'](_0x227f70,_0x4c48fe['reference']),_0x4c14d8=-0x1,_0x497ae2=!0x0);}return _0x497ae2;}}function N(_0x4c82a0,_0xbbbff9,_0x339dff){if(_0x339dff['childCount'])return!0x1;const _0x5a0f2e=_0xbbbff9?'paragraph':'footnoteInlineContent';return _0x4c82a0['insert'](_0x4c82a0['createElement'](_0x5a0f2e),_0x339dff),!0x0;}function R(_0x221ceb,_0x137840,_0x289975){if(0x0===_0x137840['length'])return 0x0;const _0x278641=_0x221ceb['createPositionBefore'](_0x289975);for(let _0x4bce25=0x0;_0x4bce25<_0x137840['length'];_0x4bce25++){const _0xf3bc98=_0x137840[_0x4bce25],_0x48e86a=_0x221ceb['createPositionBefore'](_0xf3bc98['reference']);if('before'===_0x278641['compareWith'](_0x48e86a))return _0x4bce25;}const _0x21ec0c=_0x289975['root'];let _0x2eada6=-0x1;for(let _0x3a727c=_0x137840['length']-0x1;_0x3a727c>=0x0;_0x3a727c--)if(_0x137840[_0x3a727c]['reference']['root']===_0x21ec0c){_0x2eada6=_0x3a727c;break;}if(-0x1!==_0x2eada6)return _0x2eada6+0x1;const _0x2cc315=_0x221ceb['document']['getRootNames'](),_0x1ca047=_0x2cc315['indexOf'](_0x21ec0c['rootName']),_0x2c7671=_0x2cc315[_0x1ca047+0x1];if(_0x2c7671){for(let _0xacd83d=0x0;_0xacd83d<_0x137840['length'];_0xacd83d++)if(_0x137840[_0xacd83d]['reference']['root']['rootName']===_0x2c7671)return _0xacd83d;}return _0x137840['length'];}class InsertFootnoteCommand extends _0x979695{['refresh'](){const _0x3b98fd=this['editor']['model']['document']['selection'],_0x1a21bb=this['_getPositionToInsertFootnote'](_0x3b98fd);this['isEnabled']=!!_0x1a21bb;}['execute'](_0x367fab){const {editor:_0xfcf768}=this,{model:_0x111327}=_0xfcf768,{selection:_0x4aad5f}=_0x111327['document'],_0x4b2bc9=this['_getPositionToInsertFootnote'](_0x4aad5f);if(!_0x4b2bc9)return;const _0x1e9c02=_0xfcf768['plugins']['get']('FootnotesEditing'),_0x520e74=_0x367fab?.['footnoteId']??_0x754011();!function(_0x4df545){return'string'==typeof _0x4df545&&_0x4df545['length']>0x0&&!/\s/['test'](_0x4df545)&&!/^\d/['test'](_0x4df545);}(_0x520e74)?_0x3c2d4e('insert-footnote-command-executed-with-invalid-id'):(_0x111327['change'](_0x253bfe=>{const _0x5d889=_0x253bfe['createElement']('footnoteRef',{'footnoteId':_0x520e74});_0x111327['insertObject'](_0x5d889,_0x4b2bc9,null);}),_0x1e9c02['_moveSelectionToFootnoteDefinition'](_0x520e74));}['_getPositionToInsertFootnote'](_0x19594c){const {model:_0x3d4bf2}=this['editor'],{schema:_0x41cad4}=_0x3d4bf2,_0x2853d8=_0x19594c['getFirstRange']();for(const _0x258912 of _0x2853d8['getItems']())if(_0x41cad4['isBlock'](_0x258912)||_0x41cad4['isObject'](_0x258912))return null;const _0x20ac34=_0x2853d8['end'];return _0x41cad4['checkChild'](_0x20ac34,'footnoteRef')?_0x20ac34:null;}}class FootnotesEditing extends _0x15780c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x26ce45}=this;_0x26ce45['config']['define']('footnotes.multiBlock',!0x0),_0x26ce45['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x26ce45)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x22ebd1){const _0x3675ec=_0x16f318([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]),_0x457434=0x47a28506,_0x3160e8=0x47a50f3e^_0x457434,_0x576bf6=window[_0x16f318([0x44,0x61,0x74,0x65])][_0x16f318([0x6e,0x6f,0x77])](),_0x4a0957=_0x22ebd1[_0x16f318([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42952d=new window[(_0x16f318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38c3fe=>{_0x4a0957[_0x16f318([0x6f,0x6e,0x63,0x65])](_0x16f318([0x72,0x65,0x61,0x64,0x79]),_0x38c3fe);}),_0x3f052d={[_0x16f318([0x6b,0x74,0x79])]:_0x16f318([0x45,0x43]),[_0x16f318([0x75,0x73,0x65])]:_0x16f318([0x73,0x69,0x67]),[_0x16f318([0x63,0x72,0x76])]:_0x16f318([0x50,0x2d,0x32,0x35,0x36]),[_0x16f318([0x78])]:_0x16f318([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]),[_0x16f318([0x79])]:_0x16f318([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]),[_0x16f318([0x61,0x6c,0x67])]:_0x16f318([0x45,0x53,0x32,0x35,0x36])},_0x412cd5=_0x4a0957[_0x16f318([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16f318([0x67,0x65,0x74])](_0x16f318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30a04e(){let _0x534ca5,_0x29e4b3=null,_0x5e6898=null;try{if(_0x412cd5==_0x16f318([0x47,0x50,0x4c]))return _0x16f318([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x534ca5=_0x585ff4(),!_0x534ca5)return _0x16f318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x534ca5[_0x16f318([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e6898=_0x318be4(_0x534ca5[_0x16f318([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x534ca5[_0x16f318([0x6a,0x74,0x69])])),await _0x435a47()?_0x4008e4()?_0x5c96b4()?_0x16f318([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe987d3()?(_0x534ca5[_0x16f318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16f318([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29e4b3=_0x3f4d3b(_0x16f318([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x200e28()):_0x16f318([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16f318([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16f318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16f318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c96b4(){const _0x3b5659=[_0x16f318([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16f318([0x74,0x72,0x69,0x61,0x6c])][_0x16f318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x534ca5[_0x16f318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x576bf6/0x3e8:0xe10*_0x3160e8;return _0x534ca5[_0x16f318([0x65,0x78,0x70])]<_0x3b5659;}function _0x4008e4(){const _0x410904=_0x534ca5[_0x16f318([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x410904&&(!!_0x410904[_0x16f318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f318([0x2a]))||!!_0x410904[_0x16f318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f318([0x46,0x4f,0x4f])));}function _0xe987d3(){const _0x28f968=_0x534ca5[_0x16f318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28f968||0x0==_0x28f968[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40eec3}=new URL(window[_0x16f318([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28f968[_0x16f318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40eec3))return!0x0;const _0x22780c=_0x40eec3[_0x16f318([0x73,0x70,0x6c,0x69,0x74])](_0x16f318([0x2e]));return _0x28f968[_0x16f318([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dfd94=>_0x3dfd94[_0x16f318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f318([0x2a])))[_0x16f318([0x6d,0x61,0x70])](_0x548d50=>_0x548d50[_0x16f318([0x73,0x70,0x6c,0x69,0x74])](_0x16f318([0x2e])))[_0x16f318([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x92f366=>_0x92f366[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22780c[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16f318([0x6d,0x61,0x70])](_0x3d5f86=>Array(_0x22780c[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d5f86[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16f318([0x66,0x69,0x6c,0x6c])](_0x3d5f86[0x0]===_0x16f318([0x2a])?_0x16f318([0x2a]):'')[_0x16f318([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d5f86))[_0x16f318([0x73,0x6f,0x6d,0x65])](_0x4b5fe0=>_0x22780c[_0x16f318([0x65,0x76,0x65,0x72,0x79])]((_0x2f5d02,_0xd8c7f2)=>_0x4b5fe0[_0xd8c7f2]===_0x2f5d02||_0x4b5fe0[_0xd8c7f2]===_0x16f318([0x2a])));}function _0x200e28(){return _0x29e4b3&&_0x5e6898?new window[(_0x16f318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c878f,_0x3334af)=>{_0x29e4b3[_0x16f318([0x74,0x68,0x65,0x6e])](_0x5c878f,_0x3334af),_0x5e6898[_0x16f318([0x74,0x68,0x65,0x6e])](_0x3c55c8=>{_0x3c55c8!=_0x16f318([0x56,0x61,0x6c,0x69,0x64])&&_0x5c878f(_0x3c55c8);},_0x3334af);}):_0x29e4b3||_0x5e6898||_0x16f318([0x56,0x61,0x6c,0x69,0x64]);}}function _0x318be4(_0xd08e15,_0x50404a){return new window[(_0x16f318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4291ab=>{if(_0x577a4f())return _0x4291ab(_0x16f318([0x56,0x61,0x6c,0x69,0x64]));_0x4dcd4d(),_0x4a0957[_0x16f318([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16f318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4584b1=!0x1;const _0x4a295d=_0x754011();function _0x45ce5b(_0x565f70){return!!_0x565f70&&(typeof _0x565f70===_0x16f318([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x565f70===_0x16f318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x565f70[_0x16f318([0x74,0x68,0x65,0x6e])]===_0x16f318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x565f70[_0x16f318([0x63,0x61,0x74,0x63,0x68])]===_0x16f318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c1e53(_0x46b707){_0x16d4d0(_0x46b707)[_0x16f318([0x74,0x68,0x65,0x6e])](_0x706012=>{if(!_0x706012||_0x706012[_0x16f318([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16f318([0x6f,0x6b]))return _0x16f318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ae3ee(_0x487a4e(_0x4a295d+_0x50404a))!=_0x706012[_0x16f318([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16f318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16f318([0x56,0x61,0x6c,0x69,0x64]);})[_0x16f318([0x74,0x68,0x65,0x6e])](_0x2b4d7d=>(_0x18e766(),_0x2b4d7d),()=>{const _0xac6f44=_0x5784da();return null==_0xac6f44?(_0x18e766(),_0x16f318([0x56,0x61,0x6c,0x69,0x64])):_0x16f318(_0x576bf6-_0xac6f44>(0x63ae0106^_0x457434)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16f318([0x74,0x68,0x65,0x6e])](_0x4291ab)[_0x16f318([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4291ab(_0x16f318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x487c0e=0x47946b86^_0x457434;function _0x18e766(){const _0x33e781=_0x16f318([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ae3ee(_0x487a4e(_0xd08e15)),_0x44d66e=_0x35194a(_0x2ae3ee(window[_0x16f318([0x4d,0x61,0x74,0x68])][_0x16f318([0x63,0x65,0x69,0x6c])](_0x576bf6/_0x487c0e)));window[_0x16f318([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16f318([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33e781,_0x44d66e);}function _0x5784da(){const _0x2bcb96=_0x16f318([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ae3ee(_0x487a4e(_0xd08e15)),_0x54cee9=window[_0x16f318([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16f318([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bcb96);return _0x54cee9?window[_0x16f318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35194a(_0x54cee9),0x10)*_0x487c0e:null;}function _0x16d4d0(_0x1de0fb){return new window[(_0x16f318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d0705,_0x59e558)=>{_0x1de0fb[_0x16f318([0x74,0x68,0x65,0x6e])](_0x5d0705,_0x59e558),window[_0x16f318([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59e558,0x47a351c6^_0x457434);});}}_0x4a0957[_0x16f318([0x6f,0x6e])](_0x16f318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21ba1a,_0x1a8e97)=>{if(_0x1a8e97[0x0]!=_0xd08e15)return _0x4291ab(_0x16f318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a8e97[0x1]={..._0x1a8e97[0x1],[_0x16f318([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a295d};},{[_0x16f318([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16f318([0x68,0x69,0x67,0x68])}),_0x4a0957[_0x16f318([0x6f,0x6e])](_0x16f318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10149b=>{_0x45ce5b(_0x10149b[_0x16f318([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4584b1=!0x0,_0x1c1e53(_0x10149b[_0x16f318([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16f318([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16f318([0x6c,0x6f,0x77])}),_0x42952d[_0x16f318([0x74,0x68,0x65,0x6e])](()=>{_0x4584b1||_0x4291ab(_0x16f318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x577a4f(){return _0x4a0957[_0x16f318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16f318([0x76,0x69,0x65,0x77])][_0x16f318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16f318([0x61,0x75,0x74,0x6f]);}function _0x4dcd4d(){_0x4a0957[_0x16f318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16f318([0x76,0x69,0x65,0x77])][_0x16f318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16f318([0x61,0x75,0x74,0x6f]);}}function _0x3f4d3b(_0x3fd6f3){const _0x339180=[new window[(_0x16f318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d064e=>setTimeout(_0x1d064e,0x47abbbca^_0x457434)),_0x42952d[_0x16f318([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16f318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24207f=>{let _0x1ef79c=0x0;_0x4a0957[_0x16f318([0x6d,0x6f,0x64,0x65,0x6c])][_0x16f318([0x6f,0x6e])](_0x16f318([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1eebe3,_0x3fdf07)=>{_0x3fdf07[0x0][_0x16f318([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ef79c++,_0x1ef79c==(0x47a280ee^_0x457434)&&(_0x24207f(),_0x1eebe3[_0x16f318([0x6f,0x66,0x66])]());});}))];return window[_0x16f318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16f318([0x72,0x61,0x63,0x65])](_0x339180)[_0x16f318([0x74,0x68,0x65,0x6e])](()=>_0x3fd6f3);}async function _0xede010(){await _0x42952d,_0x4a0957[_0x16f318([0x6d,0x6f,0x64,0x65,0x6c])][_0x16f318([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x444dbe,_0x4a0957[_0x16f318([0x6d,0x6f,0x64,0x65,0x6c])][_0x16f318([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x444dbe,_0x4a0957[_0x16f318([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16f318([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x262ccb(_0x24d5b0){const _0x1f2756=_0x159c88();_0x4a0957[_0x1f2756]=_0x16f318([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24d5b0,_0x24d5b0!=_0x16f318([0x56,0x61,0x6c,0x69,0x64])&&_0xede010();}function _0x159c88(){const _0x257410=window[_0x16f318([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16f318([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16f318([0x6e,0x6f,0x77])]())[_0x16f318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16f318([0x2e]),'');let _0x405195=_0x16f318([0x75]);for(let _0x393695=0x0;_0x393695<_0x257410[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x393695+=0x2){let _0x140b68=window[_0x16f318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x257410[_0x16f318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x393695,_0x393695+0x2));_0x140b68>=_0x3675ec[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x140b68-=_0x3675ec[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x405195+=_0x3675ec[_0x140b68];}return _0x405195;}function _0x585ff4(){const _0x42205f=_0x412cd5[_0x16f318([0x73,0x70,0x6c,0x69,0x74])](_0x16f318([0x2e]));if(0x3!=_0x42205f[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd4d74a(_0x42205f[0x1]);function _0xd4d74a(_0x29cb92){const _0x11af85=_0x13143e(_0x29cb92);return _0x11af85&&_0x3e1ebe()?_0x11af85:null;function _0x3e1ebe(){const _0xc3befd=_0x11af85[_0x16f318([0x6a,0x74,0x69])],_0x2aea95=window[_0x16f318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc3befd[_0x16f318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc3befd[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22252c={..._0x11af85,[_0x16f318([0x6a,0x74,0x69])]:_0xc3befd[_0x16f318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc3befd[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22252c[_0x16f318([0x76,0x63])],_0x487a4e(_0x22252c)==_0x2aea95;}}}async function _0x435a47(){let _0xb1a12d=!0x0;try{const _0xc1d0b4=_0x412cd5[_0x16f318([0x73,0x70,0x6c,0x69,0x74])](_0x16f318([0x2e])),[_0x45a845,_0x2ab2b8,_0x55582f]=_0xc1d0b4;return _0x355edd(_0x45a845),await _0x1bf91f(_0x45a845,_0x2ab2b8,_0x55582f),_0xb1a12d;}catch{return!0x1;}function _0x355edd(_0x1da780){const _0x2d64ce=_0x13143e(_0x1da780);_0x2d64ce&&_0x2d64ce[_0x16f318([0x61,0x6c,0x67])]==_0x16f318([0x45,0x53,0x32,0x35,0x36])||(_0xb1a12d=!0x1);}async function _0x1bf91f(_0xe0383,_0x21fad1,_0x2e3c2f){const _0x47b2d6=window[_0x16f318([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16f318([0x66,0x72,0x6f,0x6d])](_0x2b36f2(_0x2e3c2f),_0x2f7ed7=>_0x2f7ed7[_0x16f318([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x272292=new window[(_0x16f318([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16f318([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe0383+_0x16f318([0x2e])+_0x21fad1),_0x3063af=window[_0x16f318([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16f318([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3063af)return;const _0x168628=await _0x3063af[_0x16f318([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16f318([0x6a,0x77,0x6b]),_0x3f052d,{[_0x16f318([0x6e,0x61,0x6d,0x65])]:_0x16f318([0x45,0x43,0x44,0x53,0x41]),[_0x16f318([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16f318([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16f318([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3063af[_0x16f318([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16f318([0x6e,0x61,0x6d,0x65])]:_0x16f318([0x45,0x43,0x44,0x53,0x41]),[_0x16f318([0x68,0x61,0x73,0x68])]:{[_0x16f318([0x6e,0x61,0x6d,0x65])]:_0x16f318([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x168628,_0x47b2d6,_0x272292)||(_0xb1a12d=!0x1);}}function _0x13143e(_0x347086){return _0x347086[_0x16f318([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16f318([0x65,0x79]))?JSON[_0x16f318([0x70,0x61,0x72,0x73,0x65])](_0x2b36f2(_0x347086)):null;}function _0x2b36f2(_0x246ed3){return window[_0x16f318([0x61,0x74,0x6f,0x62])](_0x246ed3[_0x16f318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16f318([0x2b]))[_0x16f318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16f318([0x2f])));}function _0x487a4e(_0x271d01){let _0x58f6f0=0x1505;function _0x233eb6(_0x45e88a){for(let _0x234400=0x0;_0x234400<_0x45e88a[_0x16f318([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x234400++){const _0x5be0ce=_0x45e88a[_0x16f318([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x234400);_0x58f6f0=(_0x58f6f0<<0x5)+_0x58f6f0+_0x5be0ce,_0x58f6f0&=_0x58f6f0;}}function _0x38dbca(_0x1bae31){Array[_0x16f318([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bae31)?_0x1bae31[_0x16f318([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38dbca):_0x1bae31&&typeof _0x1bae31==_0x16f318([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16f318([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bae31)[_0x16f318([0x73,0x6f,0x72,0x74])]()[_0x16f318([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5aa86c,_0x16f45f])=>{_0x233eb6(_0x5aa86c),_0x38dbca(_0x16f45f);}):_0x233eb6(window[_0x16f318([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bae31));}return _0x38dbca(_0x271d01),_0x58f6f0>>>0x0;}function _0x2ae3ee(_0x2493a6){return _0x2493a6[_0x16f318([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16f318([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16f318([0x30]));}function _0x35194a(_0x260854){return _0x260854[_0x16f318([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16f318([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16f318([0x6a,0x6f,0x69,0x6e])]('');}function _0x444dbe(){}function _0x16f318(_0x4a5ae9){return _0x4a5ae9['map'](_0x304395=>String['fromCharCode'](_0x304395))['join']('');}_0x262ccb(await _0x30a04e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4d2e28){const {plugins:_0x1ab368,editing:_0x35fb76,model:_0x1cfd5d}=this['editor'],_0x84a4fd=_0x1ab368['get'](FootnotesTracker)['getFootnote'](_0x4d2e28);return!!_0x84a4fd&&(_0x1cfd5d['change'](_0x134407=>{_0x134407['setSelection'](_0x134407['createPositionAt'](_0x84a4fd['definition'],'end'));}),_0x35fb76['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x523578){const {plugins:_0x179b08,editing:_0x1a71c4,model:_0xafe2ae}=this['editor'],_0xdcf25d=_0x179b08['get'](FootnotesTracker)['getFootnote'](_0x523578);return!!_0xdcf25d&&(_0xafe2ae['change'](_0x2022e2=>{_0x2022e2['setSelection'](_0xdcf25d['reference'],'on');}),_0x1a71c4['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1c05d8}=this['editor']['model'],_0x20bba4=this['editor']['config']['get']('footnotes.multiBlock');_0x1c05d8['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1c05d8['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1c05d8['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x20bba4?_0x1c05d8['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1c05d8['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1c05d8['addChildCheck'](_0xbc6d83=>{for(const _0x53567a of _0xbc6d83)if('footnoteDefinition'===_0x53567a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x910722}=this,{conversion:_0x171e36,editing:_0x4292df}=_0x910722,{t:t}=_0x910722['locale'];_0x171e36['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xb91de1,{writer:_0xb95386,consumable:_0x3033fe})=>{const _0x52c4b0=_0xb91de1['getChild'](0x0);if(!_0x52c4b0||!_0x52c4b0['is']('element','a'))return null;const _0x3ed657=_0x52c4b0['getAttribute']('href')||'';if(!_0x3ed657['startsWith']('#'))return null;const _0x487c6e=_0x3ed657['replace'](/^#/,'');if(!_0x487c6e)return null;_0x3033fe['consume'](_0x52c4b0,{'name':!0x0,'attributes':['href']});for(const {item:_0x40b165}of _0x4292df['view']['createRangeIn'](_0x52c4b0))_0x40b165['is']('$textProxy')?_0x3033fe['consume'](_0x40b165['textNode'],{'name':!0x0}):_0x40b165['is']('element')&&_0x3033fe['consume'](_0x40b165,{'name':!0x0});return _0xb95386['createElement']('footnoteRef',{'footnoteId':_0x487c6e});}}),_0x171e36['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x45f066,{writer:_0x307a22})=>U(_0x45f066,_0x307a22)}),_0x171e36['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1bf991,{writer:_0x382b04})=>{const _0x3c2dc2=_0x1bf991['getAttribute']('footnoteCounter');return _0x203158(U(_0x1bf991,_0x382b04),_0x382b04,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3c2dc2)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4df13a}=this,{t:t}=_0x4df13a['locale'],{conversion:_0x4efcd1}=_0x4df13a;_0x4efcd1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4efcd1['for']('upcast')['add'](_0x43e923=>{_0x43e923['on']('element:ol',(_0x257484,_0x5414ed,_0x28544f)=>{const _0x567c91=_0x5414ed['viewItem'];if(!_0x567c91['hasClass']('footnotes-list')||!_0x5414ed['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x28544f['consumable']['consume'](_0x567c91,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3025bc,modelCursor:_0xcb0bc6}=_0x28544f['convertChildren'](_0x5414ed['viewItem'],_0x5414ed['modelCursor']);_0x5414ed['modelRange']=_0x3025bc,_0x5414ed['modelCursor']=_0xcb0bc6;}),_0x43e923['on']('element:hr',(_0x4d4963,_0x118ad0,_0x30153f)=>{const _0x1658e9=_0x118ad0['viewItem'];_0x1658e9['hasClass']('footnotes-divider')&&_0x118ad0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x30153f['consumable']['consume'](_0x1658e9,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4efcd1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x11b576,{writer:_0x47f1f2})=>$(_0x47f1f2)}),_0x4efcd1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2bc2b0,{writer:_0x2e77f9})=>{const _0xe778b2=$(_0x2e77f9,{'data-footnotes-list-label':t('Footnotes')}),_0x579039=_0x203158(_0xe778b2,_0x2e77f9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2e77f9['setCustomProperty']('footnotesDefinitions',!0x0,_0x579039),_0x579039;}});}['_defineDefinitionConverters'](){const {editor:_0x15df02}=this,{conversion:_0x25ede5,locale:_0x5321fe}=_0x15df02,_0x3b1443=_0x15df02['config']['get']('footnotes.multiBlock');_0x25ede5['for']('upcast')['add'](_0x367080=>{_0x367080['on']('element:li',(_0xd1653c,_0x380e98,_0x477d86)=>{const _0x1b5fdc=_0x380e98['viewItem'];if(!_0x1b5fdc['hasClass']('footnote-definition')||!_0x1b5fdc['getAttribute']('id'))return;const _0x33b701=_0x1b5fdc['parent'];if(!_0x33b701['is']('element','ol')||!_0x33b701['hasClass']('footnotes-list'))return;if(!_0x477d86['consumable']['test'](_0x1b5fdc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x13c349=_0x477d86['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1b5fdc['getAttribute']('id')});if(!_0x477d86['safeInsert'](_0x13c349,_0x380e98['modelCursor']))return;_0x477d86['consumable']['consume'](_0x1b5fdc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1c5693=Array['from'](_0x1b5fdc['getChildren']())['find'](_0x45cac2=>_0x45cac2['is']('element')&&_0x45cac2['hasClass']('footnote-content'));for(const _0x5476a5 of _0x1b5fdc['getChildren']())_0x5476a5['is']('element')&&(_0x477d86['consumable']['consume'](_0x5476a5,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x477d86['consumable']['consume'](_0x5476a5,{'name':!0x0,'classes':'footnote-content'}));if(_0x1c5693){if(_0x3b1443)_0x477d86['convertChildren'](_0x1c5693,_0x13c349);else{const _0x3d72b6=_0x477d86['writer']['createElement']('footnoteInlineContent');_0x477d86['writer']['insert'](_0x3d72b6,_0x13c349),_0x477d86['convertChildren'](_0x1c5693,_0x3d72b6);}}_0x477d86['updateConversionResult'](_0x13c349,_0x380e98);});}),_0x25ede5['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5cb232,{writer:_0x17e846})=>B(_0x5cb232,_0x17e846,_0x5321fe,{'dataPipeline':!0x0})}),_0x25ede5['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x11fb4c,{writer:_0x296c0f})=>B(_0x11fb4c,_0x296c0f,_0x5321fe)});}['_defineBogusParagraphConverters'](){const {editor:_0x287321}=this,{conversion:_0x1bfa8f}=_0x287321;_0x287321['config']['get']('footnotes.multiBlock')?(_0x1bfa8f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':K(),'converterPriority':'high'}),_0x1bfa8f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':K({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x287321['model']['document'],'change:data',()=>{!function(_0x5e2162,_0x584812){const _0x139dd6=_0x5e2162['document']['differ'],_0x2125b4=new Set();for(const _0x176db0 of _0x139dd6['getChanges']()){const _0xda84cd='attribute'==_0x176db0['type']?_0x176db0['range']['start']['parent']:_0x176db0['position']['parent'];_0xda84cd['is']('element','footnoteDefinition')&&_0x2125b4['add'](_0xda84cd);}for(const _0x1009ef of _0x2125b4['values']()){const _0x499f02=Array['from'](_0x1009ef['getChildren']())['filter'](_0x117364=>V(_0x117364,_0x584812['mapper']));for(const _0x131f57 of _0x499f02)_0x584812['reconvertItem'](_0x131f57);}}(_0x287321['model'],_0x287321['editing']);})):(_0x1bfa8f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':K()}),_0x1bfa8f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1f66f8,{writer:_0x487f10})=>{const _0x2f8584=_0x487f10['createContainerElement']('span');return _0x487f10['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2f8584),_0x2f8584;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1523ce}=this,{editing:_0x47f118,t:t}=_0x1523ce,_0x13e166=_0x1523ce['model']['document']['selection'];_0x1523ce['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1523ce['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x47f118['view']['document'],'enter',(_0x188c75,_0x4a0b0f)=>{const _0x5b7bbe=function(_0x2624fb){const _0x8a92ef=_0x2624fb['getSelectedElement']();if(_0x8a92ef?.['is']('element','footnoteRef'))return _0x8a92ef;return null;}(_0x13e166);if(_0x5b7bbe){const _0x33b568=_0x5b7bbe['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x33b568),_0x4a0b0f['preventDefault'](),_0x188c75['stop']();}},{'context':_0x261f6d});}['_defineClickHandlers'](){const {editor:_0x39b54b}=this,{editing:_0x1fab2b}=_0x39b54b;_0x39b54b['editing']['view']['addObserver'](_0x36b03c),_0x39b54b['editing']['view']['addObserver'](_0x5d3acb);let _0x3e88c0=!0x1;this['listenTo'](_0x1fab2b['view']['document'],'pointerdown',(_0x386c95,_0x15538b)=>{const {target:_0x3f0322}=_0x15538b,_0x5864b6=_0x1fab2b['view']['document']['selection'];_0x3e88c0=!!(_0x3f0322?.['is']('element','a')&&_0x3f0322['parent']?.['is']('element','sup')&&_0x3f0322['parent']['hasClass']('footnote'))&&_0x5864b6['getSelectedElement']()===_0x3f0322['parent'];},{'priority':'high'}),this['listenTo'](_0x1fab2b['view']['document'],'click',(_0x2b105b,_0x28f653)=>{const {target:_0x58ccbc}=_0x28f653;if(!_0x58ccbc?.['is']('element','a'))return;if(_0x58ccbc['parent']?.['is']('element','sup')&&_0x58ccbc['parent']['hasClass']('footnote')&&!_0x3e88c0)return void _0x28f653['preventDefault']();let _0x311f9a=_0x58ccbc['getAttribute']('href');if(!_0x311f9a?.['startsWith']('#'))return;_0x311f9a=_0x311f9a['slice'](0x1);let _0x462586=!0x1;(_0x311f9a['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x311f9a['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x311f9a))&&(_0x462586=!0x0),_0x462586&&(_0x28f653['preventDefault'](),_0x2b105b['stop']());},{'priority':'high','context':'$capture'});}}function K({dataPipeline:_0x3592eb}={}){return(_0x43529d,{writer:_0x22180d})=>{if(!j(_0x43529d))return null;if(!_0x3592eb)return _0x22180d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x59ca72=_0x22180d['createContainerElement']('p');return _0x22180d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x59ca72),_0x59ca72;};}function j(_0x53e5f7){const {parent:_0x207ac6}=_0x53e5f7;if(!_0x207ac6?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x207ac6['childCount'])return!0x1;for(const _0xc0cdde of _0x53e5f7['getAttributeKeys']())if(!_0xc0cdde['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xc0cdde)return!0x1;return!0x0;}function V(_0x3bf17d,_0x78360d){if(!_0x3bf17d['is']('element','paragraph'))return!0x1;const _0x12a611=_0x78360d['toViewElement'](_0x3bf17d);return!!_0x12a611&&j(_0x3bf17d)!==_0x12a611['is']('element','span');}function M(_0x3367ab){return _0x261f6d(_0x3367ab)&&_0x3367ab['is']('containerElement')&&!!_0x3367ab['getCustomProperty']('footnotesDefinitions');}function $(_0x4865da,_0x21448e={}){const _0x53d66e=_0x4865da['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5f3a13=_0x4865da['createContainerElement']('ol',{'class':'footnotes-list'},_0x4865da['createSlot']());return _0x4865da['createContainerElement']('div',{'class':'footnotes',..._0x21448e},[_0x53d66e,_0x5f3a13]);}function U(_0x4c054e,_0x20f0d9){const _0x4dd6bf=_0x4c054e['getAttribute']('footnoteId'),_0x39c9a9=_0x4c054e['getAttribute']('footnoteCounter'),_0x27ce23=_0x20f0d9['createUIElement']('a',{'href':'#'+_0x4dd6bf},function(_0x290c14){const _0x4e9e24=this['toDomElement'](_0x290c14);return _0x4e9e24['textContent']=_0x39c9a9,_0x4e9e24;}),_0x5cf4ae=_0x20f0d9['createContainerElement']('sup',{'id':'ref-'+_0x4dd6bf,'class':'footnote'},[_0x27ce23]);return _0x5cf4ae['getFillerOffset']=()=>null,_0x5cf4ae;}function B(_0x32a401,_0x2857a4,_0x5e7f15,{dataPipeline:_0x24383e}={}){const {t:t}=_0x5e7f15,_0x54a359=_0x32a401['getAttribute']('footnoteId'),_0x5b59b0=_0x2857a4['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x54a359},function(_0x3ba80f){const _0x37dc6a=this['toDomElement'](_0x3ba80f);return _0x37dc6a['innerText']='^',_0x37dc6a;}),_0x1ab5c5=_0x24383e?_0x2857a4['createContainerElement']('div',{'class':'footnote-content'}):_0x413a3a(_0x2857a4['createEditableElement']('div',{'class':'footnote-content'}),_0x2857a4,{'label':t('Footnote\x20content.')});return _0x2857a4['insert'](_0x2857a4['createPositionAt'](_0x1ab5c5,0x0),_0x2857a4['createSlot']()),_0x2857a4['createContainerElement']('li',{'class':'footnote-definition','id':_0x54a359},[_0x5b59b0,_0x1ab5c5]);}class FootnotesClipboard extends _0x15780c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[FootnotesEditing,_0x28f8ce];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x585057}=this,{plugins:_0x266aff,model:_0x5cecd3}=_0x585057,_0x2033e3=_0x266aff['get'](_0x28f8ce),_0x293c48=_0x266aff['get'](FootnotesTracker);this['listenTo'](_0x2033e3,'outputTransformation',(_0x428fa3,_0x68a3d5)=>{const _0x542be6=H(_0x5cecd3['createRangeIn'](_0x68a3d5['content']));if(!_0x542be6['length'])return;const _0x28bce4=_0x293c48['getFootnotes'](),_0x210e91=_0x542be6['reduce']((_0x3f041b,_0x5bc63d)=>{const _0x53211d=_0x28bce4['find'](_0x4d2d32=>_0x4d2d32['id']===_0x5bc63d);if(_0x53211d){const _0x475595=_0x585057['data']['toView'](_0x53211d['definition'],{'isClipboardPipeline':!0x0}),_0x2bb393=_0x585057['data']['htmlProcessor']['toData'](_0x475595);_0x3f041b[_0x53211d['id']]=_0x2bb393;}return _0x3f041b;},Object['create'](null));_0x68a3d5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x210e91));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x489b7b}=this,{model:_0x2c378b,plugins:_0x36873c}=_0x489b7b,{view:_0x33818c}=_0x489b7b['editing'],_0x54de01=_0x36873c['get'](_0x28f8ce),_0x151359=_0x36873c['get'](FootnotesTracker),_0x107746=_0x489b7b['config']['get']('footnotes.multiBlock');let _0x5e8b5c=null;this['listenTo'](_0x33818c['document'],'clipboardInput',(_0x3ecbdc,_0xee1e19)=>{const _0x501011=_0xee1e19['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5e8b5c=_0x501011?JSON['parse'](_0x501011):null;}),this['listenTo'](_0x54de01,'contentInsertion',(_0x212c68,_0x5704ec)=>{const _0x5f2e05=_0x5704ec['sourceEditorId']===this['editor']['id'];_0x5f2e05&&'drop'===_0x5704ec['method']||_0x2c378b['change'](_0x184c82=>{let _0x15edee=_0x151359['getFootnotesDefinitionsObjectElement']();const _0x3c3b9c=!!_0x15edee&&Array['from'](_0x2c378b['document']['selection']['getSelectedBlocks']())['includes'](_0x15edee);if(!_0x5e8b5c&&function(_0xa965e){for(const {item:_0x25e87e}of _0xa965e)if(_0x25e87e['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2c378b['createRangeIn'](_0x5704ec['content']))&&(_0x5e8b5c=function(_0x2ac1a5,_0x520a5b){const _0x216c5f=q(_0x2ac1a5,_0x520a5b);if(!_0x216c5f)return null;const _0xa8bc7e=Object['create'](null);for(const _0x282b28 of _0x216c5f['getChildren']())_0x282b28['is']('element','footnoteDefinition')&&_0x282b28['hasAttribute']('footnoteId')&&(_0xa8bc7e[_0x282b28['getAttribute']('footnoteId')]=_0x2ac1a5['cloneElement'](_0x282b28,!0x0));return Object['keys'](_0xa8bc7e)['length']?_0xa8bc7e:null;}(_0x184c82,_0x5704ec['content'])),(_0x15edee&&!_0x3c3b9c||!_0x15edee&&!_0x5e8b5c)&&function(_0x5c72a7,_0x58ceb7){const _0x250167=[];for(const {item:_0xa06a72}of _0x5c72a7['createRangeIn'](_0x58ceb7))_0xa06a72['is']('element','footnotesDefinitions')&&_0x250167['push'](_0xa06a72);for(const _0x1300e9 of _0x250167)_0x5c72a7['remove'](_0x1300e9);}(_0x184c82,_0x5704ec['content']),!_0x5e8b5c)return;const {selection:_0x104542}=_0x2c378b['document'],_0x527ec1=_0x104542['getFirstRange']()['root'];_0x15edee&&!_0x3c3b9c||(_0x15edee=q(_0x184c82,_0x5704ec['content']),_0x15edee||=_0x151359['_insertEmptyFootnotesDefinitionsContainer'](_0x184c82,_0x527ec1));const _0x3b59a2=Array['from'](_0x104542['getRanges']())['flatMap'](H),_0x3dd09f=function(_0x579673,_0x38871e,_0x359613){const _0x345a84=Object['create'](null);for(const {item:_0x5eb95a}of _0x579673['createRangeIn'](_0x38871e))if(_0x5eb95a['is']('element','footnoteRef')){const _0x218505=_0x5eb95a['getAttribute']('footnoteId');if(!_0x359613(_0x218505))continue;_0x345a84[_0x218505]||(_0x345a84[_0x218505]=_0x754011()),_0x579673['setAttribute']('footnoteId',_0x345a84[_0x218505],_0x5eb95a);}return _0x345a84;}(_0x184c82,_0x5704ec['content'],_0x46051d=>{if(!_0x5f2e05)return!0x0;return!!_0x151359['getFootnote'](_0x46051d)&&!_0x3b59a2['includes'](_0x46051d);});for(const [_0xade8ba,_0x4b3e73]of Object['entries'](_0x5e8b5c)){const _0x318050=_0x3dd09f[_0xade8ba]||_0xade8ba;let _0x3f389e;if('string'!=typeof _0x4b3e73)_0x3f389e=_0x4b3e73,_0x318050!==_0xade8ba&&_0x184c82['setAttribute']('footnoteId',_0x318050,_0x3f389e);else{_0x3f389e=_0x184c82['createElement']('footnoteDefinition',{'footnoteId':_0x318050});const _0xc4fdb3=_0x489b7b['data']['htmlProcessor']['toView'](_0x4b3e73);let _0x4fc830;if(_0x107746)_0x4fc830=_0x489b7b['data']['toModel'](_0xc4fdb3,_0x3f389e);else{_0x4fc830=_0x184c82['createElement']('footnoteInlineContent');const _0x34f7ac=_0x489b7b['data']['toModel'](_0xc4fdb3,_0x4fc830);_0x184c82['insert'](_0x34f7ac,_0x4fc830);}_0x184c82['append'](_0x4fc830,_0x3f389e);}_0x184c82['insert'](_0x3f389e,_0x15edee,'end');}_0x5e8b5c=null;});});}}function q(_0x3ade8c,_0x29798c){for(const {item:_0x208391}of _0x3ade8c['createRangeIn'](_0x29798c))if(_0x208391['is']('element','footnotesDefinitions'))return _0x208391;return null;}function H(_0x8a2e1b){const _0x3cc9c2=new Set();for(const {item:_0x41d068}of _0x8a2e1b)_0x41d068['is']('element','footnoteRef')&&_0x3cc9c2['add'](_0x41d068['getAttribute']('footnoteId'));return Array['from'](_0x3cc9c2);}class FootnotesUI extends _0x15780c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x334ba8}=this,{componentFactory:_0x4f8c6d}=_0x334ba8['ui'];_0x4f8c6d['add']('insertFootnote',z(_0x334ba8,_0x2bc05c)),_0x4f8c6d['add']('menuBar:insertFootnote',z(_0x334ba8,_0x4ba87a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46afe1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b89d4;for(const _0x36b42a in _0x46afe1){const _0x14a0b8=_0x36b42a,_0x15c1d0=_0x46afe1[_0x14a0b8];if('footnotesLicenseKeyValid'==_0x15c1d0||'footnotesLicenseKeyInvalid'==_0x15c1d0||'footnotesLicenseKeyExpired'==_0x15c1d0||'footnotesLicenseKeyDomainLimit'==_0x15c1d0||'footnotesLicenseKeyNotAllowed'==_0x15c1d0||'footnotesLicenseKeyEvaluationLimit'==_0x15c1d0||'footnotesLicenseKeyUsageLimit'==_0x15c1d0){delete _0x46afe1[_0x14a0b8],_0x2b89d4=_0x15c1d0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2b89d4&&_0x46afe1['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2b89d4&&_0x46afe1['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2b89d4&&_0x46afe1['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2b89d4&&_0x46afe1['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2b89d4&&_0x46afe1['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x2b89d4&&_0x46afe1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function z(_0x590863,_0x379ad0){const _0x472127=_0x590863['commands']['get']('insertFootnote');return _0x1ccbbd=>{const {t:t}=_0x1ccbbd,_0x5cf8f1=new _0x379ad0(_0x1ccbbd),_0x3e31bd=_0x5cf8f1 instanceof _0x4ba87a;return _0x5cf8f1['bind']('isEnabled')['to'](_0x472127,'isEnabled'),_0x5cf8f1['set']({'label':t(_0x3e31bd?'Footnote':'Insert\x20footnote'),'icon':_0x3fac32,'tooltip':!0x0}),_0x5cf8f1['on']('execute',()=>{_0x472127['execute'](),_0x590863['editing']['view']['focus']();}),_0x5cf8f1;};}class Footnotes extends _0x15780c{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[FootnotesEditing,FootnotesClipboard,FootnotesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const X=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],J=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),G=[...X,'arabic-indic','lower-alpha','upper-alpha'];class FootnotesStyleCommand extends _0x979695{['refresh'](){const {editor:_0x2f5785}=this,_0x53e82f=_0x2f5785['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x53e82f,this['value']=_0x53e82f?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5b0de9}){const {editor:_0x101edb}=this,_0x4eda2f=_0x101edb['plugins']['get'](FootnotesTracker),_0x23072f=_0x4eda2f['getFootnotesDefinitionsObjectElement']();_0x23072f&&G['includes'](_0x5b0de9)&&_0x101edb['model']['change'](_0xfda24d=>{_0xfda24d['setAttribute']('footnotesListStyle',_0x5b0de9,_0x23072f),_0x4eda2f['_updateFootnotesCounters'](_0xfda24d);});}}class FootnotesStartCommand extends _0x979695{['refresh'](){const {editor:_0x137a63}=this,_0x444938=_0x137a63['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x444938,this['value']=_0x444938?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2e5ab7}){const {editor:_0xfbb990}=this,_0x5cbb8b=_0xfbb990['plugins']['get'](FootnotesTracker),_0x4fe96e=_0x5cbb8b['getFootnotesDefinitionsObjectElement']();_0x4fe96e&&Number['isInteger'](_0x2e5ab7)&&_0xfbb990['model']['change'](_0x986542=>{_0x986542['setAttribute']('footnotesListStart',_0x2e5ab7,_0x4fe96e),_0x5cbb8b['_updateFootnotesCounters'](_0x986542);});}}function Q(_0x1b9fd6,_0xec01ba){let _0x1f04ee='',_0x1950bb=_0x1b9fd6;for(;_0x1950bb>0x0;){const _0x42c3fa=(_0x1950bb-0x1)%0x1a;_0x1f04ee=String['fromCharCode'](0x61+_0x42c3fa)+_0x1f04ee,_0x1950bb=Math['floor']((_0x1950bb-0x1)/0x1a);}return _0xec01ba?_0x1f04ee['toUpperCase']():_0x1f04ee;}const W=[{'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 Y(_0x3e028e,_0x40acd1){let _0x26a501='',_0xd1599d=_0x3e028e;for(const {value:_0x55d3ca,numeral:_0x5a4203}of W)for(;_0xd1599d>=_0x55d3ca;)_0x26a501+=_0x5a4203,_0xd1599d-=_0x55d3ca;return _0x40acd1?_0x26a501:_0x26a501['toLowerCase']();}const Z=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class FootnotesPropertiesEditing extends _0x15780c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[FootnotesEditing,FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4cdd7d}=this;_0x4cdd7d['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4cdd7d['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4cdd7d['config']['define']('footnotes.footnotesProperties.listStyles',[...X]),_0x4cdd7d['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x4cdd7d)),_0x4cdd7d['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x4cdd7d)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3ad475}=this,{schema:_0xc3938f}=_0x3ad475['model'];_0xc3938f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2b79c9}=this,{conversion:_0x4995f3,model:_0xcf54e6}=_0x2b79c9,{schema:_0x3c66ad}=_0xcf54e6;_0x4995f3['for']('upcast')['add'](_0x50fec4=>{_0x50fec4['on']('element:ol',(_0x15999f,_0x42d826,_0x3f3d6a)=>{const _0x320e36=_0x42d826['viewItem'],_0x33c7ac=_0x42d826['modelCursor']?.['parent'];_0x320e36['hasClass']('footnotes-list')&&_0x33c7ac?.['is']('element','footnotesDefinitions')&&(function(_0x1d4d8b,_0x4f979d,_0x466c83,_0x4148b9){if(!_0x4148b9['checkAttribute'](_0x4f979d,'footnotesListStart'))return;let _0x24c060=0x1;const _0xdb40ef=_0x466c83['consumable']['consume'](_0x1d4d8b,{'attributes':'start'});if(_0xdb40ef){const _0x549c5b=Number['parseInt'](_0x1d4d8b['getAttribute']('start'),0xa);Number['isNaN'](_0x549c5b)||(_0x24c060=_0x549c5b);}!_0xdb40ef&&_0x4f979d['hasAttribute']('footnotesListStart')||_0x466c83['writer']['setAttribute']('footnotesListStart',_0x24c060,_0x4f979d);}(_0x320e36,_0x33c7ac,_0x3f3d6a,_0x3c66ad),function(_0x2696bf,_0x572e16,_0x5b8590,_0x1a82fe){if(!_0x1a82fe['checkAttribute'](_0x572e16,'footnotesListStyle'))return;let _0x14345e='decimal',_0x36a1c7=!0x1;if(_0x5b8590['consumable']['consume'](_0x2696bf,{'attributes':'type'})){const _0x3d22ce={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x2696bf['getAttribute']('type')];_0x3d22ce&&(_0x14345e=_0x3d22ce),_0x36a1c7=!0x0;}if(_0x5b8590['consumable']['consume'](_0x2696bf,{'styles':'list-style-type'})){const _0x89367e=tt(_0x2696bf['getStyle']('list-style-type'));_0x89367e&&(_0x14345e=_0x89367e),_0x36a1c7=!0x0;}!_0x36a1c7&&_0x572e16['hasAttribute']('footnotesListStyle')||_0x5b8590['writer']['setAttribute']('footnotesListStyle',_0x14345e,_0x572e16);}(_0x320e36,_0x33c7ac,_0x3f3d6a,_0x3c66ad));});}),_0x4995f3['for']('downcast')['add'](_0x578e7e=>{_0x578e7e['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x199e18,_0x2ee411,_0x4cd692)=>{if(!_0x4cd692['consumable']['consume'](_0x2ee411['item'],_0x199e18['name']))return;const _0x1259ab=et(_0x2ee411['item'],_0x4cd692['mapper']),{attributeNewValue:_0x21be37}=_0x2ee411;null==_0x21be37||0x1===_0x21be37?_0x4cd692['writer']['removeAttribute']('start',_0x1259ab):_0x4cd692['writer']['setAttribute']('start',String(_0x21be37),_0x1259ab);}),_0x578e7e['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x41adce,_0x80ae44,_0x30abae)=>{if(!_0x30abae['consumable']['consume'](_0x80ae44['item'],_0x41adce['name']))return;const _0x4eaf52=et(_0x80ae44['item'],_0x30abae['mapper']),{attributeNewValue:_0x562e06}=_0x80ae44;_0x562e06&&'decimal'!==_0x562e06?_0x30abae['writer']['setStyle']('list-style-type',_0x562e06,_0x4eaf52):_0x30abae['writer']['removeStyle']('list-style-type',_0x4eaf52);});});}['_definePostfixer'](){const {editor:_0x3a77c5}=this,{model:_0x20c290}=_0x3a77c5,_0x4ca75d=_0x3a77c5['plugins']['get'](FootnotesTracker),_0xecc665=this['_getDefaultListStyle'](),_0x2f4e42=this['_getDefaultStartIndex']();_0x20c290['document']['registerPostFixer'](_0x4e4244=>{const _0xc8fde3=_0x20c290['document']['differ']['getChanges']();let _0x1e6897=!0x1;for(const _0x22e23d of _0xc8fde3){if('insert'!==_0x22e23d['type']||'$text'===_0x22e23d['name'])continue;const _0x4a0f40=_0x20c290['createRangeOn'](_0x22e23d['position']['nodeAfter']);for(const _0x56fd1d of _0x4a0f40['getItems']())_0x56fd1d['is']('element','footnotesDefinitions')&&(!_0x56fd1d['hasAttribute']('footnotesListStart')&&_0x20c290['schema']['checkAttribute'](_0x56fd1d,'footnotesListStart')&&(_0x4e4244['setAttribute']('footnotesListStart',_0x2f4e42,_0x56fd1d),_0x1e6897=!0x0),!_0x56fd1d['hasAttribute']('footnotesListStyle')&&_0x20c290['schema']['checkAttribute'](_0x56fd1d,'footnotesListStyle')&&(_0x4e4244['setAttribute']('footnotesListStyle',_0xecc665,_0x56fd1d),_0x1e6897=!0x0));}return _0x1e6897&&_0x4ca75d['_updateFootnotesCounters'](_0x4e4244),_0x1e6897;});}['_defineFormatter'](){const {editor:_0x191d61}=this;_0x191d61['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x193ac7=>this['_formatFootnoteListValue'](_0x193ac7));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3373b5,value:_0x3595a9,digits:_0xc301e3}){const _0x16ab22=_0x3373b5['getAttribute']('footnotesListStyle'),_0x42c4e8=_0x3373b5['getAttribute']('footnotesListStart'),_0x19cbde=Math['floor'](_0x3595a9)+(_0x42c4e8??0x1)-0x1;switch(_0x16ab22){case'decimal-leading-zero':return function(_0x29a981,_0x326619){return String(_0x29a981)['padStart'](_0x326619,'0');}(_0x19cbde,Math['max'](0x2,_0xc301e3));case'lower-alpha':case'lower-latin':return Q(_0x19cbde,!0x1);case'upper-alpha':case'upper-latin':return Q(_0x19cbde,!0x0);case'lower-roman':return Y(_0x19cbde,!0x1);case'upper-roman':return Y(_0x19cbde,!0x0);case'arabic-indic':return String(_0x19cbde)['replace'](/\d/g,_0xddff28=>Z[Number(_0xddff28)]);default:return String(_0x19cbde);}}}function tt(_0xc450ce){if('string'==typeof _0xc450ce){const _0x19ac6a=J[_0xc450ce];if(_0x19ac6a)return _0x19ac6a;if(G['includes'](_0xc450ce))return _0xc450ce;}return null;}function et(_0x1636bb,_0x57c40f){const _0x5aa0d8=_0x57c40f['toViewElement'](_0x1636bb);return Array['from'](_0x5aa0d8['getChildren']())['find'](_0x5c1873=>_0x5c1873['is']('element','ol')&&_0x5c1873['hasClass']('footnotes-list'));}class FootnotesDefinitionsPropertiesView extends _0xb70dd8{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x22fd70();['keystrokes']=new _0x6e9aa6();['focusables']=new _0x1f57ca();['focusCycler'];constructor(_0x37e0fa,{styleButtonViews:_0x49e209,styleGridAriaLabel:_0x179ca4}){super(_0x37e0fa),(this['focusCycler']=new _0x3432a0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x49e209,_0x179ca4),[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 _0x201c45 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x201c45['element']);_0x571e2e({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x4a4065['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 _0x197c98=_0x2153e2=>_0x2153e2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x197c98),this['keystrokes']['set']('arrowleft',_0x197c98),this['keystrokes']['set']('arrowup',_0x197c98),this['keystrokes']['set']('arrowdown',_0x197c98);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1efee6,_0x2f3e24){const _0x23783f=new _0xb70dd8(this['locale']);return _0x23783f['children']=_0x23783f['createCollection'](),_0x23783f['children']['addMany'](_0x1efee6),_0x23783f['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2f3e24,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x23783f['children']}),_0x23783f['children']['delegate']('execute')['to'](this),_0x23783f['focus']=function(){for(const _0x1589a6 of this['children'])if(_0x1589a6 instanceof _0x2bc05c&&_0x1589a6['isOn'])return void _0x1589a6['focus']();this['children']['first']['focus']();},_0x23783f['focusTracker']=new _0x22fd70(),_0x23783f['keystrokes']=new _0x6e9aa6(),_0x23783f['render'](),_0x23783f['keystrokes']['listenTo'](_0x23783f['element']),this['children']['add'](_0x23783f),_0x23783f;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5c4c46=this['_createStartIndexPropertyView'](),_0x5bcc3d=[_0x5c4c46],_0x466207=new _0x1245f6(this['locale'],_0x5bcc3d);return _0x466207['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x466207['buttonView']['bind']('isEnabled')['toMany'](_0x5bcc3d,'isEnabled',(..._0xa6af67)=>_0xa6af67['some'](_0x2700cf=>_0x2700cf)),_0x466207['buttonView']['on']('change:isEnabled',(_0x3d20d6,_0x34710e,_0xfc8c81)=>{_0xfc8c81||(_0x466207['isCollapsed']=!0x0);}),this['children']['add'](_0x466207),[_0x5c4c46,_0x466207];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x229609=new _0x4a1604(this['locale'],_0x2ff836);return _0x229609['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x229609['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x229609['fieldView']['on']('input',()=>{const _0x3cf879=_0x229609['fieldView']['element'],_0x42b84f=_0x3cf879['valueAsNumber'];Number['isNaN'](_0x42b84f)?_0x229609['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3cf879['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x42b84f}):_0x229609['errorText']=t(_0x42b84f<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x229609;}}class FootnotesPropertiesUI extends _0x15780c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x561fc1,_0x1f47ce];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x418ee8}=this,{componentFactory:_0x16240a}=_0x418ee8['ui'];_0x418ee8['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x16240a['add']('footnotesStyle',function(_0x26f996){return _0x409ab9=>{const {t:t}=_0x409ab9,_0x2f8829=_0x26f996['commands']['get']('footnotesStyle'),_0x5330eb=_0x4f1a9e(_0x409ab9),{buttonView:_0x57da83}=_0x5330eb;return _0x5330eb['class']='ck-footnotes-styles-dropdown',_0x5330eb['bind']('isEnabled')['to'](_0x2f8829,'isEnabled'),_0x57da83['set']({'label':t('Footnotes\x20style'),'icon':_0x3fac32,'tooltip':!0x0}),_0x5330eb['once']('change:isOpen',()=>{const _0x114fd9=function({editor:_0x2f3c1d,dropdownView:_0x3e5f94}){const {t:t}=_0x2f3c1d['locale'],_0x42b809=t('Footnotes\x20definitions\x20styles'),_0x3c0947=function(_0x2df443){const {t:t}=_0x2df443['locale'],_0x48d2c2=_0x2df443['config']['get']('footnotes.footnotesProperties.listStyles'),_0x3b43b0=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x11a8dc},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x946324},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x14e7fd},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x2878fb},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x22b770},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x466b63},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x4123db}];return _0x48d2c2['map'](_0x9497f8=>{const _0x2931d3=tt(_0x9497f8),_0x2fec64=_0x3b43b0['find'](_0x59eeba=>_0x59eeba['style']===_0x2931d3);return function(_0x28d261,_0x3793fe){const {locale:_0x467905}=_0x28d261,{label:_0x428179,icon:_0x53c0ce,tooltip:_0x1f35cf,style:_0x10b02e}=_0x3793fe,_0x42df5a=_0x28d261['commands']['get']('footnotesStyle'),_0x47bc92=new _0x2bc05c(_0x467905);return _0x47bc92['set']({'label':_0x428179,'icon':_0x53c0ce,'tooltip':_0x1f35cf}),_0x47bc92['bind']('isOn')['to'](_0x42df5a,'value',_0x25f9b8=>_0x25f9b8===_0x10b02e),_0x47bc92['bind']('isEnabled')['to'](_0x42df5a,'isEnabled'),_0x47bc92['on']('execute',()=>{_0x28d261['execute']('footnotesStyle',{'value':_0x10b02e}),_0x28d261['editing']['view']['focus']();}),_0x47bc92;}(_0x2df443,_0x2fec64);});}(_0x2f3c1d),_0x971ae7=new FootnotesDefinitionsPropertiesView(_0x2f3c1d['locale'],{'styleGridAriaLabel':_0x42b809,'styleButtonViews':_0x3c0947}),_0x5d411b=_0x2f3c1d['commands']['get']('footnotesStart');return _0x971ae7['startIndexFieldView']['bind']('isEnabled')['to'](_0x5d411b),_0x971ae7['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5d411b),_0x971ae7['on']('footnotesListStart',(_0x22a727,_0x29892b)=>{_0x2f3c1d['execute']('footnotesStart',{'value':_0x29892b['startIndex']});}),_0x971ae7['delegate']('execute')['to'](_0x3e5f94),_0x971ae7;}({'editor':_0x26f996,'dropdownView':_0x5330eb});_0x5330eb['panelView']['children']['add'](_0x114fd9);}),_0x5330eb;};}(_0x418ee8));}['afterInit'](){const {editor:_0x37c5e7}=this,{t:t}=_0x37c5e7['locale'],_0x37aa94=_0x37c5e7['plugins']['get'](_0x1f47ce),{defaultPositions:_0x125755}=_0xe82c6c;_0x37aa94['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x37c5e7['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3267cb=>{let _0xe660a2=_0x3267cb['getFirstPosition']()?.['parent'];return _0xe660a2?.['is']('$text')&&(_0xe660a2=_0xe660a2['parent']),_0xe660a2?.['is']('element')?_0xe660a2['findAncestor'](M):null;},'positions':[_0x125755['southArrowNorth'],_0x125755['southArrowNorthMiddleWest'],_0x125755['southArrowNorthMiddleEast'],_0x125755['southArrowNorthWest'],_0x125755['southArrowNorthEast'],_0x125755['northArrowSouth'],_0x125755['northArrowSouthMiddleWest'],_0x125755['northArrowSouthMiddleEast'],_0x125755['northArrowSouthWest'],_0x125755['northArrowSouthEast'],_0x125755['viewportStickyNorth']]});}}class FootnotesProperties extends _0x15780c{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[FootnotesPropertiesEditing,FootnotesPropertiesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Footnotes,FootnotesClipboard,FootnotesEditing,FootnotesProperties,FootnotesPropertiesEditing,FootnotesPropertiesUI,FootnotesStartCommand,FootnotesStyleCommand,FootnotesTracker,FootnotesUI,InsertFootnoteCommand};
23
+ import{Plugin as _0x526a7e,Command as _0x2cbcbd}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x498a6b,isWidget as _0x435e98,toWidgetEditable as _0x5bda0a,WidgetToolbarRepository as _0x421058}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x423ffd,logWarning as _0x55d5d4,FocusTracker as _0x453b8e,KeystrokeHandler as _0x9c7ab5,global as _0x5dc83d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3ed3f0,ClickObserver as _0x162f2a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x20d80f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x25bf4c,ButtonView as _0x2bfefc,View as _0x5bf7cf,ViewCollection as _0x363257,FocusCycler as _0x23a398,addKeyboardHandlingForGrid as _0x4b355f,CollapsibleView as _0x51f6af,LabeledFieldView as _0x261559,createLabeledInputNumber as _0x4c28eb,ContextualBalloon as _0x583496,BalloonPanelView as _0x163228,createDropdown as _0x2fafb9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3a86f8,IconListStyleDecimal as _0x7859c3,IconListStyleDecimalLeadingZero as _0x164751,IconListStyleLowerRoman as _0x29f753,IconListStyleUpperRoman as _0x310be6,IconListStyleLowerLatin as _0x268bae,IconListStyleUpperLatin as _0x12bba0,IconListStyleArabicIndic as _0x43eb02}from'@ckeditor/ckeditor5-icons/dist/index.js';class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2b6131,_0x2e6684){this['_model']=_0x2b6131,this['_elementName']=_0x2e6684['elementName'],this['_getElementKey']=_0x2e6684['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x12d5bc){const _0x2625cc=new Set(),_0x4e0e8d=new Map();for(const _0x11562f of _0x12d5bc){if('insert'===_0x11562f['type']&&'$text'!==_0x11562f['name']&&_0x11562f['position']['nodeAfter']){const _0x4bb569=this['_model']['createRangeOn'](_0x11562f['position']['nodeAfter']);for(const _0x3102e3 of _0x4bb569['getItems']()){if(!_0x3102e3['is']('element',this['_elementName']))continue;const _0x3f2937=this['_getElementKey'](_0x3102e3);_0x4e0e8d['has'](_0x3f2937)||_0x4e0e8d['set'](_0x3f2937,[]),_0x4e0e8d['get'](_0x3f2937)['push'](_0x3102e3);}}if('remove'===_0x11562f['type']&&_0x11562f['name']===this['_elementName']){const _0x1a010d=this['_getElementKey']({'getAttribute':_0x1d692f=>_0x11562f['attributes']['get'](_0x1d692f)});_0x2625cc['add'](_0x1a010d);}}for(const [_0x4103d1,_0x4b1941]of this['_trackedElements'])'$graveyard'===_0x4b1941['root']['rootName']&&_0x2625cc['add'](_0x4103d1);for(const _0x5f0706 of _0x2625cc)this['_trackedElements']['delete'](_0x5f0706);for(const [_0x2da48c,_0x32a66d]of _0x4e0e8d)this['_trackedElements']['set'](_0x2da48c,_0x32a66d[_0x32a66d['length']-0x1]);const _0x326780=new Set();for(const [_0x5ca84d,_0xaa63d]of _0x4e0e8d)_0x2625cc['has'](_0x5ca84d)&&(_0x326780['add'](_0xaa63d[0x0]),_0xaa63d['length']>0x1?_0x4e0e8d['set'](_0x5ca84d,_0xaa63d['slice'](0x1)):_0x4e0e8d['delete'](_0x5ca84d),_0x2625cc['delete'](_0x5ca84d));return{'removed':Array['from'](_0x2625cc),'inserted':Array['from'](_0x4e0e8d['values']())['flat'](),'moved':Array['from'](_0x326780)};}}class FootnotesTracker extends _0x526a7e{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f303d){super(_0x4f303d),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x691f53=>_0x691f53['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5c7789=>_0x5c7789['getAttribute']('footnoteId')});}['init'](){const {editor:_0x408e0e}=this,{model:_0x538234,data:_0x4b5093}=_0x408e0e;_0x538234['document']['registerPostFixer'](_0x27a7a2=>{const _0x537796=_0x538234['document']['differ']['getChanges']();let _0x38908e=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x27a7a2,_0x537796)&&(_0x38908e=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x27a7a2,_0x537796)&&(_0x38908e=!0x0),this['_handleFootnoteReferencesChanges'](_0x27a7a2,_0x537796)&&(_0x38908e=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x27a7a2)&&(_0x38908e=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x27a7a2)&&(_0x38908e=!0x0),this['_sortFootnoteDefinitions'](_0x27a7a2)&&(_0x38908e=!0x0),_0x38908e;}),this['listenTo'](_0x538234['document'],'change:data',()=>{_0x538234['enqueueChange']({'isUndoable':!0x1},_0x20ccbc=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x20ccbc);});},{'priority':'low'}),this['listenTo'](_0x4b5093,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x277ea7){return this['_footnotes']['find'](_0x2eb96d=>_0x2eb96d['id']===_0x277ea7)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x21ef21){this['_footnoteFormatter']=_0x21ef21;}['_updateFootnotesCounters'](_0x1e7275,_0x3d5eed=0x0){let _0x331467=!0x1;for(let _0x1733bd=_0x3d5eed;_0x1733bd<this['_footnotes']['length'];_0x1733bd++)this['_updateFootnoteRefCounter'](_0x1e7275,_0x1733bd)&&(_0x331467=!0x0);return _0x331467;}['_insertEmptyFootnotesDefinitionsContainer'](_0x392fed,_0x159fb6){const _0xaf4999=_0x392fed['createElement']('footnotesDefinitions',{});return _0x392fed['append'](_0xaf4999,_0x159fb6),this['_footnotesDefinitions']=_0xaf4999,_0xaf4999;}['_ensureFootnotesDefinitionsContainerExists'](_0x958aa5){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x41559a=this['_footnotes'][0x0]['reference']['root'],_0x3abc3b=this['_insertEmptyFootnotesDefinitionsContainer'](_0x958aa5,_0x41559a);for(const _0xed5409 of this['_footnotes'])_0xed5409['definition']['parent']||_0x958aa5['insert'](_0xed5409['definition'],_0x3abc3b,'end');this['_updateFootnotesCounters'](_0x958aa5);}['_handleFootnotesDefinitionsObjectChanges'](_0xf1c053,_0x56f098){let _0x7d65b=!0x1;const {inserted:_0x1e4f05,removed:_0xd2226c,moved:_0x3f93bc}=this['_footnoteDefsContainerTracker']['getChanges'](_0x56f098);if(_0x3f93bc['length']&&(this['_footnotesDefinitions']=_0x3f93bc[0x0]),_0x1e4f05['length']){if(_0x1e4f05['length']>0x1||this['_footnotesDefinitions']&&_0x1e4f05['some'](_0x3e3e57=>_0x3e3e57!==this['_footnotesDefinitions'])){const _0x2d3278=_0xf1c053['createElement']('footnotesDefinitions',{}),_0xf6931=[];this['_footnotesDefinitions']&&_0xf6931['push'](this['_footnotesDefinitions']),_0xf6931['push'](..._0x1e4f05),_0xf1c053['insert'](_0x2d3278,_0xf6931[0x0],'before');for(const _0xa0730f of _0xf6931)_0xf1c053['move'](_0xf1c053['createRangeIn'](_0xa0730f),_0xf1c053['createPositionAt'](_0x2d3278,'end')),_0xf1c053['remove'](_0xa0730f);this['_footnotesDefinitions']=_0x2d3278,this['_updateFootnotesCounters'](_0xf1c053),_0x7d65b=!0x0;}else this['_footnotesDefinitions']=_0x1e4f05[0x0];}if(_0xd2226c['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x5b264b of this['_footnotes'])_0xf1c053['remove'](_0x5b264b['reference']),_0x7d65b=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x7d65b;}['_handleFootnoteDefinitionsChanges'](_0x552a43,_0x154a92){let _0x25c7c8=!0x1;const _0x1b6fd7=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x28ddc7,moved:_0x29a4a3}=this['_footnoteDefsTracker']['getChanges'](_0x154a92);for(const _0x44b292 of[..._0x29a4a3,..._0x28ddc7]){const _0x22d2a3=_0x44b292['getAttribute']('footnoteId'),_0x575474=this['getFootnote'](_0x22d2a3);_0x575474&&(_0x575474['definition']=_0x44b292),N(_0x552a43,_0x1b6fd7,_0x44b292)&&(_0x25c7c8=!0x0);}return _0x25c7c8;}['_handleFootnoteReferencesChanges'](_0x40c262,_0x141e2d){let _0x49368a=!0x1;const {removed:_0x4c962c,inserted:_0x462494,moved:_0x23300}=this['_footnoteRefsTracker']['getChanges'](_0x141e2d);for(const _0x322290 of _0x4c962c)this['_handleRemoveFootnoteReferenceById'](_0x40c262,_0x322290)&&(_0x49368a=!0x0);for(const _0xcf37e4 of _0x462494)this['_handleInsertedFootnoteReference'](_0x40c262,_0xcf37e4)&&(_0x49368a=!0x0);for(const _0x21287c of _0x23300)this['_handleMovedFootnoteReference'](_0x40c262,_0x21287c)&&(_0x49368a=!0x0);return _0x49368a;}['_handleFootnotesDefinitionsObjectSync'](_0x29868a){if(!this['_footnotesDefinitions'])return!0x1;let _0x186176=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2394b8=[];for(const _0xbea3d5 of this['_footnotesDefinitions']['getChildren']()){const _0x564d58=_0xbea3d5['getAttribute']('footnoteId');this['getFootnote'](_0x564d58)||(_0x2394b8['unshift'](_0xbea3d5),_0x186176=!0x0);}for(const _0xadcf24 of _0x2394b8)_0x29868a['remove'](_0xadcf24);}const _0x5aa7ff=new Set(),_0xcac6f1=[];for(const _0x3cd3fe of this['_footnotesDefinitions']['getChildren']()){const _0x4b9057=_0x3cd3fe['getAttribute']('footnoteId');_0x5aa7ff['has'](_0x4b9057)?(_0xcac6f1['unshift'](_0x3cd3fe),_0x186176=!0x0):_0x5aa7ff['add'](_0x4b9057);}for(const _0x14548a of _0xcac6f1)_0x29868a['remove'](_0x14548a);return this['_footnotesDefinitions']['childCount']||(_0x29868a['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x186176=!0x0),_0x186176;}['_handleInsertedFootnoteReference'](_0x5b14ba,_0x5b0b8c){if(this['_footnotes']['find'](_0x188c3a=>_0x188c3a['reference']===_0x5b0b8c))return!0x1;let _0x3be128=!0x1;const _0x21144a=_0x5b0b8c['getAttribute']('footnoteId'),_0x24eee2=this['_footnotes']['findIndex'](_0x4793b2=>_0x4793b2['id']===_0x21144a);-0x1!==_0x24eee2&&(_0x5b14ba['remove'](this['_footnotes'][_0x24eee2]['reference']),this['_footnotes']['splice'](_0x24eee2,0x1),_0x3be128=!0x0);let _0x10ed68=this['_footnotesDefinitions']?function(_0x4787f8,_0x1911f3){for(const _0x2d126b of _0x4787f8['getChildren']())if(_0x2d126b['getAttribute']('footnoteId')===_0x1911f3)return _0x2d126b;return null;}(this['_footnotesDefinitions'],_0x21144a):null;_0x10ed68||(_0x10ed68=_0x5b14ba['createElement']('footnoteDefinition',{'footnoteId':_0x21144a}),this['_footnotesDefinitions']&&(_0x5b14ba['insert'](_0x10ed68,this['_footnotesDefinitions'],'end'),_0x3be128=!0x0));const _0x1f2df9={'id':_0x21144a,'reference':_0x5b0b8c,'definition':_0x10ed68},_0x39652f=R(this['editor']['model'],this['_footnotes'],_0x5b0b8c);this['_footnotes']['splice'](_0x39652f,0x0,_0x1f2df9);let _0x48d429=_0x39652f;return-0x1!==_0x24eee2&&(_0x48d429=Math['min'](_0x39652f,_0x24eee2)),this['_updateFootnotesCounters'](_0x5b14ba,_0x48d429)&&(_0x3be128=!0x0),_0x3be128;}['_handleRemoveFootnoteReferenceById'](_0x419bda,_0x1b4535){const _0x2c05b1=this['_footnotes']['findIndex'](_0x5a0199=>_0x5a0199['id']===_0x1b4535);if(-0x1===_0x2c05b1)return!0x1;let _0x113194=!0x1;const _0x1158af=this['_footnotes'][_0x2c05b1];return'$graveyard'!==_0x1158af['definition']['root']['rootName']&&(_0x419bda['remove'](_0x1158af['definition']),_0x113194=!0x0),this['_footnotes']['splice'](_0x2c05b1,0x1),this['_updateFootnotesCounters'](_0x419bda,_0x2c05b1)&&(_0x113194=!0x0),_0x113194;}['_handleMovedFootnoteReference'](_0x174541,_0x473caf){const _0x3569fa=_0x473caf['getAttribute']('footnoteId'),_0x4dd315=this['_footnotes']['findIndex'](_0x182a2f=>_0x182a2f['id']===_0x3569fa),_0xfbd5d5=this['_footnotes'][_0x4dd315];let _0x1f39bf=!0x1;_0xfbd5d5['reference']=_0x473caf,this['_footnotes']['splice'](_0x4dd315,0x1);const _0x4afb01=R(this['editor']['model'],this['_footnotes'],_0x473caf);return this['_footnotes']['splice'](_0x4afb01,0x0,_0xfbd5d5),this['_updateFootnotesCounters'](_0x174541,Math['min'](_0x4dd315,_0x4afb01))&&(_0x1f39bf=!0x0),_0x1f39bf;}['_updateFootnoteRefCounter'](_0xd60410,_0x52c923){if(!this['_footnotesDefinitions'])return!0x1;const _0x5ef1fc=this['_footnotes'][_0x52c923];let _0x6bb07b;return _0x6bb07b=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5ef1fc,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x52c923+0x1}):String(_0x52c923+0x1),_0x5ef1fc['reference']['getAttribute']('footnoteCounter')!=_0x6bb07b&&(_0xd60410['setAttribute']('footnoteCounter',_0x6bb07b,_0x5ef1fc['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x26c838){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x38802d,_0x1783b6){if(_0x38802d['length']!==_0x1783b6['length'])return!0x1;for(let _0x274676=0x0;_0x274676<_0x38802d['length'];_0x274676++)if(_0x38802d[_0x274676]!==_0x1783b6[_0x274676])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x27cb63=>_0x27cb63['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x27b150=>_0x27b150['getAttribute']('footnoteId'))))return!0x1;let _0x5647ee=!0x1;for(let _0x2118d2=0x0;_0x2118d2<this['_footnotes']['length'];_0x2118d2++){const _0x4fb339=this['_footnotes'][_0x2118d2],_0x116fc8=_0x26c838['createPositionBefore'](_0x4fb339['definition']),_0x1dbd62=_0x26c838['createPositionAt'](this['_footnotesDefinitions'],_0x2118d2);_0x116fc8['isEqual'](_0x1dbd62)||(_0x26c838['move'](_0x26c838['createRangeOn'](_0x4fb339['definition']),_0x1dbd62),_0x5647ee=!0x0);}return _0x5647ee;}['_ensureFootnotesReferencesHaveProperOrder'](_0x59f945){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3635c8}=this['editor'];let _0x239fcc=!0x1;for(let _0x3d72e3=0x0;_0x3d72e3<this['_footnotes']['length']-0x1;_0x3d72e3++){const _0x2349b6=this['_footnotes'][_0x3d72e3],_0x2c8d88=this['_footnotes'][_0x3d72e3+0x1],_0x35fb76=_0x3635c8['createPositionBefore'](_0x2349b6['reference']),_0x3b96ab=_0x3635c8['createPositionBefore'](_0x2c8d88['reference']);'after'===_0x35fb76['compareWith'](_0x3b96ab)&&(this['_handleMovedFootnoteReference'](_0x59f945,_0x2349b6['reference']),_0x3d72e3=-0x1,_0x239fcc=!0x0);}return _0x239fcc;}}function N(_0x3c1f57,_0x2c4c83,_0x1a152f){if(_0x1a152f['childCount'])return!0x1;const _0x53ca9a=_0x2c4c83?'paragraph':'footnoteInlineContent';return _0x3c1f57['insert'](_0x3c1f57['createElement'](_0x53ca9a),_0x1a152f),!0x0;}function R(_0x40949a,_0x40b5e7,_0x12a91f){if(0x0===_0x40b5e7['length'])return 0x0;const _0x504611=_0x40949a['createPositionBefore'](_0x12a91f);for(let _0x49f010=0x0;_0x49f010<_0x40b5e7['length'];_0x49f010++){const _0x4e323f=_0x40b5e7[_0x49f010],_0xa8c56c=_0x40949a['createPositionBefore'](_0x4e323f['reference']);if('before'===_0x504611['compareWith'](_0xa8c56c))return _0x49f010;}const _0x4c9dfa=_0x12a91f['root'];let _0xbea53a=-0x1;for(let _0x286544=_0x40b5e7['length']-0x1;_0x286544>=0x0;_0x286544--)if(_0x40b5e7[_0x286544]['reference']['root']===_0x4c9dfa){_0xbea53a=_0x286544;break;}if(-0x1!==_0xbea53a)return _0xbea53a+0x1;const _0x10334c=_0x40949a['document']['getRootNames'](),_0x5ea99b=_0x10334c['indexOf'](_0x4c9dfa['rootName']),_0x51f523=_0x10334c[_0x5ea99b+0x1];if(_0x51f523){for(let _0x30ed92=0x0;_0x30ed92<_0x40b5e7['length'];_0x30ed92++)if(_0x40b5e7[_0x30ed92]['reference']['root']['rootName']===_0x51f523)return _0x30ed92;}return _0x40b5e7['length'];}class InsertFootnoteCommand extends _0x2cbcbd{['refresh'](){const _0x18331f=this['editor']['model']['document']['selection'],_0x5c9eaf=this['_getPositionToInsertFootnote'](_0x18331f);this['isEnabled']=!!_0x5c9eaf;}['execute'](_0x1d5364){const {editor:_0x5780c5}=this,{model:_0x321194}=_0x5780c5,{selection:_0x5b0ffb}=_0x321194['document'],_0x2355e7=this['_getPositionToInsertFootnote'](_0x5b0ffb);if(!_0x2355e7)return;const _0x2254da=_0x5780c5['plugins']['get']('FootnotesEditing'),_0x36aeed=_0x1d5364?.['footnoteId']??_0x423ffd();!function(_0x5b6359){return'string'==typeof _0x5b6359&&_0x5b6359['length']>0x0&&!/\s/['test'](_0x5b6359)&&!/^\d/['test'](_0x5b6359);}(_0x36aeed)?_0x55d5d4('insert-footnote-command-executed-with-invalid-id'):(_0x321194['change'](_0x2d1081=>{const _0x163ba6=_0x2d1081['createElement']('footnoteRef',{'footnoteId':_0x36aeed});_0x321194['insertObject'](_0x163ba6,_0x2355e7,null);}),_0x2254da['_moveSelectionToFootnoteDefinition'](_0x36aeed));}['_getPositionToInsertFootnote'](_0x1d0dc4){const {model:_0x225eb9}=this['editor'],{schema:_0x25742b}=_0x225eb9,_0x2b9d59=_0x1d0dc4['getFirstRange']();for(const _0xef4583 of _0x2b9d59['getItems']())if(_0x25742b['isBlock'](_0xef4583)||_0x25742b['isObject'](_0xef4583))return null;const _0xe1b9fb=_0x2b9d59['end'];return _0x25742b['checkChild'](_0xe1b9fb,'footnoteRef')?_0xe1b9fb:null;}}class FootnotesEditing extends _0x526a7e{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x268645}=this;_0x268645['config']['define']('footnotes.multiBlock',!0x0),_0x268645['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x268645)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x14a92a){const _0x34a0a5=_0x32ac9b([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]),_0x47d76c=0x47a28506,_0x10c2f7=0x47a50f6e^_0x47d76c,_0xdb3b9b=window[_0x32ac9b([0x44,0x61,0x74,0x65])][_0x32ac9b([0x6e,0x6f,0x77])](),_0x127aa7=_0x14a92a[_0x32ac9b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5362ee=new window[(_0x32ac9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17c797=>{_0x127aa7[_0x32ac9b([0x6f,0x6e,0x63,0x65])](_0x32ac9b([0x72,0x65,0x61,0x64,0x79]),_0x17c797);}),_0xbdc571={[_0x32ac9b([0x6b,0x74,0x79])]:_0x32ac9b([0x45,0x43]),[_0x32ac9b([0x75,0x73,0x65])]:_0x32ac9b([0x73,0x69,0x67]),[_0x32ac9b([0x63,0x72,0x76])]:_0x32ac9b([0x50,0x2d,0x32,0x35,0x36]),[_0x32ac9b([0x78])]:_0x32ac9b([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]),[_0x32ac9b([0x79])]:_0x32ac9b([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]),[_0x32ac9b([0x61,0x6c,0x67])]:_0x32ac9b([0x45,0x53,0x32,0x35,0x36])},_0x462be8=_0x127aa7[_0x32ac9b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32ac9b([0x67,0x65,0x74])](_0x32ac9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c6722(){let _0x14c30e,_0x6fed98=null,_0x3b9aec=null;try{if(_0x462be8==_0x32ac9b([0x47,0x50,0x4c]))return _0x32ac9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14c30e=_0xcd6a35(),!_0x14c30e)return _0x32ac9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14c30e[_0x32ac9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b9aec=_0x3f5e68(_0x14c30e[_0x32ac9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14c30e[_0x32ac9b([0x6a,0x74,0x69])])),await _0x473468()?_0x18da01()?_0x526fb8()?_0x32ac9b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x155a05()?(_0x14c30e[_0x32ac9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32ac9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6fed98=_0x4a0d0e(_0x32ac9b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d8d42()):_0x32ac9b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32ac9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32ac9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32ac9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x526fb8(){const _0x45ec4f=[_0x32ac9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32ac9b([0x74,0x72,0x69,0x61,0x6c])][_0x32ac9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14c30e[_0x32ac9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdb3b9b/0x3e8:0xe10*_0x10c2f7;return _0x14c30e[_0x32ac9b([0x65,0x78,0x70])]<_0x45ec4f;}function _0x18da01(){const _0x24671f=_0x14c30e[_0x32ac9b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24671f&&(!!_0x24671f[_0x32ac9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ac9b([0x2a]))||!!_0x24671f[_0x32ac9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ac9b([0x46,0x4f,0x4f])));}function _0x155a05(){const _0x14e604=_0x14c30e[_0x32ac9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14e604||0x0==_0x14e604[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33aed3}=new URL(window[_0x32ac9b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14e604[_0x32ac9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33aed3))return!0x0;const _0x550b0d=_0x33aed3[_0x32ac9b([0x73,0x70,0x6c,0x69,0x74])](_0x32ac9b([0x2e]));return _0x14e604[_0x32ac9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49e0a4=>_0x49e0a4[_0x32ac9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ac9b([0x2a])))[_0x32ac9b([0x6d,0x61,0x70])](_0x28c735=>_0x28c735[_0x32ac9b([0x73,0x70,0x6c,0x69,0x74])](_0x32ac9b([0x2e])))[_0x32ac9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x449358=>_0x449358[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x550b0d[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32ac9b([0x6d,0x61,0x70])](_0x57f950=>Array(_0x550b0d[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57f950[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32ac9b([0x66,0x69,0x6c,0x6c])](_0x57f950[0x0]===_0x32ac9b([0x2a])?_0x32ac9b([0x2a]):'')[_0x32ac9b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57f950))[_0x32ac9b([0x73,0x6f,0x6d,0x65])](_0xd9cd26=>_0x550b0d[_0x32ac9b([0x65,0x76,0x65,0x72,0x79])]((_0xf3b359,_0x263207)=>_0xd9cd26[_0x263207]===_0xf3b359||_0xd9cd26[_0x263207]===_0x32ac9b([0x2a])));}function _0x3d8d42(){return _0x6fed98&&_0x3b9aec?new window[(_0x32ac9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42fdee,_0x5036b7)=>{_0x6fed98[_0x32ac9b([0x74,0x68,0x65,0x6e])](_0x42fdee,_0x5036b7),_0x3b9aec[_0x32ac9b([0x74,0x68,0x65,0x6e])](_0x182421=>{_0x182421!=_0x32ac9b([0x56,0x61,0x6c,0x69,0x64])&&_0x42fdee(_0x182421);},_0x5036b7);}):_0x6fed98||_0x3b9aec||_0x32ac9b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f5e68(_0x173088,_0x2fbd57){return new window[(_0x32ac9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b0f25=>{if(_0x14e6d3())return _0x2b0f25(_0x32ac9b([0x56,0x61,0x6c,0x69,0x64]));_0x31ff97(),_0x127aa7[_0x32ac9b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32ac9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d2071=!0x1;const _0xb45cbf=_0x423ffd();function _0x507150(_0x281034){return!!_0x281034&&(typeof _0x281034===_0x32ac9b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x281034===_0x32ac9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x281034[_0x32ac9b([0x74,0x68,0x65,0x6e])]===_0x32ac9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x281034[_0x32ac9b([0x63,0x61,0x74,0x63,0x68])]===_0x32ac9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8e1ab5(_0x3ce4c0){_0x852210(_0x3ce4c0)[_0x32ac9b([0x74,0x68,0x65,0x6e])](_0x1fb65f=>{if(!_0x1fb65f||_0x1fb65f[_0x32ac9b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32ac9b([0x6f,0x6b]))return _0x32ac9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x446152(_0x338ae2(_0xb45cbf+_0x2fbd57))!=_0x1fb65f[_0x32ac9b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32ac9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32ac9b([0x56,0x61,0x6c,0x69,0x64]);})[_0x32ac9b([0x74,0x68,0x65,0x6e])](_0x480191=>(_0x178115(),_0x480191),()=>{const _0x479182=_0x2379a3();return null==_0x479182?(_0x178115(),_0x32ac9b([0x56,0x61,0x6c,0x69,0x64])):_0x32ac9b(_0xdb3b9b-_0x479182>(0x63ae0106^_0x47d76c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32ac9b([0x74,0x68,0x65,0x6e])](_0x2b0f25)[_0x32ac9b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b0f25(_0x32ac9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x92b74a=0x47946b86^_0x47d76c;function _0x178115(){const _0x1631b3=_0x32ac9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x446152(_0x338ae2(_0x173088)),_0x1c0dc6=_0xcddf47(_0x446152(window[_0x32ac9b([0x4d,0x61,0x74,0x68])][_0x32ac9b([0x63,0x65,0x69,0x6c])](_0xdb3b9b/_0x92b74a)));window[_0x32ac9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32ac9b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1631b3,_0x1c0dc6);}function _0x2379a3(){const _0x2b87b3=_0x32ac9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x446152(_0x338ae2(_0x173088)),_0xee43c4=window[_0x32ac9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32ac9b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b87b3);return _0xee43c4?window[_0x32ac9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcddf47(_0xee43c4),0x10)*_0x92b74a:null;}function _0x852210(_0x20c68d){return new window[(_0x32ac9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27d339,_0x2d54bf)=>{_0x20c68d[_0x32ac9b([0x74,0x68,0x65,0x6e])](_0x27d339,_0x2d54bf),window[_0x32ac9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d54bf,0x47a351c6^_0x47d76c);});}}_0x127aa7[_0x32ac9b([0x6f,0x6e])](_0x32ac9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcf913a,_0x1845c3)=>{if(_0x1845c3[0x0]!=_0x173088)return _0x2b0f25(_0x32ac9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1845c3[0x1]={..._0x1845c3[0x1],[_0x32ac9b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb45cbf};},{[_0x32ac9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32ac9b([0x68,0x69,0x67,0x68])}),_0x127aa7[_0x32ac9b([0x6f,0x6e])](_0x32ac9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a41d1=>{_0x507150(_0x2a41d1[_0x32ac9b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d2071=!0x0,_0x8e1ab5(_0x2a41d1[_0x32ac9b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32ac9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32ac9b([0x6c,0x6f,0x77])}),_0x5362ee[_0x32ac9b([0x74,0x68,0x65,0x6e])](()=>{_0x1d2071||_0x2b0f25(_0x32ac9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14e6d3(){return _0x127aa7[_0x32ac9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32ac9b([0x76,0x69,0x65,0x77])][_0x32ac9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32ac9b([0x61,0x75,0x74,0x6f]);}function _0x31ff97(){_0x127aa7[_0x32ac9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32ac9b([0x76,0x69,0x65,0x77])][_0x32ac9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32ac9b([0x61,0x75,0x74,0x6f]);}}function _0x4a0d0e(_0x30648a){const _0x32846d=[new window[(_0x32ac9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b75ab=>setTimeout(_0x3b75ab,0x47abbbca^_0x47d76c)),_0x5362ee[_0x32ac9b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32ac9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cb6e3=>{let _0x2c3410=0x0;_0x127aa7[_0x32ac9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ac9b([0x6f,0x6e])](_0x32ac9b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1576af,_0x3f0cdf)=>{_0x3f0cdf[0x0][_0x32ac9b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c3410++,_0x2c3410==(0x47a280ee^_0x47d76c)&&(_0x3cb6e3(),_0x1576af[_0x32ac9b([0x6f,0x66,0x66])]());});}))];return window[_0x32ac9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32ac9b([0x72,0x61,0x63,0x65])](_0x32846d)[_0x32ac9b([0x74,0x68,0x65,0x6e])](()=>_0x30648a);}async function _0x30ec5d(){await _0x5362ee,_0x127aa7[_0x32ac9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ac9b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5472e8,_0x127aa7[_0x32ac9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ac9b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5472e8,_0x127aa7[_0x32ac9b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32ac9b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5796db(_0x1d9510){const _0x47d97b=_0x3375fd();_0x127aa7[_0x47d97b]=_0x32ac9b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d9510,_0x1d9510!=_0x32ac9b([0x56,0x61,0x6c,0x69,0x64])&&_0x30ec5d();}function _0x3375fd(){const _0x121e23=window[_0x32ac9b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32ac9b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32ac9b([0x6e,0x6f,0x77])]())[_0x32ac9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32ac9b([0x2e]),'');let _0x5dc3e4=_0x32ac9b([0x75]);for(let _0x1ff60e=0x0;_0x1ff60e<_0x121e23[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ff60e+=0x2){let _0x22cf10=window[_0x32ac9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x121e23[_0x32ac9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ff60e,_0x1ff60e+0x2));_0x22cf10>=_0x34a0a5[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22cf10-=_0x34a0a5[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5dc3e4+=_0x34a0a5[_0x22cf10];}return _0x5dc3e4;}function _0xcd6a35(){const _0x2bf225=_0x462be8[_0x32ac9b([0x73,0x70,0x6c,0x69,0x74])](_0x32ac9b([0x2e]));if(0x3!=_0x2bf225[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xee84dc(_0x2bf225[0x1]);function _0xee84dc(_0x2a7f25){const _0x5de55c=_0x462cd7(_0x2a7f25);return _0x5de55c&&_0x3c2844()?_0x5de55c:null;function _0x3c2844(){const _0x2f6f5d=_0x5de55c[_0x32ac9b([0x6a,0x74,0x69])],_0x13665a=window[_0x32ac9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6f5d[_0x32ac9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f6f5d[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7a6d2c={..._0x5de55c,[_0x32ac9b([0x6a,0x74,0x69])]:_0x2f6f5d[_0x32ac9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f6f5d[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7a6d2c[_0x32ac9b([0x76,0x63])],_0x338ae2(_0x7a6d2c)==_0x13665a;}}}async function _0x473468(){let _0x2be47d=!0x0;try{const _0x438eef=_0x462be8[_0x32ac9b([0x73,0x70,0x6c,0x69,0x74])](_0x32ac9b([0x2e])),[_0x3b3675,_0x2be87f,_0x5224c5]=_0x438eef;return _0x9c9627(_0x3b3675),await _0x4c4bc4(_0x3b3675,_0x2be87f,_0x5224c5),_0x2be47d;}catch{return!0x1;}function _0x9c9627(_0x57689d){const _0x5ad5ac=_0x462cd7(_0x57689d);_0x5ad5ac&&_0x5ad5ac[_0x32ac9b([0x61,0x6c,0x67])]==_0x32ac9b([0x45,0x53,0x32,0x35,0x36])||(_0x2be47d=!0x1);}async function _0x4c4bc4(_0x46e79c,_0x294d43,_0x44f821){const _0xafd9bd=window[_0x32ac9b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32ac9b([0x66,0x72,0x6f,0x6d])](_0x3770b2(_0x44f821),_0x49372e=>_0x49372e[_0x32ac9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2dfda9=new window[(_0x32ac9b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32ac9b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46e79c+_0x32ac9b([0x2e])+_0x294d43),_0x4c4304=window[_0x32ac9b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32ac9b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c4304)return;const _0x3e2af4=await _0x4c4304[_0x32ac9b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32ac9b([0x6a,0x77,0x6b]),_0xbdc571,{[_0x32ac9b([0x6e,0x61,0x6d,0x65])]:_0x32ac9b([0x45,0x43,0x44,0x53,0x41]),[_0x32ac9b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32ac9b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32ac9b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c4304[_0x32ac9b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32ac9b([0x6e,0x61,0x6d,0x65])]:_0x32ac9b([0x45,0x43,0x44,0x53,0x41]),[_0x32ac9b([0x68,0x61,0x73,0x68])]:{[_0x32ac9b([0x6e,0x61,0x6d,0x65])]:_0x32ac9b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e2af4,_0xafd9bd,_0x2dfda9)||(_0x2be47d=!0x1);}}function _0x462cd7(_0x5b3058){return _0x5b3058[_0x32ac9b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32ac9b([0x65,0x79]))?JSON[_0x32ac9b([0x70,0x61,0x72,0x73,0x65])](_0x3770b2(_0x5b3058)):null;}function _0x3770b2(_0x35e448){return window[_0x32ac9b([0x61,0x74,0x6f,0x62])](_0x35e448[_0x32ac9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32ac9b([0x2b]))[_0x32ac9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32ac9b([0x2f])));}function _0x338ae2(_0x159835){let _0x29ff6a=0x1505;function _0x710b1a(_0x2f5b25){for(let _0x5d69b3=0x0;_0x5d69b3<_0x2f5b25[_0x32ac9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d69b3++){const _0x4d4777=_0x2f5b25[_0x32ac9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5d69b3);_0x29ff6a=(_0x29ff6a<<0x5)+_0x29ff6a+_0x4d4777,_0x29ff6a&=_0x29ff6a;}}function _0x4dac73(_0x2643e3){Array[_0x32ac9b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2643e3)?_0x2643e3[_0x32ac9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4dac73):_0x2643e3&&typeof _0x2643e3==_0x32ac9b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32ac9b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2643e3)[_0x32ac9b([0x73,0x6f,0x72,0x74])]()[_0x32ac9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50f3a6,_0x4e03e2])=>{_0x710b1a(_0x50f3a6),_0x4dac73(_0x4e03e2);}):_0x710b1a(window[_0x32ac9b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2643e3));}return _0x4dac73(_0x159835),_0x29ff6a>>>0x0;}function _0x446152(_0x42fbf1){return _0x42fbf1[_0x32ac9b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32ac9b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32ac9b([0x30]));}function _0xcddf47(_0x14ec8d){return _0x14ec8d[_0x32ac9b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32ac9b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32ac9b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5472e8(){}function _0x32ac9b(_0x46f8ae){return _0x46f8ae['map'](_0x42b9d5=>String['fromCharCode'](_0x42b9d5))['join']('');}_0x5796db(await _0x5c6722());}(this);}['_moveSelectionToFootnoteDefinition'](_0x49e1b5){const {plugins:_0x51a136,editing:_0x440921,model:_0x3c5dec}=this['editor'],_0x6cbfea=_0x51a136['get'](FootnotesTracker)['getFootnote'](_0x49e1b5);return!!_0x6cbfea&&(_0x3c5dec['change'](_0x599e87=>{_0x599e87['setSelection'](_0x599e87['createPositionAt'](_0x6cbfea['definition'],'end'));}),_0x440921['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5a8761){const {plugins:_0x492903,editing:_0x8fd85,model:_0x323ba8}=this['editor'],_0x516f29=_0x492903['get'](FootnotesTracker)['getFootnote'](_0x5a8761);return!!_0x516f29&&(_0x323ba8['change'](_0x229840=>{_0x229840['setSelection'](_0x516f29['reference'],'on');}),_0x8fd85['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3ef2fb}=this['editor']['model'],_0x4b167b=this['editor']['config']['get']('footnotes.multiBlock');_0x3ef2fb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3ef2fb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3ef2fb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4b167b?_0x3ef2fb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3ef2fb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3ef2fb['addChildCheck'](_0x289022=>{for(const _0x2cbd63 of _0x289022)if('footnoteDefinition'===_0x2cbd63['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xfcfab}=this,{conversion:_0x592a30,editing:_0x268b16}=_0xfcfab,{t:t}=_0xfcfab['locale'];_0x592a30['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x46f21e,{writer:_0x7edccd,consumable:_0x4eeba9})=>{const _0x42ab73=_0x46f21e['getChild'](0x0);if(!_0x42ab73||!_0x42ab73['is']('element','a'))return null;const _0x4c834b=_0x42ab73['getAttribute']('href')||'';if(!_0x4c834b['startsWith']('#'))return null;const _0x340841=_0x4c834b['replace'](/^#/,'');if(!_0x340841)return null;_0x4eeba9['consume'](_0x42ab73,{'name':!0x0,'attributes':['href']});for(const {item:_0x16e8f4}of _0x268b16['view']['createRangeIn'](_0x42ab73))_0x16e8f4['is']('$textProxy')?_0x4eeba9['consume'](_0x16e8f4['textNode'],{'name':!0x0}):_0x16e8f4['is']('element')&&_0x4eeba9['consume'](_0x16e8f4,{'name':!0x0});return _0x7edccd['createElement']('footnoteRef',{'footnoteId':_0x340841});}}),_0x592a30['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x438890,{writer:_0x549daa})=>U(_0x438890,_0x549daa)}),_0x592a30['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x17b4f8,{writer:_0x59b92f})=>{const _0xb2cc14=_0x17b4f8['getAttribute']('footnoteCounter');return _0x498a6b(U(_0x17b4f8,_0x59b92f),_0x59b92f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xb2cc14)});}});}['_defineDefinitionsConverters'](){const {editor:_0x9c5b4a}=this,{t:t}=_0x9c5b4a['locale'],{conversion:_0x3731bc}=_0x9c5b4a;_0x3731bc['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3731bc['for']('upcast')['add'](_0x183d48=>{_0x183d48['on']('element:ol',(_0x2d1b12,_0x347cb6,_0x2830e8)=>{const _0x4c89b2=_0x347cb6['viewItem'];if(!_0x4c89b2['hasClass']('footnotes-list')||!_0x347cb6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2830e8['consumable']['consume'](_0x4c89b2,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xcfcb7a,modelCursor:_0x18ec8b}=_0x2830e8['convertChildren'](_0x347cb6['viewItem'],_0x347cb6['modelCursor']);_0x347cb6['modelRange']=_0xcfcb7a,_0x347cb6['modelCursor']=_0x18ec8b;}),_0x183d48['on']('element:hr',(_0x398462,_0x3a33c5,_0x1d43fb)=>{const _0x14e17c=_0x3a33c5['viewItem'];_0x14e17c['hasClass']('footnotes-divider')&&_0x3a33c5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1d43fb['consumable']['consume'](_0x14e17c,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3731bc['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x247aa3,{writer:_0x876d8d})=>$(_0x876d8d)}),_0x3731bc['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3d2e8d,{writer:_0x30171d})=>{const _0x42f3a8=$(_0x30171d,{'data-footnotes-list-label':t('Footnotes')}),_0x34bd0d=_0x498a6b(_0x42f3a8,_0x30171d,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x30171d['setCustomProperty']('footnotesDefinitions',!0x0,_0x34bd0d),_0x34bd0d;}});}['_defineDefinitionConverters'](){const {editor:_0x574537}=this,{conversion:_0x1048e9,locale:_0x22a44f}=_0x574537,_0x410f77=_0x574537['config']['get']('footnotes.multiBlock');_0x1048e9['for']('upcast')['add'](_0x58d1a5=>{_0x58d1a5['on']('element:li',(_0x4bfd2a,_0x20e3de,_0x217638)=>{const _0x322a7c=_0x20e3de['viewItem'];if(!_0x322a7c['hasClass']('footnote-definition')||!_0x322a7c['getAttribute']('id'))return;const _0xa57693=_0x322a7c['parent'];if(!_0xa57693['is']('element','ol')||!_0xa57693['hasClass']('footnotes-list'))return;if(!_0x217638['consumable']['test'](_0x322a7c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3f52bb=_0x217638['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x322a7c['getAttribute']('id')});if(!_0x217638['safeInsert'](_0x3f52bb,_0x20e3de['modelCursor']))return;_0x217638['consumable']['consume'](_0x322a7c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1ce642=Array['from'](_0x322a7c['getChildren']())['find'](_0x2442e6=>_0x2442e6['is']('element')&&_0x2442e6['hasClass']('footnote-content'));for(const _0x58658d of _0x322a7c['getChildren']())_0x58658d['is']('element')&&(_0x217638['consumable']['consume'](_0x58658d,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x217638['consumable']['consume'](_0x58658d,{'name':!0x0,'classes':'footnote-content'}));if(_0x1ce642){if(_0x410f77)_0x217638['convertChildren'](_0x1ce642,_0x3f52bb);else{const _0x4c29ed=_0x217638['writer']['createElement']('footnoteInlineContent');_0x217638['writer']['insert'](_0x4c29ed,_0x3f52bb),_0x217638['convertChildren'](_0x1ce642,_0x4c29ed);}}_0x217638['updateConversionResult'](_0x3f52bb,_0x20e3de);});}),_0x1048e9['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x252482,{writer:_0x21e443})=>B(_0x252482,_0x21e443,_0x22a44f,{'dataPipeline':!0x0})}),_0x1048e9['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x11de38,{writer:_0x1cf37f})=>B(_0x11de38,_0x1cf37f,_0x22a44f)});}['_defineBogusParagraphConverters'](){const {editor:_0x8e494e}=this,{conversion:_0x134dfe}=_0x8e494e;_0x8e494e['config']['get']('footnotes.multiBlock')?(_0x134dfe['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':K(),'converterPriority':'high'}),_0x134dfe['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':K({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x8e494e['model']['document'],'change:data',()=>{!function(_0x22778b,_0x420f2c){const _0x6b0295=_0x22778b['document']['differ'],_0x34e8ea=new Set();for(const _0x564962 of _0x6b0295['getChanges']()){const _0x36505a='attribute'==_0x564962['type']?_0x564962['range']['start']['parent']:_0x564962['position']['parent'];_0x36505a['is']('element','footnoteDefinition')&&_0x34e8ea['add'](_0x36505a);}for(const _0x3e5fbf of _0x34e8ea['values']()){const _0xfc4721=Array['from'](_0x3e5fbf['getChildren']())['filter'](_0x21e683=>V(_0x21e683,_0x420f2c['mapper']));for(const _0x45ee23 of _0xfc4721)_0x420f2c['reconvertItem'](_0x45ee23);}}(_0x8e494e['model'],_0x8e494e['editing']);})):(_0x134dfe['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':K()}),_0x134dfe['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3e0a99,{writer:_0xb396c6})=>{const _0x3d3d74=_0xb396c6['createContainerElement']('span');return _0xb396c6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3d3d74),_0x3d3d74;}}));}['_defineKeyboardHandlers'](){const {editor:_0x58ab5e}=this,{editing:_0x4f4ad3,t:t}=_0x58ab5e,_0x47b88f=_0x58ab5e['model']['document']['selection'];_0x58ab5e['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x58ab5e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4f4ad3['view']['document'],'enter',(_0x358360,_0x3236d4)=>{const _0xd161dc=function(_0x3eaa7e){const _0x17944b=_0x3eaa7e['getSelectedElement']();if(_0x17944b?.['is']('element','footnoteRef'))return _0x17944b;return null;}(_0x47b88f);if(_0xd161dc){const _0x5287fc=_0xd161dc['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5287fc),_0x3236d4['preventDefault'](),_0x358360['stop']();}},{'context':_0x435e98});}['_defineClickHandlers'](){const {editor:_0x203aa2}=this,{editing:_0x1fb031}=_0x203aa2;_0x203aa2['editing']['view']['addObserver'](_0x3ed3f0),_0x203aa2['editing']['view']['addObserver'](_0x162f2a);let _0x1f8426=!0x1;this['listenTo'](_0x1fb031['view']['document'],'pointerdown',(_0x4f5916,_0x1e27b5)=>{const {target:_0x2e6ff7}=_0x1e27b5,_0x228c34=_0x1fb031['view']['document']['selection'];_0x1f8426=!!(_0x2e6ff7?.['is']('element','a')&&_0x2e6ff7['parent']?.['is']('element','sup')&&_0x2e6ff7['parent']['hasClass']('footnote'))&&_0x228c34['getSelectedElement']()===_0x2e6ff7['parent'];},{'priority':'high'}),this['listenTo'](_0x1fb031['view']['document'],'click',(_0x279699,_0x27d0b5)=>{const {target:_0x36d37a}=_0x27d0b5;if(!_0x36d37a?.['is']('element','a'))return;if(_0x36d37a['parent']?.['is']('element','sup')&&_0x36d37a['parent']['hasClass']('footnote')&&!_0x1f8426)return void _0x27d0b5['preventDefault']();let _0x572d8c=_0x36d37a['getAttribute']('href');if(!_0x572d8c?.['startsWith']('#'))return;_0x572d8c=_0x572d8c['slice'](0x1);let _0x3a757d=!0x1;(_0x572d8c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x572d8c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x572d8c))&&(_0x3a757d=!0x0),_0x3a757d&&(_0x27d0b5['preventDefault'](),_0x279699['stop']());},{'priority':'high','context':'$capture'});}}function K({dataPipeline:_0x32ea36}={}){return(_0x580b42,{writer:_0x596d17})=>{if(!j(_0x580b42))return null;if(!_0x32ea36)return _0x596d17['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x335e20=_0x596d17['createContainerElement']('p');return _0x596d17['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x335e20),_0x335e20;};}function j(_0x8da357){const {parent:_0x53f810}=_0x8da357;if(!_0x53f810?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x53f810['childCount'])return!0x1;for(const _0x2e5994 of _0x8da357['getAttributeKeys']())if(!_0x2e5994['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2e5994)return!0x1;return!0x0;}function V(_0x3f31d5,_0x49e907){if(!_0x3f31d5['is']('element','paragraph'))return!0x1;const _0x2f2ff0=_0x49e907['toViewElement'](_0x3f31d5);return!!_0x2f2ff0&&j(_0x3f31d5)!==_0x2f2ff0['is']('element','span');}function M(_0x767afa){return _0x435e98(_0x767afa)&&_0x767afa['is']('containerElement')&&!!_0x767afa['getCustomProperty']('footnotesDefinitions');}function $(_0x8323dd,_0x162b45={}){const _0x3552b4=_0x8323dd['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4bdffa=_0x8323dd['createContainerElement']('ol',{'class':'footnotes-list'},_0x8323dd['createSlot']());return _0x8323dd['createContainerElement']('div',{'class':'footnotes',..._0x162b45},[_0x3552b4,_0x4bdffa]);}function U(_0xe48565,_0x3eb138){const _0x39e26a=_0xe48565['getAttribute']('footnoteId'),_0x35b3e5=_0xe48565['getAttribute']('footnoteCounter'),_0x847c87=_0x3eb138['createUIElement']('a',{'href':'#'+_0x39e26a},function(_0x547eb5){const _0x267f3e=this['toDomElement'](_0x547eb5);return _0x267f3e['textContent']=_0x35b3e5,_0x267f3e;}),_0x5be8c4=_0x3eb138['createContainerElement']('sup',{'id':'ref-'+_0x39e26a,'class':'footnote'},[_0x847c87]);return _0x5be8c4['getFillerOffset']=()=>null,_0x5be8c4;}function B(_0x4b3b41,_0x3e2e80,_0x8eb72a,{dataPipeline:_0x2a12ed}={}){const {t:t}=_0x8eb72a,_0x35557d=_0x4b3b41['getAttribute']('footnoteId'),_0x308aaa=_0x3e2e80['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x35557d},function(_0x2011e7){const _0x30d80f=this['toDomElement'](_0x2011e7);return _0x30d80f['innerText']='^',_0x30d80f;}),_0x2359c3=_0x2a12ed?_0x3e2e80['createContainerElement']('div',{'class':'footnote-content'}):_0x5bda0a(_0x3e2e80['createEditableElement']('div',{'class':'footnote-content'}),_0x3e2e80,{'label':t('Footnote\x20content.')});return _0x3e2e80['insert'](_0x3e2e80['createPositionAt'](_0x2359c3,0x0),_0x3e2e80['createSlot']()),_0x3e2e80['createContainerElement']('li',{'class':'footnote-definition','id':_0x35557d},[_0x308aaa,_0x2359c3]);}class FootnotesClipboard extends _0x526a7e{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[FootnotesEditing,_0x20d80f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x313e39}=this,{plugins:_0x3cdbab,model:_0x1a4bf1}=_0x313e39,_0x6c9ee7=_0x3cdbab['get'](_0x20d80f),_0x566ca2=_0x3cdbab['get'](FootnotesTracker);this['listenTo'](_0x6c9ee7,'outputTransformation',(_0x21a6da,_0x28e113)=>{const _0x609100=H(_0x1a4bf1['createRangeIn'](_0x28e113['content']));if(!_0x609100['length'])return;const _0x971319=_0x566ca2['getFootnotes'](),_0x242f1a=_0x609100['reduce']((_0x568207,_0xb4bafe)=>{const _0x531d5c=_0x971319['find'](_0x2e5256=>_0x2e5256['id']===_0xb4bafe);if(_0x531d5c){const _0x5131d7=_0x313e39['data']['toView'](_0x531d5c['definition'],{'isClipboardPipeline':!0x0}),_0x491c67=_0x313e39['data']['htmlProcessor']['toData'](_0x5131d7);_0x568207[_0x531d5c['id']]=_0x491c67;}return _0x568207;},Object['create'](null));_0x28e113['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x242f1a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x25d2e4}=this,{model:_0x445563,plugins:_0x1fd3a7}=_0x25d2e4,{view:_0xb576cc}=_0x25d2e4['editing'],_0x392fa8=_0x1fd3a7['get'](_0x20d80f),_0x3e43da=_0x1fd3a7['get'](FootnotesTracker),_0x19911a=_0x25d2e4['config']['get']('footnotes.multiBlock');let _0x5cc3af=null;this['listenTo'](_0xb576cc['document'],'clipboardInput',(_0x25f029,_0x539b7e)=>{const _0x507a5e=_0x539b7e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5cc3af=_0x507a5e?JSON['parse'](_0x507a5e):null;}),this['listenTo'](_0x392fa8,'contentInsertion',(_0x29819b,_0x13caf6)=>{const _0x1b710b=_0x13caf6['sourceEditorId']===this['editor']['id'];_0x1b710b&&'drop'===_0x13caf6['method']||_0x445563['change'](_0x4a73b8=>{let _0x4422dd=_0x3e43da['getFootnotesDefinitionsObjectElement']();const _0x272145=!!_0x4422dd&&Array['from'](_0x445563['document']['selection']['getSelectedBlocks']())['includes'](_0x4422dd);if(!_0x5cc3af&&function(_0x4fd718){for(const {item:_0x4b9c0b}of _0x4fd718)if(_0x4b9c0b['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x445563['createRangeIn'](_0x13caf6['content']))&&(_0x5cc3af=function(_0x384a6e,_0x3f0645){const _0x4d8d4b=q(_0x384a6e,_0x3f0645);if(!_0x4d8d4b)return null;const _0x42ab10=Object['create'](null);for(const _0x1052fc of _0x4d8d4b['getChildren']())_0x1052fc['is']('element','footnoteDefinition')&&_0x1052fc['hasAttribute']('footnoteId')&&(_0x42ab10[_0x1052fc['getAttribute']('footnoteId')]=_0x384a6e['cloneElement'](_0x1052fc,!0x0));return Object['keys'](_0x42ab10)['length']?_0x42ab10:null;}(_0x4a73b8,_0x13caf6['content'])),(_0x4422dd&&!_0x272145||!_0x4422dd&&!_0x5cc3af)&&function(_0x2a003e,_0x171676){const _0x1ebd63=[];for(const {item:_0x4876a6}of _0x2a003e['createRangeIn'](_0x171676))_0x4876a6['is']('element','footnotesDefinitions')&&_0x1ebd63['push'](_0x4876a6);for(const _0x33a559 of _0x1ebd63)_0x2a003e['remove'](_0x33a559);}(_0x4a73b8,_0x13caf6['content']),!_0x5cc3af)return;const {selection:_0x362413}=_0x445563['document'],_0x329138=_0x362413['getFirstRange']()['root'];_0x4422dd&&!_0x272145||(_0x4422dd=q(_0x4a73b8,_0x13caf6['content']),_0x4422dd||=_0x3e43da['_insertEmptyFootnotesDefinitionsContainer'](_0x4a73b8,_0x329138));const _0xb683ae=Array['from'](_0x362413['getRanges']())['flatMap'](H),_0x1eee56=function(_0x1b6bd3,_0x438585,_0xe2c980){const _0x4fb4e1=Object['create'](null);for(const {item:_0x20abb5}of _0x1b6bd3['createRangeIn'](_0x438585))if(_0x20abb5['is']('element','footnoteRef')){const _0x2557d9=_0x20abb5['getAttribute']('footnoteId');if(!_0xe2c980(_0x2557d9))continue;_0x4fb4e1[_0x2557d9]||(_0x4fb4e1[_0x2557d9]=_0x423ffd()),_0x1b6bd3['setAttribute']('footnoteId',_0x4fb4e1[_0x2557d9],_0x20abb5);}return _0x4fb4e1;}(_0x4a73b8,_0x13caf6['content'],_0x2f75ed=>{if(!_0x1b710b)return!0x0;return!!_0x3e43da['getFootnote'](_0x2f75ed)&&!_0xb683ae['includes'](_0x2f75ed);});for(const [_0x475b2c,_0x572ffd]of Object['entries'](_0x5cc3af)){const _0xc819de=_0x1eee56[_0x475b2c]||_0x475b2c;let _0x2d9e1a;if('string'!=typeof _0x572ffd)_0x2d9e1a=_0x572ffd,_0xc819de!==_0x475b2c&&_0x4a73b8['setAttribute']('footnoteId',_0xc819de,_0x2d9e1a);else{_0x2d9e1a=_0x4a73b8['createElement']('footnoteDefinition',{'footnoteId':_0xc819de});const _0x2c4038=_0x25d2e4['data']['htmlProcessor']['toView'](_0x572ffd);let _0x3b95fe;if(_0x19911a)_0x3b95fe=_0x25d2e4['data']['toModel'](_0x2c4038,_0x2d9e1a);else{_0x3b95fe=_0x4a73b8['createElement']('footnoteInlineContent');const _0x2fab1d=_0x25d2e4['data']['toModel'](_0x2c4038,_0x3b95fe);_0x4a73b8['insert'](_0x2fab1d,_0x3b95fe);}_0x4a73b8['append'](_0x3b95fe,_0x2d9e1a);}_0x4a73b8['insert'](_0x2d9e1a,_0x4422dd,'end');}_0x5cc3af=null;});});}}function q(_0x10f8ee,_0x392616){for(const {item:_0x280127}of _0x10f8ee['createRangeIn'](_0x392616))if(_0x280127['is']('element','footnotesDefinitions'))return _0x280127;return null;}function H(_0x4fd3f6){const _0x33f3a2=new Set();for(const {item:_0x45e8ea}of _0x4fd3f6)_0x45e8ea['is']('element','footnoteRef')&&_0x33f3a2['add'](_0x45e8ea['getAttribute']('footnoteId'));return Array['from'](_0x33f3a2);}class FootnotesUI extends _0x526a7e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46e7cb}=this,{componentFactory:_0x2502fe}=_0x46e7cb['ui'];_0x2502fe['add']('insertFootnote',z(_0x46e7cb,_0x2bfefc)),_0x2502fe['add']('menuBar:insertFootnote',z(_0x46e7cb,_0x25bf4c)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a498e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1092d9;for(const _0x25ceef in _0x5a498e){const _0x57ff22=_0x25ceef,_0x4fddb3=_0x5a498e[_0x57ff22];if('footnotesLicenseKeyValid'==_0x4fddb3||'footnotesLicenseKeyInvalid'==_0x4fddb3||'footnotesLicenseKeyExpired'==_0x4fddb3||'footnotesLicenseKeyDomainLimit'==_0x4fddb3||'footnotesLicenseKeyNotAllowed'==_0x4fddb3||'footnotesLicenseKeyEvaluationLimit'==_0x4fddb3||'footnotesLicenseKeyUsageLimit'==_0x4fddb3){delete _0x5a498e[_0x57ff22],_0x1092d9=_0x4fddb3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1092d9&&_0x5a498e['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1092d9&&_0x5a498e['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1092d9&&_0x5a498e['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1092d9&&_0x5a498e['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1092d9&&_0x5a498e['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x1092d9&&_0x5a498e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function z(_0x417592,_0x2f2a82){const _0x1041ff=_0x417592['commands']['get']('insertFootnote');return _0x4543c9=>{const {t:t}=_0x4543c9,_0x231c66=new _0x2f2a82(_0x4543c9),_0x32122e=_0x231c66 instanceof _0x25bf4c;return _0x231c66['bind']('isEnabled')['to'](_0x1041ff,'isEnabled'),_0x231c66['set']({'label':t(_0x32122e?'Footnote':'Insert\x20footnote'),'icon':_0x3a86f8,'tooltip':!0x0}),_0x231c66['on']('execute',()=>{_0x1041ff['execute'](),_0x417592['editing']['view']['focus']();}),_0x231c66;};}class Footnotes extends _0x526a7e{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[FootnotesEditing,FootnotesClipboard,FootnotesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const X=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],J=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),G=[...X,'arabic-indic','lower-alpha','upper-alpha'];class FootnotesStyleCommand extends _0x2cbcbd{['refresh'](){const {editor:_0x445308}=this,_0x82dbe5=_0x445308['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x82dbe5,this['value']=_0x82dbe5?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xd88249}){const {editor:_0x2c7474}=this,_0x171805=_0x2c7474['plugins']['get'](FootnotesTracker),_0x4bf144=_0x171805['getFootnotesDefinitionsObjectElement']();_0x4bf144&&G['includes'](_0xd88249)&&_0x2c7474['model']['change'](_0x4db9e1=>{_0x4db9e1['setAttribute']('footnotesListStyle',_0xd88249,_0x4bf144),_0x171805['_updateFootnotesCounters'](_0x4db9e1);});}}class FootnotesStartCommand extends _0x2cbcbd{['refresh'](){const {editor:_0x376b5e}=this,_0x42d97f=_0x376b5e['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x42d97f,this['value']=_0x42d97f?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1ff857}){const {editor:_0x408ca7}=this,_0x307850=_0x408ca7['plugins']['get'](FootnotesTracker),_0x44a557=_0x307850['getFootnotesDefinitionsObjectElement']();_0x44a557&&Number['isInteger'](_0x1ff857)&&_0x408ca7['model']['change'](_0x490bb3=>{_0x490bb3['setAttribute']('footnotesListStart',_0x1ff857,_0x44a557),_0x307850['_updateFootnotesCounters'](_0x490bb3);});}}function Q(_0xaa86e2,_0x3a0daa){let _0x120ea4='',_0x318b65=_0xaa86e2;for(;_0x318b65>0x0;){const _0xa55446=(_0x318b65-0x1)%0x1a;_0x120ea4=String['fromCharCode'](0x61+_0xa55446)+_0x120ea4,_0x318b65=Math['floor']((_0x318b65-0x1)/0x1a);}return _0x3a0daa?_0x120ea4['toUpperCase']():_0x120ea4;}const W=[{'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 Y(_0x246362,_0x450424){let _0x3e0a2d='',_0x4f052f=_0x246362;for(const {value:_0x188b07,numeral:_0x591571}of W)for(;_0x4f052f>=_0x188b07;)_0x3e0a2d+=_0x591571,_0x4f052f-=_0x188b07;return _0x450424?_0x3e0a2d:_0x3e0a2d['toLowerCase']();}const Z=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class FootnotesPropertiesEditing extends _0x526a7e{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[FootnotesEditing,FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58bc04}=this;_0x58bc04['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x58bc04['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x58bc04['config']['define']('footnotes.footnotesProperties.listStyles',[...X]),_0x58bc04['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x58bc04)),_0x58bc04['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x58bc04)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2925e4}=this,{schema:_0x4f57c8}=_0x2925e4['model'];_0x4f57c8['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x250b34}=this,{conversion:_0x18e26a,model:_0x34051d}=_0x250b34,{schema:_0x1d57b0}=_0x34051d;_0x18e26a['for']('upcast')['add'](_0x3045d1=>{_0x3045d1['on']('element:ol',(_0x5c3f40,_0x194147,_0x15403f)=>{const _0x57b169=_0x194147['viewItem'],_0x40682c=_0x194147['modelCursor']?.['parent'];_0x57b169['hasClass']('footnotes-list')&&_0x40682c?.['is']('element','footnotesDefinitions')&&(function(_0x1b7f74,_0x239b7b,_0x4a2088,_0x5c031c){if(!_0x5c031c['checkAttribute'](_0x239b7b,'footnotesListStart'))return;let _0x55a782=0x1;const _0x1ad6d4=_0x4a2088['consumable']['consume'](_0x1b7f74,{'attributes':'start'});if(_0x1ad6d4){const _0x4d2107=Number['parseInt'](_0x1b7f74['getAttribute']('start'),0xa);Number['isNaN'](_0x4d2107)||(_0x55a782=_0x4d2107);}!_0x1ad6d4&&_0x239b7b['hasAttribute']('footnotesListStart')||_0x4a2088['writer']['setAttribute']('footnotesListStart',_0x55a782,_0x239b7b);}(_0x57b169,_0x40682c,_0x15403f,_0x1d57b0),function(_0x2ad099,_0x55fdda,_0x303370,_0x246b90){if(!_0x246b90['checkAttribute'](_0x55fdda,'footnotesListStyle'))return;let _0x2ed413='decimal',_0x1b40fc=!0x1;if(_0x303370['consumable']['consume'](_0x2ad099,{'attributes':'type'})){const _0xf9342e={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x2ad099['getAttribute']('type')];_0xf9342e&&(_0x2ed413=_0xf9342e),_0x1b40fc=!0x0;}if(_0x303370['consumable']['consume'](_0x2ad099,{'styles':'list-style-type'})){const _0x11f4cf=tt(_0x2ad099['getStyle']('list-style-type'));_0x11f4cf&&(_0x2ed413=_0x11f4cf),_0x1b40fc=!0x0;}!_0x1b40fc&&_0x55fdda['hasAttribute']('footnotesListStyle')||_0x303370['writer']['setAttribute']('footnotesListStyle',_0x2ed413,_0x55fdda);}(_0x57b169,_0x40682c,_0x15403f,_0x1d57b0));});}),_0x18e26a['for']('downcast')['add'](_0xed66de=>{_0xed66de['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xc99100,_0x486748,_0x1eab6c)=>{if(!_0x1eab6c['consumable']['consume'](_0x486748['item'],_0xc99100['name']))return;const _0x446497=et(_0x486748['item'],_0x1eab6c['mapper']),{attributeNewValue:_0xca7c8e}=_0x486748;null==_0xca7c8e||0x1===_0xca7c8e?_0x1eab6c['writer']['removeAttribute']('start',_0x446497):_0x1eab6c['writer']['setAttribute']('start',String(_0xca7c8e),_0x446497);}),_0xed66de['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x558576,_0x51297a,_0x7fad1)=>{if(!_0x7fad1['consumable']['consume'](_0x51297a['item'],_0x558576['name']))return;const _0x341fb1=et(_0x51297a['item'],_0x7fad1['mapper']),{attributeNewValue:_0x5139c6}=_0x51297a;_0x5139c6&&'decimal'!==_0x5139c6?_0x7fad1['writer']['setStyle']('list-style-type',_0x5139c6,_0x341fb1):_0x7fad1['writer']['removeStyle']('list-style-type',_0x341fb1);});});}['_definePostfixer'](){const {editor:_0x4828ed}=this,{model:_0xc14fe9}=_0x4828ed,_0x411ee0=_0x4828ed['plugins']['get'](FootnotesTracker),_0x1b7c89=this['_getDefaultListStyle'](),_0x5c779e=this['_getDefaultStartIndex']();_0xc14fe9['document']['registerPostFixer'](_0x4ba6ac=>{const _0x1e4347=_0xc14fe9['document']['differ']['getChanges']();let _0x2f4853=!0x1;for(const _0x4d248f of _0x1e4347){if('insert'!==_0x4d248f['type']||'$text'===_0x4d248f['name'])continue;const _0x4a8351=_0xc14fe9['createRangeOn'](_0x4d248f['position']['nodeAfter']);for(const _0x3ccc0c of _0x4a8351['getItems']())_0x3ccc0c['is']('element','footnotesDefinitions')&&(!_0x3ccc0c['hasAttribute']('footnotesListStart')&&_0xc14fe9['schema']['checkAttribute'](_0x3ccc0c,'footnotesListStart')&&(_0x4ba6ac['setAttribute']('footnotesListStart',_0x5c779e,_0x3ccc0c),_0x2f4853=!0x0),!_0x3ccc0c['hasAttribute']('footnotesListStyle')&&_0xc14fe9['schema']['checkAttribute'](_0x3ccc0c,'footnotesListStyle')&&(_0x4ba6ac['setAttribute']('footnotesListStyle',_0x1b7c89,_0x3ccc0c),_0x2f4853=!0x0));}return _0x2f4853&&_0x411ee0['_updateFootnotesCounters'](_0x4ba6ac),_0x2f4853;});}['_defineFormatter'](){const {editor:_0x498f6d}=this;_0x498f6d['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x3f8aec=>this['_formatFootnoteListValue'](_0x3f8aec));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x194608,value:_0x400b54,digits:_0x49d604}){const _0x4cd4db=_0x194608['getAttribute']('footnotesListStyle'),_0x2e45f1=_0x194608['getAttribute']('footnotesListStart'),_0x4f7d44=Math['floor'](_0x400b54)+(_0x2e45f1??0x1)-0x1;switch(_0x4cd4db){case'decimal-leading-zero':return function(_0x19e743,_0x1c675b){return String(_0x19e743)['padStart'](_0x1c675b,'0');}(_0x4f7d44,Math['max'](0x2,_0x49d604));case'lower-alpha':case'lower-latin':return Q(_0x4f7d44,!0x1);case'upper-alpha':case'upper-latin':return Q(_0x4f7d44,!0x0);case'lower-roman':return Y(_0x4f7d44,!0x1);case'upper-roman':return Y(_0x4f7d44,!0x0);case'arabic-indic':return String(_0x4f7d44)['replace'](/\d/g,_0xdd0477=>Z[Number(_0xdd0477)]);default:return String(_0x4f7d44);}}}function tt(_0x1f8cfb){if('string'==typeof _0x1f8cfb){const _0x4feda1=J[_0x1f8cfb];if(_0x4feda1)return _0x4feda1;if(G['includes'](_0x1f8cfb))return _0x1f8cfb;}return null;}function et(_0x21df43,_0x38dd60){const _0x1afc06=_0x38dd60['toViewElement'](_0x21df43);return Array['from'](_0x1afc06['getChildren']())['find'](_0x29dc16=>_0x29dc16['is']('element','ol')&&_0x29dc16['hasClass']('footnotes-list'));}class FootnotesDefinitionsPropertiesView extends _0x5bf7cf{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x453b8e();['keystrokes']=new _0x9c7ab5();['focusables']=new _0x363257();['focusCycler'];constructor(_0x231e4b,{styleButtonViews:_0x41261c,styleGridAriaLabel:_0x336e3d}){super(_0x231e4b),(this['focusCycler']=new _0x23a398({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x41261c,_0x336e3d),[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 _0x4689b7 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4689b7['element']);_0x4b355f({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x5dc83d['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 _0x111e0f=_0x28d0be=>_0x28d0be['stopPropagation']();this['keystrokes']['set']('arrowright',_0x111e0f),this['keystrokes']['set']('arrowleft',_0x111e0f),this['keystrokes']['set']('arrowup',_0x111e0f),this['keystrokes']['set']('arrowdown',_0x111e0f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x387809,_0x1640d5){const _0x20a514=new _0x5bf7cf(this['locale']);return _0x20a514['children']=_0x20a514['createCollection'](),_0x20a514['children']['addMany'](_0x387809),_0x20a514['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1640d5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x20a514['children']}),_0x20a514['children']['delegate']('execute')['to'](this),_0x20a514['focus']=function(){for(const _0x329bdf of this['children'])if(_0x329bdf instanceof _0x2bfefc&&_0x329bdf['isOn'])return void _0x329bdf['focus']();this['children']['first']['focus']();},_0x20a514['focusTracker']=new _0x453b8e(),_0x20a514['keystrokes']=new _0x9c7ab5(),_0x20a514['render'](),_0x20a514['keystrokes']['listenTo'](_0x20a514['element']),this['children']['add'](_0x20a514),_0x20a514;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3a4a97=this['_createStartIndexPropertyView'](),_0x4fa810=[_0x3a4a97],_0x1ff119=new _0x51f6af(this['locale'],_0x4fa810);return _0x1ff119['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1ff119['buttonView']['bind']('isEnabled')['toMany'](_0x4fa810,'isEnabled',(..._0x27527b)=>_0x27527b['some'](_0x55aa9e=>_0x55aa9e)),_0x1ff119['buttonView']['on']('change:isEnabled',(_0x5b5d9d,_0x1f34b9,_0x566db8)=>{_0x566db8||(_0x1ff119['isCollapsed']=!0x0);}),this['children']['add'](_0x1ff119),[_0x3a4a97,_0x1ff119];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x50b114=new _0x261559(this['locale'],_0x4c28eb);return _0x50b114['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x50b114['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x50b114['fieldView']['on']('input',()=>{const _0x53df00=_0x50b114['fieldView']['element'],_0x4db58e=_0x53df00['valueAsNumber'];Number['isNaN'](_0x4db58e)?_0x50b114['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x53df00['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4db58e}):_0x50b114['errorText']=t(_0x4db58e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x50b114;}}class FootnotesPropertiesUI extends _0x526a7e{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x583496,_0x421058];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3045b3}=this,{componentFactory:_0x30dd8c}=_0x3045b3['ui'];_0x3045b3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x30dd8c['add']('footnotesStyle',function(_0x395d9e){return _0x4e6219=>{const {t:t}=_0x4e6219,_0x196da9=_0x395d9e['commands']['get']('footnotesStyle'),_0x4038e8=_0x2fafb9(_0x4e6219),{buttonView:_0xcea347}=_0x4038e8;return _0x4038e8['class']='ck-footnotes-styles-dropdown',_0x4038e8['bind']('isEnabled')['to'](_0x196da9,'isEnabled'),_0xcea347['set']({'label':t('Footnotes\x20style'),'icon':_0x3a86f8,'tooltip':!0x0}),_0x4038e8['once']('change:isOpen',()=>{const _0x167048=function({editor:_0x2264b6,dropdownView:_0x553ba4}){const {t:t}=_0x2264b6['locale'],_0x26636c=t('Footnotes\x20definitions\x20styles'),_0x5c3bab=function(_0x5456e1){const {t:t}=_0x5456e1['locale'],_0x5def17=_0x5456e1['config']['get']('footnotes.footnotesProperties.listStyles'),_0x1380e8=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x7859c3},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x164751},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x29f753},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x310be6},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x268bae},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x12bba0},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x43eb02}];return _0x5def17['map'](_0x12e3b0=>{const _0x45ce66=tt(_0x12e3b0),_0x28bc31=_0x1380e8['find'](_0x2fe882=>_0x2fe882['style']===_0x45ce66);return function(_0x27060d,_0x89fd64){const {locale:_0x4e5545}=_0x27060d,{label:_0x5a0911,icon:_0x1671f8,tooltip:_0x47370b,style:_0x3bb688}=_0x89fd64,_0x25c964=_0x27060d['commands']['get']('footnotesStyle'),_0x2e01b2=new _0x2bfefc(_0x4e5545);return _0x2e01b2['set']({'label':_0x5a0911,'icon':_0x1671f8,'tooltip':_0x47370b}),_0x2e01b2['bind']('isOn')['to'](_0x25c964,'value',_0x39c733=>_0x39c733===_0x3bb688),_0x2e01b2['bind']('isEnabled')['to'](_0x25c964,'isEnabled'),_0x2e01b2['on']('execute',()=>{_0x27060d['execute']('footnotesStyle',{'value':_0x3bb688}),_0x27060d['editing']['view']['focus']();}),_0x2e01b2;}(_0x5456e1,_0x28bc31);});}(_0x2264b6),_0x3abd5c=new FootnotesDefinitionsPropertiesView(_0x2264b6['locale'],{'styleGridAriaLabel':_0x26636c,'styleButtonViews':_0x5c3bab}),_0x40c163=_0x2264b6['commands']['get']('footnotesStart');return _0x3abd5c['startIndexFieldView']['bind']('isEnabled')['to'](_0x40c163),_0x3abd5c['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x40c163),_0x3abd5c['on']('footnotesListStart',(_0x541295,_0x40b555)=>{_0x2264b6['execute']('footnotesStart',{'value':_0x40b555['startIndex']});}),_0x3abd5c['delegate']('execute')['to'](_0x553ba4),_0x3abd5c;}({'editor':_0x395d9e,'dropdownView':_0x4038e8});_0x4038e8['panelView']['children']['add'](_0x167048);}),_0x4038e8;};}(_0x3045b3));}['afterInit'](){const {editor:_0x5c2dfa}=this,{t:t}=_0x5c2dfa['locale'],_0x198573=_0x5c2dfa['plugins']['get'](_0x421058),{defaultPositions:_0x35b4d5}=_0x163228;_0x198573['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5c2dfa['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3e3c7b=>{let _0x558ecb=_0x3e3c7b['getFirstPosition']()?.['parent'];return _0x558ecb?.['is']('$text')&&(_0x558ecb=_0x558ecb['parent']),_0x558ecb?.['is']('element')?_0x558ecb['findAncestor'](M):null;},'positions':[_0x35b4d5['southArrowNorth'],_0x35b4d5['southArrowNorthMiddleWest'],_0x35b4d5['southArrowNorthMiddleEast'],_0x35b4d5['southArrowNorthWest'],_0x35b4d5['southArrowNorthEast'],_0x35b4d5['northArrowSouth'],_0x35b4d5['northArrowSouthMiddleWest'],_0x35b4d5['northArrowSouthMiddleEast'],_0x35b4d5['northArrowSouthWest'],_0x35b4d5['northArrowSouthEast'],_0x35b4d5['viewportStickyNorth']]});}}class FootnotesProperties extends _0x526a7e{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[FootnotesPropertiesEditing,FootnotesPropertiesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Footnotes,FootnotesClipboard,FootnotesEditing,FootnotesProperties,FootnotesPropertiesEditing,FootnotesPropertiesUI,FootnotesStartCommand,FootnotesStyleCommand,FootnotesTracker,FootnotesUI,InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "48.8.1-alpha.1",
3
+ "version": "48.8.1-alpha.3",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,14 +32,14 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-clipboard": "48.8.1-alpha.1",
36
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.1",
37
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
38
- "@ckeditor/ckeditor5-enter": "48.8.1-alpha.1",
39
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
40
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
41
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1",
42
- "@ckeditor/ckeditor5-widget": "48.8.1-alpha.1"
35
+ "@ckeditor/ckeditor5-clipboard": "48.8.1-alpha.3",
36
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
37
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
38
+ "@ckeditor/ckeditor5-enter": "48.8.1-alpha.3",
39
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
40
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
41
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3",
42
+ "@ckeditor/ckeditor5-widget": "48.8.1-alpha.3"
43
43
  },
44
44
  "files": [
45
45
  "dist",