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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xcc0738,Command as _0x104980}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x12581d,isWidget as _0x538e41,toWidgetEditable as _0x48b5a2,WidgetToolbarRepository as _0x977e7b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1b4619,logWarning as _0x4c912b,FocusTracker as it,KeystrokeHandler as et,global as ot}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1503ae,ClickObserver as _0x200a6c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x34503d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4eb716,ButtonView as _0x971ec9,View as _0x36d614,ViewCollection as _0x47cf48,FocusCycler as _0xb9fae3,addKeyboardHandlingForGrid as _0x501bab,CollapsibleView as _0x35d441,LabeledFieldView as tt,createLabeledInputNumber as st,ContextualBalloon as _0x40f7f6,BalloonPanelView as _0x155de3,createDropdown as _0x152c50}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x47e64d,IconListStyleDecimal as _0x1d3c2d,IconListStyleDecimalLeadingZero as _0x2520ad,IconListStyleLowerRoman as _0x50a347,IconListStyleUpperRoman as _0x2bd9fb,IconListStyleLowerLatin as _0xa2229c,IconListStyleUpperLatin as _0x39c8f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x10cb5b,_0xe697e4){this['_model']=_0x10cb5b,this['_elementName']=_0xe697e4['elementName'],this['_getElementKey']=_0xe697e4['getElementKey'];}['getChanges'](_0x31dec0){const _0x29f1a9=new Set(),_0x545258=new Map();for(const _0x173c7d of _0x31dec0){if('insert'===_0x173c7d['type']&&'$text'!==_0x173c7d['name']&&_0x173c7d['position']['nodeAfter']){const _0x593aac=this['_model']['createRangeOn'](_0x173c7d['position']['nodeAfter']);for(const _0x581184 of _0x593aac['getItems']()){if(!_0x581184['is']('element',this['_elementName']))continue;const _0x3977a1=this['_getElementKey'](_0x581184);_0x545258['has'](_0x3977a1)||_0x545258['set'](_0x3977a1,[]),_0x545258['get'](_0x3977a1)['push'](_0x581184);}}if('remove'===_0x173c7d['type']&&_0x173c7d['name']===this['_elementName']){const _0x4357d9=this['_getElementKey']({'getAttribute':_0x3e0747=>_0x173c7d['attributes']['get'](_0x3e0747)});_0x29f1a9['add'](_0x4357d9);}}for(const [_0x1ae088,_0x28d20e]of this['_trackedElements'])'$graveyard'===_0x28d20e['root']['rootName']&&_0x29f1a9['add'](_0x1ae088);for(const _0x4db99d of _0x29f1a9)this['_trackedElements']['delete'](_0x4db99d);for(const [_0x5daaea,_0x398b56]of _0x545258)this['_trackedElements']['set'](_0x5daaea,_0x398b56[_0x398b56['length']-0x1]);const _0x34b471=new Set();for(const [_0x635055,_0x29845f]of _0x545258)_0x29f1a9['has'](_0x635055)&&(_0x34b471['add'](_0x29845f[0x0]),_0x29845f['length']>0x1?_0x545258['set'](_0x635055,_0x29845f['slice'](0x1)):_0x545258['delete'](_0x635055),_0x29f1a9['delete'](_0x635055));return{'removed':Array['from'](_0x29f1a9),'inserted':Array['from'](_0x545258['values']())['flat'](),'moved':Array['from'](_0x34b471)};}}class c extends _0xcc0738{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58ac5c){super(_0x58ac5c),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x18a9b3=>_0x18a9b3['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2baa72=>_0x2baa72['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5b56b5}=this,{model:_0x1f25fe}=_0x5b56b5;_0x1f25fe['document']['registerPostFixer'](_0x5a2b45=>{const _0x253d9e=_0x1f25fe['document']['differ']['getChanges']();let _0xb1bbd2=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5a2b45,_0x253d9e)&&(_0xb1bbd2=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5a2b45,_0x253d9e)&&(_0xb1bbd2=!0x0),this['_handleFootnoteReferencesChanges'](_0x5a2b45,_0x253d9e)&&(_0xb1bbd2=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5a2b45)&&(_0xb1bbd2=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5a2b45)&&(_0xb1bbd2=!0x0),this['_sortFootnoteDefinitions'](_0x5a2b45)&&(_0xb1bbd2=!0x0),_0xb1bbd2;}),this['listenTo'](_0x1f25fe['document'],'change:data',()=>{_0x1f25fe['enqueueChange']({'isUndoable':!0x1},_0x5b372c=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x5b372c);});},{'priority':'low'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x452f44){return this['_footnotes']['find'](_0x14b21b=>_0x14b21b['id']===_0x452f44)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x53f4a5){this['_footnoteFormatter']=_0x53f4a5;}['_updateFootnotesCounters'](_0x146a24,_0x5e0b1d=0x0){let _0x5ca91f=!0x1;for(let _0x389a5d=_0x5e0b1d;_0x389a5d<this['_footnotes']['length'];_0x389a5d++)this['_updateFootnoteRefCounter'](_0x146a24,_0x389a5d)&&(_0x5ca91f=!0x0);return _0x5ca91f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2af68b,_0x45f490){const _0x3f5f90=_0x2af68b['createElement']('footnotesDefinitions',{});return _0x2af68b['append'](_0x3f5f90,_0x45f490),this['_footnotesDefinitions']=_0x3f5f90,_0x3f5f90;}['_ensureFootnotesDefinitionsContainerExists'](_0x4dd487){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4a2083=this['_footnotes'][0x0]['reference']['root'],_0x1b1e31=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4dd487,_0x4a2083);for(const _0x44228a of this['_footnotes'])_0x44228a['definition']['parent']||_0x4dd487['insert'](_0x44228a['definition'],_0x1b1e31,'end');this['_updateFootnotesCounters'](_0x4dd487);}['_handleFootnotesDefinitionsObjectChanges'](_0xa1e110,_0x6644de){let _0x4dafce=!0x1;const {inserted:_0x4b8cd3,removed:_0x2a5497,moved:_0x953663}=this['_footnoteDefsContainerTracker']['getChanges'](_0x6644de);if(_0x953663['length']&&(this['_footnotesDefinitions']=_0x953663[0x0]),_0x4b8cd3['length']){if(_0x4b8cd3['length']>0x1||this['_footnotesDefinitions']&&_0x4b8cd3['some'](_0x5117de=>_0x5117de!==this['_footnotesDefinitions'])){const _0x378520=_0xa1e110['createElement']('footnotesDefinitions',{}),_0x3bd2e7=[];this['_footnotesDefinitions']&&_0x3bd2e7['push'](this['_footnotesDefinitions']),_0x3bd2e7['push'](..._0x4b8cd3),_0xa1e110['insert'](_0x378520,_0x3bd2e7[0x0],'before');for(const _0x2658fb of _0x3bd2e7)_0xa1e110['move'](_0xa1e110['createRangeIn'](_0x2658fb),_0xa1e110['createPositionAt'](_0x378520,'end')),_0xa1e110['remove'](_0x2658fb);this['_footnotesDefinitions']=_0x378520,this['_updateFootnotesCounters'](_0xa1e110),_0x4dafce=!0x0;}else this['_footnotesDefinitions']=_0x4b8cd3[0x0];}if(_0x2a5497['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x46e15d of this['_footnotes'])_0xa1e110['remove'](_0x46e15d['reference']),_0x4dafce=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4dafce;}['_handleFootnoteDefinitionsChanges'](_0x68fe8a,_0x15bbf5){let _0x22172b=!0x1;const _0x78ece1=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x1fc42d,moved:_0x5c9653}=this['_footnoteDefsTracker']['getChanges'](_0x15bbf5);for(const _0x942fd7 of[..._0x5c9653,..._0x1fc42d]){const _0x4c4a70=_0x942fd7['getAttribute']('footnoteId'),_0x55aa9a=this['getFootnote'](_0x4c4a70);_0x55aa9a&&(_0x55aa9a['definition']=_0x942fd7),_(_0x68fe8a,_0x78ece1,_0x942fd7)&&(_0x22172b=!0x0);}return _0x22172b;}['_handleFootnoteReferencesChanges'](_0x2961e1,_0x5334a9){let _0x1bc712=!0x1;const {removed:_0x1cc0de,inserted:_0x23d845,moved:_0x2f935f}=this['_footnoteRefsTracker']['getChanges'](_0x5334a9);for(const _0x36cb24 of _0x1cc0de)this['_handleRemoveFootnoteReferenceById'](_0x2961e1,_0x36cb24)&&(_0x1bc712=!0x0);for(const _0x1159a0 of _0x23d845)this['_handleInsertedFootnoteReference'](_0x2961e1,_0x1159a0)&&(_0x1bc712=!0x0);for(const _0x1138a6 of _0x2f935f)this['_handleMovedFootnoteReference'](_0x2961e1,_0x1138a6)&&(_0x1bc712=!0x0);return _0x1bc712;}['_handleFootnotesDefinitionsObjectSync'](_0x739367){if(!this['_footnotesDefinitions'])return!0x1;let _0x15371b=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x8ebfcc=[];for(const _0x54aebd of this['_footnotesDefinitions']['getChildren']()){const _0x4c1625=_0x54aebd['getAttribute']('footnoteId');this['getFootnote'](_0x4c1625)||(_0x8ebfcc['unshift'](_0x54aebd),_0x15371b=!0x0);}for(const _0x17e74d of _0x8ebfcc)_0x739367['remove'](_0x17e74d);}const _0x182733=new Set(),_0xa1c402=[];for(const _0x3e3588 of this['_footnotesDefinitions']['getChildren']()){const _0x39c6cd=_0x3e3588['getAttribute']('footnoteId');_0x182733['has'](_0x39c6cd)?(_0xa1c402['unshift'](_0x3e3588),_0x15371b=!0x0):_0x182733['add'](_0x39c6cd);}for(const _0x42e442 of _0xa1c402)_0x739367['remove'](_0x42e442);return this['_footnotesDefinitions']['childCount']||(_0x739367['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x15371b=!0x0),_0x15371b;}['_handleInsertedFootnoteReference'](_0x3c9b83,_0x1c6a81){if(this['_footnotes']['find'](_0x494208=>_0x494208['reference']===_0x1c6a81))return!0x1;let _0x50b8b2=!0x1;const _0xa98778=_0x1c6a81['getAttribute']('footnoteId'),_0x5a1534=this['getFootnote'](_0xa98778);_0x5a1534&&(_0x3c9b83['remove'](_0x5a1534['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x446d67=>_0x446d67['id']!==_0xa98778),_0x50b8b2=!0x0);let _0x26de2a=this['_footnotesDefinitions']?function(_0x57170f,_0x52efa9){for(const _0x4b6820 of _0x57170f['getChildren']())if(_0x4b6820['getAttribute']('footnoteId')===_0x52efa9)return _0x4b6820;return null;}(this['_footnotesDefinitions'],_0xa98778):null;_0x26de2a||(_0x26de2a=_0x3c9b83['createElement']('footnoteDefinition',{'footnoteId':_0xa98778}),this['_footnotesDefinitions']&&(_0x3c9b83['insert'](_0x26de2a,this['_footnotesDefinitions'],'end'),_0x50b8b2=!0x0));const _0x5e047a={'id':_0xa98778,'reference':_0x1c6a81,'definition':_0x26de2a},_0x1f840a=I(this['editor']['model'],this['_footnotes'],_0x1c6a81);return this['_footnotes']['splice'](_0x1f840a,0x0,_0x5e047a),this['_updateFootnotesCounters'](_0x3c9b83,_0x1f840a)&&(_0x50b8b2=!0x0),_0x50b8b2;}['_handleRemoveFootnoteReferenceById'](_0x3152dd,_0x5a6cb2){const _0x47779c=this['_footnotes']['findIndex'](_0x950498=>_0x950498['id']===_0x5a6cb2);if(-0x1===_0x47779c)return!0x1;let _0x2da3c7=!0x1;const _0x14339f=this['_footnotes'][_0x47779c];return'$graveyard'!==_0x14339f['definition']['root']['rootName']&&(_0x3152dd['remove'](_0x14339f['definition']),_0x2da3c7=!0x0),this['_footnotes']['splice'](_0x47779c,0x1),this['_updateFootnotesCounters'](_0x3152dd,_0x47779c)&&(_0x2da3c7=!0x0),_0x2da3c7;}['_handleMovedFootnoteReference'](_0x3868df,_0x2ad6e9){const _0x261fb4=_0x2ad6e9['getAttribute']('footnoteId'),_0x3eb378=this['_footnotes']['findIndex'](_0x4e1d73=>_0x4e1d73['id']===_0x261fb4),_0x2eb0cc=this['_footnotes'][_0x3eb378];let _0x4179fe=!0x1;_0x2eb0cc['reference']=_0x2ad6e9,this['_footnotes']['splice'](_0x3eb378,0x1);const _0x5aface=I(this['editor']['model'],this['_footnotes'],_0x2ad6e9);return this['_footnotes']['splice'](_0x5aface,0x0,_0x2eb0cc),this['_updateFootnotesCounters'](_0x3868df,Math['min'](_0x3eb378,_0x5aface))&&(_0x4179fe=!0x0),_0x4179fe;}['_updateFootnoteRefCounter'](_0xd1a20c,_0x153664){if(!this['_footnotesDefinitions'])return!0x1;const _0x298e10=this['_footnotes'][_0x153664];let _0x701d3c;return _0x701d3c=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x298e10,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x153664+0x1}):String(_0x153664+0x1),_0x298e10['reference']['getAttribute']('footnoteCounter')!=_0x701d3c&&(_0xd1a20c['setAttribute']('footnoteCounter',_0x701d3c,_0x298e10['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x370b5a){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3721c8,_0x38d0ff){if(_0x3721c8['length']!==_0x38d0ff['length'])return!0x1;for(let _0x2d3bcb=0x0;_0x2d3bcb<_0x3721c8['length'];_0x2d3bcb++)if(_0x3721c8[_0x2d3bcb]!==_0x38d0ff[_0x2d3bcb])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2a138d=>_0x2a138d['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x39328e=>_0x39328e['getAttribute']('footnoteId'))))return!0x1;let _0x5a1e44=!0x1;for(let _0x407552=0x0;_0x407552<this['_footnotes']['length'];_0x407552++){const _0x313606=this['_footnotes'][_0x407552],_0x2ffc14=_0x370b5a['createPositionBefore'](_0x313606['definition']),_0x1372bf=_0x370b5a['createPositionAt'](this['_footnotesDefinitions'],_0x407552);_0x2ffc14['isEqual'](_0x1372bf)||(_0x370b5a['move'](_0x370b5a['createRangeOn'](_0x313606['definition']),_0x1372bf),_0x5a1e44=!0x0);}return _0x5a1e44;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5d632c){if(!this['_footnotes']['length'])return!0x1;const {model:_0x222939}=this['editor'];let _0xd7e487=!0x1;for(let _0x838ccb=0x0;_0x838ccb<this['_footnotes']['length']-0x1;_0x838ccb++){const _0x1d7fac=this['_footnotes'][_0x838ccb],_0x1fd54c=this['_footnotes'][_0x838ccb+0x1],_0x3bf3e9=_0x222939['createPositionBefore'](_0x1d7fac['reference']),_0x8cac71=_0x222939['createPositionBefore'](_0x1fd54c['reference']);'after'===_0x3bf3e9['compareWith'](_0x8cac71)&&(this['_handleMovedFootnoteReference'](_0x5d632c,_0x1d7fac['reference']),_0x838ccb=-0x1,_0xd7e487=!0x0);}return _0xd7e487;}}function _(_0x59e97d,_0x41ec69,_0x58fd5b){if(_0x58fd5b['childCount'])return!0x1;const _0x9187d5=_0x41ec69?'paragraph':'footnoteInlineContent';return _0x59e97d['insert'](_0x59e97d['createElement'](_0x9187d5),_0x58fd5b),!0x0;}function I(_0x2f3fb9,_0x191ff5,_0x1cb561){if(0x0===_0x191ff5['length'])return 0x0;const _0x35e2f3=_0x2f3fb9['createPositionBefore'](_0x1cb561);for(let _0x336083=0x0;_0x336083<_0x191ff5['length'];_0x336083++){const _0xee7457=_0x191ff5[_0x336083],_0x1a02da=_0x2f3fb9['createPositionBefore'](_0xee7457['reference']);if('before'===_0x35e2f3['compareWith'](_0x1a02da))return _0x336083;}const _0x5b33a0=_0x1cb561['root'];let _0x30332e=-0x1;for(let _0x40541b=_0x191ff5['length']-0x1;_0x40541b>=0x0;_0x40541b--)if(_0x191ff5[_0x40541b]['reference']['root']===_0x5b33a0){_0x30332e=_0x40541b;break;}if(-0x1!==_0x30332e)return _0x30332e+0x1;const _0x147638=_0x2f3fb9['document']['getRootNames'](),_0x48b0e9=_0x147638['indexOf'](_0x5b33a0['rootName']),_0x1122bb=_0x147638[_0x48b0e9+0x1];if(_0x1122bb){for(let _0x117657=0x0;_0x117657<_0x191ff5['length'];_0x117657++)if(_0x191ff5[_0x117657]['reference']['root']['rootName']===_0x1122bb)return _0x117657;}return _0x191ff5['length'];}class w extends _0x104980{['refresh'](){const _0x304d41=this['editor']['model']['document']['selection'],_0x1a882d=this['_getPositionToInsertFootnote'](_0x304d41);this['isEnabled']=!!_0x1a882d;}['execute'](_0x59038d){const {editor:_0x77f931}=this,{model:_0x129635}=_0x77f931,{selection:_0x5495ec}=_0x129635['document'],_0x12b787=this['_getPositionToInsertFootnote'](_0x5495ec);if(!_0x12b787)return;const _0xc2a67d=_0x77f931['plugins']['get']('FootnotesEditing'),_0x12a8a8=_0x59038d?.['footnoteId']??_0x1b4619();!function(_0x17f7f9){return'string'==typeof _0x17f7f9&&_0x17f7f9['length']>0x0&&!/\s/['test'](_0x17f7f9)&&!/^\d/['test'](_0x17f7f9);}(_0x12a8a8)?_0x4c912b('insert-footnote-command-executed-with-invalid-id'):(_0x129635['change'](_0x298db2=>{const _0x52600b=_0x298db2['createElement']('footnoteRef',{'footnoteId':_0x12a8a8});_0x129635['insertObject'](_0x52600b,_0x12b787,null);}),_0xc2a67d['_moveSelectionToFootnoteDefinition'](_0x12a8a8));}['_getPositionToInsertFootnote'](_0x256f73){const {model:_0x5aa94e}=this['editor'],{schema:_0x493f7b}=_0x5aa94e,_0x2f6dfe=_0x256f73['getFirstRange']();for(const _0x501d5e of _0x2f6dfe['getItems']())if(_0x493f7b['isBlock'](_0x501d5e)||_0x493f7b['isObject'](_0x501d5e))return null;const _0x3e564b=_0x2f6dfe['end'];return _0x493f7b['checkChild'](_0x3e564b,'footnoteRef')?_0x3e564b:null;}}class r extends _0xcc0738{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x30e78c}=this;_0x30e78c['config']['define']('footnotes.multiBlock',!0x0),_0x30e78c['commands']['add']('insertFootnote',new w(_0x30e78c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x515541){const _0x87ef0=_0x2155bf([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]),_0x1dbf97=0x47a28506,_0x50655a=0x47a5f376^_0x1dbf97,_0x4cefa0=window[_0x2155bf([0x44,0x61,0x74,0x65])][_0x2155bf([0x6e,0x6f,0x77])](),_0x445a4c=_0x515541[_0x2155bf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cc428=new window[(_0x2155bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d9b0a=>{_0x445a4c[_0x2155bf([0x6f,0x6e,0x63,0x65])](_0x2155bf([0x72,0x65,0x61,0x64,0x79]),_0x2d9b0a);}),_0x2044f5={[_0x2155bf([0x6b,0x74,0x79])]:_0x2155bf([0x45,0x43]),[_0x2155bf([0x75,0x73,0x65])]:_0x2155bf([0x73,0x69,0x67]),[_0x2155bf([0x63,0x72,0x76])]:_0x2155bf([0x50,0x2d,0x32,0x35,0x36]),[_0x2155bf([0x78])]:_0x2155bf([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]),[_0x2155bf([0x79])]:_0x2155bf([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]),[_0x2155bf([0x61,0x6c,0x67])]:_0x2155bf([0x45,0x53,0x32,0x35,0x36])},_0x276917=_0x445a4c[_0x2155bf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2155bf([0x67,0x65,0x74])](_0x2155bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b3fea(){let _0xf6f7ec,_0x42e18d=null,_0x14f587=null;try{if(_0x276917==_0x2155bf([0x47,0x50,0x4c]))return _0x2155bf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf6f7ec=_0x345aff(),!_0xf6f7ec)return _0x2155bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf6f7ec[_0x2155bf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14f587=_0x424fd2(_0xf6f7ec[_0x2155bf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf6f7ec[_0x2155bf([0x6a,0x74,0x69])])),await _0x31a2e4()?_0x303f62()?_0x1d16a1()?_0x2155bf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c21c5()?(_0xf6f7ec[_0x2155bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2155bf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42e18d=_0x1103f5(_0x2155bf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf6f7ec[_0x2155bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2155bf([0x74,0x72,0x69,0x61,0x6c])&&(_0x42e18d=_0x1103f5(_0x2155bf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x371be0()):_0x2155bf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2155bf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2155bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2155bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d16a1(){const _0x34b00e=[_0x2155bf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2155bf([0x74,0x72,0x69,0x61,0x6c])][_0x2155bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf6f7ec[_0x2155bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cefa0/0x3e8:0xe10*_0x50655a;return _0xf6f7ec[_0x2155bf([0x65,0x78,0x70])]<_0x34b00e;}function _0x303f62(){const _0x117949=_0xf6f7ec[_0x2155bf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x117949&&(!!_0x117949[_0x2155bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2155bf([0x2a]))||!!_0x117949[_0x2155bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2155bf([0x46,0x4f,0x4f])));}function _0x5c21c5(){const _0x2916c7=_0xf6f7ec[_0x2155bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2916c7||0x0==_0x2916c7[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12b3d6}=new URL(window[_0x2155bf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2916c7[_0x2155bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12b3d6))return!0x0;const _0x4d24bb=_0x12b3d6[_0x2155bf([0x73,0x70,0x6c,0x69,0x74])](_0x2155bf([0x2e]));return _0x2916c7[_0x2155bf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x366dc7=>_0x366dc7[_0x2155bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2155bf([0x2a])))[_0x2155bf([0x6d,0x61,0x70])](_0x301f57=>_0x301f57[_0x2155bf([0x73,0x70,0x6c,0x69,0x74])](_0x2155bf([0x2e])))[_0x2155bf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e62e7=>_0x2e62e7[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d24bb[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2155bf([0x6d,0x61,0x70])](_0x3388ba=>Array(_0x4d24bb[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3388ba[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2155bf([0x66,0x69,0x6c,0x6c])](_0x3388ba[0x0]===_0x2155bf([0x2a])?_0x2155bf([0x2a]):'')[_0x2155bf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3388ba))[_0x2155bf([0x73,0x6f,0x6d,0x65])](_0x52e4b9=>_0x4d24bb[_0x2155bf([0x65,0x76,0x65,0x72,0x79])]((_0x1163cd,_0x310b29)=>_0x52e4b9[_0x310b29]===_0x1163cd||_0x52e4b9[_0x310b29]===_0x2155bf([0x2a])));}function _0x371be0(){return _0x42e18d&&_0x14f587?new window[(_0x2155bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49c322,_0x4bfdba)=>{_0x42e18d[_0x2155bf([0x74,0x68,0x65,0x6e])](_0x49c322,_0x4bfdba),_0x14f587[_0x2155bf([0x74,0x68,0x65,0x6e])](_0x438199=>{_0x438199!=_0x2155bf([0x56,0x61,0x6c,0x69,0x64])&&_0x49c322(_0x438199);},_0x4bfdba);}):_0x42e18d||_0x14f587||_0x2155bf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x424fd2(_0x362a53,_0xf3be70){return new window[(_0x2155bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7c07aa=>{if(_0x23f78f())return _0x7c07aa(_0x2155bf([0x56,0x61,0x6c,0x69,0x64]));_0x4192e5(),_0x445a4c[_0x2155bf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2155bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3dd574=!0x1;const _0x37bfd2=_0x1b4619();function _0x2fd957(_0x3d27a6){return!!_0x3d27a6&&(typeof _0x3d27a6===_0x2155bf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d27a6===_0x2155bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d27a6[_0x2155bf([0x74,0x68,0x65,0x6e])]===_0x2155bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d27a6[_0x2155bf([0x63,0x61,0x74,0x63,0x68])]===_0x2155bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a9cde(_0x3746a5){_0x323029(_0x3746a5)[_0x2155bf([0x74,0x68,0x65,0x6e])](_0x26f0e6=>{if(!_0x26f0e6||_0x26f0e6[_0x2155bf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2155bf([0x6f,0x6b]))return _0x2155bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f2dc5(_0x36c005(_0x37bfd2+_0xf3be70))!=_0x26f0e6[_0x2155bf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2155bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2155bf([0x56,0x61,0x6c,0x69,0x64]);})[_0x2155bf([0x74,0x68,0x65,0x6e])](_0xd9b512=>(_0x3ed106(),_0xd9b512),()=>{const _0x27c147=_0x2fce1a();return null==_0x27c147?(_0x3ed106(),_0x2155bf([0x56,0x61,0x6c,0x69,0x64])):_0x2155bf(_0x4cefa0-_0x27c147>(0x63ae0106^_0x1dbf97)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2155bf([0x74,0x68,0x65,0x6e])](_0x7c07aa)[_0x2155bf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7c07aa(_0x2155bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a57c8=0x47946b86^_0x1dbf97;function _0x3ed106(){const _0x62e3ba=_0x2155bf([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f2dc5(_0x36c005(_0x362a53)),_0xd3bf12=_0x29b275(_0x2f2dc5(window[_0x2155bf([0x4d,0x61,0x74,0x68])][_0x2155bf([0x63,0x65,0x69,0x6c])](_0x4cefa0/_0x2a57c8)));window[_0x2155bf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2155bf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x62e3ba,_0xd3bf12);}function _0x2fce1a(){const _0x4146b0=_0x2155bf([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f2dc5(_0x36c005(_0x362a53)),_0x3dfe00=window[_0x2155bf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2155bf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4146b0);return _0x3dfe00?window[_0x2155bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29b275(_0x3dfe00),0x10)*_0x2a57c8:null;}function _0x323029(_0x5d3921){return new window[(_0x2155bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a9ab5,_0x211632)=>{_0x5d3921[_0x2155bf([0x74,0x68,0x65,0x6e])](_0x5a9ab5,_0x211632),window[_0x2155bf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x211632,0x47a351c6^_0x1dbf97);});}}_0x445a4c[_0x2155bf([0x6f,0x6e])](_0x2155bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c2e48,_0x27731a)=>{if(_0x27731a[0x0]!=_0x362a53)return _0x7c07aa(_0x2155bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27731a[0x1]={..._0x27731a[0x1],[_0x2155bf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37bfd2};},{[_0x2155bf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2155bf([0x68,0x69,0x67,0x68])}),_0x445a4c[_0x2155bf([0x6f,0x6e])](_0x2155bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x116e62=>{_0x2fd957(_0x116e62[_0x2155bf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3dd574=!0x0,_0x2a9cde(_0x116e62[_0x2155bf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2155bf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2155bf([0x6c,0x6f,0x77])}),_0x4cc428[_0x2155bf([0x74,0x68,0x65,0x6e])](()=>{_0x3dd574||_0x7c07aa(_0x2155bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23f78f(){return _0x445a4c[_0x2155bf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2155bf([0x76,0x69,0x65,0x77])][_0x2155bf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2155bf([0x61,0x75,0x74,0x6f]);}function _0x4192e5(){_0x445a4c[_0x2155bf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2155bf([0x76,0x69,0x65,0x77])][_0x2155bf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2155bf([0x61,0x75,0x74,0x6f]);}}function _0x1103f5(_0x301ef3){const _0xea8e11=[new window[(_0x2155bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb3baac=>setTimeout(_0xb3baac,0x47abbbca^_0x1dbf97)),_0x4cc428[_0x2155bf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2155bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d069f=>{let _0x4685bd=0x0;_0x445a4c[_0x2155bf([0x6d,0x6f,0x64,0x65,0x6c])][_0x2155bf([0x6f,0x6e])](_0x2155bf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x174ff3,_0x48839d)=>{_0x48839d[0x0][_0x2155bf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4685bd++,_0x4685bd==(0x47a284fe^_0x1dbf97)&&(_0x5d069f(),_0x174ff3[_0x2155bf([0x6f,0x66,0x66])]());});}))];return window[_0x2155bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2155bf([0x72,0x61,0x63,0x65])](_0xea8e11)[_0x2155bf([0x74,0x68,0x65,0x6e])](()=>_0x301ef3);}async function _0x5a3adc(){await _0x4cc428,_0x445a4c[_0x2155bf([0x6d,0x6f,0x64,0x65,0x6c])][_0x2155bf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50d1b0,_0x445a4c[_0x2155bf([0x6d,0x6f,0x64,0x65,0x6c])][_0x2155bf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50d1b0,_0x445a4c[_0x2155bf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2155bf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf34900(_0x4613fc){const _0x459eb2=_0x5c6bb5();_0x445a4c[_0x459eb2]=_0x2155bf([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4613fc,_0x4613fc!=_0x2155bf([0x56,0x61,0x6c,0x69,0x64])&&_0x5a3adc();}function _0x5c6bb5(){const _0x1f83df=window[_0x2155bf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2155bf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2155bf([0x6e,0x6f,0x77])]())[_0x2155bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2155bf([0x2e]),'');let _0xd4906=_0x2155bf([0x75]);for(let _0x4c34f2=0x0;_0x4c34f2<_0x1f83df[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c34f2+=0x2){let _0x5bb5f1=window[_0x2155bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f83df[_0x2155bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c34f2,_0x4c34f2+0x2));_0x5bb5f1>=_0x87ef0[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bb5f1-=_0x87ef0[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd4906+=_0x87ef0[_0x5bb5f1];}return _0xd4906;}function _0x345aff(){const _0x567f26=_0x276917[_0x2155bf([0x73,0x70,0x6c,0x69,0x74])](_0x2155bf([0x2e]));if(0x3!=_0x567f26[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a8a8d(_0x567f26[0x1]);function _0x1a8a8d(_0xc98b1d){const _0x19711d=_0x445b63(_0xc98b1d);return _0x19711d&&_0x4ce00e()?_0x19711d:null;function _0x4ce00e(){const _0x2ca0b4=_0x19711d[_0x2155bf([0x6a,0x74,0x69])],_0x579ccd=window[_0x2155bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ca0b4[_0x2155bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ca0b4[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x170ed1={..._0x19711d,[_0x2155bf([0x6a,0x74,0x69])]:_0x2ca0b4[_0x2155bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ca0b4[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x170ed1[_0x2155bf([0x76,0x63])],_0x36c005(_0x170ed1)==_0x579ccd;}}}async function _0x31a2e4(){let _0x163fac=!0x0;try{const _0x210009=_0x276917[_0x2155bf([0x73,0x70,0x6c,0x69,0x74])](_0x2155bf([0x2e])),[_0x55cb27,_0x48827b,_0x5e3410]=_0x210009;return _0xf8a998(_0x55cb27),await _0x24d0f8(_0x55cb27,_0x48827b,_0x5e3410),_0x163fac;}catch{return!0x1;}function _0xf8a998(_0x31794d){const _0x4b458c=_0x445b63(_0x31794d);_0x4b458c&&_0x4b458c[_0x2155bf([0x61,0x6c,0x67])]==_0x2155bf([0x45,0x53,0x32,0x35,0x36])||(_0x163fac=!0x1);}async function _0x24d0f8(_0x311938,_0x56300d,_0x99d26e){const _0x12ec24=window[_0x2155bf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2155bf([0x66,0x72,0x6f,0x6d])](_0x51b1c4(_0x99d26e),_0x465842=>_0x465842[_0x2155bf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d7a90=new window[(_0x2155bf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2155bf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x311938+_0x2155bf([0x2e])+_0x56300d),_0x438047=window[_0x2155bf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2155bf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x438047)return;const _0x1e1571=await _0x438047[_0x2155bf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2155bf([0x6a,0x77,0x6b]),_0x2044f5,{[_0x2155bf([0x6e,0x61,0x6d,0x65])]:_0x2155bf([0x45,0x43,0x44,0x53,0x41]),[_0x2155bf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2155bf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2155bf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x438047[_0x2155bf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2155bf([0x6e,0x61,0x6d,0x65])]:_0x2155bf([0x45,0x43,0x44,0x53,0x41]),[_0x2155bf([0x68,0x61,0x73,0x68])]:{[_0x2155bf([0x6e,0x61,0x6d,0x65])]:_0x2155bf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e1571,_0x12ec24,_0x3d7a90)||(_0x163fac=!0x1);}}function _0x445b63(_0x79ab4a){return _0x79ab4a[_0x2155bf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2155bf([0x65,0x79]))?JSON[_0x2155bf([0x70,0x61,0x72,0x73,0x65])](_0x51b1c4(_0x79ab4a)):null;}function _0x51b1c4(_0xbc5c04){return window[_0x2155bf([0x61,0x74,0x6f,0x62])](_0xbc5c04[_0x2155bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2155bf([0x2b]))[_0x2155bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2155bf([0x2f])));}function _0x36c005(_0x4676db){let _0x912043=0x1505;function _0x5af29e(_0x224cab){for(let _0x48e70f=0x0;_0x48e70f<_0x224cab[_0x2155bf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48e70f++){const _0x23fb6f=_0x224cab[_0x2155bf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x48e70f);_0x912043=(_0x912043<<0x5)+_0x912043+_0x23fb6f,_0x912043&=_0x912043;}}function _0x3b0fdc(_0x31a8c4){Array[_0x2155bf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31a8c4)?_0x31a8c4[_0x2155bf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b0fdc):_0x31a8c4&&typeof _0x31a8c4==_0x2155bf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2155bf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31a8c4)[_0x2155bf([0x73,0x6f,0x72,0x74])]()[_0x2155bf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xeebf7d,_0x67ede0])=>{_0x5af29e(_0xeebf7d),_0x3b0fdc(_0x67ede0);}):_0x5af29e(window[_0x2155bf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31a8c4));}return _0x3b0fdc(_0x4676db),_0x912043>>>0x0;}function _0x2f2dc5(_0x3acef8){return _0x3acef8[_0x2155bf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2155bf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2155bf([0x30]));}function _0x29b275(_0x1b63da){return _0x1b63da[_0x2155bf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2155bf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2155bf([0x6a,0x6f,0x69,0x6e])]('');}function _0x50d1b0(){}function _0x2155bf(_0x49a7b8){return _0x49a7b8['map'](_0x48fea2=>String['fromCharCode'](_0x48fea2))['join']('');}_0xf34900(await _0x5b3fea());}(this);}['_moveSelectionToFootnoteDefinition'](_0x54eb31){const {plugins:_0x11ecfe,editing:_0x25b248,model:_0x586ac0}=this['editor'],_0x1d4454=_0x11ecfe['get'](c)['getFootnote'](_0x54eb31);return!!_0x1d4454&&(_0x586ac0['change'](_0x24d88b=>{_0x24d88b['setSelection'](_0x24d88b['createPositionAt'](_0x1d4454['definition'],'end'));}),_0x25b248['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x51b6a3){const {plugins:_0x5f1fd1,editing:_0x281a2f,model:_0x2b2b29}=this['editor'],_0x4c91a6=_0x5f1fd1['get'](c)['getFootnote'](_0x51b6a3);return!!_0x4c91a6&&(_0x2b2b29['change'](_0x334c23=>{_0x334c23['setSelection'](_0x4c91a6['reference'],'on');}),_0x281a2f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2f3c95}=this['editor']['model'],_0x4e9d1d=this['editor']['config']['get']('footnotes.multiBlock');_0x2f3c95['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2f3c95['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2f3c95['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4e9d1d?_0x2f3c95['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2f3c95['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2f3c95['addChildCheck'](_0x58a636=>{for(const _0x599a40 of _0x58a636)if('footnoteDefinition'===_0x599a40['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x12b9bb}=this,{conversion:_0x28efb3,editing:_0x1ab8b8}=_0x12b9bb,{t:t}=_0x12b9bb['locale'];_0x28efb3['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x457c6c,{writer:_0xe371e0,consumable:_0x35c7db})=>{const _0xc903cc=_0x457c6c['getChild'](0x0);if(!_0xc903cc||!_0xc903cc['is']('element','a'))return null;const _0x123caa=_0xc903cc['getAttribute']('href')||'';if(!_0x123caa['startsWith']('#'))return null;const _0x211cb2=_0x123caa['replace'](/^#/,'');if(!_0x211cb2)return null;_0x35c7db['consume'](_0xc903cc,{'name':!0x0,'attributes':['href']});for(const {item:_0x542b5d}of _0x1ab8b8['view']['createRangeIn'](_0xc903cc))_0x542b5d['is']('$textProxy')?_0x35c7db['consume'](_0x542b5d['textNode'],{'name':!0x0}):_0x542b5d['is']('element')&&_0x35c7db['consume'](_0x542b5d,{'name':!0x0});return _0xe371e0['createElement']('footnoteRef',{'footnoteId':_0x211cb2});}}),_0x28efb3['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x32a7da,{writer:_0x26bcca})=>g(_0x32a7da,_0x26bcca)}),_0x28efb3['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1a7f43,{writer:_0x345383})=>{const _0x4f7f52=_0x1a7f43['getAttribute']('footnoteCounter');return _0x12581d(g(_0x1a7f43,_0x345383),_0x345383,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4f7f52)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c76dc}=this,{t:t}=_0x4c76dc['locale'],{conversion:_0x32b98b}=_0x4c76dc;_0x32b98b['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x32b98b['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x32b98b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x24e834,{writer:_0x191fbc})=>{const _0x5d006a=_0x191fbc['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x191fbc['createContainerElement']('ol',{'class':'footnotes'},_0x191fbc['createSlot']())),_0x5df635=_0x12581d(_0x5d006a,_0x191fbc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x191fbc['setCustomProperty']('footnotesDefinitions',!0x0,_0x5df635),_0x5df635;}});}['_defineDefinitionConverters'](){const {editor:_0x49525d}=this,{conversion:_0x2a17f3,locale:_0x387119}=_0x49525d,_0x3824a8=_0x49525d['config']['get']('footnotes.multiBlock');_0x2a17f3['for']('upcast')['add'](_0x3ddfa6=>{_0x3ddfa6['on']('element:li',(_0x7141f,_0xe3c240,_0x587926)=>{const _0x2e9d1a=_0xe3c240['viewItem'];if(!_0x2e9d1a['hasClass']('footnote-definition')||!_0x2e9d1a['getAttribute']('id'))return;const _0x4fca31=_0x2e9d1a['parent'];if(!_0x4fca31['is']('element','ol')||!_0x4fca31['hasClass']('footnotes'))return;if(!_0x587926['consumable']['test'](_0x2e9d1a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4b34bd=_0x587926['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2e9d1a['getAttribute']('id')});if(!_0x587926['safeInsert'](_0x4b34bd,_0xe3c240['modelCursor']))return;_0x587926['consumable']['consume'](_0x2e9d1a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x50913a=Array['from'](_0x2e9d1a['getChildren']())['find'](_0xb3c9b=>_0xb3c9b['is']('element')&&_0xb3c9b['hasClass']('footnote-content'));for(const _0x517e2d of _0x2e9d1a['getChildren']())_0x517e2d['is']('element')&&(_0x587926['consumable']['consume'](_0x517e2d,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x587926['consumable']['consume'](_0x517e2d,{'name':!0x0,'classes':'footnote-content'}));if(_0x50913a){if(_0x3824a8)_0x587926['convertChildren'](_0x50913a,_0x4b34bd);else{const _0x3e618d=_0x587926['writer']['createElement']('footnoteInlineContent');_0x587926['writer']['insert'](_0x3e618d,_0x4b34bd),_0x587926['convertChildren'](_0x50913a,_0x3e618d);}}_0x587926['updateConversionResult'](_0x4b34bd,_0xe3c240);});}),_0x2a17f3['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1f293c,{writer:_0x4a96ba})=>D(_0x1f293c,_0x4a96ba,_0x387119,{'dataPipeline':!0x0})}),_0x2a17f3['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2c9071,{writer:_0xb677b9})=>D(_0x2c9071,_0xb677b9,_0x387119)});}['_defineBogusParagraphConverters'](){const {editor:_0x42679a}=this,{conversion:_0xab3b50}=_0x42679a;_0x42679a['config']['get']('footnotes.multiBlock')?(_0xab3b50['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0xab3b50['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x42679a['model']['document'],'change:data',()=>{!function(_0x438998,_0x6915ee){const _0x3c4e22=_0x438998['document']['differ'],_0x2c20f9=new Set();for(const _0x4813fa of _0x3c4e22['getChanges']()){const _0x5f0405='attribute'==_0x4813fa['type']?_0x4813fa['range']['start']['parent']:_0x4813fa['position']['parent'];_0x5f0405['is']('element','footnoteDefinition')&&_0x2c20f9['add'](_0x5f0405);}for(const _0xfb1bb7 of _0x2c20f9['values']()){const _0x4006fe=Array['from'](_0xfb1bb7['getChildren']())['filter'](_0x19303b=>p(_0x19303b,_0x6915ee['mapper']));for(const _0x5446fe of _0x4006fe)_0x6915ee['reconvertItem'](_0x5446fe);}}(_0x42679a['model'],_0x42679a['editing']);})):(_0xab3b50['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0xab3b50['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4de3ab,{writer:_0x165c75})=>{const _0x4a12a8=_0x165c75['createContainerElement']('span');return _0x165c75['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4a12a8),_0x4a12a8;}}));}['_defineKeyboardHandlers'](){const {editor:_0x276dfe}=this,{editing:_0x35892a,t:t}=_0x276dfe,_0x416f2d=_0x276dfe['model']['document']['selection'];_0x276dfe['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x276dfe['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x35892a['view']['document'],'enter',(_0x5c832e,_0x63b949)=>{const _0x439cdc=function(_0x540033){const _0x5441f5=_0x540033['getSelectedElement']();if(_0x5441f5?.['is']('element','footnoteRef'))return _0x5441f5;return null;}(_0x416f2d);if(_0x439cdc){const _0x3df22f=_0x439cdc['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3df22f),_0x63b949['preventDefault'](),_0x5c832e['stop']();}},{'context':_0x538e41});}['_defineClickHandlers'](){const {editor:_0x2a52fd}=this,{editing:_0x42708c}=_0x2a52fd;_0x2a52fd['editing']['view']['addObserver'](_0x1503ae),_0x2a52fd['editing']['view']['addObserver'](_0x200a6c);let _0x1be2ae=!0x1;this['listenTo'](_0x42708c['view']['document'],'pointerdown',(_0x363d5e,_0x1b8b11)=>{const {target:_0x44ca48}=_0x1b8b11,_0xed3c35=_0x42708c['view']['document']['selection'];_0x1be2ae=!(!_0x44ca48['is']('element','sup')||!_0x44ca48['hasClass']('footnote'))&&_0xed3c35['getSelectedElement']()===_0x44ca48;},{'priority':'high'}),this['listenTo'](_0x42708c['view']['document'],'click',(_0x1418ce,_0x29fcdb)=>{const {target:_0x4becc4}=_0x29fcdb,_0x4447f4=_0x4becc4['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x4447f4['slice'](0x1)),_0x1418ce['stop'](),_0x29fcdb['preventDefault']();},{'priority':'high','context':_0x4df3b5=>_0x4df3b5['is']('element','sup')&&_0x4df3b5['hasClass']('footnote')&&_0x1be2ae}),this['listenTo'](_0x42708c['view']['document'],'click',(_0x778607,_0x553399)=>{const {target:_0x46c511}=_0x553399;if(!_0x46c511['is']('element','a'))return;let _0xd818d8=_0x46c511['getAttribute']('href');if(!_0xd818d8?.['startsWith']('#'))return;_0xd818d8=_0xd818d8['slice'](0x1);let _0x7e44f9=!0x1;(_0xd818d8['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xd818d8['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xd818d8))&&(_0x7e44f9=!0x0),_0x7e44f9&&(_0x553399['preventDefault'](),_0x778607['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x132564}={}){return(_0x3e96d3,{writer:_0x45e477})=>{if(!h(_0x3e96d3))return null;if(!_0x132564)return _0x45e477['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x320537=_0x45e477['createContainerElement']('p');return _0x45e477['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x320537),_0x320537;};}function h(_0x37ab){const {parent:_0x212ea6}=_0x37ab;if(!_0x212ea6?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x212ea6['childCount'])return!0x1;for(const _0x47f8a0 of _0x37ab['getAttributeKeys']())if(!_0x47f8a0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x47f8a0)return!0x1;return!0x0;}function p(_0x51126f,_0x383703){if(!_0x51126f['is']('element','paragraph'))return!0x1;const _0x5bba08=_0x383703['toViewElement'](_0x51126f);return!!_0x5bba08&&h(_0x51126f)!==_0x5bba08['is']('element','span');}function $(_0x45bfd2){return _0x538e41(_0x45bfd2)&&_0x45bfd2['is']('containerElement')&&!!_0x45bfd2['getCustomProperty']('footnotesDefinitions');}function g(_0x5ab9b2,_0x3a13e2){const _0x3b5662=_0x5ab9b2['getAttribute']('footnoteId'),_0xcca77e=_0x5ab9b2['getAttribute']('footnoteCounter'),_0x11fd34=_0x3a13e2['createUIElement']('a',{'id':'ref-'+_0x3b5662,'href':'#'+_0x3b5662},function(_0x472754){const _0x4da619=this['toDomElement'](_0x472754);return _0x4da619['textContent']=_0xcca77e,_0x4da619;}),_0x52ca36=_0x3a13e2['createContainerElement']('sup',{'class':'footnote'},[_0x11fd34]);return _0x52ca36['getFillerOffset']=()=>null,_0x52ca36;}function D(_0x3855b0,_0xa99aa3,_0x12d08c,{dataPipeline:_0x3eca0b}={}){const {t:t}=_0x12d08c,_0x5a44b0=_0x3855b0['getAttribute']('footnoteId'),_0x465e39=_0xa99aa3['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5a44b0},function(_0x29cc){const _0x548161=this['toDomElement'](_0x29cc);return _0x548161['innerText']='^',_0x548161;}),_0x2563ca=_0x3eca0b?_0xa99aa3['createContainerElement']('div',{'class':'footnote-content'}):_0x48b5a2(_0xa99aa3['createEditableElement']('div',{'class':'footnote-content'}),_0xa99aa3,{'label':t('Footnote\x20content.')});return _0xa99aa3['insert'](_0xa99aa3['createPositionAt'](_0x2563ca,0x0),_0xa99aa3['createSlot']()),_0xa99aa3['createContainerElement']('li',{'class':'footnote-definition','id':_0x5a44b0},[_0x465e39,_0x2563ca]);}class e extends _0xcc0738{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x34503d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x8fdd68}=this,{plugins:_0x423ec9,model:_0x4a595c}=_0x8fdd68,_0x3d4fb3=_0x423ec9['get'](_0x34503d),_0x48cd53=_0x423ec9['get'](c);this['listenTo'](_0x3d4fb3,'outputTransformation',(_0x5ddb10,_0xb442c9)=>{const _0x52f74c=function(_0x189dfa,_0x58d032){const _0x5ed772=new Set();for(const {item:_0x2248b9}of _0x189dfa['createRangeIn'](_0x58d032))_0x2248b9['is']('element','footnoteRef')&&_0x5ed772['add'](_0x2248b9['getAttribute']('footnoteId'));return Array['from'](_0x5ed772);}(_0x4a595c,_0xb442c9['content']);if(!_0x52f74c['length'])return;const _0x4ec6ca=_0x48cd53['getFootnotes'](),_0x23a0d8=_0x52f74c['reduce']((_0x29c04e,_0x485de5)=>{const _0x254051=_0x4ec6ca['find'](_0x37c678=>_0x37c678['id']===_0x485de5);if(_0x254051){const _0x6ccf80=_0x8fdd68['data']['toView'](_0x254051['definition'],{'isClipboardPipeline':!0x0}),_0x3863b5=_0x8fdd68['data']['htmlProcessor']['toData'](_0x6ccf80);_0x29c04e[_0x254051['id']]=_0x3863b5;}return _0x29c04e;},Object['create'](null));_0xb442c9['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x23a0d8));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4f729e}=this,{model:_0x3ca127,plugins:_0x5bf172}=_0x4f729e,{view:_0x3191a4}=_0x4f729e['editing'],_0x381713=_0x5bf172['get'](_0x34503d),_0xce4f3f=_0x5bf172['get'](c);let _0x7acbf9=null;this['listenTo'](_0x3191a4['document'],'clipboardInput',(_0x119b09,_0x57e420)=>{const _0x30f4d0=_0x57e420['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x7acbf9=_0x30f4d0?JSON['parse'](_0x30f4d0):null;}),this['listenTo'](_0x381713,'contentInsertion',(_0x40f0b1,_0xc85f04)=>{if(!_0x7acbf9)return;const _0x1f9b27=_0xc85f04['sourceEditorId']===this['editor']['id'];_0x1f9b27&&'drop'===_0xc85f04['method']||_0x3ca127['change'](_0x5f2161=>{!function(_0x2ed86e,_0x1f0157){const _0x2d0e30=[];for(const {item:_0x1f5be4}of _0x2ed86e['createRangeIn'](_0x1f0157))_0x1f5be4['is']('element','footnotesDefinitions')&&_0x2d0e30['push'](_0x1f5be4);for(const _0x41f52c of _0x2d0e30)_0x2ed86e['remove'](_0x41f52c);}(_0x5f2161,_0xc85f04['content']);let _0x1caaab=_0xce4f3f['getFootnotesDefinitionsObjectElement']();if(!_0x1caaab){const _0x209bd0=_0x3ca127['document']['selection']['getFirstRange']()['root'];_0x1caaab=_0xce4f3f['_insertEmptyFootnotesDefinitionsContainer'](_0x5f2161,_0x209bd0);}const _0x594a8c=function(_0x181fa8,_0x478847,_0x893d8c){const _0xe5fb1e=Object['create'](null);for(const {item:_0x50010b}of _0x181fa8['createRangeIn'](_0x478847))if(_0x50010b['is']('element','footnoteRef')){const _0x4cc3c4=_0x50010b['getAttribute']('footnoteId');if(!_0x893d8c(_0x4cc3c4))continue;_0xe5fb1e[_0x4cc3c4]||(_0xe5fb1e[_0x4cc3c4]=_0x1b4619()),_0x181fa8['setAttribute']('footnoteId',_0xe5fb1e[_0x4cc3c4],_0x50010b);}return _0xe5fb1e;}(_0x5f2161,_0xc85f04['content'],_0x206865=>!_0x1f9b27||null!==_0xce4f3f['getFootnote'](_0x206865));for(const [_0x283ef7,_0x33f5bc]of Object['entries'](_0x7acbf9)){const _0x25df9f=_0x594a8c[_0x283ef7]||_0x283ef7,_0x2af0dd=_0x5f2161['createElement']('footnoteDefinition',{'footnoteId':_0x25df9f}),_0x1d018b=_0x4f729e['data']['htmlProcessor']['toView'](_0x33f5bc),_0x13be68=_0x4f729e['data']['toModel'](_0x1d018b,_0x2af0dd);_0x5f2161['append'](_0x13be68,_0x2af0dd),_0x5f2161['insert'](_0x2af0dd,_0x1caaab,'end');}_0x7acbf9=null;});});}}class i extends _0xcc0738{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x21262a}=this,{componentFactory:_0x1b7d60}=_0x21262a['ui'];_0x1b7d60['add']('insertFootnote',v(_0x21262a,_0x971ec9)),_0x1b7d60['add']('menuBar:insertFootnote',v(_0x21262a,_0x4eb716)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2279d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5515a0;for(const _0x156f23 in _0x2279d9){const _0x1c2589=_0x156f23,_0x49e313=_0x2279d9[_0x1c2589];if('footnotesLicenseKeyValid'==_0x49e313||'footnotesLicenseKeyInvalid'==_0x49e313||'footnotesLicenseKeyExpired'==_0x49e313||'footnotesLicenseKeyDomainLimit'==_0x49e313||'footnotesLicenseKeyNotAllowed'==_0x49e313||'footnotesLicenseKeyEvaluationLimit'==_0x49e313||'footnotesLicenseKeyTrialLimit'==_0x49e313||'footnotesLicenseKeyUsageLimit'==_0x49e313){delete _0x2279d9[_0x1c2589],_0x5515a0=_0x49e313,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5515a0&&_0x2279d9['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5515a0&&_0x2279d9['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5515a0&&_0x2279d9['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5515a0&&_0x2279d9['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5515a0&&_0x2279d9['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x5515a0&&_0x2279d9['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x5515a0&&_0x2279d9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x24827f,_0x113c8d){const _0x247e8b=_0x24827f['commands']['get']('insertFootnote');return _0x2a566a=>{const {t:t}=_0x2a566a,_0x381290=new _0x113c8d(_0x2a566a),_0x2b3cc6=_0x381290 instanceof _0x4eb716;return _0x381290['bind']('isEnabled')['to'](_0x247e8b,'isEnabled'),_0x381290['set']({'label':t(_0x2b3cc6?'Footnote':'Insert\x20footnote'),'icon':_0x47e64d,'tooltip':!0x0}),_0x381290['on']('execute',()=>{_0x247e8b['execute'](),_0x24827f['editing']['view']['focus']();}),_0x381290;};}class nt extends _0xcc0738{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const H=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x104980{['refresh'](){const {editor:_0x172b5c}=this,_0x2baad0=_0x172b5c['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2baad0,this['value']=_0x2baad0?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1aa91e}){const {editor:_0x4ced2d}=this,_0x3fd7f9=_0x4ced2d['plugins']['get'](c),_0x4a7c45=_0x3fd7f9['getFootnotesDefinitionsObjectElement']();_0x4a7c45&&H['includes'](_0x1aa91e)&&_0x4ced2d['model']['change'](_0x28f85a=>{_0x28f85a['setAttribute']('footnotesListStyle',_0x1aa91e,_0x4a7c45),_0x3fd7f9['_updateFootnotesCounters'](_0x28f85a);});}}class b extends _0x104980{['refresh'](){const {editor:_0x3e85e0}=this,_0x421fb1=_0x3e85e0['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x421fb1,this['value']=_0x421fb1?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5c72d3}){const {editor:_0x2ea811}=this,_0x6d40a5=_0x2ea811['plugins']['get'](c),_0xf46570=_0x6d40a5['getFootnotesDefinitionsObjectElement']();_0xf46570&&Number['isInteger'](_0x5c72d3)&&_0x2ea811['model']['change'](_0x2e46c4=>{_0x2e46c4['setAttribute']('footnotesListStart',_0x5c72d3,_0xf46570),_0x6d40a5['_updateFootnotesCounters'](_0x2e46c4);});}}class P extends _0xcc0738{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb89c6e}=this;_0xb89c6e['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0xb89c6e['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0xb89c6e['commands']['add']('footnotesStyle',new S(_0xb89c6e)),_0xb89c6e['commands']['add']('footnotesStart',new b(_0xb89c6e)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x31cabc}=this,{schema:_0xc396ed}=_0x31cabc['model'];_0xc396ed['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x56ffee}=this,{conversion:_0x39f3d8,model:_0x18bbf4}=_0x56ffee,{schema:_0x179bb8}=_0x18bbf4;_0x39f3d8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x36fccf=>_0x36fccf['getStyle']('list-style-type')}}),_0x39f3d8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x1ad684=>{const _0x399831=_0x1ad684['getAttribute']('start'),_0x25d8cd=Number['parseInt'](_0x399831,0xa);return Number['isNaN'](_0x25d8cd)?null:_0x25d8cd;}}}),_0x39f3d8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x2decdc=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2decdc['getAttribute']('type')])}}),_0x39f3d8['for']('upcast')['add'](_0x3cf218=>{_0x3cf218['on']('element:ol',(_0x33c340,_0x550b06,_0x23e74e)=>{const _0x535e6b=_0x550b06['modelRange']?.['start']['nodeAfter'];_0x535e6b?.['is']('element','footnotesDefinitions')&&(!_0x535e6b['hasAttribute']('footnotesListStyle')&&_0x179bb8['checkAttribute'](_0x535e6b,'footnotesListStyle')&&_0x23e74e['writer']['setAttribute']('footnotesListStyle','decimal',_0x535e6b),!_0x535e6b['hasAttribute']('footnotesListStart')&&_0x179bb8['checkAttribute'](_0x535e6b,'footnotesListStart')&&_0x23e74e['writer']['setAttribute']('footnotesListStart',0x1,_0x535e6b));},{'priority':'low'});}),_0x39f3d8['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x4f7af3=>0x1===_0x4f7af3?null:{'key':'start','value':String(_0x4f7af3)}}),_0x39f3d8['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x32cf31=>'decimal'===_0x32cf31?null:{'key':'style','value':{'list-style-type':_0x32cf31}}}),_0x39f3d8['for']('editingDowncast')['add'](_0x37cd92=>{_0x37cd92['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x258ee6,_0x1510ef,_0x48ba6a)=>{if(!_0x48ba6a['consumable']['consume'](_0x1510ef['item'],_0x258ee6['name']))return;const _0x2fc8f7=C(_0x1510ef['item'],_0x48ba6a['mapper']);null===_0x1510ef['attributeNewValue']||void 0x0===_0x1510ef['attributeNewValue']||0x1===_0x1510ef['attributeNewValue']?_0x48ba6a['writer']['removeAttribute']('start',_0x2fc8f7):_0x48ba6a['writer']['setAttribute']('start',String(_0x1510ef['attributeNewValue']),_0x2fc8f7);}),_0x37cd92['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x33f065,_0x1c6426,_0x3cc658)=>{if(!_0x3cc658['consumable']['consume'](_0x1c6426['item'],_0x33f065['name']))return;const _0x1fea98=C(_0x1c6426['item'],_0x3cc658['mapper']);_0x1c6426['attributeNewValue']&&'decimal'!==_0x1c6426['attributeNewValue']?_0x3cc658['writer']['setStyle']('list-style-type',_0x1c6426['attributeNewValue'],_0x1fea98):_0x3cc658['writer']['removeStyle']('list-style-type',_0x1fea98);});});}['_definePostfixer'](){const {editor:_0x516348}=this,{model:_0x5da943}=_0x516348,_0x2cb546=_0x516348['plugins']['get'](c),_0x3e4960=this['_getDefaultListStyle'](),_0x1ffe2b=this['_getDefaultStartIndex']();_0x5da943['document']['registerPostFixer'](_0x3e8ce8=>{const _0x2e368b=_0x5da943['document']['differ']['getChanges']();let _0x2ac10e=!0x1;for(const _0x18eeba of _0x2e368b){if('insert'!==_0x18eeba['type']||'$text'===_0x18eeba['name'])continue;const _0x23ec15=_0x5da943['createRangeOn'](_0x18eeba['position']['nodeAfter']);for(const _0x3f0c4a of _0x23ec15['getItems']())_0x3f0c4a['is']('element','footnotesDefinitions')&&(_0x3f0c4a['hasAttribute']('footnotesListStart')||(_0x3e8ce8['setAttribute']('footnotesListStart',_0x1ffe2b,_0x3f0c4a),_0x2ac10e=!0x0),_0x3f0c4a['hasAttribute']('footnotesListStyle')||(_0x3e8ce8['setAttribute']('footnotesListStyle',_0x3e4960,_0x3f0c4a),_0x2ac10e=!0x0));}return _0x2ac10e&&_0x2cb546['_updateFootnotesCounters'](_0x3e8ce8),_0x2ac10e;});}['_defineFormatter'](){const {editor:_0xfed9b7}=this;_0xfed9b7['plugins']['get'](c)['setFootnoteFormatter'](_0x52d13b=>this['_formatFootnoteListValue'](_0x52d13b));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xdbd2f4,value:_0x107760,digits:_0x4b1506}){const _0x2e5e5c=_0xdbd2f4['getAttribute']('footnotesListStyle'),_0x25c250=_0xdbd2f4['getAttribute']('footnotesListStart'),_0x33280d=Math['floor'](_0x107760)+(_0x25c250-0x1);switch(_0x2e5e5c){case'decimal':default:return String(_0x33280d);case'decimal-leading-zero':return function(_0x32959c,_0x387571){return String(_0x32959c)['padStart'](_0x387571,'0');}(_0x33280d,Math['max'](0x2,_0x4b1506));case'lower-alpha':case'lower-latin':return M(_0x33280d,!0x1);case'upper-alpha':case'upper-latin':return M(_0x33280d,!0x0);case'lower-roman':return A(_0x33280d,!0x1);case'upper-roman':return A(_0x33280d,!0x0);}}}function C(_0x975307,_0x26ac22){const _0x4bca42=_0x26ac22['toViewElement'](_0x975307);return Array['from'](_0x4bca42['getChildren']())['find'](_0x22261e=>_0x22261e['is']('element','ol'));}function M(_0x1cfe16,_0x16df82){let _0x685b0f='',_0x3db69b=_0x1cfe16;for(;_0x3db69b>0x0;){const _0x49ace9=(_0x3db69b-0x1)%0x1a;_0x685b0f=String['fromCharCode'](0x61+_0x49ace9)+_0x685b0f,_0x3db69b=Math['floor']((_0x3db69b-0x1)/0x1a);}return _0x16df82?_0x685b0f['toUpperCase']():_0x685b0f;}const X=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function A(_0x2d39c9,_0x158126){let _0x3cae3b='',_0x4d2762=_0x2d39c9;for(const {value:_0x442841,numeral:_0x1ecb97}of X)for(;_0x4d2762>=_0x442841;)_0x3cae3b+=_0x1ecb97,_0x4d2762-=_0x442841;return _0x158126?_0x3cae3b:_0x3cae3b['toLowerCase']();}class R extends _0x36d614{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x47cf48();['focusCycler'];constructor(_0x472d3a,{styleButtonViews:_0x85ba41,styleGridAriaLabel:_0x493f9c}){super(_0x472d3a),(this['focusCycler']=new _0xb9fae3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x85ba41,_0x493f9c),[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 _0x11f608 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x11f608['element']);_0x501bab({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x4107e4=_0x49db4a=>_0x49db4a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4107e4),this['keystrokes']['set']('arrowleft',_0x4107e4),this['keystrokes']['set']('arrowup',_0x4107e4),this['keystrokes']['set']('arrowdown',_0x4107e4);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x15683b,_0xbb3822){const _0x36601b=new _0x36d614(this['locale']);return _0x36601b['children']=_0x36601b['createCollection'](),_0x36601b['children']['addMany'](_0x15683b),_0x36601b['setTemplate']({'tag':'div','attributes':{'aria-label':_0xbb3822,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x36601b['children']}),_0x36601b['children']['delegate']('execute')['to'](this),_0x36601b['focus']=function(){for(const _0x1b1085 of this['children'])if(_0x1b1085 instanceof _0x971ec9&&_0x1b1085['isOn'])return void _0x1b1085['focus']();this['children']['first']['focus']();},_0x36601b['focusTracker']=new it(),_0x36601b['keystrokes']=new et(),_0x36601b['render'](),_0x36601b['keystrokes']['listenTo'](_0x36601b['element']),this['children']['add'](_0x36601b),_0x36601b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3d65e7=this['_createStartIndexPropertyView'](),_0x57299a=[_0x3d65e7],_0x4dc96a=new _0x35d441(this['locale'],_0x57299a);return _0x4dc96a['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4dc96a['buttonView']['bind']('isEnabled')['toMany'](_0x57299a,'isEnabled',(..._0x279cc4)=>_0x279cc4['some'](_0x2be9a2=>_0x2be9a2)),_0x4dc96a['buttonView']['on']('change:isEnabled',(_0x472c43,_0x25e2dc,_0x3148d8)=>{_0x3148d8||(_0x4dc96a['isCollapsed']=!0x0);}),this['children']['add'](_0x4dc96a),[_0x3d65e7,_0x4dc96a];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x39ad3e=new tt(this['locale'],st);return _0x39ad3e['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x39ad3e['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x39ad3e['fieldView']['on']('input',()=>{const _0x12e2c6=_0x39ad3e['fieldView']['element'],_0x2fd3b3=_0x12e2c6['valueAsNumber'];Number['isNaN'](_0x2fd3b3)?_0x39ad3e['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x12e2c6['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2fd3b3}):_0x39ad3e['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x39ad3e;}}class j extends _0xcc0738{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x40f7f6,_0x977e7b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a89db}=this,{componentFactory:_0x4608de}=_0x1a89db['ui'];_0x1a89db['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4608de['add']('footnotesStyle',function(_0x4500b8){return _0x39966b=>{const {t:t}=_0x39966b,_0x2737fd=_0x4500b8['commands']['get']('footnotesStyle'),_0x50d041=_0x152c50(_0x39966b),{buttonView:_0x59b811}=_0x50d041;return _0x50d041['class']='ck-footnotes-styles-dropdown',_0x50d041['bind']('isEnabled')['to'](_0x2737fd,'isEnabled'),_0x59b811['set']({'label':t('Footnotes\x20style'),'icon':_0x47e64d,'tooltip':!0x0}),_0x50d041['once']('change:isOpen',()=>{const _0x2923de=function({editor:_0x40dbcc,dropdownView:_0x5678ae}){const {t:t}=_0x40dbcc['locale'],_0x5d2ad2=t('Footnotes\x20definitions\x20styles'),_0x56c7d7=function(_0x1cd5c4){const t=_0x1cd5c4['locale']['t'],_0x3a1399=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1d3c2d},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2520ad},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x50a347},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2bd9fb},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xa2229c},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x39c8f}];return _0x3a1399['map'](function(_0x52dd6b){const _0x30d0f0=_0x52dd6b['locale'];return({label:_0x5aa50a,icon:_0x183487,tooltip:_0x4f4022,style:_0x216c5d})=>{const _0x7aec2f=_0x52dd6b['commands']['get']('footnotesStyle'),_0x3d8d4b=new _0x971ec9(_0x30d0f0);return _0x3d8d4b['set']({'label':_0x5aa50a,'icon':_0x183487,'tooltip':_0x4f4022}),_0x3d8d4b['bind']('isOn')['to'](_0x7aec2f,'value',_0x169924=>_0x169924===_0x216c5d),_0x3d8d4b['bind']('isEnabled')['to'](_0x7aec2f,'isEnabled'),_0x3d8d4b['on']('execute',()=>{_0x52dd6b['execute']('footnotesStyle',{'value':_0x216c5d}),_0x52dd6b['editing']['view']['focus']();}),_0x3d8d4b;};}(_0x1cd5c4));}(_0x40dbcc),_0x1d82f4=new R(_0x40dbcc['locale'],{'styleGridAriaLabel':_0x5d2ad2,'styleButtonViews':_0x56c7d7});return _0x1d82f4['delegate']('execute')['to'](_0x5678ae),_0x1d82f4['on']('footnotesListStart',(_0x34fa2f,_0x2e5d97)=>{_0x40dbcc['execute']('footnotesStart',{'value':_0x2e5d97['startIndex']});}),_0x1d82f4;}({'editor':_0x4500b8,'dropdownView':_0x50d041});_0x50d041['panelView']['children']['add'](_0x2923de);}),_0x50d041;};}(_0x1a89db));}['afterInit'](){const {editor:_0x312bd7}=this,{t:t}=_0x312bd7['locale'],_0x34a013=_0x312bd7['plugins']['get'](_0x977e7b),{defaultPositions:_0x140e08}=_0x155de3;_0x34a013['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x312bd7['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x15f80b=>{let _0x332b37=_0x15f80b['getFirstPosition']()?.['parent'];return _0x332b37?.['is']('$text')&&(_0x332b37=_0x332b37['parent']),_0x332b37?.['is']('element')?_0x332b37['findAncestor']($):null;},'positions':[_0x140e08['southArrowNorth'],_0x140e08['southArrowNorthMiddleWest'],_0x140e08['southArrowNorthMiddleEast'],_0x140e08['southArrowNorthWest'],_0x140e08['southArrowNorthEast'],_0x140e08['northArrowSouth'],_0x140e08['northArrowSouthMiddleWest'],_0x140e08['northArrowSouthMiddleEast'],_0x140e08['northArrowSouthWest'],_0x140e08['northArrowSouthEast'],_0x140e08['viewportStickyNorth']]});}}class rt extends _0xcc0738{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,rt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
23
+ import{Plugin as _0x381f4b,Command as _0x180100}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x27240f,isWidget as _0x1862ca,toWidgetEditable as _0x147785,WidgetToolbarRepository as _0x289e52}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x204d37,logWarning as _0x204d57,FocusTracker as it,KeystrokeHandler as et,global as ot}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xfde7da,ClickObserver as _0x46b2f1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1b023c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x528eb8,ButtonView as _0x37c695,View as _0xf9108b,ViewCollection as _0x44558e,FocusCycler as _0x1e2e91,addKeyboardHandlingForGrid as _0x34cdf8,CollapsibleView as _0x4a1638,LabeledFieldView as tt,createLabeledInputNumber as st,ContextualBalloon as _0x45a7bd,BalloonPanelView as _0x33377f,createDropdown as _0x4519ce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5eae8f,IconListStyleDecimal as _0x437365,IconListStyleDecimalLeadingZero as _0x4025d5,IconListStyleLowerRoman as _0x50417e,IconListStyleUpperRoman as _0x18d6e3,IconListStyleLowerLatin as _0x2868d1,IconListStyleUpperLatin as _0x317054}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x273550,_0x299146){this['_model']=_0x273550,this['_elementName']=_0x299146['elementName'],this['_getElementKey']=_0x299146['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3476ac){const _0x16a989=new Set(),_0x431d27=new Map();for(const _0x305f64 of _0x3476ac){if('insert'===_0x305f64['type']&&'$text'!==_0x305f64['name']&&_0x305f64['position']['nodeAfter']){const _0x572a05=this['_model']['createRangeOn'](_0x305f64['position']['nodeAfter']);for(const _0x839f8 of _0x572a05['getItems']()){if(!_0x839f8['is']('element',this['_elementName']))continue;const _0x32b38c=this['_getElementKey'](_0x839f8);_0x431d27['has'](_0x32b38c)||_0x431d27['set'](_0x32b38c,[]),_0x431d27['get'](_0x32b38c)['push'](_0x839f8);}}if('remove'===_0x305f64['type']&&_0x305f64['name']===this['_elementName']){const _0x2ad0da=this['_getElementKey']({'getAttribute':_0x180417=>_0x305f64['attributes']['get'](_0x180417)});_0x16a989['add'](_0x2ad0da);}}for(const [_0x1eb524,_0x2fd420]of this['_trackedElements'])'$graveyard'===_0x2fd420['root']['rootName']&&_0x16a989['add'](_0x1eb524);for(const _0x30ff8a of _0x16a989)this['_trackedElements']['delete'](_0x30ff8a);for(const [_0x63c77d,_0xd01e6e]of _0x431d27)this['_trackedElements']['set'](_0x63c77d,_0xd01e6e[_0xd01e6e['length']-0x1]);const _0x29167d=new Set();for(const [_0xf44454,_0x5c1d63]of _0x431d27)_0x16a989['has'](_0xf44454)&&(_0x29167d['add'](_0x5c1d63[0x0]),_0x5c1d63['length']>0x1?_0x431d27['set'](_0xf44454,_0x5c1d63['slice'](0x1)):_0x431d27['delete'](_0xf44454),_0x16a989['delete'](_0xf44454));return{'removed':Array['from'](_0x16a989),'inserted':Array['from'](_0x431d27['values']())['flat'](),'moved':Array['from'](_0x29167d)};}}class c extends _0x381f4b{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24b10b){super(_0x24b10b),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x8ae00d=>_0x8ae00d['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3cd929=>_0x3cd929['getAttribute']('footnoteId')});}['init'](){const {editor:_0x30af4e}=this,{model:_0x3e3bb5,data:_0x4d2f27}=_0x30af4e;_0x3e3bb5['document']['registerPostFixer'](_0x5d50b3=>{const _0x46f2a6=_0x3e3bb5['document']['differ']['getChanges']();let _0x430ae2=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5d50b3,_0x46f2a6)&&(_0x430ae2=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5d50b3,_0x46f2a6)&&(_0x430ae2=!0x0),this['_handleFootnoteReferencesChanges'](_0x5d50b3,_0x46f2a6)&&(_0x430ae2=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5d50b3)&&(_0x430ae2=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5d50b3)&&(_0x430ae2=!0x0),this['_sortFootnoteDefinitions'](_0x5d50b3)&&(_0x430ae2=!0x0),_0x430ae2;}),this['listenTo'](_0x3e3bb5['document'],'change:data',()=>{_0x3e3bb5['enqueueChange']({'isUndoable':!0x1},_0x347295=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x347295);});},{'priority':'low'}),this['listenTo'](_0x4d2f27,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3d76cd){return this['_footnotes']['find'](_0x133353=>_0x133353['id']===_0x3d76cd)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x33b4fd){this['_footnoteFormatter']=_0x33b4fd;}['_updateFootnotesCounters'](_0x2931f9,_0x1cd4da=0x0){let _0x4ca9a4=!0x1;for(let _0x4ad934=_0x1cd4da;_0x4ad934<this['_footnotes']['length'];_0x4ad934++)this['_updateFootnoteRefCounter'](_0x2931f9,_0x4ad934)&&(_0x4ca9a4=!0x0);return _0x4ca9a4;}['_insertEmptyFootnotesDefinitionsContainer'](_0x45ad99,_0x2f04c6){const _0x49ebe6=_0x45ad99['createElement']('footnotesDefinitions',{});return _0x45ad99['append'](_0x49ebe6,_0x2f04c6),this['_footnotesDefinitions']=_0x49ebe6,_0x49ebe6;}['_ensureFootnotesDefinitionsContainerExists'](_0xbcb258){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x254fbe=this['_footnotes'][0x0]['reference']['root'],_0x51d4cf=this['_insertEmptyFootnotesDefinitionsContainer'](_0xbcb258,_0x254fbe);for(const _0x1b7530 of this['_footnotes'])_0x1b7530['definition']['parent']||_0xbcb258['insert'](_0x1b7530['definition'],_0x51d4cf,'end');this['_updateFootnotesCounters'](_0xbcb258);}['_handleFootnotesDefinitionsObjectChanges'](_0x5ec8ce,_0x5ee677){let _0x5d439a=!0x1;const {inserted:_0x357ae1,removed:_0x3a1fec,moved:_0x261565}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5ee677);if(_0x261565['length']&&(this['_footnotesDefinitions']=_0x261565[0x0]),_0x357ae1['length']){if(_0x357ae1['length']>0x1||this['_footnotesDefinitions']&&_0x357ae1['some'](_0x403b90=>_0x403b90!==this['_footnotesDefinitions'])){const _0x35f044=_0x5ec8ce['createElement']('footnotesDefinitions',{}),_0x1944d0=[];this['_footnotesDefinitions']&&_0x1944d0['push'](this['_footnotesDefinitions']),_0x1944d0['push'](..._0x357ae1),_0x5ec8ce['insert'](_0x35f044,_0x1944d0[0x0],'before');for(const _0x3156de of _0x1944d0)_0x5ec8ce['move'](_0x5ec8ce['createRangeIn'](_0x3156de),_0x5ec8ce['createPositionAt'](_0x35f044,'end')),_0x5ec8ce['remove'](_0x3156de);this['_footnotesDefinitions']=_0x35f044,this['_updateFootnotesCounters'](_0x5ec8ce),_0x5d439a=!0x0;}else this['_footnotesDefinitions']=_0x357ae1[0x0];}if(_0x3a1fec['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2e6678 of this['_footnotes'])_0x5ec8ce['remove'](_0x2e6678['reference']),_0x5d439a=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5d439a;}['_handleFootnoteDefinitionsChanges'](_0x2933c7,_0x2530f7){let _0x14d73b=!0x1;const _0x3db977=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x131b23,moved:_0x2068f1}=this['_footnoteDefsTracker']['getChanges'](_0x2530f7);for(const _0x4f0fa5 of[..._0x2068f1,..._0x131b23]){const _0x4cfe9c=_0x4f0fa5['getAttribute']('footnoteId'),_0x2a2359=this['getFootnote'](_0x4cfe9c);_0x2a2359&&(_0x2a2359['definition']=_0x4f0fa5),_(_0x2933c7,_0x3db977,_0x4f0fa5)&&(_0x14d73b=!0x0);}return _0x14d73b;}['_handleFootnoteReferencesChanges'](_0x3dbcb6,_0x48306f){let _0x3598d1=!0x1;const {removed:_0x596f91,inserted:_0x275423,moved:_0xf8a934}=this['_footnoteRefsTracker']['getChanges'](_0x48306f);for(const _0x273cc9 of _0x596f91)this['_handleRemoveFootnoteReferenceById'](_0x3dbcb6,_0x273cc9)&&(_0x3598d1=!0x0);for(const _0x14322f of _0x275423)this['_handleInsertedFootnoteReference'](_0x3dbcb6,_0x14322f)&&(_0x3598d1=!0x0);for(const _0x293ca9 of _0xf8a934)this['_handleMovedFootnoteReference'](_0x3dbcb6,_0x293ca9)&&(_0x3598d1=!0x0);return _0x3598d1;}['_handleFootnotesDefinitionsObjectSync'](_0x34ce57){if(!this['_footnotesDefinitions'])return!0x1;let _0xd1f0bb=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5c3a05=[];for(const _0x352516 of this['_footnotesDefinitions']['getChildren']()){const _0x5656e1=_0x352516['getAttribute']('footnoteId');this['getFootnote'](_0x5656e1)||(_0x5c3a05['unshift'](_0x352516),_0xd1f0bb=!0x0);}for(const _0x35853 of _0x5c3a05)_0x34ce57['remove'](_0x35853);}const _0x4136f2=new Set(),_0x5b36db=[];for(const _0x476fe4 of this['_footnotesDefinitions']['getChildren']()){const _0x22719f=_0x476fe4['getAttribute']('footnoteId');_0x4136f2['has'](_0x22719f)?(_0x5b36db['unshift'](_0x476fe4),_0xd1f0bb=!0x0):_0x4136f2['add'](_0x22719f);}for(const _0x2c4074 of _0x5b36db)_0x34ce57['remove'](_0x2c4074);return this['_footnotesDefinitions']['childCount']||(_0x34ce57['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xd1f0bb=!0x0),_0xd1f0bb;}['_handleInsertedFootnoteReference'](_0x5adb15,_0x2a3461){if(this['_footnotes']['find'](_0x31a338=>_0x31a338['reference']===_0x2a3461))return!0x1;let _0x805f35=!0x1;const _0x3f065d=_0x2a3461['getAttribute']('footnoteId'),_0x26231a=this['getFootnote'](_0x3f065d);_0x26231a&&(_0x5adb15['remove'](_0x26231a['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x1e3911=>_0x1e3911['id']!==_0x3f065d),_0x805f35=!0x0);let _0x4524d6=this['_footnotesDefinitions']?function(_0x5dffdc,_0x4013ca){for(const _0x536319 of _0x5dffdc['getChildren']())if(_0x536319['getAttribute']('footnoteId')===_0x4013ca)return _0x536319;return null;}(this['_footnotesDefinitions'],_0x3f065d):null;_0x4524d6||(_0x4524d6=_0x5adb15['createElement']('footnoteDefinition',{'footnoteId':_0x3f065d}),this['_footnotesDefinitions']&&(_0x5adb15['insert'](_0x4524d6,this['_footnotesDefinitions'],'end'),_0x805f35=!0x0));const _0xeb5adc={'id':_0x3f065d,'reference':_0x2a3461,'definition':_0x4524d6},_0x34b50a=I(this['editor']['model'],this['_footnotes'],_0x2a3461);return this['_footnotes']['splice'](_0x34b50a,0x0,_0xeb5adc),this['_updateFootnotesCounters'](_0x5adb15,_0x34b50a)&&(_0x805f35=!0x0),_0x805f35;}['_handleRemoveFootnoteReferenceById'](_0x214935,_0x82a8bd){const _0x1758da=this['_footnotes']['findIndex'](_0x5696ef=>_0x5696ef['id']===_0x82a8bd);if(-0x1===_0x1758da)return!0x1;let _0x5b7dd2=!0x1;const _0x2f2a37=this['_footnotes'][_0x1758da];return'$graveyard'!==_0x2f2a37['definition']['root']['rootName']&&(_0x214935['remove'](_0x2f2a37['definition']),_0x5b7dd2=!0x0),this['_footnotes']['splice'](_0x1758da,0x1),this['_updateFootnotesCounters'](_0x214935,_0x1758da)&&(_0x5b7dd2=!0x0),_0x5b7dd2;}['_handleMovedFootnoteReference'](_0x1d0e71,_0x3dd93){const _0x2a74bc=_0x3dd93['getAttribute']('footnoteId'),_0x322501=this['_footnotes']['findIndex'](_0x1d55cb=>_0x1d55cb['id']===_0x2a74bc),_0x2ad0cd=this['_footnotes'][_0x322501];let _0x3a8a47=!0x1;_0x2ad0cd['reference']=_0x3dd93,this['_footnotes']['splice'](_0x322501,0x1);const _0x3bf2f5=I(this['editor']['model'],this['_footnotes'],_0x3dd93);return this['_footnotes']['splice'](_0x3bf2f5,0x0,_0x2ad0cd),this['_updateFootnotesCounters'](_0x1d0e71,Math['min'](_0x322501,_0x3bf2f5))&&(_0x3a8a47=!0x0),_0x3a8a47;}['_updateFootnoteRefCounter'](_0x2e4e66,_0x1c1783){if(!this['_footnotesDefinitions'])return!0x1;const _0x40c2f5=this['_footnotes'][_0x1c1783];let _0x191326;return _0x191326=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x40c2f5,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1c1783+0x1}):String(_0x1c1783+0x1),_0x40c2f5['reference']['getAttribute']('footnoteCounter')!=_0x191326&&(_0x2e4e66['setAttribute']('footnoteCounter',_0x191326,_0x40c2f5['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4c7028){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5925d1,_0x969c2e){if(_0x5925d1['length']!==_0x969c2e['length'])return!0x1;for(let _0x2e930c=0x0;_0x2e930c<_0x5925d1['length'];_0x2e930c++)if(_0x5925d1[_0x2e930c]!==_0x969c2e[_0x2e930c])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x12ead1=>_0x12ead1['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5058c1=>_0x5058c1['getAttribute']('footnoteId'))))return!0x1;let _0x1f465d=!0x1;for(let _0x3b2302=0x0;_0x3b2302<this['_footnotes']['length'];_0x3b2302++){const _0xd2eac3=this['_footnotes'][_0x3b2302],_0xa3aa2a=_0x4c7028['createPositionBefore'](_0xd2eac3['definition']),_0xbe9c6b=_0x4c7028['createPositionAt'](this['_footnotesDefinitions'],_0x3b2302);_0xa3aa2a['isEqual'](_0xbe9c6b)||(_0x4c7028['move'](_0x4c7028['createRangeOn'](_0xd2eac3['definition']),_0xbe9c6b),_0x1f465d=!0x0);}return _0x1f465d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x1b4685){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1fe1ef}=this['editor'];let _0x2ce830=!0x1;for(let _0x1ca628=0x0;_0x1ca628<this['_footnotes']['length']-0x1;_0x1ca628++){const _0x9bc768=this['_footnotes'][_0x1ca628],_0x500a11=this['_footnotes'][_0x1ca628+0x1],_0x3a0432=_0x1fe1ef['createPositionBefore'](_0x9bc768['reference']),_0x3228d9=_0x1fe1ef['createPositionBefore'](_0x500a11['reference']);'after'===_0x3a0432['compareWith'](_0x3228d9)&&(this['_handleMovedFootnoteReference'](_0x1b4685,_0x9bc768['reference']),_0x1ca628=-0x1,_0x2ce830=!0x0);}return _0x2ce830;}}function _(_0x53cde2,_0x19f3c4,_0x3ed0ea){if(_0x3ed0ea['childCount'])return!0x1;const _0x45b5bb=_0x19f3c4?'paragraph':'footnoteInlineContent';return _0x53cde2['insert'](_0x53cde2['createElement'](_0x45b5bb),_0x3ed0ea),!0x0;}function I(_0x23094f,_0x302c5f,_0x2f7d03){if(0x0===_0x302c5f['length'])return 0x0;const _0x1462e3=_0x23094f['createPositionBefore'](_0x2f7d03);for(let _0x4791b0=0x0;_0x4791b0<_0x302c5f['length'];_0x4791b0++){const _0x42449c=_0x302c5f[_0x4791b0],_0x343d12=_0x23094f['createPositionBefore'](_0x42449c['reference']);if('before'===_0x1462e3['compareWith'](_0x343d12))return _0x4791b0;}const _0x28ea0f=_0x2f7d03['root'];let _0x5ddd22=-0x1;for(let _0x85d504=_0x302c5f['length']-0x1;_0x85d504>=0x0;_0x85d504--)if(_0x302c5f[_0x85d504]['reference']['root']===_0x28ea0f){_0x5ddd22=_0x85d504;break;}if(-0x1!==_0x5ddd22)return _0x5ddd22+0x1;const _0x2515f0=_0x23094f['document']['getRootNames'](),_0x4dd0fe=_0x2515f0['indexOf'](_0x28ea0f['rootName']),_0x2ad486=_0x2515f0[_0x4dd0fe+0x1];if(_0x2ad486){for(let _0x1625ab=0x0;_0x1625ab<_0x302c5f['length'];_0x1625ab++)if(_0x302c5f[_0x1625ab]['reference']['root']['rootName']===_0x2ad486)return _0x1625ab;}return _0x302c5f['length'];}class w extends _0x180100{['refresh'](){const _0x57e23c=this['editor']['model']['document']['selection'],_0x20e1b7=this['_getPositionToInsertFootnote'](_0x57e23c);this['isEnabled']=!!_0x20e1b7;}['execute'](_0x585b41){const {editor:_0x357515}=this,{model:_0xa7f8d1}=_0x357515,{selection:_0x5f4c8f}=_0xa7f8d1['document'],_0x4c51b8=this['_getPositionToInsertFootnote'](_0x5f4c8f);if(!_0x4c51b8)return;const _0x540bc3=_0x357515['plugins']['get']('FootnotesEditing'),_0x5317de=_0x585b41?.['footnoteId']??_0x204d37();!function(_0x8c3fda){return'string'==typeof _0x8c3fda&&_0x8c3fda['length']>0x0&&!/\s/['test'](_0x8c3fda)&&!/^\d/['test'](_0x8c3fda);}(_0x5317de)?_0x204d57('insert-footnote-command-executed-with-invalid-id'):(_0xa7f8d1['change'](_0x4e027c=>{const _0x38655d=_0x4e027c['createElement']('footnoteRef',{'footnoteId':_0x5317de});_0xa7f8d1['insertObject'](_0x38655d,_0x4c51b8,null);}),_0x540bc3['_moveSelectionToFootnoteDefinition'](_0x5317de));}['_getPositionToInsertFootnote'](_0x1f5287){const {model:_0x1b4bcf}=this['editor'],{schema:_0x47eb01}=_0x1b4bcf,_0x3fb384=_0x1f5287['getFirstRange']();for(const _0xedf323 of _0x3fb384['getItems']())if(_0x47eb01['isBlock'](_0xedf323)||_0x47eb01['isObject'](_0xedf323))return null;const _0x31e5e0=_0x3fb384['end'];return _0x47eb01['checkChild'](_0x31e5e0,'footnoteRef')?_0x31e5e0:null;}}class r extends _0x381f4b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5e0871}=this;_0x5e0871['config']['define']('footnotes.multiBlock',!0x0),_0x5e0871['commands']['add']('insertFootnote',new w(_0x5e0871)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x26852b){const _0x4e49f=_0x140651([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x32c943=0x47a28506,_0x3d4c15=0x47a5f3a6^_0x32c943,_0x5afed0=window[_0x140651([0x44,0x61,0x74,0x65])][_0x140651([0x6e,0x6f,0x77])](),_0x17d5fe=_0x26852b[_0x140651([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11bb98=new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a509f=>{_0x17d5fe[_0x140651([0x6f,0x6e,0x63,0x65])](_0x140651([0x72,0x65,0x61,0x64,0x79]),_0x2a509f);}),_0x442dea={[_0x140651([0x6b,0x74,0x79])]:_0x140651([0x45,0x43]),[_0x140651([0x75,0x73,0x65])]:_0x140651([0x73,0x69,0x67]),[_0x140651([0x63,0x72,0x76])]:_0x140651([0x50,0x2d,0x32,0x35,0x36]),[_0x140651([0x78])]:_0x140651([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x140651([0x79])]:_0x140651([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x140651([0x61,0x6c,0x67])]:_0x140651([0x45,0x53,0x32,0x35,0x36])},_0x45b716=_0x17d5fe[_0x140651([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x140651([0x67,0x65,0x74])](_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x526d60(){let _0x114924,_0x3433c9=null,_0x4f1b87=null;try{if(_0x45b716==_0x140651([0x47,0x50,0x4c]))return _0x140651([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x114924=_0x2f0106(),!_0x114924)return _0x140651([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x114924[_0x140651([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f1b87=_0x13594c(_0x114924[_0x140651([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x114924[_0x140651([0x6a,0x74,0x69])])),await _0x234449()?_0x49af2f()?_0x26e1f1()?_0x140651([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1709cb()?(_0x114924[_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x140651([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3433c9=_0x18110d(_0x140651([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x114924[_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x140651([0x74,0x72,0x69,0x61,0x6c])&&(_0x3433c9=_0x18110d(_0x140651([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x281e0f()):_0x140651([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x140651([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x140651([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x140651([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26e1f1(){const _0x9f5b49=[_0x140651([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x140651([0x74,0x72,0x69,0x61,0x6c])][_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x114924[_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5afed0/0x3e8:0xe10*_0x3d4c15;return _0x114924[_0x140651([0x65,0x78,0x70])]<_0x9f5b49;}function _0x49af2f(){const _0x167ade=_0x114924[_0x140651([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x167ade&&(!!_0x167ade[_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140651([0x2a]))||!!_0x167ade[_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140651([0x46,0x4f,0x4f])));}function _0x1709cb(){const _0x29fcef=_0x114924[_0x140651([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29fcef||0x0==_0x29fcef[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfe6bb}=new URL(window[_0x140651([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29fcef[_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfe6bb))return!0x0;const _0xe32e5=_0xfe6bb[_0x140651([0x73,0x70,0x6c,0x69,0x74])](_0x140651([0x2e]));return _0x29fcef[_0x140651([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23c0e9=>_0x23c0e9[_0x140651([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140651([0x2a])))[_0x140651([0x6d,0x61,0x70])](_0x4bca3f=>_0x4bca3f[_0x140651([0x73,0x70,0x6c,0x69,0x74])](_0x140651([0x2e])))[_0x140651([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d8e21=>_0x1d8e21[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe32e5[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x140651([0x6d,0x61,0x70])](_0x36347c=>Array(_0xe32e5[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36347c[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x140651([0x66,0x69,0x6c,0x6c])](_0x36347c[0x0]===_0x140651([0x2a])?_0x140651([0x2a]):'')[_0x140651([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36347c))[_0x140651([0x73,0x6f,0x6d,0x65])](_0x6b1410=>_0xe32e5[_0x140651([0x65,0x76,0x65,0x72,0x79])]((_0x133180,_0x5cb714)=>_0x6b1410[_0x5cb714]===_0x133180||_0x6b1410[_0x5cb714]===_0x140651([0x2a])));}function _0x281e0f(){return _0x3433c9&&_0x4f1b87?new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29d8aa,_0x1ddcf8)=>{_0x3433c9[_0x140651([0x74,0x68,0x65,0x6e])](_0x29d8aa,_0x1ddcf8),_0x4f1b87[_0x140651([0x74,0x68,0x65,0x6e])](_0x1d4eed=>{_0x1d4eed!=_0x140651([0x56,0x61,0x6c,0x69,0x64])&&_0x29d8aa(_0x1d4eed);},_0x1ddcf8);}):_0x3433c9||_0x4f1b87||_0x140651([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13594c(_0x1e10b6,_0x670c1f){return new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x841ff7=>{if(_0xc1ac87())return _0x841ff7(_0x140651([0x56,0x61,0x6c,0x69,0x64]));_0x3afb51(),_0x17d5fe[_0x140651([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x140651([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5de218=!0x1;const _0x48ae32=_0x204d37();function _0x117769(_0x348991){return!!_0x348991&&(typeof _0x348991===_0x140651([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x348991===_0x140651([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x348991[_0x140651([0x74,0x68,0x65,0x6e])]===_0x140651([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x348991[_0x140651([0x63,0x61,0x74,0x63,0x68])]===_0x140651([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbda430(_0x2e197e){_0x3c0903(_0x2e197e)[_0x140651([0x74,0x68,0x65,0x6e])](_0x2570cc=>{if(!_0x2570cc||_0x2570cc[_0x140651([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x140651([0x6f,0x6b]))return _0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b236b(_0x5564d8(_0x48ae32+_0x670c1f))!=_0x2570cc[_0x140651([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x140651([0x56,0x61,0x6c,0x69,0x64]);})[_0x140651([0x74,0x68,0x65,0x6e])](_0xbc2799=>(_0x6a652b(),_0xbc2799),()=>{const _0x74ea0f=_0x22bd44();return null==_0x74ea0f?(_0x6a652b(),_0x140651([0x56,0x61,0x6c,0x69,0x64])):_0x140651(_0x5afed0-_0x74ea0f>(0x63ae0106^_0x32c943)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x140651([0x74,0x68,0x65,0x6e])](_0x841ff7)[_0x140651([0x63,0x61,0x74,0x63,0x68])](()=>{_0x841ff7(_0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xef4b33=0x47946b86^_0x32c943;function _0x6a652b(){const _0x1e3ed7=_0x140651([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b236b(_0x5564d8(_0x1e10b6)),_0x3c98c2=_0x1216a8(_0x5b236b(window[_0x140651([0x4d,0x61,0x74,0x68])][_0x140651([0x63,0x65,0x69,0x6c])](_0x5afed0/_0xef4b33)));window[_0x140651([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x140651([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e3ed7,_0x3c98c2);}function _0x22bd44(){const _0x465ede=_0x140651([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b236b(_0x5564d8(_0x1e10b6)),_0x4152d5=window[_0x140651([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x140651([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x465ede);return _0x4152d5?window[_0x140651([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1216a8(_0x4152d5),0x10)*_0xef4b33:null;}function _0x3c0903(_0x1e58fd){return new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x329a12,_0x5257e2)=>{_0x1e58fd[_0x140651([0x74,0x68,0x65,0x6e])](_0x329a12,_0x5257e2),window[_0x140651([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5257e2,0x47a351c6^_0x32c943);});}}_0x17d5fe[_0x140651([0x6f,0x6e])](_0x140651([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x500086,_0x3b0a33)=>{if(_0x3b0a33[0x0]!=_0x1e10b6)return _0x841ff7(_0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b0a33[0x1]={..._0x3b0a33[0x1],[_0x140651([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48ae32};},{[_0x140651([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x140651([0x68,0x69,0x67,0x68])}),_0x17d5fe[_0x140651([0x6f,0x6e])](_0x140651([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x342cfa=>{_0x117769(_0x342cfa[_0x140651([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5de218=!0x0,_0xbda430(_0x342cfa[_0x140651([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x140651([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x140651([0x6c,0x6f,0x77])}),_0x11bb98[_0x140651([0x74,0x68,0x65,0x6e])](()=>{_0x5de218||_0x841ff7(_0x140651([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc1ac87(){return _0x17d5fe[_0x140651([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x140651([0x76,0x69,0x65,0x77])][_0x140651([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x140651([0x61,0x75,0x74,0x6f]);}function _0x3afb51(){_0x17d5fe[_0x140651([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x140651([0x76,0x69,0x65,0x77])][_0x140651([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x140651([0x61,0x75,0x74,0x6f]);}}function _0x18110d(_0x1a638d){const _0x12dac5=[new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b36e9=>setTimeout(_0x4b36e9,0x47abbbca^_0x32c943)),_0x11bb98[_0x140651([0x74,0x68,0x65,0x6e])](()=>new window[(_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d85f=>{let _0x8c1b2e=0x0;_0x17d5fe[_0x140651([0x6d,0x6f,0x64,0x65,0x6c])][_0x140651([0x6f,0x6e])](_0x140651([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a9122,_0x244fe3)=>{_0x244fe3[0x0][_0x140651([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8c1b2e++,_0x8c1b2e==(0x47a284fe^_0x32c943)&&(_0x54d85f(),_0x4a9122[_0x140651([0x6f,0x66,0x66])]());});}))];return window[_0x140651([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x140651([0x72,0x61,0x63,0x65])](_0x12dac5)[_0x140651([0x74,0x68,0x65,0x6e])](()=>_0x1a638d);}async function _0x3cc0a0(){await _0x11bb98,_0x17d5fe[_0x140651([0x6d,0x6f,0x64,0x65,0x6c])][_0x140651([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf5988b,_0x17d5fe[_0x140651([0x6d,0x6f,0x64,0x65,0x6c])][_0x140651([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf5988b,_0x17d5fe[_0x140651([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x140651([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa51ae3(_0x4c1e59){const _0x44a148=_0x3bac5f();_0x17d5fe[_0x44a148]=_0x140651([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c1e59,_0x4c1e59!=_0x140651([0x56,0x61,0x6c,0x69,0x64])&&_0x3cc0a0();}function _0x3bac5f(){const _0xb9bc74=window[_0x140651([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x140651([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x140651([0x6e,0x6f,0x77])]())[_0x140651([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x140651([0x2e]),'');let _0x4dd3b7=_0x140651([0x75]);for(let _0x364ade=0x0;_0x364ade<_0xb9bc74[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x364ade+=0x2){let _0x37ce20=window[_0x140651([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9bc74[_0x140651([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x364ade,_0x364ade+0x2));_0x37ce20>=_0x4e49f[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37ce20-=_0x4e49f[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4dd3b7+=_0x4e49f[_0x37ce20];}return _0x4dd3b7;}function _0x2f0106(){const _0x3548d2=_0x45b716[_0x140651([0x73,0x70,0x6c,0x69,0x74])](_0x140651([0x2e]));if(0x3!=_0x3548d2[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x427b7b(_0x3548d2[0x1]);function _0x427b7b(_0x24935f){const _0x1cfb76=_0x55c5df(_0x24935f);return _0x1cfb76&&_0x4cbfbb()?_0x1cfb76:null;function _0x4cbfbb(){const _0x3b049b=_0x1cfb76[_0x140651([0x6a,0x74,0x69])],_0x460026=window[_0x140651([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b049b[_0x140651([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b049b[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x543261={..._0x1cfb76,[_0x140651([0x6a,0x74,0x69])]:_0x3b049b[_0x140651([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b049b[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x543261[_0x140651([0x76,0x63])],_0x5564d8(_0x543261)==_0x460026;}}}async function _0x234449(){let _0x1e9c99=!0x0;try{const _0x40db4b=_0x45b716[_0x140651([0x73,0x70,0x6c,0x69,0x74])](_0x140651([0x2e])),[_0x1454aa,_0xdea782,_0x1f886d]=_0x40db4b;return _0x4e5cb3(_0x1454aa),await _0x3d3993(_0x1454aa,_0xdea782,_0x1f886d),_0x1e9c99;}catch{return!0x1;}function _0x4e5cb3(_0x5de5bc){const _0x31d953=_0x55c5df(_0x5de5bc);_0x31d953&&_0x31d953[_0x140651([0x61,0x6c,0x67])]==_0x140651([0x45,0x53,0x32,0x35,0x36])||(_0x1e9c99=!0x1);}async function _0x3d3993(_0x4bf868,_0x219a39,_0x564ab5){const _0x17edc6=window[_0x140651([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x140651([0x66,0x72,0x6f,0x6d])](_0x27dff3(_0x564ab5),_0x1d7ec3=>_0x1d7ec3[_0x140651([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d26fe=new window[(_0x140651([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x140651([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4bf868+_0x140651([0x2e])+_0x219a39),_0x5162d1=window[_0x140651([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x140651([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5162d1)return;const _0x110baf=await _0x5162d1[_0x140651([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x140651([0x6a,0x77,0x6b]),_0x442dea,{[_0x140651([0x6e,0x61,0x6d,0x65])]:_0x140651([0x45,0x43,0x44,0x53,0x41]),[_0x140651([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x140651([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x140651([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5162d1[_0x140651([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x140651([0x6e,0x61,0x6d,0x65])]:_0x140651([0x45,0x43,0x44,0x53,0x41]),[_0x140651([0x68,0x61,0x73,0x68])]:{[_0x140651([0x6e,0x61,0x6d,0x65])]:_0x140651([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x110baf,_0x17edc6,_0x3d26fe)||(_0x1e9c99=!0x1);}}function _0x55c5df(_0x585a42){return _0x585a42[_0x140651([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x140651([0x65,0x79]))?JSON[_0x140651([0x70,0x61,0x72,0x73,0x65])](_0x27dff3(_0x585a42)):null;}function _0x27dff3(_0x27b6bf){return window[_0x140651([0x61,0x74,0x6f,0x62])](_0x27b6bf[_0x140651([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x140651([0x2b]))[_0x140651([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x140651([0x2f])));}function _0x5564d8(_0x31d41d){let _0x517218=0x1505;function _0x29a876(_0x46d70f){for(let _0x2be509=0x0;_0x2be509<_0x46d70f[_0x140651([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2be509++){const _0x4f2798=_0x46d70f[_0x140651([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2be509);_0x517218=(_0x517218<<0x5)+_0x517218+_0x4f2798,_0x517218&=_0x517218;}}function _0x30c197(_0x474b9a){Array[_0x140651([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x474b9a)?_0x474b9a[_0x140651([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30c197):_0x474b9a&&typeof _0x474b9a==_0x140651([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x140651([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x474b9a)[_0x140651([0x73,0x6f,0x72,0x74])]()[_0x140651([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12b1cd,_0x45416e])=>{_0x29a876(_0x12b1cd),_0x30c197(_0x45416e);}):_0x29a876(window[_0x140651([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x474b9a));}return _0x30c197(_0x31d41d),_0x517218>>>0x0;}function _0x5b236b(_0x4b460c){return _0x4b460c[_0x140651([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x140651([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x140651([0x30]));}function _0x1216a8(_0x506fee){return _0x506fee[_0x140651([0x73,0x70,0x6c,0x69,0x74])]('')[_0x140651([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x140651([0x6a,0x6f,0x69,0x6e])]('');}function _0xf5988b(){}function _0x140651(_0xbdbc4e){return _0xbdbc4e['map'](_0x41160f=>String['fromCharCode'](_0x41160f))['join']('');}_0xa51ae3(await _0x526d60());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2c2af4){const {plugins:_0x53f59a,editing:_0x51278b,model:_0x4629f6}=this['editor'],_0x46425d=_0x53f59a['get'](c)['getFootnote'](_0x2c2af4);return!!_0x46425d&&(_0x4629f6['change'](_0x96d3a9=>{_0x96d3a9['setSelection'](_0x96d3a9['createPositionAt'](_0x46425d['definition'],'end'));}),_0x51278b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2e2731){const {plugins:_0x15442d,editing:_0x48991c,model:_0x37b381}=this['editor'],_0x4be2f3=_0x15442d['get'](c)['getFootnote'](_0x2e2731);return!!_0x4be2f3&&(_0x37b381['change'](_0x472718=>{_0x472718['setSelection'](_0x4be2f3['reference'],'on');}),_0x48991c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2cd47f}=this['editor']['model'],_0x3ee39f=this['editor']['config']['get']('footnotes.multiBlock');_0x2cd47f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2cd47f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2cd47f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3ee39f?_0x2cd47f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2cd47f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2cd47f['addChildCheck'](_0x49985a=>{for(const _0x5b429f of _0x49985a)if('footnoteDefinition'===_0x5b429f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x218de3}=this,{conversion:_0x306c9d,editing:_0x4a4aa2}=_0x218de3,{t:t}=_0x218de3['locale'];_0x306c9d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5bb3f0,{writer:_0x44fd98,consumable:_0x2b894d})=>{const _0x33bbe2=_0x5bb3f0['getChild'](0x0);if(!_0x33bbe2||!_0x33bbe2['is']('element','a'))return null;const _0x3ecd38=_0x33bbe2['getAttribute']('href')||'';if(!_0x3ecd38['startsWith']('#'))return null;const _0x4fcd31=_0x3ecd38['replace'](/^#/,'');if(!_0x4fcd31)return null;_0x2b894d['consume'](_0x33bbe2,{'name':!0x0,'attributes':['href']});for(const {item:_0x236bc9}of _0x4a4aa2['view']['createRangeIn'](_0x33bbe2))_0x236bc9['is']('$textProxy')?_0x2b894d['consume'](_0x236bc9['textNode'],{'name':!0x0}):_0x236bc9['is']('element')&&_0x2b894d['consume'](_0x236bc9,{'name':!0x0});return _0x44fd98['createElement']('footnoteRef',{'footnoteId':_0x4fcd31});}}),_0x306c9d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x22c175,{writer:_0x520ccb})=>g(_0x22c175,_0x520ccb)}),_0x306c9d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3540a9,{writer:_0x1ea946})=>{const _0x4bf39f=_0x3540a9['getAttribute']('footnoteCounter');return _0x27240f(g(_0x3540a9,_0x1ea946),_0x1ea946,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4bf39f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x131bee}=this,{t:t}=_0x131bee['locale'],{conversion:_0x101098}=_0x131bee;_0x101098['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x101098['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x101098['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x212785,{writer:_0x4ec8c0})=>{const _0x41fa99=_0x4ec8c0['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x4ec8c0['createContainerElement']('ol',{'class':'footnotes'},_0x4ec8c0['createSlot']())),_0x13208f=_0x27240f(_0x41fa99,_0x4ec8c0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4ec8c0['setCustomProperty']('footnotesDefinitions',!0x0,_0x13208f),_0x13208f;}});}['_defineDefinitionConverters'](){const {editor:_0x341ef6}=this,{conversion:_0x4fbd8e,locale:_0x4579f0}=_0x341ef6,_0x487a62=_0x341ef6['config']['get']('footnotes.multiBlock');_0x4fbd8e['for']('upcast')['add'](_0x4ad634=>{_0x4ad634['on']('element:li',(_0x25e5a9,_0x4f991b,_0x43c047)=>{const _0x2fddec=_0x4f991b['viewItem'];if(!_0x2fddec['hasClass']('footnote-definition')||!_0x2fddec['getAttribute']('id'))return;const _0x46a427=_0x2fddec['parent'];if(!_0x46a427['is']('element','ol')||!_0x46a427['hasClass']('footnotes'))return;if(!_0x43c047['consumable']['test'](_0x2fddec,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xa27550=_0x43c047['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2fddec['getAttribute']('id')});if(!_0x43c047['safeInsert'](_0xa27550,_0x4f991b['modelCursor']))return;_0x43c047['consumable']['consume'](_0x2fddec,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3c8ab7=Array['from'](_0x2fddec['getChildren']())['find'](_0x3ce77b=>_0x3ce77b['is']('element')&&_0x3ce77b['hasClass']('footnote-content'));for(const _0x18aab2 of _0x2fddec['getChildren']())_0x18aab2['is']('element')&&(_0x43c047['consumable']['consume'](_0x18aab2,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x43c047['consumable']['consume'](_0x18aab2,{'name':!0x0,'classes':'footnote-content'}));if(_0x3c8ab7){if(_0x487a62)_0x43c047['convertChildren'](_0x3c8ab7,_0xa27550);else{const _0x26da5c=_0x43c047['writer']['createElement']('footnoteInlineContent');_0x43c047['writer']['insert'](_0x26da5c,_0xa27550),_0x43c047['convertChildren'](_0x3c8ab7,_0x26da5c);}}_0x43c047['updateConversionResult'](_0xa27550,_0x4f991b);});}),_0x4fbd8e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4cc0ce,{writer:_0x44f9e9})=>D(_0x4cc0ce,_0x44f9e9,_0x4579f0,{'dataPipeline':!0x0})}),_0x4fbd8e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24bb85,{writer:_0x18a13f})=>D(_0x24bb85,_0x18a13f,_0x4579f0)});}['_defineBogusParagraphConverters'](){const {editor:_0x130499}=this,{conversion:_0x316ec1}=_0x130499;_0x130499['config']['get']('footnotes.multiBlock')?(_0x316ec1['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x316ec1['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x130499['model']['document'],'change:data',()=>{!function(_0xcc81a7,_0x3dca53){const _0x4e2708=_0xcc81a7['document']['differ'],_0x25b7d6=new Set();for(const _0x1a2159 of _0x4e2708['getChanges']()){const _0x96d283='attribute'==_0x1a2159['type']?_0x1a2159['range']['start']['parent']:_0x1a2159['position']['parent'];_0x96d283['is']('element','footnoteDefinition')&&_0x25b7d6['add'](_0x96d283);}for(const _0x29697f of _0x25b7d6['values']()){const _0x3ab395=Array['from'](_0x29697f['getChildren']())['filter'](_0x340875=>p(_0x340875,_0x3dca53['mapper']));for(const _0x13e0d1 of _0x3ab395)_0x3dca53['reconvertItem'](_0x13e0d1);}}(_0x130499['model'],_0x130499['editing']);})):(_0x316ec1['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x316ec1['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3656c1,{writer:_0x510c2d})=>{const _0x1e3601=_0x510c2d['createContainerElement']('span');return _0x510c2d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1e3601),_0x1e3601;}}));}['_defineKeyboardHandlers'](){const {editor:_0x467cf6}=this,{editing:_0x8deffc,t:t}=_0x467cf6,_0x209562=_0x467cf6['model']['document']['selection'];_0x467cf6['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x467cf6['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x8deffc['view']['document'],'enter',(_0x468042,_0x2d4c81)=>{const _0x1b2e81=function(_0x336053){const _0x1d3f4b=_0x336053['getSelectedElement']();if(_0x1d3f4b?.['is']('element','footnoteRef'))return _0x1d3f4b;return null;}(_0x209562);if(_0x1b2e81){const _0x90db00=_0x1b2e81['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x90db00),_0x2d4c81['preventDefault'](),_0x468042['stop']();}},{'context':_0x1862ca});}['_defineClickHandlers'](){const {editor:_0x573600}=this,{editing:_0x3531ae}=_0x573600;_0x573600['editing']['view']['addObserver'](_0xfde7da),_0x573600['editing']['view']['addObserver'](_0x46b2f1);let _0x431166=!0x1;this['listenTo'](_0x3531ae['view']['document'],'pointerdown',(_0x376653,_0x1a90e4)=>{const {target:_0x4d8727}=_0x1a90e4,_0x3af5e4=_0x3531ae['view']['document']['selection'];_0x431166=!(!_0x4d8727['is']('element','sup')||!_0x4d8727['hasClass']('footnote'))&&_0x3af5e4['getSelectedElement']()===_0x4d8727;},{'priority':'high'}),this['listenTo'](_0x3531ae['view']['document'],'click',(_0x47da20,_0x12e886)=>{const {target:_0x526a86}=_0x12e886,_0x13cb13=_0x526a86['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x13cb13['slice'](0x1)),_0x47da20['stop'](),_0x12e886['preventDefault']();},{'priority':'high','context':_0x567216=>_0x567216['is']('element','sup')&&_0x567216['hasClass']('footnote')&&_0x431166}),this['listenTo'](_0x3531ae['view']['document'],'click',(_0x5ade61,_0x42901c)=>{const {target:_0x1d9f5e}=_0x42901c;if(!_0x1d9f5e['is']('element','a'))return;let _0x423338=_0x1d9f5e['getAttribute']('href');if(!_0x423338?.['startsWith']('#'))return;_0x423338=_0x423338['slice'](0x1);let _0x44a131=!0x1;(_0x423338['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x423338['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x423338))&&(_0x44a131=!0x0),_0x44a131&&(_0x42901c['preventDefault'](),_0x5ade61['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x173450}={}){return(_0x16f6d5,{writer:_0x3bdc48})=>{if(!h(_0x16f6d5))return null;if(!_0x173450)return _0x3bdc48['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4fefc4=_0x3bdc48['createContainerElement']('p');return _0x3bdc48['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4fefc4),_0x4fefc4;};}function h(_0x42e06e){const {parent:_0x4a6be3}=_0x42e06e;if(!_0x4a6be3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4a6be3['childCount'])return!0x1;for(const _0x5b3ccf of _0x42e06e['getAttributeKeys']())if(!_0x5b3ccf['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5b3ccf)return!0x1;return!0x0;}function p(_0x3f8928,_0x1442eb){if(!_0x3f8928['is']('element','paragraph'))return!0x1;const _0xdb5df3=_0x1442eb['toViewElement'](_0x3f8928);return!!_0xdb5df3&&h(_0x3f8928)!==_0xdb5df3['is']('element','span');}function $(_0x118e23){return _0x1862ca(_0x118e23)&&_0x118e23['is']('containerElement')&&!!_0x118e23['getCustomProperty']('footnotesDefinitions');}function g(_0x120a0d,_0x339330){const _0x167a1e=_0x120a0d['getAttribute']('footnoteId'),_0x33fdd2=_0x120a0d['getAttribute']('footnoteCounter'),_0x3c246a=_0x339330['createUIElement']('a',{'id':'ref-'+_0x167a1e,'href':'#'+_0x167a1e},function(_0x325031){const _0x118821=this['toDomElement'](_0x325031);return _0x118821['textContent']=_0x33fdd2,_0x118821;}),_0x105f70=_0x339330['createContainerElement']('sup',{'class':'footnote'},[_0x3c246a]);return _0x105f70['getFillerOffset']=()=>null,_0x105f70;}function D(_0x285332,_0x4d811a,_0x36ad24,{dataPipeline:_0x125281}={}){const {t:t}=_0x36ad24,_0x5acc80=_0x285332['getAttribute']('footnoteId'),_0xb2418f=_0x4d811a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5acc80},function(_0xb8ea21){const _0x3d7a3d=this['toDomElement'](_0xb8ea21);return _0x3d7a3d['innerText']='^',_0x3d7a3d;}),_0x2e4115=_0x125281?_0x4d811a['createContainerElement']('div',{'class':'footnote-content'}):_0x147785(_0x4d811a['createEditableElement']('div',{'class':'footnote-content'}),_0x4d811a,{'label':t('Footnote\x20content.')});return _0x4d811a['insert'](_0x4d811a['createPositionAt'](_0x2e4115,0x0),_0x4d811a['createSlot']()),_0x4d811a['createContainerElement']('li',{'class':'footnote-definition','id':_0x5acc80},[_0xb2418f,_0x2e4115]);}class e extends _0x381f4b{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1b023c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x24cb3e}=this,{plugins:_0x23946e,model:_0x445522}=_0x24cb3e,_0x5e972c=_0x23946e['get'](_0x1b023c),_0x3d035a=_0x23946e['get'](c);this['listenTo'](_0x5e972c,'outputTransformation',(_0x3915dc,_0x2167f7)=>{const _0x463b56=function(_0x496f94,_0xd4624c){const _0x4bb135=new Set();for(const {item:_0x5382c0}of _0x496f94['createRangeIn'](_0xd4624c))_0x5382c0['is']('element','footnoteRef')&&_0x4bb135['add'](_0x5382c0['getAttribute']('footnoteId'));return Array['from'](_0x4bb135);}(_0x445522,_0x2167f7['content']);if(!_0x463b56['length'])return;const _0x5191c3=_0x3d035a['getFootnotes'](),_0x40ba64=_0x463b56['reduce']((_0x1bcf0a,_0x148fef)=>{const _0xdfad00=_0x5191c3['find'](_0x26af7c=>_0x26af7c['id']===_0x148fef);if(_0xdfad00){const _0x34e7ef=_0x24cb3e['data']['toView'](_0xdfad00['definition'],{'isClipboardPipeline':!0x0}),_0x15bada=_0x24cb3e['data']['htmlProcessor']['toData'](_0x34e7ef);_0x1bcf0a[_0xdfad00['id']]=_0x15bada;}return _0x1bcf0a;},Object['create'](null));_0x2167f7['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x40ba64));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x557f8e}=this,{model:_0x20fcc2,plugins:_0xe29be7}=_0x557f8e,{view:_0x5b2c79}=_0x557f8e['editing'],_0x3f64ae=_0xe29be7['get'](_0x1b023c),_0x361536=_0xe29be7['get'](c);let _0x2f3ca2=null;this['listenTo'](_0x5b2c79['document'],'clipboardInput',(_0x120da6,_0x2eef27)=>{const _0x3e2687=_0x2eef27['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2f3ca2=_0x3e2687?JSON['parse'](_0x3e2687):null;}),this['listenTo'](_0x3f64ae,'contentInsertion',(_0x4f910c,_0x17b2e6)=>{if(!_0x2f3ca2)return;const _0x33bff7=_0x17b2e6['sourceEditorId']===this['editor']['id'];_0x33bff7&&'drop'===_0x17b2e6['method']||_0x20fcc2['change'](_0x497503=>{!function(_0x4a9b0c,_0x5aa800){const _0x3e73c6=[];for(const {item:_0x28f695}of _0x4a9b0c['createRangeIn'](_0x5aa800))_0x28f695['is']('element','footnotesDefinitions')&&_0x3e73c6['push'](_0x28f695);for(const _0x38cff1 of _0x3e73c6)_0x4a9b0c['remove'](_0x38cff1);}(_0x497503,_0x17b2e6['content']);let _0xab393f=_0x361536['getFootnotesDefinitionsObjectElement']();if(!_0xab393f){const _0x563acb=_0x20fcc2['document']['selection']['getFirstRange']()['root'];_0xab393f=_0x361536['_insertEmptyFootnotesDefinitionsContainer'](_0x497503,_0x563acb);}const _0x1a3b7c=function(_0x3e21c2,_0x11c8ec,_0x37b071){const _0x4008e9=Object['create'](null);for(const {item:_0x3bdfa0}of _0x3e21c2['createRangeIn'](_0x11c8ec))if(_0x3bdfa0['is']('element','footnoteRef')){const _0x70f8fd=_0x3bdfa0['getAttribute']('footnoteId');if(!_0x37b071(_0x70f8fd))continue;_0x4008e9[_0x70f8fd]||(_0x4008e9[_0x70f8fd]=_0x204d37()),_0x3e21c2['setAttribute']('footnoteId',_0x4008e9[_0x70f8fd],_0x3bdfa0);}return _0x4008e9;}(_0x497503,_0x17b2e6['content'],_0x1f9bef=>!_0x33bff7||null!==_0x361536['getFootnote'](_0x1f9bef));for(const [_0xe65ede,_0x390f01]of Object['entries'](_0x2f3ca2)){const _0x378bd3=_0x1a3b7c[_0xe65ede]||_0xe65ede,_0x51a8c3=_0x497503['createElement']('footnoteDefinition',{'footnoteId':_0x378bd3}),_0x535776=_0x557f8e['data']['htmlProcessor']['toView'](_0x390f01),_0xc05956=_0x557f8e['data']['toModel'](_0x535776,_0x51a8c3);_0x497503['append'](_0xc05956,_0x51a8c3),_0x497503['insert'](_0x51a8c3,_0xab393f,'end');}_0x2f3ca2=null;});});}}class i extends _0x381f4b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x360b9c}=this,{componentFactory:_0x4b9634}=_0x360b9c['ui'];_0x4b9634['add']('insertFootnote',v(_0x360b9c,_0x37c695)),_0x4b9634['add']('menuBar:insertFootnote',v(_0x360b9c,_0x528eb8)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43dc08=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x466685;for(const _0x561057 in _0x43dc08){const _0x23922c=_0x561057,_0x28c4bb=_0x43dc08[_0x23922c];if('footnotesLicenseKeyValid'==_0x28c4bb||'footnotesLicenseKeyInvalid'==_0x28c4bb||'footnotesLicenseKeyExpired'==_0x28c4bb||'footnotesLicenseKeyDomainLimit'==_0x28c4bb||'footnotesLicenseKeyNotAllowed'==_0x28c4bb||'footnotesLicenseKeyEvaluationLimit'==_0x28c4bb||'footnotesLicenseKeyTrialLimit'==_0x28c4bb||'footnotesLicenseKeyUsageLimit'==_0x28c4bb){delete _0x43dc08[_0x23922c],_0x466685=_0x28c4bb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x466685&&_0x43dc08['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x466685&&_0x43dc08['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x466685&&_0x43dc08['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x466685&&_0x43dc08['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x466685&&_0x43dc08['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x466685&&_0x43dc08['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x466685&&_0x43dc08['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x2e7a28,_0x3da6a7){const _0x103567=_0x2e7a28['commands']['get']('insertFootnote');return _0x3e03ff=>{const {t:t}=_0x3e03ff,_0x2f86c2=new _0x3da6a7(_0x3e03ff),_0x51c7f5=_0x2f86c2 instanceof _0x528eb8;return _0x2f86c2['bind']('isEnabled')['to'](_0x103567,'isEnabled'),_0x2f86c2['set']({'label':t(_0x51c7f5?'Footnote':'Insert\x20footnote'),'icon':_0x5eae8f,'tooltip':!0x0}),_0x2f86c2['on']('execute',()=>{_0x103567['execute'](),_0x2e7a28['editing']['view']['focus']();}),_0x2f86c2;};}class nt extends _0x381f4b{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const H=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x180100{['refresh'](){const {editor:_0x7a70dd}=this,_0x10c7d5=_0x7a70dd['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x10c7d5,this['value']=_0x10c7d5?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x522e2a}){const {editor:_0x475392}=this,_0x14c79c=_0x475392['plugins']['get'](c),_0x1988ba=_0x14c79c['getFootnotesDefinitionsObjectElement']();_0x1988ba&&H['includes'](_0x522e2a)&&_0x475392['model']['change'](_0xea9f25=>{_0xea9f25['setAttribute']('footnotesListStyle',_0x522e2a,_0x1988ba),_0x14c79c['_updateFootnotesCounters'](_0xea9f25);});}}class b extends _0x180100{['refresh'](){const {editor:_0x2d9bfd}=this,_0x3d168c=_0x2d9bfd['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3d168c,this['value']=_0x3d168c?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x173c18}){const {editor:_0x3b24e5}=this,_0x7a54dc=_0x3b24e5['plugins']['get'](c),_0x348c18=_0x7a54dc['getFootnotesDefinitionsObjectElement']();_0x348c18&&Number['isInteger'](_0x173c18)&&_0x3b24e5['model']['change'](_0x4d41e6=>{_0x4d41e6['setAttribute']('footnotesListStart',_0x173c18,_0x348c18),_0x7a54dc['_updateFootnotesCounters'](_0x4d41e6);});}}class P extends _0x381f4b{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b1a7b}=this;_0x2b1a7b['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2b1a7b['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2b1a7b['commands']['add']('footnotesStyle',new S(_0x2b1a7b)),_0x2b1a7b['commands']['add']('footnotesStart',new b(_0x2b1a7b)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x247fc4}=this,{schema:_0x14efe6}=_0x247fc4['model'];_0x14efe6['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x276169}=this,{conversion:_0x2da6b8,model:_0x43819c}=_0x276169,{schema:_0x1c235b}=_0x43819c;_0x2da6b8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x222e66=>_0x222e66['getStyle']('list-style-type')}}),_0x2da6b8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x957ff3=>{const _0x54a850=_0x957ff3['getAttribute']('start'),_0x292109=Number['parseInt'](_0x54a850,0xa);return Number['isNaN'](_0x292109)?null:_0x292109;}}}),_0x2da6b8['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x5d683f=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5d683f['getAttribute']('type')])}}),_0x2da6b8['for']('upcast')['add'](_0x4ac867=>{_0x4ac867['on']('element:ol',(_0x553006,_0x72b0d8,_0x6044bd)=>{const _0x303d8c=_0x72b0d8['modelRange']?.['start']['nodeAfter'];_0x303d8c?.['is']('element','footnotesDefinitions')&&(!_0x303d8c['hasAttribute']('footnotesListStyle')&&_0x1c235b['checkAttribute'](_0x303d8c,'footnotesListStyle')&&_0x6044bd['writer']['setAttribute']('footnotesListStyle','decimal',_0x303d8c),!_0x303d8c['hasAttribute']('footnotesListStart')&&_0x1c235b['checkAttribute'](_0x303d8c,'footnotesListStart')&&_0x6044bd['writer']['setAttribute']('footnotesListStart',0x1,_0x303d8c));},{'priority':'low'});}),_0x2da6b8['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x2f4944=>0x1===_0x2f4944?null:{'key':'start','value':String(_0x2f4944)}}),_0x2da6b8['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x766e2=>'decimal'===_0x766e2?null:{'key':'style','value':{'list-style-type':_0x766e2}}}),_0x2da6b8['for']('editingDowncast')['add'](_0x5d89f9=>{_0x5d89f9['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x35eda7,_0x59fc56,_0x54713b)=>{if(!_0x54713b['consumable']['consume'](_0x59fc56['item'],_0x35eda7['name']))return;const _0x19b941=C(_0x59fc56['item'],_0x54713b['mapper']);null===_0x59fc56['attributeNewValue']||void 0x0===_0x59fc56['attributeNewValue']||0x1===_0x59fc56['attributeNewValue']?_0x54713b['writer']['removeAttribute']('start',_0x19b941):_0x54713b['writer']['setAttribute']('start',String(_0x59fc56['attributeNewValue']),_0x19b941);}),_0x5d89f9['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x58a02c,_0x47f1e7,_0x511465)=>{if(!_0x511465['consumable']['consume'](_0x47f1e7['item'],_0x58a02c['name']))return;const _0xec5414=C(_0x47f1e7['item'],_0x511465['mapper']);_0x47f1e7['attributeNewValue']&&'decimal'!==_0x47f1e7['attributeNewValue']?_0x511465['writer']['setStyle']('list-style-type',_0x47f1e7['attributeNewValue'],_0xec5414):_0x511465['writer']['removeStyle']('list-style-type',_0xec5414);});});}['_definePostfixer'](){const {editor:_0x27b5e9}=this,{model:_0x399b05}=_0x27b5e9,_0x5e4775=_0x27b5e9['plugins']['get'](c),_0x2b45bd=this['_getDefaultListStyle'](),_0x20e70e=this['_getDefaultStartIndex']();_0x399b05['document']['registerPostFixer'](_0x431aa6=>{const _0x25476f=_0x399b05['document']['differ']['getChanges']();let _0x202f6f=!0x1;for(const _0x4ef49f of _0x25476f){if('insert'!==_0x4ef49f['type']||'$text'===_0x4ef49f['name'])continue;const _0x56ffd8=_0x399b05['createRangeOn'](_0x4ef49f['position']['nodeAfter']);for(const _0x2e57cd of _0x56ffd8['getItems']())_0x2e57cd['is']('element','footnotesDefinitions')&&(_0x2e57cd['hasAttribute']('footnotesListStart')||(_0x431aa6['setAttribute']('footnotesListStart',_0x20e70e,_0x2e57cd),_0x202f6f=!0x0),_0x2e57cd['hasAttribute']('footnotesListStyle')||(_0x431aa6['setAttribute']('footnotesListStyle',_0x2b45bd,_0x2e57cd),_0x202f6f=!0x0));}return _0x202f6f&&_0x5e4775['_updateFootnotesCounters'](_0x431aa6),_0x202f6f;});}['_defineFormatter'](){const {editor:_0x1946e1}=this;_0x1946e1['plugins']['get'](c)['setFootnoteFormatter'](_0x5d1d26=>this['_formatFootnoteListValue'](_0x5d1d26));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4c95b8,value:_0x5c895f,digits:_0x3079c4}){const _0x48332f=_0x4c95b8['getAttribute']('footnotesListStyle'),_0x15a798=_0x4c95b8['getAttribute']('footnotesListStart'),_0x368d08=Math['floor'](_0x5c895f)+(_0x15a798-0x1);switch(_0x48332f){case'decimal':default:return String(_0x368d08);case'decimal-leading-zero':return function(_0x9b0b00,_0x8f64c0){return String(_0x9b0b00)['padStart'](_0x8f64c0,'0');}(_0x368d08,Math['max'](0x2,_0x3079c4));case'lower-alpha':case'lower-latin':return M(_0x368d08,!0x1);case'upper-alpha':case'upper-latin':return M(_0x368d08,!0x0);case'lower-roman':return A(_0x368d08,!0x1);case'upper-roman':return A(_0x368d08,!0x0);}}}function C(_0x159a5a,_0x8d62fa){const _0x4e14e8=_0x8d62fa['toViewElement'](_0x159a5a);return Array['from'](_0x4e14e8['getChildren']())['find'](_0x2ef5a5=>_0x2ef5a5['is']('element','ol'));}function M(_0x461b4e,_0x2e9a33){let _0x267e4='',_0x58c182=_0x461b4e;for(;_0x58c182>0x0;){const _0x385dca=(_0x58c182-0x1)%0x1a;_0x267e4=String['fromCharCode'](0x61+_0x385dca)+_0x267e4,_0x58c182=Math['floor']((_0x58c182-0x1)/0x1a);}return _0x2e9a33?_0x267e4['toUpperCase']():_0x267e4;}const X=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function A(_0x3e126d,_0x491b2a){let _0x56ce57='',_0xdbdb19=_0x3e126d;for(const {value:_0x6c606f,numeral:_0x3082f8}of X)for(;_0xdbdb19>=_0x6c606f;)_0x56ce57+=_0x3082f8,_0xdbdb19-=_0x6c606f;return _0x491b2a?_0x56ce57:_0x56ce57['toLowerCase']();}class R extends _0xf9108b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x44558e();['focusCycler'];constructor(_0x5b23a1,{styleButtonViews:_0x32830f,styleGridAriaLabel:_0x229dff}){super(_0x5b23a1),(this['focusCycler']=new _0x1e2e91({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x32830f,_0x229dff),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x254d95 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x254d95['element']);_0x34cdf8({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x29b79f=_0x472027=>_0x472027['stopPropagation']();this['keystrokes']['set']('arrowright',_0x29b79f),this['keystrokes']['set']('arrowleft',_0x29b79f),this['keystrokes']['set']('arrowup',_0x29b79f),this['keystrokes']['set']('arrowdown',_0x29b79f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x409997,_0x45dc02){const _0x19800a=new _0xf9108b(this['locale']);return _0x19800a['children']=_0x19800a['createCollection'](),_0x19800a['children']['addMany'](_0x409997),_0x19800a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x45dc02,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x19800a['children']}),_0x19800a['children']['delegate']('execute')['to'](this),_0x19800a['focus']=function(){for(const _0x8e7a10 of this['children'])if(_0x8e7a10 instanceof _0x37c695&&_0x8e7a10['isOn'])return void _0x8e7a10['focus']();this['children']['first']['focus']();},_0x19800a['focusTracker']=new it(),_0x19800a['keystrokes']=new et(),_0x19800a['render'](),_0x19800a['keystrokes']['listenTo'](_0x19800a['element']),this['children']['add'](_0x19800a),_0x19800a;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4132a3=this['_createStartIndexPropertyView'](),_0x3dcaa6=[_0x4132a3],_0x1b689d=new _0x4a1638(this['locale'],_0x3dcaa6);return _0x1b689d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1b689d['buttonView']['bind']('isEnabled')['toMany'](_0x3dcaa6,'isEnabled',(..._0x245c1b)=>_0x245c1b['some'](_0x207a10=>_0x207a10)),_0x1b689d['buttonView']['on']('change:isEnabled',(_0x114625,_0x351e41,_0x4e9166)=>{_0x4e9166||(_0x1b689d['isCollapsed']=!0x0);}),this['children']['add'](_0x1b689d),[_0x4132a3,_0x1b689d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x27fedd=new tt(this['locale'],st);return _0x27fedd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x27fedd['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x27fedd['fieldView']['on']('input',()=>{const _0x8bab73=_0x27fedd['fieldView']['element'],_0x18db03=_0x8bab73['valueAsNumber'];Number['isNaN'](_0x18db03)?_0x27fedd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x8bab73['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x18db03}):_0x27fedd['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x27fedd;}}class j extends _0x381f4b{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x45a7bd,_0x289e52];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b9db4}=this,{componentFactory:_0x3bf2e2}=_0x2b9db4['ui'];_0x2b9db4['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3bf2e2['add']('footnotesStyle',function(_0x4521c5){return _0x3587b2=>{const {t:t}=_0x3587b2,_0x4f1e71=_0x4521c5['commands']['get']('footnotesStyle'),_0x227459=_0x4519ce(_0x3587b2),{buttonView:_0x5971d1}=_0x227459;return _0x227459['class']='ck-footnotes-styles-dropdown',_0x227459['bind']('isEnabled')['to'](_0x4f1e71,'isEnabled'),_0x5971d1['set']({'label':t('Footnotes\x20style'),'icon':_0x5eae8f,'tooltip':!0x0}),_0x227459['once']('change:isOpen',()=>{const _0x149a72=function({editor:_0x5c07ee,dropdownView:_0x417393}){const {t:t}=_0x5c07ee['locale'],_0x5786dd=t('Footnotes\x20definitions\x20styles'),_0x7ee6a8=function(_0x485c48){const t=_0x485c48['locale']['t'],_0x5a28e7=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x437365},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4025d5},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x50417e},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x18d6e3},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2868d1},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x317054}];return _0x5a28e7['map'](function(_0x196249){const _0x2122e2=_0x196249['locale'];return({label:_0x5391fd,icon:_0x2d9274,tooltip:_0x237731,style:_0x4115c2})=>{const _0xf21f7b=_0x196249['commands']['get']('footnotesStyle'),_0x55b9ff=new _0x37c695(_0x2122e2);return _0x55b9ff['set']({'label':_0x5391fd,'icon':_0x2d9274,'tooltip':_0x237731}),_0x55b9ff['bind']('isOn')['to'](_0xf21f7b,'value',_0xf8a515=>_0xf8a515===_0x4115c2),_0x55b9ff['bind']('isEnabled')['to'](_0xf21f7b,'isEnabled'),_0x55b9ff['on']('execute',()=>{_0x196249['execute']('footnotesStyle',{'value':_0x4115c2}),_0x196249['editing']['view']['focus']();}),_0x55b9ff;};}(_0x485c48));}(_0x5c07ee),_0x324460=new R(_0x5c07ee['locale'],{'styleGridAriaLabel':_0x5786dd,'styleButtonViews':_0x7ee6a8});return _0x324460['delegate']('execute')['to'](_0x417393),_0x324460['on']('footnotesListStart',(_0xbe3f1e,_0x5e4e5e)=>{_0x5c07ee['execute']('footnotesStart',{'value':_0x5e4e5e['startIndex']});}),_0x324460;}({'editor':_0x4521c5,'dropdownView':_0x227459});_0x227459['panelView']['children']['add'](_0x149a72);}),_0x227459;};}(_0x2b9db4));}['afterInit'](){const {editor:_0x215b26}=this,{t:t}=_0x215b26['locale'],_0x3f0c31=_0x215b26['plugins']['get'](_0x289e52),{defaultPositions:_0x46ee3b}=_0x33377f;_0x3f0c31['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x215b26['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x11475f=>{let _0x4edd98=_0x11475f['getFirstPosition']()?.['parent'];return _0x4edd98?.['is']('$text')&&(_0x4edd98=_0x4edd98['parent']),_0x4edd98?.['is']('element')?_0x4edd98['findAncestor']($):null;},'positions':[_0x46ee3b['southArrowNorth'],_0x46ee3b['southArrowNorthMiddleWest'],_0x46ee3b['southArrowNorthMiddleEast'],_0x46ee3b['southArrowNorthWest'],_0x46ee3b['southArrowNorthEast'],_0x46ee3b['northArrowSouth'],_0x46ee3b['northArrowSouthMiddleWest'],_0x46ee3b['northArrowSouthMiddleEast'],_0x46ee3b['northArrowSouthWest'],_0x46ee3b['northArrowSouthEast'],_0x46ee3b['viewportStickyNorth']]});}}class rt extends _0x381f4b{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,rt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-20251017.0",
3
+ "version": "0.0.0-nightly-20251019.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251017.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251017.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251017.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251017.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251017.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251017.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251017.0",
33
- "ckeditor5": "0.0.0-nightly-20251017.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251019.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251019.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251019.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251019.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251019.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251019.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251019.0",
33
+ "ckeditor5": "0.0.0-nightly-20251019.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1eb3bf=_0x5c5e;function _0x5c5e(_0x3c3716,_0x261ce3){const _0x152618=_0x1526();return _0x5c5e=function(_0x5c5e1b,_0x1d8186){_0x5c5e1b=_0x5c5e1b-0x1a3;let _0x4c83f3=_0x152618[_0x5c5e1b];return _0x4c83f3;},_0x5c5e(_0x3c3716,_0x261ce3);}(function(_0xe15eeb,_0x2d040e){const _0x45117e=_0x5c5e,_0x2265d7=_0xe15eeb();while(!![]){try{const _0x19828d=parseInt(_0x45117e(0x1c7))/0x1+-parseInt(_0x45117e(0x1bb))/0x2*(parseInt(_0x45117e(0x1b2))/0x3)+parseInt(_0x45117e(0x1c8))/0x4*(-parseInt(_0x45117e(0x1b1))/0x5)+parseInt(_0x45117e(0x1a6))/0x6*(parseInt(_0x45117e(0x1bf))/0x7)+-parseInt(_0x45117e(0x1aa))/0x8*(-parseInt(_0x45117e(0x1c4))/0x9)+-parseInt(_0x45117e(0x1a7))/0xa+parseInt(_0x45117e(0x1b5))/0xb*(parseInt(_0x45117e(0x1be))/0xc);if(_0x19828d===_0x2d040e)break;else _0x2265d7['push'](_0x2265d7['shift']());}catch(_0x547dbf){_0x2265d7['push'](_0x2265d7['shift']());}}}(_0x1526,0xcea1f));import{logWarning as _0x402810,uid as _0x1045db}from'ckeditor5/src/utils.js';function _0x1526(){const _0x34f1c9=['selection','refresh','_moveSelectionToFootnoteDefinition','footnoteId','36jzfIgV','getItems','isBlock','127114sFEzzU','448172TEQQHa','get','FootnotesEditing','footnoteRef','insert-footnote-command-executed-with-invalid-id','6wsQNKY','9438870wlgAuX','createElement','isObject','581176bikHUQ','change','editor','checkChild','_getPositionToInsertFootnote','isEnabled','getFirstRange','75tLtBGK','3057vwjYwA','length','insertObject','13211IhepQg','model','end','plugins','document','test','2594hcNTun','string','execute','39324TxvdYM','3074141wXvZQT'];_0x1526=function(){return _0x34f1c9;};return _0x1526();}import{Command as _0x4bd987}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x4bd987{[_0x1eb3bf(0x1c1)](){const _0x4b6f34=_0x1eb3bf,_0x227b81=this[_0x4b6f34(0x1ac)][_0x4b6f34(0x1b6)][_0x4b6f34(0x1b9)][_0x4b6f34(0x1c0)],_0x365680=this[_0x4b6f34(0x1ae)](_0x227b81);this[_0x4b6f34(0x1af)]=!!_0x365680;}[_0x1eb3bf(0x1bd)](_0x2d3f8b){const _0x13fcf8=_0x1eb3bf,{editor:_0x1f694c}=this,{model:_0x157683}=_0x1f694c,{selection:_0x4614ca}=_0x157683[_0x13fcf8(0x1b9)],_0x51be56=this[_0x13fcf8(0x1ae)](_0x4614ca);if(!_0x51be56)return;const _0x4825ac=_0x1f694c[_0x13fcf8(0x1b8)][_0x13fcf8(0x1c9)](_0x13fcf8(0x1a3)),_0x5a357a=_0x2d3f8b?.[_0x13fcf8(0x1c3)]??_0x1045db();!function(_0x3e4f4d){const _0x3daff5=_0x13fcf8;return _0x3daff5(0x1bc)==typeof _0x3e4f4d&&_0x3e4f4d[_0x3daff5(0x1b3)]>0x0&&!/\s/[_0x3daff5(0x1ba)](_0x3e4f4d)&&!/^\d/[_0x3daff5(0x1ba)](_0x3e4f4d);}(_0x5a357a)?_0x402810(_0x13fcf8(0x1a5)):(_0x157683[_0x13fcf8(0x1ab)](_0x2a3459=>{const _0x5859c8=_0x13fcf8,_0x6bd3c7=_0x2a3459[_0x5859c8(0x1a8)](_0x5859c8(0x1a4),{'footnoteId':_0x5a357a});_0x157683[_0x5859c8(0x1b4)](_0x6bd3c7,_0x51be56,null);}),_0x4825ac[_0x13fcf8(0x1c2)](_0x5a357a));}[_0x1eb3bf(0x1ae)](_0x29d923){const _0x20c8c8=_0x1eb3bf,{model:_0x4a1e29}=this[_0x20c8c8(0x1ac)],{schema:_0x49e63c}=_0x4a1e29,_0x12b26a=_0x29d923[_0x20c8c8(0x1b0)]();for(const _0x437aa0 of _0x12b26a[_0x20c8c8(0x1c5)]())if(_0x49e63c[_0x20c8c8(0x1c6)](_0x437aa0)||_0x49e63c[_0x20c8c8(0x1a9)](_0x437aa0))return null;const _0x1dd07e=_0x12b26a[_0x20c8c8(0x1b7)];return _0x49e63c[_0x20c8c8(0x1ad)](_0x1dd07e,_0x20c8c8(0x1a4))?_0x1dd07e:null;}}
23
+ function _0x2f8b(){const _0x70c5e3=['_moveSelectionToFootnoteDefinition','74VDsVBP','insert-footnote-command-executed-with-invalid-id','change','editor','execute','document','footnoteId','insertObject','FootnotesEditing','end','176056oOkvHH','length','selection','10NXAtai','checkChild','getFirstRange','20005TERwFD','get','378960ZiDfYK','2023884yivceV','6579564xPsqUY','footnoteRef','isObject','isEnabled','test','createElement','model','plugins','refresh','string','3892746PYXNLt','7WjjOkG','isBlock','3902589LZjEyI','_getPositionToInsertFootnote','getItems'];_0x2f8b=function(){return _0x70c5e3;};return _0x2f8b();}const _0x177bd8=_0x49c7;(function(_0x583791,_0x1b7b42){const _0x20bc4b=_0x49c7,_0x2c2b3c=_0x583791();while(!![]){try{const _0x9f6d4a=parseInt(_0x20bc4b(0xea))/0x1*(-parseInt(_0x20bc4b(0xda))/0x2)+parseInt(_0x20bc4b(0xf8))/0x3+-parseInt(_0x20bc4b(0xed))/0x4+-parseInt(_0x20bc4b(0xec))/0x5+parseInt(_0x20bc4b(0xee))/0x6+parseInt(_0x20bc4b(0xf9))/0x7*(parseInt(_0x20bc4b(0xe4))/0x8)+parseInt(_0x20bc4b(0xd6))/0x9*(-parseInt(_0x20bc4b(0xe7))/0xa);if(_0x9f6d4a===_0x1b7b42)break;else _0x2c2b3c['push'](_0x2c2b3c['shift']());}catch(_0x257bb7){_0x2c2b3c['push'](_0x2c2b3c['shift']());}}}(_0x2f8b,0xa1486));import{logWarning as _0x1a832f,uid as _0x3c190f}from'ckeditor5/src/utils.js';function _0x49c7(_0x1f65a1,_0x2c2b8b){const _0x2f8b4b=_0x2f8b();return _0x49c7=function(_0x49c7d7,_0x43cea4){_0x49c7d7=_0x49c7d7-0xd6;let _0x545b2d=_0x2f8b4b[_0x49c7d7];return _0x545b2d;},_0x49c7(_0x1f65a1,_0x2c2b8b);}import{Command as _0x12126c}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x12126c{[_0x177bd8(0xf6)](){const _0xd42c59=_0x177bd8,_0x19f0e5=this[_0xd42c59(0xdd)][_0xd42c59(0xf4)][_0xd42c59(0xdf)][_0xd42c59(0xe6)],_0x20f7fb=this[_0xd42c59(0xd7)](_0x19f0e5);this[_0xd42c59(0xf1)]=!!_0x20f7fb;}[_0x177bd8(0xde)](_0x5e254f){const _0x342dd9=_0x177bd8,{editor:_0x15d3a8}=this,{model:_0x33ec33}=_0x15d3a8,{selection:_0x188611}=_0x33ec33[_0x342dd9(0xdf)],_0x1e4fe5=this[_0x342dd9(0xd7)](_0x188611);if(!_0x1e4fe5)return;const _0x2945e0=_0x15d3a8[_0x342dd9(0xf5)][_0x342dd9(0xeb)](_0x342dd9(0xe2)),_0x439a2f=_0x5e254f?.[_0x342dd9(0xe0)]??_0x3c190f();!function(_0x83f20c){const _0x5ebcbc=_0x342dd9;return _0x5ebcbc(0xf7)==typeof _0x83f20c&&_0x83f20c[_0x5ebcbc(0xe5)]>0x0&&!/\s/[_0x5ebcbc(0xf2)](_0x83f20c)&&!/^\d/[_0x5ebcbc(0xf2)](_0x83f20c);}(_0x439a2f)?_0x1a832f(_0x342dd9(0xdb)):(_0x33ec33[_0x342dd9(0xdc)](_0x54e524=>{const _0x10cc9e=_0x342dd9,_0x58daea=_0x54e524[_0x10cc9e(0xf3)](_0x10cc9e(0xef),{'footnoteId':_0x439a2f});_0x33ec33[_0x10cc9e(0xe1)](_0x58daea,_0x1e4fe5,null);}),_0x2945e0[_0x342dd9(0xd9)](_0x439a2f));}[_0x177bd8(0xd7)](_0x91fa90){const _0x9e3c00=_0x177bd8,{model:_0x1cf280}=this[_0x9e3c00(0xdd)],{schema:_0x42579b}=_0x1cf280,_0x5d7d74=_0x91fa90[_0x9e3c00(0xe9)]();for(const _0x43207c of _0x5d7d74[_0x9e3c00(0xd8)]())if(_0x42579b[_0x9e3c00(0xfa)](_0x43207c)||_0x42579b[_0x9e3c00(0xf0)](_0x43207c))return null;const _0x15b870=_0x5d7d74[_0x9e3c00(0xe3)];return _0x42579b[_0x9e3c00(0xe8)](_0x15b870,_0x9e3c00(0xef))?_0x15b870:null;}}
package/src/footnotes.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x428a98=_0x3ad0;(function(_0x2a7f6b,_0x114cb7){var _0x2b4eb6=_0x3ad0,_0x41a67d=_0x2a7f6b();while(!![]){try{var _0x4e2d9f=parseInt(_0x2b4eb6(0x1c5))/0x1+parseInt(_0x2b4eb6(0x1cc))/0x2+-parseInt(_0x2b4eb6(0x1cb))/0x3*(parseInt(_0x2b4eb6(0x1ca))/0x4)+parseInt(_0x2b4eb6(0x1c6))/0x5*(-parseInt(_0x2b4eb6(0x1c3))/0x6)+-parseInt(_0x2b4eb6(0x1c1))/0x7+-parseInt(_0x2b4eb6(0x1c9))/0x8+parseInt(_0x2b4eb6(0x1c2))/0x9;if(_0x4e2d9f===_0x114cb7)break;else _0x41a67d['push'](_0x41a67d['shift']());}catch(_0xbf8028){_0x41a67d['push'](_0x41a67d['shift']());}}}(_0x2bc9,0x36863));import{Plugin as _0x2dce9d}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x513052}from'./footnotesediting.js';import{FootnotesClipboard as _0x1fa1cd}from'./footnotesclipboard.js';import{FootnotesUI as _0x5446b1}from'./footnotesui.js';function _0x3ad0(_0x5bae26,_0x59fc26){var _0x2bc9d5=_0x2bc9();return _0x3ad0=function(_0x3ad080,_0x342e92){_0x3ad080=_0x3ad080-0x1bf;var _0x3a753e=_0x2bc9d5[_0x3ad080];return _0x3a753e;},_0x3ad0(_0x5bae26,_0x59fc26);}function _0x2bc9(){var _0x38a107=['10gBaGoK','requires','isOfficialPlugin','1582080mNRYHK','279008HsxarO','6zCcHOd','693248mrSeQt','isPremiumPlugin','pluginName','2161628QvHqnR','5680035gpGCKn','1037838BsmFyl','Footnotes','237606aAMlTL'];_0x2bc9=function(){return _0x38a107;};return _0x2bc9();}export class Footnotes extends _0x2dce9d{static get[_0x428a98(0x1c0)](){var _0x5ea4be=_0x428a98;return _0x5ea4be(0x1c4);}static get[_0x428a98(0x1c7)](){return[_0x513052,_0x1fa1cd,_0x5446b1];}static get[_0x428a98(0x1c8)](){return!0x0;}static get[_0x428a98(0x1bf)](){return!0x0;}}
23
+ var _0x17dad1=_0x573b;(function(_0x7b4ce2,_0x4c738c){var _0x3e08d7=_0x573b,_0x4f1c35=_0x7b4ce2();while(!![]){try{var _0x51e2e3=-parseInt(_0x3e08d7(0x136))/0x1*(parseInt(_0x3e08d7(0x12f))/0x2)+-parseInt(_0x3e08d7(0x131))/0x3+-parseInt(_0x3e08d7(0x12c))/0x4*(-parseInt(_0x3e08d7(0x12e))/0x5)+-parseInt(_0x3e08d7(0x137))/0x6+parseInt(_0x3e08d7(0x133))/0x7+parseInt(_0x3e08d7(0x134))/0x8+parseInt(_0x3e08d7(0x12b))/0x9;if(_0x51e2e3===_0x4c738c)break;else _0x4f1c35['push'](_0x4f1c35['shift']());}catch(_0x2399c9){_0x4f1c35['push'](_0x4f1c35['shift']());}}}(_0x2117,0xce717));function _0x2117(){var _0x1d9ebc=['isOfficialPlugin','3465784VMBuEJ','4809512EhSCHi','isPremiumPlugin','5EAvaOI','1100610pvazRI','pluginName','4608504CSNytd','924yqCkVx','Footnotes','32315ppJGPF','462802NHvnhq','requires','2745837mbIKUc'];_0x2117=function(){return _0x1d9ebc;};return _0x2117();}import{Plugin as _0x3dd706}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x59e631}from'./footnotesediting.js';function _0x573b(_0x82ec35,_0x183378){var _0x2117fb=_0x2117();return _0x573b=function(_0x573bf0,_0x2e6512){_0x573bf0=_0x573bf0-0x12b;var _0x104cc2=_0x2117fb[_0x573bf0];return _0x104cc2;},_0x573b(_0x82ec35,_0x183378);}import{FootnotesClipboard as _0x5f213a}from'./footnotesclipboard.js';import{FootnotesUI as _0x27ad8e}from'./footnotesui.js';export class Footnotes extends _0x3dd706{static get[_0x17dad1(0x138)](){var _0x3046c5=_0x17dad1;return _0x3046c5(0x12d);}static get[_0x17dad1(0x130)](){return[_0x59e631,_0x5f213a,_0x27ad8e];}static get[_0x17dad1(0x132)](){return!0x0;}static get[_0x17dad1(0x135)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4263fc=_0x4496;(function(_0x4d9f49,_0x4c2eeb){const _0x5912e4=_0x4496,_0xbf5324=_0x4d9f49();while(!![]){try{const _0x32ebd9=parseInt(_0x5912e4(0x201))/0x1+-parseInt(_0x5912e4(0x1ed))/0x2+-parseInt(_0x5912e4(0x1e3))/0x3+-parseInt(_0x5912e4(0x1ee))/0x4+-parseInt(_0x5912e4(0x1fd))/0x5*(parseInt(_0x5912e4(0x222))/0x6)+parseInt(_0x5912e4(0x203))/0x7+parseInt(_0x5912e4(0x1f7))/0x8*(parseInt(_0x5912e4(0x1f6))/0x9);if(_0x32ebd9===_0x4c2eeb)break;else _0xbf5324['push'](_0xbf5324['shift']());}catch(_0x3f7c0e){_0xbf5324['push'](_0xbf5324['shift']());}}}(_0x330a,0x3c9e8));import{Plugin as _0xdc48ad}from'ckeditor5/src/core.js';import{uid as _0xe5f3a8}from'ckeditor5/src/utils.js';function _0x330a(){const _0x36ad1e=['get','getFirstRange','init','listenTo','_handlePasteFootnotesDefinitions','length','799092sfHXph','_defineClipboardIntegration','reduce','getFootnote','remove','content','contentInsertion','toView','parse','getFootnotesDefinitionsObjectElement','684510lRjltt','747648kuCFFk','getFootnotes','editing','footnoteId','FootnotesClipboard','getData','toModel','change','5637591JcioyT','8bsPYtk','getAttribute','footnoteRef','create','drop','requires','5EWtTQP','createRangeIn','definition','setAttribute','434380ZtQISp','method','1136541jpOESd','entries','find','htmlProcessor','application/ckeditor5-footnotes','document','isPremiumPlugin','push','editor','isOfficialPlugin','root','end','sourceEditorId','toData','_handleCopyFootnotesDefinitions','footnotesDefinitions','from','append','data','footnoteDefinition','pluginName','clipboardInput','insert','setData','outputTransformation','dataTransfer','selection','stringify','createElement','_insertEmptyFootnotesDefinitionsContainer','element','1075890wdAToC','add'];_0x330a=function(){return _0x36ad1e;};return _0x330a();}function _0x4496(_0x1f2b37,_0x161e56){const _0x330a5d=_0x330a();return _0x4496=function(_0x449674,_0x11ff94){_0x449674=_0x449674-0x1dc;let _0x157522=_0x330a5d[_0x449674];return _0x157522;},_0x4496(_0x1f2b37,_0x161e56);}import{ClipboardPipeline as _0x5a3702}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x9c7b48}from'./footnotesediting.js';import{FootnotesTracker as _0x4087f5}from'./footnotestracker.js';export class FootnotesClipboard extends _0xdc48ad{static get[_0x4263fc(0x217)](){const _0x31f11d=_0x4263fc;return _0x31f11d(0x1f2);}static get[_0x4263fc(0x1fc)](){return[_0x9c7b48,_0x5a3702];}static get[_0x4263fc(0x20c)](){return!0x0;}static get[_0x4263fc(0x209)](){return!0x0;}[_0x4263fc(0x1df)](){const _0x101e94=_0x4263fc;this[_0x101e94(0x1e4)]();}[_0x4263fc(0x1e4)](){const _0x4ebc6f=_0x4263fc;this[_0x4ebc6f(0x211)](),this[_0x4ebc6f(0x1e1)]();}[_0x4263fc(0x211)](){const _0x3a5114=_0x4263fc,{editor:_0x27be66}=this,{plugins:_0x155599,model:_0x42d6ed}=_0x27be66,_0x24a9f3=_0x155599[_0x3a5114(0x1dd)](_0x5a3702),_0x3773d7=_0x155599[_0x3a5114(0x1dd)](_0x4087f5);this[_0x3a5114(0x1e0)](_0x24a9f3,_0x3a5114(0x21b),(_0x584ce8,_0x334f06)=>{const _0x35f2b4=_0x3a5114,_0x361b3f=function(_0x5b4faf,_0x40be8f){const _0x353bb9=_0x4496,_0x416de0=new Set();for(const {item:_0x9e87a8}of _0x5b4faf[_0x353bb9(0x1fe)](_0x40be8f))_0x9e87a8['is'](_0x353bb9(0x221),_0x353bb9(0x1f9))&&_0x416de0[_0x353bb9(0x1dc)](_0x9e87a8[_0x353bb9(0x1f8)](_0x353bb9(0x1f1)));return Array[_0x353bb9(0x213)](_0x416de0);}(_0x42d6ed,_0x334f06[_0x35f2b4(0x1e8)]);if(!_0x361b3f[_0x35f2b4(0x1e2)])return;const _0x25a37a=_0x3773d7[_0x35f2b4(0x1ef)](),_0x1601c5=_0x361b3f[_0x35f2b4(0x1e5)]((_0x256066,_0x3443a4)=>{const _0x49e4b5=_0x35f2b4,_0x5ef50f=_0x25a37a[_0x49e4b5(0x205)](_0x45e8eb=>_0x45e8eb['id']===_0x3443a4);if(_0x5ef50f){const _0x5a3fe0=_0x27be66[_0x49e4b5(0x215)][_0x49e4b5(0x1ea)](_0x5ef50f[_0x49e4b5(0x1ff)],{'isClipboardPipeline':!0x0}),_0xb9522=_0x27be66[_0x49e4b5(0x215)][_0x49e4b5(0x206)][_0x49e4b5(0x210)](_0x5a3fe0);_0x256066[_0x5ef50f['id']]=_0xb9522;}return _0x256066;},Object[_0x35f2b4(0x1fa)](null));_0x334f06[_0x35f2b4(0x21c)][_0x35f2b4(0x21a)](_0x35f2b4(0x207),JSON[_0x35f2b4(0x21e)](_0x1601c5));});}[_0x4263fc(0x1e1)](){const _0x41c387=_0x4263fc,{editor:_0x58bdd6}=this,{model:_0x39cbee,plugins:_0x356f16}=_0x58bdd6,{view:_0x4992da}=_0x58bdd6[_0x41c387(0x1f0)],_0xd8950c=_0x356f16[_0x41c387(0x1dd)](_0x5a3702),_0x2ec74a=_0x356f16[_0x41c387(0x1dd)](_0x4087f5);let _0x1d362b=null;this[_0x41c387(0x1e0)](_0x4992da[_0x41c387(0x208)],_0x41c387(0x218),(_0x512deb,_0x3b5487)=>{const _0x138e6c=_0x41c387,_0x55765b=_0x3b5487[_0x138e6c(0x21c)][_0x138e6c(0x1f3)](_0x138e6c(0x207));_0x1d362b=_0x55765b?JSON[_0x138e6c(0x1eb)](_0x55765b):null;}),this[_0x41c387(0x1e0)](_0xd8950c,_0x41c387(0x1e9),(_0x4ed7f5,_0x44b76b)=>{const _0x540bd3=_0x41c387;if(!_0x1d362b)return;const _0x572971=_0x44b76b[_0x540bd3(0x20f)]===this[_0x540bd3(0x20b)]['id'];_0x572971&&_0x540bd3(0x1fb)===_0x44b76b[_0x540bd3(0x202)]||_0x39cbee[_0x540bd3(0x1f5)](_0x4b0e74=>{const _0x93b77b=_0x540bd3;!function(_0x34c625,_0x236aec){const _0x30fcf2=_0x4496,_0x30bc42=[];for(const {item:_0x1f03fe}of _0x34c625[_0x30fcf2(0x1fe)](_0x236aec))_0x1f03fe['is'](_0x30fcf2(0x221),_0x30fcf2(0x212))&&_0x30bc42[_0x30fcf2(0x20a)](_0x1f03fe);for(const _0x2e6092 of _0x30bc42)_0x34c625[_0x30fcf2(0x1e7)](_0x2e6092);}(_0x4b0e74,_0x44b76b[_0x93b77b(0x1e8)]);let _0x21c8d8=_0x2ec74a[_0x93b77b(0x1ec)]();if(!_0x21c8d8){const _0x7fe8d=_0x39cbee[_0x93b77b(0x208)][_0x93b77b(0x21d)][_0x93b77b(0x1de)]()[_0x93b77b(0x20d)];_0x21c8d8=_0x2ec74a[_0x93b77b(0x220)](_0x4b0e74,_0x7fe8d);}const _0x1107aa=function(_0x45e96a,_0x43832b,_0x38396f){const _0x4f460c=_0x93b77b,_0x33f95d=Object[_0x4f460c(0x1fa)](null);for(const {item:_0x2bcfcd}of _0x45e96a[_0x4f460c(0x1fe)](_0x43832b))if(_0x2bcfcd['is'](_0x4f460c(0x221),_0x4f460c(0x1f9))){const _0x3c1a5a=_0x2bcfcd[_0x4f460c(0x1f8)](_0x4f460c(0x1f1));if(!_0x38396f(_0x3c1a5a))continue;_0x33f95d[_0x3c1a5a]||(_0x33f95d[_0x3c1a5a]=_0xe5f3a8()),_0x45e96a[_0x4f460c(0x200)](_0x4f460c(0x1f1),_0x33f95d[_0x3c1a5a],_0x2bcfcd);}return _0x33f95d;}(_0x4b0e74,_0x44b76b[_0x93b77b(0x1e8)],_0x464b95=>!_0x572971||null!==_0x2ec74a[_0x93b77b(0x1e6)](_0x464b95));for(const [_0x23cbfb,_0x225a52]of Object[_0x93b77b(0x204)](_0x1d362b)){const _0x1b0204=_0x1107aa[_0x23cbfb]||_0x23cbfb,_0x180e0e=_0x4b0e74[_0x93b77b(0x21f)](_0x93b77b(0x216),{'footnoteId':_0x1b0204}),_0x28a23c=_0x58bdd6[_0x93b77b(0x215)][_0x93b77b(0x206)][_0x93b77b(0x1ea)](_0x225a52),_0x4a202f=_0x58bdd6[_0x93b77b(0x215)][_0x93b77b(0x1f4)](_0x28a23c,_0x180e0e);_0x4b0e74[_0x93b77b(0x214)](_0x4a202f,_0x180e0e),_0x4b0e74[_0x93b77b(0x219)](_0x180e0e,_0x21c8d8,_0x93b77b(0x20e));}_0x1d362b=null;});});}}
23
+ const _0x21b201=_0x43d2;(function(_0x252716,_0x402cc5){const _0x3f8aa8=_0x43d2,_0x4d8053=_0x252716();while(!![]){try{const _0x3875da=-parseInt(_0x3f8aa8(0xbc))/0x1*(parseInt(_0x3f8aa8(0xba))/0x2)+-parseInt(_0x3f8aa8(0xc3))/0x3*(-parseInt(_0x3f8aa8(0x94))/0x4)+-parseInt(_0x3f8aa8(0x89))/0x5+-parseInt(_0x3f8aa8(0x7c))/0x6*(parseInt(_0x3f8aa8(0xb1))/0x7)+parseInt(_0x3f8aa8(0xc4))/0x8+-parseInt(_0x3f8aa8(0x9b))/0x9+-parseInt(_0x3f8aa8(0x7f))/0xa*(-parseInt(_0x3f8aa8(0x87))/0xb);if(_0x3875da===_0x402cc5)break;else _0x4d8053['push'](_0x4d8053['shift']());}catch(_0x3aeb08){_0x4d8053['push'](_0x4d8053['shift']());}}}(_0x64f1,0xa4e29));import{Plugin as _0x5ce37b}from'ckeditor5/src/core.js';function _0x43d2(_0x18da07,_0x28e74b){const _0x64f159=_0x64f1();return _0x43d2=function(_0x43d20f,_0x54a5d8){_0x43d20f=_0x43d20f-0x7c;let _0x5d4463=_0x64f159[_0x43d20f];return _0x5d4463;},_0x43d2(_0x18da07,_0x28e74b);}import{uid as _0x30984f}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0x256046}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0xe824de}from'./footnotesediting.js';import{FootnotesTracker as _0x510c91}from'./footnotestracker.js';function _0x64f1(){const _0x20988f=['18517QawWeg','get','end','root','from','element','stringify','3813087QRxtJz','9727776YAkbvc','12fHTnfW','editing','setAttribute','51650SZisXE','footnoteRef','definition','toData','reduce','getAttribute','requires','editor','3487OQdSal','contentInsertion','6600350UTfZEd','htmlProcessor','getFootnote','outputTransformation','drop','content','_handleCopyFootnotesDefinitions','append','method','parse','toModel','4RQvbfH','entries','FootnotesClipboard','footnotesDefinitions','init','find','getData','12084633EzGbDM','footnoteId','_insertEmptyFootnotesDefinitionsContainer','change','getFootnotes','footnoteDefinition','remove','createRangeIn','sourceEditorId','_handlePasteFootnotesDefinitions','add','dataTransfer','pluginName','_defineClipboardIntegration','clipboardInput','toView','getFootnotesDefinitionsObjectElement','createElement','data','length','isPremiumPlugin','insert','2362598McsAkm','getFirstRange','selection','document','listenTo','setData','application/ckeditor5-footnotes','push','create','12dCPSCS','isOfficialPlugin'];_0x64f1=function(){return _0x20988f;};return _0x64f1();}export class FootnotesClipboard extends _0x5ce37b{static get[_0x21b201(0xa7)](){const _0x9cb3d0=_0x21b201;return _0x9cb3d0(0x96);}static get[_0x21b201(0x85)](){return[_0xe824de,_0x256046];}static get[_0x21b201(0xbb)](){return!0x0;}static get[_0x21b201(0xaf)](){return!0x0;}[_0x21b201(0x98)](){const _0x359279=_0x21b201;this[_0x359279(0xa8)]();}[_0x21b201(0xa8)](){const _0x1f023e=_0x21b201;this[_0x1f023e(0x8f)](),this[_0x1f023e(0xa4)]();}[_0x21b201(0x8f)](){const _0x58577b=_0x21b201,{editor:_0xbd4164}=this,{plugins:_0x14ee74,model:_0x5bde5e}=_0xbd4164,_0x3286e8=_0x14ee74[_0x58577b(0xbd)](_0x256046),_0xebeadc=_0x14ee74[_0x58577b(0xbd)](_0x510c91);this[_0x58577b(0xb5)](_0x3286e8,_0x58577b(0x8c),(_0x250f25,_0x2932e7)=>{const _0x5a0bc7=_0x58577b,_0x35bf58=function(_0x243302,_0x2046ad){const _0x188d76=_0x43d2,_0x3bcdc7=new Set();for(const {item:_0x2d0051}of _0x243302[_0x188d76(0xa2)](_0x2046ad))_0x2d0051['is'](_0x188d76(0xc1),_0x188d76(0x80))&&_0x3bcdc7[_0x188d76(0xa5)](_0x2d0051[_0x188d76(0x84)](_0x188d76(0x9c)));return Array[_0x188d76(0xc0)](_0x3bcdc7);}(_0x5bde5e,_0x2932e7[_0x5a0bc7(0x8e)]);if(!_0x35bf58[_0x5a0bc7(0xae)])return;const _0x59392f=_0xebeadc[_0x5a0bc7(0x9f)](),_0x40e3f8=_0x35bf58[_0x5a0bc7(0x83)]((_0x4e9749,_0x10bcb3)=>{const _0x4e155f=_0x5a0bc7,_0xa031ba=_0x59392f[_0x4e155f(0x99)](_0x2dddf4=>_0x2dddf4['id']===_0x10bcb3);if(_0xa031ba){const _0x17d5b4=_0xbd4164[_0x4e155f(0xad)][_0x4e155f(0xaa)](_0xa031ba[_0x4e155f(0x81)],{'isClipboardPipeline':!0x0}),_0x5cd5a7=_0xbd4164[_0x4e155f(0xad)][_0x4e155f(0x8a)][_0x4e155f(0x82)](_0x17d5b4);_0x4e9749[_0xa031ba['id']]=_0x5cd5a7;}return _0x4e9749;},Object[_0x5a0bc7(0xb9)](null));_0x2932e7[_0x5a0bc7(0xa6)][_0x5a0bc7(0xb6)](_0x5a0bc7(0xb7),JSON[_0x5a0bc7(0xc2)](_0x40e3f8));});}[_0x21b201(0xa4)](){const _0x3ebead=_0x21b201,{editor:_0x1c5b74}=this,{model:_0x3145ee,plugins:_0x530718}=_0x1c5b74,{view:_0x4bc3cd}=_0x1c5b74[_0x3ebead(0x7d)],_0x3f0318=_0x530718[_0x3ebead(0xbd)](_0x256046),_0xe1c429=_0x530718[_0x3ebead(0xbd)](_0x510c91);let _0x1f0c28=null;this[_0x3ebead(0xb5)](_0x4bc3cd[_0x3ebead(0xb4)],_0x3ebead(0xa9),(_0x4976fc,_0xe304cf)=>{const _0x4454af=_0x3ebead,_0x46d6ae=_0xe304cf[_0x4454af(0xa6)][_0x4454af(0x9a)](_0x4454af(0xb7));_0x1f0c28=_0x46d6ae?JSON[_0x4454af(0x92)](_0x46d6ae):null;}),this[_0x3ebead(0xb5)](_0x3f0318,_0x3ebead(0x88),(_0x60bbab,_0x564fc9)=>{const _0xf0d189=_0x3ebead;if(!_0x1f0c28)return;const _0x57af42=_0x564fc9[_0xf0d189(0xa3)]===this[_0xf0d189(0x86)]['id'];_0x57af42&&_0xf0d189(0x8d)===_0x564fc9[_0xf0d189(0x91)]||_0x3145ee[_0xf0d189(0x9e)](_0x32879d=>{const _0x352a69=_0xf0d189;!function(_0x2b6772,_0x385035){const _0x11381b=_0x43d2,_0x500b81=[];for(const {item:_0x5071db}of _0x2b6772[_0x11381b(0xa2)](_0x385035))_0x5071db['is'](_0x11381b(0xc1),_0x11381b(0x97))&&_0x500b81[_0x11381b(0xb8)](_0x5071db);for(const _0x4ce81a of _0x500b81)_0x2b6772[_0x11381b(0xa1)](_0x4ce81a);}(_0x32879d,_0x564fc9[_0x352a69(0x8e)]);let _0x33e3f0=_0xe1c429[_0x352a69(0xab)]();if(!_0x33e3f0){const _0x401109=_0x3145ee[_0x352a69(0xb4)][_0x352a69(0xb3)][_0x352a69(0xb2)]()[_0x352a69(0xbf)];_0x33e3f0=_0xe1c429[_0x352a69(0x9d)](_0x32879d,_0x401109);}const _0x3fa2ee=function(_0xd934ff,_0x595178,_0x2f4237){const _0x145fab=_0x352a69,_0x2a2936=Object[_0x145fab(0xb9)](null);for(const {item:_0x22328e}of _0xd934ff[_0x145fab(0xa2)](_0x595178))if(_0x22328e['is'](_0x145fab(0xc1),_0x145fab(0x80))){const _0xf1c082=_0x22328e[_0x145fab(0x84)](_0x145fab(0x9c));if(!_0x2f4237(_0xf1c082))continue;_0x2a2936[_0xf1c082]||(_0x2a2936[_0xf1c082]=_0x30984f()),_0xd934ff[_0x145fab(0x7e)](_0x145fab(0x9c),_0x2a2936[_0xf1c082],_0x22328e);}return _0x2a2936;}(_0x32879d,_0x564fc9[_0x352a69(0x8e)],_0x5df284=>!_0x57af42||null!==_0xe1c429[_0x352a69(0x8b)](_0x5df284));for(const [_0x58a6d2,_0x2f80d7]of Object[_0x352a69(0x95)](_0x1f0c28)){const _0x368dee=_0x3fa2ee[_0x58a6d2]||_0x58a6d2,_0x26218b=_0x32879d[_0x352a69(0xac)](_0x352a69(0xa0),{'footnoteId':_0x368dee}),_0xc53f24=_0x1c5b74[_0x352a69(0xad)][_0x352a69(0x8a)][_0x352a69(0xaa)](_0x2f80d7),_0x208ea3=_0x1c5b74[_0x352a69(0xad)][_0x352a69(0x93)](_0xc53f24,_0x26218b);_0x32879d[_0x352a69(0x90)](_0x208ea3,_0x26218b),_0x32879d[_0x352a69(0xb0)](_0x26218b,_0x33e3f0,_0x352a69(0xbe));}_0x1f0c28=null;});});}}