@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251027.0 → 0.0.0-nightly-20251028.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/build/footnotes.js +1 -1
- package/dist/index-editor.css +0 -3
- package/dist/index.css +0 -3
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
- package/theme/footnotes.css +0 -4
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x7f6a27,Command as _0x1849a9}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x41f154,isWidget as _0x40e19a,toWidgetEditable as _0x4da06a,WidgetToolbarRepository as _0x850f85}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x124e5b,logWarning as _0xa045ad,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xe15985,ClickObserver as _0x14ca82}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2cf428}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3de1ec,ButtonView as _0x285e75,View as _0x1c8606,ViewCollection as _0x573d1f,FocusCycler as _0x59a5b9,addKeyboardHandlingForGrid as _0x48ec16,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x16c286,BalloonPanelView as _0x5e807c,createDropdown as _0x45bc8e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2a043f,IconListStyleDecimal as _0x4a05ec,IconListStyleDecimalLeadingZero as _0x401dfc,IconListStyleLowerRoman as _0x3bdc31,IconListStyleUpperRoman as _0x5491ae,IconListStyleLowerLatin as _0x57ead2,IconListStyleUpperLatin as _0x57e61b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2e9efb,_0xffa8dc){this['_model']=_0x2e9efb,this['_elementName']=_0xffa8dc['elementName'],this['_getElementKey']=_0xffa8dc['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2abec4){const _0x2cfb91=new Set(),_0x557eb6=new Map();for(const _0x3e96f1 of _0x2abec4){if('insert'===_0x3e96f1['type']&&'$text'!==_0x3e96f1['name']&&_0x3e96f1['position']['nodeAfter']){const _0x292fe9=this['_model']['createRangeOn'](_0x3e96f1['position']['nodeAfter']);for(const _0xe4b28f of _0x292fe9['getItems']()){if(!_0xe4b28f['is']('element',this['_elementName']))continue;const _0x388957=this['_getElementKey'](_0xe4b28f);_0x557eb6['has'](_0x388957)||_0x557eb6['set'](_0x388957,[]),_0x557eb6['get'](_0x388957)['push'](_0xe4b28f);}}if('remove'===_0x3e96f1['type']&&_0x3e96f1['name']===this['_elementName']){const _0x26db27=this['_getElementKey']({'getAttribute':_0xa579e4=>_0x3e96f1['attributes']['get'](_0xa579e4)});_0x2cfb91['add'](_0x26db27);}}for(const [_0x5d9693,_0x239c57]of this['_trackedElements'])'$graveyard'===_0x239c57['root']['rootName']&&_0x2cfb91['add'](_0x5d9693);for(const _0x11a971 of _0x2cfb91)this['_trackedElements']['delete'](_0x11a971);for(const [_0x36fb93,_0x463857]of _0x557eb6)this['_trackedElements']['set'](_0x36fb93,_0x463857[_0x463857['length']-0x1]);const _0xc2c6a8=new Set();for(const [_0x2bb343,_0x57351e]of _0x557eb6)_0x2cfb91['has'](_0x2bb343)&&(_0xc2c6a8['add'](_0x57351e[0x0]),_0x57351e['length']>0x1?_0x557eb6['set'](_0x2bb343,_0x57351e['slice'](0x1)):_0x557eb6['delete'](_0x2bb343),_0x2cfb91['delete'](_0x2bb343));return{'removed':Array['from'](_0x2cfb91),'inserted':Array['from'](_0x557eb6['values']())['flat'](),'moved':Array['from'](_0xc2c6a8)};}}class c extends _0x7f6a27{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd1adc6){super(_0xd1adc6),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x438acf=>_0x438acf['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x57cb1d=>_0x57cb1d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x48593e}=this,{model:_0x3d9440,data:_0x7b8f47}=_0x48593e;_0x3d9440['document']['registerPostFixer'](_0x508ed6=>{const _0x3397dd=_0x3d9440['document']['differ']['getChanges']();let _0x588d99=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_handleFootnoteReferencesChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x508ed6)&&(_0x588d99=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x508ed6)&&(_0x588d99=!0x0),this['_sortFootnoteDefinitions'](_0x508ed6)&&(_0x588d99=!0x0),_0x588d99;}),this['listenTo'](_0x3d9440['document'],'change:data',()=>{_0x3d9440['enqueueChange']({'isUndoable':!0x1},_0x30f937=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x30f937);});},{'priority':'low'}),this['listenTo'](_0x7b8f47,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5988c7){return this['_footnotes']['find'](_0x4c9743=>_0x4c9743['id']===_0x5988c7)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5eee85){this['_footnoteFormatter']=_0x5eee85;}['_updateFootnotesCounters'](_0x4febee,_0x209cdf=0x0){let _0x20db5f=!0x1;for(let _0x380932=_0x209cdf;_0x380932<this['_footnotes']['length'];_0x380932++)this['_updateFootnoteRefCounter'](_0x4febee,_0x380932)&&(_0x20db5f=!0x0);return _0x20db5f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x10c1bc,_0x400229){const _0x3651bd=_0x10c1bc['createElement']('footnotesDefinitions',{});return _0x10c1bc['append'](_0x3651bd,_0x400229),this['_footnotesDefinitions']=_0x3651bd,_0x3651bd;}['_ensureFootnotesDefinitionsContainerExists'](_0x3b7566){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4a6e6d=this['_footnotes'][0x0]['reference']['root'],_0x47d45e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3b7566,_0x4a6e6d);for(const _0x1ae7a0 of this['_footnotes'])_0x1ae7a0['definition']['parent']||_0x3b7566['insert'](_0x1ae7a0['definition'],_0x47d45e,'end');this['_updateFootnotesCounters'](_0x3b7566);}['_handleFootnotesDefinitionsObjectChanges'](_0x115213,_0x374945){let _0x367078=!0x1;const {inserted:_0x45409b,removed:_0x1e269b,moved:_0x434482}=this['_footnoteDefsContainerTracker']['getChanges'](_0x374945);if(_0x434482['length']&&(this['_footnotesDefinitions']=_0x434482[0x0]),_0x45409b['length']){if(_0x45409b['length']>0x1||this['_footnotesDefinitions']&&_0x45409b['some'](_0x9775a0=>_0x9775a0!==this['_footnotesDefinitions'])){const _0xa1439b=_0x115213['createElement']('footnotesDefinitions',{}),_0x72d6e7=[];this['_footnotesDefinitions']&&_0x72d6e7['push'](this['_footnotesDefinitions']),_0x72d6e7['push'](..._0x45409b),_0x115213['insert'](_0xa1439b,_0x72d6e7[0x0],'before');for(const _0x1fa73d of _0x72d6e7)_0x115213['move'](_0x115213['createRangeIn'](_0x1fa73d),_0x115213['createPositionAt'](_0xa1439b,'end')),_0x115213['remove'](_0x1fa73d);this['_footnotesDefinitions']=_0xa1439b,this['_updateFootnotesCounters'](_0x115213),_0x367078=!0x0;}else this['_footnotesDefinitions']=_0x45409b[0x0];}if(_0x1e269b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1701ee of this['_footnotes'])_0x115213['remove'](_0x1701ee['reference']),_0x367078=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x367078;}['_handleFootnoteDefinitionsChanges'](_0x315d75,_0xe3c096){let _0x3a976d=!0x1;const _0x300425=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x190bd4,moved:_0xfa596c}=this['_footnoteDefsTracker']['getChanges'](_0xe3c096);for(const _0x35b223 of[..._0xfa596c,..._0x190bd4]){const _0x3b1c0d=_0x35b223['getAttribute']('footnoteId'),_0x14f148=this['getFootnote'](_0x3b1c0d);_0x14f148&&(_0x14f148['definition']=_0x35b223),_(_0x315d75,_0x300425,_0x35b223)&&(_0x3a976d=!0x0);}return _0x3a976d;}['_handleFootnoteReferencesChanges'](_0x35b3ed,_0x11c2d0){let _0x481d3c=!0x1;const {removed:_0x213813,inserted:_0x8cf6bd,moved:_0x43b464}=this['_footnoteRefsTracker']['getChanges'](_0x11c2d0);for(const _0x441b27 of _0x213813)this['_handleRemoveFootnoteReferenceById'](_0x35b3ed,_0x441b27)&&(_0x481d3c=!0x0);for(const _0x889807 of _0x8cf6bd)this['_handleInsertedFootnoteReference'](_0x35b3ed,_0x889807)&&(_0x481d3c=!0x0);for(const _0x48d102 of _0x43b464)this['_handleMovedFootnoteReference'](_0x35b3ed,_0x48d102)&&(_0x481d3c=!0x0);return _0x481d3c;}['_handleFootnotesDefinitionsObjectSync'](_0x53f392){if(!this['_footnotesDefinitions'])return!0x1;let _0x4d4b3e=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3e6871=[];for(const _0x87981 of this['_footnotesDefinitions']['getChildren']()){const _0x37230a=_0x87981['getAttribute']('footnoteId');this['getFootnote'](_0x37230a)||(_0x3e6871['unshift'](_0x87981),_0x4d4b3e=!0x0);}for(const _0x23c637 of _0x3e6871)_0x53f392['remove'](_0x23c637);}const _0x5081b3=new Set(),_0x303096=[];for(const _0x53d776 of this['_footnotesDefinitions']['getChildren']()){const _0x3603e1=_0x53d776['getAttribute']('footnoteId');_0x5081b3['has'](_0x3603e1)?(_0x303096['unshift'](_0x53d776),_0x4d4b3e=!0x0):_0x5081b3['add'](_0x3603e1);}for(const _0x58134f of _0x303096)_0x53f392['remove'](_0x58134f);return this['_footnotesDefinitions']['childCount']||(_0x53f392['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4d4b3e=!0x0),_0x4d4b3e;}['_handleInsertedFootnoteReference'](_0x510f52,_0xf471dc){if(this['_footnotes']['find'](_0x300c4a=>_0x300c4a['reference']===_0xf471dc))return!0x1;let _0xb2c320=!0x1;const _0x222044=_0xf471dc['getAttribute']('footnoteId'),_0x15c7c3=this['getFootnote'](_0x222044);_0x15c7c3&&(_0x510f52['remove'](_0x15c7c3['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x20cd93=>_0x20cd93['id']!==_0x222044),_0xb2c320=!0x0);let _0x4d75ca=this['_footnotesDefinitions']?function(_0x3aa081,_0x387e13){for(const _0x3cd280 of _0x3aa081['getChildren']())if(_0x3cd280['getAttribute']('footnoteId')===_0x387e13)return _0x3cd280;return null;}(this['_footnotesDefinitions'],_0x222044):null;_0x4d75ca||(_0x4d75ca=_0x510f52['createElement']('footnoteDefinition',{'footnoteId':_0x222044}),this['_footnotesDefinitions']&&(_0x510f52['insert'](_0x4d75ca,this['_footnotesDefinitions'],'end'),_0xb2c320=!0x0));const _0x30c62c={'id':_0x222044,'reference':_0xf471dc,'definition':_0x4d75ca},_0x1219ac=I(this['editor']['model'],this['_footnotes'],_0xf471dc);return this['_footnotes']['splice'](_0x1219ac,0x0,_0x30c62c),this['_updateFootnotesCounters'](_0x510f52,_0x1219ac)&&(_0xb2c320=!0x0),_0xb2c320;}['_handleRemoveFootnoteReferenceById'](_0x2f4895,_0x22de45){const _0x12bacc=this['_footnotes']['findIndex'](_0x1d362c=>_0x1d362c['id']===_0x22de45);if(-0x1===_0x12bacc)return!0x1;let _0x2d4a2e=!0x1;const _0x522d97=this['_footnotes'][_0x12bacc];return'$graveyard'!==_0x522d97['definition']['root']['rootName']&&(_0x2f4895['remove'](_0x522d97['definition']),_0x2d4a2e=!0x0),this['_footnotes']['splice'](_0x12bacc,0x1),this['_updateFootnotesCounters'](_0x2f4895,_0x12bacc)&&(_0x2d4a2e=!0x0),_0x2d4a2e;}['_handleMovedFootnoteReference'](_0x364e24,_0x19b8d0){const _0x33b958=_0x19b8d0['getAttribute']('footnoteId'),_0x3248c8=this['_footnotes']['findIndex'](_0xba884e=>_0xba884e['id']===_0x33b958),_0xe57829=this['_footnotes'][_0x3248c8];let _0x4eefa0=!0x1;_0xe57829['reference']=_0x19b8d0,this['_footnotes']['splice'](_0x3248c8,0x1);const _0x4113f6=I(this['editor']['model'],this['_footnotes'],_0x19b8d0);return this['_footnotes']['splice'](_0x4113f6,0x0,_0xe57829),this['_updateFootnotesCounters'](_0x364e24,Math['min'](_0x3248c8,_0x4113f6))&&(_0x4eefa0=!0x0),_0x4eefa0;}['_updateFootnoteRefCounter'](_0x1f443c,_0x1593cb){if(!this['_footnotesDefinitions'])return!0x1;const _0x964d89=this['_footnotes'][_0x1593cb];let _0x11ad63;return _0x11ad63=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x964d89,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1593cb+0x1}):String(_0x1593cb+0x1),_0x964d89['reference']['getAttribute']('footnoteCounter')!=_0x11ad63&&(_0x1f443c['setAttribute']('footnoteCounter',_0x11ad63,_0x964d89['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x46fdb4){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x343037,_0x3997f7){if(_0x343037['length']!==_0x3997f7['length'])return!0x1;for(let _0x446333=0x0;_0x446333<_0x343037['length'];_0x446333++)if(_0x343037[_0x446333]!==_0x3997f7[_0x446333])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x55fb46=>_0x55fb46['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x56ad12=>_0x56ad12['getAttribute']('footnoteId'))))return!0x1;let _0x238997=!0x1;for(let _0x5507c5=0x0;_0x5507c5<this['_footnotes']['length'];_0x5507c5++){const _0xe517c0=this['_footnotes'][_0x5507c5],_0x48c463=_0x46fdb4['createPositionBefore'](_0xe517c0['definition']),_0x2df215=_0x46fdb4['createPositionAt'](this['_footnotesDefinitions'],_0x5507c5);_0x48c463['isEqual'](_0x2df215)||(_0x46fdb4['move'](_0x46fdb4['createRangeOn'](_0xe517c0['definition']),_0x2df215),_0x238997=!0x0);}return _0x238997;}['_ensureFootnotesReferencesHaveProperOrder'](_0xe9be52){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1056a4}=this['editor'];let _0x4ee147=!0x1;for(let _0x31af11=0x0;_0x31af11<this['_footnotes']['length']-0x1;_0x31af11++){const _0x370ad0=this['_footnotes'][_0x31af11],_0x2ff717=this['_footnotes'][_0x31af11+0x1],_0x274711=_0x1056a4['createPositionBefore'](_0x370ad0['reference']),_0x5846ec=_0x1056a4['createPositionBefore'](_0x2ff717['reference']);'after'===_0x274711['compareWith'](_0x5846ec)&&(this['_handleMovedFootnoteReference'](_0xe9be52,_0x370ad0['reference']),_0x31af11=-0x1,_0x4ee147=!0x0);}return _0x4ee147;}}function _(_0x34fbb0,_0x5eaa09,_0x227666){if(_0x227666['childCount'])return!0x1;const _0x311e9d=_0x5eaa09?'paragraph':'footnoteInlineContent';return _0x34fbb0['insert'](_0x34fbb0['createElement'](_0x311e9d),_0x227666),!0x0;}function I(_0x1e2ede,_0x34167e,_0x372996){if(0x0===_0x34167e['length'])return 0x0;const _0x31ac73=_0x1e2ede['createPositionBefore'](_0x372996);for(let _0x41cefc=0x0;_0x41cefc<_0x34167e['length'];_0x41cefc++){const _0x5914db=_0x34167e[_0x41cefc],_0x3cd6f9=_0x1e2ede['createPositionBefore'](_0x5914db['reference']);if('before'===_0x31ac73['compareWith'](_0x3cd6f9))return _0x41cefc;}const _0x2dece0=_0x372996['root'];let _0x54585d=-0x1;for(let _0x147ce4=_0x34167e['length']-0x1;_0x147ce4>=0x0;_0x147ce4--)if(_0x34167e[_0x147ce4]['reference']['root']===_0x2dece0){_0x54585d=_0x147ce4;break;}if(-0x1!==_0x54585d)return _0x54585d+0x1;const _0x5ee3ce=_0x1e2ede['document']['getRootNames'](),_0x211c31=_0x5ee3ce['indexOf'](_0x2dece0['rootName']),_0xb7adff=_0x5ee3ce[_0x211c31+0x1];if(_0xb7adff){for(let _0x2f1893=0x0;_0x2f1893<_0x34167e['length'];_0x2f1893++)if(_0x34167e[_0x2f1893]['reference']['root']['rootName']===_0xb7adff)return _0x2f1893;}return _0x34167e['length'];}class w extends _0x1849a9{['refresh'](){const _0x10d0ae=this['editor']['model']['document']['selection'],_0x353eb8=this['_getPositionToInsertFootnote'](_0x10d0ae);this['isEnabled']=!!_0x353eb8;}['execute'](_0x46d892){const {editor:_0xe47a4}=this,{model:_0x39486f}=_0xe47a4,{selection:_0x56d3ce}=_0x39486f['document'],_0x36157f=this['_getPositionToInsertFootnote'](_0x56d3ce);if(!_0x36157f)return;const _0xe903c5=_0xe47a4['plugins']['get']('FootnotesEditing'),_0x15af50=_0x46d892?.['footnoteId']??_0x124e5b();!function(_0x4f4215){return'string'==typeof _0x4f4215&&_0x4f4215['length']>0x0&&!/\s/['test'](_0x4f4215)&&!/^\d/['test'](_0x4f4215);}(_0x15af50)?_0xa045ad('insert-footnote-command-executed-with-invalid-id'):(_0x39486f['change'](_0x829327=>{const _0x18b5fc=_0x829327['createElement']('footnoteRef',{'footnoteId':_0x15af50});_0x39486f['insertObject'](_0x18b5fc,_0x36157f,null);}),_0xe903c5['_moveSelectionToFootnoteDefinition'](_0x15af50));}['_getPositionToInsertFootnote'](_0x8450ca){const {model:_0x394624}=this['editor'],{schema:_0x35fc95}=_0x394624,_0x4028ac=_0x8450ca['getFirstRange']();for(const _0x36d657 of _0x4028ac['getItems']())if(_0x35fc95['isBlock'](_0x36d657)||_0x35fc95['isObject'](_0x36d657))return null;const _0x2c89ec=_0x4028ac['end'];return _0x35fc95['checkChild'](_0x2c89ec,'footnoteRef')?_0x2c89ec:null;}}class r extends _0x7f6a27{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5a328f}=this;_0x5a328f['config']['define']('footnotes.multiBlock',!0x0),_0x5a328f['commands']['add']('insertFootnote',new w(_0x5a328f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4512cf){const _0x1762e5=_0xe188b7([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]),_0xefc616=0x47a28506,_0x3eb671=0x47a5f266^_0xefc616,_0x5407a9=window[_0xe188b7([0x44,0x61,0x74,0x65])][_0xe188b7([0x6e,0x6f,0x77])](),_0x1d8612=_0x4512cf[_0xe188b7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4676e3=new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b83b7=>{_0x1d8612[_0xe188b7([0x6f,0x6e,0x63,0x65])](_0xe188b7([0x72,0x65,0x61,0x64,0x79]),_0x1b83b7);}),_0x1a7c12={[_0xe188b7([0x6b,0x74,0x79])]:_0xe188b7([0x45,0x43]),[_0xe188b7([0x75,0x73,0x65])]:_0xe188b7([0x73,0x69,0x67]),[_0xe188b7([0x63,0x72,0x76])]:_0xe188b7([0x50,0x2d,0x32,0x35,0x36]),[_0xe188b7([0x78])]:_0xe188b7([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]),[_0xe188b7([0x79])]:_0xe188b7([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]),[_0xe188b7([0x61,0x6c,0x67])]:_0xe188b7([0x45,0x53,0x32,0x35,0x36])},_0x36fd7d=_0x1d8612[_0xe188b7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe188b7([0x67,0x65,0x74])](_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4633a2(){let _0x32f4ee,_0x16dc69=null,_0x5b3c2b=null;try{if(_0x36fd7d==_0xe188b7([0x47,0x50,0x4c]))return _0xe188b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32f4ee=_0x1b16c1(),!_0x32f4ee)return _0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32f4ee[_0xe188b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b3c2b=_0x1994b4(_0x32f4ee[_0xe188b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32f4ee[_0xe188b7([0x6a,0x74,0x69])])),await _0x4515e0()?_0x3c43d()?_0x117f1f()?_0xe188b7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a1b43()?(_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe188b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16dc69=_0x1475ac(_0xe188b7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe188b7([0x74,0x72,0x69,0x61,0x6c])&&(_0x16dc69=_0x1475ac(_0xe188b7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2838e7()):_0xe188b7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe188b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x117f1f(){const _0x49405c=[_0xe188b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe188b7([0x74,0x72,0x69,0x61,0x6c])][_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5407a9/0x3e8:0xe10*_0x3eb671;return _0x32f4ee[_0xe188b7([0x65,0x78,0x70])]<_0x49405c;}function _0x3c43d(){const _0x43fd1b=_0x32f4ee[_0xe188b7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x43fd1b&&(!!_0x43fd1b[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x2a]))||!!_0x43fd1b[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x46,0x4f,0x4f])));}function _0x3a1b43(){const _0x4463b0=_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4463b0||0x0==_0x4463b0[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf588a7}=new URL(window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4463b0[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf588a7))return!0x0;const _0x400235=_0xf588a7[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e]));return _0x4463b0[_0xe188b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x470356=>_0x470356[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x2a])))[_0xe188b7([0x6d,0x61,0x70])](_0x4be1de=>_0x4be1de[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e])))[_0xe188b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x182c8e=>_0x182c8e[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x400235[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe188b7([0x6d,0x61,0x70])](_0x2a4a97=>Array(_0x400235[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a4a97[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe188b7([0x66,0x69,0x6c,0x6c])](_0x2a4a97[0x0]===_0xe188b7([0x2a])?_0xe188b7([0x2a]):'')[_0xe188b7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a4a97))[_0xe188b7([0x73,0x6f,0x6d,0x65])](_0x5208e3=>_0x400235[_0xe188b7([0x65,0x76,0x65,0x72,0x79])]((_0x151654,_0x431f03)=>_0x5208e3[_0x431f03]===_0x151654||_0x5208e3[_0x431f03]===_0xe188b7([0x2a])));}function _0x2838e7(){return _0x16dc69&&_0x5b3c2b?new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x137a96,_0x2062a8)=>{_0x16dc69[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x137a96,_0x2062a8),_0x5b3c2b[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x5eaa70=>{_0x5eaa70!=_0xe188b7([0x56,0x61,0x6c,0x69,0x64])&&_0x137a96(_0x5eaa70);},_0x2062a8);}):_0x16dc69||_0x5b3c2b||_0xe188b7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1994b4(_0x4d8b72,_0x83407f){return new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55d92d=>{if(_0x47785c())return _0x55d92d(_0xe188b7([0x56,0x61,0x6c,0x69,0x64]));_0x5d6f2d(),_0x1d8612[_0xe188b7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xea9ab8=!0x1;const _0x5385d2=_0x124e5b();function _0x2a06c2(_0xe755b7){return!!_0xe755b7&&(typeof _0xe755b7===_0xe188b7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe755b7===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe755b7[_0xe188b7([0x74,0x68,0x65,0x6e])]===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe755b7[_0xe188b7([0x63,0x61,0x74,0x63,0x68])]===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x255d83(_0x54916d){_0x41fa68(_0x54916d)[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x343516=>{if(!_0x343516||_0x343516[_0xe188b7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe188b7([0x6f,0x6b]))return _0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x522700(_0x2313a9(_0x5385d2+_0x83407f))!=_0x343516[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe188b7([0x56,0x61,0x6c,0x69,0x64]);})[_0xe188b7([0x74,0x68,0x65,0x6e])](_0xca3e9f=>(_0x542bd8(),_0xca3e9f),()=>{const _0x4a2700=_0x11eac3();return null==_0x4a2700?(_0x542bd8(),_0xe188b7([0x56,0x61,0x6c,0x69,0x64])):_0xe188b7(_0x5407a9-_0x4a2700>(0x63ae0106^_0xefc616)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x55d92d)[_0xe188b7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24a98a=0x47946b86^_0xefc616;function _0x542bd8(){const _0x41e8c1=_0xe188b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x522700(_0x2313a9(_0x4d8b72)),_0x19e850=_0x2babea(_0x522700(window[_0xe188b7([0x4d,0x61,0x74,0x68])][_0xe188b7([0x63,0x65,0x69,0x6c])](_0x5407a9/_0x24a98a)));window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe188b7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41e8c1,_0x19e850);}function _0x11eac3(){const _0x28aeea=_0xe188b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x522700(_0x2313a9(_0x4d8b72)),_0x51aa44=window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe188b7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28aeea);return _0x51aa44?window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2babea(_0x51aa44),0x10)*_0x24a98a:null;}function _0x41fa68(_0x1cb25e){return new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38741d,_0x2fd407)=>{_0x1cb25e[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x38741d,_0x2fd407),window[_0xe188b7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fd407,0x47a351c6^_0xefc616);});}}_0x1d8612[_0xe188b7([0x6f,0x6e])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53a7c5,_0x245462)=>{if(_0x245462[0x0]!=_0x4d8b72)return _0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x245462[0x1]={..._0x245462[0x1],[_0xe188b7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5385d2};},{[_0xe188b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe188b7([0x68,0x69,0x67,0x68])}),_0x1d8612[_0xe188b7([0x6f,0x6e])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x409d9a=>{_0x2a06c2(_0x409d9a[_0xe188b7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xea9ab8=!0x0,_0x255d83(_0x409d9a[_0xe188b7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe188b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe188b7([0x6c,0x6f,0x77])}),_0x4676e3[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>{_0xea9ab8||_0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47785c(){return _0x1d8612[_0xe188b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe188b7([0x76,0x69,0x65,0x77])][_0xe188b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe188b7([0x61,0x75,0x74,0x6f]);}function _0x5d6f2d(){_0x1d8612[_0xe188b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe188b7([0x76,0x69,0x65,0x77])][_0xe188b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe188b7([0x61,0x75,0x74,0x6f]);}}function _0x1475ac(_0x504e12){const _0x22e5ad=[new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325955=>setTimeout(_0x325955,0x47abbbca^_0xefc616)),_0x4676e3[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb670=>{let _0x3fda7a=0x0;_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x6f,0x6e])](_0xe188b7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x274227,_0x2bd07e)=>{_0x2bd07e[0x0][_0xe188b7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fda7a++,_0x3fda7a==(0x47a284fe^_0xefc616)&&(_0x5eb670(),_0x274227[_0xe188b7([0x6f,0x66,0x66])]());});}))];return window[_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe188b7([0x72,0x61,0x63,0x65])](_0x22e5ad)[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>_0x504e12);}async function _0x17ac5e(){await _0x4676e3,_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x559c6b,_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x559c6b,_0x1d8612[_0xe188b7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x429dd3(_0x6f4039){const _0x4e9364=_0x4d80bb();_0x1d8612[_0x4e9364]=_0xe188b7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f4039,_0x6f4039!=_0xe188b7([0x56,0x61,0x6c,0x69,0x64])&&_0x17ac5e();}function _0x4d80bb(){const _0x445557=window[_0xe188b7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe188b7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe188b7([0x6e,0x6f,0x77])]())[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe188b7([0x2e]),'');let _0x2694b7=_0xe188b7([0x75]);for(let _0x5778b7=0x0;_0x5778b7<_0x445557[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5778b7+=0x2){let _0x45fd95=window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x445557[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5778b7,_0x5778b7+0x2));_0x45fd95>=_0x1762e5[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45fd95-=_0x1762e5[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2694b7+=_0x1762e5[_0x45fd95];}return _0x2694b7;}function _0x1b16c1(){const _0x5449ae=_0x36fd7d[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e]));if(0x3!=_0x5449ae[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28aef8(_0x5449ae[0x1]);function _0x28aef8(_0x9def7c){const _0x5ef6b8=_0x204473(_0x9def7c);return _0x5ef6b8&&_0x16a2f2()?_0x5ef6b8:null;function _0x16a2f2(){const _0x326ea6=_0x5ef6b8[_0xe188b7([0x6a,0x74,0x69])],_0x48b5bc=window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326ea6[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x326ea6[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52d088={..._0x5ef6b8,[_0xe188b7([0x6a,0x74,0x69])]:_0x326ea6[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x326ea6[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52d088[_0xe188b7([0x76,0x63])],_0x2313a9(_0x52d088)==_0x48b5bc;}}}async function _0x4515e0(){let _0x31b1d7=!0x0;try{const _0x4a836d=_0x36fd7d[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e])),[_0x5d6c75,_0x221545,_0x3c5d4d]=_0x4a836d;return _0x245787(_0x5d6c75),await _0x22a9f0(_0x5d6c75,_0x221545,_0x3c5d4d),_0x31b1d7;}catch{return!0x1;}function _0x245787(_0x587839){const _0x316d95=_0x204473(_0x587839);_0x316d95&&_0x316d95[_0xe188b7([0x61,0x6c,0x67])]==_0xe188b7([0x45,0x53,0x32,0x35,0x36])||(_0x31b1d7=!0x1);}async function _0x22a9f0(_0x5c6355,_0x562096,_0x16ef9d){const _0x322286=window[_0xe188b7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe188b7([0x66,0x72,0x6f,0x6d])](_0x5a6dcd(_0x16ef9d),_0x38d4ef=>_0x38d4ef[_0xe188b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x456ff3=new window[(_0xe188b7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe188b7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c6355+_0xe188b7([0x2e])+_0x562096),_0x5be8d5=window[_0xe188b7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe188b7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5be8d5)return;const _0x4087ce=await _0x5be8d5[_0xe188b7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe188b7([0x6a,0x77,0x6b]),_0x1a7c12,{[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x45,0x43,0x44,0x53,0x41]),[_0xe188b7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe188b7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5be8d5[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x45,0x43,0x44,0x53,0x41]),[_0xe188b7([0x68,0x61,0x73,0x68])]:{[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4087ce,_0x322286,_0x456ff3)||(_0x31b1d7=!0x1);}}function _0x204473(_0x401b18){return _0x401b18[_0xe188b7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe188b7([0x65,0x79]))?JSON[_0xe188b7([0x70,0x61,0x72,0x73,0x65])](_0x5a6dcd(_0x401b18)):null;}function _0x5a6dcd(_0x521a30){return window[_0xe188b7([0x61,0x74,0x6f,0x62])](_0x521a30[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe188b7([0x2b]))[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe188b7([0x2f])));}function _0x2313a9(_0x1ef57e){let _0x2c8ca4=0x1505;function _0x51e785(_0x5a2590){for(let _0x5bbe00=0x0;_0x5bbe00<_0x5a2590[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bbe00++){const _0x3f2d5f=_0x5a2590[_0xe188b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bbe00);_0x2c8ca4=(_0x2c8ca4<<0x5)+_0x2c8ca4+_0x3f2d5f,_0x2c8ca4&=_0x2c8ca4;}}function _0x4f724d(_0x139013){Array[_0xe188b7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x139013)?_0x139013[_0xe188b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f724d):_0x139013&&typeof _0x139013==_0xe188b7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe188b7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x139013)[_0xe188b7([0x73,0x6f,0x72,0x74])]()[_0xe188b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bf5ed,_0x4f4be0])=>{_0x51e785(_0x2bf5ed),_0x4f724d(_0x4f4be0);}):_0x51e785(window[_0xe188b7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x139013));}return _0x4f724d(_0x1ef57e),_0x2c8ca4>>>0x0;}function _0x522700(_0x1c86f7){return _0x1c86f7[_0xe188b7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe188b7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe188b7([0x30]));}function _0x2babea(_0x10483f){return _0x10483f[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe188b7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe188b7([0x6a,0x6f,0x69,0x6e])]('');}function _0x559c6b(){}function _0xe188b7(_0x3cd0a4){return _0x3cd0a4['map'](_0x20d6d=>String['fromCharCode'](_0x20d6d))['join']('');}_0x429dd3(await _0x4633a2());}(this);}['_moveSelectionToFootnoteDefinition'](_0xdebda){const {plugins:_0x3b2d64,editing:_0x32770b,model:_0x3c3e86}=this['editor'],_0x882f2e=_0x3b2d64['get'](c)['getFootnote'](_0xdebda);return!!_0x882f2e&&(_0x3c3e86['change'](_0x10ee9e=>{_0x10ee9e['setSelection'](_0x10ee9e['createPositionAt'](_0x882f2e['definition'],'end'));}),_0x32770b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xdf3bfe){const {plugins:_0x39f1f0,editing:_0x3850dd,model:_0x355723}=this['editor'],_0x5b67b4=_0x39f1f0['get'](c)['getFootnote'](_0xdf3bfe);return!!_0x5b67b4&&(_0x355723['change'](_0x4d6427=>{_0x4d6427['setSelection'](_0x5b67b4['reference'],'on');}),_0x3850dd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x307bbb}=this['editor']['model'],_0x532697=this['editor']['config']['get']('footnotes.multiBlock');_0x307bbb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x307bbb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x307bbb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x532697?_0x307bbb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x307bbb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x307bbb['addChildCheck'](_0x599fef=>{for(const _0x218596 of _0x599fef)if('footnoteDefinition'===_0x218596['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x401bab}=this,{conversion:_0x470c8b,editing:_0x51b66c}=_0x401bab,{t:t}=_0x401bab['locale'];_0x470c8b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4d73d7,{writer:_0xade402,consumable:_0x11235f})=>{const _0x30d71a=_0x4d73d7['getChild'](0x0);if(!_0x30d71a||!_0x30d71a['is']('element','a'))return null;const _0xe45f41=_0x30d71a['getAttribute']('href')||'';if(!_0xe45f41['startsWith']('#'))return null;const _0x659f90=_0xe45f41['replace'](/^#/,'');if(!_0x659f90)return null;_0x11235f['consume'](_0x30d71a,{'name':!0x0,'attributes':['href']});for(const {item:_0x28935a}of _0x51b66c['view']['createRangeIn'](_0x30d71a))_0x28935a['is']('$textProxy')?_0x11235f['consume'](_0x28935a['textNode'],{'name':!0x0}):_0x28935a['is']('element')&&_0x11235f['consume'](_0x28935a,{'name':!0x0});return _0xade402['createElement']('footnoteRef',{'footnoteId':_0x659f90});}}),_0x470c8b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3f4322,{writer:_0x13ce93})=>D(_0x3f4322,_0x13ce93)}),_0x470c8b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e68e6,{writer:_0x38eb2b})=>{const _0x516351=_0x3e68e6['getAttribute']('footnoteCounter');return _0x41f154(D(_0x3e68e6,_0x38eb2b),_0x38eb2b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x516351)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c1390}=this,{t:t}=_0x4c1390['locale'],{conversion:_0xbf481}=_0x4c1390;_0xbf481['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xbf481['for']('upcast')['add'](_0x42b2a3=>{_0x42b2a3['on']('element:ol',(_0x4d81da,_0x32f177,_0x25bcc6)=>{const _0x3f17d4=_0x32f177['viewItem'];if(!_0x3f17d4['hasClass']('footnotes-list')||!_0x32f177['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x25bcc6['consumable']['consume'](_0x3f17d4,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x56a455,modelCursor:_0x495d5a}=_0x25bcc6['convertChildren'](_0x32f177['viewItem'],_0x32f177['modelCursor']);_0x32f177['modelRange']=_0x56a455,_0x32f177['modelCursor']=_0x495d5a;}),_0x42b2a3['on']('element:hr',(_0xc6a319,_0x40234c,_0x40e398)=>{const _0x2a6e80=_0x40234c['viewItem'];_0x2a6e80['hasClass']('footnotes-divider')&&_0x40234c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x40e398['consumable']['consume'](_0x2a6e80,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xbf481['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4940fc,{writer:_0x2eac9f})=>g(_0x2eac9f)}),_0xbf481['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x222093,{writer:_0x361cc6})=>{const _0x15055a=g(_0x361cc6,{'data-footnotes-list-label':t('Footnotes')}),_0x100cc4=_0x41f154(_0x15055a,_0x361cc6,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x361cc6['setCustomProperty']('footnotesDefinitions',!0x0,_0x100cc4),_0x100cc4;}});}['_defineDefinitionConverters'](){const {editor:_0x5a60f1}=this,{conversion:_0xc1038c,locale:_0x499db8}=_0x5a60f1,_0x79db12=_0x5a60f1['config']['get']('footnotes.multiBlock');_0xc1038c['for']('upcast')['add'](_0x2c6a4a=>{_0x2c6a4a['on']('element:li',(_0x28146a,_0x5991ea,_0x5b6b88)=>{const _0x21c38c=_0x5991ea['viewItem'];if(!_0x21c38c['hasClass']('footnote-definition')||!_0x21c38c['getAttribute']('id'))return;const _0x4fde5f=_0x21c38c['parent'];if(!_0x4fde5f['is']('element','ol')||!_0x4fde5f['hasClass']('footnotes-list'))return;if(!_0x5b6b88['consumable']['test'](_0x21c38c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x453964=_0x5b6b88['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x21c38c['getAttribute']('id')});if(!_0x5b6b88['safeInsert'](_0x453964,_0x5991ea['modelCursor']))return;_0x5b6b88['consumable']['consume'](_0x21c38c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x41ca29=Array['from'](_0x21c38c['getChildren']())['find'](_0x197916=>_0x197916['is']('element')&&_0x197916['hasClass']('footnote-content'));for(const _0x14037f of _0x21c38c['getChildren']())_0x14037f['is']('element')&&(_0x5b6b88['consumable']['consume'](_0x14037f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5b6b88['consumable']['consume'](_0x14037f,{'name':!0x0,'classes':'footnote-content'}));if(_0x41ca29){if(_0x79db12)_0x5b6b88['convertChildren'](_0x41ca29,_0x453964);else{const _0x4ffbd7=_0x5b6b88['writer']['createElement']('footnoteInlineContent');_0x5b6b88['writer']['insert'](_0x4ffbd7,_0x453964),_0x5b6b88['convertChildren'](_0x41ca29,_0x4ffbd7);}}_0x5b6b88['updateConversionResult'](_0x453964,_0x5991ea);});}),_0xc1038c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3ef7fc,{writer:_0x310638})=>v(_0x3ef7fc,_0x310638,_0x499db8,{'dataPipeline':!0x0})}),_0xc1038c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x32da8f,{writer:_0x1459e8})=>v(_0x32da8f,_0x1459e8,_0x499db8)});}['_defineBogusParagraphConverters'](){const {editor:_0x4bc253}=this,{conversion:_0x13adc3}=_0x4bc253;_0x4bc253['config']['get']('footnotes.multiBlock')?(_0x13adc3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x13adc3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4bc253['model']['document'],'change:data',()=>{!function(_0x890b73,_0x4482d0){const _0x1247d8=_0x890b73['document']['differ'],_0x26ad68=new Set();for(const _0x44fe4a of _0x1247d8['getChanges']()){const _0x14ddec='attribute'==_0x44fe4a['type']?_0x44fe4a['range']['start']['parent']:_0x44fe4a['position']['parent'];_0x14ddec['is']('element','footnoteDefinition')&&_0x26ad68['add'](_0x14ddec);}for(const _0x1e9a5b of _0x26ad68['values']()){const _0x3f6b08=Array['from'](_0x1e9a5b['getChildren']())['filter'](_0x5b13eb=>p(_0x5b13eb,_0x4482d0['mapper']));for(const _0x11ab19 of _0x3f6b08)_0x4482d0['reconvertItem'](_0x11ab19);}}(_0x4bc253['model'],_0x4bc253['editing']);})):(_0x13adc3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x13adc3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1638b1,{writer:_0x4bb18f})=>{const _0x3c8eee=_0x4bb18f['createContainerElement']('span');return _0x4bb18f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c8eee),_0x3c8eee;}}));}['_defineKeyboardHandlers'](){const {editor:_0x416996}=this,{editing:_0x54771e,t:t}=_0x416996,_0xe8fb93=_0x416996['model']['document']['selection'];_0x416996['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x416996['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x54771e['view']['document'],'enter',(_0x5d8632,_0x975797)=>{const _0x1f5163=function(_0xb3474a){const _0x1dcb3d=_0xb3474a['getSelectedElement']();if(_0x1dcb3d?.['is']('element','footnoteRef'))return _0x1dcb3d;return null;}(_0xe8fb93);if(_0x1f5163){const _0x670ec2=_0x1f5163['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x670ec2),_0x975797['preventDefault'](),_0x5d8632['stop']();}},{'context':_0x40e19a});}['_defineClickHandlers'](){const {editor:_0x244439}=this,{editing:_0x12a0d2}=_0x244439;_0x244439['editing']['view']['addObserver'](_0xe15985),_0x244439['editing']['view']['addObserver'](_0x14ca82);let _0x21725d=!0x1;this['listenTo'](_0x12a0d2['view']['document'],'pointerdown',(_0x4af1de,_0x870252)=>{const {target:_0x423cd2}=_0x870252,_0x362997=_0x12a0d2['view']['document']['selection'];_0x21725d=!(!_0x423cd2['is']('element','sup')||!_0x423cd2['hasClass']('footnote'))&&_0x362997['getSelectedElement']()===_0x423cd2;},{'priority':'high'}),this['listenTo'](_0x12a0d2['view']['document'],'click',(_0x338399,_0x57ea17)=>{const {target:_0x219ac5}=_0x57ea17,_0x2f7269=_0x219ac5['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2f7269['slice'](0x1)),_0x338399['stop'](),_0x57ea17['preventDefault']();},{'priority':'high','context':_0x53f6bc=>_0x53f6bc['is']('element','sup')&&_0x53f6bc['hasClass']('footnote')&&_0x21725d}),this['listenTo'](_0x12a0d2['view']['document'],'click',(_0x10b73c,_0x45018c)=>{const {target:_0x1e9214}=_0x45018c;if(!_0x1e9214['is']('element','a'))return;let _0x4e5005=_0x1e9214['getAttribute']('href');if(!_0x4e5005?.['startsWith']('#'))return;_0x4e5005=_0x4e5005['slice'](0x1);let _0x2367ca=!0x1;(_0x4e5005['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4e5005['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4e5005))&&(_0x2367ca=!0x0),_0x2367ca&&(_0x45018c['preventDefault'](),_0x10b73c['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x54a5ad}={}){return(_0x535d0e,{writer:_0x365987})=>{if(!h(_0x535d0e))return null;if(!_0x54a5ad)return _0x365987['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x14d836=_0x365987['createContainerElement']('p');return _0x365987['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x14d836),_0x14d836;};}function h(_0x35cb54){const {parent:_0x3d36a9}=_0x35cb54;if(!_0x3d36a9?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3d36a9['childCount'])return!0x1;for(const _0x51e9f9 of _0x35cb54['getAttributeKeys']())if(!_0x51e9f9['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x51e9f9)return!0x1;return!0x0;}function p(_0x56a0c7,_0x3c8fea){if(!_0x56a0c7['is']('element','paragraph'))return!0x1;const _0x27341e=_0x3c8fea['toViewElement'](_0x56a0c7);return!!_0x27341e&&h(_0x56a0c7)!==_0x27341e['is']('element','span');}function J(_0x53d6d9){return _0x40e19a(_0x53d6d9)&&_0x53d6d9['is']('containerElement')&&!!_0x53d6d9['getCustomProperty']('footnotesDefinitions');}function g(_0x517872,_0x43097c={}){const _0x106cd4=_0x517872['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x10777e=_0x517872['createContainerElement']('ol',{'class':'footnotes-list'},_0x517872['createSlot']());return _0x517872['createContainerElement']('div',{'class':'footnotes',..._0x43097c},[_0x106cd4,_0x10777e]);}function D(_0x36e171,_0x3c09a3){const _0x8160be=_0x36e171['getAttribute']('footnoteId'),_0x302c01=_0x36e171['getAttribute']('footnoteCounter'),_0x4ffb11=_0x3c09a3['createUIElement']('a',{'href':'#'+_0x8160be},function(_0x50b174){const _0x46426c=this['toDomElement'](_0x50b174);return _0x46426c['textContent']=_0x302c01,_0x46426c;}),_0x4fbaa0=_0x3c09a3['createContainerElement']('sup',{'id':'ref-'+_0x8160be,'class':'footnote'},[_0x4ffb11]);return _0x4fbaa0['getFillerOffset']=()=>null,_0x4fbaa0;}function v(_0x4e991c,_0x4816c2,_0x38cf70,{dataPipeline:_0x325ec4}={}){const {t:t}=_0x38cf70,_0xeee69e=_0x4e991c['getAttribute']('footnoteId'),_0x3b581d=_0x4816c2['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xeee69e},function(_0x30b903){const _0x9ad6b5=this['toDomElement'](_0x30b903);return _0x9ad6b5['innerText']='^',_0x9ad6b5;}),_0x35c5b2=_0x325ec4?_0x4816c2['createContainerElement']('div',{'class':'footnote-content'}):_0x4da06a(_0x4816c2['createEditableElement']('div',{'class':'footnote-content'}),_0x4816c2,{'label':t('Footnote\x20content.')});return _0x4816c2['insert'](_0x4816c2['createPositionAt'](_0x35c5b2,0x0),_0x4816c2['createSlot']()),_0x4816c2['createContainerElement']('li',{'class':'footnote-definition','id':_0xeee69e},[_0x3b581d,_0x35c5b2]);}class e extends _0x7f6a27{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2cf428];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x17c7df}=this,{plugins:_0xdddf78,model:_0x55ad97}=_0x17c7df,_0x47aa23=_0xdddf78['get'](_0x2cf428),_0x3031fc=_0xdddf78['get'](c);this['listenTo'](_0x47aa23,'outputTransformation',(_0x36cd1c,_0x3fa2b5)=>{const _0x3fa8ee=function(_0x1c0145,_0x56288b){const _0x5203c8=new Set();for(const {item:_0x56491a}of _0x1c0145['createRangeIn'](_0x56288b))_0x56491a['is']('element','footnoteRef')&&_0x5203c8['add'](_0x56491a['getAttribute']('footnoteId'));return Array['from'](_0x5203c8);}(_0x55ad97,_0x3fa2b5['content']);if(!_0x3fa8ee['length'])return;const _0x1dca46=_0x3031fc['getFootnotes'](),_0x2a4f20=_0x3fa8ee['reduce']((_0x1e0eda,_0x4fb78f)=>{const _0x31fb45=_0x1dca46['find'](_0x14a888=>_0x14a888['id']===_0x4fb78f);if(_0x31fb45){const _0x2ac6ad=_0x17c7df['data']['toView'](_0x31fb45['definition'],{'isClipboardPipeline':!0x0}),_0x5a12ab=_0x17c7df['data']['htmlProcessor']['toData'](_0x2ac6ad);_0x1e0eda[_0x31fb45['id']]=_0x5a12ab;}return _0x1e0eda;},Object['create'](null));_0x3fa2b5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2a4f20));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3f2222}=this,{model:_0x378413,plugins:_0x308cc8}=_0x3f2222,{view:_0x40446e}=_0x3f2222['editing'],_0x2e1b54=_0x308cc8['get'](_0x2cf428),_0x3034e2=_0x308cc8['get'](c);let _0x1b7529=null;this['listenTo'](_0x40446e['document'],'clipboardInput',(_0x3fbb12,_0x569d97)=>{const _0x4b6e7b=_0x569d97['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1b7529=_0x4b6e7b?JSON['parse'](_0x4b6e7b):null;}),this['listenTo'](_0x2e1b54,'contentInsertion',(_0x16360a,_0x1f29f1)=>{if(!_0x1b7529)return;const _0x5f1d7d=_0x1f29f1['sourceEditorId']===this['editor']['id'];_0x5f1d7d&&'drop'===_0x1f29f1['method']||_0x378413['change'](_0xa8cbf=>{!function(_0x45c216,_0x73e267){const _0x79d721=[];for(const {item:_0x567593}of _0x45c216['createRangeIn'](_0x73e267))_0x567593['is']('element','footnotesDefinitions')&&_0x79d721['push'](_0x567593);for(const _0x406087 of _0x79d721)_0x45c216['remove'](_0x406087);}(_0xa8cbf,_0x1f29f1['content']);let _0x451d55=_0x3034e2['getFootnotesDefinitionsObjectElement']();if(!_0x451d55){const _0x364503=_0x378413['document']['selection']['getFirstRange']()['root'];_0x451d55=_0x3034e2['_insertEmptyFootnotesDefinitionsContainer'](_0xa8cbf,_0x364503);}const _0x1615ed=function(_0x39a1aa,_0x5b1828,_0x300ceb){const _0x45994c=Object['create'](null);for(const {item:_0x366263}of _0x39a1aa['createRangeIn'](_0x5b1828))if(_0x366263['is']('element','footnoteRef')){const _0x3f70e2=_0x366263['getAttribute']('footnoteId');if(!_0x300ceb(_0x3f70e2))continue;_0x45994c[_0x3f70e2]||(_0x45994c[_0x3f70e2]=_0x124e5b()),_0x39a1aa['setAttribute']('footnoteId',_0x45994c[_0x3f70e2],_0x366263);}return _0x45994c;}(_0xa8cbf,_0x1f29f1['content'],_0x4ec874=>!_0x5f1d7d||null!==_0x3034e2['getFootnote'](_0x4ec874));for(const [_0x27a81d,_0x437bf7]of Object['entries'](_0x1b7529)){const _0x243572=_0x1615ed[_0x27a81d]||_0x27a81d,_0x54adef=_0xa8cbf['createElement']('footnoteDefinition',{'footnoteId':_0x243572}),_0x4ca4a3=_0x3f2222['data']['htmlProcessor']['toView'](_0x437bf7),_0x9d786=_0x3f2222['data']['toModel'](_0x4ca4a3,_0x54adef);_0xa8cbf['append'](_0x9d786,_0x54adef),_0xa8cbf['insert'](_0x54adef,_0x451d55,'end');}_0x1b7529=null;});});}}class i extends _0x7f6a27{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51cb24}=this,{componentFactory:_0x4ab36f}=_0x51cb24['ui'];_0x4ab36f['add']('insertFootnote',x(_0x51cb24,_0x285e75)),_0x4ab36f['add']('menuBar:insertFootnote',x(_0x51cb24,_0x3de1ec)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13b1d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e20ae;for(const _0xd548c7 in _0x13b1d3){const _0x1a2de9=_0xd548c7,_0x45b9ea=_0x13b1d3[_0x1a2de9];if('footnotesLicenseKeyValid'==_0x45b9ea||'footnotesLicenseKeyInvalid'==_0x45b9ea||'footnotesLicenseKeyExpired'==_0x45b9ea||'footnotesLicenseKeyDomainLimit'==_0x45b9ea||'footnotesLicenseKeyNotAllowed'==_0x45b9ea||'footnotesLicenseKeyEvaluationLimit'==_0x45b9ea||'footnotesLicenseKeyTrialLimit'==_0x45b9ea||'footnotesLicenseKeyUsageLimit'==_0x45b9ea){delete _0x13b1d3[_0x1a2de9],_0x1e20ae=_0x45b9ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x273210,_0x336f94){const _0x5f2f28=_0x273210['commands']['get']('insertFootnote');return _0x4e8cbb=>{const {t:t}=_0x4e8cbb,_0x3734f2=new _0x336f94(_0x4e8cbb),_0x2fade6=_0x3734f2 instanceof _0x3de1ec;return _0x3734f2['bind']('isEnabled')['to'](_0x5f2f28,'isEnabled'),_0x3734f2['set']({'label':t(_0x2fade6?'Footnote':'Insert\x20footnote'),'icon':_0x2a043f,'tooltip':!0x0}),_0x3734f2['on']('execute',()=>{_0x5f2f28['execute'](),_0x273210['editing']['view']['focus']();}),_0x3734f2;};}class nt extends _0x7f6a27{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x1849a9{['refresh'](){const {editor:_0x34052c}=this,_0x4ce5f3=_0x34052c['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4ce5f3,this['value']=_0x4ce5f3?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x58d4f3}){const {editor:_0x4efd7d}=this,_0x1b0e36=_0x4efd7d['plugins']['get'](c),_0x5326cf=_0x1b0e36['getFootnotesDefinitionsObjectElement']();_0x5326cf&&Q['includes'](_0x58d4f3)&&_0x4efd7d['model']['change'](_0x58d17e=>{_0x58d17e['setAttribute']('footnotesListStyle',_0x58d4f3,_0x5326cf),_0x1b0e36['_updateFootnotesCounters'](_0x58d17e);});}}class b extends _0x1849a9{['refresh'](){const {editor:_0x5f408e}=this,_0x13e702=_0x5f408e['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x13e702,this['value']=_0x13e702?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x9644e2}){const {editor:_0x4c68f2}=this,_0x33bb4d=_0x4c68f2['plugins']['get'](c),_0x1709bc=_0x33bb4d['getFootnotesDefinitionsObjectElement']();_0x1709bc&&Number['isInteger'](_0x9644e2)&&_0x4c68f2['model']['change'](_0x1e7387=>{_0x1e7387['setAttribute']('footnotesListStart',_0x9644e2,_0x1709bc),_0x33bb4d['_updateFootnotesCounters'](_0x1e7387);});}}class P extends _0x7f6a27{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c0f75}=this;_0x2c0f75['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2c0f75['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2c0f75['commands']['add']('footnotesStyle',new S(_0x2c0f75)),_0x2c0f75['commands']['add']('footnotesStart',new b(_0x2c0f75)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2561a3}=this,{schema:_0x5c175f}=_0x2561a3['model'];_0x5c175f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x412757}=this,{conversion:_0x7a78e5,model:_0x240179}=_0x412757,{schema:_0x3c1131}=_0x240179;_0x7a78e5['for']('upcast')['add'](_0x5d675c=>{_0x5d675c['on']('element:ol',(_0x363ce2,_0x5598c1,_0x12d1e5)=>{const _0x16eaf4=_0x5598c1['viewItem'],_0x370664=_0x5598c1['modelCursor']?.['parent'];_0x16eaf4['hasClass']('footnotes-list')&&_0x370664?.['is']('element','footnotesDefinitions')&&(function(_0x51be2d,_0x4313c1,_0x5b2811,_0x39681c){if(!_0x39681c['checkAttribute'](_0x4313c1,'footnotesListStart'))return;let _0x21aab2=0x1;const _0x5242d1=_0x5b2811['consumable']['consume'](_0x51be2d,{'attributes':'start'});if(_0x5242d1){const _0x407198=Number['parseInt'](_0x51be2d['getAttribute']('start'),0xa);Number['isNaN'](_0x407198)||(_0x21aab2=_0x407198);}!_0x5242d1&&_0x4313c1['hasAttribute']('footnotesListStart')||_0x5b2811['writer']['setAttribute']('footnotesListStart',_0x21aab2,_0x4313c1);}(_0x16eaf4,_0x370664,_0x12d1e5,_0x3c1131),function(_0x111a80,_0xfe5c99,_0x4e9918,_0x10c3dc){if(!_0x10c3dc['checkAttribute'](_0xfe5c99,'footnotesListStyle'))return;let _0x5e08ab='decimal',_0x4fc76b=!0x1;if(_0x4e9918['consumable']['consume'](_0x111a80,{'attributes':'type'})){const _0x129b5a={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x111a80['getAttribute']('type')];_0x129b5a&&(_0x5e08ab=_0x129b5a),_0x4fc76b=!0x0;}_0x4e9918['consumable']['consume'](_0x111a80,{'styles':'list-style-type'})&&(_0x5e08ab=_0x111a80['getStyle']('list-style-type'),_0x4fc76b=!0x0),!_0x4fc76b&&_0xfe5c99['hasAttribute']('footnotesListStyle')||_0x4e9918['writer']['setAttribute']('footnotesListStyle',_0x5e08ab,_0xfe5c99);}(_0x16eaf4,_0x370664,_0x12d1e5,_0x3c1131));});}),_0x7a78e5['for']('downcast')['add'](_0x1a489f=>{_0x1a489f['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1d3df6,_0x298898,_0x41bbb4)=>{if(!_0x41bbb4['consumable']['consume'](_0x298898['item'],_0x1d3df6['name']))return;const _0x2fa8ff=C(_0x298898['item'],_0x41bbb4['mapper']),{attributeNewValue:_0x59070e}=_0x298898;null==_0x59070e||0x1===_0x59070e?_0x41bbb4['writer']['removeAttribute']('start',_0x2fa8ff):_0x41bbb4['writer']['setAttribute']('start',String(_0x59070e),_0x2fa8ff);}),_0x1a489f['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x29c826,_0x1b0db8,_0x14f5f5)=>{if(!_0x14f5f5['consumable']['consume'](_0x1b0db8['item'],_0x29c826['name']))return;const _0x1fb197=C(_0x1b0db8['item'],_0x14f5f5['mapper']),{attributeNewValue:_0xd1fd5d}=_0x1b0db8;_0xd1fd5d&&'decimal'!==_0xd1fd5d?_0x14f5f5['writer']['setStyle']('list-style-type',_0xd1fd5d,_0x1fb197):_0x14f5f5['writer']['removeStyle']('list-style-type',_0x1fb197);});});}['_definePostfixer'](){const {editor:_0x2f4e33}=this,{model:_0xb570a3}=_0x2f4e33,_0xb4dbd7=_0x2f4e33['plugins']['get'](c),_0x5b1368=this['_getDefaultListStyle'](),_0x579d70=this['_getDefaultStartIndex']();_0xb570a3['document']['registerPostFixer'](_0x4ff28b=>{const _0x1af146=_0xb570a3['document']['differ']['getChanges']();let _0x1742c6=!0x1;for(const _0x4f20f3 of _0x1af146){if('insert'!==_0x4f20f3['type']||'$text'===_0x4f20f3['name'])continue;const _0x32b967=_0xb570a3['createRangeOn'](_0x4f20f3['position']['nodeAfter']);for(const _0x1e9928 of _0x32b967['getItems']())_0x1e9928['is']('element','footnotesDefinitions')&&(!_0x1e9928['hasAttribute']('footnotesListStart')&&_0xb570a3['schema']['checkAttribute'](_0x1e9928,'footnotesListStart')&&(_0x4ff28b['setAttribute']('footnotesListStart',_0x579d70,_0x1e9928),_0x1742c6=!0x0),!_0x1e9928['hasAttribute']('footnotesListStyle')&&_0xb570a3['schema']['checkAttribute'](_0x1e9928,'footnotesListStyle')&&(_0x4ff28b['setAttribute']('footnotesListStyle',_0x5b1368,_0x1e9928),_0x1742c6=!0x0));}return _0x1742c6&&_0xb4dbd7['_updateFootnotesCounters'](_0x4ff28b),_0x1742c6;});}['_defineFormatter'](){const {editor:_0x2e1a07}=this;_0x2e1a07['plugins']['get'](c)['setFootnoteFormatter'](_0x23971d=>this['_formatFootnoteListValue'](_0x23971d));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x11a0c5,value:_0x36221b,digits:_0x2a1230}){const _0x40e481=_0x11a0c5['getAttribute']('footnotesListStyle'),_0x442639=_0x11a0c5['getAttribute']('footnotesListStart'),_0x2a3237=Math['floor'](_0x36221b)+(_0x442639??0x1)-0x1;switch(_0x40e481){case'decimal-leading-zero':return function(_0xeeea4,_0x48a873){return String(_0xeeea4)['padStart'](_0x48a873,'0');}(_0x2a3237,Math['max'](0x2,_0x2a1230));case'lower-alpha':case'lower-latin':return M(_0x2a3237,!0x1);case'upper-alpha':case'upper-latin':return M(_0x2a3237,!0x0);case'lower-roman':return V(_0x2a3237,!0x1);case'upper-roman':return V(_0x2a3237,!0x0);default:return String(_0x2a3237);}}}function C(_0x589422,_0xd1100b){const _0x19ccf5=_0xd1100b['toViewElement'](_0x589422);return Array['from'](_0x19ccf5['getChildren']())['find'](_0x407055=>_0x407055['is']('element','ol')&&_0x407055['hasClass']('footnotes-list'));}function M(_0x47aff0,_0x2435e5){let _0x29cc9e='',_0x284670=_0x47aff0;for(;_0x284670>0x0;){const _0x14c8fd=(_0x284670-0x1)%0x1a;_0x29cc9e=String['fromCharCode'](0x61+_0x14c8fd)+_0x29cc9e,_0x284670=Math['floor']((_0x284670-0x1)/0x1a);}return _0x2435e5?_0x29cc9e['toUpperCase']():_0x29cc9e;}const N=[{'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 V(_0x838b19,_0x969cef){let _0x3cb70f='',_0x33b00a=_0x838b19;for(const {value:_0x1acb94,numeral:_0x1c6394}of N)for(;_0x33b00a>=_0x1acb94;)_0x3cb70f+=_0x1c6394,_0x33b00a-=_0x1acb94;return _0x969cef?_0x3cb70f:_0x3cb70f['toLowerCase']();}class H extends _0x1c8606{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x573d1f();['focusCycler'];constructor(_0x321127,{styleButtonViews:_0x5c2c15,styleGridAriaLabel:_0x26d030}){super(_0x321127),(this['focusCycler']=new _0x59a5b9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5c2c15,_0x26d030),[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 _0x20e66d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x20e66d['element']);_0x48ec16({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x49a498=_0x1e964a=>_0x1e964a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49a498),this['keystrokes']['set']('arrowleft',_0x49a498),this['keystrokes']['set']('arrowup',_0x49a498),this['keystrokes']['set']('arrowdown',_0x49a498);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x160945,_0x1a9bf7){const _0x3dcd2d=new _0x1c8606(this['locale']);return _0x3dcd2d['children']=_0x3dcd2d['createCollection'](),_0x3dcd2d['children']['addMany'](_0x160945),_0x3dcd2d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1a9bf7,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3dcd2d['children']}),_0x3dcd2d['children']['delegate']('execute')['to'](this),_0x3dcd2d['focus']=function(){for(const _0x1756e8 of this['children'])if(_0x1756e8 instanceof _0x285e75&&_0x1756e8['isOn'])return void _0x1756e8['focus']();this['children']['first']['focus']();},_0x3dcd2d['focusTracker']=new et(),_0x3dcd2d['keystrokes']=new ot(),_0x3dcd2d['render'](),_0x3dcd2d['keystrokes']['listenTo'](_0x3dcd2d['element']),this['children']['add'](_0x3dcd2d),_0x3dcd2d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x35fd95=this['_createStartIndexPropertyView'](),_0x309fad=[_0x35fd95],_0x34a2bd=new tt(this['locale'],_0x309fad);return _0x34a2bd['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x34a2bd['buttonView']['bind']('isEnabled')['toMany'](_0x309fad,'isEnabled',(..._0x2661d4)=>_0x2661d4['some'](_0x539f3b=>_0x539f3b)),_0x34a2bd['buttonView']['on']('change:isEnabled',(_0x4d26d0,_0x1b6278,_0x41edb2)=>{_0x41edb2||(_0x34a2bd['isCollapsed']=!0x0);}),this['children']['add'](_0x34a2bd),[_0x35fd95,_0x34a2bd];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e321d=new st(this['locale'],it);return _0x2e321d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e321d['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e321d['fieldView']['on']('input',()=>{const _0x48beca=_0x2e321d['fieldView']['element'],_0x139cc5=_0x48beca['valueAsNumber'];Number['isNaN'](_0x139cc5)?_0x2e321d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x48beca['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x139cc5}):_0x2e321d['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2e321d;}}class j extends _0x7f6a27{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x16c286,_0x850f85];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x334345}=this,{componentFactory:_0x5ce326}=_0x334345['ui'];_0x334345['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5ce326['add']('footnotesStyle',function(_0x41f9e3){return _0x4a6dcd=>{const {t:t}=_0x4a6dcd,_0x3f6d7c=_0x41f9e3['commands']['get']('footnotesStyle'),_0x5b24f0=_0x45bc8e(_0x4a6dcd),{buttonView:_0x274243}=_0x5b24f0;return _0x5b24f0['class']='ck-footnotes-styles-dropdown',_0x5b24f0['bind']('isEnabled')['to'](_0x3f6d7c,'isEnabled'),_0x274243['set']({'label':t('Footnotes\x20style'),'icon':_0x2a043f,'tooltip':!0x0}),_0x5b24f0['once']('change:isOpen',()=>{const _0x4a0eb9=function({editor:_0x2c053b,dropdownView:_0x224016}){const {t:t}=_0x2c053b['locale'],_0x2d4b23=t('Footnotes\x20definitions\x20styles'),_0x118345=function(_0x51c226){const t=_0x51c226['locale']['t'],_0x3479e3=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4a05ec},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x401dfc},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3bdc31},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5491ae},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x57ead2},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x57e61b}];return _0x3479e3['map'](function(_0x4a8339){const _0x491d21=_0x4a8339['locale'];return({label:_0x2455aa,icon:_0x2040a2,tooltip:_0x139fdd,style:_0x48eba6})=>{const _0x132ece=_0x4a8339['commands']['get']('footnotesStyle'),_0x35ae11=new _0x285e75(_0x491d21);return _0x35ae11['set']({'label':_0x2455aa,'icon':_0x2040a2,'tooltip':_0x139fdd}),_0x35ae11['bind']('isOn')['to'](_0x132ece,'value',_0x81d195=>_0x81d195===_0x48eba6),_0x35ae11['bind']('isEnabled')['to'](_0x132ece,'isEnabled'),_0x35ae11['on']('execute',()=>{_0x4a8339['execute']('footnotesStyle',{'value':_0x48eba6}),_0x4a8339['editing']['view']['focus']();}),_0x35ae11;};}(_0x51c226));}(_0x2c053b),_0x224316=new H(_0x2c053b['locale'],{'styleGridAriaLabel':_0x2d4b23,'styleButtonViews':_0x118345});return _0x224316['delegate']('execute')['to'](_0x224016),_0x224316['on']('footnotesListStart',(_0x181ef2,_0x832771)=>{_0x2c053b['execute']('footnotesStart',{'value':_0x832771['startIndex']});}),_0x224316;}({'editor':_0x41f9e3,'dropdownView':_0x5b24f0});_0x5b24f0['panelView']['children']['add'](_0x4a0eb9);}),_0x5b24f0;};}(_0x334345));}['afterInit'](){const {editor:_0x2fde9d}=this,{t:t}=_0x2fde9d['locale'],_0x3f7d16=_0x2fde9d['plugins']['get'](_0x850f85),{defaultPositions:_0x1a6aa2}=_0x5e807c;_0x3f7d16['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2fde9d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x230f8a=>{let _0x3ad18f=_0x230f8a['getFirstPosition']()?.['parent'];return _0x3ad18f?.['is']('$text')&&(_0x3ad18f=_0x3ad18f['parent']),_0x3ad18f?.['is']('element')?_0x3ad18f['findAncestor'](J):null;},'positions':[_0x1a6aa2['southArrowNorth'],_0x1a6aa2['southArrowNorthMiddleWest'],_0x1a6aa2['southArrowNorthMiddleEast'],_0x1a6aa2['southArrowNorthWest'],_0x1a6aa2['southArrowNorthEast'],_0x1a6aa2['northArrowSouth'],_0x1a6aa2['northArrowSouthMiddleWest'],_0x1a6aa2['northArrowSouthMiddleEast'],_0x1a6aa2['northArrowSouthWest'],_0x1a6aa2['northArrowSouthEast'],_0x1a6aa2['viewportStickyNorth']]});}}class lt extends _0x7f6a27{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,lt 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 _0x2443ff,Command as _0x540d33}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4de642,isWidget as _0x3aa809,toWidgetEditable as _0x5a27f8,WidgetToolbarRepository as _0x2bd1c6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1c3601,logWarning as _0x5248a0,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1ae914,ClickObserver as _0xb74278}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x937e54}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x475bee,ButtonView as _0x59e84a,View as _0xe1c5b,ViewCollection as _0x2e346e,FocusCycler as _0x1624a1,addKeyboardHandlingForGrid as _0x1f801a,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x1f198d,BalloonPanelView as _0x2bda11,createDropdown as _0x24e948}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2404ba,IconListStyleDecimal as _0x5021c0,IconListStyleDecimalLeadingZero as _0xe43892,IconListStyleLowerRoman as _0x449f3f,IconListStyleUpperRoman as _0x56b6ca,IconListStyleLowerLatin as _0x1ed5fa,IconListStyleUpperLatin as _0x74cd51}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5d8c4a,_0x274b00){this['_model']=_0x5d8c4a,this['_elementName']=_0x274b00['elementName'],this['_getElementKey']=_0x274b00['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x59476c){const _0x3f59b5=new Set(),_0x54f899=new Map();for(const _0x419a14 of _0x59476c){if('insert'===_0x419a14['type']&&'$text'!==_0x419a14['name']&&_0x419a14['position']['nodeAfter']){const _0x44089e=this['_model']['createRangeOn'](_0x419a14['position']['nodeAfter']);for(const _0x20a366 of _0x44089e['getItems']()){if(!_0x20a366['is']('element',this['_elementName']))continue;const _0x3b4e70=this['_getElementKey'](_0x20a366);_0x54f899['has'](_0x3b4e70)||_0x54f899['set'](_0x3b4e70,[]),_0x54f899['get'](_0x3b4e70)['push'](_0x20a366);}}if('remove'===_0x419a14['type']&&_0x419a14['name']===this['_elementName']){const _0x42ea86=this['_getElementKey']({'getAttribute':_0x2a7971=>_0x419a14['attributes']['get'](_0x2a7971)});_0x3f59b5['add'](_0x42ea86);}}for(const [_0x11c091,_0x4c9865]of this['_trackedElements'])'$graveyard'===_0x4c9865['root']['rootName']&&_0x3f59b5['add'](_0x11c091);for(const _0x53448d of _0x3f59b5)this['_trackedElements']['delete'](_0x53448d);for(const [_0x2208a,_0x27c9e9]of _0x54f899)this['_trackedElements']['set'](_0x2208a,_0x27c9e9[_0x27c9e9['length']-0x1]);const _0x190a8c=new Set();for(const [_0x45ff9c,_0x46eb97]of _0x54f899)_0x3f59b5['has'](_0x45ff9c)&&(_0x190a8c['add'](_0x46eb97[0x0]),_0x46eb97['length']>0x1?_0x54f899['set'](_0x45ff9c,_0x46eb97['slice'](0x1)):_0x54f899['delete'](_0x45ff9c),_0x3f59b5['delete'](_0x45ff9c));return{'removed':Array['from'](_0x3f59b5),'inserted':Array['from'](_0x54f899['values']())['flat'](),'moved':Array['from'](_0x190a8c)};}}class c extends _0x2443ff{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42fd9c){super(_0x42fd9c),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x282539=>_0x282539['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2bc6dc=>_0x2bc6dc['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1db63b}=this,{model:_0x156de3,data:_0x14ff51}=_0x1db63b;_0x156de3['document']['registerPostFixer'](_0x5a0eb1=>{const _0xec35e0=_0x156de3['document']['differ']['getChanges']();let _0x2671e1=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5a0eb1,_0xec35e0)&&(_0x2671e1=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5a0eb1,_0xec35e0)&&(_0x2671e1=!0x0),this['_handleFootnoteReferencesChanges'](_0x5a0eb1,_0xec35e0)&&(_0x2671e1=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5a0eb1)&&(_0x2671e1=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5a0eb1)&&(_0x2671e1=!0x0),this['_sortFootnoteDefinitions'](_0x5a0eb1)&&(_0x2671e1=!0x0),_0x2671e1;}),this['listenTo'](_0x156de3['document'],'change:data',()=>{_0x156de3['enqueueChange']({'isUndoable':!0x1},_0x547986=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x547986);});},{'priority':'low'}),this['listenTo'](_0x14ff51,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3e0fff){return this['_footnotes']['find'](_0x279753=>_0x279753['id']===_0x3e0fff)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x41cefa){this['_footnoteFormatter']=_0x41cefa;}['_updateFootnotesCounters'](_0x5e20cd,_0xada540=0x0){let _0x1ecc5d=!0x1;for(let _0x3676a5=_0xada540;_0x3676a5<this['_footnotes']['length'];_0x3676a5++)this['_updateFootnoteRefCounter'](_0x5e20cd,_0x3676a5)&&(_0x1ecc5d=!0x0);return _0x1ecc5d;}['_insertEmptyFootnotesDefinitionsContainer'](_0x4bf099,_0x2f763d){const _0xa6d712=_0x4bf099['createElement']('footnotesDefinitions',{});return _0x4bf099['append'](_0xa6d712,_0x2f763d),this['_footnotesDefinitions']=_0xa6d712,_0xa6d712;}['_ensureFootnotesDefinitionsContainerExists'](_0x1b77f7){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4418a3=this['_footnotes'][0x0]['reference']['root'],_0x50f3ab=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1b77f7,_0x4418a3);for(const _0x49311e of this['_footnotes'])_0x49311e['definition']['parent']||_0x1b77f7['insert'](_0x49311e['definition'],_0x50f3ab,'end');this['_updateFootnotesCounters'](_0x1b77f7);}['_handleFootnotesDefinitionsObjectChanges'](_0x5239e1,_0x401e08){let _0x243df5=!0x1;const {inserted:_0x28a22b,removed:_0x178828,moved:_0x10f116}=this['_footnoteDefsContainerTracker']['getChanges'](_0x401e08);if(_0x10f116['length']&&(this['_footnotesDefinitions']=_0x10f116[0x0]),_0x28a22b['length']){if(_0x28a22b['length']>0x1||this['_footnotesDefinitions']&&_0x28a22b['some'](_0x407fa2=>_0x407fa2!==this['_footnotesDefinitions'])){const _0x42dc22=_0x5239e1['createElement']('footnotesDefinitions',{}),_0x2ebb02=[];this['_footnotesDefinitions']&&_0x2ebb02['push'](this['_footnotesDefinitions']),_0x2ebb02['push'](..._0x28a22b),_0x5239e1['insert'](_0x42dc22,_0x2ebb02[0x0],'before');for(const _0x56c927 of _0x2ebb02)_0x5239e1['move'](_0x5239e1['createRangeIn'](_0x56c927),_0x5239e1['createPositionAt'](_0x42dc22,'end')),_0x5239e1['remove'](_0x56c927);this['_footnotesDefinitions']=_0x42dc22,this['_updateFootnotesCounters'](_0x5239e1),_0x243df5=!0x0;}else this['_footnotesDefinitions']=_0x28a22b[0x0];}if(_0x178828['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x191d07 of this['_footnotes'])_0x5239e1['remove'](_0x191d07['reference']),_0x243df5=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x243df5;}['_handleFootnoteDefinitionsChanges'](_0x46d972,_0xd68cf9){let _0x136588=!0x1;const _0x195d82=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2e6620,moved:_0x4b3c61}=this['_footnoteDefsTracker']['getChanges'](_0xd68cf9);for(const _0x385ca9 of[..._0x4b3c61,..._0x2e6620]){const _0x4f7f15=_0x385ca9['getAttribute']('footnoteId'),_0x382b16=this['getFootnote'](_0x4f7f15);_0x382b16&&(_0x382b16['definition']=_0x385ca9),_(_0x46d972,_0x195d82,_0x385ca9)&&(_0x136588=!0x0);}return _0x136588;}['_handleFootnoteReferencesChanges'](_0x3051a4,_0x59b30e){let _0x6701cd=!0x1;const {removed:_0x393ef5,inserted:_0x2dd83e,moved:_0x47b4ea}=this['_footnoteRefsTracker']['getChanges'](_0x59b30e);for(const _0x43b797 of _0x393ef5)this['_handleRemoveFootnoteReferenceById'](_0x3051a4,_0x43b797)&&(_0x6701cd=!0x0);for(const _0x577c51 of _0x2dd83e)this['_handleInsertedFootnoteReference'](_0x3051a4,_0x577c51)&&(_0x6701cd=!0x0);for(const _0x521806 of _0x47b4ea)this['_handleMovedFootnoteReference'](_0x3051a4,_0x521806)&&(_0x6701cd=!0x0);return _0x6701cd;}['_handleFootnotesDefinitionsObjectSync'](_0x5b6c8c){if(!this['_footnotesDefinitions'])return!0x1;let _0x53f4d9=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x1875be=[];for(const _0x100ab6 of this['_footnotesDefinitions']['getChildren']()){const _0x188a7b=_0x100ab6['getAttribute']('footnoteId');this['getFootnote'](_0x188a7b)||(_0x1875be['unshift'](_0x100ab6),_0x53f4d9=!0x0);}for(const _0x1329ad of _0x1875be)_0x5b6c8c['remove'](_0x1329ad);}const _0x5da617=new Set(),_0x5b4386=[];for(const _0x32986e of this['_footnotesDefinitions']['getChildren']()){const _0x3bd38a=_0x32986e['getAttribute']('footnoteId');_0x5da617['has'](_0x3bd38a)?(_0x5b4386['unshift'](_0x32986e),_0x53f4d9=!0x0):_0x5da617['add'](_0x3bd38a);}for(const _0x523003 of _0x5b4386)_0x5b6c8c['remove'](_0x523003);return this['_footnotesDefinitions']['childCount']||(_0x5b6c8c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x53f4d9=!0x0),_0x53f4d9;}['_handleInsertedFootnoteReference'](_0x5168df,_0xadca24){if(this['_footnotes']['find'](_0x9c5f3d=>_0x9c5f3d['reference']===_0xadca24))return!0x1;let _0x4d7fae=!0x1;const _0x398b83=_0xadca24['getAttribute']('footnoteId'),_0x5e4f71=this['_footnotes']['findIndex'](_0x334a3f=>_0x334a3f['id']===_0x398b83);-0x1!==_0x5e4f71&&(_0x5168df['remove'](this['_footnotes'][_0x5e4f71]['reference']),this['_footnotes']['splice'](_0x5e4f71,0x1),_0x4d7fae=!0x0);let _0xd8afa9=this['_footnotesDefinitions']?function(_0xf18ecc,_0x10fcc6){for(const _0x4210d0 of _0xf18ecc['getChildren']())if(_0x4210d0['getAttribute']('footnoteId')===_0x10fcc6)return _0x4210d0;return null;}(this['_footnotesDefinitions'],_0x398b83):null;_0xd8afa9||(_0xd8afa9=_0x5168df['createElement']('footnoteDefinition',{'footnoteId':_0x398b83}),this['_footnotesDefinitions']&&(_0x5168df['insert'](_0xd8afa9,this['_footnotesDefinitions'],'end'),_0x4d7fae=!0x0));const _0x44f373={'id':_0x398b83,'reference':_0xadca24,'definition':_0xd8afa9},_0x560e23=I(this['editor']['model'],this['_footnotes'],_0xadca24);this['_footnotes']['splice'](_0x560e23,0x0,_0x44f373);let _0x2ad46d=_0x560e23;return-0x1!==_0x5e4f71&&(_0x2ad46d=Math['min'](_0x560e23,_0x5e4f71)),this['_updateFootnotesCounters'](_0x5168df,_0x2ad46d)&&(_0x4d7fae=!0x0),_0x4d7fae;}['_handleRemoveFootnoteReferenceById'](_0x4967cf,_0x1137d9){const _0x4e2daa=this['_footnotes']['findIndex'](_0x34fe38=>_0x34fe38['id']===_0x1137d9);if(-0x1===_0x4e2daa)return!0x1;let _0xac30b8=!0x1;const _0x1ad2fd=this['_footnotes'][_0x4e2daa];return'$graveyard'!==_0x1ad2fd['definition']['root']['rootName']&&(_0x4967cf['remove'](_0x1ad2fd['definition']),_0xac30b8=!0x0),this['_footnotes']['splice'](_0x4e2daa,0x1),this['_updateFootnotesCounters'](_0x4967cf,_0x4e2daa)&&(_0xac30b8=!0x0),_0xac30b8;}['_handleMovedFootnoteReference'](_0x3ab937,_0x174762){const _0x2206c7=_0x174762['getAttribute']('footnoteId'),_0x150a6d=this['_footnotes']['findIndex'](_0x367ab5=>_0x367ab5['id']===_0x2206c7),_0xa73546=this['_footnotes'][_0x150a6d];let _0x1d896e=!0x1;_0xa73546['reference']=_0x174762,this['_footnotes']['splice'](_0x150a6d,0x1);const _0x591608=I(this['editor']['model'],this['_footnotes'],_0x174762);return this['_footnotes']['splice'](_0x591608,0x0,_0xa73546),this['_updateFootnotesCounters'](_0x3ab937,Math['min'](_0x150a6d,_0x591608))&&(_0x1d896e=!0x0),_0x1d896e;}['_updateFootnoteRefCounter'](_0x40b3ba,_0x1350c9){if(!this['_footnotesDefinitions'])return!0x1;const _0x8c49b2=this['_footnotes'][_0x1350c9];let _0x4abf79;return _0x4abf79=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x8c49b2,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1350c9+0x1}):String(_0x1350c9+0x1),_0x8c49b2['reference']['getAttribute']('footnoteCounter')!=_0x4abf79&&(_0x40b3ba['setAttribute']('footnoteCounter',_0x4abf79,_0x8c49b2['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x59575d){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xd29b3e,_0x4de294){if(_0xd29b3e['length']!==_0x4de294['length'])return!0x1;for(let _0x227534=0x0;_0x227534<_0xd29b3e['length'];_0x227534++)if(_0xd29b3e[_0x227534]!==_0x4de294[_0x227534])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x50a3e7=>_0x50a3e7['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x129f0b=>_0x129f0b['getAttribute']('footnoteId'))))return!0x1;let _0x38c0d3=!0x1;for(let _0x483577=0x0;_0x483577<this['_footnotes']['length'];_0x483577++){const _0x12fcc2=this['_footnotes'][_0x483577],_0x3da0d7=_0x59575d['createPositionBefore'](_0x12fcc2['definition']),_0x10116f=_0x59575d['createPositionAt'](this['_footnotesDefinitions'],_0x483577);_0x3da0d7['isEqual'](_0x10116f)||(_0x59575d['move'](_0x59575d['createRangeOn'](_0x12fcc2['definition']),_0x10116f),_0x38c0d3=!0x0);}return _0x38c0d3;}['_ensureFootnotesReferencesHaveProperOrder'](_0x255906){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4cb492}=this['editor'];let _0x397f71=!0x1;for(let _0x202171=0x0;_0x202171<this['_footnotes']['length']-0x1;_0x202171++){const _0x427ae1=this['_footnotes'][_0x202171],_0x5da03a=this['_footnotes'][_0x202171+0x1],_0x43b17e=_0x4cb492['createPositionBefore'](_0x427ae1['reference']),_0x301945=_0x4cb492['createPositionBefore'](_0x5da03a['reference']);'after'===_0x43b17e['compareWith'](_0x301945)&&(this['_handleMovedFootnoteReference'](_0x255906,_0x427ae1['reference']),_0x202171=-0x1,_0x397f71=!0x0);}return _0x397f71;}}function _(_0x366ecd,_0x5ca593,_0x3d8b58){if(_0x3d8b58['childCount'])return!0x1;const _0x1ed582=_0x5ca593?'paragraph':'footnoteInlineContent';return _0x366ecd['insert'](_0x366ecd['createElement'](_0x1ed582),_0x3d8b58),!0x0;}function I(_0x437f51,_0x2fb60b,_0x3b0cca){if(0x0===_0x2fb60b['length'])return 0x0;const _0x414da9=_0x437f51['createPositionBefore'](_0x3b0cca);for(let _0x3e1451=0x0;_0x3e1451<_0x2fb60b['length'];_0x3e1451++){const _0x4abba9=_0x2fb60b[_0x3e1451],_0x28c991=_0x437f51['createPositionBefore'](_0x4abba9['reference']);if('before'===_0x414da9['compareWith'](_0x28c991))return _0x3e1451;}const _0x13bf78=_0x3b0cca['root'];let _0x1cab94=-0x1;for(let _0x264f6b=_0x2fb60b['length']-0x1;_0x264f6b>=0x0;_0x264f6b--)if(_0x2fb60b[_0x264f6b]['reference']['root']===_0x13bf78){_0x1cab94=_0x264f6b;break;}if(-0x1!==_0x1cab94)return _0x1cab94+0x1;const _0x2100be=_0x437f51['document']['getRootNames'](),_0x37ed2e=_0x2100be['indexOf'](_0x13bf78['rootName']),_0x189f9d=_0x2100be[_0x37ed2e+0x1];if(_0x189f9d){for(let _0x433825=0x0;_0x433825<_0x2fb60b['length'];_0x433825++)if(_0x2fb60b[_0x433825]['reference']['root']['rootName']===_0x189f9d)return _0x433825;}return _0x2fb60b['length'];}class w extends _0x540d33{['refresh'](){const _0x39a966=this['editor']['model']['document']['selection'],_0x6383d=this['_getPositionToInsertFootnote'](_0x39a966);this['isEnabled']=!!_0x6383d;}['execute'](_0x2195e1){const {editor:_0x491c26}=this,{model:_0x540109}=_0x491c26,{selection:_0x226ef0}=_0x540109['document'],_0x44844f=this['_getPositionToInsertFootnote'](_0x226ef0);if(!_0x44844f)return;const _0x2bf918=_0x491c26['plugins']['get']('FootnotesEditing'),_0x39c5b8=_0x2195e1?.['footnoteId']??_0x1c3601();!function(_0x6b34ad){return'string'==typeof _0x6b34ad&&_0x6b34ad['length']>0x0&&!/\s/['test'](_0x6b34ad)&&!/^\d/['test'](_0x6b34ad);}(_0x39c5b8)?_0x5248a0('insert-footnote-command-executed-with-invalid-id'):(_0x540109['change'](_0x53862f=>{const _0xd83937=_0x53862f['createElement']('footnoteRef',{'footnoteId':_0x39c5b8});_0x540109['insertObject'](_0xd83937,_0x44844f,null);}),_0x2bf918['_moveSelectionToFootnoteDefinition'](_0x39c5b8));}['_getPositionToInsertFootnote'](_0x5cd7a){const {model:_0x235904}=this['editor'],{schema:_0x14f6c2}=_0x235904,_0x50c3e1=_0x5cd7a['getFirstRange']();for(const _0x5ba487 of _0x50c3e1['getItems']())if(_0x14f6c2['isBlock'](_0x5ba487)||_0x14f6c2['isObject'](_0x5ba487))return null;const _0x1f896b=_0x50c3e1['end'];return _0x14f6c2['checkChild'](_0x1f896b,'footnoteRef')?_0x1f896b:null;}}class r extends _0x2443ff{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2a0a46}=this;_0x2a0a46['config']['define']('footnotes.multiBlock',!0x0),_0x2a0a46['commands']['add']('insertFootnote',new w(_0x2a0a46)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x165744){const _0x21843f=_0x82eba0([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]),_0xb02538=0x47a28506,_0x5e092c=0x47a5f27e^_0xb02538,_0x5e08e8=window[_0x82eba0([0x44,0x61,0x74,0x65])][_0x82eba0([0x6e,0x6f,0x77])](),_0x51d123=_0x165744[_0x82eba0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e04f9=new window[(_0x82eba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6a55a7=>{_0x51d123[_0x82eba0([0x6f,0x6e,0x63,0x65])](_0x82eba0([0x72,0x65,0x61,0x64,0x79]),_0x6a55a7);}),_0x86d1ba={[_0x82eba0([0x6b,0x74,0x79])]:_0x82eba0([0x45,0x43]),[_0x82eba0([0x75,0x73,0x65])]:_0x82eba0([0x73,0x69,0x67]),[_0x82eba0([0x63,0x72,0x76])]:_0x82eba0([0x50,0x2d,0x32,0x35,0x36]),[_0x82eba0([0x78])]:_0x82eba0([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]),[_0x82eba0([0x79])]:_0x82eba0([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]),[_0x82eba0([0x61,0x6c,0x67])]:_0x82eba0([0x45,0x53,0x32,0x35,0x36])},_0x133982=_0x51d123[_0x82eba0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x82eba0([0x67,0x65,0x74])](_0x82eba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b5ee5(){let _0x35f300,_0x1eda67=null,_0x1f8098=null;try{if(_0x133982==_0x82eba0([0x47,0x50,0x4c]))return _0x82eba0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35f300=_0x675baa(),!_0x35f300)return _0x82eba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35f300[_0x82eba0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f8098=_0x29c6d6(_0x35f300[_0x82eba0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35f300[_0x82eba0([0x6a,0x74,0x69])])),await _0x2a8338()?_0x59c7ea()?_0x1a05cc()?_0x82eba0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1bcbef()?(_0x35f300[_0x82eba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x82eba0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1eda67=_0x390b6a(_0x82eba0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35f300[_0x82eba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x82eba0([0x74,0x72,0x69,0x61,0x6c])&&(_0x1eda67=_0x390b6a(_0x82eba0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b26be()):_0x82eba0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x82eba0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x82eba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x82eba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a05cc(){const _0x5e329b=[_0x82eba0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x82eba0([0x74,0x72,0x69,0x61,0x6c])][_0x82eba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35f300[_0x82eba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e08e8/0x3e8:0xe10*_0x5e092c;return _0x35f300[_0x82eba0([0x65,0x78,0x70])]<_0x5e329b;}function _0x59c7ea(){const _0x131033=_0x35f300[_0x82eba0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x131033&&(!!_0x131033[_0x82eba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x82eba0([0x2a]))||!!_0x131033[_0x82eba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x82eba0([0x46,0x4f,0x4f])));}function _0x1bcbef(){const _0x9a5130=_0x35f300[_0x82eba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9a5130||0x0==_0x9a5130[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x297800}=new URL(window[_0x82eba0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9a5130[_0x82eba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x297800))return!0x0;const _0x38ec4c=_0x297800[_0x82eba0([0x73,0x70,0x6c,0x69,0x74])](_0x82eba0([0x2e]));return _0x9a5130[_0x82eba0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38cdcc=>_0x38cdcc[_0x82eba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x82eba0([0x2a])))[_0x82eba0([0x6d,0x61,0x70])](_0x2d6e82=>_0x2d6e82[_0x82eba0([0x73,0x70,0x6c,0x69,0x74])](_0x82eba0([0x2e])))[_0x82eba0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f1cd0=>_0x3f1cd0[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38ec4c[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x82eba0([0x6d,0x61,0x70])](_0x2b860b=>Array(_0x38ec4c[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b860b[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x82eba0([0x66,0x69,0x6c,0x6c])](_0x2b860b[0x0]===_0x82eba0([0x2a])?_0x82eba0([0x2a]):'')[_0x82eba0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b860b))[_0x82eba0([0x73,0x6f,0x6d,0x65])](_0x268622=>_0x38ec4c[_0x82eba0([0x65,0x76,0x65,0x72,0x79])]((_0x25fb54,_0x119ea2)=>_0x268622[_0x119ea2]===_0x25fb54||_0x268622[_0x119ea2]===_0x82eba0([0x2a])));}function _0x3b26be(){return _0x1eda67&&_0x1f8098?new window[(_0x82eba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38245e,_0x47266f)=>{_0x1eda67[_0x82eba0([0x74,0x68,0x65,0x6e])](_0x38245e,_0x47266f),_0x1f8098[_0x82eba0([0x74,0x68,0x65,0x6e])](_0x46e366=>{_0x46e366!=_0x82eba0([0x56,0x61,0x6c,0x69,0x64])&&_0x38245e(_0x46e366);},_0x47266f);}):_0x1eda67||_0x1f8098||_0x82eba0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29c6d6(_0xb78a66,_0x40929f){return new window[(_0x82eba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9c8bab=>{if(_0x13e7c1())return _0x9c8bab(_0x82eba0([0x56,0x61,0x6c,0x69,0x64]));_0x43c55d(),_0x51d123[_0x82eba0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x82eba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1784b1=!0x1;const _0x29445c=_0x1c3601();function _0x4a2183(_0x2f37e5){return!!_0x2f37e5&&(typeof _0x2f37e5===_0x82eba0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f37e5===_0x82eba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f37e5[_0x82eba0([0x74,0x68,0x65,0x6e])]===_0x82eba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f37e5[_0x82eba0([0x63,0x61,0x74,0x63,0x68])]===_0x82eba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a02a7(_0x544932){_0x4863bf(_0x544932)[_0x82eba0([0x74,0x68,0x65,0x6e])](_0x16610d=>{if(!_0x16610d||_0x16610d[_0x82eba0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x82eba0([0x6f,0x6b]))return _0x82eba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22b037(_0x3af6eb(_0x29445c+_0x40929f))!=_0x16610d[_0x82eba0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x82eba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x82eba0([0x56,0x61,0x6c,0x69,0x64]);})[_0x82eba0([0x74,0x68,0x65,0x6e])](_0x45c2af=>(_0x30577b(),_0x45c2af),()=>{const _0x59158f=_0x4996b3();return null==_0x59158f?(_0x30577b(),_0x82eba0([0x56,0x61,0x6c,0x69,0x64])):_0x82eba0(_0x5e08e8-_0x59158f>(0x63ae0106^_0xb02538)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x82eba0([0x74,0x68,0x65,0x6e])](_0x9c8bab)[_0x82eba0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9c8bab(_0x82eba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x40d193=0x47946b86^_0xb02538;function _0x30577b(){const _0x26cca0=_0x82eba0([0x6c,0x6c,0x63,0x74,0x2d])+_0x22b037(_0x3af6eb(_0xb78a66)),_0x304166=_0x15a9b4(_0x22b037(window[_0x82eba0([0x4d,0x61,0x74,0x68])][_0x82eba0([0x63,0x65,0x69,0x6c])](_0x5e08e8/_0x40d193)));window[_0x82eba0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x82eba0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26cca0,_0x304166);}function _0x4996b3(){const _0x487a5d=_0x82eba0([0x6c,0x6c,0x63,0x74,0x2d])+_0x22b037(_0x3af6eb(_0xb78a66)),_0x26cd5f=window[_0x82eba0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x82eba0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x487a5d);return _0x26cd5f?window[_0x82eba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15a9b4(_0x26cd5f),0x10)*_0x40d193:null;}function _0x4863bf(_0x24c81a){return new window[(_0x82eba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5579fb,_0x42e78a)=>{_0x24c81a[_0x82eba0([0x74,0x68,0x65,0x6e])](_0x5579fb,_0x42e78a),window[_0x82eba0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42e78a,0x47a351c6^_0xb02538);});}}_0x51d123[_0x82eba0([0x6f,0x6e])](_0x82eba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e2ec1,_0x406164)=>{if(_0x406164[0x0]!=_0xb78a66)return _0x9c8bab(_0x82eba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x406164[0x1]={..._0x406164[0x1],[_0x82eba0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29445c};},{[_0x82eba0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x82eba0([0x68,0x69,0x67,0x68])}),_0x51d123[_0x82eba0([0x6f,0x6e])](_0x82eba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20e8f2=>{_0x4a2183(_0x20e8f2[_0x82eba0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1784b1=!0x0,_0x1a02a7(_0x20e8f2[_0x82eba0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x82eba0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x82eba0([0x6c,0x6f,0x77])}),_0x5e04f9[_0x82eba0([0x74,0x68,0x65,0x6e])](()=>{_0x1784b1||_0x9c8bab(_0x82eba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13e7c1(){return _0x51d123[_0x82eba0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x82eba0([0x76,0x69,0x65,0x77])][_0x82eba0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x82eba0([0x61,0x75,0x74,0x6f]);}function _0x43c55d(){_0x51d123[_0x82eba0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x82eba0([0x76,0x69,0x65,0x77])][_0x82eba0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x82eba0([0x61,0x75,0x74,0x6f]);}}function _0x390b6a(_0x57df8b){const _0x17712d=[new window[(_0x82eba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x555d14=>setTimeout(_0x555d14,0x47abbbca^_0xb02538)),_0x5e04f9[_0x82eba0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x82eba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a1a58=>{let _0x39cb62=0x0;_0x51d123[_0x82eba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x82eba0([0x6f,0x6e])](_0x82eba0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e41d2,_0x394e59)=>{_0x394e59[0x0][_0x82eba0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39cb62++,_0x39cb62==(0x47a284fe^_0xb02538)&&(_0x3a1a58(),_0x1e41d2[_0x82eba0([0x6f,0x66,0x66])]());});}))];return window[_0x82eba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x82eba0([0x72,0x61,0x63,0x65])](_0x17712d)[_0x82eba0([0x74,0x68,0x65,0x6e])](()=>_0x57df8b);}async function _0x3a934c(){await _0x5e04f9,_0x51d123[_0x82eba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x82eba0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x441b7c,_0x51d123[_0x82eba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x82eba0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x441b7c,_0x51d123[_0x82eba0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x82eba0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x549f2a(_0x329a88){const _0xc40ec3=_0x9134ee();_0x51d123[_0xc40ec3]=_0x82eba0([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x329a88,_0x329a88!=_0x82eba0([0x56,0x61,0x6c,0x69,0x64])&&_0x3a934c();}function _0x9134ee(){const _0x3bb485=window[_0x82eba0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x82eba0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x82eba0([0x6e,0x6f,0x77])]())[_0x82eba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x82eba0([0x2e]),'');let _0x534fb8=_0x82eba0([0x75]);for(let _0x526a0e=0x0;_0x526a0e<_0x3bb485[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x526a0e+=0x2){let _0x31962c=window[_0x82eba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bb485[_0x82eba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x526a0e,_0x526a0e+0x2));_0x31962c>=_0x21843f[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31962c-=_0x21843f[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x534fb8+=_0x21843f[_0x31962c];}return _0x534fb8;}function _0x675baa(){const _0x531c65=_0x133982[_0x82eba0([0x73,0x70,0x6c,0x69,0x74])](_0x82eba0([0x2e]));if(0x3!=_0x531c65[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x179dbc(_0x531c65[0x1]);function _0x179dbc(_0x1604e2){const _0x2386ee=_0x19c71a(_0x1604e2);return _0x2386ee&&_0x1e7032()?_0x2386ee:null;function _0x1e7032(){const _0x462675=_0x2386ee[_0x82eba0([0x6a,0x74,0x69])],_0x35a31f=window[_0x82eba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x462675[_0x82eba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x462675[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49f328={..._0x2386ee,[_0x82eba0([0x6a,0x74,0x69])]:_0x462675[_0x82eba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x462675[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49f328[_0x82eba0([0x76,0x63])],_0x3af6eb(_0x49f328)==_0x35a31f;}}}async function _0x2a8338(){let _0x1002e6=!0x0;try{const _0x9f015e=_0x133982[_0x82eba0([0x73,0x70,0x6c,0x69,0x74])](_0x82eba0([0x2e])),[_0x32ad5d,_0x441eeb,_0x2d645f]=_0x9f015e;return _0x19a4be(_0x32ad5d),await _0x1c4c87(_0x32ad5d,_0x441eeb,_0x2d645f),_0x1002e6;}catch{return!0x1;}function _0x19a4be(_0x1d1948){const _0x4353c4=_0x19c71a(_0x1d1948);_0x4353c4&&_0x4353c4[_0x82eba0([0x61,0x6c,0x67])]==_0x82eba0([0x45,0x53,0x32,0x35,0x36])||(_0x1002e6=!0x1);}async function _0x1c4c87(_0x484d9d,_0x104901,_0x19f714){const _0x248bbe=window[_0x82eba0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x82eba0([0x66,0x72,0x6f,0x6d])](_0xc62189(_0x19f714),_0x27f728=>_0x27f728[_0x82eba0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46b268=new window[(_0x82eba0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x82eba0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x484d9d+_0x82eba0([0x2e])+_0x104901),_0x55bf91=window[_0x82eba0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x82eba0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55bf91)return;const _0x156b17=await _0x55bf91[_0x82eba0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x82eba0([0x6a,0x77,0x6b]),_0x86d1ba,{[_0x82eba0([0x6e,0x61,0x6d,0x65])]:_0x82eba0([0x45,0x43,0x44,0x53,0x41]),[_0x82eba0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x82eba0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x82eba0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55bf91[_0x82eba0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x82eba0([0x6e,0x61,0x6d,0x65])]:_0x82eba0([0x45,0x43,0x44,0x53,0x41]),[_0x82eba0([0x68,0x61,0x73,0x68])]:{[_0x82eba0([0x6e,0x61,0x6d,0x65])]:_0x82eba0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x156b17,_0x248bbe,_0x46b268)||(_0x1002e6=!0x1);}}function _0x19c71a(_0xb4f3c5){return _0xb4f3c5[_0x82eba0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x82eba0([0x65,0x79]))?JSON[_0x82eba0([0x70,0x61,0x72,0x73,0x65])](_0xc62189(_0xb4f3c5)):null;}function _0xc62189(_0x1ca26d){return window[_0x82eba0([0x61,0x74,0x6f,0x62])](_0x1ca26d[_0x82eba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x82eba0([0x2b]))[_0x82eba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x82eba0([0x2f])));}function _0x3af6eb(_0x3eeb64){let _0x3b420a=0x1505;function _0x828679(_0xf00cea){for(let _0x30f124=0x0;_0x30f124<_0xf00cea[_0x82eba0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30f124++){const _0x3e8a6c=_0xf00cea[_0x82eba0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30f124);_0x3b420a=(_0x3b420a<<0x5)+_0x3b420a+_0x3e8a6c,_0x3b420a&=_0x3b420a;}}function _0x52085f(_0x9cc1cf){Array[_0x82eba0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9cc1cf)?_0x9cc1cf[_0x82eba0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52085f):_0x9cc1cf&&typeof _0x9cc1cf==_0x82eba0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x82eba0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9cc1cf)[_0x82eba0([0x73,0x6f,0x72,0x74])]()[_0x82eba0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x48fee3,_0x63f17a])=>{_0x828679(_0x48fee3),_0x52085f(_0x63f17a);}):_0x828679(window[_0x82eba0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9cc1cf));}return _0x52085f(_0x3eeb64),_0x3b420a>>>0x0;}function _0x22b037(_0x3ca2cb){return _0x3ca2cb[_0x82eba0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x82eba0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x82eba0([0x30]));}function _0x15a9b4(_0xff184d){return _0xff184d[_0x82eba0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x82eba0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x82eba0([0x6a,0x6f,0x69,0x6e])]('');}function _0x441b7c(){}function _0x82eba0(_0x7a748b){return _0x7a748b['map'](_0x45ed9b=>String['fromCharCode'](_0x45ed9b))['join']('');}_0x549f2a(await _0x3b5ee5());}(this);}['_moveSelectionToFootnoteDefinition'](_0xd27220){const {plugins:_0x2ac290,editing:_0xd068f1,model:_0x1f89c2}=this['editor'],_0x464fec=_0x2ac290['get'](c)['getFootnote'](_0xd27220);return!!_0x464fec&&(_0x1f89c2['change'](_0x154f25=>{_0x154f25['setSelection'](_0x154f25['createPositionAt'](_0x464fec['definition'],'end'));}),_0xd068f1['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x332509){const {plugins:_0x308a7b,editing:_0xa811d9,model:_0xe59d83}=this['editor'],_0x159b7d=_0x308a7b['get'](c)['getFootnote'](_0x332509);return!!_0x159b7d&&(_0xe59d83['change'](_0x23d429=>{_0x23d429['setSelection'](_0x159b7d['reference'],'on');}),_0xa811d9['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x32a319}=this['editor']['model'],_0x45356c=this['editor']['config']['get']('footnotes.multiBlock');_0x32a319['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x32a319['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x32a319['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x45356c?_0x32a319['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x32a319['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x32a319['addChildCheck'](_0x5d4f20=>{for(const _0x25539f of _0x5d4f20)if('footnoteDefinition'===_0x25539f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x365398}=this,{conversion:_0x11580a,editing:_0x3ef68d}=_0x365398,{t:t}=_0x365398['locale'];_0x11580a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x49d7b6,{writer:_0x539227,consumable:_0x3a00cb})=>{const _0x14415e=_0x49d7b6['getChild'](0x0);if(!_0x14415e||!_0x14415e['is']('element','a'))return null;const _0x52ed44=_0x14415e['getAttribute']('href')||'';if(!_0x52ed44['startsWith']('#'))return null;const _0x5913ba=_0x52ed44['replace'](/^#/,'');if(!_0x5913ba)return null;_0x3a00cb['consume'](_0x14415e,{'name':!0x0,'attributes':['href']});for(const {item:_0x5b0ebd}of _0x3ef68d['view']['createRangeIn'](_0x14415e))_0x5b0ebd['is']('$textProxy')?_0x3a00cb['consume'](_0x5b0ebd['textNode'],{'name':!0x0}):_0x5b0ebd['is']('element')&&_0x3a00cb['consume'](_0x5b0ebd,{'name':!0x0});return _0x539227['createElement']('footnoteRef',{'footnoteId':_0x5913ba});}}),_0x11580a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x25c660,{writer:_0x52155e})=>D(_0x25c660,_0x52155e)}),_0x11580a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x49185d,{writer:_0x55b39e})=>{const _0x326b88=_0x49185d['getAttribute']('footnoteCounter');return _0x4de642(D(_0x49185d,_0x55b39e),_0x55b39e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x326b88)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2f0314}=this,{t:t}=_0x2f0314['locale'],{conversion:_0x4f9f5c}=_0x2f0314;_0x4f9f5c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4f9f5c['for']('upcast')['add'](_0x28df3d=>{_0x28df3d['on']('element:ol',(_0x2e736b,_0x13a9ce,_0x540fbc)=>{const _0x619df2=_0x13a9ce['viewItem'];if(!_0x619df2['hasClass']('footnotes-list')||!_0x13a9ce['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x540fbc['consumable']['consume'](_0x619df2,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x438bef,modelCursor:_0x4a431f}=_0x540fbc['convertChildren'](_0x13a9ce['viewItem'],_0x13a9ce['modelCursor']);_0x13a9ce['modelRange']=_0x438bef,_0x13a9ce['modelCursor']=_0x4a431f;}),_0x28df3d['on']('element:hr',(_0x34438d,_0x23f86b,_0x5e4ee5)=>{const _0x1a785c=_0x23f86b['viewItem'];_0x1a785c['hasClass']('footnotes-divider')&&_0x23f86b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5e4ee5['consumable']['consume'](_0x1a785c,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4f9f5c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x138ed3,{writer:_0x41cc7e})=>g(_0x41cc7e)}),_0x4f9f5c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x336571,{writer:_0x18bb07})=>{const _0x3b6480=g(_0x18bb07,{'data-footnotes-list-label':t('Footnotes')}),_0x2c24ef=_0x4de642(_0x3b6480,_0x18bb07,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x18bb07['setCustomProperty']('footnotesDefinitions',!0x0,_0x2c24ef),_0x2c24ef;}});}['_defineDefinitionConverters'](){const {editor:_0x2c8d95}=this,{conversion:_0x50594a,locale:_0x1f819e}=_0x2c8d95,_0x47c0d0=_0x2c8d95['config']['get']('footnotes.multiBlock');_0x50594a['for']('upcast')['add'](_0x1edeca=>{_0x1edeca['on']('element:li',(_0x2be045,_0x1771fa,_0x5dd47b)=>{const _0x4974a5=_0x1771fa['viewItem'];if(!_0x4974a5['hasClass']('footnote-definition')||!_0x4974a5['getAttribute']('id'))return;const _0x347904=_0x4974a5['parent'];if(!_0x347904['is']('element','ol')||!_0x347904['hasClass']('footnotes-list'))return;if(!_0x5dd47b['consumable']['test'](_0x4974a5,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x19864a=_0x5dd47b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4974a5['getAttribute']('id')});if(!_0x5dd47b['safeInsert'](_0x19864a,_0x1771fa['modelCursor']))return;_0x5dd47b['consumable']['consume'](_0x4974a5,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x56a18b=Array['from'](_0x4974a5['getChildren']())['find'](_0x4aaf49=>_0x4aaf49['is']('element')&&_0x4aaf49['hasClass']('footnote-content'));for(const _0x2deeaf of _0x4974a5['getChildren']())_0x2deeaf['is']('element')&&(_0x5dd47b['consumable']['consume'](_0x2deeaf,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5dd47b['consumable']['consume'](_0x2deeaf,{'name':!0x0,'classes':'footnote-content'}));if(_0x56a18b){if(_0x47c0d0)_0x5dd47b['convertChildren'](_0x56a18b,_0x19864a);else{const _0x5d3622=_0x5dd47b['writer']['createElement']('footnoteInlineContent');_0x5dd47b['writer']['insert'](_0x5d3622,_0x19864a),_0x5dd47b['convertChildren'](_0x56a18b,_0x5d3622);}}_0x5dd47b['updateConversionResult'](_0x19864a,_0x1771fa);});}),_0x50594a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xfead16,{writer:_0x3a2ab1})=>v(_0xfead16,_0x3a2ab1,_0x1f819e,{'dataPipeline':!0x0})}),_0x50594a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2b43c4,{writer:_0x526690})=>v(_0x2b43c4,_0x526690,_0x1f819e)});}['_defineBogusParagraphConverters'](){const {editor:_0x3e0d5b}=this,{conversion:_0x48fed2}=_0x3e0d5b;_0x3e0d5b['config']['get']('footnotes.multiBlock')?(_0x48fed2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x48fed2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3e0d5b['model']['document'],'change:data',()=>{!function(_0x49df8d,_0x1f5707){const _0x5794d3=_0x49df8d['document']['differ'],_0x536277=new Set();for(const _0x2691df of _0x5794d3['getChanges']()){const _0x285463='attribute'==_0x2691df['type']?_0x2691df['range']['start']['parent']:_0x2691df['position']['parent'];_0x285463['is']('element','footnoteDefinition')&&_0x536277['add'](_0x285463);}for(const _0x392527 of _0x536277['values']()){const _0x1e307a=Array['from'](_0x392527['getChildren']())['filter'](_0x59f065=>p(_0x59f065,_0x1f5707['mapper']));for(const _0xf50509 of _0x1e307a)_0x1f5707['reconvertItem'](_0xf50509);}}(_0x3e0d5b['model'],_0x3e0d5b['editing']);})):(_0x48fed2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x48fed2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4b76c9,{writer:_0x18353d})=>{const _0x542c6f=_0x18353d['createContainerElement']('span');return _0x18353d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x542c6f),_0x542c6f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3d7009}=this,{editing:_0x5168e0,t:t}=_0x3d7009,_0x126603=_0x3d7009['model']['document']['selection'];_0x3d7009['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x3d7009['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x5168e0['view']['document'],'enter',(_0x70a35b,_0x467696)=>{const _0x58f9f3=function(_0x486656){const _0x14627e=_0x486656['getSelectedElement']();if(_0x14627e?.['is']('element','footnoteRef'))return _0x14627e;return null;}(_0x126603);if(_0x58f9f3){const _0x26df2b=_0x58f9f3['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x26df2b),_0x467696['preventDefault'](),_0x70a35b['stop']();}},{'context':_0x3aa809});}['_defineClickHandlers'](){const {editor:_0x294818}=this,{editing:_0x3a868a}=_0x294818;_0x294818['editing']['view']['addObserver'](_0x1ae914),_0x294818['editing']['view']['addObserver'](_0xb74278);let _0x4404c5=!0x1;this['listenTo'](_0x3a868a['view']['document'],'pointerdown',(_0x2677e6,_0x2f2409)=>{const {target:_0x293e96}=_0x2f2409,_0xf2bc42=_0x3a868a['view']['document']['selection'];_0x4404c5=!!(_0x293e96['is']('element','a')&&_0x293e96['parent']?.['is']('element','sup')&&_0x293e96['parent']['hasClass']('footnote'))&&_0xf2bc42['getSelectedElement']()===_0x293e96['parent'];},{'priority':'high'}),this['listenTo'](_0x3a868a['view']['document'],'click',(_0x520577,_0x223e3c)=>{const {target:_0x25a801}=_0x223e3c;if(!_0x25a801['is']('element','a'))return;if(_0x25a801['parent']?.['is']('element','sup')&&_0x25a801['parent']['hasClass']('footnote')&&!_0x4404c5)return void _0x223e3c['preventDefault']();let _0x58d718=_0x25a801['getAttribute']('href');if(!_0x58d718?.['startsWith']('#'))return;_0x58d718=_0x58d718['slice'](0x1);let _0x25578a=!0x1;(_0x58d718['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x58d718['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x58d718))&&(_0x25578a=!0x0),_0x25578a&&(_0x223e3c['preventDefault'](),_0x520577['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x5568e4}={}){return(_0x2c22fb,{writer:_0x302fc2})=>{if(!h(_0x2c22fb))return null;if(!_0x5568e4)return _0x302fc2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4e35b9=_0x302fc2['createContainerElement']('p');return _0x302fc2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4e35b9),_0x4e35b9;};}function h(_0x2af8a2){const {parent:_0x300378}=_0x2af8a2;if(!_0x300378?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x300378['childCount'])return!0x1;for(const _0x15c63b of _0x2af8a2['getAttributeKeys']())if(!_0x15c63b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x15c63b)return!0x1;return!0x0;}function p(_0x305b0c,_0x536870){if(!_0x305b0c['is']('element','paragraph'))return!0x1;const _0x21cee6=_0x536870['toViewElement'](_0x305b0c);return!!_0x21cee6&&h(_0x305b0c)!==_0x21cee6['is']('element','span');}function J(_0x2656b3){return _0x3aa809(_0x2656b3)&&_0x2656b3['is']('containerElement')&&!!_0x2656b3['getCustomProperty']('footnotesDefinitions');}function g(_0x2acd33,_0x30a66a={}){const _0x5060a7=_0x2acd33['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x29e77b=_0x2acd33['createContainerElement']('ol',{'class':'footnotes-list'},_0x2acd33['createSlot']());return _0x2acd33['createContainerElement']('div',{'class':'footnotes',..._0x30a66a},[_0x5060a7,_0x29e77b]);}function D(_0x34dacb,_0x2402ce){const _0x75a7d0=_0x34dacb['getAttribute']('footnoteId'),_0x1f42d8=_0x34dacb['getAttribute']('footnoteCounter'),_0x1d632b=_0x2402ce['createUIElement']('a',{'href':'#'+_0x75a7d0},function(_0x1bbd19){const _0x2a5160=this['toDomElement'](_0x1bbd19);return _0x2a5160['textContent']=_0x1f42d8,_0x2a5160;}),_0x49d539=_0x2402ce['createContainerElement']('sup',{'id':'ref-'+_0x75a7d0,'class':'footnote'},[_0x1d632b]);return _0x49d539['getFillerOffset']=()=>null,_0x49d539;}function v(_0x4c405f,_0x928adf,_0xfd79fe,{dataPipeline:_0xf5a850}={}){const {t:t}=_0xfd79fe,_0x32b7da=_0x4c405f['getAttribute']('footnoteId'),_0x29979a=_0x928adf['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x32b7da},function(_0x23697d){const _0xbcf5ab=this['toDomElement'](_0x23697d);return _0xbcf5ab['innerText']='^',_0xbcf5ab;}),_0xe41f48=_0xf5a850?_0x928adf['createContainerElement']('div',{'class':'footnote-content'}):_0x5a27f8(_0x928adf['createEditableElement']('div',{'class':'footnote-content'}),_0x928adf,{'label':t('Footnote\x20content.')});return _0x928adf['insert'](_0x928adf['createPositionAt'](_0xe41f48,0x0),_0x928adf['createSlot']()),_0x928adf['createContainerElement']('li',{'class':'footnote-definition','id':_0x32b7da},[_0x29979a,_0xe41f48]);}class e extends _0x2443ff{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x937e54];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x52b151}=this,{plugins:_0x3d64c8,model:_0x374a0c}=_0x52b151,_0x5ec9fc=_0x3d64c8['get'](_0x937e54),_0x4c4b2e=_0x3d64c8['get'](c);this['listenTo'](_0x5ec9fc,'outputTransformation',(_0x4052c6,_0x3909dc)=>{const _0x34ec51=function(_0xa6e632,_0x52fda3){const _0x260605=new Set();for(const {item:_0x302967}of _0xa6e632['createRangeIn'](_0x52fda3))_0x302967['is']('element','footnoteRef')&&_0x260605['add'](_0x302967['getAttribute']('footnoteId'));return Array['from'](_0x260605);}(_0x374a0c,_0x3909dc['content']);if(!_0x34ec51['length'])return;const _0x5ee0fe=_0x4c4b2e['getFootnotes'](),_0x4663a6=_0x34ec51['reduce']((_0x14d0a8,_0x523c73)=>{const _0x40b266=_0x5ee0fe['find'](_0x1b6fc1=>_0x1b6fc1['id']===_0x523c73);if(_0x40b266){const _0x50c4a5=_0x52b151['data']['toView'](_0x40b266['definition'],{'isClipboardPipeline':!0x0}),_0x31da99=_0x52b151['data']['htmlProcessor']['toData'](_0x50c4a5);_0x14d0a8[_0x40b266['id']]=_0x31da99;}return _0x14d0a8;},Object['create'](null));_0x3909dc['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4663a6));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x38902c}=this,{model:_0x2197db,plugins:_0x2877d7}=_0x38902c,{view:_0x494414}=_0x38902c['editing'],_0x3d6699=_0x2877d7['get'](_0x937e54),_0x494966=_0x2877d7['get'](c);let _0x2acdbb=null;this['listenTo'](_0x494414['document'],'clipboardInput',(_0x4ea3b2,_0x287145)=>{const _0x189312=_0x287145['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2acdbb=_0x189312?JSON['parse'](_0x189312):null;}),this['listenTo'](_0x3d6699,'contentInsertion',(_0x46b819,_0x188da0)=>{if(!_0x2acdbb)return;const _0x5635bd=_0x188da0['sourceEditorId']===this['editor']['id'];_0x5635bd&&'drop'===_0x188da0['method']||_0x2197db['change'](_0x58c5d1=>{!function(_0x2290c2,_0x4e951f){const _0x2bfcde=[];for(const {item:_0x3ccc9d}of _0x2290c2['createRangeIn'](_0x4e951f))_0x3ccc9d['is']('element','footnotesDefinitions')&&_0x2bfcde['push'](_0x3ccc9d);for(const _0x50b8e3 of _0x2bfcde)_0x2290c2['remove'](_0x50b8e3);}(_0x58c5d1,_0x188da0['content']);let _0x50e37e=_0x494966['getFootnotesDefinitionsObjectElement']();if(!_0x50e37e){const _0x4f7671=_0x2197db['document']['selection']['getFirstRange']()['root'];_0x50e37e=_0x494966['_insertEmptyFootnotesDefinitionsContainer'](_0x58c5d1,_0x4f7671);}const _0x2345de=function(_0x225b3b,_0x255076,_0x1e7f8b){const _0x22648c=Object['create'](null);for(const {item:_0x34e83a}of _0x225b3b['createRangeIn'](_0x255076))if(_0x34e83a['is']('element','footnoteRef')){const _0x469d1e=_0x34e83a['getAttribute']('footnoteId');if(!_0x1e7f8b(_0x469d1e))continue;_0x22648c[_0x469d1e]||(_0x22648c[_0x469d1e]=_0x1c3601()),_0x225b3b['setAttribute']('footnoteId',_0x22648c[_0x469d1e],_0x34e83a);}return _0x22648c;}(_0x58c5d1,_0x188da0['content'],_0x2aaa1f=>!_0x5635bd||null!==_0x494966['getFootnote'](_0x2aaa1f));for(const [_0x5c2d03,_0x7d36b6]of Object['entries'](_0x2acdbb)){const _0xe2af7b=_0x2345de[_0x5c2d03]||_0x5c2d03,_0x456cb1=_0x58c5d1['createElement']('footnoteDefinition',{'footnoteId':_0xe2af7b}),_0x5bf1e9=_0x38902c['data']['htmlProcessor']['toView'](_0x7d36b6),_0x1ad1a8=_0x38902c['data']['toModel'](_0x5bf1e9,_0x456cb1);_0x58c5d1['append'](_0x1ad1a8,_0x456cb1),_0x58c5d1['insert'](_0x456cb1,_0x50e37e,'end');}_0x2acdbb=null;});});}}class i extends _0x2443ff{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8864d4}=this,{componentFactory:_0xdf3369}=_0x8864d4['ui'];_0xdf3369['add']('insertFootnote',x(_0x8864d4,_0x59e84a)),_0xdf3369['add']('menuBar:insertFootnote',x(_0x8864d4,_0x475bee)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5eb9a4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x299e02;for(const _0x8e5667 in _0x5eb9a4){const _0x83f204=_0x8e5667,_0x22405a=_0x5eb9a4[_0x83f204];if('footnotesLicenseKeyValid'==_0x22405a||'footnotesLicenseKeyInvalid'==_0x22405a||'footnotesLicenseKeyExpired'==_0x22405a||'footnotesLicenseKeyDomainLimit'==_0x22405a||'footnotesLicenseKeyNotAllowed'==_0x22405a||'footnotesLicenseKeyEvaluationLimit'==_0x22405a||'footnotesLicenseKeyTrialLimit'==_0x22405a||'footnotesLicenseKeyUsageLimit'==_0x22405a){delete _0x5eb9a4[_0x83f204],_0x299e02=_0x22405a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x299e02&&_0x5eb9a4['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x299e02&&_0x5eb9a4['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x299e02&&_0x5eb9a4['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x299e02&&_0x5eb9a4['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x299e02&&_0x5eb9a4['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x299e02&&_0x5eb9a4['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x299e02&&_0x5eb9a4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x22cf6a,_0x435214){const _0x19d4f5=_0x22cf6a['commands']['get']('insertFootnote');return _0x15537b=>{const {t:t}=_0x15537b,_0x268f2b=new _0x435214(_0x15537b),_0x321086=_0x268f2b instanceof _0x475bee;return _0x268f2b['bind']('isEnabled')['to'](_0x19d4f5,'isEnabled'),_0x268f2b['set']({'label':t(_0x321086?'Footnote':'Insert\x20footnote'),'icon':_0x2404ba,'tooltip':!0x0}),_0x268f2b['on']('execute',()=>{_0x19d4f5['execute'](),_0x22cf6a['editing']['view']['focus']();}),_0x268f2b;};}class nt extends _0x2443ff{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x540d33{['refresh'](){const {editor:_0x230227}=this,_0x20f4d8=_0x230227['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x20f4d8,this['value']=_0x20f4d8?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3c0983}){const {editor:_0xd6240e}=this,_0x25ac76=_0xd6240e['plugins']['get'](c),_0x46cd5c=_0x25ac76['getFootnotesDefinitionsObjectElement']();_0x46cd5c&&Q['includes'](_0x3c0983)&&_0xd6240e['model']['change'](_0x40eb67=>{_0x40eb67['setAttribute']('footnotesListStyle',_0x3c0983,_0x46cd5c),_0x25ac76['_updateFootnotesCounters'](_0x40eb67);});}}class b extends _0x540d33{['refresh'](){const {editor:_0xaeab51}=this,_0x1b3ba9=_0xaeab51['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1b3ba9,this['value']=_0x1b3ba9?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x19153e}){const {editor:_0x2818ab}=this,_0x352178=_0x2818ab['plugins']['get'](c),_0xd03f00=_0x352178['getFootnotesDefinitionsObjectElement']();_0xd03f00&&Number['isInteger'](_0x19153e)&&_0x2818ab['model']['change'](_0x49fe96=>{_0x49fe96['setAttribute']('footnotesListStart',_0x19153e,_0xd03f00),_0x352178['_updateFootnotesCounters'](_0x49fe96);});}}class P extends _0x2443ff{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cab4d}=this;_0x5cab4d['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5cab4d['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5cab4d['commands']['add']('footnotesStyle',new S(_0x5cab4d)),_0x5cab4d['commands']['add']('footnotesStart',new b(_0x5cab4d)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3cfd16}=this,{schema:_0xbfa129}=_0x3cfd16['model'];_0xbfa129['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x279606}=this,{conversion:_0x4813a1,model:_0xdcc157}=_0x279606,{schema:_0x2e48f0}=_0xdcc157;_0x4813a1['for']('upcast')['add'](_0x4c415e=>{_0x4c415e['on']('element:ol',(_0x33298f,_0x222cdb,_0x2e30df)=>{const _0x43cd7c=_0x222cdb['viewItem'],_0x33478c=_0x222cdb['modelCursor']?.['parent'];_0x43cd7c['hasClass']('footnotes-list')&&_0x33478c?.['is']('element','footnotesDefinitions')&&(function(_0x203ba4,_0x3f7526,_0x42fe1a,_0x215a74){if(!_0x215a74['checkAttribute'](_0x3f7526,'footnotesListStart'))return;let _0x155213=0x1;const _0x5b3a7a=_0x42fe1a['consumable']['consume'](_0x203ba4,{'attributes':'start'});if(_0x5b3a7a){const _0x3bd011=Number['parseInt'](_0x203ba4['getAttribute']('start'),0xa);Number['isNaN'](_0x3bd011)||(_0x155213=_0x3bd011);}!_0x5b3a7a&&_0x3f7526['hasAttribute']('footnotesListStart')||_0x42fe1a['writer']['setAttribute']('footnotesListStart',_0x155213,_0x3f7526);}(_0x43cd7c,_0x33478c,_0x2e30df,_0x2e48f0),function(_0x3e3be4,_0x1b68c0,_0x2d8ba8,_0x130532){if(!_0x130532['checkAttribute'](_0x1b68c0,'footnotesListStyle'))return;let _0x6289b7='decimal',_0x570ebf=!0x1;if(_0x2d8ba8['consumable']['consume'](_0x3e3be4,{'attributes':'type'})){const _0x1b6d1c={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x3e3be4['getAttribute']('type')];_0x1b6d1c&&(_0x6289b7=_0x1b6d1c),_0x570ebf=!0x0;}_0x2d8ba8['consumable']['consume'](_0x3e3be4,{'styles':'list-style-type'})&&(_0x6289b7=_0x3e3be4['getStyle']('list-style-type'),_0x570ebf=!0x0),!_0x570ebf&&_0x1b68c0['hasAttribute']('footnotesListStyle')||_0x2d8ba8['writer']['setAttribute']('footnotesListStyle',_0x6289b7,_0x1b68c0);}(_0x43cd7c,_0x33478c,_0x2e30df,_0x2e48f0));});}),_0x4813a1['for']('downcast')['add'](_0x4e7c37=>{_0x4e7c37['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1365fb,_0x3c5919,_0x5dfed1)=>{if(!_0x5dfed1['consumable']['consume'](_0x3c5919['item'],_0x1365fb['name']))return;const _0x36a79b=C(_0x3c5919['item'],_0x5dfed1['mapper']),{attributeNewValue:_0x3ca021}=_0x3c5919;null==_0x3ca021||0x1===_0x3ca021?_0x5dfed1['writer']['removeAttribute']('start',_0x36a79b):_0x5dfed1['writer']['setAttribute']('start',String(_0x3ca021),_0x36a79b);}),_0x4e7c37['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xb604bc,_0x383cfd,_0xd9d99a)=>{if(!_0xd9d99a['consumable']['consume'](_0x383cfd['item'],_0xb604bc['name']))return;const _0x4809f1=C(_0x383cfd['item'],_0xd9d99a['mapper']),{attributeNewValue:_0x49c2c5}=_0x383cfd;_0x49c2c5&&'decimal'!==_0x49c2c5?_0xd9d99a['writer']['setStyle']('list-style-type',_0x49c2c5,_0x4809f1):_0xd9d99a['writer']['removeStyle']('list-style-type',_0x4809f1);});});}['_definePostfixer'](){const {editor:_0xc41106}=this,{model:_0x321382}=_0xc41106,_0x11ce5d=_0xc41106['plugins']['get'](c),_0x3a7bd8=this['_getDefaultListStyle'](),_0x3ae9f4=this['_getDefaultStartIndex']();_0x321382['document']['registerPostFixer'](_0x2264cf=>{const _0x57931b=_0x321382['document']['differ']['getChanges']();let _0x2c00f0=!0x1;for(const _0x4664ff of _0x57931b){if('insert'!==_0x4664ff['type']||'$text'===_0x4664ff['name'])continue;const _0x429c23=_0x321382['createRangeOn'](_0x4664ff['position']['nodeAfter']);for(const _0x4cecf6 of _0x429c23['getItems']())_0x4cecf6['is']('element','footnotesDefinitions')&&(!_0x4cecf6['hasAttribute']('footnotesListStart')&&_0x321382['schema']['checkAttribute'](_0x4cecf6,'footnotesListStart')&&(_0x2264cf['setAttribute']('footnotesListStart',_0x3ae9f4,_0x4cecf6),_0x2c00f0=!0x0),!_0x4cecf6['hasAttribute']('footnotesListStyle')&&_0x321382['schema']['checkAttribute'](_0x4cecf6,'footnotesListStyle')&&(_0x2264cf['setAttribute']('footnotesListStyle',_0x3a7bd8,_0x4cecf6),_0x2c00f0=!0x0));}return _0x2c00f0&&_0x11ce5d['_updateFootnotesCounters'](_0x2264cf),_0x2c00f0;});}['_defineFormatter'](){const {editor:_0x32a4aa}=this;_0x32a4aa['plugins']['get'](c)['setFootnoteFormatter'](_0x496d81=>this['_formatFootnoteListValue'](_0x496d81));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x559ef2,value:_0x1101e4,digits:_0x13f21e}){const _0x4d2be8=_0x559ef2['getAttribute']('footnotesListStyle'),_0x46ee1d=_0x559ef2['getAttribute']('footnotesListStart'),_0x2833e8=Math['floor'](_0x1101e4)+(_0x46ee1d??0x1)-0x1;switch(_0x4d2be8){case'decimal-leading-zero':return function(_0x2fdc60,_0x23e42a){return String(_0x2fdc60)['padStart'](_0x23e42a,'0');}(_0x2833e8,Math['max'](0x2,_0x13f21e));case'lower-alpha':case'lower-latin':return M(_0x2833e8,!0x1);case'upper-alpha':case'upper-latin':return M(_0x2833e8,!0x0);case'lower-roman':return V(_0x2833e8,!0x1);case'upper-roman':return V(_0x2833e8,!0x0);default:return String(_0x2833e8);}}}function C(_0x82f94a,_0xb28ae5){const _0x252a33=_0xb28ae5['toViewElement'](_0x82f94a);return Array['from'](_0x252a33['getChildren']())['find'](_0x5eec86=>_0x5eec86['is']('element','ol')&&_0x5eec86['hasClass']('footnotes-list'));}function M(_0x14c6fd,_0x37fd2c){let _0x26b17d='',_0x47dc59=_0x14c6fd;for(;_0x47dc59>0x0;){const _0x2ff273=(_0x47dc59-0x1)%0x1a;_0x26b17d=String['fromCharCode'](0x61+_0x2ff273)+_0x26b17d,_0x47dc59=Math['floor']((_0x47dc59-0x1)/0x1a);}return _0x37fd2c?_0x26b17d['toUpperCase']():_0x26b17d;}const N=[{'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 V(_0x21d5b5,_0x4cf33f){let _0x429bc0='',_0x265b37=_0x21d5b5;for(const {value:_0xc4c31b,numeral:_0x1f9f4a}of N)for(;_0x265b37>=_0xc4c31b;)_0x429bc0+=_0x1f9f4a,_0x265b37-=_0xc4c31b;return _0x4cf33f?_0x429bc0:_0x429bc0['toLowerCase']();}class H extends _0xe1c5b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x2e346e();['focusCycler'];constructor(_0xb97fa9,{styleButtonViews:_0x74452b,styleGridAriaLabel:_0x568ffc}){super(_0xb97fa9),(this['focusCycler']=new _0x1624a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x74452b,_0x568ffc),[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 _0x30d1b9 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x30d1b9['element']);_0x1f801a({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x149af6=_0x4f0da9=>_0x4f0da9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x149af6),this['keystrokes']['set']('arrowleft',_0x149af6),this['keystrokes']['set']('arrowup',_0x149af6),this['keystrokes']['set']('arrowdown',_0x149af6);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x87c0a6,_0x284ea5){const _0x9051b9=new _0xe1c5b(this['locale']);return _0x9051b9['children']=_0x9051b9['createCollection'](),_0x9051b9['children']['addMany'](_0x87c0a6),_0x9051b9['setTemplate']({'tag':'div','attributes':{'aria-label':_0x284ea5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x9051b9['children']}),_0x9051b9['children']['delegate']('execute')['to'](this),_0x9051b9['focus']=function(){for(const _0x8e5653 of this['children'])if(_0x8e5653 instanceof _0x59e84a&&_0x8e5653['isOn'])return void _0x8e5653['focus']();this['children']['first']['focus']();},_0x9051b9['focusTracker']=new et(),_0x9051b9['keystrokes']=new ot(),_0x9051b9['render'](),_0x9051b9['keystrokes']['listenTo'](_0x9051b9['element']),this['children']['add'](_0x9051b9),_0x9051b9;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1421f2=this['_createStartIndexPropertyView'](),_0x352925=[_0x1421f2],_0x19e788=new tt(this['locale'],_0x352925);return _0x19e788['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x19e788['buttonView']['bind']('isEnabled')['toMany'](_0x352925,'isEnabled',(..._0x3a6857)=>_0x3a6857['some'](_0x3ccf5b=>_0x3ccf5b)),_0x19e788['buttonView']['on']('change:isEnabled',(_0x3cab29,_0x537e33,_0x1411e0)=>{_0x1411e0||(_0x19e788['isCollapsed']=!0x0);}),this['children']['add'](_0x19e788),[_0x1421f2,_0x19e788];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x58f09e=new st(this['locale'],it);return _0x58f09e['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x58f09e['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x58f09e['fieldView']['on']('input',()=>{const _0x5b0c2a=_0x58f09e['fieldView']['element'],_0x38fe06=_0x5b0c2a['valueAsNumber'];Number['isNaN'](_0x38fe06)?_0x58f09e['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5b0c2a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x38fe06}):_0x58f09e['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x58f09e;}}class j extends _0x2443ff{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1f198d,_0x2bd1c6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x355c88}=this,{componentFactory:_0x5c99db}=_0x355c88['ui'];_0x355c88['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5c99db['add']('footnotesStyle',function(_0x41a123){return _0x505cec=>{const {t:t}=_0x505cec,_0x4d41f1=_0x41a123['commands']['get']('footnotesStyle'),_0x4de82f=_0x24e948(_0x505cec),{buttonView:_0x55aa99}=_0x4de82f;return _0x4de82f['class']='ck-footnotes-styles-dropdown',_0x4de82f['bind']('isEnabled')['to'](_0x4d41f1,'isEnabled'),_0x55aa99['set']({'label':t('Footnotes\x20style'),'icon':_0x2404ba,'tooltip':!0x0}),_0x4de82f['once']('change:isOpen',()=>{const _0x21a57b=function({editor:_0x360777,dropdownView:_0x521ae4}){const {t:t}=_0x360777['locale'],_0x4f6120=t('Footnotes\x20definitions\x20styles'),_0x5a3a97=function(_0x2843ef){const t=_0x2843ef['locale']['t'],_0x3c1a26=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5021c0},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xe43892},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x449f3f},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x56b6ca},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1ed5fa},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x74cd51}];return _0x3c1a26['map'](function(_0x52c654){const _0x44bc6c=_0x52c654['locale'];return({label:_0x2ded70,icon:_0x68f224,tooltip:_0x2d6259,style:_0x554e2e})=>{const _0xb0d756=_0x52c654['commands']['get']('footnotesStyle'),_0x4a0749=new _0x59e84a(_0x44bc6c);return _0x4a0749['set']({'label':_0x2ded70,'icon':_0x68f224,'tooltip':_0x2d6259}),_0x4a0749['bind']('isOn')['to'](_0xb0d756,'value',_0x54bbad=>_0x54bbad===_0x554e2e),_0x4a0749['bind']('isEnabled')['to'](_0xb0d756,'isEnabled'),_0x4a0749['on']('execute',()=>{_0x52c654['execute']('footnotesStyle',{'value':_0x554e2e}),_0x52c654['editing']['view']['focus']();}),_0x4a0749;};}(_0x2843ef));}(_0x360777),_0x32ab1b=new H(_0x360777['locale'],{'styleGridAriaLabel':_0x4f6120,'styleButtonViews':_0x5a3a97});return _0x32ab1b['delegate']('execute')['to'](_0x521ae4),_0x32ab1b['on']('footnotesListStart',(_0x4713ec,_0x12e6a8)=>{_0x360777['execute']('footnotesStart',{'value':_0x12e6a8['startIndex']});}),_0x32ab1b;}({'editor':_0x41a123,'dropdownView':_0x4de82f});_0x4de82f['panelView']['children']['add'](_0x21a57b);}),_0x4de82f;};}(_0x355c88));}['afterInit'](){const {editor:_0x42d463}=this,{t:t}=_0x42d463['locale'],_0x29ea25=_0x42d463['plugins']['get'](_0x2bd1c6),{defaultPositions:_0x11af63}=_0x2bda11;_0x29ea25['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x42d463['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4fed0e=>{let _0x24d672=_0x4fed0e['getFirstPosition']()?.['parent'];return _0x24d672?.['is']('$text')&&(_0x24d672=_0x24d672['parent']),_0x24d672?.['is']('element')?_0x24d672['findAncestor'](J):null;},'positions':[_0x11af63['southArrowNorth'],_0x11af63['southArrowNorthMiddleWest'],_0x11af63['southArrowNorthMiddleEast'],_0x11af63['southArrowNorthWest'],_0x11af63['southArrowNorthEast'],_0x11af63['northArrowSouth'],_0x11af63['northArrowSouthMiddleWest'],_0x11af63['northArrowSouthMiddleEast'],_0x11af63['northArrowSouthWest'],_0x11af63['northArrowSouthEast'],_0x11af63['viewportStickyNorth']]});}}class lt extends _0x2443ff{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,lt 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-
|
|
3
|
+
"version": "0.0.0-nightly-20251028.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-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251028.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251028.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251028.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251028.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251028.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251028.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251028.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251028.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
|
|
23
|
+
const _0x29d69e=_0x2d0f;(function(_0x592dd5,_0x3eba01){const _0x28f013=_0x2d0f,_0x156227=_0x592dd5();while(!![]){try{const _0x23d7a7=-parseInt(_0x28f013(0xb3))/0x1+parseInt(_0x28f013(0xb9))/0x2+parseInt(_0x28f013(0xc3))/0x3+-parseInt(_0x28f013(0xb6))/0x4+parseInt(_0x28f013(0xc8))/0x5*(parseInt(_0x28f013(0xb8))/0x6)+-parseInt(_0x28f013(0xd5))/0x7*(-parseInt(_0x28f013(0xba))/0x8)+-parseInt(_0x28f013(0xbc))/0x9*(parseInt(_0x28f013(0xb7))/0xa);if(_0x23d7a7===_0x3eba01)break;else _0x156227['push'](_0x156227['shift']());}catch(_0x38efaa){_0x156227['push'](_0x156227['shift']());}}}(_0x4415,0xac463));import{logWarning as _0x54f3ff,uid as _0x288ac6}from'ckeditor5/src/utils.js';function _0x2d0f(_0xd5f7df,_0x2de88c){const _0x44156f=_0x4415();return _0x2d0f=function(_0x2d0f98,_0x11d18f){_0x2d0f98=_0x2d0f98-0xb3;let _0x139fc6=_0x44156f[_0x2d0f98];return _0x139fc6;},_0x2d0f(_0xd5f7df,_0x2de88c);}import{Command as _0x4809cd}from'ckeditor5/src/core.js';function _0x4415(){const _0xe4995f=['11331pWUrtr','end','refresh','test','length','selection','editor','2833950XGWodV','_getPositionToInsertFootnote','isObject','footnoteId','createElement','15OfdBOP','get','document','execute','isBlock','insertObject','footnoteRef','plugins','insert-footnote-command-executed-with-invalid-id','FootnotesEditing','isEnabled','_moveSelectionToFootnoteDefinition','string','1715763QwXzKx','model','change','136367wlLpJC','getItems','checkChild','4651880YbGQZr','15170xkdlFp','2020302AdQidw','1959276rISGEh','32qyyvVP','getFirstRange'];_0x4415=function(){return _0xe4995f;};return _0x4415();}export class InsertFootnoteCommand extends _0x4809cd{[_0x29d69e(0xbe)](){const _0x3ba9d7=_0x29d69e,_0x517285=this[_0x3ba9d7(0xc2)][_0x3ba9d7(0xd6)][_0x3ba9d7(0xca)][_0x3ba9d7(0xc1)],_0xadc67=this[_0x3ba9d7(0xc4)](_0x517285);this[_0x3ba9d7(0xd2)]=!!_0xadc67;}[_0x29d69e(0xcb)](_0x490b00){const _0x2f6fd1=_0x29d69e,{editor:_0x2fac91}=this,{model:_0x58e379}=_0x2fac91,{selection:_0x5cc354}=_0x58e379[_0x2f6fd1(0xca)],_0x3a3c1a=this[_0x2f6fd1(0xc4)](_0x5cc354);if(!_0x3a3c1a)return;const _0xaa8eb1=_0x2fac91[_0x2f6fd1(0xcf)][_0x2f6fd1(0xc9)](_0x2f6fd1(0xd1)),_0x13c48d=_0x490b00?.[_0x2f6fd1(0xc6)]??_0x288ac6();!function(_0x55090e){const _0x1bdde8=_0x2f6fd1;return _0x1bdde8(0xd4)==typeof _0x55090e&&_0x55090e[_0x1bdde8(0xc0)]>0x0&&!/\s/[_0x1bdde8(0xbf)](_0x55090e)&&!/^\d/[_0x1bdde8(0xbf)](_0x55090e);}(_0x13c48d)?_0x54f3ff(_0x2f6fd1(0xd0)):(_0x58e379[_0x2f6fd1(0xd7)](_0x40e963=>{const _0x5f5c32=_0x2f6fd1,_0x1aa416=_0x40e963[_0x5f5c32(0xc7)](_0x5f5c32(0xce),{'footnoteId':_0x13c48d});_0x58e379[_0x5f5c32(0xcd)](_0x1aa416,_0x3a3c1a,null);}),_0xaa8eb1[_0x2f6fd1(0xd3)](_0x13c48d));}[_0x29d69e(0xc4)](_0x450253){const _0x1f7b23=_0x29d69e,{model:_0x158633}=this[_0x1f7b23(0xc2)],{schema:_0x478c89}=_0x158633,_0x49deea=_0x450253[_0x1f7b23(0xbb)]();for(const _0x3710b1 of _0x49deea[_0x1f7b23(0xb4)]())if(_0x478c89[_0x1f7b23(0xcc)](_0x3710b1)||_0x478c89[_0x1f7b23(0xc5)](_0x3710b1))return null;const _0x58bbf7=_0x49deea[_0x1f7b23(0xbd)];return _0x478c89[_0x1f7b23(0xb5)](_0x58bbf7,_0x1f7b23(0xce))?_0x58bbf7:null;}}
|
package/src/footnotes.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4d83(){var _0x1af098=['isOfficialPlugin','Footnotes','6RyLjOr','requires','734430BJFjwl','isPremiumPlugin','507928QWqxRZ','243174uGgoyC','3655813UMCEPd','41231dlePTk','1307904vYVciJ','26YseiLJ','1529325EyFzyD','pluginName'];_0x4d83=function(){return _0x1af098;};return _0x4d83();}var _0x55fb21=_0x49f4;(function(_0x3e7f60,_0xf02018){var _0x2f3735=_0x49f4,_0x16e338=_0x3e7f60();while(!![]){try{var _0x2e38e9=parseInt(_0x2f3735(0x17e))/0x1*(parseInt(_0x2f3735(0x180))/0x2)+parseInt(_0x2f3735(0x17c))/0x3+parseInt(_0x2f3735(0x17b))/0x4+parseInt(_0x2f3735(0x179))/0x5+-parseInt(_0x2f3735(0x177))/0x6*(parseInt(_0x2f3735(0x17d))/0x7)+-parseInt(_0x2f3735(0x17f))/0x8+parseInt(_0x2f3735(0x181))/0x9;if(_0x2e38e9===_0xf02018)break;else _0x16e338['push'](_0x16e338['shift']());}catch(_0x188ae6){_0x16e338['push'](_0x16e338['shift']());}}}(_0x4d83,0x5b943));import{Plugin as _0x35454b}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x1baf11}from'./footnotesediting.js';import{FootnotesClipboard as _0x2d5905}from'./footnotesclipboard.js';import{FootnotesUI as _0x357297}from'./footnotesui.js';function _0x49f4(_0x36ee61,_0x1a8653){var _0x4d833d=_0x4d83();return _0x49f4=function(_0x49f40f,_0x53e672){_0x49f40f=_0x49f40f-0x175;var _0xd7b086=_0x4d833d[_0x49f40f];return _0xd7b086;},_0x49f4(_0x36ee61,_0x1a8653);}export class Footnotes extends _0x35454b{static get[_0x55fb21(0x182)](){var _0x3f1f85=_0x55fb21;return _0x3f1f85(0x176);}static get[_0x55fb21(0x178)](){return[_0x1baf11,_0x2d5905,_0x357297];}static get[_0x55fb21(0x175)](){return!0x0;}static get[_0x55fb21(0x17a)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x55fb(){const _0x567b1c=['contentInsertion','1554476xBTTUE','end','editing','716FRNoSV','_defineClipboardIntegration','application/ckeditor5-footnotes','_handlePasteFootnotesDefinitions','toModel','editor','isOfficialPlugin','pluginName','1753030iJyWUw','drop','footnoteId','method','data','create','426KMzoju','from','stringify','2987zVrYmG','selection','getData','createElement','footnoteDefinition','find','997338TTitXj','footnotesDefinitions','length','outputTransformation','init','getFirstRange','toView','6784840Jtunxq','reduce','change','root','_handleCopyFootnotesDefinitions','FootnotesClipboard','getAttribute','htmlProcessor','get','16079670ylGfbX','push','listenTo','dataTransfer','toData','createRangeIn','content','65891wJtQbr','_insertEmptyFootnotesDefinitionsContainer','getFootnotesDefinitionsObjectElement','setAttribute','definition','insert','isPremiumPlugin','requires','getFootnotes','getFootnote','footnoteRef','append','setData','remove','sourceEditorId','parse','entries','document','clipboardInput','element','add'];_0x55fb=function(){return _0x567b1c;};return _0x55fb();}function _0x1e91(_0x2162ca,_0x3ab463){const _0x55fb66=_0x55fb();return _0x1e91=function(_0x1e9174,_0x1d995b){_0x1e9174=_0x1e9174-0xda;let _0x17e676=_0x55fb66[_0x1e9174];return _0x17e676;},_0x1e91(_0x2162ca,_0x3ab463);}const _0x41bafb=_0x1e91;(function(_0x59a70f,_0x526fa0){const _0x278d31=_0x1e91,_0x5a0719=_0x59a70f();while(!![]){try{const _0x192893=-parseInt(_0x278d31(0xec))/0x1*(parseInt(_0x278d31(0xdb))/0x2)+parseInt(_0x278d31(0xf2))/0x3+-parseInt(_0x278d31(0x11f))/0x4+parseInt(_0x278d31(0xe3))/0x5+-parseInt(_0x278d31(0xe9))/0x6*(-parseInt(_0x278d31(0x109))/0x7)+-parseInt(_0x278d31(0xf9))/0x8+parseInt(_0x278d31(0x102))/0x9;if(_0x192893===_0x526fa0)break;else _0x5a0719['push'](_0x5a0719['shift']());}catch(_0x55fdc5){_0x5a0719['push'](_0x5a0719['shift']());}}}(_0x55fb,0xcb1bf));import{Plugin as _0x9d9edc}from'ckeditor5/src/core.js';import{uid as _0x5c4811}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0x9a4980}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x50aef6}from'./footnotesediting.js';import{FootnotesTracker as _0x21a01c}from'./footnotestracker.js';export class FootnotesClipboard extends _0x9d9edc{static get[_0x41bafb(0xe2)](){const _0x3cef24=_0x41bafb;return _0x3cef24(0xfe);}static get[_0x41bafb(0x110)](){return[_0x50aef6,_0x9a4980];}static get[_0x41bafb(0xe1)](){return!0x0;}static get[_0x41bafb(0x10f)](){return!0x0;}[_0x41bafb(0xf6)](){const _0x399050=_0x41bafb;this[_0x399050(0xdc)]();}[_0x41bafb(0xdc)](){const _0x3c85d5=_0x41bafb;this[_0x3c85d5(0xfd)](),this[_0x3c85d5(0xde)]();}[_0x41bafb(0xfd)](){const _0x4fc1cf=_0x41bafb,{editor:_0x30d759}=this,{plugins:_0x249992,model:_0xfaf1d7}=_0x30d759,_0x39ceef=_0x249992[_0x4fc1cf(0x101)](_0x9a4980),_0x1a821c=_0x249992[_0x4fc1cf(0x101)](_0x21a01c);this[_0x4fc1cf(0x104)](_0x39ceef,_0x4fc1cf(0xf5),(_0x4ba896,_0x4ba057)=>{const _0x5c5268=_0x4fc1cf,_0x1e7785=function(_0x444c87,_0x3105cd){const _0x3d776a=_0x1e91,_0x44dc26=new Set();for(const {item:_0x55ff37}of _0x444c87[_0x3d776a(0x107)](_0x3105cd))_0x55ff37['is'](_0x3d776a(0x11c),_0x3d776a(0x113))&&_0x44dc26[_0x3d776a(0x11d)](_0x55ff37[_0x3d776a(0xff)](_0x3d776a(0xe5)));return Array[_0x3d776a(0xea)](_0x44dc26);}(_0xfaf1d7,_0x4ba057[_0x5c5268(0x108)]);if(!_0x1e7785[_0x5c5268(0xf4)])return;const _0x5ea33b=_0x1a821c[_0x5c5268(0x111)](),_0x4ec251=_0x1e7785[_0x5c5268(0xfa)]((_0x31da51,_0x1878b1)=>{const _0x4c3f05=_0x5c5268,_0x1aa794=_0x5ea33b[_0x4c3f05(0xf1)](_0x2a8d88=>_0x2a8d88['id']===_0x1878b1);if(_0x1aa794){const _0x4652a3=_0x30d759[_0x4c3f05(0xe7)][_0x4c3f05(0xf8)](_0x1aa794[_0x4c3f05(0x10d)],{'isClipboardPipeline':!0x0}),_0x2c2359=_0x30d759[_0x4c3f05(0xe7)][_0x4c3f05(0x100)][_0x4c3f05(0x106)](_0x4652a3);_0x31da51[_0x1aa794['id']]=_0x2c2359;}return _0x31da51;},Object[_0x5c5268(0xe8)](null));_0x4ba057[_0x5c5268(0x105)][_0x5c5268(0x115)](_0x5c5268(0xdd),JSON[_0x5c5268(0xeb)](_0x4ec251));});}[_0x41bafb(0xde)](){const _0x3118fb=_0x41bafb,{editor:_0x47d29d}=this,{model:_0x6b851e,plugins:_0x1907bb}=_0x47d29d,{view:_0x23a7ab}=_0x47d29d[_0x3118fb(0xda)],_0x2eab52=_0x1907bb[_0x3118fb(0x101)](_0x9a4980),_0x3e6f3c=_0x1907bb[_0x3118fb(0x101)](_0x21a01c);let _0x332643=null;this[_0x3118fb(0x104)](_0x23a7ab[_0x3118fb(0x11a)],_0x3118fb(0x11b),(_0x18b25e,_0x22cebe)=>{const _0x216ca5=_0x3118fb,_0x46ebd9=_0x22cebe[_0x216ca5(0x105)][_0x216ca5(0xee)](_0x216ca5(0xdd));_0x332643=_0x46ebd9?JSON[_0x216ca5(0x118)](_0x46ebd9):null;}),this[_0x3118fb(0x104)](_0x2eab52,_0x3118fb(0x11e),(_0x2ae534,_0x5cd50c)=>{const _0xf90daf=_0x3118fb;if(!_0x332643)return;const _0x19d80b=_0x5cd50c[_0xf90daf(0x117)]===this[_0xf90daf(0xe0)]['id'];_0x19d80b&&_0xf90daf(0xe4)===_0x5cd50c[_0xf90daf(0xe6)]||_0x6b851e[_0xf90daf(0xfb)](_0x2785cf=>{const _0x47aa3c=_0xf90daf;!function(_0x2cedfc,_0x26b138){const _0x3844b4=_0x1e91,_0x5a14db=[];for(const {item:_0x4a3c01}of _0x2cedfc[_0x3844b4(0x107)](_0x26b138))_0x4a3c01['is'](_0x3844b4(0x11c),_0x3844b4(0xf3))&&_0x5a14db[_0x3844b4(0x103)](_0x4a3c01);for(const _0xa934fe of _0x5a14db)_0x2cedfc[_0x3844b4(0x116)](_0xa934fe);}(_0x2785cf,_0x5cd50c[_0x47aa3c(0x108)]);let _0x571576=_0x3e6f3c[_0x47aa3c(0x10b)]();if(!_0x571576){const _0x244a39=_0x6b851e[_0x47aa3c(0x11a)][_0x47aa3c(0xed)][_0x47aa3c(0xf7)]()[_0x47aa3c(0xfc)];_0x571576=_0x3e6f3c[_0x47aa3c(0x10a)](_0x2785cf,_0x244a39);}const _0xbef3eb=function(_0x643395,_0x1290e9,_0x3d7098){const _0x5eddb5=_0x47aa3c,_0x2f0f10=Object[_0x5eddb5(0xe8)](null);for(const {item:_0x353287}of _0x643395[_0x5eddb5(0x107)](_0x1290e9))if(_0x353287['is'](_0x5eddb5(0x11c),_0x5eddb5(0x113))){const _0x198e89=_0x353287[_0x5eddb5(0xff)](_0x5eddb5(0xe5));if(!_0x3d7098(_0x198e89))continue;_0x2f0f10[_0x198e89]||(_0x2f0f10[_0x198e89]=_0x5c4811()),_0x643395[_0x5eddb5(0x10c)](_0x5eddb5(0xe5),_0x2f0f10[_0x198e89],_0x353287);}return _0x2f0f10;}(_0x2785cf,_0x5cd50c[_0x47aa3c(0x108)],_0x1c4691=>!_0x19d80b||null!==_0x3e6f3c[_0x47aa3c(0x112)](_0x1c4691));for(const [_0x525216,_0x138046]of Object[_0x47aa3c(0x119)](_0x332643)){const _0x3b98bb=_0xbef3eb[_0x525216]||_0x525216,_0x305795=_0x2785cf[_0x47aa3c(0xef)](_0x47aa3c(0xf0),{'footnoteId':_0x3b98bb}),_0x3b2da1=_0x47d29d[_0x47aa3c(0xe7)][_0x47aa3c(0x100)][_0x47aa3c(0xf8)](_0x138046),_0x38f612=_0x47d29d[_0x47aa3c(0xe7)][_0x47aa3c(0xdf)](_0x3b2da1,_0x305795);_0x2785cf[_0x47aa3c(0x114)](_0x38f612,_0x305795),_0x2785cf[_0x47aa3c(0x10e)](_0x305795,_0x571576,_0x47aa3c(0x120));}_0x332643=null;});});}}
|