@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251016.0 → 0.0.0-nightly-20251018.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 _0x3273f4,Command as _0xab527f}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x555f64,isWidget as _0x598dfa,toWidgetEditable as _0x1381fe,WidgetToolbarRepository as _0x40fb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x28bc9d,logWarning as _0x45acae,FocusTracker as st,KeystrokeHandler as it,global as et}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x17fff3,ClickObserver as _0x53b540}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x291bdf}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x51815e,ButtonView as _0x584d85,View as _0x463144,ViewCollection as _0x3b4f2a,FocusCycler as _0x2c64bd,addKeyboardHandlingForGrid as _0x41a604,CollapsibleView as _0x11667e,LabeledFieldView as _0x1ff114,createLabeledInputNumber as tt,ContextualBalloon as _0x5142c4,BalloonPanelView as _0x26b82a,createDropdown as _0x47e698}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x143cf4,IconListStyleDecimal as _0x3ec19b,IconListStyleDecimalLeadingZero as _0x4fe1a9,IconListStyleLowerRoman as _0x572e75,IconListStyleUpperRoman as _0x3975e6,IconListStyleLowerLatin as _0x266d5,IconListStyleUpperLatin as _0x18b2d0}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x403079,_0x9ae8a2){this['_model']=_0x403079,this['_elementName']=_0x9ae8a2['elementName'],this['_getElementKey']=_0x9ae8a2['getElementKey'];}['getChanges'](_0x16b486){const _0x16fa56=new Set(),_0x24cbe6=new Map();for(const _0x562df0 of _0x16b486){if('insert'===_0x562df0['type']&&'$text'!==_0x562df0['name']&&_0x562df0['position']['nodeAfter']){const _0x23c5a3=this['_model']['createRangeOn'](_0x562df0['position']['nodeAfter']);for(const _0x4cf4e7 of _0x23c5a3['getItems']()){if(!_0x4cf4e7['is']('element',this['_elementName']))continue;const _0x75ef1c=this['_getElementKey'](_0x4cf4e7);_0x24cbe6['has'](_0x75ef1c)||_0x24cbe6['set'](_0x75ef1c,[]),_0x24cbe6['get'](_0x75ef1c)['push'](_0x4cf4e7);}}if('remove'===_0x562df0['type']&&_0x562df0['name']===this['_elementName']){const _0x4bda13=this['_getElementKey']({'getAttribute':_0x57a9ab=>_0x562df0['attributes']['get'](_0x57a9ab)});_0x16fa56['add'](_0x4bda13);}}for(const [_0x52c23b,_0x178067]of this['_trackedElements'])'$graveyard'===_0x178067['root']['rootName']&&_0x16fa56['add'](_0x52c23b);for(const _0x5157ae of _0x16fa56)this['_trackedElements']['delete'](_0x5157ae);for(const [_0x4d0e34,_0x3e87a1]of _0x24cbe6)this['_trackedElements']['set'](_0x4d0e34,_0x3e87a1[_0x3e87a1['length']-0x1]);const _0x2b5734=new Set();for(const [_0x5e6923,_0x4e0042]of _0x24cbe6)_0x16fa56['has'](_0x5e6923)&&(_0x2b5734['add'](_0x4e0042[0x0]),_0x4e0042['length']>0x1?_0x24cbe6['set'](_0x5e6923,_0x4e0042['slice'](0x1)):_0x24cbe6['delete'](_0x5e6923),_0x16fa56['delete'](_0x5e6923));return{'removed':Array['from'](_0x16fa56),'inserted':Array['from'](_0x24cbe6['values']())['flat'](),'moved':Array['from'](_0x2b5734)};}}class c extends _0x3273f4{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cd763){super(_0x3cd763),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x175bfe=>_0x175bfe['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5f00db=>_0x5f00db['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4b9ce4}=this,{model:_0x3d2bc0}=_0x4b9ce4;_0x3d2bc0['document']['registerPostFixer'](_0x2ae15a=>{const _0x177c63=_0x3d2bc0['document']['differ']['getChanges']();let _0x416841=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2ae15a,_0x177c63)&&(_0x416841=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2ae15a,_0x177c63)&&(_0x416841=!0x0),this['_handleFootnoteReferencesChanges'](_0x2ae15a,_0x177c63)&&(_0x416841=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2ae15a)&&(_0x416841=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2ae15a)&&(_0x416841=!0x0),this['_sortFootnoteDefinitions'](_0x2ae15a)&&(_0x416841=!0x0),_0x416841;}),this['listenTo'](_0x3d2bc0['document'],'change:data',()=>{_0x3d2bc0['enqueueChange']({'isUndoable':!0x1},_0x8227f8=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x8227f8);});},{'priority':'low'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x26f27f){return this['_footnotes']['find'](_0x2f6d1b=>_0x2f6d1b['id']===_0x26f27f)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1e28cd){this['_footnoteFormatter']=_0x1e28cd;}['_updateFootnotesCounters'](_0x1c7229,_0x2a2c8e=0x0){let _0x476fc6=!0x1;for(let _0x56b4df=_0x2a2c8e;_0x56b4df<this['_footnotes']['length'];_0x56b4df++)this['_updateFootnoteRefCounter'](_0x1c7229,_0x56b4df)&&(_0x476fc6=!0x0);return _0x476fc6;}['_insertEmptyFootnotesDefinitionsContainer'](_0x248f30,_0x2e2029){const _0x4b14e2=_0x248f30['createElement']('footnotesDefinitions',{});return _0x248f30['append'](_0x4b14e2,_0x2e2029),this['_footnotesDefinitions']=_0x4b14e2,_0x4b14e2;}['_ensureFootnotesDefinitionsContainerExists'](_0x5044ef){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5ee7b4=this['_footnotes'][0x0]['reference']['root'],_0x26ecbf=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5044ef,_0x5ee7b4);for(const _0x2d0ff7 of this['_footnotes'])_0x2d0ff7['definition']['parent']||_0x5044ef['insert'](_0x2d0ff7['definition'],_0x26ecbf,'end');this['_updateFootnotesCounters'](_0x5044ef);}['_handleFootnotesDefinitionsObjectChanges'](_0x540667,_0xb49cba){let _0x5a4d54=!0x1;const {inserted:_0x344d03,removed:_0x56f6c5,moved:_0x30631f}=this['_footnoteDefsContainerTracker']['getChanges'](_0xb49cba);if(_0x30631f['length']&&(this['_footnotesDefinitions']=_0x30631f[0x0]),_0x344d03['length']){if(_0x344d03['length']>0x1||this['_footnotesDefinitions']&&_0x344d03['some'](_0x51a745=>_0x51a745!==this['_footnotesDefinitions'])){const _0x101f29=_0x540667['createElement']('footnotesDefinitions',{}),_0xa7424d=[];this['_footnotesDefinitions']&&_0xa7424d['push'](this['_footnotesDefinitions']),_0xa7424d['push'](..._0x344d03),_0x540667['insert'](_0x101f29,_0xa7424d[0x0],'before');for(const _0x4b27eb of _0xa7424d)_0x540667['move'](_0x540667['createRangeIn'](_0x4b27eb),_0x540667['createPositionAt'](_0x101f29,'end')),_0x540667['remove'](_0x4b27eb);this['_footnotesDefinitions']=_0x101f29,this['_updateFootnotesCounters'](_0x540667),_0x5a4d54=!0x0;}else this['_footnotesDefinitions']=_0x344d03[0x0];}if(_0x56f6c5['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1e8721 of this['_footnotes'])_0x540667['remove'](_0x1e8721['reference']),_0x5a4d54=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5a4d54;}['_handleFootnoteDefinitionsChanges'](_0x3816eb,_0x36d699){let _0xf10784=!0x1;const _0x329a41=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x366d75,moved:_0x50208b}=this['_footnoteDefsTracker']['getChanges'](_0x36d699);for(const _0x57ff5b of[..._0x50208b,..._0x366d75]){const _0x4c3797=_0x57ff5b['getAttribute']('footnoteId'),_0x3a4877=this['getFootnote'](_0x4c3797);_0x3a4877&&(_0x3a4877['definition']=_0x57ff5b),_(_0x3816eb,_0x329a41,_0x57ff5b)&&(_0xf10784=!0x0);}return _0xf10784;}['_handleFootnoteReferencesChanges'](_0x8d9021,_0x36cfda){let _0x4ed4d2=!0x1;const {removed:_0x377547,inserted:_0x38675d,moved:_0x44a724}=this['_footnoteRefsTracker']['getChanges'](_0x36cfda);for(const _0x5ec75d of _0x377547)this['_handleRemoveFootnoteReferenceById'](_0x8d9021,_0x5ec75d)&&(_0x4ed4d2=!0x0);for(const _0x6a8e3 of _0x38675d)this['_handleInsertedFootnoteReference'](_0x8d9021,_0x6a8e3)&&(_0x4ed4d2=!0x0);for(const _0x27ed23 of _0x44a724)this['_handleMovedFootnoteReference'](_0x8d9021,_0x27ed23)&&(_0x4ed4d2=!0x0);return _0x4ed4d2;}['_handleFootnotesDefinitionsObjectSync'](_0x4a528d){if(!this['_footnotesDefinitions'])return!0x1;let _0x50881f=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x42fac6=[];for(const _0x15816e of this['_footnotesDefinitions']['getChildren']()){const _0x14e0c8=_0x15816e['getAttribute']('footnoteId');this['getFootnote'](_0x14e0c8)||(_0x42fac6['unshift'](_0x15816e),_0x50881f=!0x0);}for(const _0x529953 of _0x42fac6)_0x4a528d['remove'](_0x529953);}const _0x22afef=new Set(),_0x481db4=[];for(const _0x44279d of this['_footnotesDefinitions']['getChildren']()){const _0x279561=_0x44279d['getAttribute']('footnoteId');_0x22afef['has'](_0x279561)?(_0x481db4['unshift'](_0x44279d),_0x50881f=!0x0):_0x22afef['add'](_0x279561);}for(const _0x4d6170 of _0x481db4)_0x4a528d['remove'](_0x4d6170);return this['_footnotesDefinitions']['childCount']||(_0x4a528d['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x50881f=!0x0),_0x50881f;}['_handleInsertedFootnoteReference'](_0x1a0842,_0x313945){if(this['_footnotes']['find'](_0x2ae95e=>_0x2ae95e['reference']===_0x313945))return!0x1;let _0xc28142=!0x1;const _0x2185ad=_0x313945['getAttribute']('footnoteId'),_0x52f9e0=this['getFootnote'](_0x2185ad);_0x52f9e0&&(_0x1a0842['remove'](_0x52f9e0['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x2645e9=>_0x2645e9['id']!==_0x2185ad),_0xc28142=!0x0);let _0x586d95=this['_footnotesDefinitions']?function(_0x2ddf99,_0x2183f9){for(const _0x30bbda of _0x2ddf99['getChildren']())if(_0x30bbda['getAttribute']('footnoteId')===_0x2183f9)return _0x30bbda;return null;}(this['_footnotesDefinitions'],_0x2185ad):null;_0x586d95||(_0x586d95=_0x1a0842['createElement']('footnoteDefinition',{'footnoteId':_0x2185ad}),this['_footnotesDefinitions']&&(_0x1a0842['insert'](_0x586d95,this['_footnotesDefinitions'],'end'),_0xc28142=!0x0));const _0x3084b4={'id':_0x2185ad,'reference':_0x313945,'definition':_0x586d95},_0x173cad=I(this['editor']['model'],this['_footnotes'],_0x313945);return this['_footnotes']['splice'](_0x173cad,0x0,_0x3084b4),this['_updateFootnotesCounters'](_0x1a0842,_0x173cad)&&(_0xc28142=!0x0),_0xc28142;}['_handleRemoveFootnoteReferenceById'](_0x14e730,_0x4b2175){const _0x524bc6=this['_footnotes']['findIndex'](_0x216309=>_0x216309['id']===_0x4b2175);if(-0x1===_0x524bc6)return!0x1;let _0x20c278=!0x1;const _0x1121f8=this['_footnotes'][_0x524bc6];return'$graveyard'!==_0x1121f8['definition']['root']['rootName']&&(_0x14e730['remove'](_0x1121f8['definition']),_0x20c278=!0x0),this['_footnotes']['splice'](_0x524bc6,0x1),this['_updateFootnotesCounters'](_0x14e730,_0x524bc6)&&(_0x20c278=!0x0),_0x20c278;}['_handleMovedFootnoteReference'](_0x40517e,_0x365ecd){const _0x16a047=_0x365ecd['getAttribute']('footnoteId'),_0x5b8b55=this['_footnotes']['findIndex'](_0x3f8c70=>_0x3f8c70['id']===_0x16a047),_0x1b6111=this['_footnotes'][_0x5b8b55];let _0x305f0f=!0x1;_0x1b6111['reference']=_0x365ecd,this['_footnotes']['splice'](_0x5b8b55,0x1);const _0x2979b=I(this['editor']['model'],this['_footnotes'],_0x365ecd);return this['_footnotes']['splice'](_0x2979b,0x0,_0x1b6111),this['_updateFootnotesCounters'](_0x40517e,Math['min'](_0x5b8b55,_0x2979b))&&(_0x305f0f=!0x0),_0x305f0f;}['_updateFootnoteRefCounter'](_0x22e239,_0x11829a){if(!this['_footnotesDefinitions'])return!0x1;const _0xe794dd=this['_footnotes'][_0x11829a];let _0x263d0a;return _0x263d0a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xe794dd,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x11829a+0x1}):String(_0x11829a+0x1),_0xe794dd['reference']['getAttribute']('footnoteCounter')!=_0x263d0a&&(_0x22e239['setAttribute']('footnoteCounter',_0x263d0a,_0xe794dd['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x390567){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1f62ce,_0x510c6b){if(_0x1f62ce['length']!==_0x510c6b['length'])return!0x1;for(let _0x413133=0x0;_0x413133<_0x1f62ce['length'];_0x413133++)if(_0x1f62ce[_0x413133]!==_0x510c6b[_0x413133])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x246cff=>_0x246cff['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x30003b=>_0x30003b['getAttribute']('footnoteId'))))return!0x1;let _0x5bf8c8=!0x1;for(let _0x179c17=0x0;_0x179c17<this['_footnotes']['length'];_0x179c17++){const _0x2ff708=this['_footnotes'][_0x179c17],_0x2e404d=_0x390567['createPositionBefore'](_0x2ff708['definition']),_0x492e06=_0x390567['createPositionAt'](this['_footnotesDefinitions'],_0x179c17);_0x2e404d['isEqual'](_0x492e06)||(_0x390567['move'](_0x390567['createRangeOn'](_0x2ff708['definition']),_0x492e06),_0x5bf8c8=!0x0);}return _0x5bf8c8;}['_ensureFootnotesReferencesHaveProperOrder'](_0x399f38){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4135fd}=this['editor'];let _0x30fb65=!0x1;for(let _0x108a94=0x0;_0x108a94<this['_footnotes']['length']-0x1;_0x108a94++){const _0x17af1c=this['_footnotes'][_0x108a94],_0x4c586c=this['_footnotes'][_0x108a94+0x1],_0x1c1f2c=_0x4135fd['createPositionBefore'](_0x17af1c['reference']),_0x7e588a=_0x4135fd['createPositionBefore'](_0x4c586c['reference']);'after'===_0x1c1f2c['compareWith'](_0x7e588a)&&(this['_handleMovedFootnoteReference'](_0x399f38,_0x17af1c['reference']),_0x108a94=-0x1,_0x30fb65=!0x0);}return _0x30fb65;}}function _(_0xf331a4,_0x57efd9,_0x3a548a){if(_0x3a548a['childCount'])return!0x1;const _0x2723be=_0x57efd9?'paragraph':'footnoteInlineContent';return _0xf331a4['insert'](_0xf331a4['createElement'](_0x2723be),_0x3a548a),!0x0;}function I(_0x10f88a,_0x10e6da,_0x413f8e){if(0x0===_0x10e6da['length'])return 0x0;const _0x40b6ff=_0x10f88a['createPositionBefore'](_0x413f8e);for(let _0x2f92fa=0x0;_0x2f92fa<_0x10e6da['length'];_0x2f92fa++){const _0x7c5330=_0x10e6da[_0x2f92fa],_0x4fec91=_0x10f88a['createPositionBefore'](_0x7c5330['reference']);if('before'===_0x40b6ff['compareWith'](_0x4fec91))return _0x2f92fa;}const _0x5d92a7=_0x413f8e['root'];let _0x1211cf=-0x1;for(let _0x4bf9c0=_0x10e6da['length']-0x1;_0x4bf9c0>=0x0;_0x4bf9c0--)if(_0x10e6da[_0x4bf9c0]['reference']['root']===_0x5d92a7){_0x1211cf=_0x4bf9c0;break;}if(-0x1!==_0x1211cf)return _0x1211cf+0x1;const _0x57637f=_0x10f88a['document']['getRootNames'](),_0x42b5b9=_0x57637f['indexOf'](_0x5d92a7['rootName']),_0x350448=_0x57637f[_0x42b5b9+0x1];if(_0x350448){for(let _0x2e10c4=0x0;_0x2e10c4<_0x10e6da['length'];_0x2e10c4++)if(_0x10e6da[_0x2e10c4]['reference']['root']['rootName']===_0x350448)return _0x2e10c4;}return _0x10e6da['length'];}class w extends _0xab527f{['refresh'](){const _0x4bb889=this['editor']['model']['document']['selection'],_0x10ac05=this['_getPositionToInsertFootnote'](_0x4bb889);this['isEnabled']=!!_0x10ac05;}['execute'](_0x1aef91){const {editor:_0x311e34}=this,{model:_0x5b4189}=_0x311e34,{selection:_0x37f67d}=_0x5b4189['document'],_0x714c36=this['_getPositionToInsertFootnote'](_0x37f67d);if(!_0x714c36)return;const _0x496d2d=_0x311e34['plugins']['get']('FootnotesEditing'),_0x2e069c=_0x1aef91?.['footnoteId']??_0x28bc9d();!function(_0x29b9ba){return'string'==typeof _0x29b9ba&&_0x29b9ba['length']>0x0&&!/\s/['test'](_0x29b9ba)&&!/^\d/['test'](_0x29b9ba);}(_0x2e069c)?_0x45acae('insert-footnote-command-executed-with-invalid-id'):(_0x5b4189['change'](_0x47cb95=>{const _0x229910=_0x47cb95['createElement']('footnoteRef',{'footnoteId':_0x2e069c});_0x5b4189['insertObject'](_0x229910,_0x714c36,null);}),_0x496d2d['_moveSelectionToFootnoteDefinition'](_0x2e069c));}['_getPositionToInsertFootnote'](_0x1484aa){const {model:_0x2877a1}=this['editor'],{schema:_0x4dd654}=_0x2877a1,_0x4aeff8=_0x1484aa['getFirstRange']();for(const _0x50a815 of _0x4aeff8['getItems']())if(_0x4dd654['isBlock'](_0x50a815)||_0x4dd654['isObject'](_0x50a815))return null;const _0x5f0068=_0x4aeff8['end'];return _0x4dd654['checkChild'](_0x5f0068,'footnoteRef')?_0x5f0068:null;}}class r extends _0x3273f4{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a9f5b}=this;_0x1a9f5b['config']['define']('footnotes.multiBlock',!0x0),_0x1a9f5b['commands']['add']('insertFootnote',new w(_0x1a9f5b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4ef1b7){const _0x51920d=_0x2c9082([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]),_0x47f5ca=0x47a28506,_0x3e44b0=0x47a5f35e^_0x47f5ca,_0x1e3b58=window[_0x2c9082([0x44,0x61,0x74,0x65])][_0x2c9082([0x6e,0x6f,0x77])](),_0x4abf34=_0x4ef1b7[_0x2c9082([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a0d6e=new window[(_0x2c9082([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x85f9ae=>{_0x4abf34[_0x2c9082([0x6f,0x6e,0x63,0x65])](_0x2c9082([0x72,0x65,0x61,0x64,0x79]),_0x85f9ae);}),_0x2e91e2={[_0x2c9082([0x6b,0x74,0x79])]:_0x2c9082([0x45,0x43]),[_0x2c9082([0x75,0x73,0x65])]:_0x2c9082([0x73,0x69,0x67]),[_0x2c9082([0x63,0x72,0x76])]:_0x2c9082([0x50,0x2d,0x32,0x35,0x36]),[_0x2c9082([0x78])]:_0x2c9082([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]),[_0x2c9082([0x79])]:_0x2c9082([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]),[_0x2c9082([0x61,0x6c,0x67])]:_0x2c9082([0x45,0x53,0x32,0x35,0x36])},_0x46c1de=_0x4abf34[_0x2c9082([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c9082([0x67,0x65,0x74])](_0x2c9082([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x148da5(){let _0x2b9d5e,_0x3c5e09=null,_0x1513d5=null;try{if(_0x46c1de==_0x2c9082([0x47,0x50,0x4c]))return _0x2c9082([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b9d5e=_0xc71b8a(),!_0x2b9d5e)return _0x2c9082([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b9d5e[_0x2c9082([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1513d5=_0x24773b(_0x2b9d5e[_0x2c9082([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b9d5e[_0x2c9082([0x6a,0x74,0x69])])),await _0x16e28c()?_0x52ff61()?_0x20f04e()?_0x2c9082([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ceb50()?(_0x2b9d5e[_0x2c9082([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c9082([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c5e09=_0x4115a5(_0x2c9082([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b9d5e[_0x2c9082([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c9082([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c5e09=_0x4115a5(_0x2c9082([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b4fd6()):_0x2c9082([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c9082([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c9082([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c9082([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20f04e(){const _0x321312=[_0x2c9082([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c9082([0x74,0x72,0x69,0x61,0x6c])][_0x2c9082([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9d5e[_0x2c9082([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e3b58/0x3e8:0xe10*_0x3e44b0;return _0x2b9d5e[_0x2c9082([0x65,0x78,0x70])]<_0x321312;}function _0x52ff61(){const _0x1ac697=_0x2b9d5e[_0x2c9082([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ac697&&(!!_0x1ac697[_0x2c9082([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9082([0x2a]))||!!_0x1ac697[_0x2c9082([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9082([0x46,0x4f,0x4f])));}function _0x5ceb50(){const _0x279662=_0x2b9d5e[_0x2c9082([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x279662||0x0==_0x279662[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35dd16}=new URL(window[_0x2c9082([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x279662[_0x2c9082([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35dd16))return!0x0;const _0x53c5e9=_0x35dd16[_0x2c9082([0x73,0x70,0x6c,0x69,0x74])](_0x2c9082([0x2e]));return _0x279662[_0x2c9082([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5de17e=>_0x5de17e[_0x2c9082([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9082([0x2a])))[_0x2c9082([0x6d,0x61,0x70])](_0x5d7c7e=>_0x5d7c7e[_0x2c9082([0x73,0x70,0x6c,0x69,0x74])](_0x2c9082([0x2e])))[_0x2c9082([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x142fdc=>_0x142fdc[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53c5e9[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c9082([0x6d,0x61,0x70])](_0x1a72b2=>Array(_0x53c5e9[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a72b2[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c9082([0x66,0x69,0x6c,0x6c])](_0x1a72b2[0x0]===_0x2c9082([0x2a])?_0x2c9082([0x2a]):'')[_0x2c9082([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a72b2))[_0x2c9082([0x73,0x6f,0x6d,0x65])](_0x2eb8b9=>_0x53c5e9[_0x2c9082([0x65,0x76,0x65,0x72,0x79])]((_0x2af254,_0x146cb1)=>_0x2eb8b9[_0x146cb1]===_0x2af254||_0x2eb8b9[_0x146cb1]===_0x2c9082([0x2a])));}function _0x2b4fd6(){return _0x3c5e09&&_0x1513d5?new window[(_0x2c9082([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x109aac,_0x648f93)=>{_0x3c5e09[_0x2c9082([0x74,0x68,0x65,0x6e])](_0x109aac,_0x648f93),_0x1513d5[_0x2c9082([0x74,0x68,0x65,0x6e])](_0x494ff4=>{_0x494ff4!=_0x2c9082([0x56,0x61,0x6c,0x69,0x64])&&_0x109aac(_0x494ff4);},_0x648f93);}):_0x3c5e09||_0x1513d5||_0x2c9082([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24773b(_0x2baedf,_0x33c041){return new window[(_0x2c9082([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e1450=>{if(_0x4c713a())return _0x1e1450(_0x2c9082([0x56,0x61,0x6c,0x69,0x64]));_0x5a4e70(),_0x4abf34[_0x2c9082([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c9082([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x381dd8=!0x1;const _0x2b9807=_0x28bc9d();function _0x2d6ea3(_0x55c060){return!!_0x55c060&&(typeof _0x55c060===_0x2c9082([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55c060===_0x2c9082([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55c060[_0x2c9082([0x74,0x68,0x65,0x6e])]===_0x2c9082([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55c060[_0x2c9082([0x63,0x61,0x74,0x63,0x68])]===_0x2c9082([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ad50d(_0x297a56){_0x4c7aaf(_0x297a56)[_0x2c9082([0x74,0x68,0x65,0x6e])](_0xc25ee=>{if(!_0xc25ee||_0xc25ee[_0x2c9082([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c9082([0x6f,0x6b]))return _0x2c9082([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c5503(_0x3a0626(_0x2b9807+_0x33c041))!=_0xc25ee[_0x2c9082([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c9082([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c9082([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c9082([0x74,0x68,0x65,0x6e])](_0x68e493=>(_0x5fc52d(),_0x68e493),()=>{const _0x5e1bcd=_0x37b1cd();return null==_0x5e1bcd?(_0x5fc52d(),_0x2c9082([0x56,0x61,0x6c,0x69,0x64])):_0x2c9082(_0x1e3b58-_0x5e1bcd>(0x63ae0106^_0x47f5ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c9082([0x74,0x68,0x65,0x6e])](_0x1e1450)[_0x2c9082([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e1450(_0x2c9082([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5cc1f5=0x47946b86^_0x47f5ca;function _0x5fc52d(){const _0x723ac1=_0x2c9082([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c5503(_0x3a0626(_0x2baedf)),_0x309596=_0x4a74c8(_0x4c5503(window[_0x2c9082([0x4d,0x61,0x74,0x68])][_0x2c9082([0x63,0x65,0x69,0x6c])](_0x1e3b58/_0x5cc1f5)));window[_0x2c9082([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c9082([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x723ac1,_0x309596);}function _0x37b1cd(){const _0xe25f25=_0x2c9082([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c5503(_0x3a0626(_0x2baedf)),_0xc7a90b=window[_0x2c9082([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c9082([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe25f25);return _0xc7a90b?window[_0x2c9082([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a74c8(_0xc7a90b),0x10)*_0x5cc1f5:null;}function _0x4c7aaf(_0xa671d){return new window[(_0x2c9082([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55f453,_0x3b7ac0)=>{_0xa671d[_0x2c9082([0x74,0x68,0x65,0x6e])](_0x55f453,_0x3b7ac0),window[_0x2c9082([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b7ac0,0x47a351c6^_0x47f5ca);});}}_0x4abf34[_0x2c9082([0x6f,0x6e])](_0x2c9082([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13bc42,_0x54b700)=>{if(_0x54b700[0x0]!=_0x2baedf)return _0x1e1450(_0x2c9082([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54b700[0x1]={..._0x54b700[0x1],[_0x2c9082([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b9807};},{[_0x2c9082([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c9082([0x68,0x69,0x67,0x68])}),_0x4abf34[_0x2c9082([0x6f,0x6e])](_0x2c9082([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2dc8f7=>{_0x2d6ea3(_0x2dc8f7[_0x2c9082([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x381dd8=!0x0,_0x3ad50d(_0x2dc8f7[_0x2c9082([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c9082([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c9082([0x6c,0x6f,0x77])}),_0x3a0d6e[_0x2c9082([0x74,0x68,0x65,0x6e])](()=>{_0x381dd8||_0x1e1450(_0x2c9082([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c713a(){return _0x4abf34[_0x2c9082([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c9082([0x76,0x69,0x65,0x77])][_0x2c9082([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c9082([0x61,0x75,0x74,0x6f]);}function _0x5a4e70(){_0x4abf34[_0x2c9082([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c9082([0x76,0x69,0x65,0x77])][_0x2c9082([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c9082([0x61,0x75,0x74,0x6f]);}}function _0x4115a5(_0x26d357){const _0x2edb7a=[new window[(_0x2c9082([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f3b7=>setTimeout(_0x42f3b7,0x47abbbca^_0x47f5ca)),_0x3a0d6e[_0x2c9082([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c9082([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x757ced=>{let _0xd235b=0x0;_0x4abf34[_0x2c9082([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c9082([0x6f,0x6e])](_0x2c9082([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41e9c9,_0xc458f3)=>{_0xc458f3[0x0][_0x2c9082([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd235b++,_0xd235b==(0x47a284fe^_0x47f5ca)&&(_0x757ced(),_0x41e9c9[_0x2c9082([0x6f,0x66,0x66])]());});}))];return window[_0x2c9082([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c9082([0x72,0x61,0x63,0x65])](_0x2edb7a)[_0x2c9082([0x74,0x68,0x65,0x6e])](()=>_0x26d357);}async function _0x5742b1(){await _0x3a0d6e,_0x4abf34[_0x2c9082([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c9082([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5144ea,_0x4abf34[_0x2c9082([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c9082([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5144ea,_0x4abf34[_0x2c9082([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c9082([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52a932(_0x59059f){const _0x254a9e=_0x3b5d52();_0x4abf34[_0x254a9e]=_0x2c9082([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59059f,_0x59059f!=_0x2c9082([0x56,0x61,0x6c,0x69,0x64])&&_0x5742b1();}function _0x3b5d52(){const _0x15c5ef=window[_0x2c9082([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c9082([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c9082([0x6e,0x6f,0x77])]())[_0x2c9082([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c9082([0x2e]),'');let _0x35d8f2=_0x2c9082([0x75]);for(let _0x880ff=0x0;_0x880ff<_0x15c5ef[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x880ff+=0x2){let _0x30c67d=window[_0x2c9082([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15c5ef[_0x2c9082([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x880ff,_0x880ff+0x2));_0x30c67d>=_0x51920d[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30c67d-=_0x51920d[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35d8f2+=_0x51920d[_0x30c67d];}return _0x35d8f2;}function _0xc71b8a(){const _0x825dca=_0x46c1de[_0x2c9082([0x73,0x70,0x6c,0x69,0x74])](_0x2c9082([0x2e]));if(0x3!=_0x825dca[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a6b3e(_0x825dca[0x1]);function _0x1a6b3e(_0x2a8236){const _0x1daebc=_0x446ccc(_0x2a8236);return _0x1daebc&&_0x316b9d()?_0x1daebc:null;function _0x316b9d(){const _0x245467=_0x1daebc[_0x2c9082([0x6a,0x74,0x69])],_0x4fa70b=window[_0x2c9082([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x245467[_0x2c9082([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x245467[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b48c1={..._0x1daebc,[_0x2c9082([0x6a,0x74,0x69])]:_0x245467[_0x2c9082([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x245467[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b48c1[_0x2c9082([0x76,0x63])],_0x3a0626(_0x1b48c1)==_0x4fa70b;}}}async function _0x16e28c(){let _0xaf1382=!0x0;try{const _0x2ba2d9=_0x46c1de[_0x2c9082([0x73,0x70,0x6c,0x69,0x74])](_0x2c9082([0x2e])),[_0x2cca70,_0x5700eb,_0x52e6d5]=_0x2ba2d9;return _0xc07d8c(_0x2cca70),await _0x112031(_0x2cca70,_0x5700eb,_0x52e6d5),_0xaf1382;}catch{return!0x1;}function _0xc07d8c(_0x2c9a63){const _0x5264d4=_0x446ccc(_0x2c9a63);_0x5264d4&&_0x5264d4[_0x2c9082([0x61,0x6c,0x67])]==_0x2c9082([0x45,0x53,0x32,0x35,0x36])||(_0xaf1382=!0x1);}async function _0x112031(_0x531658,_0xc7e0b0,_0x9cd8bf){const _0x3d3911=window[_0x2c9082([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c9082([0x66,0x72,0x6f,0x6d])](_0x526039(_0x9cd8bf),_0x19afe3=>_0x19afe3[_0x2c9082([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3fd61e=new window[(_0x2c9082([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c9082([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x531658+_0x2c9082([0x2e])+_0xc7e0b0),_0x5998e8=window[_0x2c9082([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c9082([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5998e8)return;const _0x5f4956=await _0x5998e8[_0x2c9082([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c9082([0x6a,0x77,0x6b]),_0x2e91e2,{[_0x2c9082([0x6e,0x61,0x6d,0x65])]:_0x2c9082([0x45,0x43,0x44,0x53,0x41]),[_0x2c9082([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c9082([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c9082([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5998e8[_0x2c9082([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c9082([0x6e,0x61,0x6d,0x65])]:_0x2c9082([0x45,0x43,0x44,0x53,0x41]),[_0x2c9082([0x68,0x61,0x73,0x68])]:{[_0x2c9082([0x6e,0x61,0x6d,0x65])]:_0x2c9082([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f4956,_0x3d3911,_0x3fd61e)||(_0xaf1382=!0x1);}}function _0x446ccc(_0x5b396f){return _0x5b396f[_0x2c9082([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c9082([0x65,0x79]))?JSON[_0x2c9082([0x70,0x61,0x72,0x73,0x65])](_0x526039(_0x5b396f)):null;}function _0x526039(_0x314dab){return window[_0x2c9082([0x61,0x74,0x6f,0x62])](_0x314dab[_0x2c9082([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c9082([0x2b]))[_0x2c9082([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c9082([0x2f])));}function _0x3a0626(_0x8551b5){let _0x7c1b4f=0x1505;function _0x4d4612(_0x2b2e52){for(let _0x3ee877=0x0;_0x3ee877<_0x2b2e52[_0x2c9082([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ee877++){const _0x14e0be=_0x2b2e52[_0x2c9082([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ee877);_0x7c1b4f=(_0x7c1b4f<<0x5)+_0x7c1b4f+_0x14e0be,_0x7c1b4f&=_0x7c1b4f;}}function _0x5a0483(_0x12f49f){Array[_0x2c9082([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12f49f)?_0x12f49f[_0x2c9082([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a0483):_0x12f49f&&typeof _0x12f49f==_0x2c9082([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c9082([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12f49f)[_0x2c9082([0x73,0x6f,0x72,0x74])]()[_0x2c9082([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7430ac,_0x236072])=>{_0x4d4612(_0x7430ac),_0x5a0483(_0x236072);}):_0x4d4612(window[_0x2c9082([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12f49f));}return _0x5a0483(_0x8551b5),_0x7c1b4f>>>0x0;}function _0x4c5503(_0x3bdf31){return _0x3bdf31[_0x2c9082([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c9082([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c9082([0x30]));}function _0x4a74c8(_0x322e52){return _0x322e52[_0x2c9082([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c9082([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c9082([0x6a,0x6f,0x69,0x6e])]('');}function _0x5144ea(){}function _0x2c9082(_0x4e50b5){return _0x4e50b5['map'](_0x3f695b=>String['fromCharCode'](_0x3f695b))['join']('');}_0x52a932(await _0x148da5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5364cd){const {plugins:_0x4c0d85,editing:_0x410581,model:_0x1b884b}=this['editor'],_0x4e3ff7=_0x4c0d85['get'](c)['getFootnote'](_0x5364cd);return!!_0x4e3ff7&&(_0x1b884b['change'](_0x54c15a=>{_0x54c15a['setSelection'](_0x54c15a['createPositionAt'](_0x4e3ff7['definition'],'end'));}),_0x410581['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5f0256){const {plugins:_0x576faf,editing:_0x37fb8c,model:_0x4422f5}=this['editor'],_0x48e579=_0x576faf['get'](c)['getFootnote'](_0x5f0256);return!!_0x48e579&&(_0x4422f5['change'](_0x2b753e=>{_0x2b753e['setSelection'](_0x48e579['reference'],'on');}),_0x37fb8c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x58512d}=this['editor']['model'],_0x39615b=this['editor']['config']['get']('footnotes.multiBlock');_0x58512d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x58512d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x58512d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x39615b?_0x58512d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x58512d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x58512d['addChildCheck'](_0x106acc=>{for(const _0x2d886d of _0x106acc)if('footnoteDefinition'===_0x2d886d['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xc09855}=this,{conversion:_0x5abe8b,editing:_0x386cc6}=_0xc09855,{t:t}=_0xc09855['locale'];_0x5abe8b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5ea190,{writer:_0x4a2de1,consumable:_0x5d4727})=>{const _0x314279=_0x5ea190['getChild'](0x0);if(!_0x314279||!_0x314279['is']('element','a'))return null;const _0x14fa62=_0x314279['getAttribute']('href')||'';if(!_0x14fa62['startsWith']('#'))return null;const _0xf565b9=_0x14fa62['replace'](/^#/,'');if(!_0xf565b9)return null;_0x5d4727['consume'](_0x314279,{'name':!0x0,'attributes':['href']});for(const {item:_0x59d243}of _0x386cc6['view']['createRangeIn'](_0x314279))_0x59d243['is']('$textProxy')?_0x5d4727['consume'](_0x59d243['textNode'],{'name':!0x0}):_0x59d243['is']('element')&&_0x5d4727['consume'](_0x59d243,{'name':!0x0});return _0x4a2de1['createElement']('footnoteRef',{'footnoteId':_0xf565b9});}}),_0x5abe8b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x595559,{writer:_0x53b97c})=>g(_0x595559,_0x53b97c)}),_0x5abe8b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x202e13,{writer:_0xc612c0})=>{const _0x56485b=_0x202e13['getAttribute']('footnoteCounter');return _0x555f64(g(_0x202e13,_0xc612c0),_0xc612c0,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x56485b)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4efa47}=this,{t:t}=_0x4efa47['locale'],{conversion:_0x3cfcf2}=_0x4efa47;_0x3cfcf2['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x3cfcf2['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x3cfcf2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2a80aa,{writer:_0x44b7e9})=>{const _0x3b9b64=_0x44b7e9['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x44b7e9['createContainerElement']('ol',{'class':'footnotes'},_0x44b7e9['createSlot']())),_0x2301a8=_0x555f64(_0x3b9b64,_0x44b7e9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x44b7e9['setCustomProperty']('footnotesDefinitions',!0x0,_0x2301a8),_0x2301a8;}});}['_defineDefinitionConverters'](){const {editor:_0x5def77}=this,{conversion:_0x2d1f9d,locale:_0xd62d6e}=_0x5def77,_0x161d25=_0x5def77['config']['get']('footnotes.multiBlock');_0x2d1f9d['for']('upcast')['add'](_0x192a47=>{_0x192a47['on']('element:li',(_0x365226,_0x5823ac,_0x23c0cc)=>{const _0x27eebb=_0x5823ac['viewItem'];if(!_0x27eebb['hasClass']('footnote-definition')||!_0x27eebb['getAttribute']('id'))return;const _0x31f417=_0x27eebb['parent'];if(!_0x31f417['is']('element','ol')||!_0x31f417['hasClass']('footnotes'))return;if(!_0x23c0cc['consumable']['test'](_0x27eebb,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x8e864f=_0x23c0cc['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x27eebb['getAttribute']('id')});if(!_0x23c0cc['safeInsert'](_0x8e864f,_0x5823ac['modelCursor']))return;_0x23c0cc['consumable']['consume'](_0x27eebb,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5f1d21=Array['from'](_0x27eebb['getChildren']())['find'](_0x29d278=>_0x29d278['is']('element')&&_0x29d278['hasClass']('footnote-content'));for(const _0x32497c of _0x27eebb['getChildren']())_0x32497c['is']('element')&&(_0x23c0cc['consumable']['consume'](_0x32497c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x23c0cc['consumable']['consume'](_0x32497c,{'name':!0x0,'classes':'footnote-content'}));if(_0x5f1d21){if(_0x161d25)_0x23c0cc['convertChildren'](_0x5f1d21,_0x8e864f);else{const _0x5a4d33=_0x23c0cc['writer']['createElement']('footnoteInlineContent');_0x23c0cc['writer']['insert'](_0x5a4d33,_0x8e864f),_0x23c0cc['convertChildren'](_0x5f1d21,_0x5a4d33);}}_0x23c0cc['updateConversionResult'](_0x8e864f,_0x5823ac);});}),_0x2d1f9d['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4802ad,{writer:_0x344f23})=>D(_0x4802ad,_0x344f23,_0xd62d6e,{'dataPipeline':!0x0})}),_0x2d1f9d['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x509ada,{writer:_0x4132b2})=>D(_0x509ada,_0x4132b2,_0xd62d6e)});}['_defineBogusParagraphConverters'](){const {editor:_0x10a552}=this,{conversion:_0x2bca6c}=_0x10a552;_0x10a552['config']['get']('footnotes.multiBlock')?(_0x2bca6c['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x2bca6c['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x10a552['model']['document'],'change:data',()=>{!function(_0x397a35,_0x279c52){const _0x209f7f=_0x397a35['document']['differ'],_0x5b9e04=new Set();for(const _0x5e8334 of _0x209f7f['getChanges']()){const _0x26c7a8='attribute'==_0x5e8334['type']?_0x5e8334['range']['start']['parent']:_0x5e8334['position']['parent'];_0x26c7a8['is']('element','footnoteDefinition')&&_0x5b9e04['add'](_0x26c7a8);}for(const _0x387e48 of _0x5b9e04['values']()){const _0xed39c1=Array['from'](_0x387e48['getChildren']())['filter'](_0x537e7a=>p(_0x537e7a,_0x279c52['mapper']));for(const _0x413967 of _0xed39c1)_0x279c52['reconvertItem'](_0x413967);}}(_0x10a552['model'],_0x10a552['editing']);})):(_0x2bca6c['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x2bca6c['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x56ab0d,{writer:_0x5c1328})=>{const _0x3b4549=_0x5c1328['createContainerElement']('span');return _0x5c1328['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3b4549),_0x3b4549;}}));}['_defineKeyboardHandlers'](){const {editor:_0x522882}=this,{editing:_0x552867,t:t}=_0x522882,_0x3fdd20=_0x522882['model']['document']['selection'];_0x522882['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x522882['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x552867['view']['document'],'enter',(_0x41564f,_0x48cc35)=>{const _0x5cce42=function(_0x4fe8e2){const _0x3400e3=_0x4fe8e2['getSelectedElement']();if(_0x3400e3?.['is']('element','footnoteRef'))return _0x3400e3;return null;}(_0x3fdd20);if(_0x5cce42){const _0x29e50f=_0x5cce42['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x29e50f),_0x48cc35['preventDefault'](),_0x41564f['stop']();}},{'context':_0x598dfa});}['_defineClickHandlers'](){const {editor:_0x9cfbb2}=this,{editing:_0x33dd4d}=_0x9cfbb2;_0x9cfbb2['editing']['view']['addObserver'](_0x17fff3),_0x9cfbb2['editing']['view']['addObserver'](_0x53b540);let _0x1cc637=!0x1;this['listenTo'](_0x33dd4d['view']['document'],'pointerdown',(_0xa7169f,_0x272f89)=>{const {target:_0x4f0fdb}=_0x272f89,_0x549252=_0x33dd4d['view']['document']['selection'];_0x1cc637=!(!_0x4f0fdb['is']('element','sup')||!_0x4f0fdb['hasClass']('footnote'))&&_0x549252['getSelectedElement']()===_0x4f0fdb;},{'priority':'high'}),this['listenTo'](_0x33dd4d['view']['document'],'click',(_0x41d65a,_0x4ba307)=>{const {target:_0x1685a5}=_0x4ba307,_0x52a226=_0x1685a5['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x52a226['slice'](0x1)),_0x41d65a['stop'](),_0x4ba307['preventDefault']();},{'priority':'high','context':_0x28fd77=>_0x28fd77['is']('element','sup')&&_0x28fd77['hasClass']('footnote')&&_0x1cc637}),this['listenTo'](_0x33dd4d['view']['document'],'click',(_0x301fe4,_0x4aa033)=>{const {target:_0x3ef73c}=_0x4aa033;if(!_0x3ef73c['is']('element','a'))return;let _0x256467=_0x3ef73c['getAttribute']('href');if(!_0x256467?.['startsWith']('#'))return;_0x256467=_0x256467['slice'](0x1);let _0x6b3206=!0x1;(_0x256467['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x256467['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x256467))&&(_0x6b3206=!0x0),_0x6b3206&&(_0x4aa033['preventDefault'](),_0x301fe4['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x39043e}={}){return(_0x170eed,{writer:_0x241407})=>{if(!h(_0x170eed))return null;if(!_0x39043e)return _0x241407['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1e57ad=_0x241407['createContainerElement']('p');return _0x241407['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1e57ad),_0x1e57ad;};}function h(_0x1c9ab1){const {parent:_0x39e840}=_0x1c9ab1;if(!_0x39e840?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x39e840['childCount'])return!0x1;for(const _0x405aa8 of _0x1c9ab1['getAttributeKeys']())if(!_0x405aa8['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x405aa8)return!0x1;return!0x0;}function p(_0x2c3db6,_0x2d8ed2){if(!_0x2c3db6['is']('element','paragraph'))return!0x1;const _0x2d8109=_0x2d8ed2['toViewElement'](_0x2c3db6);return!!_0x2d8109&&h(_0x2c3db6)!==_0x2d8109['is']('element','span');}function $(_0x53f938){return _0x598dfa(_0x53f938)&&_0x53f938['is']('containerElement')&&!!_0x53f938['getCustomProperty']('footnotesDefinitions');}function g(_0x2dd253,_0x1b3cdf){const _0x22461a=_0x2dd253['getAttribute']('footnoteId'),_0x2e7eca=_0x2dd253['getAttribute']('footnoteCounter'),_0x53caf3=_0x1b3cdf['createUIElement']('a',{'id':'ref-'+_0x22461a,'href':'#'+_0x22461a},function(_0x22dc9e){const _0x4af388=this['toDomElement'](_0x22dc9e);return _0x4af388['textContent']=_0x2e7eca,_0x4af388;}),_0x3c3260=_0x1b3cdf['createContainerElement']('sup',{'class':'footnote'},[_0x53caf3]);return _0x3c3260['getFillerOffset']=()=>null,_0x3c3260;}function D(_0x240eed,_0xe809cd,_0x3c98ab,{dataPipeline:_0x458d66}={}){const {t:t}=_0x3c98ab,_0x5b8e88=_0x240eed['getAttribute']('footnoteId'),_0x2d2082=_0xe809cd['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5b8e88},function(_0x4ea0f8){const _0x2e410f=this['toDomElement'](_0x4ea0f8);return _0x2e410f['innerText']='^',_0x2e410f;}),_0x4fa93d=_0x458d66?_0xe809cd['createContainerElement']('div',{'class':'footnote-content'}):_0x1381fe(_0xe809cd['createEditableElement']('div',{'class':'footnote-content'}),_0xe809cd,{'label':t('Footnote\x20content.')});return _0xe809cd['insert'](_0xe809cd['createPositionAt'](_0x4fa93d,0x0),_0xe809cd['createSlot']()),_0xe809cd['createContainerElement']('li',{'class':'footnote-definition','id':_0x5b8e88},[_0x2d2082,_0x4fa93d]);}class e extends _0x3273f4{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x291bdf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3c034f}=this,{plugins:_0xb1bc97,model:_0x1ff279}=_0x3c034f,_0x4c4396=_0xb1bc97['get'](_0x291bdf),_0xe4a98e=_0xb1bc97['get'](c);this['listenTo'](_0x4c4396,'outputTransformation',(_0x3dc04d,_0xad75ea)=>{const _0x11fc6a=function(_0x6548ea,_0x3949dc){const _0x5bfc20=new Set();for(const {item:_0x4317ce}of _0x6548ea['createRangeIn'](_0x3949dc))_0x4317ce['is']('element','footnoteRef')&&_0x5bfc20['add'](_0x4317ce['getAttribute']('footnoteId'));return Array['from'](_0x5bfc20);}(_0x1ff279,_0xad75ea['content']);if(!_0x11fc6a['length'])return;const _0x18a27e=_0xe4a98e['getFootnotes'](),_0x5c467b=_0x11fc6a['reduce']((_0x4fcb54,_0x1273be)=>{const _0x148be6=_0x18a27e['find'](_0x58a2b9=>_0x58a2b9['id']===_0x1273be);if(_0x148be6){const _0x5f0a18=_0x3c034f['data']['toView'](_0x148be6['definition'],{'isClipboardPipeline':!0x0}),_0x4c0a32=_0x3c034f['data']['htmlProcessor']['toData'](_0x5f0a18);_0x4fcb54[_0x148be6['id']]=_0x4c0a32;}return _0x4fcb54;},Object['create'](null));_0xad75ea['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5c467b));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x24de9e}=this,{model:_0x5b36e2,plugins:_0x2f890d}=_0x24de9e,{view:_0x1e9ec}=_0x24de9e['editing'],_0x503dbd=_0x2f890d['get'](_0x291bdf),_0x4d7de0=_0x2f890d['get'](c);let _0x566b7c=null;this['listenTo'](_0x1e9ec['document'],'clipboardInput',(_0x22e234,_0x18c526)=>{const _0x51bc40=_0x18c526['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x566b7c=_0x51bc40?JSON['parse'](_0x51bc40):null;}),this['listenTo'](_0x503dbd,'contentInsertion',(_0x5ad76e,_0x59f504)=>{if(!_0x566b7c)return;const _0x2256a8=_0x59f504['sourceEditorId']===this['editor']['id'];_0x2256a8&&'drop'===_0x59f504['method']||_0x5b36e2['change'](_0x4ef574=>{!function(_0x157275,_0x2d4f5c){const _0x149135=[];for(const {item:_0x5ec06a}of _0x157275['createRangeIn'](_0x2d4f5c))_0x5ec06a['is']('element','footnotesDefinitions')&&_0x149135['push'](_0x5ec06a);for(const _0x52e748 of _0x149135)_0x157275['remove'](_0x52e748);}(_0x4ef574,_0x59f504['content']);let _0x563c8b=_0x4d7de0['getFootnotesDefinitionsObjectElement']();if(!_0x563c8b){const _0x5a0b72=_0x5b36e2['document']['selection']['getFirstRange']()['root'];_0x563c8b=_0x4d7de0['_insertEmptyFootnotesDefinitionsContainer'](_0x4ef574,_0x5a0b72);}const _0x51237d=function(_0x227080,_0x1439fa,_0xb83bc9){const _0x789670=Object['create'](null);for(const {item:_0x4abb11}of _0x227080['createRangeIn'](_0x1439fa))if(_0x4abb11['is']('element','footnoteRef')){const _0x295566=_0x4abb11['getAttribute']('footnoteId');if(!_0xb83bc9(_0x295566))continue;_0x789670[_0x295566]||(_0x789670[_0x295566]=_0x28bc9d()),_0x227080['setAttribute']('footnoteId',_0x789670[_0x295566],_0x4abb11);}return _0x789670;}(_0x4ef574,_0x59f504['content'],_0x5389e0=>!_0x2256a8||null!==_0x4d7de0['getFootnote'](_0x5389e0));for(const [_0x31593a,_0x5bef54]of Object['entries'](_0x566b7c)){const _0x141a69=_0x51237d[_0x31593a]||_0x31593a,_0x2a1270=_0x4ef574['createElement']('footnoteDefinition',{'footnoteId':_0x141a69}),_0x226a86=_0x24de9e['data']['htmlProcessor']['toView'](_0x5bef54),_0x4fa169=_0x24de9e['data']['toModel'](_0x226a86,_0x2a1270);_0x4ef574['append'](_0x4fa169,_0x2a1270),_0x4ef574['insert'](_0x2a1270,_0x563c8b,'end');}_0x566b7c=null;});});}}class i extends _0x3273f4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x212de3}=this,{componentFactory:_0x169ee6}=_0x212de3['ui'];_0x169ee6['add']('insertFootnote',v(_0x212de3,_0x584d85)),_0x169ee6['add']('menuBar:insertFootnote',v(_0x212de3,_0x51815e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e646f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb4b225;for(const _0x1f54ab in _0x5e646f){const _0x531021=_0x1f54ab,_0x1cfeef=_0x5e646f[_0x531021];if('footnotesLicenseKeyValid'==_0x1cfeef||'footnotesLicenseKeyInvalid'==_0x1cfeef||'footnotesLicenseKeyExpired'==_0x1cfeef||'footnotesLicenseKeyDomainLimit'==_0x1cfeef||'footnotesLicenseKeyNotAllowed'==_0x1cfeef||'footnotesLicenseKeyEvaluationLimit'==_0x1cfeef||'footnotesLicenseKeyTrialLimit'==_0x1cfeef||'footnotesLicenseKeyUsageLimit'==_0x1cfeef){delete _0x5e646f[_0x531021],_0xb4b225=_0x1cfeef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xb4b225&&_0x5e646f['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xb4b225&&_0x5e646f['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xb4b225&&_0x5e646f['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xb4b225&&_0x5e646f['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xb4b225&&_0x5e646f['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xb4b225&&_0x5e646f['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xb4b225&&_0x5e646f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x18f884,_0xd5e461){const _0x356320=_0x18f884['commands']['get']('insertFootnote');return _0x35d549=>{const {t:t}=_0x35d549,_0x1a6ef0=new _0xd5e461(_0x35d549),_0x1c8df2=_0x1a6ef0 instanceof _0x51815e;return _0x1a6ef0['bind']('isEnabled')['to'](_0x356320,'isEnabled'),_0x1a6ef0['set']({'label':t(_0x1c8df2?'Footnote':'Insert\x20footnote'),'icon':_0x143cf4,'tooltip':!0x0}),_0x1a6ef0['on']('execute',()=>{_0x356320['execute'](),_0x18f884['editing']['view']['focus']();}),_0x1a6ef0;};}class nt extends _0x3273f4{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const ot=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0xab527f{['refresh'](){const {editor:_0xc3ed6d}=this,_0x21e08a=_0xc3ed6d['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x21e08a,this['value']=_0x21e08a?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x34508d}){const {editor:_0x2a66e7}=this,_0x4c5396=_0x2a66e7['plugins']['get'](c),_0x3581ad=_0x4c5396['getFootnotesDefinitionsObjectElement']();_0x3581ad&&ot['includes'](_0x34508d)&&_0x2a66e7['model']['change'](_0x5466ac=>{_0x5466ac['setAttribute']('footnotesListStyle',_0x34508d,_0x3581ad),_0x4c5396['_updateFootnotesCounters'](_0x5466ac);});}}class b extends _0xab527f{['refresh'](){const {editor:_0xe8e787}=this,_0x5ee706=_0xe8e787['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5ee706,this['value']=_0x5ee706?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4779cb}){const {editor:_0x146f76}=this,_0x302520=_0x146f76['plugins']['get'](c),_0x200738=_0x302520['getFootnotesDefinitionsObjectElement']();_0x200738&&Number['isInteger'](_0x4779cb)&&_0x146f76['model']['change'](_0x42227d=>{_0x42227d['setAttribute']('footnotesListStart',_0x4779cb,_0x200738),_0x302520['_updateFootnotesCounters'](_0x42227d);});}}class P extends _0x3273f4{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x55fee3}=this;_0x55fee3['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x55fee3['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x55fee3['commands']['add']('footnotesStyle',new S(_0x55fee3)),_0x55fee3['commands']['add']('footnotesStart',new b(_0x55fee3)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x17615f}=this,{schema:_0xb8377f}=_0x17615f['model'];_0xb8377f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x249e7c}=this,{conversion:_0x3dcf40,model:_0x1759f0}=_0x249e7c,{schema:_0x2a82ec}=_0x1759f0;_0x3dcf40['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x52ac3d=>_0x52ac3d['getStyle']('list-style-type')}}),_0x3dcf40['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x8a6698=>{const _0x1b5354=_0x8a6698['getAttribute']('start'),_0x9ad140=Number['parseInt'](_0x1b5354,0xa);return Number['isNaN'](_0x9ad140)?null:_0x9ad140;}}}),_0x3dcf40['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x2cf7aa=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2cf7aa['getAttribute']('type')])}}),_0x3dcf40['for']('upcast')['add'](_0x29a910=>{_0x29a910['on']('element:ol',(_0x190c76,_0x537866,_0xc710c5)=>{const _0x3878db=_0x537866['modelRange']?.['start']['nodeAfter'];_0x3878db?.['is']('element','footnotesDefinitions')&&(!_0x3878db['hasAttribute']('footnotesListStyle')&&_0x2a82ec['checkAttribute'](_0x3878db,'footnotesListStyle')&&_0xc710c5['writer']['setAttribute']('footnotesListStyle','decimal',_0x3878db),!_0x3878db['hasAttribute']('footnotesListStart')&&_0x2a82ec['checkAttribute'](_0x3878db,'footnotesListStart')&&_0xc710c5['writer']['setAttribute']('footnotesListStart',0x1,_0x3878db));},{'priority':'low'});}),_0x3dcf40['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x23af5f=>0x1===_0x23af5f?null:{'key':'start','value':String(_0x23af5f)}}),_0x3dcf40['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x296a9d=>'decimal'===_0x296a9d?null:{'key':'style','value':{'list-style-type':_0x296a9d}}}),_0x3dcf40['for']('editingDowncast')['add'](_0xdd723b=>{_0xdd723b['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x28be67,_0x3ff995,_0x4c4e15)=>{if(!_0x4c4e15['consumable']['consume'](_0x3ff995['item'],_0x28be67['name']))return;const _0xf9f657=C(_0x3ff995['item'],_0x4c4e15['mapper']);null===_0x3ff995['attributeNewValue']||void 0x0===_0x3ff995['attributeNewValue']||0x1===_0x3ff995['attributeNewValue']?_0x4c4e15['writer']['removeAttribute']('start',_0xf9f657):_0x4c4e15['writer']['setAttribute']('start',String(_0x3ff995['attributeNewValue']),_0xf9f657);}),_0xdd723b['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3f0b72,_0x3a76cc,_0x5f493e)=>{if(!_0x5f493e['consumable']['consume'](_0x3a76cc['item'],_0x3f0b72['name']))return;const _0x303b44=C(_0x3a76cc['item'],_0x5f493e['mapper']);_0x3a76cc['attributeNewValue']&&'decimal'!==_0x3a76cc['attributeNewValue']?_0x5f493e['writer']['setStyle']('list-style-type',_0x3a76cc['attributeNewValue'],_0x303b44):_0x5f493e['writer']['removeStyle']('list-style-type',_0x303b44);});});}['_definePostfixer'](){const {editor:_0x12d219}=this,{model:_0x70d26d}=_0x12d219,_0x46de9d=_0x12d219['plugins']['get'](c),_0x3678f2=this['_getDefaultListStyle'](),_0x1df576=this['_getDefaultStartIndex']();_0x70d26d['document']['registerPostFixer'](_0x4e9faf=>{const _0x54970a=_0x70d26d['document']['differ']['getChanges']();let _0x350fcc=!0x1;for(const _0x5843a of _0x54970a){if('insert'!==_0x5843a['type']||'$text'===_0x5843a['name'])continue;const _0x574bd9=_0x70d26d['createRangeOn'](_0x5843a['position']['nodeAfter']);for(const _0x24ce66 of _0x574bd9['getItems']())_0x24ce66['is']('element','footnotesDefinitions')&&(_0x24ce66['hasAttribute']('footnotesListStart')||(_0x4e9faf['setAttribute']('footnotesListStart',_0x1df576,_0x24ce66),_0x350fcc=!0x0),_0x24ce66['hasAttribute']('footnotesListStyle')||(_0x4e9faf['setAttribute']('footnotesListStyle',_0x3678f2,_0x24ce66),_0x350fcc=!0x0));}return _0x350fcc&&_0x46de9d['_updateFootnotesCounters'](_0x4e9faf),_0x350fcc;});}['_defineFormatter'](){const {editor:_0x29f822}=this;_0x29f822['plugins']['get'](c)['setFootnoteFormatter'](_0x19033e=>this['_formatFootnoteListValue'](_0x19033e));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4fd256,value:_0x50d8c3,digits:_0x3df898}){const _0x37b10e=_0x4fd256['getAttribute']('footnotesListStyle'),_0x172bd2=_0x4fd256['getAttribute']('footnotesListStart'),_0x4fef70=Math['floor'](_0x50d8c3)+(_0x172bd2-0x1);switch(_0x37b10e){case'decimal':default:return String(_0x4fef70);case'decimal-leading-zero':return function(_0x556c1b,_0x39aff1){return String(_0x556c1b)['padStart'](_0x39aff1,'0');}(_0x4fef70,Math['max'](0x2,_0x3df898));case'lower-alpha':case'lower-latin':return M(_0x4fef70,!0x1);case'upper-alpha':case'upper-latin':return M(_0x4fef70,!0x0);case'lower-roman':return A(_0x4fef70,!0x1);case'upper-roman':return A(_0x4fef70,!0x0);}}}function C(_0x5b714b,_0x30e74a){const _0x2bb28e=_0x30e74a['toViewElement'](_0x5b714b);return Array['from'](_0x2bb28e['getChildren']())['find'](_0x4b728a=>_0x4b728a['is']('element','ol'));}function M(_0x25b031,_0x4a4804){let _0x43f806='',_0xc87611=_0x25b031;for(;_0xc87611>0x0;){const _0x3b9df0=(_0xc87611-0x1)%0x1a;_0x43f806=String['fromCharCode'](0x61+_0x3b9df0)+_0x43f806,_0xc87611=Math['floor']((_0xc87611-0x1)/0x1a);}return _0x4a4804?_0x43f806['toUpperCase']():_0x43f806;}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(_0x401940,_0x1c3377){let _0x43882a='',_0x432270=_0x401940;for(const {value:_0x1a88e9,numeral:_0x3d4ddb}of X)for(;_0x432270>=_0x1a88e9;)_0x43882a+=_0x3d4ddb,_0x432270-=_0x1a88e9;return _0x1c3377?_0x43882a:_0x43882a['toLowerCase']();}class R extends _0x463144{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new st();['keystrokes']=new it();['focusables']=new _0x3b4f2a();['focusCycler'];constructor(_0x22b09b,{styleButtonViews:_0x1b9c78,styleGridAriaLabel:_0x55f3aa}){super(_0x22b09b),(this['focusCycler']=new _0x2c64bd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1b9c78,_0x55f3aa),[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 _0x571e0d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x571e0d['element']);_0x41a604({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>et['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 _0x410fbb=_0x1633a3=>_0x1633a3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x410fbb),this['keystrokes']['set']('arrowleft',_0x410fbb),this['keystrokes']['set']('arrowup',_0x410fbb),this['keystrokes']['set']('arrowdown',_0x410fbb);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x26a0cb,_0x2dcf71){const _0x5d4a86=new _0x463144(this['locale']);return _0x5d4a86['children']=_0x5d4a86['createCollection'](),_0x5d4a86['children']['addMany'](_0x26a0cb),_0x5d4a86['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2dcf71,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5d4a86['children']}),_0x5d4a86['children']['delegate']('execute')['to'](this),_0x5d4a86['focus']=function(){for(const _0x51c0d0 of this['children'])if(_0x51c0d0 instanceof _0x584d85&&_0x51c0d0['isOn'])return void _0x51c0d0['focus']();this['children']['first']['focus']();},_0x5d4a86['focusTracker']=new st(),_0x5d4a86['keystrokes']=new it(),_0x5d4a86['render'](),_0x5d4a86['keystrokes']['listenTo'](_0x5d4a86['element']),this['children']['add'](_0x5d4a86),_0x5d4a86;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x556cc1=this['_createStartIndexPropertyView'](),_0x53eac7=[_0x556cc1],_0x3fd2b0=new _0x11667e(this['locale'],_0x53eac7);return _0x3fd2b0['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3fd2b0['buttonView']['bind']('isEnabled')['toMany'](_0x53eac7,'isEnabled',(..._0x274d35)=>_0x274d35['some'](_0x3ac253=>_0x3ac253)),_0x3fd2b0['buttonView']['on']('change:isEnabled',(_0x223b1a,_0x3b7c86,_0x2d5b97)=>{_0x2d5b97||(_0x3fd2b0['isCollapsed']=!0x0);}),this['children']['add'](_0x3fd2b0),[_0x556cc1,_0x3fd2b0];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x241ca8=new _0x1ff114(this['locale'],tt);return _0x241ca8['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x241ca8['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x241ca8['fieldView']['on']('input',()=>{const _0x33d3e2=_0x241ca8['fieldView']['element'],_0x3ccc14=_0x33d3e2['valueAsNumber'];Number['isNaN'](_0x3ccc14)?_0x241ca8['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x33d3e2['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3ccc14}):_0x241ca8['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x241ca8;}}class j extends _0x3273f4{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5142c4,_0x40fb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2fcf9c}=this,{componentFactory:_0x55c145}=_0x2fcf9c['ui'];_0x2fcf9c['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x55c145['add']('footnotesStyle',function(_0x36c648){return _0x32e582=>{const {t:t}=_0x32e582,_0x324156=_0x36c648['commands']['get']('footnotesStyle'),_0x154bd1=_0x47e698(_0x32e582),{buttonView:_0x2c32da}=_0x154bd1;return _0x154bd1['class']='ck-footnotes-styles-dropdown',_0x154bd1['bind']('isEnabled')['to'](_0x324156,'isEnabled'),_0x2c32da['set']({'label':t('Footnotes\x20style'),'icon':_0x143cf4,'tooltip':!0x0}),_0x154bd1['once']('change:isOpen',()=>{const _0x1ab6b7=function({editor:_0x18e0de,dropdownView:_0xfa10f0}){const {t:t}=_0x18e0de['locale'],_0x3b945b=t('Footnotes\x20definitions\x20styles'),_0x384e2c=function(_0x48e076){const t=_0x48e076['locale']['t'],_0x14adff=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3ec19b},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4fe1a9},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x572e75},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3975e6},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x266d5},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x18b2d0}];return _0x14adff['map'](function(_0x1a82d2){const _0x192efb=_0x1a82d2['locale'];return({label:_0xd93915,icon:_0x43a9c9,tooltip:_0x460c2f,style:_0x2398d7})=>{const _0x185da2=_0x1a82d2['commands']['get']('footnotesStyle'),_0x548e74=new _0x584d85(_0x192efb);return _0x548e74['set']({'label':_0xd93915,'icon':_0x43a9c9,'tooltip':_0x460c2f}),_0x548e74['bind']('isOn')['to'](_0x185da2,'value',_0xc50682=>_0xc50682===_0x2398d7),_0x548e74['bind']('isEnabled')['to'](_0x185da2,'isEnabled'),_0x548e74['on']('execute',()=>{_0x1a82d2['execute']('footnotesStyle',{'value':_0x2398d7}),_0x1a82d2['editing']['view']['focus']();}),_0x548e74;};}(_0x48e076));}(_0x18e0de),_0x28dce9=new R(_0x18e0de['locale'],{'styleGridAriaLabel':_0x3b945b,'styleButtonViews':_0x384e2c});return _0x28dce9['delegate']('execute')['to'](_0xfa10f0),_0x28dce9['on']('footnotesListStart',(_0x2cd490,_0x366f89)=>{_0x18e0de['execute']('footnotesStart',{'value':_0x366f89['startIndex']});}),_0x28dce9;}({'editor':_0x36c648,'dropdownView':_0x154bd1});_0x154bd1['panelView']['children']['add'](_0x1ab6b7);}),_0x154bd1;};}(_0x2fcf9c));}['afterInit'](){const {editor:_0x47d0f4}=this,{t:t}=_0x47d0f4['locale'],_0x45572b=_0x47d0f4['plugins']['get'](_0x40fb),{defaultPositions:_0x308561}=_0x26b82a;_0x45572b['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x47d0f4['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4e64a4=>{let _0x146a02=_0x4e64a4['getFirstPosition']()?.['parent'];return _0x146a02?.['is']('$text')&&(_0x146a02=_0x146a02['parent']),_0x146a02?.['is']('element')?_0x146a02['findAncestor']($):null;},'positions':[_0x308561['southArrowNorth'],_0x308561['southArrowNorthMiddleWest'],_0x308561['southArrowNorthMiddleEast'],_0x308561['southArrowNorthWest'],_0x308561['southArrowNorthEast'],_0x308561['northArrowSouth'],_0x308561['northArrowSouthMiddleWest'],_0x308561['northArrowSouthMiddleEast'],_0x308561['northArrowSouthWest'],_0x308561['northArrowSouthEast'],_0x308561['viewportStickyNorth']]});}}class rt extends _0x3273f4{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 _0x5dd69c,Command as _0x1159f6}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x40f775,isWidget as _0x52dc53,toWidgetEditable as _0x572824,WidgetToolbarRepository as _0x121d00}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x4970a6,logWarning as _0x1e6eca,FocusTracker as it,KeystrokeHandler as et,global as ot}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x2a6255,ClickObserver as _0x1281d6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4a149c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x158f1a,ButtonView as _0x4f7301,View as _0x5e6fbf,ViewCollection as _0x5f3227,FocusCycler as _0x2f996f,addKeyboardHandlingForGrid as _0x1fa4bf,CollapsibleView as _0x42bd83,LabeledFieldView as tt,createLabeledInputNumber as st,ContextualBalloon as _0x369595,BalloonPanelView as _0x52e42a,createDropdown as _0x24d4ee}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x242f94,IconListStyleDecimal as _0x3b2851,IconListStyleDecimalLeadingZero as _0x1c38c6,IconListStyleLowerRoman as _0x5a7599,IconListStyleUpperRoman as _0x3a4c8d,IconListStyleLowerLatin as _0x24244e,IconListStyleUpperLatin as _0xea279a}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3a1239,_0x1b532a){this['_model']=_0x3a1239,this['_elementName']=_0x1b532a['elementName'],this['_getElementKey']=_0x1b532a['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2411b2){const _0x772747=new Set(),_0x337039=new Map();for(const _0x1107d0 of _0x2411b2){if('insert'===_0x1107d0['type']&&'$text'!==_0x1107d0['name']&&_0x1107d0['position']['nodeAfter']){const _0x519c70=this['_model']['createRangeOn'](_0x1107d0['position']['nodeAfter']);for(const _0x3dee1b of _0x519c70['getItems']()){if(!_0x3dee1b['is']('element',this['_elementName']))continue;const _0x4f37a0=this['_getElementKey'](_0x3dee1b);_0x337039['has'](_0x4f37a0)||_0x337039['set'](_0x4f37a0,[]),_0x337039['get'](_0x4f37a0)['push'](_0x3dee1b);}}if('remove'===_0x1107d0['type']&&_0x1107d0['name']===this['_elementName']){const _0x828b3c=this['_getElementKey']({'getAttribute':_0x478862=>_0x1107d0['attributes']['get'](_0x478862)});_0x772747['add'](_0x828b3c);}}for(const [_0x5b45cd,_0x114cd3]of this['_trackedElements'])'$graveyard'===_0x114cd3['root']['rootName']&&_0x772747['add'](_0x5b45cd);for(const _0x307d3c of _0x772747)this['_trackedElements']['delete'](_0x307d3c);for(const [_0x2ec62c,_0x1c087f]of _0x337039)this['_trackedElements']['set'](_0x2ec62c,_0x1c087f[_0x1c087f['length']-0x1]);const _0x3c2276=new Set();for(const [_0x59a229,_0x3c87ce]of _0x337039)_0x772747['has'](_0x59a229)&&(_0x3c2276['add'](_0x3c87ce[0x0]),_0x3c87ce['length']>0x1?_0x337039['set'](_0x59a229,_0x3c87ce['slice'](0x1)):_0x337039['delete'](_0x59a229),_0x772747['delete'](_0x59a229));return{'removed':Array['from'](_0x772747),'inserted':Array['from'](_0x337039['values']())['flat'](),'moved':Array['from'](_0x3c2276)};}}class c extends _0x5dd69c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e6721){super(_0x1e6721),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x341fe4=>_0x341fe4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3edd74=>_0x3edd74['getAttribute']('footnoteId')});}['init'](){const {editor:_0x2e1e3d}=this,{model:_0x3e7087,data:_0x2a00ff}=_0x2e1e3d;_0x3e7087['document']['registerPostFixer'](_0x411c6b=>{const _0xa333ec=_0x3e7087['document']['differ']['getChanges']();let _0x1fc7c9=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x411c6b,_0xa333ec)&&(_0x1fc7c9=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x411c6b,_0xa333ec)&&(_0x1fc7c9=!0x0),this['_handleFootnoteReferencesChanges'](_0x411c6b,_0xa333ec)&&(_0x1fc7c9=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x411c6b)&&(_0x1fc7c9=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x411c6b)&&(_0x1fc7c9=!0x0),this['_sortFootnoteDefinitions'](_0x411c6b)&&(_0x1fc7c9=!0x0),_0x1fc7c9;}),this['listenTo'](_0x3e7087['document'],'change:data',()=>{_0x3e7087['enqueueChange']({'isUndoable':!0x1},_0x466111=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x466111);});},{'priority':'low'}),this['listenTo'](_0x2a00ff,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5b901e){return this['_footnotes']['find'](_0x36a185=>_0x36a185['id']===_0x5b901e)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x50d837){this['_footnoteFormatter']=_0x50d837;}['_updateFootnotesCounters'](_0x45370d,_0x2ba7be=0x0){let _0x307b52=!0x1;for(let _0x5398d3=_0x2ba7be;_0x5398d3<this['_footnotes']['length'];_0x5398d3++)this['_updateFootnoteRefCounter'](_0x45370d,_0x5398d3)&&(_0x307b52=!0x0);return _0x307b52;}['_insertEmptyFootnotesDefinitionsContainer'](_0x4d88e0,_0x37e658){const _0x512700=_0x4d88e0['createElement']('footnotesDefinitions',{});return _0x4d88e0['append'](_0x512700,_0x37e658),this['_footnotesDefinitions']=_0x512700,_0x512700;}['_ensureFootnotesDefinitionsContainerExists'](_0x16bf6b){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x52f853=this['_footnotes'][0x0]['reference']['root'],_0x533886=this['_insertEmptyFootnotesDefinitionsContainer'](_0x16bf6b,_0x52f853);for(const _0x42c7eb of this['_footnotes'])_0x42c7eb['definition']['parent']||_0x16bf6b['insert'](_0x42c7eb['definition'],_0x533886,'end');this['_updateFootnotesCounters'](_0x16bf6b);}['_handleFootnotesDefinitionsObjectChanges'](_0x2b71a1,_0x365ae1){let _0x31e693=!0x1;const {inserted:_0x3887f3,removed:_0x2b15d4,moved:_0x2db8ae}=this['_footnoteDefsContainerTracker']['getChanges'](_0x365ae1);if(_0x2db8ae['length']&&(this['_footnotesDefinitions']=_0x2db8ae[0x0]),_0x3887f3['length']){if(_0x3887f3['length']>0x1||this['_footnotesDefinitions']&&_0x3887f3['some'](_0x1741b5=>_0x1741b5!==this['_footnotesDefinitions'])){const _0x4f6fa1=_0x2b71a1['createElement']('footnotesDefinitions',{}),_0x15cbba=[];this['_footnotesDefinitions']&&_0x15cbba['push'](this['_footnotesDefinitions']),_0x15cbba['push'](..._0x3887f3),_0x2b71a1['insert'](_0x4f6fa1,_0x15cbba[0x0],'before');for(const _0x44b47b of _0x15cbba)_0x2b71a1['move'](_0x2b71a1['createRangeIn'](_0x44b47b),_0x2b71a1['createPositionAt'](_0x4f6fa1,'end')),_0x2b71a1['remove'](_0x44b47b);this['_footnotesDefinitions']=_0x4f6fa1,this['_updateFootnotesCounters'](_0x2b71a1),_0x31e693=!0x0;}else this['_footnotesDefinitions']=_0x3887f3[0x0];}if(_0x2b15d4['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x54ccec of this['_footnotes'])_0x2b71a1['remove'](_0x54ccec['reference']),_0x31e693=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x31e693;}['_handleFootnoteDefinitionsChanges'](_0x1d4207,_0x5d6f91){let _0x3c1bf0=!0x1;const _0x26cf5d=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x3358f3,moved:_0x347082}=this['_footnoteDefsTracker']['getChanges'](_0x5d6f91);for(const _0x26e578 of[..._0x347082,..._0x3358f3]){const _0x446f49=_0x26e578['getAttribute']('footnoteId'),_0x4cfea7=this['getFootnote'](_0x446f49);_0x4cfea7&&(_0x4cfea7['definition']=_0x26e578),_(_0x1d4207,_0x26cf5d,_0x26e578)&&(_0x3c1bf0=!0x0);}return _0x3c1bf0;}['_handleFootnoteReferencesChanges'](_0x13adbe,_0x3263fb){let _0x1a6184=!0x1;const {removed:_0x5112d6,inserted:_0x4354c6,moved:_0x4e9e28}=this['_footnoteRefsTracker']['getChanges'](_0x3263fb);for(const _0xb3b1c6 of _0x5112d6)this['_handleRemoveFootnoteReferenceById'](_0x13adbe,_0xb3b1c6)&&(_0x1a6184=!0x0);for(const _0x22a4ac of _0x4354c6)this['_handleInsertedFootnoteReference'](_0x13adbe,_0x22a4ac)&&(_0x1a6184=!0x0);for(const _0x447afa of _0x4e9e28)this['_handleMovedFootnoteReference'](_0x13adbe,_0x447afa)&&(_0x1a6184=!0x0);return _0x1a6184;}['_handleFootnotesDefinitionsObjectSync'](_0x57383c){if(!this['_footnotesDefinitions'])return!0x1;let _0x5aca30=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x472b00=[];for(const _0x326772 of this['_footnotesDefinitions']['getChildren']()){const _0x5caf24=_0x326772['getAttribute']('footnoteId');this['getFootnote'](_0x5caf24)||(_0x472b00['unshift'](_0x326772),_0x5aca30=!0x0);}for(const _0x3bbb07 of _0x472b00)_0x57383c['remove'](_0x3bbb07);}const _0x175184=new Set(),_0x3af0d8=[];for(const _0x324538 of this['_footnotesDefinitions']['getChildren']()){const _0x1a4516=_0x324538['getAttribute']('footnoteId');_0x175184['has'](_0x1a4516)?(_0x3af0d8['unshift'](_0x324538),_0x5aca30=!0x0):_0x175184['add'](_0x1a4516);}for(const _0x20511c of _0x3af0d8)_0x57383c['remove'](_0x20511c);return this['_footnotesDefinitions']['childCount']||(_0x57383c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5aca30=!0x0),_0x5aca30;}['_handleInsertedFootnoteReference'](_0x2edc4a,_0x2a2d07){if(this['_footnotes']['find'](_0x500451=>_0x500451['reference']===_0x2a2d07))return!0x1;let _0x5db57f=!0x1;const _0x3f9bb9=_0x2a2d07['getAttribute']('footnoteId'),_0x10d37a=this['getFootnote'](_0x3f9bb9);_0x10d37a&&(_0x2edc4a['remove'](_0x10d37a['reference']),this['_footnotes']=this['_footnotes']['filter'](_0xa79de7=>_0xa79de7['id']!==_0x3f9bb9),_0x5db57f=!0x0);let _0x13f67c=this['_footnotesDefinitions']?function(_0x26172,_0x2cfec6){for(const _0x338796 of _0x26172['getChildren']())if(_0x338796['getAttribute']('footnoteId')===_0x2cfec6)return _0x338796;return null;}(this['_footnotesDefinitions'],_0x3f9bb9):null;_0x13f67c||(_0x13f67c=_0x2edc4a['createElement']('footnoteDefinition',{'footnoteId':_0x3f9bb9}),this['_footnotesDefinitions']&&(_0x2edc4a['insert'](_0x13f67c,this['_footnotesDefinitions'],'end'),_0x5db57f=!0x0));const _0x1f4449={'id':_0x3f9bb9,'reference':_0x2a2d07,'definition':_0x13f67c},_0x38afa0=I(this['editor']['model'],this['_footnotes'],_0x2a2d07);return this['_footnotes']['splice'](_0x38afa0,0x0,_0x1f4449),this['_updateFootnotesCounters'](_0x2edc4a,_0x38afa0)&&(_0x5db57f=!0x0),_0x5db57f;}['_handleRemoveFootnoteReferenceById'](_0x24220e,_0x39d742){const _0xf795ca=this['_footnotes']['findIndex'](_0x240164=>_0x240164['id']===_0x39d742);if(-0x1===_0xf795ca)return!0x1;let _0x203c9f=!0x1;const _0x33af72=this['_footnotes'][_0xf795ca];return'$graveyard'!==_0x33af72['definition']['root']['rootName']&&(_0x24220e['remove'](_0x33af72['definition']),_0x203c9f=!0x0),this['_footnotes']['splice'](_0xf795ca,0x1),this['_updateFootnotesCounters'](_0x24220e,_0xf795ca)&&(_0x203c9f=!0x0),_0x203c9f;}['_handleMovedFootnoteReference'](_0x437fd8,_0x302d69){const _0x50c63e=_0x302d69['getAttribute']('footnoteId'),_0x46c628=this['_footnotes']['findIndex'](_0x521d87=>_0x521d87['id']===_0x50c63e),_0x3819a6=this['_footnotes'][_0x46c628];let _0x5c1e6b=!0x1;_0x3819a6['reference']=_0x302d69,this['_footnotes']['splice'](_0x46c628,0x1);const _0xa02581=I(this['editor']['model'],this['_footnotes'],_0x302d69);return this['_footnotes']['splice'](_0xa02581,0x0,_0x3819a6),this['_updateFootnotesCounters'](_0x437fd8,Math['min'](_0x46c628,_0xa02581))&&(_0x5c1e6b=!0x0),_0x5c1e6b;}['_updateFootnoteRefCounter'](_0x2efc37,_0x43644d){if(!this['_footnotesDefinitions'])return!0x1;const _0x3b403c=this['_footnotes'][_0x43644d];let _0x5769fa;return _0x5769fa=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3b403c,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x43644d+0x1}):String(_0x43644d+0x1),_0x3b403c['reference']['getAttribute']('footnoteCounter')!=_0x5769fa&&(_0x2efc37['setAttribute']('footnoteCounter',_0x5769fa,_0x3b403c['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3139ae){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5f1865,_0x5e9fa3){if(_0x5f1865['length']!==_0x5e9fa3['length'])return!0x1;for(let _0x543ca9=0x0;_0x543ca9<_0x5f1865['length'];_0x543ca9++)if(_0x5f1865[_0x543ca9]!==_0x5e9fa3[_0x543ca9])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2ee20b=>_0x2ee20b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x229fe8=>_0x229fe8['getAttribute']('footnoteId'))))return!0x1;let _0x346228=!0x1;for(let _0x34e6dd=0x0;_0x34e6dd<this['_footnotes']['length'];_0x34e6dd++){const _0x5517e8=this['_footnotes'][_0x34e6dd],_0x37fbde=_0x3139ae['createPositionBefore'](_0x5517e8['definition']),_0x50eab9=_0x3139ae['createPositionAt'](this['_footnotesDefinitions'],_0x34e6dd);_0x37fbde['isEqual'](_0x50eab9)||(_0x3139ae['move'](_0x3139ae['createRangeOn'](_0x5517e8['definition']),_0x50eab9),_0x346228=!0x0);}return _0x346228;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3e8dc9){if(!this['_footnotes']['length'])return!0x1;const {model:_0x328188}=this['editor'];let _0x42dde2=!0x1;for(let _0x2f41ec=0x0;_0x2f41ec<this['_footnotes']['length']-0x1;_0x2f41ec++){const _0x536793=this['_footnotes'][_0x2f41ec],_0x33e4fb=this['_footnotes'][_0x2f41ec+0x1],_0x23afb4=_0x328188['createPositionBefore'](_0x536793['reference']),_0x486545=_0x328188['createPositionBefore'](_0x33e4fb['reference']);'after'===_0x23afb4['compareWith'](_0x486545)&&(this['_handleMovedFootnoteReference'](_0x3e8dc9,_0x536793['reference']),_0x2f41ec=-0x1,_0x42dde2=!0x0);}return _0x42dde2;}}function _(_0x32109e,_0x199d9b,_0x35cfcc){if(_0x35cfcc['childCount'])return!0x1;const _0x60cf7d=_0x199d9b?'paragraph':'footnoteInlineContent';return _0x32109e['insert'](_0x32109e['createElement'](_0x60cf7d),_0x35cfcc),!0x0;}function I(_0x424142,_0x325097,_0x13e8fb){if(0x0===_0x325097['length'])return 0x0;const _0x235574=_0x424142['createPositionBefore'](_0x13e8fb);for(let _0x33296a=0x0;_0x33296a<_0x325097['length'];_0x33296a++){const _0x30c93b=_0x325097[_0x33296a],_0xe14fc3=_0x424142['createPositionBefore'](_0x30c93b['reference']);if('before'===_0x235574['compareWith'](_0xe14fc3))return _0x33296a;}const _0x34c6be=_0x13e8fb['root'];let _0x2c60e2=-0x1;for(let _0x4b0474=_0x325097['length']-0x1;_0x4b0474>=0x0;_0x4b0474--)if(_0x325097[_0x4b0474]['reference']['root']===_0x34c6be){_0x2c60e2=_0x4b0474;break;}if(-0x1!==_0x2c60e2)return _0x2c60e2+0x1;const _0x53b6eb=_0x424142['document']['getRootNames'](),_0x463b3b=_0x53b6eb['indexOf'](_0x34c6be['rootName']),_0x225ca2=_0x53b6eb[_0x463b3b+0x1];if(_0x225ca2){for(let _0x13ca81=0x0;_0x13ca81<_0x325097['length'];_0x13ca81++)if(_0x325097[_0x13ca81]['reference']['root']['rootName']===_0x225ca2)return _0x13ca81;}return _0x325097['length'];}class w extends _0x1159f6{['refresh'](){const _0x35076c=this['editor']['model']['document']['selection'],_0x263ce7=this['_getPositionToInsertFootnote'](_0x35076c);this['isEnabled']=!!_0x263ce7;}['execute'](_0x349e13){const {editor:_0x509dc0}=this,{model:_0x330fff}=_0x509dc0,{selection:_0x3d2377}=_0x330fff['document'],_0x4f8461=this['_getPositionToInsertFootnote'](_0x3d2377);if(!_0x4f8461)return;const _0x2225d9=_0x509dc0['plugins']['get']('FootnotesEditing'),_0x5e746a=_0x349e13?.['footnoteId']??_0x4970a6();!function(_0x58cd4b){return'string'==typeof _0x58cd4b&&_0x58cd4b['length']>0x0&&!/\s/['test'](_0x58cd4b)&&!/^\d/['test'](_0x58cd4b);}(_0x5e746a)?_0x1e6eca('insert-footnote-command-executed-with-invalid-id'):(_0x330fff['change'](_0x52c082=>{const _0x59c2d0=_0x52c082['createElement']('footnoteRef',{'footnoteId':_0x5e746a});_0x330fff['insertObject'](_0x59c2d0,_0x4f8461,null);}),_0x2225d9['_moveSelectionToFootnoteDefinition'](_0x5e746a));}['_getPositionToInsertFootnote'](_0x1d4f5a){const {model:_0x1466d5}=this['editor'],{schema:_0x1979f2}=_0x1466d5,_0x5414dd=_0x1d4f5a['getFirstRange']();for(const _0x4bd8d5 of _0x5414dd['getItems']())if(_0x1979f2['isBlock'](_0x4bd8d5)||_0x1979f2['isObject'](_0x4bd8d5))return null;const _0x496475=_0x5414dd['end'];return _0x1979f2['checkChild'](_0x496475,'footnoteRef')?_0x496475:null;}}class r extends _0x5dd69c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3429bb}=this;_0x3429bb['config']['define']('footnotes.multiBlock',!0x0),_0x3429bb['commands']['add']('insertFootnote',new w(_0x3429bb)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1b990f){const _0x3ee658=_0x3b77d3([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]),_0x320d07=0x47a28506,_0x56af79=0x47a5f38e^_0x320d07,_0x5957ed=window[_0x3b77d3([0x44,0x61,0x74,0x65])][_0x3b77d3([0x6e,0x6f,0x77])](),_0x394f9c=_0x1b990f[_0x3b77d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5cdc49=new window[(_0x3b77d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3af1c8=>{_0x394f9c[_0x3b77d3([0x6f,0x6e,0x63,0x65])](_0x3b77d3([0x72,0x65,0x61,0x64,0x79]),_0x3af1c8);}),_0xe57aa0={[_0x3b77d3([0x6b,0x74,0x79])]:_0x3b77d3([0x45,0x43]),[_0x3b77d3([0x75,0x73,0x65])]:_0x3b77d3([0x73,0x69,0x67]),[_0x3b77d3([0x63,0x72,0x76])]:_0x3b77d3([0x50,0x2d,0x32,0x35,0x36]),[_0x3b77d3([0x78])]:_0x3b77d3([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]),[_0x3b77d3([0x79])]:_0x3b77d3([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]),[_0x3b77d3([0x61,0x6c,0x67])]:_0x3b77d3([0x45,0x53,0x32,0x35,0x36])},_0x560cfa=_0x394f9c[_0x3b77d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b77d3([0x67,0x65,0x74])](_0x3b77d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x124b9d(){let _0x427bdd,_0xd38889=null,_0x136054=null;try{if(_0x560cfa==_0x3b77d3([0x47,0x50,0x4c]))return _0x3b77d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x427bdd=_0xb2c900(),!_0x427bdd)return _0x3b77d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x427bdd[_0x3b77d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x136054=_0x37afb6(_0x427bdd[_0x3b77d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x427bdd[_0x3b77d3([0x6a,0x74,0x69])])),await _0x50ef4a()?_0x3edc36()?_0x41de56()?_0x3b77d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5177fb()?(_0x427bdd[_0x3b77d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b77d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd38889=_0x1c864f(_0x3b77d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x427bdd[_0x3b77d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b77d3([0x74,0x72,0x69,0x61,0x6c])&&(_0xd38889=_0x1c864f(_0x3b77d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32596d()):_0x3b77d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b77d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b77d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b77d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41de56(){const _0x4c0fde=[_0x3b77d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b77d3([0x74,0x72,0x69,0x61,0x6c])][_0x3b77d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x427bdd[_0x3b77d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5957ed/0x3e8:0xe10*_0x56af79;return _0x427bdd[_0x3b77d3([0x65,0x78,0x70])]<_0x4c0fde;}function _0x3edc36(){const _0xcee349=_0x427bdd[_0x3b77d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xcee349&&(!!_0xcee349[_0x3b77d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b77d3([0x2a]))||!!_0xcee349[_0x3b77d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b77d3([0x46,0x4f,0x4f])));}function _0x5177fb(){const _0x5b686c=_0x427bdd[_0x3b77d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b686c||0x0==_0x5b686c[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x60138}=new URL(window[_0x3b77d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b686c[_0x3b77d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60138))return!0x0;const _0x409d35=_0x60138[_0x3b77d3([0x73,0x70,0x6c,0x69,0x74])](_0x3b77d3([0x2e]));return _0x5b686c[_0x3b77d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x248590=>_0x248590[_0x3b77d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b77d3([0x2a])))[_0x3b77d3([0x6d,0x61,0x70])](_0x23124b=>_0x23124b[_0x3b77d3([0x73,0x70,0x6c,0x69,0x74])](_0x3b77d3([0x2e])))[_0x3b77d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x199410=>_0x199410[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x409d35[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b77d3([0x6d,0x61,0x70])](_0x30a255=>Array(_0x409d35[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30a255[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b77d3([0x66,0x69,0x6c,0x6c])](_0x30a255[0x0]===_0x3b77d3([0x2a])?_0x3b77d3([0x2a]):'')[_0x3b77d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30a255))[_0x3b77d3([0x73,0x6f,0x6d,0x65])](_0x34b70f=>_0x409d35[_0x3b77d3([0x65,0x76,0x65,0x72,0x79])]((_0x4fee5f,_0x594364)=>_0x34b70f[_0x594364]===_0x4fee5f||_0x34b70f[_0x594364]===_0x3b77d3([0x2a])));}function _0x32596d(){return _0xd38889&&_0x136054?new window[(_0x3b77d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f84c0,_0x44d3bf)=>{_0xd38889[_0x3b77d3([0x74,0x68,0x65,0x6e])](_0x3f84c0,_0x44d3bf),_0x136054[_0x3b77d3([0x74,0x68,0x65,0x6e])](_0x4e22a0=>{_0x4e22a0!=_0x3b77d3([0x56,0x61,0x6c,0x69,0x64])&&_0x3f84c0(_0x4e22a0);},_0x44d3bf);}):_0xd38889||_0x136054||_0x3b77d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37afb6(_0x613638,_0x30d9c1){return new window[(_0x3b77d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f23ac=>{if(_0x490f6a())return _0x1f23ac(_0x3b77d3([0x56,0x61,0x6c,0x69,0x64]));_0x3fdc64(),_0x394f9c[_0x3b77d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b77d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5812c0=!0x1;const _0x46ff18=_0x4970a6();function _0x22986d(_0x484ee8){return!!_0x484ee8&&(typeof _0x484ee8===_0x3b77d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x484ee8===_0x3b77d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x484ee8[_0x3b77d3([0x74,0x68,0x65,0x6e])]===_0x3b77d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x484ee8[_0x3b77d3([0x63,0x61,0x74,0x63,0x68])]===_0x3b77d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2be838(_0x4fe467){_0x5aac8f(_0x4fe467)[_0x3b77d3([0x74,0x68,0x65,0x6e])](_0x28f98f=>{if(!_0x28f98f||_0x28f98f[_0x3b77d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b77d3([0x6f,0x6b]))return _0x3b77d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49839a(_0x42e8ef(_0x46ff18+_0x30d9c1))!=_0x28f98f[_0x3b77d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b77d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b77d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b77d3([0x74,0x68,0x65,0x6e])](_0x586cc3=>(_0x531d8e(),_0x586cc3),()=>{const _0x3aba40=_0x5a41fe();return null==_0x3aba40?(_0x531d8e(),_0x3b77d3([0x56,0x61,0x6c,0x69,0x64])):_0x3b77d3(_0x5957ed-_0x3aba40>(0x63ae0106^_0x320d07)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b77d3([0x74,0x68,0x65,0x6e])](_0x1f23ac)[_0x3b77d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f23ac(_0x3b77d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4971bd=0x47946b86^_0x320d07;function _0x531d8e(){const _0x4d8651=_0x3b77d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x49839a(_0x42e8ef(_0x613638)),_0x9c86c=_0x339002(_0x49839a(window[_0x3b77d3([0x4d,0x61,0x74,0x68])][_0x3b77d3([0x63,0x65,0x69,0x6c])](_0x5957ed/_0x4971bd)));window[_0x3b77d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b77d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d8651,_0x9c86c);}function _0x5a41fe(){const _0x3ef361=_0x3b77d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x49839a(_0x42e8ef(_0x613638)),_0x26ca08=window[_0x3b77d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b77d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ef361);return _0x26ca08?window[_0x3b77d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x339002(_0x26ca08),0x10)*_0x4971bd:null;}function _0x5aac8f(_0x14fda8){return new window[(_0x3b77d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529835,_0x308cdc)=>{_0x14fda8[_0x3b77d3([0x74,0x68,0x65,0x6e])](_0x529835,_0x308cdc),window[_0x3b77d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x308cdc,0x47a351c6^_0x320d07);});}}_0x394f9c[_0x3b77d3([0x6f,0x6e])](_0x3b77d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ab07,_0x543605)=>{if(_0x543605[0x0]!=_0x613638)return _0x1f23ac(_0x3b77d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x543605[0x1]={..._0x543605[0x1],[_0x3b77d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46ff18};},{[_0x3b77d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b77d3([0x68,0x69,0x67,0x68])}),_0x394f9c[_0x3b77d3([0x6f,0x6e])](_0x3b77d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa29537=>{_0x22986d(_0xa29537[_0x3b77d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5812c0=!0x0,_0x2be838(_0xa29537[_0x3b77d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b77d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b77d3([0x6c,0x6f,0x77])}),_0x5cdc49[_0x3b77d3([0x74,0x68,0x65,0x6e])](()=>{_0x5812c0||_0x1f23ac(_0x3b77d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x490f6a(){return _0x394f9c[_0x3b77d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b77d3([0x76,0x69,0x65,0x77])][_0x3b77d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b77d3([0x61,0x75,0x74,0x6f]);}function _0x3fdc64(){_0x394f9c[_0x3b77d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b77d3([0x76,0x69,0x65,0x77])][_0x3b77d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b77d3([0x61,0x75,0x74,0x6f]);}}function _0x1c864f(_0x484431){const _0x1a6dbd=[new window[(_0x3b77d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f8628=>setTimeout(_0x1f8628,0x47abbbca^_0x320d07)),_0x5cdc49[_0x3b77d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b77d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x203bc2=>{let _0x48aa3c=0x0;_0x394f9c[_0x3b77d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b77d3([0x6f,0x6e])](_0x3b77d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x366190,_0xdfe060)=>{_0xdfe060[0x0][_0x3b77d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48aa3c++,_0x48aa3c==(0x47a284fe^_0x320d07)&&(_0x203bc2(),_0x366190[_0x3b77d3([0x6f,0x66,0x66])]());});}))];return window[_0x3b77d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b77d3([0x72,0x61,0x63,0x65])](_0x1a6dbd)[_0x3b77d3([0x74,0x68,0x65,0x6e])](()=>_0x484431);}async function _0x35ca88(){await _0x5cdc49,_0x394f9c[_0x3b77d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b77d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33442f,_0x394f9c[_0x3b77d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b77d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33442f,_0x394f9c[_0x3b77d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b77d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54a2f2(_0x27e71d){const _0x41ef8e=_0x550c82();_0x394f9c[_0x41ef8e]=_0x3b77d3([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27e71d,_0x27e71d!=_0x3b77d3([0x56,0x61,0x6c,0x69,0x64])&&_0x35ca88();}function _0x550c82(){const _0x26964c=window[_0x3b77d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b77d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b77d3([0x6e,0x6f,0x77])]())[_0x3b77d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b77d3([0x2e]),'');let _0x1e736b=_0x3b77d3([0x75]);for(let _0x7e229c=0x0;_0x7e229c<_0x26964c[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7e229c+=0x2){let _0x3af8b2=window[_0x3b77d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26964c[_0x3b77d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7e229c,_0x7e229c+0x2));_0x3af8b2>=_0x3ee658[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3af8b2-=_0x3ee658[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e736b+=_0x3ee658[_0x3af8b2];}return _0x1e736b;}function _0xb2c900(){const _0x59c77e=_0x560cfa[_0x3b77d3([0x73,0x70,0x6c,0x69,0x74])](_0x3b77d3([0x2e]));if(0x3!=_0x59c77e[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x588894(_0x59c77e[0x1]);function _0x588894(_0x2c4ed7){const _0x35da02=_0x268de8(_0x2c4ed7);return _0x35da02&&_0x274506()?_0x35da02:null;function _0x274506(){const _0x1b592f=_0x35da02[_0x3b77d3([0x6a,0x74,0x69])],_0x456418=window[_0x3b77d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b592f[_0x3b77d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b592f[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ea2de={..._0x35da02,[_0x3b77d3([0x6a,0x74,0x69])]:_0x1b592f[_0x3b77d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b592f[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ea2de[_0x3b77d3([0x76,0x63])],_0x42e8ef(_0x3ea2de)==_0x456418;}}}async function _0x50ef4a(){let _0x4b817d=!0x0;try{const _0x1aea57=_0x560cfa[_0x3b77d3([0x73,0x70,0x6c,0x69,0x74])](_0x3b77d3([0x2e])),[_0x27cc74,_0x1adcb2,_0x13be5f]=_0x1aea57;return _0x36c59f(_0x27cc74),await _0xc5c921(_0x27cc74,_0x1adcb2,_0x13be5f),_0x4b817d;}catch{return!0x1;}function _0x36c59f(_0x3475fb){const _0x323153=_0x268de8(_0x3475fb);_0x323153&&_0x323153[_0x3b77d3([0x61,0x6c,0x67])]==_0x3b77d3([0x45,0x53,0x32,0x35,0x36])||(_0x4b817d=!0x1);}async function _0xc5c921(_0x460e77,_0x37be36,_0x50a28f){const _0x555e8f=window[_0x3b77d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b77d3([0x66,0x72,0x6f,0x6d])](_0x5b949b(_0x50a28f),_0x15529c=>_0x15529c[_0x3b77d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e9552=new window[(_0x3b77d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b77d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x460e77+_0x3b77d3([0x2e])+_0x37be36),_0x4e7ac4=window[_0x3b77d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b77d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e7ac4)return;const _0x21a45e=await _0x4e7ac4[_0x3b77d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b77d3([0x6a,0x77,0x6b]),_0xe57aa0,{[_0x3b77d3([0x6e,0x61,0x6d,0x65])]:_0x3b77d3([0x45,0x43,0x44,0x53,0x41]),[_0x3b77d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b77d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b77d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e7ac4[_0x3b77d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b77d3([0x6e,0x61,0x6d,0x65])]:_0x3b77d3([0x45,0x43,0x44,0x53,0x41]),[_0x3b77d3([0x68,0x61,0x73,0x68])]:{[_0x3b77d3([0x6e,0x61,0x6d,0x65])]:_0x3b77d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21a45e,_0x555e8f,_0x1e9552)||(_0x4b817d=!0x1);}}function _0x268de8(_0x1c15f2){return _0x1c15f2[_0x3b77d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b77d3([0x65,0x79]))?JSON[_0x3b77d3([0x70,0x61,0x72,0x73,0x65])](_0x5b949b(_0x1c15f2)):null;}function _0x5b949b(_0x5e5208){return window[_0x3b77d3([0x61,0x74,0x6f,0x62])](_0x5e5208[_0x3b77d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b77d3([0x2b]))[_0x3b77d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b77d3([0x2f])));}function _0x42e8ef(_0x16c03d){let _0x4abcd7=0x1505;function _0x12fb88(_0x30562b){for(let _0x467a57=0x0;_0x467a57<_0x30562b[_0x3b77d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x467a57++){const _0x1c823b=_0x30562b[_0x3b77d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x467a57);_0x4abcd7=(_0x4abcd7<<0x5)+_0x4abcd7+_0x1c823b,_0x4abcd7&=_0x4abcd7;}}function _0x2e3baf(_0x391e4){Array[_0x3b77d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x391e4)?_0x391e4[_0x3b77d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e3baf):_0x391e4&&typeof _0x391e4==_0x3b77d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b77d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x391e4)[_0x3b77d3([0x73,0x6f,0x72,0x74])]()[_0x3b77d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35eeb3,_0x265751])=>{_0x12fb88(_0x35eeb3),_0x2e3baf(_0x265751);}):_0x12fb88(window[_0x3b77d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x391e4));}return _0x2e3baf(_0x16c03d),_0x4abcd7>>>0x0;}function _0x49839a(_0x2f822f){return _0x2f822f[_0x3b77d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b77d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b77d3([0x30]));}function _0x339002(_0x1ad9d5){return _0x1ad9d5[_0x3b77d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b77d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b77d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x33442f(){}function _0x3b77d3(_0x29a2b7){return _0x29a2b7['map'](_0x2184d6=>String['fromCharCode'](_0x2184d6))['join']('');}_0x54a2f2(await _0x124b9d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1e7d21){const {plugins:_0x3d7933,editing:_0x1fd6f2,model:_0x5edf97}=this['editor'],_0x5f1ce6=_0x3d7933['get'](c)['getFootnote'](_0x1e7d21);return!!_0x5f1ce6&&(_0x5edf97['change'](_0x155927=>{_0x155927['setSelection'](_0x155927['createPositionAt'](_0x5f1ce6['definition'],'end'));}),_0x1fd6f2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2b56f8){const {plugins:_0x2f98f9,editing:_0x449b38,model:_0x482596}=this['editor'],_0x1ac10c=_0x2f98f9['get'](c)['getFootnote'](_0x2b56f8);return!!_0x1ac10c&&(_0x482596['change'](_0x2a6def=>{_0x2a6def['setSelection'](_0x1ac10c['reference'],'on');}),_0x449b38['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x35806f}=this['editor']['model'],_0x216a1f=this['editor']['config']['get']('footnotes.multiBlock');_0x35806f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x35806f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x35806f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x216a1f?_0x35806f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x35806f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x35806f['addChildCheck'](_0x3fb35c=>{for(const _0x22d744 of _0x3fb35c)if('footnoteDefinition'===_0x22d744['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xc4e71f}=this,{conversion:_0x521f3b,editing:_0x62c321}=_0xc4e71f,{t:t}=_0xc4e71f['locale'];_0x521f3b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4e0a1b,{writer:_0x10ed0b,consumable:_0x1ae4c1})=>{const _0x46326c=_0x4e0a1b['getChild'](0x0);if(!_0x46326c||!_0x46326c['is']('element','a'))return null;const _0x4c6136=_0x46326c['getAttribute']('href')||'';if(!_0x4c6136['startsWith']('#'))return null;const _0x232016=_0x4c6136['replace'](/^#/,'');if(!_0x232016)return null;_0x1ae4c1['consume'](_0x46326c,{'name':!0x0,'attributes':['href']});for(const {item:_0x466b86}of _0x62c321['view']['createRangeIn'](_0x46326c))_0x466b86['is']('$textProxy')?_0x1ae4c1['consume'](_0x466b86['textNode'],{'name':!0x0}):_0x466b86['is']('element')&&_0x1ae4c1['consume'](_0x466b86,{'name':!0x0});return _0x10ed0b['createElement']('footnoteRef',{'footnoteId':_0x232016});}}),_0x521f3b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4bb2e1,{writer:_0x4751c3})=>g(_0x4bb2e1,_0x4751c3)}),_0x521f3b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1ccb90,{writer:_0x441e99})=>{const _0x2bb081=_0x1ccb90['getAttribute']('footnoteCounter');return _0x40f775(g(_0x1ccb90,_0x441e99),_0x441e99,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2bb081)});}});}['_defineDefinitionsConverters'](){const {editor:_0x343df9}=this,{t:t}=_0x343df9['locale'],{conversion:_0x40c633}=_0x343df9;_0x40c633['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x40c633['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x40c633['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5091e1,{writer:_0x3871c0})=>{const _0x22a840=_0x3871c0['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x3871c0['createContainerElement']('ol',{'class':'footnotes'},_0x3871c0['createSlot']())),_0x29fe6e=_0x40f775(_0x22a840,_0x3871c0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3871c0['setCustomProperty']('footnotesDefinitions',!0x0,_0x29fe6e),_0x29fe6e;}});}['_defineDefinitionConverters'](){const {editor:_0x565a36}=this,{conversion:_0x1f4bad,locale:_0x16ed73}=_0x565a36,_0xc92afa=_0x565a36['config']['get']('footnotes.multiBlock');_0x1f4bad['for']('upcast')['add'](_0xdac6d4=>{_0xdac6d4['on']('element:li',(_0x3f390b,_0x492795,_0x30043f)=>{const _0x497af3=_0x492795['viewItem'];if(!_0x497af3['hasClass']('footnote-definition')||!_0x497af3['getAttribute']('id'))return;const _0x85017c=_0x497af3['parent'];if(!_0x85017c['is']('element','ol')||!_0x85017c['hasClass']('footnotes'))return;if(!_0x30043f['consumable']['test'](_0x497af3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1cb78d=_0x30043f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x497af3['getAttribute']('id')});if(!_0x30043f['safeInsert'](_0x1cb78d,_0x492795['modelCursor']))return;_0x30043f['consumable']['consume'](_0x497af3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1d6a3a=Array['from'](_0x497af3['getChildren']())['find'](_0x434867=>_0x434867['is']('element')&&_0x434867['hasClass']('footnote-content'));for(const _0x12d6dc of _0x497af3['getChildren']())_0x12d6dc['is']('element')&&(_0x30043f['consumable']['consume'](_0x12d6dc,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x30043f['consumable']['consume'](_0x12d6dc,{'name':!0x0,'classes':'footnote-content'}));if(_0x1d6a3a){if(_0xc92afa)_0x30043f['convertChildren'](_0x1d6a3a,_0x1cb78d);else{const _0x21ebff=_0x30043f['writer']['createElement']('footnoteInlineContent');_0x30043f['writer']['insert'](_0x21ebff,_0x1cb78d),_0x30043f['convertChildren'](_0x1d6a3a,_0x21ebff);}}_0x30043f['updateConversionResult'](_0x1cb78d,_0x492795);});}),_0x1f4bad['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x186323,{writer:_0x4d4b84})=>D(_0x186323,_0x4d4b84,_0x16ed73,{'dataPipeline':!0x0})}),_0x1f4bad['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5cdbb3,{writer:_0x2f5182})=>D(_0x5cdbb3,_0x2f5182,_0x16ed73)});}['_defineBogusParagraphConverters'](){const {editor:_0x57caf1}=this,{conversion:_0xc86b5}=_0x57caf1;_0x57caf1['config']['get']('footnotes.multiBlock')?(_0xc86b5['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0xc86b5['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x57caf1['model']['document'],'change:data',()=>{!function(_0x5f10af,_0x3591d1){const _0x1cbb58=_0x5f10af['document']['differ'],_0x13b1f3=new Set();for(const _0x731f61 of _0x1cbb58['getChanges']()){const _0x1f8153='attribute'==_0x731f61['type']?_0x731f61['range']['start']['parent']:_0x731f61['position']['parent'];_0x1f8153['is']('element','footnoteDefinition')&&_0x13b1f3['add'](_0x1f8153);}for(const _0x5567ad of _0x13b1f3['values']()){const _0x22e450=Array['from'](_0x5567ad['getChildren']())['filter'](_0x423db2=>p(_0x423db2,_0x3591d1['mapper']));for(const _0xec3bf8 of _0x22e450)_0x3591d1['reconvertItem'](_0xec3bf8);}}(_0x57caf1['model'],_0x57caf1['editing']);})):(_0xc86b5['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0xc86b5['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xd6c268,{writer:_0x1a4bb6})=>{const _0x477e52=_0x1a4bb6['createContainerElement']('span');return _0x1a4bb6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x477e52),_0x477e52;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2b07ec}=this,{editing:_0x4f9f7e,t:t}=_0x2b07ec,_0x13a922=_0x2b07ec['model']['document']['selection'];_0x2b07ec['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x2b07ec['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x4f9f7e['view']['document'],'enter',(_0xae0bc4,_0x3c58b7)=>{const _0x484479=function(_0x358f8f){const _0x1f2f3b=_0x358f8f['getSelectedElement']();if(_0x1f2f3b?.['is']('element','footnoteRef'))return _0x1f2f3b;return null;}(_0x13a922);if(_0x484479){const _0x40a166=_0x484479['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x40a166),_0x3c58b7['preventDefault'](),_0xae0bc4['stop']();}},{'context':_0x52dc53});}['_defineClickHandlers'](){const {editor:_0x4cc08d}=this,{editing:_0x1221b5}=_0x4cc08d;_0x4cc08d['editing']['view']['addObserver'](_0x2a6255),_0x4cc08d['editing']['view']['addObserver'](_0x1281d6);let _0x95ca96=!0x1;this['listenTo'](_0x1221b5['view']['document'],'pointerdown',(_0x3cba23,_0x51ce39)=>{const {target:_0x227cfd}=_0x51ce39,_0x578a7b=_0x1221b5['view']['document']['selection'];_0x95ca96=!(!_0x227cfd['is']('element','sup')||!_0x227cfd['hasClass']('footnote'))&&_0x578a7b['getSelectedElement']()===_0x227cfd;},{'priority':'high'}),this['listenTo'](_0x1221b5['view']['document'],'click',(_0x6c1f42,_0x432358)=>{const {target:_0x5e4142}=_0x432358,_0x1c562b=_0x5e4142['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x1c562b['slice'](0x1)),_0x6c1f42['stop'](),_0x432358['preventDefault']();},{'priority':'high','context':_0x39664f=>_0x39664f['is']('element','sup')&&_0x39664f['hasClass']('footnote')&&_0x95ca96}),this['listenTo'](_0x1221b5['view']['document'],'click',(_0x16808d,_0x57c8c0)=>{const {target:_0x448b52}=_0x57c8c0;if(!_0x448b52['is']('element','a'))return;let _0x4f055c=_0x448b52['getAttribute']('href');if(!_0x4f055c?.['startsWith']('#'))return;_0x4f055c=_0x4f055c['slice'](0x1);let _0x397cb9=!0x1;(_0x4f055c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4f055c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4f055c))&&(_0x397cb9=!0x0),_0x397cb9&&(_0x57c8c0['preventDefault'](),_0x16808d['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x330540}={}){return(_0x11228d,{writer:_0x22ec16})=>{if(!h(_0x11228d))return null;if(!_0x330540)return _0x22ec16['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x538c9e=_0x22ec16['createContainerElement']('p');return _0x22ec16['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x538c9e),_0x538c9e;};}function h(_0x3566ec){const {parent:_0x8c6d1b}=_0x3566ec;if(!_0x8c6d1b?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x8c6d1b['childCount'])return!0x1;for(const _0x18a5b1 of _0x3566ec['getAttributeKeys']())if(!_0x18a5b1['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x18a5b1)return!0x1;return!0x0;}function p(_0xcea4bb,_0x492c43){if(!_0xcea4bb['is']('element','paragraph'))return!0x1;const _0x3e7f3d=_0x492c43['toViewElement'](_0xcea4bb);return!!_0x3e7f3d&&h(_0xcea4bb)!==_0x3e7f3d['is']('element','span');}function $(_0x465131){return _0x52dc53(_0x465131)&&_0x465131['is']('containerElement')&&!!_0x465131['getCustomProperty']('footnotesDefinitions');}function g(_0x3ade0e,_0x47a967){const _0x27a31a=_0x3ade0e['getAttribute']('footnoteId'),_0x40a06b=_0x3ade0e['getAttribute']('footnoteCounter'),_0x385a8c=_0x47a967['createUIElement']('a',{'id':'ref-'+_0x27a31a,'href':'#'+_0x27a31a},function(_0x3e8bae){const _0x3999a8=this['toDomElement'](_0x3e8bae);return _0x3999a8['textContent']=_0x40a06b,_0x3999a8;}),_0x2c6370=_0x47a967['createContainerElement']('sup',{'class':'footnote'},[_0x385a8c]);return _0x2c6370['getFillerOffset']=()=>null,_0x2c6370;}function D(_0x609399,_0x381d43,_0x3074b8,{dataPipeline:_0x8b6620}={}){const {t:t}=_0x3074b8,_0x4b0be1=_0x609399['getAttribute']('footnoteId'),_0x41dd09=_0x381d43['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4b0be1},function(_0x1d2169){const _0x19358b=this['toDomElement'](_0x1d2169);return _0x19358b['innerText']='^',_0x19358b;}),_0x2e65d7=_0x8b6620?_0x381d43['createContainerElement']('div',{'class':'footnote-content'}):_0x572824(_0x381d43['createEditableElement']('div',{'class':'footnote-content'}),_0x381d43,{'label':t('Footnote\x20content.')});return _0x381d43['insert'](_0x381d43['createPositionAt'](_0x2e65d7,0x0),_0x381d43['createSlot']()),_0x381d43['createContainerElement']('li',{'class':'footnote-definition','id':_0x4b0be1},[_0x41dd09,_0x2e65d7]);}class e extends _0x5dd69c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4a149c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x160a07}=this,{plugins:_0x1afe0f,model:_0x4840d0}=_0x160a07,_0x896e77=_0x1afe0f['get'](_0x4a149c),_0x2fffc2=_0x1afe0f['get'](c);this['listenTo'](_0x896e77,'outputTransformation',(_0x59671c,_0x9db8b5)=>{const _0x1214fc=function(_0x2efc52,_0x56c515){const _0x5abc06=new Set();for(const {item:_0x5f2be3}of _0x2efc52['createRangeIn'](_0x56c515))_0x5f2be3['is']('element','footnoteRef')&&_0x5abc06['add'](_0x5f2be3['getAttribute']('footnoteId'));return Array['from'](_0x5abc06);}(_0x4840d0,_0x9db8b5['content']);if(!_0x1214fc['length'])return;const _0x17282e=_0x2fffc2['getFootnotes'](),_0x2d748b=_0x1214fc['reduce']((_0xb3efcd,_0x5ab030)=>{const _0x475649=_0x17282e['find'](_0x14dd8b=>_0x14dd8b['id']===_0x5ab030);if(_0x475649){const _0x42f576=_0x160a07['data']['toView'](_0x475649['definition'],{'isClipboardPipeline':!0x0}),_0x15ccb1=_0x160a07['data']['htmlProcessor']['toData'](_0x42f576);_0xb3efcd[_0x475649['id']]=_0x15ccb1;}return _0xb3efcd;},Object['create'](null));_0x9db8b5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2d748b));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x361a13}=this,{model:_0x581dc1,plugins:_0x4fb8bf}=_0x361a13,{view:_0x9c40b7}=_0x361a13['editing'],_0x407f71=_0x4fb8bf['get'](_0x4a149c),_0x329647=_0x4fb8bf['get'](c);let _0x3f33c5=null;this['listenTo'](_0x9c40b7['document'],'clipboardInput',(_0x420281,_0x2189c0)=>{const _0x177a86=_0x2189c0['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x3f33c5=_0x177a86?JSON['parse'](_0x177a86):null;}),this['listenTo'](_0x407f71,'contentInsertion',(_0x362055,_0x4e27e6)=>{if(!_0x3f33c5)return;const _0x249326=_0x4e27e6['sourceEditorId']===this['editor']['id'];_0x249326&&'drop'===_0x4e27e6['method']||_0x581dc1['change'](_0x5d1700=>{!function(_0x3d9686,_0x240de2){const _0x1ec094=[];for(const {item:_0x5df087}of _0x3d9686['createRangeIn'](_0x240de2))_0x5df087['is']('element','footnotesDefinitions')&&_0x1ec094['push'](_0x5df087);for(const _0x3470e3 of _0x1ec094)_0x3d9686['remove'](_0x3470e3);}(_0x5d1700,_0x4e27e6['content']);let _0x3e05e2=_0x329647['getFootnotesDefinitionsObjectElement']();if(!_0x3e05e2){const _0x5aa677=_0x581dc1['document']['selection']['getFirstRange']()['root'];_0x3e05e2=_0x329647['_insertEmptyFootnotesDefinitionsContainer'](_0x5d1700,_0x5aa677);}const _0x116d2c=function(_0x2b9396,_0x3ca94d,_0x13039a){const _0x2412fa=Object['create'](null);for(const {item:_0x225a40}of _0x2b9396['createRangeIn'](_0x3ca94d))if(_0x225a40['is']('element','footnoteRef')){const _0x3fa70c=_0x225a40['getAttribute']('footnoteId');if(!_0x13039a(_0x3fa70c))continue;_0x2412fa[_0x3fa70c]||(_0x2412fa[_0x3fa70c]=_0x4970a6()),_0x2b9396['setAttribute']('footnoteId',_0x2412fa[_0x3fa70c],_0x225a40);}return _0x2412fa;}(_0x5d1700,_0x4e27e6['content'],_0x451a45=>!_0x249326||null!==_0x329647['getFootnote'](_0x451a45));for(const [_0x58e0ac,_0x435a43]of Object['entries'](_0x3f33c5)){const _0x1bea9d=_0x116d2c[_0x58e0ac]||_0x58e0ac,_0x42650b=_0x5d1700['createElement']('footnoteDefinition',{'footnoteId':_0x1bea9d}),_0x55f744=_0x361a13['data']['htmlProcessor']['toView'](_0x435a43),_0x528f11=_0x361a13['data']['toModel'](_0x55f744,_0x42650b);_0x5d1700['append'](_0x528f11,_0x42650b),_0x5d1700['insert'](_0x42650b,_0x3e05e2,'end');}_0x3f33c5=null;});});}}class i extends _0x5dd69c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x340fa0}=this,{componentFactory:_0x5501c7}=_0x340fa0['ui'];_0x5501c7['add']('insertFootnote',v(_0x340fa0,_0x4f7301)),_0x5501c7['add']('menuBar:insertFootnote',v(_0x340fa0,_0x158f1a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c8c85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e026a;for(const _0x4ca5ee in _0x5c8c85){const _0xdc7262=_0x4ca5ee,_0x2406fe=_0x5c8c85[_0xdc7262];if('footnotesLicenseKeyValid'==_0x2406fe||'footnotesLicenseKeyInvalid'==_0x2406fe||'footnotesLicenseKeyExpired'==_0x2406fe||'footnotesLicenseKeyDomainLimit'==_0x2406fe||'footnotesLicenseKeyNotAllowed'==_0x2406fe||'footnotesLicenseKeyEvaluationLimit'==_0x2406fe||'footnotesLicenseKeyTrialLimit'==_0x2406fe||'footnotesLicenseKeyUsageLimit'==_0x2406fe){delete _0x5c8c85[_0xdc7262],_0x1e026a=_0x2406fe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1e026a&&_0x5c8c85['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1e026a&&_0x5c8c85['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1e026a&&_0x5c8c85['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1e026a&&_0x5c8c85['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1e026a&&_0x5c8c85['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1e026a&&_0x5c8c85['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1e026a&&_0x5c8c85['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x558197,_0x394707){const _0x110aeb=_0x558197['commands']['get']('insertFootnote');return _0x525f69=>{const {t:t}=_0x525f69,_0x17425a=new _0x394707(_0x525f69),_0x1585fd=_0x17425a instanceof _0x158f1a;return _0x17425a['bind']('isEnabled')['to'](_0x110aeb,'isEnabled'),_0x17425a['set']({'label':t(_0x1585fd?'Footnote':'Insert\x20footnote'),'icon':_0x242f94,'tooltip':!0x0}),_0x17425a['on']('execute',()=>{_0x110aeb['execute'](),_0x558197['editing']['view']['focus']();}),_0x17425a;};}class nt extends _0x5dd69c{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 _0x1159f6{['refresh'](){const {editor:_0x6a0cc4}=this,_0x1dbacf=_0x6a0cc4['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1dbacf,this['value']=_0x1dbacf?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xad0757}){const {editor:_0x5db59e}=this,_0x2828ed=_0x5db59e['plugins']['get'](c),_0x539b39=_0x2828ed['getFootnotesDefinitionsObjectElement']();_0x539b39&&H['includes'](_0xad0757)&&_0x5db59e['model']['change'](_0x5538cc=>{_0x5538cc['setAttribute']('footnotesListStyle',_0xad0757,_0x539b39),_0x2828ed['_updateFootnotesCounters'](_0x5538cc);});}}class b extends _0x1159f6{['refresh'](){const {editor:_0x6b87c3}=this,_0x398c00=_0x6b87c3['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x398c00,this['value']=_0x398c00?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5e5f64}){const {editor:_0x6c207f}=this,_0x74c008=_0x6c207f['plugins']['get'](c),_0x31ee3a=_0x74c008['getFootnotesDefinitionsObjectElement']();_0x31ee3a&&Number['isInteger'](_0x5e5f64)&&_0x6c207f['model']['change'](_0xbd91d6=>{_0xbd91d6['setAttribute']('footnotesListStart',_0x5e5f64,_0x31ee3a),_0x74c008['_updateFootnotesCounters'](_0xbd91d6);});}}class P extends _0x5dd69c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58a9a5}=this;_0x58a9a5['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x58a9a5['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x58a9a5['commands']['add']('footnotesStyle',new S(_0x58a9a5)),_0x58a9a5['commands']['add']('footnotesStart',new b(_0x58a9a5)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4f50e8}=this,{schema:_0x5053d1}=_0x4f50e8['model'];_0x5053d1['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x33ef2f}=this,{conversion:_0x58d0e4,model:_0x4b2b64}=_0x33ef2f,{schema:_0x3c3932}=_0x4b2b64;_0x58d0e4['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x4544de=>_0x4544de['getStyle']('list-style-type')}}),_0x58d0e4['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x4487c3=>{const _0x24ff2f=_0x4487c3['getAttribute']('start'),_0x18d8bb=Number['parseInt'](_0x24ff2f,0xa);return Number['isNaN'](_0x18d8bb)?null:_0x18d8bb;}}}),_0x58d0e4['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x2db104=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2db104['getAttribute']('type')])}}),_0x58d0e4['for']('upcast')['add'](_0x56a495=>{_0x56a495['on']('element:ol',(_0x4b2cfb,_0x4a160e,_0xe42836)=>{const _0x5aae1f=_0x4a160e['modelRange']?.['start']['nodeAfter'];_0x5aae1f?.['is']('element','footnotesDefinitions')&&(!_0x5aae1f['hasAttribute']('footnotesListStyle')&&_0x3c3932['checkAttribute'](_0x5aae1f,'footnotesListStyle')&&_0xe42836['writer']['setAttribute']('footnotesListStyle','decimal',_0x5aae1f),!_0x5aae1f['hasAttribute']('footnotesListStart')&&_0x3c3932['checkAttribute'](_0x5aae1f,'footnotesListStart')&&_0xe42836['writer']['setAttribute']('footnotesListStart',0x1,_0x5aae1f));},{'priority':'low'});}),_0x58d0e4['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x1e5d45=>0x1===_0x1e5d45?null:{'key':'start','value':String(_0x1e5d45)}}),_0x58d0e4['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x269b70=>'decimal'===_0x269b70?null:{'key':'style','value':{'list-style-type':_0x269b70}}}),_0x58d0e4['for']('editingDowncast')['add'](_0x2ac58c=>{_0x2ac58c['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x4509e7,_0x1cb216,_0x18c5a2)=>{if(!_0x18c5a2['consumable']['consume'](_0x1cb216['item'],_0x4509e7['name']))return;const _0x2764e9=C(_0x1cb216['item'],_0x18c5a2['mapper']);null===_0x1cb216['attributeNewValue']||void 0x0===_0x1cb216['attributeNewValue']||0x1===_0x1cb216['attributeNewValue']?_0x18c5a2['writer']['removeAttribute']('start',_0x2764e9):_0x18c5a2['writer']['setAttribute']('start',String(_0x1cb216['attributeNewValue']),_0x2764e9);}),_0x2ac58c['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x113af1,_0x536998,_0x602cad)=>{if(!_0x602cad['consumable']['consume'](_0x536998['item'],_0x113af1['name']))return;const _0x1becd=C(_0x536998['item'],_0x602cad['mapper']);_0x536998['attributeNewValue']&&'decimal'!==_0x536998['attributeNewValue']?_0x602cad['writer']['setStyle']('list-style-type',_0x536998['attributeNewValue'],_0x1becd):_0x602cad['writer']['removeStyle']('list-style-type',_0x1becd);});});}['_definePostfixer'](){const {editor:_0x284ac8}=this,{model:_0x509440}=_0x284ac8,_0x559420=_0x284ac8['plugins']['get'](c),_0x1717eb=this['_getDefaultListStyle'](),_0x355afa=this['_getDefaultStartIndex']();_0x509440['document']['registerPostFixer'](_0x4dc25b=>{const _0x5ba952=_0x509440['document']['differ']['getChanges']();let _0x39aa85=!0x1;for(const _0x1f9a7b of _0x5ba952){if('insert'!==_0x1f9a7b['type']||'$text'===_0x1f9a7b['name'])continue;const _0x5e0bd4=_0x509440['createRangeOn'](_0x1f9a7b['position']['nodeAfter']);for(const _0x2cd77d of _0x5e0bd4['getItems']())_0x2cd77d['is']('element','footnotesDefinitions')&&(_0x2cd77d['hasAttribute']('footnotesListStart')||(_0x4dc25b['setAttribute']('footnotesListStart',_0x355afa,_0x2cd77d),_0x39aa85=!0x0),_0x2cd77d['hasAttribute']('footnotesListStyle')||(_0x4dc25b['setAttribute']('footnotesListStyle',_0x1717eb,_0x2cd77d),_0x39aa85=!0x0));}return _0x39aa85&&_0x559420['_updateFootnotesCounters'](_0x4dc25b),_0x39aa85;});}['_defineFormatter'](){const {editor:_0x57afcc}=this;_0x57afcc['plugins']['get'](c)['setFootnoteFormatter'](_0x3e37c5=>this['_formatFootnoteListValue'](_0x3e37c5));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xe7b06d,value:_0x4b79c4,digits:_0x5504da}){const _0x1c1ecc=_0xe7b06d['getAttribute']('footnotesListStyle'),_0x3b7c52=_0xe7b06d['getAttribute']('footnotesListStart'),_0x126291=Math['floor'](_0x4b79c4)+(_0x3b7c52-0x1);switch(_0x1c1ecc){case'decimal':default:return String(_0x126291);case'decimal-leading-zero':return function(_0x303028,_0x3ca1f2){return String(_0x303028)['padStart'](_0x3ca1f2,'0');}(_0x126291,Math['max'](0x2,_0x5504da));case'lower-alpha':case'lower-latin':return M(_0x126291,!0x1);case'upper-alpha':case'upper-latin':return M(_0x126291,!0x0);case'lower-roman':return A(_0x126291,!0x1);case'upper-roman':return A(_0x126291,!0x0);}}}function C(_0x36f5bb,_0x1eb065){const _0x45ab59=_0x1eb065['toViewElement'](_0x36f5bb);return Array['from'](_0x45ab59['getChildren']())['find'](_0x136538=>_0x136538['is']('element','ol'));}function M(_0x75ee88,_0x5d9b22){let _0x4fbb6a='',_0x5eb709=_0x75ee88;for(;_0x5eb709>0x0;){const _0x5d2517=(_0x5eb709-0x1)%0x1a;_0x4fbb6a=String['fromCharCode'](0x61+_0x5d2517)+_0x4fbb6a,_0x5eb709=Math['floor']((_0x5eb709-0x1)/0x1a);}return _0x5d9b22?_0x4fbb6a['toUpperCase']():_0x4fbb6a;}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(_0x4291a0,_0x32667e){let _0x5df6e7='',_0x4e18a0=_0x4291a0;for(const {value:_0x3798bb,numeral:_0xfe0b32}of X)for(;_0x4e18a0>=_0x3798bb;)_0x5df6e7+=_0xfe0b32,_0x4e18a0-=_0x3798bb;return _0x32667e?_0x5df6e7:_0x5df6e7['toLowerCase']();}class R extends _0x5e6fbf{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x5f3227();['focusCycler'];constructor(_0x42bffa,{styleButtonViews:_0x25211e,styleGridAriaLabel:_0xc48cf}){super(_0x42bffa),(this['focusCycler']=new _0x2f996f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x25211e,_0xc48cf),[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 _0x41e7db of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x41e7db['element']);_0x1fa4bf({'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 _0x203f0d=_0x2a7789=>_0x2a7789['stopPropagation']();this['keystrokes']['set']('arrowright',_0x203f0d),this['keystrokes']['set']('arrowleft',_0x203f0d),this['keystrokes']['set']('arrowup',_0x203f0d),this['keystrokes']['set']('arrowdown',_0x203f0d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1f0a87,_0x4e224f){const _0xf82f43=new _0x5e6fbf(this['locale']);return _0xf82f43['children']=_0xf82f43['createCollection'](),_0xf82f43['children']['addMany'](_0x1f0a87),_0xf82f43['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4e224f,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xf82f43['children']}),_0xf82f43['children']['delegate']('execute')['to'](this),_0xf82f43['focus']=function(){for(const _0x28bf65 of this['children'])if(_0x28bf65 instanceof _0x4f7301&&_0x28bf65['isOn'])return void _0x28bf65['focus']();this['children']['first']['focus']();},_0xf82f43['focusTracker']=new it(),_0xf82f43['keystrokes']=new et(),_0xf82f43['render'](),_0xf82f43['keystrokes']['listenTo'](_0xf82f43['element']),this['children']['add'](_0xf82f43),_0xf82f43;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1dfe1b=this['_createStartIndexPropertyView'](),_0x51740a=[_0x1dfe1b],_0x33d16b=new _0x42bd83(this['locale'],_0x51740a);return _0x33d16b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x33d16b['buttonView']['bind']('isEnabled')['toMany'](_0x51740a,'isEnabled',(..._0x54f1a3)=>_0x54f1a3['some'](_0x4613e6=>_0x4613e6)),_0x33d16b['buttonView']['on']('change:isEnabled',(_0x353370,_0x30aa72,_0x29d1dc)=>{_0x29d1dc||(_0x33d16b['isCollapsed']=!0x0);}),this['children']['add'](_0x33d16b),[_0x1dfe1b,_0x33d16b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2bdb04=new tt(this['locale'],st);return _0x2bdb04['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2bdb04['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2bdb04['fieldView']['on']('input',()=>{const _0x4e2bb5=_0x2bdb04['fieldView']['element'],_0x30a203=_0x4e2bb5['valueAsNumber'];Number['isNaN'](_0x30a203)?_0x2bdb04['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4e2bb5['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x30a203}):_0x2bdb04['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2bdb04;}}class j extends _0x5dd69c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x369595,_0x121d00];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x359290}=this,{componentFactory:_0x418fe0}=_0x359290['ui'];_0x359290['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x418fe0['add']('footnotesStyle',function(_0x44a70f){return _0x2bc56a=>{const {t:t}=_0x2bc56a,_0x3a3e72=_0x44a70f['commands']['get']('footnotesStyle'),_0x3407a1=_0x24d4ee(_0x2bc56a),{buttonView:_0x4d960b}=_0x3407a1;return _0x3407a1['class']='ck-footnotes-styles-dropdown',_0x3407a1['bind']('isEnabled')['to'](_0x3a3e72,'isEnabled'),_0x4d960b['set']({'label':t('Footnotes\x20style'),'icon':_0x242f94,'tooltip':!0x0}),_0x3407a1['once']('change:isOpen',()=>{const _0x1c303f=function({editor:_0x25c163,dropdownView:_0x5ab7fe}){const {t:t}=_0x25c163['locale'],_0x2845e4=t('Footnotes\x20definitions\x20styles'),_0x5e84e4=function(_0x10d6d9){const t=_0x10d6d9['locale']['t'],_0x1d9c6b=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3b2851},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1c38c6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5a7599},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3a4c8d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x24244e},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xea279a}];return _0x1d9c6b['map'](function(_0x5c67be){const _0x12d941=_0x5c67be['locale'];return({label:_0x1f07b5,icon:_0x3b9284,tooltip:_0x1bab11,style:_0x502cab})=>{const _0x513c52=_0x5c67be['commands']['get']('footnotesStyle'),_0x149b68=new _0x4f7301(_0x12d941);return _0x149b68['set']({'label':_0x1f07b5,'icon':_0x3b9284,'tooltip':_0x1bab11}),_0x149b68['bind']('isOn')['to'](_0x513c52,'value',_0x314536=>_0x314536===_0x502cab),_0x149b68['bind']('isEnabled')['to'](_0x513c52,'isEnabled'),_0x149b68['on']('execute',()=>{_0x5c67be['execute']('footnotesStyle',{'value':_0x502cab}),_0x5c67be['editing']['view']['focus']();}),_0x149b68;};}(_0x10d6d9));}(_0x25c163),_0x408193=new R(_0x25c163['locale'],{'styleGridAriaLabel':_0x2845e4,'styleButtonViews':_0x5e84e4});return _0x408193['delegate']('execute')['to'](_0x5ab7fe),_0x408193['on']('footnotesListStart',(_0x3a0800,_0x527aea)=>{_0x25c163['execute']('footnotesStart',{'value':_0x527aea['startIndex']});}),_0x408193;}({'editor':_0x44a70f,'dropdownView':_0x3407a1});_0x3407a1['panelView']['children']['add'](_0x1c303f);}),_0x3407a1;};}(_0x359290));}['afterInit'](){const {editor:_0x247058}=this,{t:t}=_0x247058['locale'],_0x4f853=_0x247058['plugins']['get'](_0x121d00),{defaultPositions:_0x16a8f8}=_0x52e42a;_0x4f853['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x247058['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xa121a3=>{let _0x1c1221=_0xa121a3['getFirstPosition']()?.['parent'];return _0x1c1221?.['is']('$text')&&(_0x1c1221=_0x1c1221['parent']),_0x1c1221?.['is']('element')?_0x1c1221['findAncestor']($):null;},'positions':[_0x16a8f8['southArrowNorth'],_0x16a8f8['southArrowNorthMiddleWest'],_0x16a8f8['southArrowNorthMiddleEast'],_0x16a8f8['southArrowNorthWest'],_0x16a8f8['southArrowNorthEast'],_0x16a8f8['northArrowSouth'],_0x16a8f8['northArrowSouthMiddleWest'],_0x16a8f8['northArrowSouthMiddleEast'],_0x16a8f8['northArrowSouthWest'],_0x16a8f8['northArrowSouthEast'],_0x16a8f8['viewportStickyNorth']]});}}class rt extends _0x5dd69c{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-20251016.0",
3
+ "version": "0.0.0-nightly-20251018.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-20251016.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251016.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251016.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251016.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251016.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251016.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251016.0",
33
- "ckeditor5": "0.0.0-nightly-20251016.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251018.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251018.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251018.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251018.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251018.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251018.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251018.0",
33
+ "ckeditor5": "0.0.0-nightly-20251018.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 _0x2dbc0a=_0x13d3;(function(_0x37dadc,_0x19cbaa){const _0x2c311a=_0x13d3,_0x564dfb=_0x37dadc();while(!![]){try{const _0x5ed24c=parseInt(_0x2c311a(0xa2))/0x1+-parseInt(_0x2c311a(0xa5))/0x2+parseInt(_0x2c311a(0x93))/0x3*(parseInt(_0x2c311a(0xaa))/0x4)+-parseInt(_0x2c311a(0xaf))/0x5+-parseInt(_0x2c311a(0xa9))/0x6*(parseInt(_0x2c311a(0xa3))/0x7)+parseInt(_0x2c311a(0x97))/0x8+-parseInt(_0x2c311a(0x95))/0x9*(parseInt(_0x2c311a(0xa8))/0xa);if(_0x5ed24c===_0x19cbaa)break;else _0x564dfb['push'](_0x564dfb['shift']());}catch(_0x4a9a5f){_0x564dfb['push'](_0x564dfb['shift']());}}}(_0x58da,0x2825d));import{logWarning as _0x2f42e,uid as _0x3d524c}from'ckeditor5/src/utils.js';function _0x13d3(_0x5cc379,_0x431d58){const _0x58dac6=_0x58da();return _0x13d3=function(_0x13d3a3,_0x2acd0d){_0x13d3a3=_0x13d3a3-0x93;let _0x3d88d5=_0x58dac6[_0x13d3a3];return _0x3d88d5;},_0x13d3(_0x5cc379,_0x431d58);}function _0x58da(){const _0x1e5a54=['isBlock','10bgjThd','12978HlVjkp','27144XPKFkb','editor','_moveSelectionToFootnoteDefinition','refresh','string','1593720WRzzcc','document','change','execute','isObject','isEnabled','plugins','FootnotesEditing','_getPositionToInsertFootnote','141aecJBC','getItems','454671pxrHNm','insertObject','109312boDHgN','get','selection','createElement','getFirstRange','model','test','checkChild','insert-footnote-command-executed-with-invalid-id','footnoteRef','length','274566CUrzcz','161wsfMLc','end','47430DfMhGh','footnoteId'];_0x58da=function(){return _0x1e5a54;};return _0x58da();}import{Command as _0x41257a}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x41257a{[_0x2dbc0a(0xad)](){const _0x2fbc91=_0x2dbc0a,_0x1fff71=this[_0x2fbc91(0xab)][_0x2fbc91(0x9c)][_0x2fbc91(0xb0)][_0x2fbc91(0x99)],_0x5a08e6=this[_0x2fbc91(0xb7)](_0x1fff71);this[_0x2fbc91(0xb4)]=!!_0x5a08e6;}[_0x2dbc0a(0xb2)](_0x4f2561){const _0x1c3297=_0x2dbc0a,{editor:_0x48de16}=this,{model:_0x55edfd}=_0x48de16,{selection:_0x3ce691}=_0x55edfd[_0x1c3297(0xb0)],_0x12b509=this[_0x1c3297(0xb7)](_0x3ce691);if(!_0x12b509)return;const _0x5cc0da=_0x48de16[_0x1c3297(0xb5)][_0x1c3297(0x98)](_0x1c3297(0xb6)),_0x21cf34=_0x4f2561?.[_0x1c3297(0xa6)]??_0x3d524c();!function(_0x4d5a0c){const _0x576276=_0x1c3297;return _0x576276(0xae)==typeof _0x4d5a0c&&_0x4d5a0c[_0x576276(0xa1)]>0x0&&!/\s/[_0x576276(0x9d)](_0x4d5a0c)&&!/^\d/[_0x576276(0x9d)](_0x4d5a0c);}(_0x21cf34)?_0x2f42e(_0x1c3297(0x9f)):(_0x55edfd[_0x1c3297(0xb1)](_0x35c1b4=>{const _0x4a7821=_0x1c3297,_0x4a24e5=_0x35c1b4[_0x4a7821(0x9a)](_0x4a7821(0xa0),{'footnoteId':_0x21cf34});_0x55edfd[_0x4a7821(0x96)](_0x4a24e5,_0x12b509,null);}),_0x5cc0da[_0x1c3297(0xac)](_0x21cf34));}[_0x2dbc0a(0xb7)](_0x7abd24){const _0x346531=_0x2dbc0a,{model:_0x2087c0}=this[_0x346531(0xab)],{schema:_0x181ffa}=_0x2087c0,_0x119def=_0x7abd24[_0x346531(0x9b)]();for(const _0xf9ef62 of _0x119def[_0x346531(0x94)]())if(_0x181ffa[_0x346531(0xa7)](_0xf9ef62)||_0x181ffa[_0x346531(0xb3)](_0xf9ef62))return null;const _0x39fb01=_0x119def[_0x346531(0xa4)];return _0x181ffa[_0x346531(0x9e)](_0x39fb01,_0x346531(0xa0))?_0x39fb01: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 _0x14c286=_0x336b;(function(_0x2c75d,_0x18ccfd){var _0xec1768=_0x336b,_0x390ee4=_0x2c75d();while(!![]){try{var _0x484d96=parseInt(_0xec1768(0x137))/0x1+parseInt(_0xec1768(0x136))/0x2*(parseInt(_0xec1768(0x135))/0x3)+parseInt(_0xec1768(0x131))/0x4+-parseInt(_0xec1768(0x13c))/0x5*(-parseInt(_0xec1768(0x13a))/0x6)+parseInt(_0xec1768(0x132))/0x7+-parseInt(_0xec1768(0x12f))/0x8+-parseInt(_0xec1768(0x138))/0x9*(parseInt(_0xec1768(0x133))/0xa);if(_0x484d96===_0x18ccfd)break;else _0x390ee4['push'](_0x390ee4['shift']());}catch(_0x11c95b){_0x390ee4['push'](_0x390ee4['shift']());}}}(_0x5be7,0x26c01));function _0x336b(_0x43a42e,_0x2239b7){var _0x5be71d=_0x5be7();return _0x336b=function(_0x336b87,_0x3d71ef){_0x336b87=_0x336b87-0x12e;var _0x35100a=_0x5be71d[_0x336b87];return _0x35100a;},_0x336b(_0x43a42e,_0x2239b7);}import{Plugin as _0x6ae383}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x5b058e}from'./footnotesediting.js';import{FootnotesClipboard as _0x4f498d}from'./footnotesclipboard.js';import{FootnotesUI as _0x2da118}from'./footnotesui.js';function _0x5be7(){var _0x215736=['isOfficialPlugin','42BCxShN','isPremiumPlugin','213935jfpRJB','pluginName','1886624qNAFvN','Footnotes','853964wBiKSh','1698725ZLJJZN','2783210UJwRZH','requires','39AQItBt','31898NCBgel','266500HoCilr','27sJCmLb'];_0x5be7=function(){return _0x215736;};return _0x5be7();}export class Footnotes extends _0x6ae383{static get[_0x14c286(0x12e)](){var _0x5ab8ef=_0x14c286;return _0x5ab8ef(0x130);}static get[_0x14c286(0x134)](){return[_0x5b058e,_0x4f498d,_0x2da118];}static get[_0x14c286(0x139)](){return!0x0;}static get[_0x14c286(0x13b)](){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
- function _0x45ce(){const _0xc7e929=['length','end','listenTo','parse','document','343587zpLqtl','editor','data','_handleCopyFootnotesDefinitions','3206724tZasTg','get','create','7uvCIRR','isPremiumPlugin','getFootnotes','find','root','init','method','setAttribute','isOfficialPlugin','9wqhEYb','requires','reduce','footnoteRef','remove','_insertEmptyFootnotesDefinitionsContainer','element','302450FbMTjs','entries','footnoteId','setData','contentInsertion','clipboardInput','6005730EcQTRB','FootnotesClipboard','content','toData','outputTransformation','stringify','htmlProcessor','12300hnsCON','editing','toModel','push','11uHYeIR','getFirstRange','getAttribute','drop','insert','8tyNcCN','_handlePasteFootnotesDefinitions','selection','6938934bJaYgg','change','footnoteDefinition','createElement','from','append','getFootnote','getFootnotesDefinitionsObjectElement','getData','createRangeIn','7038536fnUhAh','_defineClipboardIntegration','definition','application/ckeditor5-footnotes','dataTransfer','sourceEditorId','toView','64jxiFkT','footnotesDefinitions','pluginName','add'];_0x45ce=function(){return _0xc7e929;};return _0x45ce();}const _0xb8b011=_0x1958;function _0x1958(_0x3e393a,_0x1f2a4b){const _0x45ce0e=_0x45ce();return _0x1958=function(_0x19581c,_0x2b0eb5){_0x19581c=_0x19581c-0x168;let _0x21c2a4=_0x45ce0e[_0x19581c];return _0x21c2a4;},_0x1958(_0x3e393a,_0x1f2a4b);}(function(_0x3756cc,_0x338d1c){const _0x6191a6=_0x1958,_0x28ee93=_0x3756cc();while(!![]){try{const _0x5817e5=-parseInt(_0x6191a6(0x176))/0x1*(-parseInt(_0x6191a6(0x1a3))/0x2)+parseInt(_0x6191a6(0x17f))/0x3*(parseInt(_0x6191a6(0x1ac))/0x4)+parseInt(_0x6191a6(0x196))/0x5+parseInt(_0x6191a6(0x1af))/0x6+parseInt(_0x6191a6(0x186))/0x7*(-parseInt(_0x6191a6(0x16f))/0x8)+parseInt(_0x6191a6(0x18f))/0x9*(-parseInt(_0x6191a6(0x19c))/0xa)+-parseInt(_0x6191a6(0x1a7))/0xb*(-parseInt(_0x6191a6(0x183))/0xc);if(_0x5817e5===_0x338d1c)break;else _0x28ee93['push'](_0x28ee93['shift']());}catch(_0x17966d){_0x28ee93['push'](_0x28ee93['shift']());}}}(_0x45ce,0x98f2a));import{Plugin as _0x100474}from'ckeditor5/src/core.js';import{uid as _0x3533dd}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0x57ff06}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x57c007}from'./footnotesediting.js';import{FootnotesTracker as _0x4f4abe}from'./footnotestracker.js';export class FootnotesClipboard extends _0x100474{static get[_0xb8b011(0x178)](){const _0x52cade=_0xb8b011;return _0x52cade(0x19d);}static get[_0xb8b011(0x190)](){return[_0x57c007,_0x57ff06];}static get[_0xb8b011(0x18e)](){return!0x0;}static get[_0xb8b011(0x187)](){return!0x0;}[_0xb8b011(0x18b)](){const _0x202aa0=_0xb8b011;this[_0x202aa0(0x170)]();}[_0xb8b011(0x170)](){const _0xf190b1=_0xb8b011;this[_0xf190b1(0x182)](),this[_0xf190b1(0x1ad)]();}[_0xb8b011(0x182)](){const _0xbfb8a4=_0xb8b011,{editor:_0x555bc2}=this,{plugins:_0x455be7,model:_0x1b8e00}=_0x555bc2,_0x2ee068=_0x455be7[_0xbfb8a4(0x184)](_0x57ff06),_0x223248=_0x455be7[_0xbfb8a4(0x184)](_0x4f4abe);this[_0xbfb8a4(0x17c)](_0x2ee068,_0xbfb8a4(0x1a0),(_0x1e0924,_0x472d8d)=>{const _0xf21f1b=_0xbfb8a4,_0x33e74a=function(_0x54917c,_0x3cc3c0){const _0x44e6d3=_0x1958,_0x4acad4=new Set();for(const {item:_0x365583}of _0x54917c[_0x44e6d3(0x16e)](_0x3cc3c0))_0x365583['is'](_0x44e6d3(0x195),_0x44e6d3(0x192))&&_0x4acad4[_0x44e6d3(0x179)](_0x365583[_0x44e6d3(0x1a9)](_0x44e6d3(0x198)));return Array[_0x44e6d3(0x169)](_0x4acad4);}(_0x1b8e00,_0x472d8d[_0xf21f1b(0x19e)]);if(!_0x33e74a[_0xf21f1b(0x17a)])return;const _0x17a42d=_0x223248[_0xf21f1b(0x188)](),_0xd710f5=_0x33e74a[_0xf21f1b(0x191)]((_0x920b80,_0xf9b22f)=>{const _0x469150=_0xf21f1b,_0x2749dd=_0x17a42d[_0x469150(0x189)](_0x3560d1=>_0x3560d1['id']===_0xf9b22f);if(_0x2749dd){const _0x22dc59=_0x555bc2[_0x469150(0x181)][_0x469150(0x175)](_0x2749dd[_0x469150(0x171)],{'isClipboardPipeline':!0x0}),_0x3b4bd4=_0x555bc2[_0x469150(0x181)][_0x469150(0x1a2)][_0x469150(0x19f)](_0x22dc59);_0x920b80[_0x2749dd['id']]=_0x3b4bd4;}return _0x920b80;},Object[_0xf21f1b(0x185)](null));_0x472d8d[_0xf21f1b(0x173)][_0xf21f1b(0x199)](_0xf21f1b(0x172),JSON[_0xf21f1b(0x1a1)](_0xd710f5));});}[_0xb8b011(0x1ad)](){const _0x3efaa1=_0xb8b011,{editor:_0x81e22e}=this,{model:_0x55c310,plugins:_0x1d3625}=_0x81e22e,{view:_0x359025}=_0x81e22e[_0x3efaa1(0x1a4)],_0x30bb63=_0x1d3625[_0x3efaa1(0x184)](_0x57ff06),_0x27e257=_0x1d3625[_0x3efaa1(0x184)](_0x4f4abe);let _0x3b82a7=null;this[_0x3efaa1(0x17c)](_0x359025[_0x3efaa1(0x17e)],_0x3efaa1(0x19b),(_0x5af0f,_0x48e1db)=>{const _0x4f452b=_0x3efaa1,_0x335668=_0x48e1db[_0x4f452b(0x173)][_0x4f452b(0x16d)](_0x4f452b(0x172));_0x3b82a7=_0x335668?JSON[_0x4f452b(0x17d)](_0x335668):null;}),this[_0x3efaa1(0x17c)](_0x30bb63,_0x3efaa1(0x19a),(_0xe1a434,_0x9a91b)=>{const _0x3e0d6a=_0x3efaa1;if(!_0x3b82a7)return;const _0xde12f4=_0x9a91b[_0x3e0d6a(0x174)]===this[_0x3e0d6a(0x180)]['id'];_0xde12f4&&_0x3e0d6a(0x1aa)===_0x9a91b[_0x3e0d6a(0x18c)]||_0x55c310[_0x3e0d6a(0x1b0)](_0x2e3b9d=>{const _0x3fe652=_0x3e0d6a;!function(_0x46566f,_0x5e8368){const _0x16ea74=_0x1958,_0x2766f1=[];for(const {item:_0x5986cd}of _0x46566f[_0x16ea74(0x16e)](_0x5e8368))_0x5986cd['is'](_0x16ea74(0x195),_0x16ea74(0x177))&&_0x2766f1[_0x16ea74(0x1a6)](_0x5986cd);for(const _0x1f3898 of _0x2766f1)_0x46566f[_0x16ea74(0x193)](_0x1f3898);}(_0x2e3b9d,_0x9a91b[_0x3fe652(0x19e)]);let _0x19cf44=_0x27e257[_0x3fe652(0x16c)]();if(!_0x19cf44){const _0x1d8581=_0x55c310[_0x3fe652(0x17e)][_0x3fe652(0x1ae)][_0x3fe652(0x1a8)]()[_0x3fe652(0x18a)];_0x19cf44=_0x27e257[_0x3fe652(0x194)](_0x2e3b9d,_0x1d8581);}const _0x19e0f5=function(_0x264677,_0x297ccd,_0x43f7bc){const _0x4d1e6d=_0x3fe652,_0x2ad2cf=Object[_0x4d1e6d(0x185)](null);for(const {item:_0x1681f5}of _0x264677[_0x4d1e6d(0x16e)](_0x297ccd))if(_0x1681f5['is'](_0x4d1e6d(0x195),_0x4d1e6d(0x192))){const _0x47309a=_0x1681f5[_0x4d1e6d(0x1a9)](_0x4d1e6d(0x198));if(!_0x43f7bc(_0x47309a))continue;_0x2ad2cf[_0x47309a]||(_0x2ad2cf[_0x47309a]=_0x3533dd()),_0x264677[_0x4d1e6d(0x18d)](_0x4d1e6d(0x198),_0x2ad2cf[_0x47309a],_0x1681f5);}return _0x2ad2cf;}(_0x2e3b9d,_0x9a91b[_0x3fe652(0x19e)],_0x37baa6=>!_0xde12f4||null!==_0x27e257[_0x3fe652(0x16b)](_0x37baa6));for(const [_0x17da33,_0x50bdc1]of Object[_0x3fe652(0x197)](_0x3b82a7)){const _0x22a19d=_0x19e0f5[_0x17da33]||_0x17da33,_0x280b67=_0x2e3b9d[_0x3fe652(0x168)](_0x3fe652(0x1b1),{'footnoteId':_0x22a19d}),_0x9e1638=_0x81e22e[_0x3fe652(0x181)][_0x3fe652(0x1a2)][_0x3fe652(0x175)](_0x50bdc1),_0x24ee0a=_0x81e22e[_0x3fe652(0x181)][_0x3fe652(0x1a5)](_0x9e1638,_0x280b67);_0x2e3b9d[_0x3fe652(0x16a)](_0x24ee0a,_0x280b67),_0x2e3b9d[_0x3fe652(0x1ab)](_0x280b67,_0x19cf44,_0x3fe652(0x17b));}_0x3b82a7=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;});});}}