@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251023.0 → 0.0.0-nightly-20251024.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x67fa18,Command as _0x198599}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x37034d,isWidget as _0x220573,toWidgetEditable as _0x37a3ea,WidgetToolbarRepository as _0x3dd184}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5d7c2b,logWarning as _0x1e5bc2,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5b77da,ClickObserver as _0x6dc02c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x305e19}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3ee175,ButtonView as _0xa0f411,View as _0x58cbe3,ViewCollection as _0x1bc3d7,FocusCycler as _0x43c6cc,addKeyboardHandlingForGrid as _0x1c7d6b,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x4f7453,BalloonPanelView as _0x4fd0e9,createDropdown as _0x517135}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1bfccd,IconListStyleDecimal as _0x59f3ef,IconListStyleDecimalLeadingZero as _0x46566d,IconListStyleLowerRoman as _0x46bade,IconListStyleUpperRoman as _0x1df5b6,IconListStyleLowerLatin as _0x47474d,IconListStyleUpperLatin as _0xfaceb9}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x28cf80,_0x293fe7){this['_model']=_0x28cf80,this['_elementName']=_0x293fe7['elementName'],this['_getElementKey']=_0x293fe7['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1bde6c){const _0x59fc2e=new Set(),_0x24b9f3=new Map();for(const _0x4961a5 of _0x1bde6c){if('insert'===_0x4961a5['type']&&'$text'!==_0x4961a5['name']&&_0x4961a5['position']['nodeAfter']){const _0x40d240=this['_model']['createRangeOn'](_0x4961a5['position']['nodeAfter']);for(const _0x434442 of _0x40d240['getItems']()){if(!_0x434442['is']('element',this['_elementName']))continue;const _0x232892=this['_getElementKey'](_0x434442);_0x24b9f3['has'](_0x232892)||_0x24b9f3['set'](_0x232892,[]),_0x24b9f3['get'](_0x232892)['push'](_0x434442);}}if('remove'===_0x4961a5['type']&&_0x4961a5['name']===this['_elementName']){const _0x4b578e=this['_getElementKey']({'getAttribute':_0x131339=>_0x4961a5['attributes']['get'](_0x131339)});_0x59fc2e['add'](_0x4b578e);}}for(const [_0x4d434f,_0x475ba5]of this['_trackedElements'])'$graveyard'===_0x475ba5['root']['rootName']&&_0x59fc2e['add'](_0x4d434f);for(const _0x2ae1cb of _0x59fc2e)this['_trackedElements']['delete'](_0x2ae1cb);for(const [_0x2bd2eb,_0x5c4584]of _0x24b9f3)this['_trackedElements']['set'](_0x2bd2eb,_0x5c4584[_0x5c4584['length']-0x1]);const _0x5bf56a=new Set();for(const [_0x15f644,_0x19f32b]of _0x24b9f3)_0x59fc2e['has'](_0x15f644)&&(_0x5bf56a['add'](_0x19f32b[0x0]),_0x19f32b['length']>0x1?_0x24b9f3['set'](_0x15f644,_0x19f32b['slice'](0x1)):_0x24b9f3['delete'](_0x15f644),_0x59fc2e['delete'](_0x15f644));return{'removed':Array['from'](_0x59fc2e),'inserted':Array['from'](_0x24b9f3['values']())['flat'](),'moved':Array['from'](_0x5bf56a)};}}class c extends _0x67fa18{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b8c08){super(_0x4b8c08),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2a1d69=>_0x2a1d69['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5530e5=>_0x5530e5['getAttribute']('footnoteId')});}['init'](){const {editor:_0x309591}=this,{model:_0x509f20,data:_0x2e751c}=_0x309591;_0x509f20['document']['registerPostFixer'](_0x152057=>{const _0x153bc8=_0x509f20['document']['differ']['getChanges']();let _0x1a6677=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x152057,_0x153bc8)&&(_0x1a6677=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x152057,_0x153bc8)&&(_0x1a6677=!0x0),this['_handleFootnoteReferencesChanges'](_0x152057,_0x153bc8)&&(_0x1a6677=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x152057)&&(_0x1a6677=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x152057)&&(_0x1a6677=!0x0),this['_sortFootnoteDefinitions'](_0x152057)&&(_0x1a6677=!0x0),_0x1a6677;}),this['listenTo'](_0x509f20['document'],'change:data',()=>{_0x509f20['enqueueChange']({'isUndoable':!0x1},_0x362703=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x362703);});},{'priority':'low'}),this['listenTo'](_0x2e751c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0xd7a049){return this['_footnotes']['find'](_0x55c0ad=>_0x55c0ad['id']===_0xd7a049)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x46a13f){this['_footnoteFormatter']=_0x46a13f;}['_updateFootnotesCounters'](_0x384b79,_0x1209bf=0x0){let _0xaf6ac5=!0x1;for(let _0x5b868c=_0x1209bf;_0x5b868c<this['_footnotes']['length'];_0x5b868c++)this['_updateFootnoteRefCounter'](_0x384b79,_0x5b868c)&&(_0xaf6ac5=!0x0);return _0xaf6ac5;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2435d7,_0x440ea8){const _0x2f0abc=_0x2435d7['createElement']('footnotesDefinitions',{});return _0x2435d7['append'](_0x2f0abc,_0x440ea8),this['_footnotesDefinitions']=_0x2f0abc,_0x2f0abc;}['_ensureFootnotesDefinitionsContainerExists'](_0x18fbc0){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4665ec=this['_footnotes'][0x0]['reference']['root'],_0x5d6aad=this['_insertEmptyFootnotesDefinitionsContainer'](_0x18fbc0,_0x4665ec);for(const _0x2915f4 of this['_footnotes'])_0x2915f4['definition']['parent']||_0x18fbc0['insert'](_0x2915f4['definition'],_0x5d6aad,'end');this['_updateFootnotesCounters'](_0x18fbc0);}['_handleFootnotesDefinitionsObjectChanges'](_0x5abaef,_0x307b0b){let _0x2ec6db=!0x1;const {inserted:_0x1a3171,removed:_0x2ce05c,moved:_0x2c7ff5}=this['_footnoteDefsContainerTracker']['getChanges'](_0x307b0b);if(_0x2c7ff5['length']&&(this['_footnotesDefinitions']=_0x2c7ff5[0x0]),_0x1a3171['length']){if(_0x1a3171['length']>0x1||this['_footnotesDefinitions']&&_0x1a3171['some'](_0x24784c=>_0x24784c!==this['_footnotesDefinitions'])){const _0x1e2232=_0x5abaef['createElement']('footnotesDefinitions',{}),_0x2849be=[];this['_footnotesDefinitions']&&_0x2849be['push'](this['_footnotesDefinitions']),_0x2849be['push'](..._0x1a3171),_0x5abaef['insert'](_0x1e2232,_0x2849be[0x0],'before');for(const _0x23100e of _0x2849be)_0x5abaef['move'](_0x5abaef['createRangeIn'](_0x23100e),_0x5abaef['createPositionAt'](_0x1e2232,'end')),_0x5abaef['remove'](_0x23100e);this['_footnotesDefinitions']=_0x1e2232,this['_updateFootnotesCounters'](_0x5abaef),_0x2ec6db=!0x0;}else this['_footnotesDefinitions']=_0x1a3171[0x0];}if(_0x2ce05c['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x20e1de of this['_footnotes'])_0x5abaef['remove'](_0x20e1de['reference']),_0x2ec6db=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2ec6db;}['_handleFootnoteDefinitionsChanges'](_0x3167ae,_0x17ebc3){let _0x33b6bb=!0x1;const _0x55b02e=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x17e561,moved:_0x256030}=this['_footnoteDefsTracker']['getChanges'](_0x17ebc3);for(const _0x573ffd of[..._0x256030,..._0x17e561]){const _0x439b5d=_0x573ffd['getAttribute']('footnoteId'),_0x405a36=this['getFootnote'](_0x439b5d);_0x405a36&&(_0x405a36['definition']=_0x573ffd),_(_0x3167ae,_0x55b02e,_0x573ffd)&&(_0x33b6bb=!0x0);}return _0x33b6bb;}['_handleFootnoteReferencesChanges'](_0x132381,_0x153cba){let _0x3c127f=!0x1;const {removed:_0x5428e5,inserted:_0x548938,moved:_0x163171}=this['_footnoteRefsTracker']['getChanges'](_0x153cba);for(const _0x170064 of _0x5428e5)this['_handleRemoveFootnoteReferenceById'](_0x132381,_0x170064)&&(_0x3c127f=!0x0);for(const _0x2615b1 of _0x548938)this['_handleInsertedFootnoteReference'](_0x132381,_0x2615b1)&&(_0x3c127f=!0x0);for(const _0x520e93 of _0x163171)this['_handleMovedFootnoteReference'](_0x132381,_0x520e93)&&(_0x3c127f=!0x0);return _0x3c127f;}['_handleFootnotesDefinitionsObjectSync'](_0x549aec){if(!this['_footnotesDefinitions'])return!0x1;let _0x510162=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x1eee52=[];for(const _0x344dbf of this['_footnotesDefinitions']['getChildren']()){const _0x51fbdb=_0x344dbf['getAttribute']('footnoteId');this['getFootnote'](_0x51fbdb)||(_0x1eee52['unshift'](_0x344dbf),_0x510162=!0x0);}for(const _0x1286b6 of _0x1eee52)_0x549aec['remove'](_0x1286b6);}const _0x4bcf94=new Set(),_0x17b17f=[];for(const _0x3f9ed9 of this['_footnotesDefinitions']['getChildren']()){const _0x4193cc=_0x3f9ed9['getAttribute']('footnoteId');_0x4bcf94['has'](_0x4193cc)?(_0x17b17f['unshift'](_0x3f9ed9),_0x510162=!0x0):_0x4bcf94['add'](_0x4193cc);}for(const _0x1fdbf4 of _0x17b17f)_0x549aec['remove'](_0x1fdbf4);return this['_footnotesDefinitions']['childCount']||(_0x549aec['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x510162=!0x0),_0x510162;}['_handleInsertedFootnoteReference'](_0x4174ef,_0x5ef37c){if(this['_footnotes']['find'](_0x174c18=>_0x174c18['reference']===_0x5ef37c))return!0x1;let _0x357851=!0x1;const _0x489f7d=_0x5ef37c['getAttribute']('footnoteId'),_0x3874d1=this['getFootnote'](_0x489f7d);_0x3874d1&&(_0x4174ef['remove'](_0x3874d1['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x3a714e=>_0x3a714e['id']!==_0x489f7d),_0x357851=!0x0);let _0x39692e=this['_footnotesDefinitions']?function(_0x52e181,_0x3028a5){for(const _0x122119 of _0x52e181['getChildren']())if(_0x122119['getAttribute']('footnoteId')===_0x3028a5)return _0x122119;return null;}(this['_footnotesDefinitions'],_0x489f7d):null;_0x39692e||(_0x39692e=_0x4174ef['createElement']('footnoteDefinition',{'footnoteId':_0x489f7d}),this['_footnotesDefinitions']&&(_0x4174ef['insert'](_0x39692e,this['_footnotesDefinitions'],'end'),_0x357851=!0x0));const _0x4783e8={'id':_0x489f7d,'reference':_0x5ef37c,'definition':_0x39692e},_0x31ac55=I(this['editor']['model'],this['_footnotes'],_0x5ef37c);return this['_footnotes']['splice'](_0x31ac55,0x0,_0x4783e8),this['_updateFootnotesCounters'](_0x4174ef,_0x31ac55)&&(_0x357851=!0x0),_0x357851;}['_handleRemoveFootnoteReferenceById'](_0x4ac83e,_0x5bbaf6){const _0x53be1c=this['_footnotes']['findIndex'](_0x4fc7a6=>_0x4fc7a6['id']===_0x5bbaf6);if(-0x1===_0x53be1c)return!0x1;let _0x3048db=!0x1;const _0x1217aa=this['_footnotes'][_0x53be1c];return'$graveyard'!==_0x1217aa['definition']['root']['rootName']&&(_0x4ac83e['remove'](_0x1217aa['definition']),_0x3048db=!0x0),this['_footnotes']['splice'](_0x53be1c,0x1),this['_updateFootnotesCounters'](_0x4ac83e,_0x53be1c)&&(_0x3048db=!0x0),_0x3048db;}['_handleMovedFootnoteReference'](_0x336c59,_0xe13719){const _0xb19541=_0xe13719['getAttribute']('footnoteId'),_0x2a6467=this['_footnotes']['findIndex'](_0xb1d4fd=>_0xb1d4fd['id']===_0xb19541),_0x40ac90=this['_footnotes'][_0x2a6467];let _0x14c26d=!0x1;_0x40ac90['reference']=_0xe13719,this['_footnotes']['splice'](_0x2a6467,0x1);const _0x186080=I(this['editor']['model'],this['_footnotes'],_0xe13719);return this['_footnotes']['splice'](_0x186080,0x0,_0x40ac90),this['_updateFootnotesCounters'](_0x336c59,Math['min'](_0x2a6467,_0x186080))&&(_0x14c26d=!0x0),_0x14c26d;}['_updateFootnoteRefCounter'](_0x5168df,_0x3833e8){if(!this['_footnotesDefinitions'])return!0x1;const _0x303fe8=this['_footnotes'][_0x3833e8];let _0x56b7c0;return _0x56b7c0=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x303fe8,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3833e8+0x1}):String(_0x3833e8+0x1),_0x303fe8['reference']['getAttribute']('footnoteCounter')!=_0x56b7c0&&(_0x5168df['setAttribute']('footnoteCounter',_0x56b7c0,_0x303fe8['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x16ad29){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5c985c,_0x51fd2d){if(_0x5c985c['length']!==_0x51fd2d['length'])return!0x1;for(let _0x49d338=0x0;_0x49d338<_0x5c985c['length'];_0x49d338++)if(_0x5c985c[_0x49d338]!==_0x51fd2d[_0x49d338])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2eb86c=>_0x2eb86c['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x2e4f49=>_0x2e4f49['getAttribute']('footnoteId'))))return!0x1;let _0x3a878b=!0x1;for(let _0x4f61e6=0x0;_0x4f61e6<this['_footnotes']['length'];_0x4f61e6++){const _0x4f0b67=this['_footnotes'][_0x4f61e6],_0x584267=_0x16ad29['createPositionBefore'](_0x4f0b67['definition']),_0x52cc46=_0x16ad29['createPositionAt'](this['_footnotesDefinitions'],_0x4f61e6);_0x584267['isEqual'](_0x52cc46)||(_0x16ad29['move'](_0x16ad29['createRangeOn'](_0x4f0b67['definition']),_0x52cc46),_0x3a878b=!0x0);}return _0x3a878b;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4562a2){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2cbf93}=this['editor'];let _0x45b60a=!0x1;for(let _0x34b256=0x0;_0x34b256<this['_footnotes']['length']-0x1;_0x34b256++){const _0x12bdaf=this['_footnotes'][_0x34b256],_0x1d414b=this['_footnotes'][_0x34b256+0x1],_0x3b36f6=_0x2cbf93['createPositionBefore'](_0x12bdaf['reference']),_0x44c606=_0x2cbf93['createPositionBefore'](_0x1d414b['reference']);'after'===_0x3b36f6['compareWith'](_0x44c606)&&(this['_handleMovedFootnoteReference'](_0x4562a2,_0x12bdaf['reference']),_0x34b256=-0x1,_0x45b60a=!0x0);}return _0x45b60a;}}function _(_0x1f2a06,_0x1fb3b6,_0x47afc1){if(_0x47afc1['childCount'])return!0x1;const _0x20f308=_0x1fb3b6?'paragraph':'footnoteInlineContent';return _0x1f2a06['insert'](_0x1f2a06['createElement'](_0x20f308),_0x47afc1),!0x0;}function I(_0x364b14,_0x14ea29,_0x2d2ff2){if(0x0===_0x14ea29['length'])return 0x0;const _0xaf996d=_0x364b14['createPositionBefore'](_0x2d2ff2);for(let _0x2c2fec=0x0;_0x2c2fec<_0x14ea29['length'];_0x2c2fec++){const _0x126230=_0x14ea29[_0x2c2fec],_0x2e82e4=_0x364b14['createPositionBefore'](_0x126230['reference']);if('before'===_0xaf996d['compareWith'](_0x2e82e4))return _0x2c2fec;}const _0x5e03d6=_0x2d2ff2['root'];let _0x16b852=-0x1;for(let _0x278fc5=_0x14ea29['length']-0x1;_0x278fc5>=0x0;_0x278fc5--)if(_0x14ea29[_0x278fc5]['reference']['root']===_0x5e03d6){_0x16b852=_0x278fc5;break;}if(-0x1!==_0x16b852)return _0x16b852+0x1;const _0x183c80=_0x364b14['document']['getRootNames'](),_0x3231d4=_0x183c80['indexOf'](_0x5e03d6['rootName']),_0x3d5039=_0x183c80[_0x3231d4+0x1];if(_0x3d5039){for(let _0x367c7f=0x0;_0x367c7f<_0x14ea29['length'];_0x367c7f++)if(_0x14ea29[_0x367c7f]['reference']['root']['rootName']===_0x3d5039)return _0x367c7f;}return _0x14ea29['length'];}class w extends _0x198599{['refresh'](){const _0x498411=this['editor']['model']['document']['selection'],_0x1090ac=this['_getPositionToInsertFootnote'](_0x498411);this['isEnabled']=!!_0x1090ac;}['execute'](_0x5f0a01){const {editor:_0xef84ff}=this,{model:_0xbea581}=_0xef84ff,{selection:_0x518d23}=_0xbea581['document'],_0x578181=this['_getPositionToInsertFootnote'](_0x518d23);if(!_0x578181)return;const _0xd7e566=_0xef84ff['plugins']['get']('FootnotesEditing'),_0x6bb685=_0x5f0a01?.['footnoteId']??_0x5d7c2b();!function(_0x9aa2ea){return'string'==typeof _0x9aa2ea&&_0x9aa2ea['length']>0x0&&!/\s/['test'](_0x9aa2ea)&&!/^\d/['test'](_0x9aa2ea);}(_0x6bb685)?_0x1e5bc2('insert-footnote-command-executed-with-invalid-id'):(_0xbea581['change'](_0xfd8545=>{const _0x33e29a=_0xfd8545['createElement']('footnoteRef',{'footnoteId':_0x6bb685});_0xbea581['insertObject'](_0x33e29a,_0x578181,null);}),_0xd7e566['_moveSelectionToFootnoteDefinition'](_0x6bb685));}['_getPositionToInsertFootnote'](_0x258503){const {model:_0x8a94f1}=this['editor'],{schema:_0x4316a6}=_0x8a94f1,_0x3c6873=_0x258503['getFirstRange']();for(const _0x363a27 of _0x3c6873['getItems']())if(_0x4316a6['isBlock'](_0x363a27)||_0x4316a6['isObject'](_0x363a27))return null;const _0x5cefec=_0x3c6873['end'];return _0x4316a6['checkChild'](_0x5cefec,'footnoteRef')?_0x5cefec:null;}}class r extends _0x67fa18{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x586120}=this;_0x586120['config']['define']('footnotes.multiBlock',!0x0),_0x586120['commands']['add']('insertFootnote',new w(_0x586120)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x54f668){const _0x2e88ee=_0x5aaf9b([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]),_0x1c2d43=0x47a28506,_0x2f912c=0x47a5f206^_0x1c2d43,_0x3550d5=window[_0x5aaf9b([0x44,0x61,0x74,0x65])][_0x5aaf9b([0x6e,0x6f,0x77])](),_0x21a728=_0x54f668[_0x5aaf9b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6cbf55=new window[(_0x5aaf9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50bd85=>{_0x21a728[_0x5aaf9b([0x6f,0x6e,0x63,0x65])](_0x5aaf9b([0x72,0x65,0x61,0x64,0x79]),_0x50bd85);}),_0x31a269={[_0x5aaf9b([0x6b,0x74,0x79])]:_0x5aaf9b([0x45,0x43]),[_0x5aaf9b([0x75,0x73,0x65])]:_0x5aaf9b([0x73,0x69,0x67]),[_0x5aaf9b([0x63,0x72,0x76])]:_0x5aaf9b([0x50,0x2d,0x32,0x35,0x36]),[_0x5aaf9b([0x78])]:_0x5aaf9b([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]),[_0x5aaf9b([0x79])]:_0x5aaf9b([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]),[_0x5aaf9b([0x61,0x6c,0x67])]:_0x5aaf9b([0x45,0x53,0x32,0x35,0x36])},_0x3282bd=_0x21a728[_0x5aaf9b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5aaf9b([0x67,0x65,0x74])](_0x5aaf9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b74d0(){let _0x53b512,_0x808b7=null,_0x49409f=null;try{if(_0x3282bd==_0x5aaf9b([0x47,0x50,0x4c]))return _0x5aaf9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53b512=_0xf33b53(),!_0x53b512)return _0x5aaf9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53b512[_0x5aaf9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x49409f=_0x1b9540(_0x53b512[_0x5aaf9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53b512[_0x5aaf9b([0x6a,0x74,0x69])])),await _0x38c096()?_0x50f746()?_0x3ffc46()?_0x5aaf9b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2436fc()?(_0x53b512[_0x5aaf9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aaf9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x808b7=_0x20aa8c(_0x5aaf9b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53b512[_0x5aaf9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aaf9b([0x74,0x72,0x69,0x61,0x6c])&&(_0x808b7=_0x20aa8c(_0x5aaf9b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa6b66a()):_0x5aaf9b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5aaf9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5aaf9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5aaf9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ffc46(){const _0x2826b5=[_0x5aaf9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5aaf9b([0x74,0x72,0x69,0x61,0x6c])][_0x5aaf9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53b512[_0x5aaf9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3550d5/0x3e8:0xe10*_0x2f912c;return _0x53b512[_0x5aaf9b([0x65,0x78,0x70])]<_0x2826b5;}function _0x50f746(){const _0xfd0564=_0x53b512[_0x5aaf9b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xfd0564&&(!!_0xfd0564[_0x5aaf9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aaf9b([0x2a]))||!!_0xfd0564[_0x5aaf9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aaf9b([0x46,0x4f,0x4f])));}function _0x2436fc(){const _0x7f4c10=_0x53b512[_0x5aaf9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7f4c10||0x0==_0x7f4c10[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x531578}=new URL(window[_0x5aaf9b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7f4c10[_0x5aaf9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x531578))return!0x0;const _0x5c418f=_0x531578[_0x5aaf9b([0x73,0x70,0x6c,0x69,0x74])](_0x5aaf9b([0x2e]));return _0x7f4c10[_0x5aaf9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e1a9e=>_0x5e1a9e[_0x5aaf9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aaf9b([0x2a])))[_0x5aaf9b([0x6d,0x61,0x70])](_0x3b5467=>_0x3b5467[_0x5aaf9b([0x73,0x70,0x6c,0x69,0x74])](_0x5aaf9b([0x2e])))[_0x5aaf9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b421f=>_0x3b421f[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c418f[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5aaf9b([0x6d,0x61,0x70])](_0x2dcd83=>Array(_0x5c418f[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2dcd83[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5aaf9b([0x66,0x69,0x6c,0x6c])](_0x2dcd83[0x0]===_0x5aaf9b([0x2a])?_0x5aaf9b([0x2a]):'')[_0x5aaf9b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2dcd83))[_0x5aaf9b([0x73,0x6f,0x6d,0x65])](_0xb4e851=>_0x5c418f[_0x5aaf9b([0x65,0x76,0x65,0x72,0x79])]((_0x51f040,_0x21a867)=>_0xb4e851[_0x21a867]===_0x51f040||_0xb4e851[_0x21a867]===_0x5aaf9b([0x2a])));}function _0xa6b66a(){return _0x808b7&&_0x49409f?new window[(_0x5aaf9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ff07a,_0x4d5c69)=>{_0x808b7[_0x5aaf9b([0x74,0x68,0x65,0x6e])](_0x2ff07a,_0x4d5c69),_0x49409f[_0x5aaf9b([0x74,0x68,0x65,0x6e])](_0x44d16b=>{_0x44d16b!=_0x5aaf9b([0x56,0x61,0x6c,0x69,0x64])&&_0x2ff07a(_0x44d16b);},_0x4d5c69);}):_0x808b7||_0x49409f||_0x5aaf9b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b9540(_0x4d2f83,_0x1086c0){return new window[(_0x5aaf9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2726ce=>{if(_0x2782d2())return _0x2726ce(_0x5aaf9b([0x56,0x61,0x6c,0x69,0x64]));_0x3445b5(),_0x21a728[_0x5aaf9b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5aaf9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b6e18=!0x1;const _0x13d2b2=_0x5d7c2b();function _0x3bc1ed(_0x5d036c){return!!_0x5d036c&&(typeof _0x5d036c===_0x5aaf9b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d036c===_0x5aaf9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d036c[_0x5aaf9b([0x74,0x68,0x65,0x6e])]===_0x5aaf9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d036c[_0x5aaf9b([0x63,0x61,0x74,0x63,0x68])]===_0x5aaf9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44da04(_0x58ae3e){_0x28f4c1(_0x58ae3e)[_0x5aaf9b([0x74,0x68,0x65,0x6e])](_0x3f7d75=>{if(!_0x3f7d75||_0x3f7d75[_0x5aaf9b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5aaf9b([0x6f,0x6b]))return _0x5aaf9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x286762(_0x52247b(_0x13d2b2+_0x1086c0))!=_0x3f7d75[_0x5aaf9b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5aaf9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5aaf9b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5aaf9b([0x74,0x68,0x65,0x6e])](_0x82a22b=>(_0x2a0631(),_0x82a22b),()=>{const _0x53927b=_0x353b78();return null==_0x53927b?(_0x2a0631(),_0x5aaf9b([0x56,0x61,0x6c,0x69,0x64])):_0x5aaf9b(_0x3550d5-_0x53927b>(0x63ae0106^_0x1c2d43)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5aaf9b([0x74,0x68,0x65,0x6e])](_0x2726ce)[_0x5aaf9b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2726ce(_0x5aaf9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43324e=0x47946b86^_0x1c2d43;function _0x2a0631(){const _0x2eccf1=_0x5aaf9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x286762(_0x52247b(_0x4d2f83)),_0x23a0ca=_0x281737(_0x286762(window[_0x5aaf9b([0x4d,0x61,0x74,0x68])][_0x5aaf9b([0x63,0x65,0x69,0x6c])](_0x3550d5/_0x43324e)));window[_0x5aaf9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aaf9b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eccf1,_0x23a0ca);}function _0x353b78(){const _0xa16ff3=_0x5aaf9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x286762(_0x52247b(_0x4d2f83)),_0x13c219=window[_0x5aaf9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aaf9b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa16ff3);return _0x13c219?window[_0x5aaf9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x281737(_0x13c219),0x10)*_0x43324e:null;}function _0x28f4c1(_0x2dddc4){return new window[(_0x5aaf9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45a4c2,_0x19d389)=>{_0x2dddc4[_0x5aaf9b([0x74,0x68,0x65,0x6e])](_0x45a4c2,_0x19d389),window[_0x5aaf9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19d389,0x47a351c6^_0x1c2d43);});}}_0x21a728[_0x5aaf9b([0x6f,0x6e])](_0x5aaf9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x501fe6,_0x2f37e6)=>{if(_0x2f37e6[0x0]!=_0x4d2f83)return _0x2726ce(_0x5aaf9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f37e6[0x1]={..._0x2f37e6[0x1],[_0x5aaf9b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x13d2b2};},{[_0x5aaf9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aaf9b([0x68,0x69,0x67,0x68])}),_0x21a728[_0x5aaf9b([0x6f,0x6e])](_0x5aaf9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d9f36=>{_0x3bc1ed(_0x3d9f36[_0x5aaf9b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b6e18=!0x0,_0x44da04(_0x3d9f36[_0x5aaf9b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5aaf9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aaf9b([0x6c,0x6f,0x77])}),_0x6cbf55[_0x5aaf9b([0x74,0x68,0x65,0x6e])](()=>{_0x5b6e18||_0x2726ce(_0x5aaf9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2782d2(){return _0x21a728[_0x5aaf9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aaf9b([0x76,0x69,0x65,0x77])][_0x5aaf9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5aaf9b([0x61,0x75,0x74,0x6f]);}function _0x3445b5(){_0x21a728[_0x5aaf9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aaf9b([0x76,0x69,0x65,0x77])][_0x5aaf9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5aaf9b([0x61,0x75,0x74,0x6f]);}}function _0x20aa8c(_0x4dd6a2){const _0x97a278=[new window[(_0x5aaf9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c0a=>setTimeout(_0x2c0a,0x47abbbca^_0x1c2d43)),_0x6cbf55[_0x5aaf9b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5aaf9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e2e42=>{let _0x9f595d=0x0;_0x21a728[_0x5aaf9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aaf9b([0x6f,0x6e])](_0x5aaf9b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fbb72,_0x328a56)=>{_0x328a56[0x0][_0x5aaf9b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9f595d++,_0x9f595d==(0x47a284fe^_0x1c2d43)&&(_0x2e2e42(),_0x2fbb72[_0x5aaf9b([0x6f,0x66,0x66])]());});}))];return window[_0x5aaf9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5aaf9b([0x72,0x61,0x63,0x65])](_0x97a278)[_0x5aaf9b([0x74,0x68,0x65,0x6e])](()=>_0x4dd6a2);}async function _0x5ec81c(){await _0x6cbf55,_0x21a728[_0x5aaf9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aaf9b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b393e,_0x21a728[_0x5aaf9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aaf9b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b393e,_0x21a728[_0x5aaf9b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5aaf9b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbed9f9(_0x137e67){const _0x27c7c9=_0x36de64();_0x21a728[_0x27c7c9]=_0x5aaf9b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x137e67,_0x137e67!=_0x5aaf9b([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec81c();}function _0x36de64(){const _0x534b70=window[_0x5aaf9b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5aaf9b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5aaf9b([0x6e,0x6f,0x77])]())[_0x5aaf9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5aaf9b([0x2e]),'');let _0x5117f9=_0x5aaf9b([0x75]);for(let _0x1b67ac=0x0;_0x1b67ac<_0x534b70[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b67ac+=0x2){let _0x3ca4f4=window[_0x5aaf9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x534b70[_0x5aaf9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b67ac,_0x1b67ac+0x2));_0x3ca4f4>=_0x2e88ee[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ca4f4-=_0x2e88ee[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5117f9+=_0x2e88ee[_0x3ca4f4];}return _0x5117f9;}function _0xf33b53(){const _0x50b6c9=_0x3282bd[_0x5aaf9b([0x73,0x70,0x6c,0x69,0x74])](_0x5aaf9b([0x2e]));if(0x3!=_0x50b6c9[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x593f74(_0x50b6c9[0x1]);function _0x593f74(_0xee9371){const _0x1a3e7e=_0x50b7b3(_0xee9371);return _0x1a3e7e&&_0xaa7d11()?_0x1a3e7e:null;function _0xaa7d11(){const _0x4e43fd=_0x1a3e7e[_0x5aaf9b([0x6a,0x74,0x69])],_0x32db74=window[_0x5aaf9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e43fd[_0x5aaf9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e43fd[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x433bd6={..._0x1a3e7e,[_0x5aaf9b([0x6a,0x74,0x69])]:_0x4e43fd[_0x5aaf9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e43fd[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x433bd6[_0x5aaf9b([0x76,0x63])],_0x52247b(_0x433bd6)==_0x32db74;}}}async function _0x38c096(){let _0x20c708=!0x0;try{const _0x29b910=_0x3282bd[_0x5aaf9b([0x73,0x70,0x6c,0x69,0x74])](_0x5aaf9b([0x2e])),[_0x21b10d,_0x5b782f,_0x17f136]=_0x29b910;return _0x9815bf(_0x21b10d),await _0x393499(_0x21b10d,_0x5b782f,_0x17f136),_0x20c708;}catch{return!0x1;}function _0x9815bf(_0x415093){const _0x4f10a6=_0x50b7b3(_0x415093);_0x4f10a6&&_0x4f10a6[_0x5aaf9b([0x61,0x6c,0x67])]==_0x5aaf9b([0x45,0x53,0x32,0x35,0x36])||(_0x20c708=!0x1);}async function _0x393499(_0x583958,_0x1d541e,_0x531fc1){const _0x385a08=window[_0x5aaf9b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5aaf9b([0x66,0x72,0x6f,0x6d])](_0x483a7d(_0x531fc1),_0x5b656f=>_0x5b656f[_0x5aaf9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11b04f=new window[(_0x5aaf9b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5aaf9b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x583958+_0x5aaf9b([0x2e])+_0x1d541e),_0x3e748a=window[_0x5aaf9b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5aaf9b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e748a)return;const _0x26ce6e=await _0x3e748a[_0x5aaf9b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5aaf9b([0x6a,0x77,0x6b]),_0x31a269,{[_0x5aaf9b([0x6e,0x61,0x6d,0x65])]:_0x5aaf9b([0x45,0x43,0x44,0x53,0x41]),[_0x5aaf9b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5aaf9b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5aaf9b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e748a[_0x5aaf9b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5aaf9b([0x6e,0x61,0x6d,0x65])]:_0x5aaf9b([0x45,0x43,0x44,0x53,0x41]),[_0x5aaf9b([0x68,0x61,0x73,0x68])]:{[_0x5aaf9b([0x6e,0x61,0x6d,0x65])]:_0x5aaf9b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26ce6e,_0x385a08,_0x11b04f)||(_0x20c708=!0x1);}}function _0x50b7b3(_0x2f9ffc){return _0x2f9ffc[_0x5aaf9b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5aaf9b([0x65,0x79]))?JSON[_0x5aaf9b([0x70,0x61,0x72,0x73,0x65])](_0x483a7d(_0x2f9ffc)):null;}function _0x483a7d(_0x2b5bf3){return window[_0x5aaf9b([0x61,0x74,0x6f,0x62])](_0x2b5bf3[_0x5aaf9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5aaf9b([0x2b]))[_0x5aaf9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5aaf9b([0x2f])));}function _0x52247b(_0x34ecd7){let _0x1360f0=0x1505;function _0x368096(_0x14bc03){for(let _0x3c23e5=0x0;_0x3c23e5<_0x14bc03[_0x5aaf9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c23e5++){const _0x41dc79=_0x14bc03[_0x5aaf9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c23e5);_0x1360f0=(_0x1360f0<<0x5)+_0x1360f0+_0x41dc79,_0x1360f0&=_0x1360f0;}}function _0x18f6a8(_0x39ede9){Array[_0x5aaf9b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39ede9)?_0x39ede9[_0x5aaf9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18f6a8):_0x39ede9&&typeof _0x39ede9==_0x5aaf9b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5aaf9b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39ede9)[_0x5aaf9b([0x73,0x6f,0x72,0x74])]()[_0x5aaf9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6e6fbb,_0x9c2f8])=>{_0x368096(_0x6e6fbb),_0x18f6a8(_0x9c2f8);}):_0x368096(window[_0x5aaf9b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39ede9));}return _0x18f6a8(_0x34ecd7),_0x1360f0>>>0x0;}function _0x286762(_0x34ff97){return _0x34ff97[_0x5aaf9b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5aaf9b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5aaf9b([0x30]));}function _0x281737(_0x4b3527){return _0x4b3527[_0x5aaf9b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5aaf9b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5aaf9b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b393e(){}function _0x5aaf9b(_0xfcba38){return _0xfcba38['map'](_0x441d3e=>String['fromCharCode'](_0x441d3e))['join']('');}_0xbed9f9(await _0x3b74d0());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3ba2c3){const {plugins:_0x2d8da6,editing:_0x51ee0e,model:_0x262ce0}=this['editor'],_0x45fe4c=_0x2d8da6['get'](c)['getFootnote'](_0x3ba2c3);return!!_0x45fe4c&&(_0x262ce0['change'](_0x44dada=>{_0x44dada['setSelection'](_0x44dada['createPositionAt'](_0x45fe4c['definition'],'end'));}),_0x51ee0e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x11c863){const {plugins:_0x3af484,editing:_0x5abf04,model:_0x2ca08d}=this['editor'],_0x4f23f0=_0x3af484['get'](c)['getFootnote'](_0x11c863);return!!_0x4f23f0&&(_0x2ca08d['change'](_0x5a062c=>{_0x5a062c['setSelection'](_0x4f23f0['reference'],'on');}),_0x5abf04['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x46024c}=this['editor']['model'],_0x2d17d7=this['editor']['config']['get']('footnotes.multiBlock');_0x46024c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x46024c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x46024c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2d17d7?_0x46024c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x46024c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x46024c['addChildCheck'](_0x58e883=>{for(const _0x5ce7ff of _0x58e883)if('footnoteDefinition'===_0x5ce7ff['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x7ea6a5}=this,{conversion:_0xdda83c,editing:_0x187d4e}=_0x7ea6a5,{t:t}=_0x7ea6a5['locale'];_0xdda83c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x6983e4,{writer:_0x3244d3,consumable:_0x245ad6})=>{const _0x4fe49e=_0x6983e4['getChild'](0x0);if(!_0x4fe49e||!_0x4fe49e['is']('element','a'))return null;const _0xd4d8ad=_0x4fe49e['getAttribute']('href')||'';if(!_0xd4d8ad['startsWith']('#'))return null;const _0x203a9b=_0xd4d8ad['replace'](/^#/,'');if(!_0x203a9b)return null;_0x245ad6['consume'](_0x4fe49e,{'name':!0x0,'attributes':['href']});for(const {item:_0x276dc1}of _0x187d4e['view']['createRangeIn'](_0x4fe49e))_0x276dc1['is']('$textProxy')?_0x245ad6['consume'](_0x276dc1['textNode'],{'name':!0x0}):_0x276dc1['is']('element')&&_0x245ad6['consume'](_0x276dc1,{'name':!0x0});return _0x3244d3['createElement']('footnoteRef',{'footnoteId':_0x203a9b});}}),_0xdda83c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x50ef10,{writer:_0x3ddee9})=>D(_0x50ef10,_0x3ddee9)}),_0xdda83c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4e7afc,{writer:_0x53f189})=>{const _0x397489=_0x4e7afc['getAttribute']('footnoteCounter');return _0x37034d(D(_0x4e7afc,_0x53f189),_0x53f189,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x397489)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c45da}=this,{t:t}=_0x4c45da['locale'],{conversion:_0x5de08d}=_0x4c45da;_0x5de08d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5de08d['for']('upcast')['add'](_0x2f402d=>{_0x2f402d['on']('element:ol',(_0x5e308d,_0x11ff24,_0x3eba07)=>{const _0x4a2288=_0x11ff24['viewItem'];_0x4a2288['hasClass']('footnotes-list')&&_0x11ff24['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3eba07['consumable']['consume'](_0x4a2288,{'classes':'footnotes-list'});}),_0x2f402d['on']('element:hr',(_0x1946bd,_0x4e8912,_0x278586)=>{const _0x345d18=_0x4e8912['viewItem'];_0x345d18['hasClass']('footnotes-divider')&&_0x4e8912['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x278586['consumable']['consume'](_0x345d18,{'classes':'footnotes-divider'});});}),_0x5de08d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5b2dc9,{writer:_0x1a6ca3})=>g(_0x1a6ca3)}),_0x5de08d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1f1eeb,{writer:_0x4be8a4})=>{const _0x5072cb=g(_0x4be8a4,{'data-footnotes-list-label':t('Footnotes')}),_0x56ed5a=_0x37034d(_0x5072cb,_0x4be8a4,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4be8a4['setCustomProperty']('footnotesDefinitions',!0x0,_0x56ed5a),_0x56ed5a;}});}['_defineDefinitionConverters'](){const {editor:_0x426f38}=this,{conversion:_0x308aa4,locale:_0x4edb43}=_0x426f38,_0xdf2d4d=_0x426f38['config']['get']('footnotes.multiBlock');_0x308aa4['for']('upcast')['add'](_0x474260=>{_0x474260['on']('element:li',(_0x1e8f53,_0x33ccfb,_0x2ab930)=>{const _0x4ba3fc=_0x33ccfb['viewItem'];if(!_0x4ba3fc['hasClass']('footnote-definition')||!_0x4ba3fc['getAttribute']('id'))return;const _0x8357da=_0x4ba3fc['parent'];if(!_0x8357da['is']('element','ol')||!_0x8357da['hasClass']('footnotes-list'))return;if(!_0x2ab930['consumable']['test'](_0x4ba3fc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x377916=_0x2ab930['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4ba3fc['getAttribute']('id')});if(!_0x2ab930['safeInsert'](_0x377916,_0x33ccfb['modelCursor']))return;_0x2ab930['consumable']['consume'](_0x4ba3fc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2275e9=Array['from'](_0x4ba3fc['getChildren']())['find'](_0x22d3d6=>_0x22d3d6['is']('element')&&_0x22d3d6['hasClass']('footnote-content'));for(const _0x5c2d68 of _0x4ba3fc['getChildren']())_0x5c2d68['is']('element')&&(_0x2ab930['consumable']['consume'](_0x5c2d68,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ab930['consumable']['consume'](_0x5c2d68,{'name':!0x0,'classes':'footnote-content'}));if(_0x2275e9){if(_0xdf2d4d)_0x2ab930['convertChildren'](_0x2275e9,_0x377916);else{const _0x1716e0=_0x2ab930['writer']['createElement']('footnoteInlineContent');_0x2ab930['writer']['insert'](_0x1716e0,_0x377916),_0x2ab930['convertChildren'](_0x2275e9,_0x1716e0);}}_0x2ab930['updateConversionResult'](_0x377916,_0x33ccfb);});}),_0x308aa4['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xc47804,{writer:_0x211426})=>v(_0xc47804,_0x211426,_0x4edb43,{'dataPipeline':!0x0})}),_0x308aa4['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x311390,{writer:_0x510468})=>v(_0x311390,_0x510468,_0x4edb43)});}['_defineBogusParagraphConverters'](){const {editor:_0x29b288}=this,{conversion:_0x8cd0}=_0x29b288;_0x29b288['config']['get']('footnotes.multiBlock')?(_0x8cd0['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x8cd0['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x29b288['model']['document'],'change:data',()=>{!function(_0x32678b,_0x9e0eeb){const _0x10c27a=_0x32678b['document']['differ'],_0x544ecc=new Set();for(const _0x3f59f1 of _0x10c27a['getChanges']()){const _0x660095='attribute'==_0x3f59f1['type']?_0x3f59f1['range']['start']['parent']:_0x3f59f1['position']['parent'];_0x660095['is']('element','footnoteDefinition')&&_0x544ecc['add'](_0x660095);}for(const _0x3293c9 of _0x544ecc['values']()){const _0x337d62=Array['from'](_0x3293c9['getChildren']())['filter'](_0x703db6=>p(_0x703db6,_0x9e0eeb['mapper']));for(const _0x1a8945 of _0x337d62)_0x9e0eeb['reconvertItem'](_0x1a8945);}}(_0x29b288['model'],_0x29b288['editing']);})):(_0x8cd0['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x8cd0['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4db609,{writer:_0x10033e})=>{const _0x3404cc=_0x10033e['createContainerElement']('span');return _0x10033e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3404cc),_0x3404cc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1c3ac8}=this,{editing:_0x491e15,t:t}=_0x1c3ac8,_0x1b6abf=_0x1c3ac8['model']['document']['selection'];_0x1c3ac8['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x1c3ac8['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x491e15['view']['document'],'enter',(_0x23dd1a,_0x1ae028)=>{const _0x458d2e=function(_0x21f4cc){const _0x28a729=_0x21f4cc['getSelectedElement']();if(_0x28a729?.['is']('element','footnoteRef'))return _0x28a729;return null;}(_0x1b6abf);if(_0x458d2e){const _0x473b1f=_0x458d2e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x473b1f),_0x1ae028['preventDefault'](),_0x23dd1a['stop']();}},{'context':_0x220573});}['_defineClickHandlers'](){const {editor:_0x197727}=this,{editing:_0x4da1e2}=_0x197727;_0x197727['editing']['view']['addObserver'](_0x5b77da),_0x197727['editing']['view']['addObserver'](_0x6dc02c);let _0x16c0dd=!0x1;this['listenTo'](_0x4da1e2['view']['document'],'pointerdown',(_0x5cdce7,_0x41f987)=>{const {target:_0x24674e}=_0x41f987,_0x3a9a9e=_0x4da1e2['view']['document']['selection'];_0x16c0dd=!(!_0x24674e['is']('element','sup')||!_0x24674e['hasClass']('footnote'))&&_0x3a9a9e['getSelectedElement']()===_0x24674e;},{'priority':'high'}),this['listenTo'](_0x4da1e2['view']['document'],'click',(_0x1190ae,_0x342900)=>{const {target:_0x152db8}=_0x342900,_0x5eb6cb=_0x152db8['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x5eb6cb['slice'](0x1)),_0x1190ae['stop'](),_0x342900['preventDefault']();},{'priority':'high','context':_0x250407=>_0x250407['is']('element','sup')&&_0x250407['hasClass']('footnote')&&_0x16c0dd}),this['listenTo'](_0x4da1e2['view']['document'],'click',(_0x1509be,_0x1d1ccc)=>{const {target:_0x4d0c27}=_0x1d1ccc;if(!_0x4d0c27['is']('element','a'))return;let _0x300383=_0x4d0c27['getAttribute']('href');if(!_0x300383?.['startsWith']('#'))return;_0x300383=_0x300383['slice'](0x1);let _0x43488a=!0x1;(_0x300383['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x300383['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x300383))&&(_0x43488a=!0x0),_0x43488a&&(_0x1d1ccc['preventDefault'](),_0x1509be['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x4029ef}={}){return(_0x117093,{writer:_0xca025})=>{if(!h(_0x117093))return null;if(!_0x4029ef)return _0xca025['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x30b4de=_0xca025['createContainerElement']('p');return _0xca025['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x30b4de),_0x30b4de;};}function h(_0x4181c0){const {parent:_0x7a9738}=_0x4181c0;if(!_0x7a9738?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x7a9738['childCount'])return!0x1;for(const _0x34a4e2 of _0x4181c0['getAttributeKeys']())if(!_0x34a4e2['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x34a4e2)return!0x1;return!0x0;}function p(_0x315681,_0x5dd871){if(!_0x315681['is']('element','paragraph'))return!0x1;const _0x5a36c6=_0x5dd871['toViewElement'](_0x315681);return!!_0x5a36c6&&h(_0x315681)!==_0x5a36c6['is']('element','span');}function J(_0xf76d94){return _0x220573(_0xf76d94)&&_0xf76d94['is']('containerElement')&&!!_0xf76d94['getCustomProperty']('footnotesDefinitions');}function g(_0x38eb31,_0x5efd4b={}){const _0x380f76=_0x38eb31['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x163ad2=_0x38eb31['createContainerElement']('ol',{'class':'footnotes-list'},_0x38eb31['createSlot']());return _0x38eb31['createContainerElement']('div',{'class':'footnotes',..._0x5efd4b},[_0x380f76,_0x163ad2]);}function D(_0x5b910b,_0x250aa1){const _0x5803da=_0x5b910b['getAttribute']('footnoteId'),_0x4ce9ed=_0x5b910b['getAttribute']('footnoteCounter'),_0x1f34f3=_0x250aa1['createUIElement']('a',{'href':'#'+_0x5803da},function(_0x19accc){const _0xb65407=this['toDomElement'](_0x19accc);return _0xb65407['textContent']=_0x4ce9ed,_0xb65407;}),_0x31f39f=_0x250aa1['createContainerElement']('sup',{'id':'ref-'+_0x5803da,'class':'footnote'},[_0x1f34f3]);return _0x31f39f['getFillerOffset']=()=>null,_0x31f39f;}function v(_0x3477b2,_0x5109ce,_0x579365,{dataPipeline:_0x28b7f2}={}){const {t:t}=_0x579365,_0x58736d=_0x3477b2['getAttribute']('footnoteId'),_0x723885=_0x5109ce['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x58736d},function(_0x5928ec){const _0x32db9e=this['toDomElement'](_0x5928ec);return _0x32db9e['innerText']='^',_0x32db9e;}),_0x29ce76=_0x28b7f2?_0x5109ce['createContainerElement']('div',{'class':'footnote-content'}):_0x37a3ea(_0x5109ce['createEditableElement']('div',{'class':'footnote-content'}),_0x5109ce,{'label':t('Footnote\x20content.')});return _0x5109ce['insert'](_0x5109ce['createPositionAt'](_0x29ce76,0x0),_0x5109ce['createSlot']()),_0x5109ce['createContainerElement']('li',{'class':'footnote-definition','id':_0x58736d},[_0x723885,_0x29ce76]);}class e extends _0x67fa18{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x305e19];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2d8207}=this,{plugins:_0x5500b6,model:_0x408beb}=_0x2d8207,_0x5ce9e8=_0x5500b6['get'](_0x305e19),_0x1cfaeb=_0x5500b6['get'](c);this['listenTo'](_0x5ce9e8,'outputTransformation',(_0x320796,_0x12a302)=>{const _0x48f0f0=function(_0x582a71,_0x41521a){const _0x43287f=new Set();for(const {item:_0x4c0a4d}of _0x582a71['createRangeIn'](_0x41521a))_0x4c0a4d['is']('element','footnoteRef')&&_0x43287f['add'](_0x4c0a4d['getAttribute']('footnoteId'));return Array['from'](_0x43287f);}(_0x408beb,_0x12a302['content']);if(!_0x48f0f0['length'])return;const _0x473061=_0x1cfaeb['getFootnotes'](),_0x4aaee6=_0x48f0f0['reduce']((_0x5627f7,_0x50b1f2)=>{const _0x410106=_0x473061['find'](_0x261f80=>_0x261f80['id']===_0x50b1f2);if(_0x410106){const _0x256294=_0x2d8207['data']['toView'](_0x410106['definition'],{'isClipboardPipeline':!0x0}),_0x8dd2ba=_0x2d8207['data']['htmlProcessor']['toData'](_0x256294);_0x5627f7[_0x410106['id']]=_0x8dd2ba;}return _0x5627f7;},Object['create'](null));_0x12a302['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4aaee6));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1686fa}=this,{model:_0x1ce953,plugins:_0xd39cc4}=_0x1686fa,{view:_0x4d8a3f}=_0x1686fa['editing'],_0x16c200=_0xd39cc4['get'](_0x305e19),_0x2dc876=_0xd39cc4['get'](c);let _0x34dd34=null;this['listenTo'](_0x4d8a3f['document'],'clipboardInput',(_0x30fa74,_0x578d74)=>{const _0xdd8c20=_0x578d74['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x34dd34=_0xdd8c20?JSON['parse'](_0xdd8c20):null;}),this['listenTo'](_0x16c200,'contentInsertion',(_0xf23a52,_0x39b86f)=>{if(!_0x34dd34)return;const _0x23864c=_0x39b86f['sourceEditorId']===this['editor']['id'];_0x23864c&&'drop'===_0x39b86f['method']||_0x1ce953['change'](_0x30fa47=>{!function(_0x378471,_0x2bfdf9){const _0x41e2a4=[];for(const {item:_0x607e14}of _0x378471['createRangeIn'](_0x2bfdf9))_0x607e14['is']('element','footnotesDefinitions')&&_0x41e2a4['push'](_0x607e14);for(const _0x3a2a07 of _0x41e2a4)_0x378471['remove'](_0x3a2a07);}(_0x30fa47,_0x39b86f['content']);let _0x1203ea=_0x2dc876['getFootnotesDefinitionsObjectElement']();if(!_0x1203ea){const _0x26bda3=_0x1ce953['document']['selection']['getFirstRange']()['root'];_0x1203ea=_0x2dc876['_insertEmptyFootnotesDefinitionsContainer'](_0x30fa47,_0x26bda3);}const _0x3c41c2=function(_0x5cf62e,_0x384bee,_0x566a8c){const _0x4a54b3=Object['create'](null);for(const {item:_0x10c528}of _0x5cf62e['createRangeIn'](_0x384bee))if(_0x10c528['is']('element','footnoteRef')){const _0x5d8734=_0x10c528['getAttribute']('footnoteId');if(!_0x566a8c(_0x5d8734))continue;_0x4a54b3[_0x5d8734]||(_0x4a54b3[_0x5d8734]=_0x5d7c2b()),_0x5cf62e['setAttribute']('footnoteId',_0x4a54b3[_0x5d8734],_0x10c528);}return _0x4a54b3;}(_0x30fa47,_0x39b86f['content'],_0x11189d=>!_0x23864c||null!==_0x2dc876['getFootnote'](_0x11189d));for(const [_0x2e96d7,_0x5b931f]of Object['entries'](_0x34dd34)){const _0x99d1de=_0x3c41c2[_0x2e96d7]||_0x2e96d7,_0x5aaae6=_0x30fa47['createElement']('footnoteDefinition',{'footnoteId':_0x99d1de}),_0x25f5be=_0x1686fa['data']['htmlProcessor']['toView'](_0x5b931f),_0x487ce0=_0x1686fa['data']['toModel'](_0x25f5be,_0x5aaae6);_0x30fa47['append'](_0x487ce0,_0x5aaae6),_0x30fa47['insert'](_0x5aaae6,_0x1203ea,'end');}_0x34dd34=null;});});}}class i extends _0x67fa18{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x507b32}=this,{componentFactory:_0x3c4aea}=_0x507b32['ui'];_0x3c4aea['add']('insertFootnote',x(_0x507b32,_0xa0f411)),_0x3c4aea['add']('menuBar:insertFootnote',x(_0x507b32,_0x3ee175)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x253d12=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x318a65;for(const _0x1bf7b4 in _0x253d12){const _0x5734bc=_0x1bf7b4,_0x5810dd=_0x253d12[_0x5734bc];if('footnotesLicenseKeyValid'==_0x5810dd||'footnotesLicenseKeyInvalid'==_0x5810dd||'footnotesLicenseKeyExpired'==_0x5810dd||'footnotesLicenseKeyDomainLimit'==_0x5810dd||'footnotesLicenseKeyNotAllowed'==_0x5810dd||'footnotesLicenseKeyEvaluationLimit'==_0x5810dd||'footnotesLicenseKeyTrialLimit'==_0x5810dd||'footnotesLicenseKeyUsageLimit'==_0x5810dd){delete _0x253d12[_0x5734bc],_0x318a65=_0x5810dd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x318a65&&_0x253d12['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x318a65&&_0x253d12['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x318a65&&_0x253d12['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x318a65&&_0x253d12['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x318a65&&_0x253d12['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x318a65&&_0x253d12['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x318a65&&_0x253d12['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x3cf44a,_0x14317f){const _0x22071c=_0x3cf44a['commands']['get']('insertFootnote');return _0x17f0ce=>{const {t:t}=_0x17f0ce,_0x3e0bf4=new _0x14317f(_0x17f0ce),_0x2fb6de=_0x3e0bf4 instanceof _0x3ee175;return _0x3e0bf4['bind']('isEnabled')['to'](_0x22071c,'isEnabled'),_0x3e0bf4['set']({'label':t(_0x2fb6de?'Footnote':'Insert\x20footnote'),'icon':_0x1bfccd,'tooltip':!0x0}),_0x3e0bf4['on']('execute',()=>{_0x22071c['execute'](),_0x3cf44a['editing']['view']['focus']();}),_0x3e0bf4;};}class nt extends _0x67fa18{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 _0x198599{['refresh'](){const {editor:_0x4ee5ff}=this,_0xe034dd=_0x4ee5ff['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xe034dd,this['value']=_0xe034dd?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x356cb1}){const {editor:_0x26df87}=this,_0x4b042d=_0x26df87['plugins']['get'](c),_0x17e3d5=_0x4b042d['getFootnotesDefinitionsObjectElement']();_0x17e3d5&&Q['includes'](_0x356cb1)&&_0x26df87['model']['change'](_0x5cc658=>{_0x5cc658['setAttribute']('footnotesListStyle',_0x356cb1,_0x17e3d5),_0x4b042d['_updateFootnotesCounters'](_0x5cc658);});}}class b extends _0x198599{['refresh'](){const {editor:_0xbd1246}=this,_0x3b1ed0=_0xbd1246['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3b1ed0,this['value']=_0x3b1ed0?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x6d4681}){const {editor:_0x59756b}=this,_0x4d990a=_0x59756b['plugins']['get'](c),_0x440a09=_0x4d990a['getFootnotesDefinitionsObjectElement']();_0x440a09&&Number['isInteger'](_0x6d4681)&&_0x59756b['model']['change'](_0x1fc29d=>{_0x1fc29d['setAttribute']('footnotesListStart',_0x6d4681,_0x440a09),_0x4d990a['_updateFootnotesCounters'](_0x1fc29d);});}}class P extends _0x67fa18{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb11212}=this;_0xb11212['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0xb11212['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0xb11212['commands']['add']('footnotesStyle',new S(_0xb11212)),_0xb11212['commands']['add']('footnotesStart',new b(_0xb11212)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x183c98}=this,{schema:_0x406720}=_0x183c98['model'];_0x406720['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x502f1b}=this,{conversion:_0x31eacb,model:_0x56bf36}=_0x502f1b,{schema:_0x36daac}=_0x56bf36;_0x31eacb['for']('upcast')['add'](_0x1eb7ab=>{_0x1eb7ab['on']('element:ol',(_0xa7624c,_0x5e671a,_0x1cf3ab)=>{const _0x17dcd1=_0x5e671a['viewItem'],_0x16bd71=_0x5e671a['modelCursor']?.['parent'];_0x17dcd1['hasClass']('footnotes-list')&&_0x16bd71?.['is']('element','footnotesDefinitions')&&(function(_0x55342e,_0xc0f7a4,_0x1721ea,_0x4cb49a){if(!_0x4cb49a['checkAttribute'](_0xc0f7a4,'footnotesListStart'))return;let _0x21f996=0x1;if(_0x55342e['hasAttribute']('start')){const _0x5661b6=Number['parseInt'](_0x55342e['getAttribute']('start'),0xa);Number['isNaN'](_0x5661b6)||(_0x21f996=_0x5661b6),_0x1721ea['consumable']['consume'](_0x55342e,{'attributes':'start'});}_0x1721ea['writer']['setAttribute']('footnotesListStart',_0x21f996,_0xc0f7a4);}(_0x17dcd1,_0x16bd71,_0x1cf3ab,_0x36daac),function(_0x3e49c6,_0x574f51,_0x5d44e7,_0x601c18){if(!_0x601c18['checkAttribute'](_0x574f51,'footnotesListStyle'))return;let _0x1e2eff='decimal';if(_0x3e49c6['hasAttribute']('type')){const _0x1fd2cb={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x3e49c6['getAttribute']('type')];_0x1fd2cb&&(_0x1e2eff=_0x1fd2cb),_0x5d44e7['consumable']['consume'](_0x3e49c6,{'attributes':'type'});}_0x3e49c6['hasStyle']('list-style-type')&&(_0x1e2eff=_0x3e49c6['getStyle']('list-style-type'),_0x5d44e7['consumable']['consume'](_0x3e49c6,{'styles':'list-style-type'})),_0x5d44e7['writer']['setAttribute']('footnotesListStyle',_0x1e2eff,_0x574f51);}(_0x17dcd1,_0x16bd71,_0x1cf3ab,_0x36daac));});}),_0x31eacb['for']('downcast')['add'](_0x5f3888=>{_0x5f3888['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x51e488,_0x2a2e68,_0x5a82db)=>{if(!_0x5a82db['consumable']['consume'](_0x2a2e68['item'],_0x51e488['name']))return;const _0x1fd33f=C(_0x2a2e68['item'],_0x5a82db['mapper']),{attributeNewValue:_0x27818a}=_0x2a2e68;null==_0x27818a||0x1===_0x27818a?_0x5a82db['writer']['removeAttribute']('start',_0x1fd33f):_0x5a82db['writer']['setAttribute']('start',String(_0x27818a),_0x1fd33f);}),_0x5f3888['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x61a20,_0x1eab5f,_0x2a6e54)=>{if(!_0x2a6e54['consumable']['consume'](_0x1eab5f['item'],_0x61a20['name']))return;const _0x41e75c=C(_0x1eab5f['item'],_0x2a6e54['mapper']),{attributeNewValue:_0x202361}=_0x1eab5f;_0x202361&&'decimal'!==_0x202361?_0x2a6e54['writer']['setStyle']('list-style-type',_0x202361,_0x41e75c):_0x2a6e54['writer']['removeStyle']('list-style-type',_0x41e75c);});});}['_definePostfixer'](){const {editor:_0x1f70ac}=this,{model:_0x5bfcca}=_0x1f70ac,_0xc0e85d=_0x1f70ac['plugins']['get'](c),_0x1faeba=this['_getDefaultListStyle'](),_0x36f40d=this['_getDefaultStartIndex']();_0x5bfcca['document']['registerPostFixer'](_0x321ec5=>{const _0x4ef504=_0x5bfcca['document']['differ']['getChanges']();let _0x18c457=!0x1;for(const _0x52e654 of _0x4ef504){if('insert'!==_0x52e654['type']||'$text'===_0x52e654['name'])continue;const _0xc45ad9=_0x5bfcca['createRangeOn'](_0x52e654['position']['nodeAfter']);for(const _0x2d57ab of _0xc45ad9['getItems']())_0x2d57ab['is']('element','footnotesDefinitions')&&(!_0x2d57ab['hasAttribute']('footnotesListStart')&&_0x5bfcca['schema']['checkAttribute'](_0x2d57ab,'footnotesListStart')&&(_0x321ec5['setAttribute']('footnotesListStart',_0x36f40d,_0x2d57ab),_0x18c457=!0x0),!_0x2d57ab['hasAttribute']('footnotesListStyle')&&_0x5bfcca['schema']['checkAttribute'](_0x2d57ab,'footnotesListStyle')&&(_0x321ec5['setAttribute']('footnotesListStyle',_0x1faeba,_0x2d57ab),_0x18c457=!0x0));}return _0x18c457&&_0xc0e85d['_updateFootnotesCounters'](_0x321ec5),_0x18c457;});}['_defineFormatter'](){const {editor:_0x36961c}=this;_0x36961c['plugins']['get'](c)['setFootnoteFormatter'](_0x21cd74=>this['_formatFootnoteListValue'](_0x21cd74));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x155852,value:_0x1b8996,digits:_0x58764f}){const _0x504d38=_0x155852['getAttribute']('footnotesListStyle'),_0x4ac29b=_0x155852['getAttribute']('footnotesListStart'),_0xa05f5b=Math['floor'](_0x1b8996)+(_0x4ac29b??0x1)-0x1;switch(_0x504d38){case'decimal-leading-zero':return function(_0x112775,_0x160b87){return String(_0x112775)['padStart'](_0x160b87,'0');}(_0xa05f5b,Math['max'](0x2,_0x58764f));case'lower-alpha':case'lower-latin':return M(_0xa05f5b,!0x1);case'upper-alpha':case'upper-latin':return M(_0xa05f5b,!0x0);case'lower-roman':return V(_0xa05f5b,!0x1);case'upper-roman':return V(_0xa05f5b,!0x0);default:return String(_0xa05f5b);}}}function C(_0x23bef0,_0x392599){const _0x4c2fe7=_0x392599['toViewElement'](_0x23bef0);return Array['from'](_0x4c2fe7['getChildren']())['find'](_0x24f0cf=>_0x24f0cf['is']('element','ol')&&_0x24f0cf['hasClass']('footnotes-list'));}function M(_0x40fa7a,_0x12d618){let _0x27f2be='',_0x38ea2c=_0x40fa7a;for(;_0x38ea2c>0x0;){const _0x25bdf5=(_0x38ea2c-0x1)%0x1a;_0x27f2be=String['fromCharCode'](0x61+_0x25bdf5)+_0x27f2be,_0x38ea2c=Math['floor']((_0x38ea2c-0x1)/0x1a);}return _0x12d618?_0x27f2be['toUpperCase']():_0x27f2be;}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(_0x36fa24,_0x3d500){let _0x28a0e8='',_0x36bcdb=_0x36fa24;for(const {value:_0x2462b9,numeral:_0x43f0d6}of N)for(;_0x36bcdb>=_0x2462b9;)_0x28a0e8+=_0x43f0d6,_0x36bcdb-=_0x2462b9;return _0x3d500?_0x28a0e8:_0x28a0e8['toLowerCase']();}class H extends _0x58cbe3{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x1bc3d7();['focusCycler'];constructor(_0x1b4ce3,{styleButtonViews:_0x24a6bd,styleGridAriaLabel:_0x35cdac}){super(_0x1b4ce3),(this['focusCycler']=new _0x43c6cc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x24a6bd,_0x35cdac),[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 _0x3c2d39 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3c2d39['element']);_0x1c7d6b({'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 _0xd80225=_0x435237=>_0x435237['stopPropagation']();this['keystrokes']['set']('arrowright',_0xd80225),this['keystrokes']['set']('arrowleft',_0xd80225),this['keystrokes']['set']('arrowup',_0xd80225),this['keystrokes']['set']('arrowdown',_0xd80225);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2dfc36,_0x50e5af){const _0x47c979=new _0x58cbe3(this['locale']);return _0x47c979['children']=_0x47c979['createCollection'](),_0x47c979['children']['addMany'](_0x2dfc36),_0x47c979['setTemplate']({'tag':'div','attributes':{'aria-label':_0x50e5af,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x47c979['children']}),_0x47c979['children']['delegate']('execute')['to'](this),_0x47c979['focus']=function(){for(const _0x529d9e of this['children'])if(_0x529d9e instanceof _0xa0f411&&_0x529d9e['isOn'])return void _0x529d9e['focus']();this['children']['first']['focus']();},_0x47c979['focusTracker']=new et(),_0x47c979['keystrokes']=new ot(),_0x47c979['render'](),_0x47c979['keystrokes']['listenTo'](_0x47c979['element']),this['children']['add'](_0x47c979),_0x47c979;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x8aa199=this['_createStartIndexPropertyView'](),_0x2a2477=[_0x8aa199],_0x259636=new tt(this['locale'],_0x2a2477);return _0x259636['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x259636['buttonView']['bind']('isEnabled')['toMany'](_0x2a2477,'isEnabled',(..._0x5577e4)=>_0x5577e4['some'](_0x130a11=>_0x130a11)),_0x259636['buttonView']['on']('change:isEnabled',(_0x1bf851,_0x226f5f,_0x3a219e)=>{_0x3a219e||(_0x259636['isCollapsed']=!0x0);}),this['children']['add'](_0x259636),[_0x8aa199,_0x259636];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x594bf9=new st(this['locale'],it);return _0x594bf9['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x594bf9['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x594bf9['fieldView']['on']('input',()=>{const _0x468f61=_0x594bf9['fieldView']['element'],_0x5e0ba7=_0x468f61['valueAsNumber'];Number['isNaN'](_0x5e0ba7)?_0x594bf9['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x468f61['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5e0ba7}):_0x594bf9['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x594bf9;}}class j extends _0x67fa18{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4f7453,_0x3dd184];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c656b}=this,{componentFactory:_0x230241}=_0x2c656b['ui'];_0x2c656b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x230241['add']('footnotesStyle',function(_0x59c820){return _0x4c8e75=>{const {t:t}=_0x4c8e75,_0x38ef39=_0x59c820['commands']['get']('footnotesStyle'),_0x4b3d19=_0x517135(_0x4c8e75),{buttonView:_0x517be4}=_0x4b3d19;return _0x4b3d19['class']='ck-footnotes-styles-dropdown',_0x4b3d19['bind']('isEnabled')['to'](_0x38ef39,'isEnabled'),_0x517be4['set']({'label':t('Footnotes\x20style'),'icon':_0x1bfccd,'tooltip':!0x0}),_0x4b3d19['once']('change:isOpen',()=>{const _0x90842d=function({editor:_0x163f40,dropdownView:_0x33d681}){const {t:t}=_0x163f40['locale'],_0x3434bd=t('Footnotes\x20definitions\x20styles'),_0x1ad770=function(_0x172c24){const t=_0x172c24['locale']['t'],_0x15c50d=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x59f3ef},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x46566d},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x46bade},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1df5b6},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x47474d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xfaceb9}];return _0x15c50d['map'](function(_0x28b787){const _0x3a2d3e=_0x28b787['locale'];return({label:_0x3f5ac3,icon:_0x1eb5b5,tooltip:_0x4cd2f7,style:_0xfe8a4b})=>{const _0x335923=_0x28b787['commands']['get']('footnotesStyle'),_0x35a797=new _0xa0f411(_0x3a2d3e);return _0x35a797['set']({'label':_0x3f5ac3,'icon':_0x1eb5b5,'tooltip':_0x4cd2f7}),_0x35a797['bind']('isOn')['to'](_0x335923,'value',_0x4c9e09=>_0x4c9e09===_0xfe8a4b),_0x35a797['bind']('isEnabled')['to'](_0x335923,'isEnabled'),_0x35a797['on']('execute',()=>{_0x28b787['execute']('footnotesStyle',{'value':_0xfe8a4b}),_0x28b787['editing']['view']['focus']();}),_0x35a797;};}(_0x172c24));}(_0x163f40),_0x1c2e6c=new H(_0x163f40['locale'],{'styleGridAriaLabel':_0x3434bd,'styleButtonViews':_0x1ad770});return _0x1c2e6c['delegate']('execute')['to'](_0x33d681),_0x1c2e6c['on']('footnotesListStart',(_0x3aa0f7,_0x23f077)=>{_0x163f40['execute']('footnotesStart',{'value':_0x23f077['startIndex']});}),_0x1c2e6c;}({'editor':_0x59c820,'dropdownView':_0x4b3d19});_0x4b3d19['panelView']['children']['add'](_0x90842d);}),_0x4b3d19;};}(_0x2c656b));}['afterInit'](){const {editor:_0x45b97a}=this,{t:t}=_0x45b97a['locale'],_0x4c1e61=_0x45b97a['plugins']['get'](_0x3dd184),{defaultPositions:_0x55ba1b}=_0x4fd0e9;_0x4c1e61['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x45b97a['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xe016f8=>{let _0x389a3f=_0xe016f8['getFirstPosition']()?.['parent'];return _0x389a3f?.['is']('$text')&&(_0x389a3f=_0x389a3f['parent']),_0x389a3f?.['is']('element')?_0x389a3f['findAncestor'](J):null;},'positions':[_0x55ba1b['southArrowNorth'],_0x55ba1b['southArrowNorthMiddleWest'],_0x55ba1b['southArrowNorthMiddleEast'],_0x55ba1b['southArrowNorthWest'],_0x55ba1b['southArrowNorthEast'],_0x55ba1b['northArrowSouth'],_0x55ba1b['northArrowSouthMiddleWest'],_0x55ba1b['northArrowSouthMiddleEast'],_0x55ba1b['northArrowSouthWest'],_0x55ba1b['northArrowSouthEast'],_0x55ba1b['viewportStickyNorth']]});}}class lt extends _0x67fa18{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 _0xcea80,Command as _0x214dfd}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x30b5e5,isWidget as _0x1e7fed,toWidgetEditable as _0x20cb5c,WidgetToolbarRepository as _0x363de1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x146a2d,logWarning as _0x4fc5ac,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x82adbf,ClickObserver as _0x1bdbc0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5acdbd}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x129cf5,ButtonView as _0x1d8b5f,View as _0x5b7187,ViewCollection as _0x4feebe,FocusCycler as _0xcde62c,addKeyboardHandlingForGrid as _0x3d2f80,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x2321b8,BalloonPanelView as _0x41aa3f,createDropdown as _0x17c049}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3be37e,IconListStyleDecimal as _0x565230,IconListStyleDecimalLeadingZero as _0x4fc1f9,IconListStyleLowerRoman as _0x517c41,IconListStyleUpperRoman as _0x1ceb52,IconListStyleLowerLatin as _0xd9e409,IconListStyleUpperLatin as _0x226891}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x1f2bf4,_0x32475f){this['_model']=_0x1f2bf4,this['_elementName']=_0x32475f['elementName'],this['_getElementKey']=_0x32475f['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xde0554){const _0x5942e8=new Set(),_0x5d4d18=new Map();for(const _0x1710e9 of _0xde0554){if('insert'===_0x1710e9['type']&&'$text'!==_0x1710e9['name']&&_0x1710e9['position']['nodeAfter']){const _0x2b1560=this['_model']['createRangeOn'](_0x1710e9['position']['nodeAfter']);for(const _0x4ed06a of _0x2b1560['getItems']()){if(!_0x4ed06a['is']('element',this['_elementName']))continue;const _0x2dec14=this['_getElementKey'](_0x4ed06a);_0x5d4d18['has'](_0x2dec14)||_0x5d4d18['set'](_0x2dec14,[]),_0x5d4d18['get'](_0x2dec14)['push'](_0x4ed06a);}}if('remove'===_0x1710e9['type']&&_0x1710e9['name']===this['_elementName']){const _0x5126db=this['_getElementKey']({'getAttribute':_0x1185ba=>_0x1710e9['attributes']['get'](_0x1185ba)});_0x5942e8['add'](_0x5126db);}}for(const [_0x4312c7,_0x43923e]of this['_trackedElements'])'$graveyard'===_0x43923e['root']['rootName']&&_0x5942e8['add'](_0x4312c7);for(const _0xf92591 of _0x5942e8)this['_trackedElements']['delete'](_0xf92591);for(const [_0x4d069a,_0x31acdb]of _0x5d4d18)this['_trackedElements']['set'](_0x4d069a,_0x31acdb[_0x31acdb['length']-0x1]);const _0x46b5ee=new Set();for(const [_0x455847,_0x5dd2f3]of _0x5d4d18)_0x5942e8['has'](_0x455847)&&(_0x46b5ee['add'](_0x5dd2f3[0x0]),_0x5dd2f3['length']>0x1?_0x5d4d18['set'](_0x455847,_0x5dd2f3['slice'](0x1)):_0x5d4d18['delete'](_0x455847),_0x5942e8['delete'](_0x455847));return{'removed':Array['from'](_0x5942e8),'inserted':Array['from'](_0x5d4d18['values']())['flat'](),'moved':Array['from'](_0x46b5ee)};}}class c extends _0xcea80{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57c637){super(_0x57c637),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x44c27f=>_0x44c27f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1347df=>_0x1347df['getAttribute']('footnoteId')});}['init'](){const {editor:_0x58edb5}=this,{model:_0x2ae28c,data:_0x5ea262}=_0x58edb5;_0x2ae28c['document']['registerPostFixer'](_0x46acf5=>{const _0x48ffc0=_0x2ae28c['document']['differ']['getChanges']();let _0x5b73de=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x46acf5,_0x48ffc0)&&(_0x5b73de=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x46acf5,_0x48ffc0)&&(_0x5b73de=!0x0),this['_handleFootnoteReferencesChanges'](_0x46acf5,_0x48ffc0)&&(_0x5b73de=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x46acf5)&&(_0x5b73de=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x46acf5)&&(_0x5b73de=!0x0),this['_sortFootnoteDefinitions'](_0x46acf5)&&(_0x5b73de=!0x0),_0x5b73de;}),this['listenTo'](_0x2ae28c['document'],'change:data',()=>{_0x2ae28c['enqueueChange']({'isUndoable':!0x1},_0x339296=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x339296);});},{'priority':'low'}),this['listenTo'](_0x5ea262,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0xe64394){return this['_footnotes']['find'](_0xb4a9ec=>_0xb4a9ec['id']===_0xe64394)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4e1c7a){this['_footnoteFormatter']=_0x4e1c7a;}['_updateFootnotesCounters'](_0x317a02,_0x2a0ecd=0x0){let _0x3dd298=!0x1;for(let _0x44fbd3=_0x2a0ecd;_0x44fbd3<this['_footnotes']['length'];_0x44fbd3++)this['_updateFootnoteRefCounter'](_0x317a02,_0x44fbd3)&&(_0x3dd298=!0x0);return _0x3dd298;}['_insertEmptyFootnotesDefinitionsContainer'](_0x8599d9,_0x239b19){const _0x568ee=_0x8599d9['createElement']('footnotesDefinitions',{});return _0x8599d9['append'](_0x568ee,_0x239b19),this['_footnotesDefinitions']=_0x568ee,_0x568ee;}['_ensureFootnotesDefinitionsContainerExists'](_0x274efd){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x1eafcd=this['_footnotes'][0x0]['reference']['root'],_0x5bb2f9=this['_insertEmptyFootnotesDefinitionsContainer'](_0x274efd,_0x1eafcd);for(const _0x30d498 of this['_footnotes'])_0x30d498['definition']['parent']||_0x274efd['insert'](_0x30d498['definition'],_0x5bb2f9,'end');this['_updateFootnotesCounters'](_0x274efd);}['_handleFootnotesDefinitionsObjectChanges'](_0x3183fc,_0x41239b){let _0x1576e9=!0x1;const {inserted:_0x5e728e,removed:_0x3acd1b,moved:_0x38d52e}=this['_footnoteDefsContainerTracker']['getChanges'](_0x41239b);if(_0x38d52e['length']&&(this['_footnotesDefinitions']=_0x38d52e[0x0]),_0x5e728e['length']){if(_0x5e728e['length']>0x1||this['_footnotesDefinitions']&&_0x5e728e['some'](_0x4c5f60=>_0x4c5f60!==this['_footnotesDefinitions'])){const _0x4b0f52=_0x3183fc['createElement']('footnotesDefinitions',{}),_0x3f94a8=[];this['_footnotesDefinitions']&&_0x3f94a8['push'](this['_footnotesDefinitions']),_0x3f94a8['push'](..._0x5e728e),_0x3183fc['insert'](_0x4b0f52,_0x3f94a8[0x0],'before');for(const _0x4f4205 of _0x3f94a8)_0x3183fc['move'](_0x3183fc['createRangeIn'](_0x4f4205),_0x3183fc['createPositionAt'](_0x4b0f52,'end')),_0x3183fc['remove'](_0x4f4205);this['_footnotesDefinitions']=_0x4b0f52,this['_updateFootnotesCounters'](_0x3183fc),_0x1576e9=!0x0;}else this['_footnotesDefinitions']=_0x5e728e[0x0];}if(_0x3acd1b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x255ce4 of this['_footnotes'])_0x3183fc['remove'](_0x255ce4['reference']),_0x1576e9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1576e9;}['_handleFootnoteDefinitionsChanges'](_0x467067,_0x1f4555){let _0x8ad215=!0x1;const _0x5d0715=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x30bfc3,moved:_0x164c53}=this['_footnoteDefsTracker']['getChanges'](_0x1f4555);for(const _0x5b6730 of[..._0x164c53,..._0x30bfc3]){const _0x2c74b7=_0x5b6730['getAttribute']('footnoteId'),_0x78241b=this['getFootnote'](_0x2c74b7);_0x78241b&&(_0x78241b['definition']=_0x5b6730),_(_0x467067,_0x5d0715,_0x5b6730)&&(_0x8ad215=!0x0);}return _0x8ad215;}['_handleFootnoteReferencesChanges'](_0x413fa2,_0x5dba23){let _0x2b8e92=!0x1;const {removed:_0x2cff96,inserted:_0x1c0587,moved:_0x1fe57e}=this['_footnoteRefsTracker']['getChanges'](_0x5dba23);for(const _0x5e60a7 of _0x2cff96)this['_handleRemoveFootnoteReferenceById'](_0x413fa2,_0x5e60a7)&&(_0x2b8e92=!0x0);for(const _0x524c60 of _0x1c0587)this['_handleInsertedFootnoteReference'](_0x413fa2,_0x524c60)&&(_0x2b8e92=!0x0);for(const _0x55581d of _0x1fe57e)this['_handleMovedFootnoteReference'](_0x413fa2,_0x55581d)&&(_0x2b8e92=!0x0);return _0x2b8e92;}['_handleFootnotesDefinitionsObjectSync'](_0x570f80){if(!this['_footnotesDefinitions'])return!0x1;let _0x73001c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4c3658=[];for(const _0x1d8fc7 of this['_footnotesDefinitions']['getChildren']()){const _0x2285d9=_0x1d8fc7['getAttribute']('footnoteId');this['getFootnote'](_0x2285d9)||(_0x4c3658['unshift'](_0x1d8fc7),_0x73001c=!0x0);}for(const _0x327e1e of _0x4c3658)_0x570f80['remove'](_0x327e1e);}const _0x48e1df=new Set(),_0x4f7d5f=[];for(const _0xf2a7b7 of this['_footnotesDefinitions']['getChildren']()){const _0x5a4ea5=_0xf2a7b7['getAttribute']('footnoteId');_0x48e1df['has'](_0x5a4ea5)?(_0x4f7d5f['unshift'](_0xf2a7b7),_0x73001c=!0x0):_0x48e1df['add'](_0x5a4ea5);}for(const _0x70107f of _0x4f7d5f)_0x570f80['remove'](_0x70107f);return this['_footnotesDefinitions']['childCount']||(_0x570f80['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x73001c=!0x0),_0x73001c;}['_handleInsertedFootnoteReference'](_0x210c8d,_0x5df395){if(this['_footnotes']['find'](_0x284e4d=>_0x284e4d['reference']===_0x5df395))return!0x1;let _0x406891=!0x1;const _0x15c3ff=_0x5df395['getAttribute']('footnoteId'),_0x5a1b54=this['getFootnote'](_0x15c3ff);_0x5a1b54&&(_0x210c8d['remove'](_0x5a1b54['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x147683=>_0x147683['id']!==_0x15c3ff),_0x406891=!0x0);let _0x2e4ed2=this['_footnotesDefinitions']?function(_0x1d9b70,_0x53c7d6){for(const _0x29cb75 of _0x1d9b70['getChildren']())if(_0x29cb75['getAttribute']('footnoteId')===_0x53c7d6)return _0x29cb75;return null;}(this['_footnotesDefinitions'],_0x15c3ff):null;_0x2e4ed2||(_0x2e4ed2=_0x210c8d['createElement']('footnoteDefinition',{'footnoteId':_0x15c3ff}),this['_footnotesDefinitions']&&(_0x210c8d['insert'](_0x2e4ed2,this['_footnotesDefinitions'],'end'),_0x406891=!0x0));const _0x4d0207={'id':_0x15c3ff,'reference':_0x5df395,'definition':_0x2e4ed2},_0x558b82=I(this['editor']['model'],this['_footnotes'],_0x5df395);return this['_footnotes']['splice'](_0x558b82,0x0,_0x4d0207),this['_updateFootnotesCounters'](_0x210c8d,_0x558b82)&&(_0x406891=!0x0),_0x406891;}['_handleRemoveFootnoteReferenceById'](_0xe28f18,_0x32e7bb){const _0x4eaf2a=this['_footnotes']['findIndex'](_0x3bf107=>_0x3bf107['id']===_0x32e7bb);if(-0x1===_0x4eaf2a)return!0x1;let _0x49f902=!0x1;const _0x51d76d=this['_footnotes'][_0x4eaf2a];return'$graveyard'!==_0x51d76d['definition']['root']['rootName']&&(_0xe28f18['remove'](_0x51d76d['definition']),_0x49f902=!0x0),this['_footnotes']['splice'](_0x4eaf2a,0x1),this['_updateFootnotesCounters'](_0xe28f18,_0x4eaf2a)&&(_0x49f902=!0x0),_0x49f902;}['_handleMovedFootnoteReference'](_0x51f17d,_0x44eba){const _0x485999=_0x44eba['getAttribute']('footnoteId'),_0x2b02b9=this['_footnotes']['findIndex'](_0x4a6b65=>_0x4a6b65['id']===_0x485999),_0x989b25=this['_footnotes'][_0x2b02b9];let _0x944af9=!0x1;_0x989b25['reference']=_0x44eba,this['_footnotes']['splice'](_0x2b02b9,0x1);const _0x2cd3d3=I(this['editor']['model'],this['_footnotes'],_0x44eba);return this['_footnotes']['splice'](_0x2cd3d3,0x0,_0x989b25),this['_updateFootnotesCounters'](_0x51f17d,Math['min'](_0x2b02b9,_0x2cd3d3))&&(_0x944af9=!0x0),_0x944af9;}['_updateFootnoteRefCounter'](_0x351d24,_0x2c93ba){if(!this['_footnotesDefinitions'])return!0x1;const _0x30b1fb=this['_footnotes'][_0x2c93ba];let _0x22788f;return _0x22788f=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x30b1fb,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2c93ba+0x1}):String(_0x2c93ba+0x1),_0x30b1fb['reference']['getAttribute']('footnoteCounter')!=_0x22788f&&(_0x351d24['setAttribute']('footnoteCounter',_0x22788f,_0x30b1fb['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x478cb8){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x25c8d,_0x3105ce){if(_0x25c8d['length']!==_0x3105ce['length'])return!0x1;for(let _0x472740=0x0;_0x472740<_0x25c8d['length'];_0x472740++)if(_0x25c8d[_0x472740]!==_0x3105ce[_0x472740])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x11fb51=>_0x11fb51['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x428bb4=>_0x428bb4['getAttribute']('footnoteId'))))return!0x1;let _0x27d54e=!0x1;for(let _0x4e512f=0x0;_0x4e512f<this['_footnotes']['length'];_0x4e512f++){const _0x2f622b=this['_footnotes'][_0x4e512f],_0x2e042f=_0x478cb8['createPositionBefore'](_0x2f622b['definition']),_0xeb4a08=_0x478cb8['createPositionAt'](this['_footnotesDefinitions'],_0x4e512f);_0x2e042f['isEqual'](_0xeb4a08)||(_0x478cb8['move'](_0x478cb8['createRangeOn'](_0x2f622b['definition']),_0xeb4a08),_0x27d54e=!0x0);}return _0x27d54e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x30fe98){if(!this['_footnotes']['length'])return!0x1;const {model:_0x43424f}=this['editor'];let _0x4e30b4=!0x1;for(let _0x24580e=0x0;_0x24580e<this['_footnotes']['length']-0x1;_0x24580e++){const _0x51b1f8=this['_footnotes'][_0x24580e],_0xfa6755=this['_footnotes'][_0x24580e+0x1],_0x4f821a=_0x43424f['createPositionBefore'](_0x51b1f8['reference']),_0x3f2363=_0x43424f['createPositionBefore'](_0xfa6755['reference']);'after'===_0x4f821a['compareWith'](_0x3f2363)&&(this['_handleMovedFootnoteReference'](_0x30fe98,_0x51b1f8['reference']),_0x24580e=-0x1,_0x4e30b4=!0x0);}return _0x4e30b4;}}function _(_0x5bbffe,_0x20d0b0,_0x4dba79){if(_0x4dba79['childCount'])return!0x1;const _0x4144b2=_0x20d0b0?'paragraph':'footnoteInlineContent';return _0x5bbffe['insert'](_0x5bbffe['createElement'](_0x4144b2),_0x4dba79),!0x0;}function I(_0x44aee2,_0x12ec7a,_0x79e3f9){if(0x0===_0x12ec7a['length'])return 0x0;const _0x18f63=_0x44aee2['createPositionBefore'](_0x79e3f9);for(let _0x419a89=0x0;_0x419a89<_0x12ec7a['length'];_0x419a89++){const _0x17180a=_0x12ec7a[_0x419a89],_0x5e2017=_0x44aee2['createPositionBefore'](_0x17180a['reference']);if('before'===_0x18f63['compareWith'](_0x5e2017))return _0x419a89;}const _0x296338=_0x79e3f9['root'];let _0x3fcb44=-0x1;for(let _0x4067a2=_0x12ec7a['length']-0x1;_0x4067a2>=0x0;_0x4067a2--)if(_0x12ec7a[_0x4067a2]['reference']['root']===_0x296338){_0x3fcb44=_0x4067a2;break;}if(-0x1!==_0x3fcb44)return _0x3fcb44+0x1;const _0x1fbc35=_0x44aee2['document']['getRootNames'](),_0x2539d9=_0x1fbc35['indexOf'](_0x296338['rootName']),_0x511621=_0x1fbc35[_0x2539d9+0x1];if(_0x511621){for(let _0x599766=0x0;_0x599766<_0x12ec7a['length'];_0x599766++)if(_0x12ec7a[_0x599766]['reference']['root']['rootName']===_0x511621)return _0x599766;}return _0x12ec7a['length'];}class w extends _0x214dfd{['refresh'](){const _0x1383ea=this['editor']['model']['document']['selection'],_0x2bdac3=this['_getPositionToInsertFootnote'](_0x1383ea);this['isEnabled']=!!_0x2bdac3;}['execute'](_0x57bfdf){const {editor:_0x284ebf}=this,{model:_0x14190}=_0x284ebf,{selection:_0x50e2cd}=_0x14190['document'],_0x41cbf3=this['_getPositionToInsertFootnote'](_0x50e2cd);if(!_0x41cbf3)return;const _0x412df7=_0x284ebf['plugins']['get']('FootnotesEditing'),_0xc0126a=_0x57bfdf?.['footnoteId']??_0x146a2d();!function(_0x2db2d6){return'string'==typeof _0x2db2d6&&_0x2db2d6['length']>0x0&&!/\s/['test'](_0x2db2d6)&&!/^\d/['test'](_0x2db2d6);}(_0xc0126a)?_0x4fc5ac('insert-footnote-command-executed-with-invalid-id'):(_0x14190['change'](_0x2c4c50=>{const _0x15bfef=_0x2c4c50['createElement']('footnoteRef',{'footnoteId':_0xc0126a});_0x14190['insertObject'](_0x15bfef,_0x41cbf3,null);}),_0x412df7['_moveSelectionToFootnoteDefinition'](_0xc0126a));}['_getPositionToInsertFootnote'](_0x1dd051){const {model:_0x58c8d8}=this['editor'],{schema:_0x2d3de9}=_0x58c8d8,_0x2257b8=_0x1dd051['getFirstRange']();for(const _0xc98543 of _0x2257b8['getItems']())if(_0x2d3de9['isBlock'](_0xc98543)||_0x2d3de9['isObject'](_0xc98543))return null;const _0x43e5fd=_0x2257b8['end'];return _0x2d3de9['checkChild'](_0x43e5fd,'footnoteRef')?_0x43e5fd:null;}}class r extends _0xcea80{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3a80f7}=this;_0x3a80f7['config']['define']('footnotes.multiBlock',!0x0),_0x3a80f7['commands']['add']('insertFootnote',new w(_0x3a80f7)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1ddcf9){const _0x19d0f7=_0x135fe0([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]),_0x5813ee=0x47a28506,_0x52b968=0x47a5f21e^_0x5813ee,_0x188164=window[_0x135fe0([0x44,0x61,0x74,0x65])][_0x135fe0([0x6e,0x6f,0x77])](),_0x3ffdd5=_0x1ddcf9[_0x135fe0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c379a=new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d1587=>{_0x3ffdd5[_0x135fe0([0x6f,0x6e,0x63,0x65])](_0x135fe0([0x72,0x65,0x61,0x64,0x79]),_0x3d1587);}),_0x77ad17={[_0x135fe0([0x6b,0x74,0x79])]:_0x135fe0([0x45,0x43]),[_0x135fe0([0x75,0x73,0x65])]:_0x135fe0([0x73,0x69,0x67]),[_0x135fe0([0x63,0x72,0x76])]:_0x135fe0([0x50,0x2d,0x32,0x35,0x36]),[_0x135fe0([0x78])]:_0x135fe0([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]),[_0x135fe0([0x79])]:_0x135fe0([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]),[_0x135fe0([0x61,0x6c,0x67])]:_0x135fe0([0x45,0x53,0x32,0x35,0x36])},_0x2628a0=_0x3ffdd5[_0x135fe0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x135fe0([0x67,0x65,0x74])](_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27f839(){let _0x52682b,_0xe9bbb7=null,_0x184658=null;try{if(_0x2628a0==_0x135fe0([0x47,0x50,0x4c]))return _0x135fe0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52682b=_0x10be2c(),!_0x52682b)return _0x135fe0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52682b[_0x135fe0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x184658=_0x5c29a5(_0x52682b[_0x135fe0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52682b[_0x135fe0([0x6a,0x74,0x69])])),await _0x19596f()?_0x151d8a()?_0x109158()?_0x135fe0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd3e0df()?(_0x52682b[_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x135fe0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe9bbb7=_0x32dd34(_0x135fe0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52682b[_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x135fe0([0x74,0x72,0x69,0x61,0x6c])&&(_0xe9bbb7=_0x32dd34(_0x135fe0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x238f77()):_0x135fe0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x135fe0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x135fe0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x135fe0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x109158(){const _0x2e38c3=[_0x135fe0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x135fe0([0x74,0x72,0x69,0x61,0x6c])][_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52682b[_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x188164/0x3e8:0xe10*_0x52b968;return _0x52682b[_0x135fe0([0x65,0x78,0x70])]<_0x2e38c3;}function _0x151d8a(){const _0x522cb3=_0x52682b[_0x135fe0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x522cb3&&(!!_0x522cb3[_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135fe0([0x2a]))||!!_0x522cb3[_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135fe0([0x46,0x4f,0x4f])));}function _0xd3e0df(){const _0x2def3a=_0x52682b[_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2def3a||0x0==_0x2def3a[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cc6ca}=new URL(window[_0x135fe0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2def3a[_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc6ca))return!0x0;const _0x217529=_0x2cc6ca[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])](_0x135fe0([0x2e]));return _0x2def3a[_0x135fe0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x291b04=>_0x291b04[_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135fe0([0x2a])))[_0x135fe0([0x6d,0x61,0x70])](_0x25b2a8=>_0x25b2a8[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])](_0x135fe0([0x2e])))[_0x135fe0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ab565=>_0x3ab565[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x217529[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x135fe0([0x6d,0x61,0x70])](_0x7b0df4=>Array(_0x217529[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x7b0df4[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x135fe0([0x66,0x69,0x6c,0x6c])](_0x7b0df4[0x0]===_0x135fe0([0x2a])?_0x135fe0([0x2a]):'')[_0x135fe0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x7b0df4))[_0x135fe0([0x73,0x6f,0x6d,0x65])](_0x370dbf=>_0x217529[_0x135fe0([0x65,0x76,0x65,0x72,0x79])]((_0x43601a,_0x562f79)=>_0x370dbf[_0x562f79]===_0x43601a||_0x370dbf[_0x562f79]===_0x135fe0([0x2a])));}function _0x238f77(){return _0xe9bbb7&&_0x184658?new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x387f27,_0x5ab701)=>{_0xe9bbb7[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x387f27,_0x5ab701),_0x184658[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x313eb2=>{_0x313eb2!=_0x135fe0([0x56,0x61,0x6c,0x69,0x64])&&_0x387f27(_0x313eb2);},_0x5ab701);}):_0xe9bbb7||_0x184658||_0x135fe0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c29a5(_0x547bc8,_0x577984){return new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbad4e9=>{if(_0x59544d())return _0xbad4e9(_0x135fe0([0x56,0x61,0x6c,0x69,0x64]));_0x204646(),_0x3ffdd5[_0x135fe0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x135fe0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x61d60e=!0x1;const _0x32e725=_0x146a2d();function _0x879e1c(_0x275a49){return!!_0x275a49&&(typeof _0x275a49===_0x135fe0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x275a49===_0x135fe0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x275a49[_0x135fe0([0x74,0x68,0x65,0x6e])]===_0x135fe0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x275a49[_0x135fe0([0x63,0x61,0x74,0x63,0x68])]===_0x135fe0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53c0cc(_0x508dd0){_0x36ccd5(_0x508dd0)[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x330baf=>{if(!_0x330baf||_0x330baf[_0x135fe0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x135fe0([0x6f,0x6b]))return _0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xaf935d(_0x343aaf(_0x32e725+_0x577984))!=_0x330baf[_0x135fe0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x135fe0([0x56,0x61,0x6c,0x69,0x64]);})[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x2c948d=>(_0x515560(),_0x2c948d),()=>{const _0x3acaa1=_0x23f5f4();return null==_0x3acaa1?(_0x515560(),_0x135fe0([0x56,0x61,0x6c,0x69,0x64])):_0x135fe0(_0x188164-_0x3acaa1>(0x63ae0106^_0x5813ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x135fe0([0x74,0x68,0x65,0x6e])](_0xbad4e9)[_0x135fe0([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbad4e9(_0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35426e=0x47946b86^_0x5813ee;function _0x515560(){const _0x41890c=_0x135fe0([0x6c,0x6c,0x63,0x74,0x2d])+_0xaf935d(_0x343aaf(_0x547bc8)),_0x1773d3=_0x4a4afc(_0xaf935d(window[_0x135fe0([0x4d,0x61,0x74,0x68])][_0x135fe0([0x63,0x65,0x69,0x6c])](_0x188164/_0x35426e)));window[_0x135fe0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x135fe0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41890c,_0x1773d3);}function _0x23f5f4(){const _0x3595d3=_0x135fe0([0x6c,0x6c,0x63,0x74,0x2d])+_0xaf935d(_0x343aaf(_0x547bc8)),_0x209096=window[_0x135fe0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x135fe0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3595d3);return _0x209096?window[_0x135fe0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4afc(_0x209096),0x10)*_0x35426e:null;}function _0x36ccd5(_0x460fb0){return new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51e241,_0x34a9ae)=>{_0x460fb0[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x51e241,_0x34a9ae),window[_0x135fe0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34a9ae,0x47a351c6^_0x5813ee);});}}_0x3ffdd5[_0x135fe0([0x6f,0x6e])](_0x135fe0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x473762,_0x331311)=>{if(_0x331311[0x0]!=_0x547bc8)return _0xbad4e9(_0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x331311[0x1]={..._0x331311[0x1],[_0x135fe0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32e725};},{[_0x135fe0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x135fe0([0x68,0x69,0x67,0x68])}),_0x3ffdd5[_0x135fe0([0x6f,0x6e])](_0x135fe0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x309c38=>{_0x879e1c(_0x309c38[_0x135fe0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x61d60e=!0x0,_0x53c0cc(_0x309c38[_0x135fe0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x135fe0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x135fe0([0x6c,0x6f,0x77])}),_0x4c379a[_0x135fe0([0x74,0x68,0x65,0x6e])](()=>{_0x61d60e||_0xbad4e9(_0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59544d(){return _0x3ffdd5[_0x135fe0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x135fe0([0x76,0x69,0x65,0x77])][_0x135fe0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x135fe0([0x61,0x75,0x74,0x6f]);}function _0x204646(){_0x3ffdd5[_0x135fe0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x135fe0([0x76,0x69,0x65,0x77])][_0x135fe0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x135fe0([0x61,0x75,0x74,0x6f]);}}function _0x32dd34(_0x50849e){const _0xb74a8c=[new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x569e57=>setTimeout(_0x569e57,0x47abbbca^_0x5813ee)),_0x4c379a[_0x135fe0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x543fb6=>{let _0x1a3697=0x0;_0x3ffdd5[_0x135fe0([0x6d,0x6f,0x64,0x65,0x6c])][_0x135fe0([0x6f,0x6e])](_0x135fe0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x97c10d,_0x37f073)=>{_0x37f073[0x0][_0x135fe0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a3697++,_0x1a3697==(0x47a284fe^_0x5813ee)&&(_0x543fb6(),_0x97c10d[_0x135fe0([0x6f,0x66,0x66])]());});}))];return window[_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x135fe0([0x72,0x61,0x63,0x65])](_0xb74a8c)[_0x135fe0([0x74,0x68,0x65,0x6e])](()=>_0x50849e);}async function _0x4a142e(){await _0x4c379a,_0x3ffdd5[_0x135fe0([0x6d,0x6f,0x64,0x65,0x6c])][_0x135fe0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x568621,_0x3ffdd5[_0x135fe0([0x6d,0x6f,0x64,0x65,0x6c])][_0x135fe0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x568621,_0x3ffdd5[_0x135fe0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x135fe0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x226925(_0x4cdbb9){const _0x3d3030=_0x37c99e();_0x3ffdd5[_0x3d3030]=_0x135fe0([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4cdbb9,_0x4cdbb9!=_0x135fe0([0x56,0x61,0x6c,0x69,0x64])&&_0x4a142e();}function _0x37c99e(){const _0x11c9cb=window[_0x135fe0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x135fe0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x135fe0([0x6e,0x6f,0x77])]())[_0x135fe0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x135fe0([0x2e]),'');let _0x44244b=_0x135fe0([0x75]);for(let _0x11ba16=0x0;_0x11ba16<_0x11c9cb[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11ba16+=0x2){let _0x1287fc=window[_0x135fe0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11c9cb[_0x135fe0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11ba16,_0x11ba16+0x2));_0x1287fc>=_0x19d0f7[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1287fc-=_0x19d0f7[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44244b+=_0x19d0f7[_0x1287fc];}return _0x44244b;}function _0x10be2c(){const _0x155201=_0x2628a0[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])](_0x135fe0([0x2e]));if(0x3!=_0x155201[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x567795(_0x155201[0x1]);function _0x567795(_0x1f09de){const _0x222d20=_0x4e1ebf(_0x1f09de);return _0x222d20&&_0x381163()?_0x222d20:null;function _0x381163(){const _0x20fdeb=_0x222d20[_0x135fe0([0x6a,0x74,0x69])],_0xfff9d1=window[_0x135fe0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20fdeb[_0x135fe0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20fdeb[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fae19={..._0x222d20,[_0x135fe0([0x6a,0x74,0x69])]:_0x20fdeb[_0x135fe0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20fdeb[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fae19[_0x135fe0([0x76,0x63])],_0x343aaf(_0x3fae19)==_0xfff9d1;}}}async function _0x19596f(){let _0x50c5ce=!0x0;try{const _0x515e24=_0x2628a0[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])](_0x135fe0([0x2e])),[_0x8c943e,_0x133d30,_0x4ad90c]=_0x515e24;return _0x1fafb3(_0x8c943e),await _0x444b35(_0x8c943e,_0x133d30,_0x4ad90c),_0x50c5ce;}catch{return!0x1;}function _0x1fafb3(_0x42c15e){const _0x175b9b=_0x4e1ebf(_0x42c15e);_0x175b9b&&_0x175b9b[_0x135fe0([0x61,0x6c,0x67])]==_0x135fe0([0x45,0x53,0x32,0x35,0x36])||(_0x50c5ce=!0x1);}async function _0x444b35(_0x13d1a9,_0x477113,_0x1ff62b){const _0x36ab44=window[_0x135fe0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x135fe0([0x66,0x72,0x6f,0x6d])](_0x1bee36(_0x1ff62b),_0x5b48b9=>_0x5b48b9[_0x135fe0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37f6c3=new window[(_0x135fe0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x135fe0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13d1a9+_0x135fe0([0x2e])+_0x477113),_0x216757=window[_0x135fe0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x135fe0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x216757)return;const _0x4c8172=await _0x216757[_0x135fe0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x135fe0([0x6a,0x77,0x6b]),_0x77ad17,{[_0x135fe0([0x6e,0x61,0x6d,0x65])]:_0x135fe0([0x45,0x43,0x44,0x53,0x41]),[_0x135fe0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x135fe0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x135fe0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x216757[_0x135fe0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x135fe0([0x6e,0x61,0x6d,0x65])]:_0x135fe0([0x45,0x43,0x44,0x53,0x41]),[_0x135fe0([0x68,0x61,0x73,0x68])]:{[_0x135fe0([0x6e,0x61,0x6d,0x65])]:_0x135fe0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c8172,_0x36ab44,_0x37f6c3)||(_0x50c5ce=!0x1);}}function _0x4e1ebf(_0xecb590){return _0xecb590[_0x135fe0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x135fe0([0x65,0x79]))?JSON[_0x135fe0([0x70,0x61,0x72,0x73,0x65])](_0x1bee36(_0xecb590)):null;}function _0x1bee36(_0x2a8149){return window[_0x135fe0([0x61,0x74,0x6f,0x62])](_0x2a8149[_0x135fe0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x135fe0([0x2b]))[_0x135fe0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x135fe0([0x2f])));}function _0x343aaf(_0xb46d84){let _0x2bed57=0x1505;function _0x115aa9(_0x2690c6){for(let _0x3f88b4=0x0;_0x3f88b4<_0x2690c6[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f88b4++){const _0x1848b3=_0x2690c6[_0x135fe0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f88b4);_0x2bed57=(_0x2bed57<<0x5)+_0x2bed57+_0x1848b3,_0x2bed57&=_0x2bed57;}}function _0x347e97(_0x2b59ce){Array[_0x135fe0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b59ce)?_0x2b59ce[_0x135fe0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x347e97):_0x2b59ce&&typeof _0x2b59ce==_0x135fe0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x135fe0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b59ce)[_0x135fe0([0x73,0x6f,0x72,0x74])]()[_0x135fe0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24c4f0,_0x450c23])=>{_0x115aa9(_0x24c4f0),_0x347e97(_0x450c23);}):_0x115aa9(window[_0x135fe0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b59ce));}return _0x347e97(_0xb46d84),_0x2bed57>>>0x0;}function _0xaf935d(_0x7aef36){return _0x7aef36[_0x135fe0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x135fe0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x135fe0([0x30]));}function _0x4a4afc(_0x24dae4){return _0x24dae4[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x135fe0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x135fe0([0x6a,0x6f,0x69,0x6e])]('');}function _0x568621(){}function _0x135fe0(_0x5af592){return _0x5af592['map'](_0x36bc8e=>String['fromCharCode'](_0x36bc8e))['join']('');}_0x226925(await _0x27f839());}(this);}['_moveSelectionToFootnoteDefinition'](_0x481383){const {plugins:_0x136188,editing:_0x96d33c,model:_0x14fd59}=this['editor'],_0x1614cd=_0x136188['get'](c)['getFootnote'](_0x481383);return!!_0x1614cd&&(_0x14fd59['change'](_0x15b1e6=>{_0x15b1e6['setSelection'](_0x15b1e6['createPositionAt'](_0x1614cd['definition'],'end'));}),_0x96d33c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5c8e51){const {plugins:_0x21f600,editing:_0x5536c1,model:_0x1b6f95}=this['editor'],_0x407d00=_0x21f600['get'](c)['getFootnote'](_0x5c8e51);return!!_0x407d00&&(_0x1b6f95['change'](_0x33b2e1=>{_0x33b2e1['setSelection'](_0x407d00['reference'],'on');}),_0x5536c1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x26899c}=this['editor']['model'],_0x5b6427=this['editor']['config']['get']('footnotes.multiBlock');_0x26899c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x26899c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x26899c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5b6427?_0x26899c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x26899c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x26899c['addChildCheck'](_0x2391b1=>{for(const _0x46da42 of _0x2391b1)if('footnoteDefinition'===_0x46da42['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1575aa}=this,{conversion:_0x380ed2,editing:_0x136f98}=_0x1575aa,{t:t}=_0x1575aa['locale'];_0x380ed2['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2a2b69,{writer:_0x49a778,consumable:_0x5a5177})=>{const _0x4438c9=_0x2a2b69['getChild'](0x0);if(!_0x4438c9||!_0x4438c9['is']('element','a'))return null;const _0x195e52=_0x4438c9['getAttribute']('href')||'';if(!_0x195e52['startsWith']('#'))return null;const _0x2bd48b=_0x195e52['replace'](/^#/,'');if(!_0x2bd48b)return null;_0x5a5177['consume'](_0x4438c9,{'name':!0x0,'attributes':['href']});for(const {item:_0x13075f}of _0x136f98['view']['createRangeIn'](_0x4438c9))_0x13075f['is']('$textProxy')?_0x5a5177['consume'](_0x13075f['textNode'],{'name':!0x0}):_0x13075f['is']('element')&&_0x5a5177['consume'](_0x13075f,{'name':!0x0});return _0x49a778['createElement']('footnoteRef',{'footnoteId':_0x2bd48b});}}),_0x380ed2['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xf2fed5,{writer:_0x1cc094})=>D(_0xf2fed5,_0x1cc094)}),_0x380ed2['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2f89d6,{writer:_0x563813})=>{const _0x1864ff=_0x2f89d6['getAttribute']('footnoteCounter');return _0x30b5e5(D(_0x2f89d6,_0x563813),_0x563813,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1864ff)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c4274}=this,{t:t}=_0x4c4274['locale'],{conversion:_0x48aa10}=_0x4c4274;_0x48aa10['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x48aa10['for']('upcast')['add'](_0x37fa43=>{_0x37fa43['on']('element:ol',(_0x44a5d3,_0x53a8cd,_0x468e99)=>{const _0x4ff8b8=_0x53a8cd['viewItem'];if(!_0x4ff8b8['hasClass']('footnotes-list')||!_0x53a8cd['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x468e99['consumable']['consume'](_0x4ff8b8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1236e3,modelCursor:_0x5baf94}=_0x468e99['convertChildren'](_0x53a8cd['viewItem'],_0x53a8cd['modelCursor']);_0x53a8cd['modelRange']=_0x1236e3,_0x53a8cd['modelCursor']=_0x5baf94;}),_0x37fa43['on']('element:hr',(_0x890e81,_0x455004,_0xdaba0)=>{const _0x5e5ea9=_0x455004['viewItem'];_0x5e5ea9['hasClass']('footnotes-divider')&&_0x455004['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xdaba0['consumable']['consume'](_0x5e5ea9,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x48aa10['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e5d2b,{writer:_0xe1a35})=>g(_0xe1a35)}),_0x48aa10['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x243aea,{writer:_0x1603d8})=>{const _0x3893de=g(_0x1603d8,{'data-footnotes-list-label':t('Footnotes')}),_0xac0879=_0x30b5e5(_0x3893de,_0x1603d8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1603d8['setCustomProperty']('footnotesDefinitions',!0x0,_0xac0879),_0xac0879;}});}['_defineDefinitionConverters'](){const {editor:_0x523df9}=this,{conversion:_0x1f3ce7,locale:_0x581a4c}=_0x523df9,_0x4507f4=_0x523df9['config']['get']('footnotes.multiBlock');_0x1f3ce7['for']('upcast')['add'](_0x51d835=>{_0x51d835['on']('element:li',(_0x57000c,_0x559037,_0x29590f)=>{const _0x5d2f75=_0x559037['viewItem'];if(!_0x5d2f75['hasClass']('footnote-definition')||!_0x5d2f75['getAttribute']('id'))return;const _0x877612=_0x5d2f75['parent'];if(!_0x877612['is']('element','ol')||!_0x877612['hasClass']('footnotes-list'))return;if(!_0x29590f['consumable']['test'](_0x5d2f75,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x508324=_0x29590f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5d2f75['getAttribute']('id')});if(!_0x29590f['safeInsert'](_0x508324,_0x559037['modelCursor']))return;_0x29590f['consumable']['consume'](_0x5d2f75,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x59f7d2=Array['from'](_0x5d2f75['getChildren']())['find'](_0x43f597=>_0x43f597['is']('element')&&_0x43f597['hasClass']('footnote-content'));for(const _0x1ab0a9 of _0x5d2f75['getChildren']())_0x1ab0a9['is']('element')&&(_0x29590f['consumable']['consume'](_0x1ab0a9,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x29590f['consumable']['consume'](_0x1ab0a9,{'name':!0x0,'classes':'footnote-content'}));if(_0x59f7d2){if(_0x4507f4)_0x29590f['convertChildren'](_0x59f7d2,_0x508324);else{const _0x9e8dfa=_0x29590f['writer']['createElement']('footnoteInlineContent');_0x29590f['writer']['insert'](_0x9e8dfa,_0x508324),_0x29590f['convertChildren'](_0x59f7d2,_0x9e8dfa);}}_0x29590f['updateConversionResult'](_0x508324,_0x559037);});}),_0x1f3ce7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3fb588,{writer:_0x31b157})=>v(_0x3fb588,_0x31b157,_0x581a4c,{'dataPipeline':!0x0})}),_0x1f3ce7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x194d33,{writer:_0x26ea5f})=>v(_0x194d33,_0x26ea5f,_0x581a4c)});}['_defineBogusParagraphConverters'](){const {editor:_0x5113cf}=this,{conversion:_0x4f9b2a}=_0x5113cf;_0x5113cf['config']['get']('footnotes.multiBlock')?(_0x4f9b2a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4f9b2a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5113cf['model']['document'],'change:data',()=>{!function(_0x37d66a,_0x44e3c9){const _0x45e9f2=_0x37d66a['document']['differ'],_0x1dd7a7=new Set();for(const _0x2c1243 of _0x45e9f2['getChanges']()){const _0x2a51c3='attribute'==_0x2c1243['type']?_0x2c1243['range']['start']['parent']:_0x2c1243['position']['parent'];_0x2a51c3['is']('element','footnoteDefinition')&&_0x1dd7a7['add'](_0x2a51c3);}for(const _0x43d87d of _0x1dd7a7['values']()){const _0x9aa4f7=Array['from'](_0x43d87d['getChildren']())['filter'](_0x43494a=>p(_0x43494a,_0x44e3c9['mapper']));for(const _0x4c1acb of _0x9aa4f7)_0x44e3c9['reconvertItem'](_0x4c1acb);}}(_0x5113cf['model'],_0x5113cf['editing']);})):(_0x4f9b2a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4f9b2a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x42c9c1,{writer:_0x28da27})=>{const _0x4c90df=_0x28da27['createContainerElement']('span');return _0x28da27['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4c90df),_0x4c90df;}}));}['_defineKeyboardHandlers'](){const {editor:_0x16ffb6}=this,{editing:_0x3bee73,t:t}=_0x16ffb6,_0x35a622=_0x16ffb6['model']['document']['selection'];_0x16ffb6['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x16ffb6['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x3bee73['view']['document'],'enter',(_0x2d4c92,_0x42b092)=>{const _0x527bb2=function(_0x5b8fd0){const _0x1e50ba=_0x5b8fd0['getSelectedElement']();if(_0x1e50ba?.['is']('element','footnoteRef'))return _0x1e50ba;return null;}(_0x35a622);if(_0x527bb2){const _0x4f4777=_0x527bb2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4f4777),_0x42b092['preventDefault'](),_0x2d4c92['stop']();}},{'context':_0x1e7fed});}['_defineClickHandlers'](){const {editor:_0xaed6ac}=this,{editing:_0x3df84b}=_0xaed6ac;_0xaed6ac['editing']['view']['addObserver'](_0x82adbf),_0xaed6ac['editing']['view']['addObserver'](_0x1bdbc0);let _0x41ccd9=!0x1;this['listenTo'](_0x3df84b['view']['document'],'pointerdown',(_0x1e7067,_0x12ab04)=>{const {target:_0x5d9e85}=_0x12ab04,_0x210861=_0x3df84b['view']['document']['selection'];_0x41ccd9=!(!_0x5d9e85['is']('element','sup')||!_0x5d9e85['hasClass']('footnote'))&&_0x210861['getSelectedElement']()===_0x5d9e85;},{'priority':'high'}),this['listenTo'](_0x3df84b['view']['document'],'click',(_0x27083b,_0x2d96ae)=>{const {target:_0x3b6f77}=_0x2d96ae,_0x1b43b7=_0x3b6f77['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x1b43b7['slice'](0x1)),_0x27083b['stop'](),_0x2d96ae['preventDefault']();},{'priority':'high','context':_0x6b727e=>_0x6b727e['is']('element','sup')&&_0x6b727e['hasClass']('footnote')&&_0x41ccd9}),this['listenTo'](_0x3df84b['view']['document'],'click',(_0x1e148f,_0x1c4fa8)=>{const {target:_0x44cc6f}=_0x1c4fa8;if(!_0x44cc6f['is']('element','a'))return;let _0x1d2abc=_0x44cc6f['getAttribute']('href');if(!_0x1d2abc?.['startsWith']('#'))return;_0x1d2abc=_0x1d2abc['slice'](0x1);let _0x28528b=!0x1;(_0x1d2abc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1d2abc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1d2abc))&&(_0x28528b=!0x0),_0x28528b&&(_0x1c4fa8['preventDefault'](),_0x1e148f['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x5511e5}={}){return(_0x47ac43,{writer:_0x2a7d29})=>{if(!h(_0x47ac43))return null;if(!_0x5511e5)return _0x2a7d29['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x178eec=_0x2a7d29['createContainerElement']('p');return _0x2a7d29['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x178eec),_0x178eec;};}function h(_0x4d63dc){const {parent:_0x24b916}=_0x4d63dc;if(!_0x24b916?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x24b916['childCount'])return!0x1;for(const _0x5e18b6 of _0x4d63dc['getAttributeKeys']())if(!_0x5e18b6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5e18b6)return!0x1;return!0x0;}function p(_0x2980d4,_0x6f4427){if(!_0x2980d4['is']('element','paragraph'))return!0x1;const _0x280ca5=_0x6f4427['toViewElement'](_0x2980d4);return!!_0x280ca5&&h(_0x2980d4)!==_0x280ca5['is']('element','span');}function J(_0x25154c){return _0x1e7fed(_0x25154c)&&_0x25154c['is']('containerElement')&&!!_0x25154c['getCustomProperty']('footnotesDefinitions');}function g(_0x18bd14,_0xba7d7c={}){const _0x147b98=_0x18bd14['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4093d0=_0x18bd14['createContainerElement']('ol',{'class':'footnotes-list'},_0x18bd14['createSlot']());return _0x18bd14['createContainerElement']('div',{'class':'footnotes',..._0xba7d7c},[_0x147b98,_0x4093d0]);}function D(_0x1d06f2,_0xa4f881){const _0x1c34da=_0x1d06f2['getAttribute']('footnoteId'),_0x331e9d=_0x1d06f2['getAttribute']('footnoteCounter'),_0x2f13a1=_0xa4f881['createUIElement']('a',{'href':'#'+_0x1c34da},function(_0x3888dd){const _0x42367c=this['toDomElement'](_0x3888dd);return _0x42367c['textContent']=_0x331e9d,_0x42367c;}),_0x5e4aa7=_0xa4f881['createContainerElement']('sup',{'id':'ref-'+_0x1c34da,'class':'footnote'},[_0x2f13a1]);return _0x5e4aa7['getFillerOffset']=()=>null,_0x5e4aa7;}function v(_0x28258a,_0x360568,_0x5a7538,{dataPipeline:_0x17d60a}={}){const {t:t}=_0x5a7538,_0x5bee59=_0x28258a['getAttribute']('footnoteId'),_0x22d016=_0x360568['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5bee59},function(_0x42861f){const _0x568c41=this['toDomElement'](_0x42861f);return _0x568c41['innerText']='^',_0x568c41;}),_0x63af6b=_0x17d60a?_0x360568['createContainerElement']('div',{'class':'footnote-content'}):_0x20cb5c(_0x360568['createEditableElement']('div',{'class':'footnote-content'}),_0x360568,{'label':t('Footnote\x20content.')});return _0x360568['insert'](_0x360568['createPositionAt'](_0x63af6b,0x0),_0x360568['createSlot']()),_0x360568['createContainerElement']('li',{'class':'footnote-definition','id':_0x5bee59},[_0x22d016,_0x63af6b]);}class e extends _0xcea80{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5acdbd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3679c5}=this,{plugins:_0x3fcc74,model:_0x230212}=_0x3679c5,_0x159581=_0x3fcc74['get'](_0x5acdbd),_0x389412=_0x3fcc74['get'](c);this['listenTo'](_0x159581,'outputTransformation',(_0x16fd62,_0x37d56a)=>{const _0x29c468=function(_0x1a84d9,_0x57c51f){const _0x5dcddd=new Set();for(const {item:_0x525da9}of _0x1a84d9['createRangeIn'](_0x57c51f))_0x525da9['is']('element','footnoteRef')&&_0x5dcddd['add'](_0x525da9['getAttribute']('footnoteId'));return Array['from'](_0x5dcddd);}(_0x230212,_0x37d56a['content']);if(!_0x29c468['length'])return;const _0x263669=_0x389412['getFootnotes'](),_0x19b97a=_0x29c468['reduce']((_0x78bba4,_0x41eee4)=>{const _0x371461=_0x263669['find'](_0x88d9b8=>_0x88d9b8['id']===_0x41eee4);if(_0x371461){const _0x19938e=_0x3679c5['data']['toView'](_0x371461['definition'],{'isClipboardPipeline':!0x0}),_0x241b3a=_0x3679c5['data']['htmlProcessor']['toData'](_0x19938e);_0x78bba4[_0x371461['id']]=_0x241b3a;}return _0x78bba4;},Object['create'](null));_0x37d56a['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x19b97a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5adca9}=this,{model:_0x2b68e2,plugins:_0x2f3440}=_0x5adca9,{view:_0x179a27}=_0x5adca9['editing'],_0x389254=_0x2f3440['get'](_0x5acdbd),_0x74cf8c=_0x2f3440['get'](c);let _0x5edeac=null;this['listenTo'](_0x179a27['document'],'clipboardInput',(_0x2e7b4c,_0x511ebd)=>{const _0x3e16ae=_0x511ebd['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5edeac=_0x3e16ae?JSON['parse'](_0x3e16ae):null;}),this['listenTo'](_0x389254,'contentInsertion',(_0x2863e3,_0x30cfee)=>{if(!_0x5edeac)return;const _0x189029=_0x30cfee['sourceEditorId']===this['editor']['id'];_0x189029&&'drop'===_0x30cfee['method']||_0x2b68e2['change'](_0x52cc79=>{!function(_0xcb5571,_0x3252cc){const _0x40baf2=[];for(const {item:_0x1b6b33}of _0xcb5571['createRangeIn'](_0x3252cc))_0x1b6b33['is']('element','footnotesDefinitions')&&_0x40baf2['push'](_0x1b6b33);for(const _0x3054db of _0x40baf2)_0xcb5571['remove'](_0x3054db);}(_0x52cc79,_0x30cfee['content']);let _0xa1fb44=_0x74cf8c['getFootnotesDefinitionsObjectElement']();if(!_0xa1fb44){const _0x3c7016=_0x2b68e2['document']['selection']['getFirstRange']()['root'];_0xa1fb44=_0x74cf8c['_insertEmptyFootnotesDefinitionsContainer'](_0x52cc79,_0x3c7016);}const _0x47ccb1=function(_0x5f239d,_0x2604f2,_0x145f06){const _0x18e4c4=Object['create'](null);for(const {item:_0x41af7a}of _0x5f239d['createRangeIn'](_0x2604f2))if(_0x41af7a['is']('element','footnoteRef')){const _0x4b5b12=_0x41af7a['getAttribute']('footnoteId');if(!_0x145f06(_0x4b5b12))continue;_0x18e4c4[_0x4b5b12]||(_0x18e4c4[_0x4b5b12]=_0x146a2d()),_0x5f239d['setAttribute']('footnoteId',_0x18e4c4[_0x4b5b12],_0x41af7a);}return _0x18e4c4;}(_0x52cc79,_0x30cfee['content'],_0x3757a6=>!_0x189029||null!==_0x74cf8c['getFootnote'](_0x3757a6));for(const [_0x3303b7,_0x1d9abc]of Object['entries'](_0x5edeac)){const _0x2b15bd=_0x47ccb1[_0x3303b7]||_0x3303b7,_0x11a307=_0x52cc79['createElement']('footnoteDefinition',{'footnoteId':_0x2b15bd}),_0x2868c0=_0x5adca9['data']['htmlProcessor']['toView'](_0x1d9abc),_0x18c7b4=_0x5adca9['data']['toModel'](_0x2868c0,_0x11a307);_0x52cc79['append'](_0x18c7b4,_0x11a307),_0x52cc79['insert'](_0x11a307,_0xa1fb44,'end');}_0x5edeac=null;});});}}class i extends _0xcea80{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3975db}=this,{componentFactory:_0x3672ba}=_0x3975db['ui'];_0x3672ba['add']('insertFootnote',x(_0x3975db,_0x1d8b5f)),_0x3672ba['add']('menuBar:insertFootnote',x(_0x3975db,_0x129cf5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2027fb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x536ddf;for(const _0x325d62 in _0x2027fb){const _0x5c689d=_0x325d62,_0x28b84c=_0x2027fb[_0x5c689d];if('footnotesLicenseKeyValid'==_0x28b84c||'footnotesLicenseKeyInvalid'==_0x28b84c||'footnotesLicenseKeyExpired'==_0x28b84c||'footnotesLicenseKeyDomainLimit'==_0x28b84c||'footnotesLicenseKeyNotAllowed'==_0x28b84c||'footnotesLicenseKeyEvaluationLimit'==_0x28b84c||'footnotesLicenseKeyTrialLimit'==_0x28b84c||'footnotesLicenseKeyUsageLimit'==_0x28b84c){delete _0x2027fb[_0x5c689d],_0x536ddf=_0x28b84c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x536ddf&&_0x2027fb['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x536ddf&&_0x2027fb['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x536ddf&&_0x2027fb['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x536ddf&&_0x2027fb['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x536ddf&&_0x2027fb['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x536ddf&&_0x2027fb['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x536ddf&&_0x2027fb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x36ea17,_0x2dd8e2){const _0x514083=_0x36ea17['commands']['get']('insertFootnote');return _0x5d9d58=>{const {t:t}=_0x5d9d58,_0x1662c0=new _0x2dd8e2(_0x5d9d58),_0x219876=_0x1662c0 instanceof _0x129cf5;return _0x1662c0['bind']('isEnabled')['to'](_0x514083,'isEnabled'),_0x1662c0['set']({'label':t(_0x219876?'Footnote':'Insert\x20footnote'),'icon':_0x3be37e,'tooltip':!0x0}),_0x1662c0['on']('execute',()=>{_0x514083['execute'](),_0x36ea17['editing']['view']['focus']();}),_0x1662c0;};}class nt extends _0xcea80{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 _0x214dfd{['refresh'](){const {editor:_0x3d1297}=this,_0x354f80=_0x3d1297['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x354f80,this['value']=_0x354f80?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x27d0bf}){const {editor:_0x1b49f2}=this,_0x2bc8ec=_0x1b49f2['plugins']['get'](c),_0x1e08fc=_0x2bc8ec['getFootnotesDefinitionsObjectElement']();_0x1e08fc&&Q['includes'](_0x27d0bf)&&_0x1b49f2['model']['change'](_0x2bd943=>{_0x2bd943['setAttribute']('footnotesListStyle',_0x27d0bf,_0x1e08fc),_0x2bc8ec['_updateFootnotesCounters'](_0x2bd943);});}}class b extends _0x214dfd{['refresh'](){const {editor:_0x3e0751}=this,_0x4b9d1d=_0x3e0751['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4b9d1d,this['value']=_0x4b9d1d?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x134ce3}){const {editor:_0x1f653b}=this,_0x593820=_0x1f653b['plugins']['get'](c),_0xd55c58=_0x593820['getFootnotesDefinitionsObjectElement']();_0xd55c58&&Number['isInteger'](_0x134ce3)&&_0x1f653b['model']['change'](_0x4a8e9e=>{_0x4a8e9e['setAttribute']('footnotesListStart',_0x134ce3,_0xd55c58),_0x593820['_updateFootnotesCounters'](_0x4a8e9e);});}}class P extends _0xcea80{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x210476}=this;_0x210476['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x210476['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x210476['commands']['add']('footnotesStyle',new S(_0x210476)),_0x210476['commands']['add']('footnotesStart',new b(_0x210476)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x246f03}=this,{schema:_0x304e87}=_0x246f03['model'];_0x304e87['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5928c0}=this,{conversion:_0x8c3ad7,model:_0x32ca83}=_0x5928c0,{schema:_0x195cca}=_0x32ca83;_0x8c3ad7['for']('upcast')['add'](_0x10489e=>{_0x10489e['on']('element:ol',(_0x2357a1,_0x40d89c,_0x579939)=>{const _0x5b5170=_0x40d89c['viewItem'],_0x4a0b5c=_0x40d89c['modelCursor']?.['parent'];_0x5b5170['hasClass']('footnotes-list')&&_0x4a0b5c?.['is']('element','footnotesDefinitions')&&(function(_0x1c3f81,_0x423646,_0x124375,_0x3cf50f){if(!_0x3cf50f['checkAttribute'](_0x423646,'footnotesListStart'))return;let _0x37080a=0x1;const _0x5755f9=_0x124375['consumable']['consume'](_0x1c3f81,{'attributes':'start'});if(_0x5755f9){const _0x46d2a7=Number['parseInt'](_0x1c3f81['getAttribute']('start'),0xa);Number['isNaN'](_0x46d2a7)||(_0x37080a=_0x46d2a7);}!_0x5755f9&&_0x423646['hasAttribute']('footnotesListStart')||_0x124375['writer']['setAttribute']('footnotesListStart',_0x37080a,_0x423646);}(_0x5b5170,_0x4a0b5c,_0x579939,_0x195cca),function(_0xb5d16e,_0x1b3dd7,_0x703b92,_0x13a835){if(!_0x13a835['checkAttribute'](_0x1b3dd7,'footnotesListStyle'))return;let _0x11b120='decimal',_0x59de96=!0x1;if(_0x703b92['consumable']['consume'](_0xb5d16e,{'attributes':'type'})){const _0x501f87={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xb5d16e['getAttribute']('type')];_0x501f87&&(_0x11b120=_0x501f87),_0x59de96=!0x0;}_0x703b92['consumable']['consume'](_0xb5d16e,{'styles':'list-style-type'})&&(_0x11b120=_0xb5d16e['getStyle']('list-style-type'),_0x59de96=!0x0),!_0x59de96&&_0x1b3dd7['hasAttribute']('footnotesListStyle')||_0x703b92['writer']['setAttribute']('footnotesListStyle',_0x11b120,_0x1b3dd7);}(_0x5b5170,_0x4a0b5c,_0x579939,_0x195cca));});}),_0x8c3ad7['for']('downcast')['add'](_0x249530=>{_0x249530['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x18aa44,_0x13250c,_0x362425)=>{if(!_0x362425['consumable']['consume'](_0x13250c['item'],_0x18aa44['name']))return;const _0x243337=C(_0x13250c['item'],_0x362425['mapper']),{attributeNewValue:_0x457c34}=_0x13250c;null==_0x457c34||0x1===_0x457c34?_0x362425['writer']['removeAttribute']('start',_0x243337):_0x362425['writer']['setAttribute']('start',String(_0x457c34),_0x243337);}),_0x249530['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xbaa3cb,_0x56d846,_0x466bc1)=>{if(!_0x466bc1['consumable']['consume'](_0x56d846['item'],_0xbaa3cb['name']))return;const _0x326edd=C(_0x56d846['item'],_0x466bc1['mapper']),{attributeNewValue:_0x6242d6}=_0x56d846;_0x6242d6&&'decimal'!==_0x6242d6?_0x466bc1['writer']['setStyle']('list-style-type',_0x6242d6,_0x326edd):_0x466bc1['writer']['removeStyle']('list-style-type',_0x326edd);});});}['_definePostfixer'](){const {editor:_0x3a3162}=this,{model:_0x2ed5e8}=_0x3a3162,_0x3f92d3=_0x3a3162['plugins']['get'](c),_0x2ff9b6=this['_getDefaultListStyle'](),_0x50b218=this['_getDefaultStartIndex']();_0x2ed5e8['document']['registerPostFixer'](_0x3cd9c2=>{const _0x3cd2d4=_0x2ed5e8['document']['differ']['getChanges']();let _0x267312=!0x1;for(const _0x20f352 of _0x3cd2d4){if('insert'!==_0x20f352['type']||'$text'===_0x20f352['name'])continue;const _0x10001d=_0x2ed5e8['createRangeOn'](_0x20f352['position']['nodeAfter']);for(const _0x41fc81 of _0x10001d['getItems']())_0x41fc81['is']('element','footnotesDefinitions')&&(!_0x41fc81['hasAttribute']('footnotesListStart')&&_0x2ed5e8['schema']['checkAttribute'](_0x41fc81,'footnotesListStart')&&(_0x3cd9c2['setAttribute']('footnotesListStart',_0x50b218,_0x41fc81),_0x267312=!0x0),!_0x41fc81['hasAttribute']('footnotesListStyle')&&_0x2ed5e8['schema']['checkAttribute'](_0x41fc81,'footnotesListStyle')&&(_0x3cd9c2['setAttribute']('footnotesListStyle',_0x2ff9b6,_0x41fc81),_0x267312=!0x0));}return _0x267312&&_0x3f92d3['_updateFootnotesCounters'](_0x3cd9c2),_0x267312;});}['_defineFormatter'](){const {editor:_0x411778}=this;_0x411778['plugins']['get'](c)['setFootnoteFormatter'](_0x5adcc4=>this['_formatFootnoteListValue'](_0x5adcc4));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2a601e,value:_0x25030b,digits:_0x1264b2}){const _0x38bea9=_0x2a601e['getAttribute']('footnotesListStyle'),_0x509dba=_0x2a601e['getAttribute']('footnotesListStart'),_0x21c00b=Math['floor'](_0x25030b)+(_0x509dba??0x1)-0x1;switch(_0x38bea9){case'decimal-leading-zero':return function(_0x509652,_0x2e543c){return String(_0x509652)['padStart'](_0x2e543c,'0');}(_0x21c00b,Math['max'](0x2,_0x1264b2));case'lower-alpha':case'lower-latin':return M(_0x21c00b,!0x1);case'upper-alpha':case'upper-latin':return M(_0x21c00b,!0x0);case'lower-roman':return V(_0x21c00b,!0x1);case'upper-roman':return V(_0x21c00b,!0x0);default:return String(_0x21c00b);}}}function C(_0x1b1fa5,_0x3062ba){const _0x6552b2=_0x3062ba['toViewElement'](_0x1b1fa5);return Array['from'](_0x6552b2['getChildren']())['find'](_0x1f2382=>_0x1f2382['is']('element','ol')&&_0x1f2382['hasClass']('footnotes-list'));}function M(_0x5b7e21,_0x2d7c33){let _0x3404ab='',_0x8c117e=_0x5b7e21;for(;_0x8c117e>0x0;){const _0xa13cd8=(_0x8c117e-0x1)%0x1a;_0x3404ab=String['fromCharCode'](0x61+_0xa13cd8)+_0x3404ab,_0x8c117e=Math['floor']((_0x8c117e-0x1)/0x1a);}return _0x2d7c33?_0x3404ab['toUpperCase']():_0x3404ab;}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(_0x42ea28,_0x536edc){let _0x2a4c36='',_0x91ecd3=_0x42ea28;for(const {value:_0x35db6e,numeral:_0x5f3d26}of N)for(;_0x91ecd3>=_0x35db6e;)_0x2a4c36+=_0x5f3d26,_0x91ecd3-=_0x35db6e;return _0x536edc?_0x2a4c36:_0x2a4c36['toLowerCase']();}class H extends _0x5b7187{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x4feebe();['focusCycler'];constructor(_0x42f759,{styleButtonViews:_0x3143ef,styleGridAriaLabel:_0x4fb53d}){super(_0x42f759),(this['focusCycler']=new _0xcde62c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3143ef,_0x4fb53d),[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 _0x5e1e2d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5e1e2d['element']);_0x3d2f80({'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 _0x426def=_0x577fc8=>_0x577fc8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x426def),this['keystrokes']['set']('arrowleft',_0x426def),this['keystrokes']['set']('arrowup',_0x426def),this['keystrokes']['set']('arrowdown',_0x426def);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1c7094,_0x463942){const _0x570df6=new _0x5b7187(this['locale']);return _0x570df6['children']=_0x570df6['createCollection'](),_0x570df6['children']['addMany'](_0x1c7094),_0x570df6['setTemplate']({'tag':'div','attributes':{'aria-label':_0x463942,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x570df6['children']}),_0x570df6['children']['delegate']('execute')['to'](this),_0x570df6['focus']=function(){for(const _0x2faa41 of this['children'])if(_0x2faa41 instanceof _0x1d8b5f&&_0x2faa41['isOn'])return void _0x2faa41['focus']();this['children']['first']['focus']();},_0x570df6['focusTracker']=new et(),_0x570df6['keystrokes']=new ot(),_0x570df6['render'](),_0x570df6['keystrokes']['listenTo'](_0x570df6['element']),this['children']['add'](_0x570df6),_0x570df6;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2d4f0d=this['_createStartIndexPropertyView'](),_0x56feab=[_0x2d4f0d],_0x435eee=new tt(this['locale'],_0x56feab);return _0x435eee['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x435eee['buttonView']['bind']('isEnabled')['toMany'](_0x56feab,'isEnabled',(..._0x1032f8)=>_0x1032f8['some'](_0x2e4dbf=>_0x2e4dbf)),_0x435eee['buttonView']['on']('change:isEnabled',(_0x215fa3,_0x24352f,_0x46b130)=>{_0x46b130||(_0x435eee['isCollapsed']=!0x0);}),this['children']['add'](_0x435eee),[_0x2d4f0d,_0x435eee];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2a852f=new st(this['locale'],it);return _0x2a852f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2a852f['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2a852f['fieldView']['on']('input',()=>{const _0x2d2c66=_0x2a852f['fieldView']['element'],_0x150735=_0x2d2c66['valueAsNumber'];Number['isNaN'](_0x150735)?_0x2a852f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2d2c66['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x150735}):_0x2a852f['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2a852f;}}class j extends _0xcea80{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2321b8,_0x363de1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b54a3}=this,{componentFactory:_0x49934d}=_0x5b54a3['ui'];_0x5b54a3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x49934d['add']('footnotesStyle',function(_0x1fe322){return _0x1d1187=>{const {t:t}=_0x1d1187,_0x140ae7=_0x1fe322['commands']['get']('footnotesStyle'),_0x34bf6b=_0x17c049(_0x1d1187),{buttonView:_0x190be5}=_0x34bf6b;return _0x34bf6b['class']='ck-footnotes-styles-dropdown',_0x34bf6b['bind']('isEnabled')['to'](_0x140ae7,'isEnabled'),_0x190be5['set']({'label':t('Footnotes\x20style'),'icon':_0x3be37e,'tooltip':!0x0}),_0x34bf6b['once']('change:isOpen',()=>{const _0x2e2384=function({editor:_0x315bc2,dropdownView:_0x13b675}){const {t:t}=_0x315bc2['locale'],_0x46f964=t('Footnotes\x20definitions\x20styles'),_0x2f1074=function(_0x47ed73){const t=_0x47ed73['locale']['t'],_0x2fc788=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x565230},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4fc1f9},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x517c41},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1ceb52},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xd9e409},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x226891}];return _0x2fc788['map'](function(_0x58bb72){const _0x53544a=_0x58bb72['locale'];return({label:_0x31a9c9,icon:_0x42ecd9,tooltip:_0x3ab232,style:_0x4f64d})=>{const _0x45c0ec=_0x58bb72['commands']['get']('footnotesStyle'),_0x53bb9c=new _0x1d8b5f(_0x53544a);return _0x53bb9c['set']({'label':_0x31a9c9,'icon':_0x42ecd9,'tooltip':_0x3ab232}),_0x53bb9c['bind']('isOn')['to'](_0x45c0ec,'value',_0x4cbffd=>_0x4cbffd===_0x4f64d),_0x53bb9c['bind']('isEnabled')['to'](_0x45c0ec,'isEnabled'),_0x53bb9c['on']('execute',()=>{_0x58bb72['execute']('footnotesStyle',{'value':_0x4f64d}),_0x58bb72['editing']['view']['focus']();}),_0x53bb9c;};}(_0x47ed73));}(_0x315bc2),_0x4c2233=new H(_0x315bc2['locale'],{'styleGridAriaLabel':_0x46f964,'styleButtonViews':_0x2f1074});return _0x4c2233['delegate']('execute')['to'](_0x13b675),_0x4c2233['on']('footnotesListStart',(_0xc5124d,_0x2a9a04)=>{_0x315bc2['execute']('footnotesStart',{'value':_0x2a9a04['startIndex']});}),_0x4c2233;}({'editor':_0x1fe322,'dropdownView':_0x34bf6b});_0x34bf6b['panelView']['children']['add'](_0x2e2384);}),_0x34bf6b;};}(_0x5b54a3));}['afterInit'](){const {editor:_0x4bbc58}=this,{t:t}=_0x4bbc58['locale'],_0x55e5e0=_0x4bbc58['plugins']['get'](_0x363de1),{defaultPositions:_0x1d9beb}=_0x41aa3f;_0x55e5e0['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4bbc58['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1e6033=>{let _0x3b9e36=_0x1e6033['getFirstPosition']()?.['parent'];return _0x3b9e36?.['is']('$text')&&(_0x3b9e36=_0x3b9e36['parent']),_0x3b9e36?.['is']('element')?_0x3b9e36['findAncestor'](J):null;},'positions':[_0x1d9beb['southArrowNorth'],_0x1d9beb['southArrowNorthMiddleWest'],_0x1d9beb['southArrowNorthMiddleEast'],_0x1d9beb['southArrowNorthWest'],_0x1d9beb['southArrowNorthEast'],_0x1d9beb['northArrowSouth'],_0x1d9beb['northArrowSouthMiddleWest'],_0x1d9beb['northArrowSouthMiddleEast'],_0x1d9beb['northArrowSouthWest'],_0x1d9beb['northArrowSouthEast'],_0x1d9beb['viewportStickyNorth']]});}}class lt extends _0xcea80{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-20251023.0",
3
+ "version": "0.0.0-nightly-20251024.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-20251023.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251023.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251023.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251023.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251023.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251023.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251023.0",
33
- "ckeditor5": "0.0.0-nightly-20251023.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251024.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251024.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251024.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251024.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251024.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251024.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251024.0",
33
+ "ckeditor5": "0.0.0-nightly-20251024.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 _0xe944b3=_0x356b;(function(_0x23843f,_0x5023e7){const _0x2a2e43=_0x356b,_0x355b8=_0x23843f();while(!![]){try{const _0x52dad9=parseInt(_0x2a2e43(0x10b))/0x1+-parseInt(_0x2a2e43(0x105))/0x2+parseInt(_0x2a2e43(0x125))/0x3+-parseInt(_0x2a2e43(0x127))/0x4+-parseInt(_0x2a2e43(0x10e))/0x5*(-parseInt(_0x2a2e43(0x123))/0x6)+-parseInt(_0x2a2e43(0x128))/0x7*(parseInt(_0x2a2e43(0x11d))/0x8)+parseInt(_0x2a2e43(0x11a))/0x9*(-parseInt(_0x2a2e43(0x120))/0xa);if(_0x52dad9===_0x5023e7)break;else _0x355b8['push'](_0x355b8['shift']());}catch(_0x31af8a){_0x355b8['push'](_0x355b8['shift']());}}}(_0x2ea9,0xd8fb6));import{logWarning as _0x1bea80,uid as _0x362454}from'ckeditor5/src/utils.js';function _0x356b(_0x50e0fb,_0x221a63){const _0x2ea9ae=_0x2ea9();return _0x356b=function(_0x356b44,_0x5b7b72){_0x356b44=_0x356b44-0x104;let _0x3e39c5=_0x2ea9ae[_0x356b44];return _0x3e39c5;},_0x356b(_0x50e0fb,_0x221a63);}import{Command as _0x3bbf6e}from'ckeditor5/src/core.js';function _0x2ea9(){const _0x1136ba=['FootnotesEditing','isEnabled','length','createElement','isObject','isBlock','end','insert-footnote-command-executed-with-invalid-id','execute','change','footnoteId','9IuLwdQ','selection','editor','112uAOwLM','_getPositionToInsertFootnote','footnoteRef','8602630BKUapK','insertObject','getItems','24Gebipv','checkChild','2816241vwRbXj','test','3767864LLBoMI','276570oodHAt','plugins','1239688sXhhWq','string','_moveSelectionToFootnoteDefinition','refresh','getFirstRange','model','1243400huBNgt','get','document','2102280vlDoMi'];_0x2ea9=function(){return _0x1136ba;};return _0x2ea9();}export class InsertFootnoteCommand extends _0x3bbf6e{[_0xe944b3(0x108)](){const _0x32faa0=_0xe944b3,_0x38406c=this[_0x32faa0(0x11c)][_0x32faa0(0x10a)][_0x32faa0(0x10d)][_0x32faa0(0x11b)],_0x5311d9=this[_0x32faa0(0x11e)](_0x38406c);this[_0x32faa0(0x110)]=!!_0x5311d9;}[_0xe944b3(0x117)](_0x501087){const _0x3ca5aa=_0xe944b3,{editor:_0x15a93b}=this,{model:_0x3805dc}=_0x15a93b,{selection:_0x1a41f5}=_0x3805dc[_0x3ca5aa(0x10d)],_0x1e83eb=this[_0x3ca5aa(0x11e)](_0x1a41f5);if(!_0x1e83eb)return;const _0x215e30=_0x15a93b[_0x3ca5aa(0x104)][_0x3ca5aa(0x10c)](_0x3ca5aa(0x10f)),_0x325edf=_0x501087?.[_0x3ca5aa(0x119)]??_0x362454();!function(_0x41c9fe){const _0x455dd1=_0x3ca5aa;return _0x455dd1(0x106)==typeof _0x41c9fe&&_0x41c9fe[_0x455dd1(0x111)]>0x0&&!/\s/[_0x455dd1(0x126)](_0x41c9fe)&&!/^\d/[_0x455dd1(0x126)](_0x41c9fe);}(_0x325edf)?_0x1bea80(_0x3ca5aa(0x116)):(_0x3805dc[_0x3ca5aa(0x118)](_0x46cc97=>{const _0x3728e2=_0x3ca5aa,_0x1e8e7d=_0x46cc97[_0x3728e2(0x112)](_0x3728e2(0x11f),{'footnoteId':_0x325edf});_0x3805dc[_0x3728e2(0x121)](_0x1e8e7d,_0x1e83eb,null);}),_0x215e30[_0x3ca5aa(0x107)](_0x325edf));}[_0xe944b3(0x11e)](_0x513667){const _0x304e0c=_0xe944b3,{model:_0x99b040}=this[_0x304e0c(0x11c)],{schema:_0x4ea8a2}=_0x99b040,_0x26d709=_0x513667[_0x304e0c(0x109)]();for(const _0x1137b2 of _0x26d709[_0x304e0c(0x122)]())if(_0x4ea8a2[_0x304e0c(0x114)](_0x1137b2)||_0x4ea8a2[_0x304e0c(0x113)](_0x1137b2))return null;const _0x51de08=_0x26d709[_0x304e0c(0x115)];return _0x4ea8a2[_0x304e0c(0x124)](_0x51de08,_0x304e0c(0x11f))?_0x51de08:null;}}
23
+ function _0x1757(_0x160b27,_0x3eee44){const _0x4ee17f=_0x4ee1();return _0x1757=function(_0x17578a,_0x3670ca){_0x17578a=_0x17578a-0x1a0;let _0x4bb572=_0x4ee17f[_0x17578a];return _0x4bb572;},_0x1757(_0x160b27,_0x3eee44);}const _0x18929a=_0x1757;(function(_0x5762f4,_0x467406){const _0xa8be52=_0x1757,_0x10538f=_0x5762f4();while(!![]){try{const _0x5fe805=parseInt(_0xa8be52(0x1c2))/0x1+parseInt(_0xa8be52(0x1b2))/0x2+parseInt(_0xa8be52(0x1a8))/0x3+-parseInt(_0xa8be52(0x1a6))/0x4*(-parseInt(_0xa8be52(0x1b4))/0x5)+parseInt(_0xa8be52(0x1bf))/0x6*(-parseInt(_0xa8be52(0x1b7))/0x7)+-parseInt(_0xa8be52(0x1bd))/0x8+-parseInt(_0xa8be52(0x1be))/0x9;if(_0x5fe805===_0x467406)break;else _0x10538f['push'](_0x10538f['shift']());}catch(_0x3e26cc){_0x10538f['push'](_0x10538f['shift']());}}}(_0x4ee1,0x6b162));function _0x4ee1(){const _0x3c89d9=['document','4159659aZUUbN','execute','refresh','FootnotesEditing','isObject','getFirstRange','5524368gGKSaS','751221AwlfiH','6LQAakI','get','isEnabled','795633iKYpRF','getItems','plugins','footnoteId','insert-footnote-command-executed-with-invalid-id','createElement','editor','test','8tmVdQc','selection','261201cjXgvA','footnoteRef','string','insertObject','_moveSelectionToFootnoteDefinition','_getPositionToInsertFootnote','checkChild','end','length','isBlock','721908eBmGqW','model','1408060hPkCtv','change'];_0x4ee1=function(){return _0x3c89d9;};return _0x4ee1();}import{logWarning as _0x4a7fa1,uid as _0x3b0dcf}from'ckeditor5/src/utils.js';import{Command as _0x1fb72f}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x1fb72f{[_0x18929a(0x1b9)](){const _0x3d0bec=_0x18929a,_0x836399=this[_0x3d0bec(0x1a4)][_0x3d0bec(0x1b3)][_0x3d0bec(0x1b6)][_0x3d0bec(0x1a7)],_0x2e20e2=this[_0x3d0bec(0x1ad)](_0x836399);this[_0x3d0bec(0x1c1)]=!!_0x2e20e2;}[_0x18929a(0x1b8)](_0x196663){const _0x246e61=_0x18929a,{editor:_0x2a61d3}=this,{model:_0x156bea}=_0x2a61d3,{selection:_0x48e2db}=_0x156bea[_0x246e61(0x1b6)],_0x35ff41=this[_0x246e61(0x1ad)](_0x48e2db);if(!_0x35ff41)return;const _0x12a09b=_0x2a61d3[_0x246e61(0x1a0)][_0x246e61(0x1c0)](_0x246e61(0x1ba)),_0x12a223=_0x196663?.[_0x246e61(0x1a1)]??_0x3b0dcf();!function(_0x56e283){const _0x2199b6=_0x246e61;return _0x2199b6(0x1aa)==typeof _0x56e283&&_0x56e283[_0x2199b6(0x1b0)]>0x0&&!/\s/[_0x2199b6(0x1a5)](_0x56e283)&&!/^\d/[_0x2199b6(0x1a5)](_0x56e283);}(_0x12a223)?_0x4a7fa1(_0x246e61(0x1a2)):(_0x156bea[_0x246e61(0x1b5)](_0x41090f=>{const _0x278f0e=_0x246e61,_0x20035f=_0x41090f[_0x278f0e(0x1a3)](_0x278f0e(0x1a9),{'footnoteId':_0x12a223});_0x156bea[_0x278f0e(0x1ab)](_0x20035f,_0x35ff41,null);}),_0x12a09b[_0x246e61(0x1ac)](_0x12a223));}[_0x18929a(0x1ad)](_0x5e3fc3){const _0x445571=_0x18929a,{model:_0x3a9ee5}=this[_0x445571(0x1a4)],{schema:_0x949536}=_0x3a9ee5,_0x17e909=_0x5e3fc3[_0x445571(0x1bc)]();for(const _0x2000a9 of _0x17e909[_0x445571(0x1c3)]())if(_0x949536[_0x445571(0x1b1)](_0x2000a9)||_0x949536[_0x445571(0x1bb)](_0x2000a9))return null;const _0x1c07a7=_0x17e909[_0x445571(0x1af)];return _0x949536[_0x445571(0x1ae)](_0x1c07a7,_0x445571(0x1a9))?_0x1c07a7:null;}}
package/src/footnotes.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4955(){var _0x13af4d=['1279852QHiGeq','3165952PUcUTw','112252TdhAyV','requires','isOfficialPlugin','pluginName','12rVKChs','11424091fTLKsj','47912238xJgbEP','7293820WxKrsU','isPremiumPlugin','6fnADct','2720742YLaAGk','Footnotes'];_0x4955=function(){return _0x13af4d;};return _0x4955();}var _0x4aa1ac=_0x3d92;(function(_0x20b370,_0x3ca61b){var _0x536c87=_0x3d92,_0x39ae0f=_0x20b370();while(!![]){try{var _0x2efc1d=parseInt(_0x536c87(0xac))/0x1+parseInt(_0x536c87(0xb6))/0x2+-parseInt(_0x536c87(0xb0))/0x3*(-parseInt(_0x536c87(0xaa))/0x4)+parseInt(_0x536c87(0xb3))/0x5+-parseInt(_0x536c87(0xb5))/0x6*(-parseInt(_0x536c87(0xb1))/0x7)+parseInt(_0x536c87(0xab))/0x8+-parseInt(_0x536c87(0xb2))/0x9;if(_0x2efc1d===_0x3ca61b)break;else _0x39ae0f['push'](_0x39ae0f['shift']());}catch(_0x69822e){_0x39ae0f['push'](_0x39ae0f['shift']());}}}(_0x4955,0xdf7d6));import{Plugin as _0x52a7c8}from'ckeditor5/src/core.js';function _0x3d92(_0x3909d4,_0x225fa5){var _0x495524=_0x4955();return _0x3d92=function(_0x3d92b7,_0x53b043){_0x3d92b7=_0x3d92b7-0xaa;var _0x496ed9=_0x495524[_0x3d92b7];return _0x496ed9;},_0x3d92(_0x3909d4,_0x225fa5);}import{FootnotesEditing as _0x204c2e}from'./footnotesediting.js';import{FootnotesClipboard as _0x3b03fd}from'./footnotesclipboard.js';import{FootnotesUI as _0x2ab1e5}from'./footnotesui.js';export class Footnotes extends _0x52a7c8{static get[_0x4aa1ac(0xaf)](){var _0x32f629=_0x4aa1ac;return _0x32f629(0xb7);}static get[_0x4aa1ac(0xad)](){return[_0x204c2e,_0x3b03fd,_0x2ab1e5];}static get[_0x4aa1ac(0xae)](){return!0x0;}static get[_0x4aa1ac(0xb4)](){return!0x0;}}
23
+ var _0x1a6d8e=_0x2ef2;(function(_0x814cba,_0x40c69b){var _0x5b6988=_0x2ef2,_0x2d5c56=_0x814cba();while(!![]){try{var _0x4ee605=-parseInt(_0x5b6988(0x1a4))/0x1*(parseInt(_0x5b6988(0x19d))/0x2)+-parseInt(_0x5b6988(0x196))/0x3*(parseInt(_0x5b6988(0x19c))/0x4)+parseInt(_0x5b6988(0x19f))/0x5*(-parseInt(_0x5b6988(0x198))/0x6)+-parseInt(_0x5b6988(0x1a1))/0x7*(parseInt(_0x5b6988(0x197))/0x8)+-parseInt(_0x5b6988(0x1a2))/0x9+-parseInt(_0x5b6988(0x195))/0xa*(-parseInt(_0x5b6988(0x199))/0xb)+parseInt(_0x5b6988(0x19a))/0xc;if(_0x4ee605===_0x40c69b)break;else _0x2d5c56['push'](_0x2d5c56['shift']());}catch(_0xd9c845){_0x2d5c56['push'](_0x2d5c56['shift']());}}}(_0x406b,0x71719));import{Plugin as _0x5cc705}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x21c27e}from'./footnotesediting.js';function _0x406b(){var _0x5c5093=['604247KDxmqo','1894185BJFpkw','isPremiumPlugin','107722xOzXed','Footnotes','333390FICewp','1929NwRAKi','8Ynggky','212100dladgN','33lOGXRU','18248364jYKKPq','requires','916zPpfaK','6nJfQwa','isOfficialPlugin','55yFcSQj','pluginName'];_0x406b=function(){return _0x5c5093;};return _0x406b();}import{FootnotesClipboard as _0x2c5d45}from'./footnotesclipboard.js';import{FootnotesUI as _0x577d74}from'./footnotesui.js';function _0x2ef2(_0x4f42c6,_0x199f66){var _0x406bb0=_0x406b();return _0x2ef2=function(_0x2ef291,_0xd52b07){_0x2ef291=_0x2ef291-0x195;var _0x568b15=_0x406bb0[_0x2ef291];return _0x568b15;},_0x2ef2(_0x4f42c6,_0x199f66);}export class Footnotes extends _0x5cc705{static get[_0x1a6d8e(0x1a0)](){var _0x1f8446=_0x1a6d8e;return _0x1f8446(0x1a5);}static get[_0x1a6d8e(0x19b)](){return[_0x21c27e,_0x2c5d45,_0x577d74];}static get[_0x1a6d8e(0x19e)](){return!0x0;}static get[_0x1a6d8e(0x1a3)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3f1a(_0x2d9a77,_0x279bdc){const _0x3ddd6a=_0x3ddd();return _0x3f1a=function(_0x3f1a29,_0x2b6ad3){_0x3f1a29=_0x3f1a29-0x1a2;let _0x3ceecc=_0x3ddd6a[_0x3f1a29];return _0x3ceecc;},_0x3f1a(_0x2d9a77,_0x279bdc);}const _0x924f9c=_0x3f1a;(function(_0x529a9b,_0x2f50cd){const _0x4c034d=_0x3f1a,_0x135f3f=_0x529a9b();while(!![]){try{const _0x433f5d=-parseInt(_0x4c034d(0x1a3))/0x1+parseInt(_0x4c034d(0x1d1))/0x2*(parseInt(_0x4c034d(0x1a5))/0x3)+parseInt(_0x4c034d(0x1c7))/0x4*(-parseInt(_0x4c034d(0x1b8))/0x5)+parseInt(_0x4c034d(0x1a7))/0x6+parseInt(_0x4c034d(0x1bd))/0x7+parseInt(_0x4c034d(0x1df))/0x8*(parseInt(_0x4c034d(0x1d5))/0x9)+-parseInt(_0x4c034d(0x1b1))/0xa;if(_0x433f5d===_0x2f50cd)break;else _0x135f3f['push'](_0x135f3f['shift']());}catch(_0x8d59c6){_0x135f3f['push'](_0x135f3f['shift']());}}}(_0x3ddd,0xb4f88));import{Plugin as _0x55fa14}from'ckeditor5/src/core.js';function _0x3ddd(){const _0xb44472=['data','17325290soxtbp','contentInsertion','isPremiumPlugin','element','application/ckeditor5-footnotes','clipboardInput','change','140Pwsyor','length','getFootnotes','pluginName','footnoteRef','1737246CbNYAP','selection','from','root','createElement','createRangeIn','getFootnotesDefinitionsObjectElement','push','definition','outputTransformation','123936rvBmoJ','requires','editor','getFirstRange','footnoteId','htmlProcessor','entries','listenTo','getData','add','10462ITCKTt','content','end','setData','81NwbXPz','_handlePasteFootnotesDefinitions','_insertEmptyFootnotesDefinitionsContainer','dataTransfer','footnotesDefinitions','footnoteDefinition','append','remove','drop','toData','1297736WqkAoT','sourceEditorId','create','find','_handleCopyFootnotesDefinitions','init','method','toModel','setAttribute','getAttribute','stringify','_defineClipboardIntegration','109269TInIUW','document','303vucDFx','get','7284864sOkSaF','toView','isOfficialPlugin','parse','reduce','getFootnote','editing','insert','FootnotesClipboard'];_0x3ddd=function(){return _0xb44472;};return _0x3ddd();}import{uid as _0x212b2a}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0xa2d005}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x4d88e3}from'./footnotesediting.js';import{FootnotesTracker as _0x2b8f66}from'./footnotestracker.js';export class FootnotesClipboard extends _0x55fa14{static get[_0x924f9c(0x1bb)](){const _0x35bd96=_0x924f9c;return _0x35bd96(0x1af);}static get[_0x924f9c(0x1c8)](){return[_0x4d88e3,_0xa2d005];}static get[_0x924f9c(0x1a9)](){return!0x0;}static get[_0x924f9c(0x1b3)](){return!0x0;}[_0x924f9c(0x1e4)](){const _0x2cb059=_0x924f9c;this[_0x2cb059(0x1a2)]();}[_0x924f9c(0x1a2)](){const _0x6704d5=_0x924f9c;this[_0x6704d5(0x1e3)](),this[_0x6704d5(0x1d6)]();}[_0x924f9c(0x1e3)](){const _0x42bfc2=_0x924f9c,{editor:_0x503677}=this,{plugins:_0x3970aa,model:_0x702656}=_0x503677,_0x27a270=_0x3970aa[_0x42bfc2(0x1a6)](_0xa2d005),_0x1fab50=_0x3970aa[_0x42bfc2(0x1a6)](_0x2b8f66);this[_0x42bfc2(0x1ce)](_0x27a270,_0x42bfc2(0x1c6),(_0x539415,_0x49292f)=>{const _0x2ccc07=_0x42bfc2,_0x530c54=function(_0x3ce0fd,_0x31753a){const _0x1b268b=_0x3f1a,_0xd7d72c=new Set();for(const {item:_0x291bdf}of _0x3ce0fd[_0x1b268b(0x1c2)](_0x31753a))_0x291bdf['is'](_0x1b268b(0x1b4),_0x1b268b(0x1bc))&&_0xd7d72c[_0x1b268b(0x1d0)](_0x291bdf[_0x1b268b(0x1e8)](_0x1b268b(0x1cb)));return Array[_0x1b268b(0x1bf)](_0xd7d72c);}(_0x702656,_0x49292f[_0x2ccc07(0x1d2)]);if(!_0x530c54[_0x2ccc07(0x1b9)])return;const _0x27ffbd=_0x1fab50[_0x2ccc07(0x1ba)](),_0x3015e3=_0x530c54[_0x2ccc07(0x1ab)]((_0x238dd4,_0x169dd4)=>{const _0x48e17c=_0x2ccc07,_0x2fc4d0=_0x27ffbd[_0x48e17c(0x1e2)](_0x30fd94=>_0x30fd94['id']===_0x169dd4);if(_0x2fc4d0){const _0x859920=_0x503677[_0x48e17c(0x1b0)][_0x48e17c(0x1a8)](_0x2fc4d0[_0x48e17c(0x1c5)],{'isClipboardPipeline':!0x0}),_0xd8c669=_0x503677[_0x48e17c(0x1b0)][_0x48e17c(0x1cc)][_0x48e17c(0x1de)](_0x859920);_0x238dd4[_0x2fc4d0['id']]=_0xd8c669;}return _0x238dd4;},Object[_0x2ccc07(0x1e1)](null));_0x49292f[_0x2ccc07(0x1d8)][_0x2ccc07(0x1d4)](_0x2ccc07(0x1b5),JSON[_0x2ccc07(0x1e9)](_0x3015e3));});}[_0x924f9c(0x1d6)](){const _0x2e9475=_0x924f9c,{editor:_0x49dde7}=this,{model:_0x4dd953,plugins:_0x3c289e}=_0x49dde7,{view:_0x1e4551}=_0x49dde7[_0x2e9475(0x1ad)],_0x579712=_0x3c289e[_0x2e9475(0x1a6)](_0xa2d005),_0x5859a2=_0x3c289e[_0x2e9475(0x1a6)](_0x2b8f66);let _0x3ca263=null;this[_0x2e9475(0x1ce)](_0x1e4551[_0x2e9475(0x1a4)],_0x2e9475(0x1b6),(_0x48b649,_0x202c15)=>{const _0x344996=_0x2e9475,_0x1e85dc=_0x202c15[_0x344996(0x1d8)][_0x344996(0x1cf)](_0x344996(0x1b5));_0x3ca263=_0x1e85dc?JSON[_0x344996(0x1aa)](_0x1e85dc):null;}),this[_0x2e9475(0x1ce)](_0x579712,_0x2e9475(0x1b2),(_0x3dab13,_0x372652)=>{const _0x28d348=_0x2e9475;if(!_0x3ca263)return;const _0xe41a48=_0x372652[_0x28d348(0x1e0)]===this[_0x28d348(0x1c9)]['id'];_0xe41a48&&_0x28d348(0x1dd)===_0x372652[_0x28d348(0x1e5)]||_0x4dd953[_0x28d348(0x1b7)](_0x3afcca=>{const _0x4f71e8=_0x28d348;!function(_0x2e0a38,_0x248f70){const _0x5ee896=_0x3f1a,_0x1e56f5=[];for(const {item:_0x3d4aa9}of _0x2e0a38[_0x5ee896(0x1c2)](_0x248f70))_0x3d4aa9['is'](_0x5ee896(0x1b4),_0x5ee896(0x1d9))&&_0x1e56f5[_0x5ee896(0x1c4)](_0x3d4aa9);for(const _0x522a81 of _0x1e56f5)_0x2e0a38[_0x5ee896(0x1dc)](_0x522a81);}(_0x3afcca,_0x372652[_0x4f71e8(0x1d2)]);let _0x5deb3a=_0x5859a2[_0x4f71e8(0x1c3)]();if(!_0x5deb3a){const _0x2367f5=_0x4dd953[_0x4f71e8(0x1a4)][_0x4f71e8(0x1be)][_0x4f71e8(0x1ca)]()[_0x4f71e8(0x1c0)];_0x5deb3a=_0x5859a2[_0x4f71e8(0x1d7)](_0x3afcca,_0x2367f5);}const _0x5f13ca=function(_0x5da35d,_0x258b49,_0x49933a){const _0x3a663a=_0x4f71e8,_0xd6ba0b=Object[_0x3a663a(0x1e1)](null);for(const {item:_0x47bfeb}of _0x5da35d[_0x3a663a(0x1c2)](_0x258b49))if(_0x47bfeb['is'](_0x3a663a(0x1b4),_0x3a663a(0x1bc))){const _0x1655c6=_0x47bfeb[_0x3a663a(0x1e8)](_0x3a663a(0x1cb));if(!_0x49933a(_0x1655c6))continue;_0xd6ba0b[_0x1655c6]||(_0xd6ba0b[_0x1655c6]=_0x212b2a()),_0x5da35d[_0x3a663a(0x1e7)](_0x3a663a(0x1cb),_0xd6ba0b[_0x1655c6],_0x47bfeb);}return _0xd6ba0b;}(_0x3afcca,_0x372652[_0x4f71e8(0x1d2)],_0x488078=>!_0xe41a48||null!==_0x5859a2[_0x4f71e8(0x1ac)](_0x488078));for(const [_0x40008d,_0x58ca6e]of Object[_0x4f71e8(0x1cd)](_0x3ca263)){const _0x4c6a6b=_0x5f13ca[_0x40008d]||_0x40008d,_0x37c965=_0x3afcca[_0x4f71e8(0x1c1)](_0x4f71e8(0x1da),{'footnoteId':_0x4c6a6b}),_0x14f8dd=_0x49dde7[_0x4f71e8(0x1b0)][_0x4f71e8(0x1cc)][_0x4f71e8(0x1a8)](_0x58ca6e),_0x2feb99=_0x49dde7[_0x4f71e8(0x1b0)][_0x4f71e8(0x1e6)](_0x14f8dd,_0x37c965);_0x3afcca[_0x4f71e8(0x1db)](_0x2feb99,_0x37c965),_0x3afcca[_0x4f71e8(0x1ae)](_0x37c965,_0x5deb3a,_0x4f71e8(0x1d3));}_0x3ca263=null;});});}}
23
+ const _0x2c9466=_0x566b;function _0x5012(){const _0x353908=['739809jvBZjO','end','76936reIAex','createElement','entries','toView','root','sourceEditorId','outputTransformation','change','listenTo','240054OaFRJX','definition','85gvHmvB','footnoteRef','selection','43699524CZnoSu','htmlProcessor','1169mhlqTf','pluginName','getFootnotes','get','getAttribute','isPremiumPlugin','getFootnote','length','10OPSXWv','add','document','getData','FootnotesClipboard','stringify','_defineClipboardIntegration','contentInsertion','append','method','create','_insertEmptyFootnotesDefinitionsContainer','getFirstRange','footnoteDefinition','drop','data','clipboardInput','editor','remove','init','304951PtFYBc','toModel','find','29272ERdloR','from','editing','element','2212174cvxIJe','application/ckeditor5-footnotes','footnoteId','setAttribute','isOfficialPlugin','toData','dataTransfer','reduce','561CLTLNF','footnotesDefinitions','push','requires','_handlePasteFootnotesDefinitions','parse','createRangeIn','setData','content','_handleCopyFootnotesDefinitions','getFootnotesDefinitionsObjectElement','insert'];_0x5012=function(){return _0x353908;};return _0x5012();}(function(_0x4d53da,_0x2299ba){const _0x277b10=_0x566b,_0x75f161=_0x4d53da();while(!![]){try{const _0x19b301=parseInt(_0x277b10(0x115))/0x1+-parseInt(_0x277b10(0x11c))/0x2+-parseInt(_0x277b10(0x124))/0x3*(parseInt(_0x277b10(0x118))/0x4)+parseInt(_0x277b10(0xf4))/0x5*(parseInt(_0x277b10(0xf2))/0x6)+-parseInt(_0x277b10(0xf9))/0x7*(parseInt(_0x277b10(0xe9))/0x8)+-parseInt(_0x277b10(0xe7))/0x9*(-parseInt(_0x277b10(0x101))/0xa)+parseInt(_0x277b10(0xf7))/0xb;if(_0x19b301===_0x2299ba)break;else _0x75f161['push'](_0x75f161['shift']());}catch(_0xd9cedf){_0x75f161['push'](_0x75f161['shift']());}}}(_0x5012,0xea3a5));import{Plugin as _0x2dc3d2}from'ckeditor5/src/core.js';import{uid as _0x15649a}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0x5b6e65}from'ckeditor5/src/clipboard.js';function _0x566b(_0x3584ad,_0x1e235f){const _0x5012a2=_0x5012();return _0x566b=function(_0x566b48,_0x4cfbb3){_0x566b48=_0x566b48-0xdf;let _0xa1ba46=_0x5012a2[_0x566b48];return _0xa1ba46;},_0x566b(_0x3584ad,_0x1e235f);}import{FootnotesEditing as _0x468cba}from'./footnotesediting.js';import{FootnotesTracker as _0x21ed2d}from'./footnotestracker.js';export class FootnotesClipboard extends _0x2dc3d2{static get[_0x2c9466(0xfa)](){const _0x34b7a1=_0x2c9466;return _0x34b7a1(0x105);}static get[_0x2c9466(0x127)](){return[_0x468cba,_0x5b6e65];}static get[_0x2c9466(0x120)](){return!0x0;}static get[_0x2c9466(0xfe)](){return!0x0;}[_0x2c9466(0x114)](){const _0x2382fd=_0x2c9466;this[_0x2382fd(0x107)]();}[_0x2c9466(0x107)](){const _0x4d13f9=_0x2c9466;this[_0x4d13f9(0xe4)](),this[_0x4d13f9(0xdf)]();}[_0x2c9466(0xe4)](){const _0x3327c2=_0x2c9466,{editor:_0x42470f}=this,{plugins:_0x57b759,model:_0x288acb}=_0x42470f,_0x235e4e=_0x57b759[_0x3327c2(0xfc)](_0x5b6e65),_0x854337=_0x57b759[_0x3327c2(0xfc)](_0x21ed2d);this[_0x3327c2(0xf1)](_0x235e4e,_0x3327c2(0xef),(_0x47c8d8,_0x1ad0e5)=>{const _0x40f3f1=_0x3327c2,_0x41b4e0=function(_0x1454d8,_0x5cf7d0){const _0x1966f4=_0x566b,_0x3331f0=new Set();for(const {item:_0x323720}of _0x1454d8[_0x1966f4(0xe1)](_0x5cf7d0))_0x323720['is'](_0x1966f4(0x11b),_0x1966f4(0xf5))&&_0x3331f0[_0x1966f4(0x102)](_0x323720[_0x1966f4(0xfd)](_0x1966f4(0x11e)));return Array[_0x1966f4(0x119)](_0x3331f0);}(_0x288acb,_0x1ad0e5[_0x40f3f1(0xe3)]);if(!_0x41b4e0[_0x40f3f1(0x100)])return;const _0x28aaba=_0x854337[_0x40f3f1(0xfb)](),_0x4186a6=_0x41b4e0[_0x40f3f1(0x123)]((_0x58519d,_0xcc1366)=>{const _0x2a3ffc=_0x40f3f1,_0x4474e6=_0x28aaba[_0x2a3ffc(0x117)](_0x393829=>_0x393829['id']===_0xcc1366);if(_0x4474e6){const _0x115a35=_0x42470f[_0x2a3ffc(0x110)][_0x2a3ffc(0xec)](_0x4474e6[_0x2a3ffc(0xf3)],{'isClipboardPipeline':!0x0}),_0x31f986=_0x42470f[_0x2a3ffc(0x110)][_0x2a3ffc(0xf8)][_0x2a3ffc(0x121)](_0x115a35);_0x58519d[_0x4474e6['id']]=_0x31f986;}return _0x58519d;},Object[_0x40f3f1(0x10b)](null));_0x1ad0e5[_0x40f3f1(0x122)][_0x40f3f1(0xe2)](_0x40f3f1(0x11d),JSON[_0x40f3f1(0x106)](_0x4186a6));});}[_0x2c9466(0xdf)](){const _0x531388=_0x2c9466,{editor:_0x54d2de}=this,{model:_0x5211b3,plugins:_0x54b130}=_0x54d2de,{view:_0x3551f0}=_0x54d2de[_0x531388(0x11a)],_0x2ef506=_0x54b130[_0x531388(0xfc)](_0x5b6e65),_0x3bac39=_0x54b130[_0x531388(0xfc)](_0x21ed2d);let _0x5e4739=null;this[_0x531388(0xf1)](_0x3551f0[_0x531388(0x103)],_0x531388(0x111),(_0x3e7a9c,_0x2f6e99)=>{const _0x3f0d7d=_0x531388,_0x435db1=_0x2f6e99[_0x3f0d7d(0x122)][_0x3f0d7d(0x104)](_0x3f0d7d(0x11d));_0x5e4739=_0x435db1?JSON[_0x3f0d7d(0xe0)](_0x435db1):null;}),this[_0x531388(0xf1)](_0x2ef506,_0x531388(0x108),(_0x51a18e,_0x3a2f29)=>{const _0x4d7e8a=_0x531388;if(!_0x5e4739)return;const _0x351e81=_0x3a2f29[_0x4d7e8a(0xee)]===this[_0x4d7e8a(0x112)]['id'];_0x351e81&&_0x4d7e8a(0x10f)===_0x3a2f29[_0x4d7e8a(0x10a)]||_0x5211b3[_0x4d7e8a(0xf0)](_0x355112=>{const _0x176f01=_0x4d7e8a;!function(_0xf492cd,_0x4341fb){const _0x1cfb36=_0x566b,_0x456419=[];for(const {item:_0x3e73b9}of _0xf492cd[_0x1cfb36(0xe1)](_0x4341fb))_0x3e73b9['is'](_0x1cfb36(0x11b),_0x1cfb36(0x125))&&_0x456419[_0x1cfb36(0x126)](_0x3e73b9);for(const _0x2720a5 of _0x456419)_0xf492cd[_0x1cfb36(0x113)](_0x2720a5);}(_0x355112,_0x3a2f29[_0x176f01(0xe3)]);let _0x1f89fc=_0x3bac39[_0x176f01(0xe5)]();if(!_0x1f89fc){const _0x220e19=_0x5211b3[_0x176f01(0x103)][_0x176f01(0xf6)][_0x176f01(0x10d)]()[_0x176f01(0xed)];_0x1f89fc=_0x3bac39[_0x176f01(0x10c)](_0x355112,_0x220e19);}const _0x34da3b=function(_0x14e280,_0x2691f7,_0x1d92e9){const _0x3e4df9=_0x176f01,_0x8200f2=Object[_0x3e4df9(0x10b)](null);for(const {item:_0x47b678}of _0x14e280[_0x3e4df9(0xe1)](_0x2691f7))if(_0x47b678['is'](_0x3e4df9(0x11b),_0x3e4df9(0xf5))){const _0x15fbc3=_0x47b678[_0x3e4df9(0xfd)](_0x3e4df9(0x11e));if(!_0x1d92e9(_0x15fbc3))continue;_0x8200f2[_0x15fbc3]||(_0x8200f2[_0x15fbc3]=_0x15649a()),_0x14e280[_0x3e4df9(0x11f)](_0x3e4df9(0x11e),_0x8200f2[_0x15fbc3],_0x47b678);}return _0x8200f2;}(_0x355112,_0x3a2f29[_0x176f01(0xe3)],_0x15db7a=>!_0x351e81||null!==_0x3bac39[_0x176f01(0xff)](_0x15db7a));for(const [_0x3f72ca,_0x179c73]of Object[_0x176f01(0xeb)](_0x5e4739)){const _0x1ffb65=_0x34da3b[_0x3f72ca]||_0x3f72ca,_0x3835fb=_0x355112[_0x176f01(0xea)](_0x176f01(0x10e),{'footnoteId':_0x1ffb65}),_0x498d90=_0x54d2de[_0x176f01(0x110)][_0x176f01(0xf8)][_0x176f01(0xec)](_0x179c73),_0x4df922=_0x54d2de[_0x176f01(0x110)][_0x176f01(0x116)](_0x498d90,_0x3835fb);_0x355112[_0x176f01(0x109)](_0x4df922,_0x3835fb),_0x355112[_0x176f01(0xe6)](_0x3835fb,_0x1f89fc,_0x176f01(0xe8));}_0x5e4739=null;});});}}