@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251104.0 → 0.0.0-nightly-20251105.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x43bd3c,Command as _0x8bee50}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3aad28,isWidget as _0x14c998,toWidgetEditable as _0x517596,WidgetToolbarRepository as _0x394505}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3d20cc,logWarning as _0x2c2de2,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x2376c6,ClickObserver as _0x3b95a1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x13dd51}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3d72d1,ButtonView as _0xede7c4,View as _0x54f983,ViewCollection as _0x470575,FocusCycler as _0x2749b3,addKeyboardHandlingForGrid as _0x3f496a,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x86afc8,BalloonPanelView as _0x22995d,createDropdown as _0x370afd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4f816e,IconListStyleDecimal as _0x14a3ea,IconListStyleDecimalLeadingZero as _0x55064c,IconListStyleLowerRoman as _0x164851,IconListStyleUpperRoman as _0x1d15e8,IconListStyleLowerLatin as _0x2911c6,IconListStyleUpperLatin as _0x5b7a8f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x408ad6,_0x93401c){this['_model']=_0x408ad6,this['_elementName']=_0x93401c['elementName'],this['_getElementKey']=_0x93401c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x34a1e1){const _0x33b3a8=new Set(),_0x2385cb=new Map();for(const _0x426cf4 of _0x34a1e1){if('insert'===_0x426cf4['type']&&'$text'!==_0x426cf4['name']&&_0x426cf4['position']['nodeAfter']){const _0xd61f99=this['_model']['createRangeOn'](_0x426cf4['position']['nodeAfter']);for(const _0xc60b2e of _0xd61f99['getItems']()){if(!_0xc60b2e['is']('element',this['_elementName']))continue;const _0x4c34cd=this['_getElementKey'](_0xc60b2e);_0x2385cb['has'](_0x4c34cd)||_0x2385cb['set'](_0x4c34cd,[]),_0x2385cb['get'](_0x4c34cd)['push'](_0xc60b2e);}}if('remove'===_0x426cf4['type']&&_0x426cf4['name']===this['_elementName']){const _0xac5458=this['_getElementKey']({'getAttribute':_0x29ad=>_0x426cf4['attributes']['get'](_0x29ad)});_0x33b3a8['add'](_0xac5458);}}for(const [_0xba78fd,_0x9700f8]of this['_trackedElements'])'$graveyard'===_0x9700f8['root']['rootName']&&_0x33b3a8['add'](_0xba78fd);for(const _0x1736f6 of _0x33b3a8)this['_trackedElements']['delete'](_0x1736f6);for(const [_0x28b227,_0x5b0b31]of _0x2385cb)this['_trackedElements']['set'](_0x28b227,_0x5b0b31[_0x5b0b31['length']-0x1]);const _0x37b5cc=new Set();for(const [_0x5f18e1,_0x5cdfad]of _0x2385cb)_0x33b3a8['has'](_0x5f18e1)&&(_0x37b5cc['add'](_0x5cdfad[0x0]),_0x5cdfad['length']>0x1?_0x2385cb['set'](_0x5f18e1,_0x5cdfad['slice'](0x1)):_0x2385cb['delete'](_0x5f18e1),_0x33b3a8['delete'](_0x5f18e1));return{'removed':Array['from'](_0x33b3a8),'inserted':Array['from'](_0x2385cb['values']())['flat'](),'moved':Array['from'](_0x37b5cc)};}}class c extends _0x43bd3c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8c78){super(_0x5b8c78),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x13d0b4=>_0x13d0b4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3a79f0=>_0x3a79f0['getAttribute']('footnoteId')});}['init'](){const {editor:_0x581c4a}=this,{model:_0x2eb207,data:_0x55289d}=_0x581c4a;_0x2eb207['document']['registerPostFixer'](_0x990669=>{const _0x12fa9f=_0x2eb207['document']['differ']['getChanges']();let _0x1f1d9e=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_handleFootnoteReferencesChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x990669)&&(_0x1f1d9e=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x990669)&&(_0x1f1d9e=!0x0),this['_sortFootnoteDefinitions'](_0x990669)&&(_0x1f1d9e=!0x0),_0x1f1d9e;}),this['listenTo'](_0x2eb207['document'],'change:data',()=>{_0x2eb207['enqueueChange']({'isUndoable':!0x1},_0x45f774=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x45f774);});},{'priority':'low'}),this['listenTo'](_0x55289d,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3fcaca){return this['_footnotes']['find'](_0x1b67ec=>_0x1b67ec['id']===_0x3fcaca)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x171e3e){this['_footnoteFormatter']=_0x171e3e;}['_updateFootnotesCounters'](_0x491021,_0x4ad6dc=0x0){let _0x3cf39d=!0x1;for(let _0xe1bca7=_0x4ad6dc;_0xe1bca7<this['_footnotes']['length'];_0xe1bca7++)this['_updateFootnoteRefCounter'](_0x491021,_0xe1bca7)&&(_0x3cf39d=!0x0);return _0x3cf39d;}['_insertEmptyFootnotesDefinitionsContainer'](_0x5f1f42,_0x56deb3){const _0xf7ade=_0x5f1f42['createElement']('footnotesDefinitions',{});return _0x5f1f42['append'](_0xf7ade,_0x56deb3),this['_footnotesDefinitions']=_0xf7ade,_0xf7ade;}['_ensureFootnotesDefinitionsContainerExists'](_0x250bae){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x679a0c=this['_footnotes'][0x0]['reference']['root'],_0x2924b0=this['_insertEmptyFootnotesDefinitionsContainer'](_0x250bae,_0x679a0c);for(const _0x1d14e1 of this['_footnotes'])_0x1d14e1['definition']['parent']||_0x250bae['insert'](_0x1d14e1['definition'],_0x2924b0,'end');this['_updateFootnotesCounters'](_0x250bae);}['_handleFootnotesDefinitionsObjectChanges'](_0x10156b,_0x9cef2f){let _0x271580=!0x1;const {inserted:_0x4c4590,removed:_0x2df6d0,moved:_0x2c663d}=this['_footnoteDefsContainerTracker']['getChanges'](_0x9cef2f);if(_0x2c663d['length']&&(this['_footnotesDefinitions']=_0x2c663d[0x0]),_0x4c4590['length']){if(_0x4c4590['length']>0x1||this['_footnotesDefinitions']&&_0x4c4590['some'](_0x448d5a=>_0x448d5a!==this['_footnotesDefinitions'])){const _0x11884b=_0x10156b['createElement']('footnotesDefinitions',{}),_0x52cb0a=[];this['_footnotesDefinitions']&&_0x52cb0a['push'](this['_footnotesDefinitions']),_0x52cb0a['push'](..._0x4c4590),_0x10156b['insert'](_0x11884b,_0x52cb0a[0x0],'before');for(const _0xd5b83d of _0x52cb0a)_0x10156b['move'](_0x10156b['createRangeIn'](_0xd5b83d),_0x10156b['createPositionAt'](_0x11884b,'end')),_0x10156b['remove'](_0xd5b83d);this['_footnotesDefinitions']=_0x11884b,this['_updateFootnotesCounters'](_0x10156b),_0x271580=!0x0;}else this['_footnotesDefinitions']=_0x4c4590[0x0];}if(_0x2df6d0['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4d8cc0 of this['_footnotes'])_0x10156b['remove'](_0x4d8cc0['reference']),_0x271580=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x271580;}['_handleFootnoteDefinitionsChanges'](_0x37fc53,_0x1bad45){let _0x46be9f=!0x1;const _0x43c1d2=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5bd7b5,moved:_0x3f9027}=this['_footnoteDefsTracker']['getChanges'](_0x1bad45);for(const _0x41a928 of[..._0x3f9027,..._0x5bd7b5]){const _0x104879=_0x41a928['getAttribute']('footnoteId'),_0x3b3aea=this['getFootnote'](_0x104879);_0x3b3aea&&(_0x3b3aea['definition']=_0x41a928),_(_0x37fc53,_0x43c1d2,_0x41a928)&&(_0x46be9f=!0x0);}return _0x46be9f;}['_handleFootnoteReferencesChanges'](_0x20dfec,_0x1f37dd){let _0x2f8aea=!0x1;const {removed:_0x592da5,inserted:_0x1c4810,moved:_0x19cb35}=this['_footnoteRefsTracker']['getChanges'](_0x1f37dd);for(const _0x7c5f2e of _0x592da5)this['_handleRemoveFootnoteReferenceById'](_0x20dfec,_0x7c5f2e)&&(_0x2f8aea=!0x0);for(const _0x393e6b of _0x1c4810)this['_handleInsertedFootnoteReference'](_0x20dfec,_0x393e6b)&&(_0x2f8aea=!0x0);for(const _0x3aebad of _0x19cb35)this['_handleMovedFootnoteReference'](_0x20dfec,_0x3aebad)&&(_0x2f8aea=!0x0);return _0x2f8aea;}['_handleFootnotesDefinitionsObjectSync'](_0x341dd7){if(!this['_footnotesDefinitions'])return!0x1;let _0x158d7c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4b16de=[];for(const _0x33c5ff of this['_footnotesDefinitions']['getChildren']()){const _0x17ac37=_0x33c5ff['getAttribute']('footnoteId');this['getFootnote'](_0x17ac37)||(_0x4b16de['unshift'](_0x33c5ff),_0x158d7c=!0x0);}for(const _0x10772c of _0x4b16de)_0x341dd7['remove'](_0x10772c);}const _0xd39590=new Set(),_0x1b62c5=[];for(const _0xf71cad of this['_footnotesDefinitions']['getChildren']()){const _0x4d54ee=_0xf71cad['getAttribute']('footnoteId');_0xd39590['has'](_0x4d54ee)?(_0x1b62c5['unshift'](_0xf71cad),_0x158d7c=!0x0):_0xd39590['add'](_0x4d54ee);}for(const _0x57246f of _0x1b62c5)_0x341dd7['remove'](_0x57246f);return this['_footnotesDefinitions']['childCount']||(_0x341dd7['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x158d7c=!0x0),_0x158d7c;}['_handleInsertedFootnoteReference'](_0x2460a7,_0x31a186){if(this['_footnotes']['find'](_0x5d468a=>_0x5d468a['reference']===_0x31a186))return!0x1;let _0x43fbbc=!0x1;const _0x398e13=_0x31a186['getAttribute']('footnoteId'),_0x3d5a48=this['_footnotes']['findIndex'](_0x493053=>_0x493053['id']===_0x398e13);-0x1!==_0x3d5a48&&(_0x2460a7['remove'](this['_footnotes'][_0x3d5a48]['reference']),this['_footnotes']['splice'](_0x3d5a48,0x1),_0x43fbbc=!0x0);let _0x2ed01e=this['_footnotesDefinitions']?function(_0x19f27c,_0x5e58ab){for(const _0x2b920c of _0x19f27c['getChildren']())if(_0x2b920c['getAttribute']('footnoteId')===_0x5e58ab)return _0x2b920c;return null;}(this['_footnotesDefinitions'],_0x398e13):null;_0x2ed01e||(_0x2ed01e=_0x2460a7['createElement']('footnoteDefinition',{'footnoteId':_0x398e13}),this['_footnotesDefinitions']&&(_0x2460a7['insert'](_0x2ed01e,this['_footnotesDefinitions'],'end'),_0x43fbbc=!0x0));const _0x37068f={'id':_0x398e13,'reference':_0x31a186,'definition':_0x2ed01e},_0x110c3b=I(this['editor']['model'],this['_footnotes'],_0x31a186);this['_footnotes']['splice'](_0x110c3b,0x0,_0x37068f);let _0x41b7fc=_0x110c3b;return-0x1!==_0x3d5a48&&(_0x41b7fc=Math['min'](_0x110c3b,_0x3d5a48)),this['_updateFootnotesCounters'](_0x2460a7,_0x41b7fc)&&(_0x43fbbc=!0x0),_0x43fbbc;}['_handleRemoveFootnoteReferenceById'](_0x12623,_0x124568){const _0x36ec6f=this['_footnotes']['findIndex'](_0x1d11a6=>_0x1d11a6['id']===_0x124568);if(-0x1===_0x36ec6f)return!0x1;let _0x4c005f=!0x1;const _0x3a34ab=this['_footnotes'][_0x36ec6f];return'$graveyard'!==_0x3a34ab['definition']['root']['rootName']&&(_0x12623['remove'](_0x3a34ab['definition']),_0x4c005f=!0x0),this['_footnotes']['splice'](_0x36ec6f,0x1),this['_updateFootnotesCounters'](_0x12623,_0x36ec6f)&&(_0x4c005f=!0x0),_0x4c005f;}['_handleMovedFootnoteReference'](_0x2b7782,_0x1b68e2){const _0x1f18b8=_0x1b68e2['getAttribute']('footnoteId'),_0x2e2828=this['_footnotes']['findIndex'](_0x21c078=>_0x21c078['id']===_0x1f18b8),_0x59ca68=this['_footnotes'][_0x2e2828];let _0xea281b=!0x1;_0x59ca68['reference']=_0x1b68e2,this['_footnotes']['splice'](_0x2e2828,0x1);const _0x1b12e8=I(this['editor']['model'],this['_footnotes'],_0x1b68e2);return this['_footnotes']['splice'](_0x1b12e8,0x0,_0x59ca68),this['_updateFootnotesCounters'](_0x2b7782,Math['min'](_0x2e2828,_0x1b12e8))&&(_0xea281b=!0x0),_0xea281b;}['_updateFootnoteRefCounter'](_0x347b2f,_0xc0009d){if(!this['_footnotesDefinitions'])return!0x1;const _0x5d0d18=this['_footnotes'][_0xc0009d];let _0x34a988;return _0x34a988=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5d0d18,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xc0009d+0x1}):String(_0xc0009d+0x1),_0x5d0d18['reference']['getAttribute']('footnoteCounter')!=_0x34a988&&(_0x347b2f['setAttribute']('footnoteCounter',_0x34a988,_0x5d0d18['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4fa982){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x51b67f,_0x39b631){if(_0x51b67f['length']!==_0x39b631['length'])return!0x1;for(let _0x391d28=0x0;_0x391d28<_0x51b67f['length'];_0x391d28++)if(_0x51b67f[_0x391d28]!==_0x39b631[_0x391d28])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x529a71=>_0x529a71['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x26c85d=>_0x26c85d['getAttribute']('footnoteId'))))return!0x1;let _0x55b1c5=!0x1;for(let _0x131bb9=0x0;_0x131bb9<this['_footnotes']['length'];_0x131bb9++){const _0x4378ab=this['_footnotes'][_0x131bb9],_0x1f4cff=_0x4fa982['createPositionBefore'](_0x4378ab['definition']),_0x3ee755=_0x4fa982['createPositionAt'](this['_footnotesDefinitions'],_0x131bb9);_0x1f4cff['isEqual'](_0x3ee755)||(_0x4fa982['move'](_0x4fa982['createRangeOn'](_0x4378ab['definition']),_0x3ee755),_0x55b1c5=!0x0);}return _0x55b1c5;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4e5abf){if(!this['_footnotes']['length'])return!0x1;const {model:_0x570a39}=this['editor'];let _0x47eba5=!0x1;for(let _0x1ea3b9=0x0;_0x1ea3b9<this['_footnotes']['length']-0x1;_0x1ea3b9++){const _0x4c03ff=this['_footnotes'][_0x1ea3b9],_0x10892f=this['_footnotes'][_0x1ea3b9+0x1],_0x5f2840=_0x570a39['createPositionBefore'](_0x4c03ff['reference']),_0x58f42c=_0x570a39['createPositionBefore'](_0x10892f['reference']);'after'===_0x5f2840['compareWith'](_0x58f42c)&&(this['_handleMovedFootnoteReference'](_0x4e5abf,_0x4c03ff['reference']),_0x1ea3b9=-0x1,_0x47eba5=!0x0);}return _0x47eba5;}}function _(_0x556e17,_0xe9b61c,_0x1c3bf9){if(_0x1c3bf9['childCount'])return!0x1;const _0x579b7a=_0xe9b61c?'paragraph':'footnoteInlineContent';return _0x556e17['insert'](_0x556e17['createElement'](_0x579b7a),_0x1c3bf9),!0x0;}function I(_0x22ba3c,_0x246ab3,_0x3155e5){if(0x0===_0x246ab3['length'])return 0x0;const _0x1b0354=_0x22ba3c['createPositionBefore'](_0x3155e5);for(let _0x185638=0x0;_0x185638<_0x246ab3['length'];_0x185638++){const _0x3246d9=_0x246ab3[_0x185638],_0x25fb7b=_0x22ba3c['createPositionBefore'](_0x3246d9['reference']);if('before'===_0x1b0354['compareWith'](_0x25fb7b))return _0x185638;}const _0x2f4dcd=_0x3155e5['root'];let _0x5b1ccb=-0x1;for(let _0x51a48e=_0x246ab3['length']-0x1;_0x51a48e>=0x0;_0x51a48e--)if(_0x246ab3[_0x51a48e]['reference']['root']===_0x2f4dcd){_0x5b1ccb=_0x51a48e;break;}if(-0x1!==_0x5b1ccb)return _0x5b1ccb+0x1;const _0x258a37=_0x22ba3c['document']['getRootNames'](),_0x226ef8=_0x258a37['indexOf'](_0x2f4dcd['rootName']),_0x138073=_0x258a37[_0x226ef8+0x1];if(_0x138073){for(let _0x4ec6d5=0x0;_0x4ec6d5<_0x246ab3['length'];_0x4ec6d5++)if(_0x246ab3[_0x4ec6d5]['reference']['root']['rootName']===_0x138073)return _0x4ec6d5;}return _0x246ab3['length'];}class w extends _0x8bee50{['refresh'](){const _0x3fd821=this['editor']['model']['document']['selection'],_0x40660a=this['_getPositionToInsertFootnote'](_0x3fd821);this['isEnabled']=!!_0x40660a;}['execute'](_0xef721c){const {editor:_0x29492a}=this,{model:_0x4552d5}=_0x29492a,{selection:_0x447159}=_0x4552d5['document'],_0x332d23=this['_getPositionToInsertFootnote'](_0x447159);if(!_0x332d23)return;const _0x50231a=_0x29492a['plugins']['get']('FootnotesEditing'),_0x1aaefc=_0xef721c?.['footnoteId']??_0x3d20cc();!function(_0x3d8cfc){return'string'==typeof _0x3d8cfc&&_0x3d8cfc['length']>0x0&&!/\s/['test'](_0x3d8cfc)&&!/^\d/['test'](_0x3d8cfc);}(_0x1aaefc)?_0x2c2de2('insert-footnote-command-executed-with-invalid-id'):(_0x4552d5['change'](_0x358db3=>{const _0x1f3f6d=_0x358db3['createElement']('footnoteRef',{'footnoteId':_0x1aaefc});_0x4552d5['insertObject'](_0x1f3f6d,_0x332d23,null);}),_0x50231a['_moveSelectionToFootnoteDefinition'](_0x1aaefc));}['_getPositionToInsertFootnote'](_0x5893c9){const {model:_0x456dcd}=this['editor'],{schema:_0x1bb281}=_0x456dcd,_0x1482e9=_0x5893c9['getFirstRange']();for(const _0x3be079 of _0x1482e9['getItems']())if(_0x1bb281['isBlock'](_0x3be079)||_0x1bb281['isObject'](_0x3be079))return null;const _0x2773a4=_0x1482e9['end'];return _0x1bb281['checkChild'](_0x2773a4,'footnoteRef')?_0x2773a4:null;}}class r extends _0x43bd3c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x31ee0c}=this;_0x31ee0c['config']['define']('footnotes.multiBlock',!0x0),_0x31ee0c['commands']['add']('insertFootnote',new w(_0x31ee0c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x39de55){const _0x47d690=_0xec59f5([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]),_0x2d727b=0x47a28506,_0xdfc02d=0x47a5fd26^_0x2d727b,_0x2b8ced=window[_0xec59f5([0x44,0x61,0x74,0x65])][_0xec59f5([0x6e,0x6f,0x77])](),_0x35800f=_0x39de55[_0xec59f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b0f31=new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416fa8=>{_0x35800f[_0xec59f5([0x6f,0x6e,0x63,0x65])](_0xec59f5([0x72,0x65,0x61,0x64,0x79]),_0x416fa8);}),_0x561778={[_0xec59f5([0x6b,0x74,0x79])]:_0xec59f5([0x45,0x43]),[_0xec59f5([0x75,0x73,0x65])]:_0xec59f5([0x73,0x69,0x67]),[_0xec59f5([0x63,0x72,0x76])]:_0xec59f5([0x50,0x2d,0x32,0x35,0x36]),[_0xec59f5([0x78])]:_0xec59f5([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]),[_0xec59f5([0x79])]:_0xec59f5([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]),[_0xec59f5([0x61,0x6c,0x67])]:_0xec59f5([0x45,0x53,0x32,0x35,0x36])},_0x4ef5e8=_0x35800f[_0xec59f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xec59f5([0x67,0x65,0x74])](_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c94ce(){let _0x2b3708,_0x38255f=null,_0x37bb2=null;try{if(_0x4ef5e8==_0xec59f5([0x47,0x50,0x4c]))return _0xec59f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b3708=_0x399dd7(),!_0x2b3708)return _0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b3708[_0xec59f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37bb2=_0x52cd4b(_0x2b3708[_0xec59f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b3708[_0xec59f5([0x6a,0x74,0x69])])),await _0x16beab()?_0x120700()?_0x1db673()?_0xec59f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e9155()?(_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xec59f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38255f=_0x4b6bf0(_0xec59f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xec59f5([0x74,0x72,0x69,0x61,0x6c])&&(_0x38255f=_0x4b6bf0(_0xec59f5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c3106()):_0xec59f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xec59f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1db673(){const _0x651554=[_0xec59f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xec59f5([0x74,0x72,0x69,0x61,0x6c])][_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b8ced/0x3e8:0xe10*_0xdfc02d;return _0x2b3708[_0xec59f5([0x65,0x78,0x70])]<_0x651554;}function _0x120700(){const _0x4ab717=_0x2b3708[_0xec59f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4ab717&&(!!_0x4ab717[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x2a]))||!!_0x4ab717[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x46,0x4f,0x4f])));}function _0x4e9155(){const _0x250450=_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x250450||0x0==_0x250450[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49c216}=new URL(window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x250450[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c216))return!0x0;const _0x5d73cb=_0x49c216[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e]));return _0x250450[_0xec59f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40a4ef=>_0x40a4ef[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x2a])))[_0xec59f5([0x6d,0x61,0x70])](_0x55ce9c=>_0x55ce9c[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e])))[_0xec59f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1782b4=>_0x1782b4[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d73cb[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xec59f5([0x6d,0x61,0x70])](_0x977ed=>Array(_0x5d73cb[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x977ed[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xec59f5([0x66,0x69,0x6c,0x6c])](_0x977ed[0x0]===_0xec59f5([0x2a])?_0xec59f5([0x2a]):'')[_0xec59f5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x977ed))[_0xec59f5([0x73,0x6f,0x6d,0x65])](_0x2d0eb0=>_0x5d73cb[_0xec59f5([0x65,0x76,0x65,0x72,0x79])]((_0x1792a1,_0x88cc6a)=>_0x2d0eb0[_0x88cc6a]===_0x1792a1||_0x2d0eb0[_0x88cc6a]===_0xec59f5([0x2a])));}function _0x1c3106(){return _0x38255f&&_0x37bb2?new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x467ac2,_0x1397fb)=>{_0x38255f[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x467ac2,_0x1397fb),_0x37bb2[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x1ae25a=>{_0x1ae25a!=_0xec59f5([0x56,0x61,0x6c,0x69,0x64])&&_0x467ac2(_0x1ae25a);},_0x1397fb);}):_0x38255f||_0x37bb2||_0xec59f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x52cd4b(_0x7e6ae3,_0x296d56){return new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2097df=>{if(_0x452cac())return _0x2097df(_0xec59f5([0x56,0x61,0x6c,0x69,0x64]));_0x107e99(),_0x35800f[_0xec59f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x243287=!0x1;const _0x35df47=_0x3d20cc();function _0x18b578(_0x2a5c41){return!!_0x2a5c41&&(typeof _0x2a5c41===_0xec59f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a5c41===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a5c41[_0xec59f5([0x74,0x68,0x65,0x6e])]===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a5c41[_0xec59f5([0x63,0x61,0x74,0x63,0x68])]===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x340afc(_0xf1bdce){_0xc44cc7(_0xf1bdce)[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x2017e4=>{if(!_0x2017e4||_0x2017e4[_0xec59f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xec59f5([0x6f,0x6b]))return _0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b37eb(_0x3089ae(_0x35df47+_0x296d56))!=_0x2017e4[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xec59f5([0x56,0x61,0x6c,0x69,0x64]);})[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x4d2744=>(_0x250ba6(),_0x4d2744),()=>{const _0x4aba16=_0x2b00b8();return null==_0x4aba16?(_0x250ba6(),_0xec59f5([0x56,0x61,0x6c,0x69,0x64])):_0xec59f5(_0x2b8ced-_0x4aba16>(0x63ae0106^_0x2d727b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x2097df)[_0xec59f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x487084=0x47946b86^_0x2d727b;function _0x250ba6(){const _0x14e0b2=_0xec59f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b37eb(_0x3089ae(_0x7e6ae3)),_0x406b64=_0x1400aa(_0x1b37eb(window[_0xec59f5([0x4d,0x61,0x74,0x68])][_0xec59f5([0x63,0x65,0x69,0x6c])](_0x2b8ced/_0x487084)));window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xec59f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14e0b2,_0x406b64);}function _0x2b00b8(){const _0x270d5e=_0xec59f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b37eb(_0x3089ae(_0x7e6ae3)),_0x348bfa=window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xec59f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x270d5e);return _0x348bfa?window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1400aa(_0x348bfa),0x10)*_0x487084:null;}function _0xc44cc7(_0x421e54){return new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e4613,_0x29b5ab)=>{_0x421e54[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x5e4613,_0x29b5ab),window[_0xec59f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29b5ab,0x47a351c6^_0x2d727b);});}}_0x35800f[_0xec59f5([0x6f,0x6e])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb7ca6e,_0x5f543e)=>{if(_0x5f543e[0x0]!=_0x7e6ae3)return _0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f543e[0x1]={..._0x5f543e[0x1],[_0xec59f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35df47};},{[_0xec59f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xec59f5([0x68,0x69,0x67,0x68])}),_0x35800f[_0xec59f5([0x6f,0x6e])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34c319=>{_0x18b578(_0x34c319[_0xec59f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x243287=!0x0,_0x340afc(_0x34c319[_0xec59f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xec59f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xec59f5([0x6c,0x6f,0x77])}),_0x4b0f31[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>{_0x243287||_0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x452cac(){return _0x35800f[_0xec59f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xec59f5([0x76,0x69,0x65,0x77])][_0xec59f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xec59f5([0x61,0x75,0x74,0x6f]);}function _0x107e99(){_0x35800f[_0xec59f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xec59f5([0x76,0x69,0x65,0x77])][_0xec59f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xec59f5([0x61,0x75,0x74,0x6f]);}}function _0x4b6bf0(_0x211118){const _0x59404c=[new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x576e28=>setTimeout(_0x576e28,0x47abbbca^_0x2d727b)),_0x4b0f31[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d3a39=>{let _0x19c7ab=0x0;_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x6f,0x6e])](_0xec59f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34f078,_0x5b6570)=>{_0x5b6570[0x0][_0xec59f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19c7ab++,_0x19c7ab==(0x47a284fe^_0x2d727b)&&(_0x2d3a39(),_0x34f078[_0xec59f5([0x6f,0x66,0x66])]());});}))];return window[_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xec59f5([0x72,0x61,0x63,0x65])](_0x59404c)[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>_0x211118);}async function _0x1084bd(){await _0x4b0f31,_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22ef0d,_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22ef0d,_0x35800f[_0xec59f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2dce7(_0x3b9e8c){const _0x3b9828=_0x30adb8();_0x35800f[_0x3b9828]=_0xec59f5([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b9e8c,_0x3b9e8c!=_0xec59f5([0x56,0x61,0x6c,0x69,0x64])&&_0x1084bd();}function _0x30adb8(){const _0x443a2f=window[_0xec59f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xec59f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xec59f5([0x6e,0x6f,0x77])]())[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xec59f5([0x2e]),'');let _0x30a99b=_0xec59f5([0x75]);for(let _0x1b6555=0x0;_0x1b6555<_0x443a2f[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b6555+=0x2){let _0x1f156e=window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443a2f[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b6555,_0x1b6555+0x2));_0x1f156e>=_0x47d690[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f156e-=_0x47d690[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30a99b+=_0x47d690[_0x1f156e];}return _0x30a99b;}function _0x399dd7(){const _0x1cf61c=_0x4ef5e8[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e]));if(0x3!=_0x1cf61c[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27933a(_0x1cf61c[0x1]);function _0x27933a(_0x498dfc){const _0x384c66=_0x50b05a(_0x498dfc);return _0x384c66&&_0x2b5abf()?_0x384c66:null;function _0x2b5abf(){const _0x15d7dd=_0x384c66[_0xec59f5([0x6a,0x74,0x69])],_0x121094=window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15d7dd[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15d7dd[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45b6cf={..._0x384c66,[_0xec59f5([0x6a,0x74,0x69])]:_0x15d7dd[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15d7dd[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45b6cf[_0xec59f5([0x76,0x63])],_0x3089ae(_0x45b6cf)==_0x121094;}}}async function _0x16beab(){let _0x33343a=!0x0;try{const _0x3892e4=_0x4ef5e8[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e])),[_0x2ab739,_0x1ad6c1,_0x2d0c7f]=_0x3892e4;return _0x227d22(_0x2ab739),await _0x51d9c6(_0x2ab739,_0x1ad6c1,_0x2d0c7f),_0x33343a;}catch{return!0x1;}function _0x227d22(_0x5cd11d){const _0x3ebb39=_0x50b05a(_0x5cd11d);_0x3ebb39&&_0x3ebb39[_0xec59f5([0x61,0x6c,0x67])]==_0xec59f5([0x45,0x53,0x32,0x35,0x36])||(_0x33343a=!0x1);}async function _0x51d9c6(_0x2ee4c2,_0x5d67be,_0x5600e0){const _0x590903=window[_0xec59f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xec59f5([0x66,0x72,0x6f,0x6d])](_0x52a86c(_0x5600e0),_0x23a1f8=>_0x23a1f8[_0xec59f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2029bf=new window[(_0xec59f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xec59f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ee4c2+_0xec59f5([0x2e])+_0x5d67be),_0x10df0e=window[_0xec59f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xec59f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10df0e)return;const _0xf53d08=await _0x10df0e[_0xec59f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xec59f5([0x6a,0x77,0x6b]),_0x561778,{[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x45,0x43,0x44,0x53,0x41]),[_0xec59f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xec59f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10df0e[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x45,0x43,0x44,0x53,0x41]),[_0xec59f5([0x68,0x61,0x73,0x68])]:{[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf53d08,_0x590903,_0x2029bf)||(_0x33343a=!0x1);}}function _0x50b05a(_0x4c55cf){return _0x4c55cf[_0xec59f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xec59f5([0x65,0x79]))?JSON[_0xec59f5([0x70,0x61,0x72,0x73,0x65])](_0x52a86c(_0x4c55cf)):null;}function _0x52a86c(_0x6c8de){return window[_0xec59f5([0x61,0x74,0x6f,0x62])](_0x6c8de[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xec59f5([0x2b]))[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xec59f5([0x2f])));}function _0x3089ae(_0x20e012){let _0x35cbcf=0x1505;function _0xc283e9(_0x4cf12d){for(let _0x25f9ed=0x0;_0x25f9ed<_0x4cf12d[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25f9ed++){const _0x210cac=_0x4cf12d[_0xec59f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25f9ed);_0x35cbcf=(_0x35cbcf<<0x5)+_0x35cbcf+_0x210cac,_0x35cbcf&=_0x35cbcf;}}function _0x5c9cb0(_0xb34003){Array[_0xec59f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb34003)?_0xb34003[_0xec59f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c9cb0):_0xb34003&&typeof _0xb34003==_0xec59f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xec59f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb34003)[_0xec59f5([0x73,0x6f,0x72,0x74])]()[_0xec59f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1588b6,_0x4fbb2c])=>{_0xc283e9(_0x1588b6),_0x5c9cb0(_0x4fbb2c);}):_0xc283e9(window[_0xec59f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb34003));}return _0x5c9cb0(_0x20e012),_0x35cbcf>>>0x0;}function _0x1b37eb(_0x19b803){return _0x19b803[_0xec59f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xec59f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xec59f5([0x30]));}function _0x1400aa(_0x26f1ff){return _0x26f1ff[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0xec59f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xec59f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x22ef0d(){}function _0xec59f5(_0x31b966){return _0x31b966['map'](_0x26440b=>String['fromCharCode'](_0x26440b))['join']('');}_0x2dce7(await _0x1c94ce());}(this);}['_moveSelectionToFootnoteDefinition'](_0x601316){const {plugins:_0x5a9b25,editing:_0x31a3ea,model:_0x3cf221}=this['editor'],_0x3fba5b=_0x5a9b25['get'](c)['getFootnote'](_0x601316);return!!_0x3fba5b&&(_0x3cf221['change'](_0x5a1aba=>{_0x5a1aba['setSelection'](_0x5a1aba['createPositionAt'](_0x3fba5b['definition'],'end'));}),_0x31a3ea['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4335a8){const {plugins:_0x38b01e,editing:_0x1c9f90,model:_0x514c0c}=this['editor'],_0x404026=_0x38b01e['get'](c)['getFootnote'](_0x4335a8);return!!_0x404026&&(_0x514c0c['change'](_0x251d42=>{_0x251d42['setSelection'](_0x404026['reference'],'on');}),_0x1c9f90['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x247f21}=this['editor']['model'],_0x47fb18=this['editor']['config']['get']('footnotes.multiBlock');_0x247f21['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x247f21['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x247f21['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x47fb18?_0x247f21['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x247f21['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x247f21['addChildCheck'](_0xd9ba2c=>{for(const _0x545813 of _0xd9ba2c)if('footnoteDefinition'===_0x545813['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x39b2fa}=this,{conversion:_0x4c6143,editing:_0x293033}=_0x39b2fa,{t:t}=_0x39b2fa['locale'];_0x4c6143['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2f5b59,{writer:_0x26d232,consumable:_0x4d25f6})=>{const _0x3361a4=_0x2f5b59['getChild'](0x0);if(!_0x3361a4||!_0x3361a4['is']('element','a'))return null;const _0x59abb9=_0x3361a4['getAttribute']('href')||'';if(!_0x59abb9['startsWith']('#'))return null;const _0x40e707=_0x59abb9['replace'](/^#/,'');if(!_0x40e707)return null;_0x4d25f6['consume'](_0x3361a4,{'name':!0x0,'attributes':['href']});for(const {item:_0x5d75bd}of _0x293033['view']['createRangeIn'](_0x3361a4))_0x5d75bd['is']('$textProxy')?_0x4d25f6['consume'](_0x5d75bd['textNode'],{'name':!0x0}):_0x5d75bd['is']('element')&&_0x4d25f6['consume'](_0x5d75bd,{'name':!0x0});return _0x26d232['createElement']('footnoteRef',{'footnoteId':_0x40e707});}}),_0x4c6143['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e0b81,{writer:_0x236679})=>D(_0x3e0b81,_0x236679)}),_0x4c6143['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2de435,{writer:_0x26ba19})=>{const _0x52894a=_0x2de435['getAttribute']('footnoteCounter');return _0x3aad28(D(_0x2de435,_0x26ba19),_0x26ba19,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x52894a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3de329}=this,{t:t}=_0x3de329['locale'],{conversion:_0x56370a}=_0x3de329;_0x56370a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x56370a['for']('upcast')['add'](_0x9bb43e=>{_0x9bb43e['on']('element:ol',(_0x240b78,_0xcb8c6f,_0x22b5c8)=>{const _0x547e07=_0xcb8c6f['viewItem'];if(!_0x547e07['hasClass']('footnotes-list')||!_0xcb8c6f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x22b5c8['consumable']['consume'](_0x547e07,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x51b4d3,modelCursor:_0x5f1ed0}=_0x22b5c8['convertChildren'](_0xcb8c6f['viewItem'],_0xcb8c6f['modelCursor']);_0xcb8c6f['modelRange']=_0x51b4d3,_0xcb8c6f['modelCursor']=_0x5f1ed0;}),_0x9bb43e['on']('element:hr',(_0x1730ea,_0x40ee46,_0x3fbdf5)=>{const _0x525a91=_0x40ee46['viewItem'];_0x525a91['hasClass']('footnotes-divider')&&_0x40ee46['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3fbdf5['consumable']['consume'](_0x525a91,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x56370a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3a8240,{writer:_0x1b8fdf})=>g(_0x1b8fdf)}),_0x56370a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x342777,{writer:_0x304edf})=>{const _0x203d79=g(_0x304edf,{'data-footnotes-list-label':t('Footnotes')}),_0x55d033=_0x3aad28(_0x203d79,_0x304edf,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x304edf['setCustomProperty']('footnotesDefinitions',!0x0,_0x55d033),_0x55d033;}});}['_defineDefinitionConverters'](){const {editor:_0x24f048}=this,{conversion:_0x388b86,locale:_0x39823f}=_0x24f048,_0x30b27a=_0x24f048['config']['get']('footnotes.multiBlock');_0x388b86['for']('upcast')['add'](_0x58da91=>{_0x58da91['on']('element:li',(_0x4427a6,_0x583602,_0x2d8763)=>{const _0x57fe1f=_0x583602['viewItem'];if(!_0x57fe1f['hasClass']('footnote-definition')||!_0x57fe1f['getAttribute']('id'))return;const _0x380c4b=_0x57fe1f['parent'];if(!_0x380c4b['is']('element','ol')||!_0x380c4b['hasClass']('footnotes-list'))return;if(!_0x2d8763['consumable']['test'](_0x57fe1f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1bdb63=_0x2d8763['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x57fe1f['getAttribute']('id')});if(!_0x2d8763['safeInsert'](_0x1bdb63,_0x583602['modelCursor']))return;_0x2d8763['consumable']['consume'](_0x57fe1f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1eec4f=Array['from'](_0x57fe1f['getChildren']())['find'](_0x2457f8=>_0x2457f8['is']('element')&&_0x2457f8['hasClass']('footnote-content'));for(const _0x416644 of _0x57fe1f['getChildren']())_0x416644['is']('element')&&(_0x2d8763['consumable']['consume'](_0x416644,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2d8763['consumable']['consume'](_0x416644,{'name':!0x0,'classes':'footnote-content'}));if(_0x1eec4f){if(_0x30b27a)_0x2d8763['convertChildren'](_0x1eec4f,_0x1bdb63);else{const _0x2a6870=_0x2d8763['writer']['createElement']('footnoteInlineContent');_0x2d8763['writer']['insert'](_0x2a6870,_0x1bdb63),_0x2d8763['convertChildren'](_0x1eec4f,_0x2a6870);}}_0x2d8763['updateConversionResult'](_0x1bdb63,_0x583602);});}),_0x388b86['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5ccf3c,{writer:_0x26b340})=>v(_0x5ccf3c,_0x26b340,_0x39823f,{'dataPipeline':!0x0})}),_0x388b86['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3329ff,{writer:_0x3b24f4})=>v(_0x3329ff,_0x3b24f4,_0x39823f)});}['_defineBogusParagraphConverters'](){const {editor:_0x43f6e8}=this,{conversion:_0x4df0b7}=_0x43f6e8;_0x43f6e8['config']['get']('footnotes.multiBlock')?(_0x4df0b7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4df0b7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x43f6e8['model']['document'],'change:data',()=>{!function(_0x198679,_0x3b69a9){const _0x2b54f4=_0x198679['document']['differ'],_0x1b5072=new Set();for(const _0x1424e9 of _0x2b54f4['getChanges']()){const _0x2ca2da='attribute'==_0x1424e9['type']?_0x1424e9['range']['start']['parent']:_0x1424e9['position']['parent'];_0x2ca2da['is']('element','footnoteDefinition')&&_0x1b5072['add'](_0x2ca2da);}for(const _0x1ad412 of _0x1b5072['values']()){const _0x15a5ea=Array['from'](_0x1ad412['getChildren']())['filter'](_0x4cc864=>p(_0x4cc864,_0x3b69a9['mapper']));for(const _0x9e2a46 of _0x15a5ea)_0x3b69a9['reconvertItem'](_0x9e2a46);}}(_0x43f6e8['model'],_0x43f6e8['editing']);})):(_0x4df0b7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4df0b7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x794793,{writer:_0x2950d3})=>{const _0x35ee23=_0x2950d3['createContainerElement']('span');return _0x2950d3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x35ee23),_0x35ee23;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3247b2}=this,{editing:_0x26d928,t:t}=_0x3247b2,_0xde0b68=_0x3247b2['model']['document']['selection'];_0x3247b2['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x3247b2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x26d928['view']['document'],'enter',(_0x435c97,_0x5cc0b7)=>{const _0x5d21b7=function(_0x4af3c9){const _0x418cc7=_0x4af3c9['getSelectedElement']();if(_0x418cc7?.['is']('element','footnoteRef'))return _0x418cc7;return null;}(_0xde0b68);if(_0x5d21b7){const _0x200549=_0x5d21b7['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x200549),_0x5cc0b7['preventDefault'](),_0x435c97['stop']();}},{'context':_0x14c998});}['_defineClickHandlers'](){const {editor:_0x5c10b1}=this,{editing:_0x3535a0}=_0x5c10b1;_0x5c10b1['editing']['view']['addObserver'](_0x2376c6),_0x5c10b1['editing']['view']['addObserver'](_0x3b95a1);let _0x30d8da=!0x1;this['listenTo'](_0x3535a0['view']['document'],'pointerdown',(_0x1ce1e0,_0x1fa07c)=>{const {target:_0x48145d}=_0x1fa07c,_0x4c4648=_0x3535a0['view']['document']['selection'];_0x30d8da=!!(_0x48145d['is']('element','a')&&_0x48145d['parent']?.['is']('element','sup')&&_0x48145d['parent']['hasClass']('footnote'))&&_0x4c4648['getSelectedElement']()===_0x48145d['parent'];},{'priority':'high'}),this['listenTo'](_0x3535a0['view']['document'],'click',(_0x33dd4e,_0xcaf0a9)=>{const {target:_0x4b0d33}=_0xcaf0a9;if(!_0x4b0d33['is']('element','a'))return;if(_0x4b0d33['parent']?.['is']('element','sup')&&_0x4b0d33['parent']['hasClass']('footnote')&&!_0x30d8da)return void _0xcaf0a9['preventDefault']();let _0x1709ab=_0x4b0d33['getAttribute']('href');if(!_0x1709ab?.['startsWith']('#'))return;_0x1709ab=_0x1709ab['slice'](0x1);let _0x5c1966=!0x1;(_0x1709ab['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1709ab['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1709ab))&&(_0x5c1966=!0x0),_0x5c1966&&(_0xcaf0a9['preventDefault'](),_0x33dd4e['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x3b1b95}={}){return(_0x3f009a,{writer:_0x46a0c2})=>{if(!h(_0x3f009a))return null;if(!_0x3b1b95)return _0x46a0c2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3b0fa4=_0x46a0c2['createContainerElement']('p');return _0x46a0c2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3b0fa4),_0x3b0fa4;};}function h(_0x30f9f1){const {parent:_0x3bfe04}=_0x30f9f1;if(!_0x3bfe04?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3bfe04['childCount'])return!0x1;for(const _0x4a1967 of _0x30f9f1['getAttributeKeys']())if(!_0x4a1967['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4a1967)return!0x1;return!0x0;}function p(_0x557090,_0x294c9c){if(!_0x557090['is']('element','paragraph'))return!0x1;const _0x5cd022=_0x294c9c['toViewElement'](_0x557090);return!!_0x5cd022&&h(_0x557090)!==_0x5cd022['is']('element','span');}function J(_0x14dfde){return _0x14c998(_0x14dfde)&&_0x14dfde['is']('containerElement')&&!!_0x14dfde['getCustomProperty']('footnotesDefinitions');}function g(_0x397857,_0x4ba33d={}){const _0x424d3b=_0x397857['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x48b04f=_0x397857['createContainerElement']('ol',{'class':'footnotes-list'},_0x397857['createSlot']());return _0x397857['createContainerElement']('div',{'class':'footnotes',..._0x4ba33d},[_0x424d3b,_0x48b04f]);}function D(_0x1919fa,_0x1313d7){const _0x22c1bb=_0x1919fa['getAttribute']('footnoteId'),_0x176e4b=_0x1919fa['getAttribute']('footnoteCounter'),_0x51d6e4=_0x1313d7['createUIElement']('a',{'href':'#'+_0x22c1bb},function(_0xd8b76c){const _0x4eb693=this['toDomElement'](_0xd8b76c);return _0x4eb693['textContent']=_0x176e4b,_0x4eb693;}),_0x1e0d8e=_0x1313d7['createContainerElement']('sup',{'id':'ref-'+_0x22c1bb,'class':'footnote'},[_0x51d6e4]);return _0x1e0d8e['getFillerOffset']=()=>null,_0x1e0d8e;}function v(_0x3e53a2,_0x5a1b91,_0x463675,{dataPipeline:_0x51a96f}={}){const {t:t}=_0x463675,_0x385f71=_0x3e53a2['getAttribute']('footnoteId'),_0x3fc164=_0x5a1b91['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x385f71},function(_0x20f4f9){const _0x4e8f57=this['toDomElement'](_0x20f4f9);return _0x4e8f57['innerText']='^',_0x4e8f57;}),_0xc82c52=_0x51a96f?_0x5a1b91['createContainerElement']('div',{'class':'footnote-content'}):_0x517596(_0x5a1b91['createEditableElement']('div',{'class':'footnote-content'}),_0x5a1b91,{'label':t('Footnote\x20content.')});return _0x5a1b91['insert'](_0x5a1b91['createPositionAt'](_0xc82c52,0x0),_0x5a1b91['createSlot']()),_0x5a1b91['createContainerElement']('li',{'class':'footnote-definition','id':_0x385f71},[_0x3fc164,_0xc82c52]);}class e extends _0x43bd3c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x13dd51];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5c77fc}=this,{plugins:_0x4c96be,model:_0x4f4b77}=_0x5c77fc,_0xeb88a2=_0x4c96be['get'](_0x13dd51),_0x59dbc5=_0x4c96be['get'](c);this['listenTo'](_0xeb88a2,'outputTransformation',(_0x2fec4a,_0x2a0998)=>{const _0x333530=function(_0x25741b,_0x3e5830){const _0x5836ef=new Set();for(const {item:_0x18938d}of _0x25741b['createRangeIn'](_0x3e5830))_0x18938d['is']('element','footnoteRef')&&_0x5836ef['add'](_0x18938d['getAttribute']('footnoteId'));return Array['from'](_0x5836ef);}(_0x4f4b77,_0x2a0998['content']);if(!_0x333530['length'])return;const _0x2e6753=_0x59dbc5['getFootnotes'](),_0x4a145a=_0x333530['reduce']((_0xe43faf,_0x385d68)=>{const _0x59bcb6=_0x2e6753['find'](_0x516e7b=>_0x516e7b['id']===_0x385d68);if(_0x59bcb6){const _0x7b5261=_0x5c77fc['data']['toView'](_0x59bcb6['definition'],{'isClipboardPipeline':!0x0}),_0x5c813d=_0x5c77fc['data']['htmlProcessor']['toData'](_0x7b5261);_0xe43faf[_0x59bcb6['id']]=_0x5c813d;}return _0xe43faf;},Object['create'](null));_0x2a0998['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4a145a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x326de6}=this,{model:_0x22a52e,plugins:_0x4bc584}=_0x326de6,{view:_0x24821e}=_0x326de6['editing'],_0x2e77a1=_0x4bc584['get'](_0x13dd51),_0x1974eb=_0x4bc584['get'](c);let _0x5c90c6=null;this['listenTo'](_0x24821e['document'],'clipboardInput',(_0x2fd624,_0x344b0a)=>{const _0x595624=_0x344b0a['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5c90c6=_0x595624?JSON['parse'](_0x595624):null;}),this['listenTo'](_0x2e77a1,'contentInsertion',(_0x4efe03,_0x484a99)=>{if(!_0x5c90c6)return;const _0x2e26a5=_0x484a99['sourceEditorId']===this['editor']['id'];_0x2e26a5&&'drop'===_0x484a99['method']||_0x22a52e['change'](_0x3c44c3=>{!function(_0xdbafe7,_0x1090e8){const _0xc90d8e=[];for(const {item:_0x2415fe}of _0xdbafe7['createRangeIn'](_0x1090e8))_0x2415fe['is']('element','footnotesDefinitions')&&_0xc90d8e['push'](_0x2415fe);for(const _0x1a11db of _0xc90d8e)_0xdbafe7['remove'](_0x1a11db);}(_0x3c44c3,_0x484a99['content']);let _0x495103=_0x1974eb['getFootnotesDefinitionsObjectElement']();if(!_0x495103){const _0x1e24d1=_0x22a52e['document']['selection']['getFirstRange']()['root'];_0x495103=_0x1974eb['_insertEmptyFootnotesDefinitionsContainer'](_0x3c44c3,_0x1e24d1);}const _0x36fbfd=function(_0x1d46d1,_0xfaf505,_0x4e1fd0){const _0x19d22c=Object['create'](null);for(const {item:_0x4e76bd}of _0x1d46d1['createRangeIn'](_0xfaf505))if(_0x4e76bd['is']('element','footnoteRef')){const _0x215cf7=_0x4e76bd['getAttribute']('footnoteId');if(!_0x4e1fd0(_0x215cf7))continue;_0x19d22c[_0x215cf7]||(_0x19d22c[_0x215cf7]=_0x3d20cc()),_0x1d46d1['setAttribute']('footnoteId',_0x19d22c[_0x215cf7],_0x4e76bd);}return _0x19d22c;}(_0x3c44c3,_0x484a99['content'],_0x4268cd=>!_0x2e26a5||null!==_0x1974eb['getFootnote'](_0x4268cd));for(const [_0x32338c,_0x6b56e7]of Object['entries'](_0x5c90c6)){const _0x46aa3f=_0x36fbfd[_0x32338c]||_0x32338c,_0x1785ba=_0x3c44c3['createElement']('footnoteDefinition',{'footnoteId':_0x46aa3f}),_0x3a3e14=_0x326de6['data']['htmlProcessor']['toView'](_0x6b56e7),_0x3c3dc1=_0x326de6['data']['toModel'](_0x3a3e14,_0x1785ba);_0x3c44c3['append'](_0x3c3dc1,_0x1785ba),_0x3c44c3['insert'](_0x1785ba,_0x495103,'end');}_0x5c90c6=null;});});}}class i extends _0x43bd3c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1cc409}=this,{componentFactory:_0x5b6bbb}=_0x1cc409['ui'];_0x5b6bbb['add']('insertFootnote',x(_0x1cc409,_0xede7c4)),_0x5b6bbb['add']('menuBar:insertFootnote',x(_0x1cc409,_0x3d72d1)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x540c9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2aae18;for(const _0x3b2500 in _0x540c9d){const _0xc7fd5a=_0x3b2500,_0x32582e=_0x540c9d[_0xc7fd5a];if('footnotesLicenseKeyValid'==_0x32582e||'footnotesLicenseKeyInvalid'==_0x32582e||'footnotesLicenseKeyExpired'==_0x32582e||'footnotesLicenseKeyDomainLimit'==_0x32582e||'footnotesLicenseKeyNotAllowed'==_0x32582e||'footnotesLicenseKeyEvaluationLimit'==_0x32582e||'footnotesLicenseKeyTrialLimit'==_0x32582e||'footnotesLicenseKeyUsageLimit'==_0x32582e){delete _0x540c9d[_0xc7fd5a],_0x2aae18=_0x32582e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2aae18&&_0x540c9d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2aae18&&_0x540c9d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2aae18&&_0x540c9d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x38258b,_0x46c1cd){const _0x28c0c8=_0x38258b['commands']['get']('insertFootnote');return _0x5706c1=>{const {t:t}=_0x5706c1,_0x41c117=new _0x46c1cd(_0x5706c1),_0x22be4a=_0x41c117 instanceof _0x3d72d1;return _0x41c117['bind']('isEnabled')['to'](_0x28c0c8,'isEnabled'),_0x41c117['set']({'label':t(_0x22be4a?'Footnote':'Insert\x20footnote'),'icon':_0x4f816e,'tooltip':!0x0}),_0x41c117['on']('execute',()=>{_0x28c0c8['execute'](),_0x38258b['editing']['view']['focus']();}),_0x41c117;};}class nt extends _0x43bd3c{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 _0x8bee50{['refresh'](){const {editor:_0x38acaa}=this,_0x7bf323=_0x38acaa['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x7bf323,this['value']=_0x7bf323?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x119a6c}){const {editor:_0x230ec9}=this,_0x3ab9ae=_0x230ec9['plugins']['get'](c),_0x270df3=_0x3ab9ae['getFootnotesDefinitionsObjectElement']();_0x270df3&&Q['includes'](_0x119a6c)&&_0x230ec9['model']['change'](_0x3b31ea=>{_0x3b31ea['setAttribute']('footnotesListStyle',_0x119a6c,_0x270df3),_0x3ab9ae['_updateFootnotesCounters'](_0x3b31ea);});}}class b extends _0x8bee50{['refresh'](){const {editor:_0x131eed}=this,_0x2efd37=_0x131eed['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2efd37,this['value']=_0x2efd37?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x34934b}){const {editor:_0x294e39}=this,_0xf1f01c=_0x294e39['plugins']['get'](c),_0x7512b3=_0xf1f01c['getFootnotesDefinitionsObjectElement']();_0x7512b3&&Number['isInteger'](_0x34934b)&&_0x294e39['model']['change'](_0x147c42=>{_0x147c42['setAttribute']('footnotesListStart',_0x34934b,_0x7512b3),_0xf1f01c['_updateFootnotesCounters'](_0x147c42);});}}class P extends _0x43bd3c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bcc80}=this;_0x5bcc80['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5bcc80['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5bcc80['commands']['add']('footnotesStyle',new S(_0x5bcc80)),_0x5bcc80['commands']['add']('footnotesStart',new b(_0x5bcc80)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4a0642}=this,{schema:_0x43fde8}=_0x4a0642['model'];_0x43fde8['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x48859f}=this,{conversion:_0x3c66ac,model:_0x33ec03}=_0x48859f,{schema:_0x5e1cef}=_0x33ec03;_0x3c66ac['for']('upcast')['add'](_0x4fb1d3=>{_0x4fb1d3['on']('element:ol',(_0x15ba0,_0x585473,_0x3f2fdc)=>{const _0x11d679=_0x585473['viewItem'],_0x557ce4=_0x585473['modelCursor']?.['parent'];_0x11d679['hasClass']('footnotes-list')&&_0x557ce4?.['is']('element','footnotesDefinitions')&&(function(_0x58e61c,_0x125151,_0x33fa73,_0x10f10b){if(!_0x10f10b['checkAttribute'](_0x125151,'footnotesListStart'))return;let _0x10601c=0x1;const _0x284778=_0x33fa73['consumable']['consume'](_0x58e61c,{'attributes':'start'});if(_0x284778){const _0x1f65ba=Number['parseInt'](_0x58e61c['getAttribute']('start'),0xa);Number['isNaN'](_0x1f65ba)||(_0x10601c=_0x1f65ba);}!_0x284778&&_0x125151['hasAttribute']('footnotesListStart')||_0x33fa73['writer']['setAttribute']('footnotesListStart',_0x10601c,_0x125151);}(_0x11d679,_0x557ce4,_0x3f2fdc,_0x5e1cef),function(_0x25dbef,_0xcd982,_0x9a17fb,_0x5168ac){if(!_0x5168ac['checkAttribute'](_0xcd982,'footnotesListStyle'))return;let _0xa9f386='decimal',_0x40f7e7=!0x1;if(_0x9a17fb['consumable']['consume'](_0x25dbef,{'attributes':'type'})){const _0x44455e={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x25dbef['getAttribute']('type')];_0x44455e&&(_0xa9f386=_0x44455e),_0x40f7e7=!0x0;}_0x9a17fb['consumable']['consume'](_0x25dbef,{'styles':'list-style-type'})&&(_0xa9f386=_0x25dbef['getStyle']('list-style-type'),_0x40f7e7=!0x0),!_0x40f7e7&&_0xcd982['hasAttribute']('footnotesListStyle')||_0x9a17fb['writer']['setAttribute']('footnotesListStyle',_0xa9f386,_0xcd982);}(_0x11d679,_0x557ce4,_0x3f2fdc,_0x5e1cef));});}),_0x3c66ac['for']('downcast')['add'](_0x2a5345=>{_0x2a5345['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x11d1eb,_0x4f820f,_0x2950a1)=>{if(!_0x2950a1['consumable']['consume'](_0x4f820f['item'],_0x11d1eb['name']))return;const _0x29353d=C(_0x4f820f['item'],_0x2950a1['mapper']),{attributeNewValue:_0xee6a9c}=_0x4f820f;null==_0xee6a9c||0x1===_0xee6a9c?_0x2950a1['writer']['removeAttribute']('start',_0x29353d):_0x2950a1['writer']['setAttribute']('start',String(_0xee6a9c),_0x29353d);}),_0x2a5345['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x48534e,_0x338b10,_0x50c5ec)=>{if(!_0x50c5ec['consumable']['consume'](_0x338b10['item'],_0x48534e['name']))return;const _0x122463=C(_0x338b10['item'],_0x50c5ec['mapper']),{attributeNewValue:_0xf8a08d}=_0x338b10;_0xf8a08d&&'decimal'!==_0xf8a08d?_0x50c5ec['writer']['setStyle']('list-style-type',_0xf8a08d,_0x122463):_0x50c5ec['writer']['removeStyle']('list-style-type',_0x122463);});});}['_definePostfixer'](){const {editor:_0x585927}=this,{model:_0x36f217}=_0x585927,_0x1b1895=_0x585927['plugins']['get'](c),_0x5464ff=this['_getDefaultListStyle'](),_0x4b9e79=this['_getDefaultStartIndex']();_0x36f217['document']['registerPostFixer'](_0xc410d8=>{const _0x4e40c6=_0x36f217['document']['differ']['getChanges']();let _0x26e297=!0x1;for(const _0x57793f of _0x4e40c6){if('insert'!==_0x57793f['type']||'$text'===_0x57793f['name'])continue;const _0x3ae1b0=_0x36f217['createRangeOn'](_0x57793f['position']['nodeAfter']);for(const _0x550f40 of _0x3ae1b0['getItems']())_0x550f40['is']('element','footnotesDefinitions')&&(!_0x550f40['hasAttribute']('footnotesListStart')&&_0x36f217['schema']['checkAttribute'](_0x550f40,'footnotesListStart')&&(_0xc410d8['setAttribute']('footnotesListStart',_0x4b9e79,_0x550f40),_0x26e297=!0x0),!_0x550f40['hasAttribute']('footnotesListStyle')&&_0x36f217['schema']['checkAttribute'](_0x550f40,'footnotesListStyle')&&(_0xc410d8['setAttribute']('footnotesListStyle',_0x5464ff,_0x550f40),_0x26e297=!0x0));}return _0x26e297&&_0x1b1895['_updateFootnotesCounters'](_0xc410d8),_0x26e297;});}['_defineFormatter'](){const {editor:_0xf2c03a}=this;_0xf2c03a['plugins']['get'](c)['setFootnoteFormatter'](_0x315440=>this['_formatFootnoteListValue'](_0x315440));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x448bee,value:_0x380465,digits:_0x427e58}){const _0x3212b4=_0x448bee['getAttribute']('footnotesListStyle'),_0x204daa=_0x448bee['getAttribute']('footnotesListStart'),_0x27807b=Math['floor'](_0x380465)+(_0x204daa??0x1)-0x1;switch(_0x3212b4){case'decimal-leading-zero':return function(_0x5c67a5,_0x2c7367){return String(_0x5c67a5)['padStart'](_0x2c7367,'0');}(_0x27807b,Math['max'](0x2,_0x427e58));case'lower-alpha':case'lower-latin':return M(_0x27807b,!0x1);case'upper-alpha':case'upper-latin':return M(_0x27807b,!0x0);case'lower-roman':return V(_0x27807b,!0x1);case'upper-roman':return V(_0x27807b,!0x0);default:return String(_0x27807b);}}}function C(_0x48874b,_0x31f17d){const _0x5c9a9b=_0x31f17d['toViewElement'](_0x48874b);return Array['from'](_0x5c9a9b['getChildren']())['find'](_0x8d2b8d=>_0x8d2b8d['is']('element','ol')&&_0x8d2b8d['hasClass']('footnotes-list'));}function M(_0x467167,_0x3add47){let _0x49c68a='',_0x8c7f11=_0x467167;for(;_0x8c7f11>0x0;){const _0x4bea37=(_0x8c7f11-0x1)%0x1a;_0x49c68a=String['fromCharCode'](0x61+_0x4bea37)+_0x49c68a,_0x8c7f11=Math['floor']((_0x8c7f11-0x1)/0x1a);}return _0x3add47?_0x49c68a['toUpperCase']():_0x49c68a;}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(_0x3cbaf0,_0x8cb4c8){let _0x30fc08='',_0xb869dd=_0x3cbaf0;for(const {value:_0x450c3d,numeral:_0x564b82}of N)for(;_0xb869dd>=_0x450c3d;)_0x30fc08+=_0x564b82,_0xb869dd-=_0x450c3d;return _0x8cb4c8?_0x30fc08:_0x30fc08['toLowerCase']();}class H extends _0x54f983{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x470575();['focusCycler'];constructor(_0x30e214,{styleButtonViews:_0x3f2737,styleGridAriaLabel:_0x117635}){super(_0x30e214),(this['focusCycler']=new _0x2749b3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3f2737,_0x117635),[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 _0x348eb0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x348eb0['element']);_0x3f496a({'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 _0x25d70e=_0x4aeb29=>_0x4aeb29['stopPropagation']();this['keystrokes']['set']('arrowright',_0x25d70e),this['keystrokes']['set']('arrowleft',_0x25d70e),this['keystrokes']['set']('arrowup',_0x25d70e),this['keystrokes']['set']('arrowdown',_0x25d70e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a0e52,_0x49b3e5){const _0x301aa7=new _0x54f983(this['locale']);return _0x301aa7['children']=_0x301aa7['createCollection'](),_0x301aa7['children']['addMany'](_0x5a0e52),_0x301aa7['setTemplate']({'tag':'div','attributes':{'aria-label':_0x49b3e5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x301aa7['children']}),_0x301aa7['children']['delegate']('execute')['to'](this),_0x301aa7['focus']=function(){for(const _0x3a60c1 of this['children'])if(_0x3a60c1 instanceof _0xede7c4&&_0x3a60c1['isOn'])return void _0x3a60c1['focus']();this['children']['first']['focus']();},_0x301aa7['focusTracker']=new et(),_0x301aa7['keystrokes']=new ot(),_0x301aa7['render'](),_0x301aa7['keystrokes']['listenTo'](_0x301aa7['element']),this['children']['add'](_0x301aa7),_0x301aa7;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4e8f69=this['_createStartIndexPropertyView'](),_0xc7ec4c=[_0x4e8f69],_0xc0ced4=new tt(this['locale'],_0xc7ec4c);return _0xc0ced4['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xc0ced4['buttonView']['bind']('isEnabled')['toMany'](_0xc7ec4c,'isEnabled',(..._0x1c9e3f)=>_0x1c9e3f['some'](_0x534ee3=>_0x534ee3)),_0xc0ced4['buttonView']['on']('change:isEnabled',(_0x917ab2,_0x17cc99,_0x28ff37)=>{_0x28ff37||(_0xc0ced4['isCollapsed']=!0x0);}),this['children']['add'](_0xc0ced4),[_0x4e8f69,_0xc0ced4];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2678cf=new st(this['locale'],it);return _0x2678cf['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2678cf['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2678cf['fieldView']['on']('input',()=>{const _0x59dd45=_0x2678cf['fieldView']['element'],_0x15137b=_0x59dd45['valueAsNumber'];Number['isNaN'](_0x15137b)?_0x2678cf['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x59dd45['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x15137b}):_0x2678cf['errorText']=t(_0x15137b<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2678cf;}}class j extends _0x43bd3c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x86afc8,_0x394505];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xcc90a2}=this,{componentFactory:_0x5549e0}=_0xcc90a2['ui'];_0xcc90a2['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5549e0['add']('footnotesStyle',function(_0x205441){return _0x30318a=>{const {t:t}=_0x30318a,_0x2f3f0d=_0x205441['commands']['get']('footnotesStyle'),_0x3d6218=_0x370afd(_0x30318a),{buttonView:_0x1c0572}=_0x3d6218;return _0x3d6218['class']='ck-footnotes-styles-dropdown',_0x3d6218['bind']('isEnabled')['to'](_0x2f3f0d,'isEnabled'),_0x1c0572['set']({'label':t('Footnotes\x20style'),'icon':_0x4f816e,'tooltip':!0x0}),_0x3d6218['once']('change:isOpen',()=>{const _0x2049c0=function({editor:_0x38f27a,dropdownView:_0x1a8067}){const {t:t}=_0x38f27a['locale'],_0x193173=t('Footnotes\x20definitions\x20styles'),_0x53adb1=function(_0x12b5a6){const t=_0x12b5a6['locale']['t'],_0x395903=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x14a3ea},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x55064c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x164851},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1d15e8},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2911c6},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5b7a8f}];return _0x395903['map'](function(_0x572ab7){const _0x2bb9dd=_0x572ab7['locale'];return({label:_0x1a57ab,icon:_0x320c0d,tooltip:_0x408cff,style:_0x503319})=>{const _0x57ebdf=_0x572ab7['commands']['get']('footnotesStyle'),_0x4e50c3=new _0xede7c4(_0x2bb9dd);return _0x4e50c3['set']({'label':_0x1a57ab,'icon':_0x320c0d,'tooltip':_0x408cff}),_0x4e50c3['bind']('isOn')['to'](_0x57ebdf,'value',_0x3391ef=>_0x3391ef===_0x503319),_0x4e50c3['bind']('isEnabled')['to'](_0x57ebdf,'isEnabled'),_0x4e50c3['on']('execute',()=>{_0x572ab7['execute']('footnotesStyle',{'value':_0x503319}),_0x572ab7['editing']['view']['focus']();}),_0x4e50c3;};}(_0x12b5a6));}(_0x38f27a),_0x5e97dc=new H(_0x38f27a['locale'],{'styleGridAriaLabel':_0x193173,'styleButtonViews':_0x53adb1});return _0x5e97dc['delegate']('execute')['to'](_0x1a8067),_0x5e97dc['on']('footnotesListStart',(_0x40a94c,_0x136e3c)=>{_0x38f27a['execute']('footnotesStart',{'value':_0x136e3c['startIndex']});}),_0x5e97dc;}({'editor':_0x205441,'dropdownView':_0x3d6218});_0x3d6218['panelView']['children']['add'](_0x2049c0);}),_0x3d6218;};}(_0xcc90a2));}['afterInit'](){const {editor:_0x37ff4c}=this,{t:t}=_0x37ff4c['locale'],_0x2b936f=_0x37ff4c['plugins']['get'](_0x394505),{defaultPositions:_0x57bae0}=_0x22995d;_0x2b936f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x37ff4c['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xa9108e=>{let _0x167756=_0xa9108e['getFirstPosition']()?.['parent'];return _0x167756?.['is']('$text')&&(_0x167756=_0x167756['parent']),_0x167756?.['is']('element')?_0x167756['findAncestor'](J):null;},'positions':[_0x57bae0['southArrowNorth'],_0x57bae0['southArrowNorthMiddleWest'],_0x57bae0['southArrowNorthMiddleEast'],_0x57bae0['southArrowNorthWest'],_0x57bae0['southArrowNorthEast'],_0x57bae0['northArrowSouth'],_0x57bae0['northArrowSouthMiddleWest'],_0x57bae0['northArrowSouthMiddleEast'],_0x57bae0['northArrowSouthWest'],_0x57bae0['northArrowSouthEast'],_0x57bae0['viewportStickyNorth']]});}}class lt extends _0x43bd3c{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 _0x25b2d6,Command as _0x193797}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0xebf7af,isWidget as _0x5a73c2,toWidgetEditable as _0x29a289,WidgetToolbarRepository as _0x48fbaa}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x574b7f,logWarning as _0x13d13b,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1307d2,ClickObserver as _0xc75ae9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x3e45a9}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x10551b,ButtonView as _0x3f32a5,View as _0x38c38c,ViewCollection as _0x2cc620,FocusCycler as _0x2a3983,addKeyboardHandlingForGrid as _0x176d2d,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x1d7f79,BalloonPanelView as _0x4b3ffd,createDropdown as _0x2d99b4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4e8371,IconListStyleDecimal as _0x28c861,IconListStyleDecimalLeadingZero as _0x2ce242,IconListStyleLowerRoman as _0x3cbc20,IconListStyleUpperRoman as _0x283542,IconListStyleLowerLatin as _0x4aa383,IconListStyleUpperLatin as _0x47ef99}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x780033,_0x1cc11c){this['_model']=_0x780033,this['_elementName']=_0x1cc11c['elementName'],this['_getElementKey']=_0x1cc11c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x344f58){const _0x3a9267=new Set(),_0x362326=new Map();for(const _0xc75a86 of _0x344f58){if('insert'===_0xc75a86['type']&&'$text'!==_0xc75a86['name']&&_0xc75a86['position']['nodeAfter']){const _0x58519e=this['_model']['createRangeOn'](_0xc75a86['position']['nodeAfter']);for(const _0x5397a3 of _0x58519e['getItems']()){if(!_0x5397a3['is']('element',this['_elementName']))continue;const _0x261a9d=this['_getElementKey'](_0x5397a3);_0x362326['has'](_0x261a9d)||_0x362326['set'](_0x261a9d,[]),_0x362326['get'](_0x261a9d)['push'](_0x5397a3);}}if('remove'===_0xc75a86['type']&&_0xc75a86['name']===this['_elementName']){const _0x14c72d=this['_getElementKey']({'getAttribute':_0x987ea4=>_0xc75a86['attributes']['get'](_0x987ea4)});_0x3a9267['add'](_0x14c72d);}}for(const [_0x3bc837,_0x177c1f]of this['_trackedElements'])'$graveyard'===_0x177c1f['root']['rootName']&&_0x3a9267['add'](_0x3bc837);for(const _0x5adfe2 of _0x3a9267)this['_trackedElements']['delete'](_0x5adfe2);for(const [_0x3d8511,_0x1afc50]of _0x362326)this['_trackedElements']['set'](_0x3d8511,_0x1afc50[_0x1afc50['length']-0x1]);const _0x17b085=new Set();for(const [_0x184724,_0xe85df0]of _0x362326)_0x3a9267['has'](_0x184724)&&(_0x17b085['add'](_0xe85df0[0x0]),_0xe85df0['length']>0x1?_0x362326['set'](_0x184724,_0xe85df0['slice'](0x1)):_0x362326['delete'](_0x184724),_0x3a9267['delete'](_0x184724));return{'removed':Array['from'](_0x3a9267),'inserted':Array['from'](_0x362326['values']())['flat'](),'moved':Array['from'](_0x17b085)};}}class c extends _0x25b2d6{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dd7ac){super(_0x5dd7ac),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1b03a1=>_0x1b03a1['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x37a9d3=>_0x37a9d3['getAttribute']('footnoteId')});}['init'](){const {editor:_0xe28f9}=this,{model:_0x1cba58,data:_0x337ac3}=_0xe28f9;_0x1cba58['document']['registerPostFixer'](_0x416392=>{const _0x20980a=_0x1cba58['document']['differ']['getChanges']();let _0x6e28dd=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x416392,_0x20980a)&&(_0x6e28dd=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x416392,_0x20980a)&&(_0x6e28dd=!0x0),this['_handleFootnoteReferencesChanges'](_0x416392,_0x20980a)&&(_0x6e28dd=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x416392)&&(_0x6e28dd=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x416392)&&(_0x6e28dd=!0x0),this['_sortFootnoteDefinitions'](_0x416392)&&(_0x6e28dd=!0x0),_0x6e28dd;}),this['listenTo'](_0x1cba58['document'],'change:data',()=>{_0x1cba58['enqueueChange']({'isUndoable':!0x1},_0x373f93=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x373f93);});},{'priority':'low'}),this['listenTo'](_0x337ac3,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5dcd44){return this['_footnotes']['find'](_0x162130=>_0x162130['id']===_0x5dcd44)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x39c586){this['_footnoteFormatter']=_0x39c586;}['_updateFootnotesCounters'](_0x319628,_0x2043e3=0x0){let _0x4330fd=!0x1;for(let _0x402a17=_0x2043e3;_0x402a17<this['_footnotes']['length'];_0x402a17++)this['_updateFootnoteRefCounter'](_0x319628,_0x402a17)&&(_0x4330fd=!0x0);return _0x4330fd;}['_insertEmptyFootnotesDefinitionsContainer'](_0x5cfe91,_0x26a9e2){const _0x512470=_0x5cfe91['createElement']('footnotesDefinitions',{});return _0x5cfe91['append'](_0x512470,_0x26a9e2),this['_footnotesDefinitions']=_0x512470,_0x512470;}['_ensureFootnotesDefinitionsContainerExists'](_0x4d69f9){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x179897=this['_footnotes'][0x0]['reference']['root'],_0x5ba253=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4d69f9,_0x179897);for(const _0x1d47dc of this['_footnotes'])_0x1d47dc['definition']['parent']||_0x4d69f9['insert'](_0x1d47dc['definition'],_0x5ba253,'end');this['_updateFootnotesCounters'](_0x4d69f9);}['_handleFootnotesDefinitionsObjectChanges'](_0x4ea111,_0x3f117f){let _0xa17e5c=!0x1;const {inserted:_0x44c3b4,removed:_0x30d472,moved:_0x1a0954}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3f117f);if(_0x1a0954['length']&&(this['_footnotesDefinitions']=_0x1a0954[0x0]),_0x44c3b4['length']){if(_0x44c3b4['length']>0x1||this['_footnotesDefinitions']&&_0x44c3b4['some'](_0x5ac24e=>_0x5ac24e!==this['_footnotesDefinitions'])){const _0x33af31=_0x4ea111['createElement']('footnotesDefinitions',{}),_0x26e94d=[];this['_footnotesDefinitions']&&_0x26e94d['push'](this['_footnotesDefinitions']),_0x26e94d['push'](..._0x44c3b4),_0x4ea111['insert'](_0x33af31,_0x26e94d[0x0],'before');for(const _0x5b4a79 of _0x26e94d)_0x4ea111['move'](_0x4ea111['createRangeIn'](_0x5b4a79),_0x4ea111['createPositionAt'](_0x33af31,'end')),_0x4ea111['remove'](_0x5b4a79);this['_footnotesDefinitions']=_0x33af31,this['_updateFootnotesCounters'](_0x4ea111),_0xa17e5c=!0x0;}else this['_footnotesDefinitions']=_0x44c3b4[0x0];}if(_0x30d472['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1fd667 of this['_footnotes'])_0x4ea111['remove'](_0x1fd667['reference']),_0xa17e5c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xa17e5c;}['_handleFootnoteDefinitionsChanges'](_0x37458d,_0x18961b){let _0x13ba7b=!0x1;const _0x4f21d3=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x55c830,moved:_0x22a7af}=this['_footnoteDefsTracker']['getChanges'](_0x18961b);for(const _0x268db3 of[..._0x22a7af,..._0x55c830]){const _0x503233=_0x268db3['getAttribute']('footnoteId'),_0x3d53b8=this['getFootnote'](_0x503233);_0x3d53b8&&(_0x3d53b8['definition']=_0x268db3),_(_0x37458d,_0x4f21d3,_0x268db3)&&(_0x13ba7b=!0x0);}return _0x13ba7b;}['_handleFootnoteReferencesChanges'](_0x3cfa34,_0x4e5ede){let _0x601bdb=!0x1;const {removed:_0x4accbd,inserted:_0x526570,moved:_0xe4c546}=this['_footnoteRefsTracker']['getChanges'](_0x4e5ede);for(const _0xea19f7 of _0x4accbd)this['_handleRemoveFootnoteReferenceById'](_0x3cfa34,_0xea19f7)&&(_0x601bdb=!0x0);for(const _0x13d75f of _0x526570)this['_handleInsertedFootnoteReference'](_0x3cfa34,_0x13d75f)&&(_0x601bdb=!0x0);for(const _0x180cac of _0xe4c546)this['_handleMovedFootnoteReference'](_0x3cfa34,_0x180cac)&&(_0x601bdb=!0x0);return _0x601bdb;}['_handleFootnotesDefinitionsObjectSync'](_0x5b68ef){if(!this['_footnotesDefinitions'])return!0x1;let _0xc4563f=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x469d4a=[];for(const _0x1b429e of this['_footnotesDefinitions']['getChildren']()){const _0x2d335a=_0x1b429e['getAttribute']('footnoteId');this['getFootnote'](_0x2d335a)||(_0x469d4a['unshift'](_0x1b429e),_0xc4563f=!0x0);}for(const _0x2589a6 of _0x469d4a)_0x5b68ef['remove'](_0x2589a6);}const _0x1336b9=new Set(),_0x1ead1e=[];for(const _0xb3ed5f of this['_footnotesDefinitions']['getChildren']()){const _0x59cd7c=_0xb3ed5f['getAttribute']('footnoteId');_0x1336b9['has'](_0x59cd7c)?(_0x1ead1e['unshift'](_0xb3ed5f),_0xc4563f=!0x0):_0x1336b9['add'](_0x59cd7c);}for(const _0x2a6749 of _0x1ead1e)_0x5b68ef['remove'](_0x2a6749);return this['_footnotesDefinitions']['childCount']||(_0x5b68ef['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xc4563f=!0x0),_0xc4563f;}['_handleInsertedFootnoteReference'](_0x102f4e,_0x3c0774){if(this['_footnotes']['find'](_0xc57d7=>_0xc57d7['reference']===_0x3c0774))return!0x1;let _0x563c69=!0x1;const _0x219182=_0x3c0774['getAttribute']('footnoteId'),_0x1e6d32=this['_footnotes']['findIndex'](_0x5af7e0=>_0x5af7e0['id']===_0x219182);-0x1!==_0x1e6d32&&(_0x102f4e['remove'](this['_footnotes'][_0x1e6d32]['reference']),this['_footnotes']['splice'](_0x1e6d32,0x1),_0x563c69=!0x0);let _0x2eb60f=this['_footnotesDefinitions']?function(_0x2b9ec4,_0xdb22d0){for(const _0x386ddd of _0x2b9ec4['getChildren']())if(_0x386ddd['getAttribute']('footnoteId')===_0xdb22d0)return _0x386ddd;return null;}(this['_footnotesDefinitions'],_0x219182):null;_0x2eb60f||(_0x2eb60f=_0x102f4e['createElement']('footnoteDefinition',{'footnoteId':_0x219182}),this['_footnotesDefinitions']&&(_0x102f4e['insert'](_0x2eb60f,this['_footnotesDefinitions'],'end'),_0x563c69=!0x0));const _0x5eaf44={'id':_0x219182,'reference':_0x3c0774,'definition':_0x2eb60f},_0x261c60=I(this['editor']['model'],this['_footnotes'],_0x3c0774);this['_footnotes']['splice'](_0x261c60,0x0,_0x5eaf44);let _0x14d757=_0x261c60;return-0x1!==_0x1e6d32&&(_0x14d757=Math['min'](_0x261c60,_0x1e6d32)),this['_updateFootnotesCounters'](_0x102f4e,_0x14d757)&&(_0x563c69=!0x0),_0x563c69;}['_handleRemoveFootnoteReferenceById'](_0x6d36f0,_0x11e702){const _0x30f362=this['_footnotes']['findIndex'](_0x1b41eb=>_0x1b41eb['id']===_0x11e702);if(-0x1===_0x30f362)return!0x1;let _0x2ef164=!0x1;const _0x29c172=this['_footnotes'][_0x30f362];return'$graveyard'!==_0x29c172['definition']['root']['rootName']&&(_0x6d36f0['remove'](_0x29c172['definition']),_0x2ef164=!0x0),this['_footnotes']['splice'](_0x30f362,0x1),this['_updateFootnotesCounters'](_0x6d36f0,_0x30f362)&&(_0x2ef164=!0x0),_0x2ef164;}['_handleMovedFootnoteReference'](_0x339cf7,_0xe30be8){const _0x1342ff=_0xe30be8['getAttribute']('footnoteId'),_0x329ca5=this['_footnotes']['findIndex'](_0x1751fc=>_0x1751fc['id']===_0x1342ff),_0x4608e6=this['_footnotes'][_0x329ca5];let _0x4f502e=!0x1;_0x4608e6['reference']=_0xe30be8,this['_footnotes']['splice'](_0x329ca5,0x1);const _0x3de1d5=I(this['editor']['model'],this['_footnotes'],_0xe30be8);return this['_footnotes']['splice'](_0x3de1d5,0x0,_0x4608e6),this['_updateFootnotesCounters'](_0x339cf7,Math['min'](_0x329ca5,_0x3de1d5))&&(_0x4f502e=!0x0),_0x4f502e;}['_updateFootnoteRefCounter'](_0x3a26cc,_0x569cc4){if(!this['_footnotesDefinitions'])return!0x1;const _0x43678c=this['_footnotes'][_0x569cc4];let _0x139235;return _0x139235=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x43678c,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x569cc4+0x1}):String(_0x569cc4+0x1),_0x43678c['reference']['getAttribute']('footnoteCounter')!=_0x139235&&(_0x3a26cc['setAttribute']('footnoteCounter',_0x139235,_0x43678c['reference']),!0x0);}['_sortFootnoteDefinitions'](_0xc54b08){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x64d06d,_0x55336b){if(_0x64d06d['length']!==_0x55336b['length'])return!0x1;for(let _0x1c2327=0x0;_0x1c2327<_0x64d06d['length'];_0x1c2327++)if(_0x64d06d[_0x1c2327]!==_0x55336b[_0x1c2327])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x551237=>_0x551237['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x1abcd9=>_0x1abcd9['getAttribute']('footnoteId'))))return!0x1;let _0x165082=!0x1;for(let _0x4557c2=0x0;_0x4557c2<this['_footnotes']['length'];_0x4557c2++){const _0x3fe3c3=this['_footnotes'][_0x4557c2],_0x2ac55d=_0xc54b08['createPositionBefore'](_0x3fe3c3['definition']),_0x105ba5=_0xc54b08['createPositionAt'](this['_footnotesDefinitions'],_0x4557c2);_0x2ac55d['isEqual'](_0x105ba5)||(_0xc54b08['move'](_0xc54b08['createRangeOn'](_0x3fe3c3['definition']),_0x105ba5),_0x165082=!0x0);}return _0x165082;}['_ensureFootnotesReferencesHaveProperOrder'](_0x324a1a){if(!this['_footnotes']['length'])return!0x1;const {model:_0x11844c}=this['editor'];let _0x3574bf=!0x1;for(let _0x4e4274=0x0;_0x4e4274<this['_footnotes']['length']-0x1;_0x4e4274++){const _0x1a965c=this['_footnotes'][_0x4e4274],_0x537c21=this['_footnotes'][_0x4e4274+0x1],_0x1524ad=_0x11844c['createPositionBefore'](_0x1a965c['reference']),_0x4def28=_0x11844c['createPositionBefore'](_0x537c21['reference']);'after'===_0x1524ad['compareWith'](_0x4def28)&&(this['_handleMovedFootnoteReference'](_0x324a1a,_0x1a965c['reference']),_0x4e4274=-0x1,_0x3574bf=!0x0);}return _0x3574bf;}}function _(_0x21cf81,_0x2e8edb,_0x296e4a){if(_0x296e4a['childCount'])return!0x1;const _0xa99702=_0x2e8edb?'paragraph':'footnoteInlineContent';return _0x21cf81['insert'](_0x21cf81['createElement'](_0xa99702),_0x296e4a),!0x0;}function I(_0x49e816,_0x77efbe,_0x454352){if(0x0===_0x77efbe['length'])return 0x0;const _0x426943=_0x49e816['createPositionBefore'](_0x454352);for(let _0x2cf8e6=0x0;_0x2cf8e6<_0x77efbe['length'];_0x2cf8e6++){const _0x282f5d=_0x77efbe[_0x2cf8e6],_0x5dbfcf=_0x49e816['createPositionBefore'](_0x282f5d['reference']);if('before'===_0x426943['compareWith'](_0x5dbfcf))return _0x2cf8e6;}const _0xcb7dbe=_0x454352['root'];let _0x2a5c59=-0x1;for(let _0x40f4a3=_0x77efbe['length']-0x1;_0x40f4a3>=0x0;_0x40f4a3--)if(_0x77efbe[_0x40f4a3]['reference']['root']===_0xcb7dbe){_0x2a5c59=_0x40f4a3;break;}if(-0x1!==_0x2a5c59)return _0x2a5c59+0x1;const _0x146d7c=_0x49e816['document']['getRootNames'](),_0x14aa87=_0x146d7c['indexOf'](_0xcb7dbe['rootName']),_0x1139c3=_0x146d7c[_0x14aa87+0x1];if(_0x1139c3){for(let _0x3952bd=0x0;_0x3952bd<_0x77efbe['length'];_0x3952bd++)if(_0x77efbe[_0x3952bd]['reference']['root']['rootName']===_0x1139c3)return _0x3952bd;}return _0x77efbe['length'];}class w extends _0x193797{['refresh'](){const _0x3d705c=this['editor']['model']['document']['selection'],_0x2a1cdb=this['_getPositionToInsertFootnote'](_0x3d705c);this['isEnabled']=!!_0x2a1cdb;}['execute'](_0x22a379){const {editor:_0xce3548}=this,{model:_0x461117}=_0xce3548,{selection:_0x511d37}=_0x461117['document'],_0x25968b=this['_getPositionToInsertFootnote'](_0x511d37);if(!_0x25968b)return;const _0x1e1649=_0xce3548['plugins']['get']('FootnotesEditing'),_0x3c4b21=_0x22a379?.['footnoteId']??_0x574b7f();!function(_0x47daf8){return'string'==typeof _0x47daf8&&_0x47daf8['length']>0x0&&!/\s/['test'](_0x47daf8)&&!/^\d/['test'](_0x47daf8);}(_0x3c4b21)?_0x13d13b('insert-footnote-command-executed-with-invalid-id'):(_0x461117['change'](_0xbdd1c4=>{const _0x350a60=_0xbdd1c4['createElement']('footnoteRef',{'footnoteId':_0x3c4b21});_0x461117['insertObject'](_0x350a60,_0x25968b,null);}),_0x1e1649['_moveSelectionToFootnoteDefinition'](_0x3c4b21));}['_getPositionToInsertFootnote'](_0x390ade){const {model:_0x2c8883}=this['editor'],{schema:_0x1b52fa}=_0x2c8883,_0x28c504=_0x390ade['getFirstRange']();for(const _0x5f511e of _0x28c504['getItems']())if(_0x1b52fa['isBlock'](_0x5f511e)||_0x1b52fa['isObject'](_0x5f511e))return null;const _0x48bdd3=_0x28c504['end'];return _0x1b52fa['checkChild'](_0x48bdd3,'footnoteRef')?_0x48bdd3:null;}}class r extends _0x25b2d6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b6cc2}=this;_0x4b6cc2['config']['define']('footnotes.multiBlock',!0x0),_0x4b6cc2['commands']['add']('insertFootnote',new w(_0x4b6cc2)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x297339){const _0x26a8c4=_0x518e75([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]),_0x25ea38=0x47a28506,_0x20b4e4=0x47a5fd3e^_0x25ea38,_0x26358a=window[_0x518e75([0x44,0x61,0x74,0x65])][_0x518e75([0x6e,0x6f,0x77])](),_0x504dbe=_0x297339[_0x518e75([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x429f77=new window[(_0x518e75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7b76=>{_0x504dbe[_0x518e75([0x6f,0x6e,0x63,0x65])](_0x518e75([0x72,0x65,0x61,0x64,0x79]),_0x4b7b76);}),_0x2c0c38={[_0x518e75([0x6b,0x74,0x79])]:_0x518e75([0x45,0x43]),[_0x518e75([0x75,0x73,0x65])]:_0x518e75([0x73,0x69,0x67]),[_0x518e75([0x63,0x72,0x76])]:_0x518e75([0x50,0x2d,0x32,0x35,0x36]),[_0x518e75([0x78])]:_0x518e75([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]),[_0x518e75([0x79])]:_0x518e75([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]),[_0x518e75([0x61,0x6c,0x67])]:_0x518e75([0x45,0x53,0x32,0x35,0x36])},_0x1e725e=_0x504dbe[_0x518e75([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x518e75([0x67,0x65,0x74])](_0x518e75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd4ec70(){let _0x163c88,_0x514bc7=null,_0x567ea3=null;try{if(_0x1e725e==_0x518e75([0x47,0x50,0x4c]))return _0x518e75([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x163c88=_0x484a13(),!_0x163c88)return _0x518e75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x163c88[_0x518e75([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x567ea3=_0x5dc67e(_0x163c88[_0x518e75([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x163c88[_0x518e75([0x6a,0x74,0x69])])),await _0x5633c7()?_0x4e4f09()?_0xf916af()?_0x518e75([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e2fe5()?(_0x163c88[_0x518e75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x518e75([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x514bc7=_0x5e6e2a(_0x518e75([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x163c88[_0x518e75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x518e75([0x74,0x72,0x69,0x61,0x6c])&&(_0x514bc7=_0x5e6e2a(_0x518e75([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x341ceb()):_0x518e75([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x518e75([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x518e75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x518e75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf916af(){const _0x58d79f=[_0x518e75([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x518e75([0x74,0x72,0x69,0x61,0x6c])][_0x518e75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163c88[_0x518e75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26358a/0x3e8:0xe10*_0x20b4e4;return _0x163c88[_0x518e75([0x65,0x78,0x70])]<_0x58d79f;}function _0x4e4f09(){const _0x5d6b2e=_0x163c88[_0x518e75([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d6b2e&&(!!_0x5d6b2e[_0x518e75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x518e75([0x2a]))||!!_0x5d6b2e[_0x518e75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x518e75([0x46,0x4f,0x4f])));}function _0x2e2fe5(){const _0x348caa=_0x163c88[_0x518e75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x348caa||0x0==_0x348caa[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38b07d}=new URL(window[_0x518e75([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x348caa[_0x518e75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38b07d))return!0x0;const _0x321725=_0x38b07d[_0x518e75([0x73,0x70,0x6c,0x69,0x74])](_0x518e75([0x2e]));return _0x348caa[_0x518e75([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10f5d8=>_0x10f5d8[_0x518e75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x518e75([0x2a])))[_0x518e75([0x6d,0x61,0x70])](_0x4cb34b=>_0x4cb34b[_0x518e75([0x73,0x70,0x6c,0x69,0x74])](_0x518e75([0x2e])))[_0x518e75([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26dfd8=>_0x26dfd8[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x321725[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x518e75([0x6d,0x61,0x70])](_0x97f64d=>Array(_0x321725[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x97f64d[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x518e75([0x66,0x69,0x6c,0x6c])](_0x97f64d[0x0]===_0x518e75([0x2a])?_0x518e75([0x2a]):'')[_0x518e75([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x97f64d))[_0x518e75([0x73,0x6f,0x6d,0x65])](_0x4468c4=>_0x321725[_0x518e75([0x65,0x76,0x65,0x72,0x79])]((_0x5d834b,_0x22c398)=>_0x4468c4[_0x22c398]===_0x5d834b||_0x4468c4[_0x22c398]===_0x518e75([0x2a])));}function _0x341ceb(){return _0x514bc7&&_0x567ea3?new window[(_0x518e75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x82e820,_0xa15f)=>{_0x514bc7[_0x518e75([0x74,0x68,0x65,0x6e])](_0x82e820,_0xa15f),_0x567ea3[_0x518e75([0x74,0x68,0x65,0x6e])](_0x218a3e=>{_0x218a3e!=_0x518e75([0x56,0x61,0x6c,0x69,0x64])&&_0x82e820(_0x218a3e);},_0xa15f);}):_0x514bc7||_0x567ea3||_0x518e75([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dc67e(_0x334c8a,_0x5e41cd){return new window[(_0x518e75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35b3ca=>{if(_0xc93b37())return _0x35b3ca(_0x518e75([0x56,0x61,0x6c,0x69,0x64]));_0x1e33e4(),_0x504dbe[_0x518e75([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x518e75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d75b3=!0x1;const _0x2eab6b=_0x574b7f();function _0x21d7c2(_0x1fc71c){return!!_0x1fc71c&&(typeof _0x1fc71c===_0x518e75([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1fc71c===_0x518e75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1fc71c[_0x518e75([0x74,0x68,0x65,0x6e])]===_0x518e75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1fc71c[_0x518e75([0x63,0x61,0x74,0x63,0x68])]===_0x518e75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x49c017(_0x28de19){_0x4597f4(_0x28de19)[_0x518e75([0x74,0x68,0x65,0x6e])](_0x4b988e=>{if(!_0x4b988e||_0x4b988e[_0x518e75([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x518e75([0x6f,0x6b]))return _0x518e75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a216c(_0x5e925b(_0x2eab6b+_0x5e41cd))!=_0x4b988e[_0x518e75([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x518e75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x518e75([0x56,0x61,0x6c,0x69,0x64]);})[_0x518e75([0x74,0x68,0x65,0x6e])](_0x4b3bbb=>(_0x3eebe6(),_0x4b3bbb),()=>{const _0x3ec03d=_0x3a6ef2();return null==_0x3ec03d?(_0x3eebe6(),_0x518e75([0x56,0x61,0x6c,0x69,0x64])):_0x518e75(_0x26358a-_0x3ec03d>(0x63ae0106^_0x25ea38)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x518e75([0x74,0x68,0x65,0x6e])](_0x35b3ca)[_0x518e75([0x63,0x61,0x74,0x63,0x68])](()=>{_0x35b3ca(_0x518e75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13663f=0x47946b86^_0x25ea38;function _0x3eebe6(){const _0x38ae87=_0x518e75([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a216c(_0x5e925b(_0x334c8a)),_0x430807=_0x44ae2a(_0x1a216c(window[_0x518e75([0x4d,0x61,0x74,0x68])][_0x518e75([0x63,0x65,0x69,0x6c])](_0x26358a/_0x13663f)));window[_0x518e75([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x518e75([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38ae87,_0x430807);}function _0x3a6ef2(){const _0x4289aa=_0x518e75([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a216c(_0x5e925b(_0x334c8a)),_0x43bd09=window[_0x518e75([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x518e75([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4289aa);return _0x43bd09?window[_0x518e75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44ae2a(_0x43bd09),0x10)*_0x13663f:null;}function _0x4597f4(_0x587c6e){return new window[(_0x518e75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cc022,_0x456a43)=>{_0x587c6e[_0x518e75([0x74,0x68,0x65,0x6e])](_0x1cc022,_0x456a43),window[_0x518e75([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x456a43,0x47a351c6^_0x25ea38);});}}_0x504dbe[_0x518e75([0x6f,0x6e])](_0x518e75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x145837,_0x12bac8)=>{if(_0x12bac8[0x0]!=_0x334c8a)return _0x35b3ca(_0x518e75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12bac8[0x1]={..._0x12bac8[0x1],[_0x518e75([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2eab6b};},{[_0x518e75([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x518e75([0x68,0x69,0x67,0x68])}),_0x504dbe[_0x518e75([0x6f,0x6e])](_0x518e75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27cff0=>{_0x21d7c2(_0x27cff0[_0x518e75([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d75b3=!0x0,_0x49c017(_0x27cff0[_0x518e75([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x518e75([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x518e75([0x6c,0x6f,0x77])}),_0x429f77[_0x518e75([0x74,0x68,0x65,0x6e])](()=>{_0x2d75b3||_0x35b3ca(_0x518e75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc93b37(){return _0x504dbe[_0x518e75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x518e75([0x76,0x69,0x65,0x77])][_0x518e75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x518e75([0x61,0x75,0x74,0x6f]);}function _0x1e33e4(){_0x504dbe[_0x518e75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x518e75([0x76,0x69,0x65,0x77])][_0x518e75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x518e75([0x61,0x75,0x74,0x6f]);}}function _0x5e6e2a(_0x5f2f9a){const _0x17f155=[new window[(_0x518e75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b404f=>setTimeout(_0x4b404f,0x47abbbca^_0x25ea38)),_0x429f77[_0x518e75([0x74,0x68,0x65,0x6e])](()=>new window[(_0x518e75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc8e250=>{let _0x1b31dc=0x0;_0x504dbe[_0x518e75([0x6d,0x6f,0x64,0x65,0x6c])][_0x518e75([0x6f,0x6e])](_0x518e75([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4725f6,_0x42357b)=>{_0x42357b[0x0][_0x518e75([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b31dc++,_0x1b31dc==(0x47a284fe^_0x25ea38)&&(_0xc8e250(),_0x4725f6[_0x518e75([0x6f,0x66,0x66])]());});}))];return window[_0x518e75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x518e75([0x72,0x61,0x63,0x65])](_0x17f155)[_0x518e75([0x74,0x68,0x65,0x6e])](()=>_0x5f2f9a);}async function _0x2db0c5(){await _0x429f77,_0x504dbe[_0x518e75([0x6d,0x6f,0x64,0x65,0x6c])][_0x518e75([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x608d8e,_0x504dbe[_0x518e75([0x6d,0x6f,0x64,0x65,0x6c])][_0x518e75([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x608d8e,_0x504dbe[_0x518e75([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x518e75([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39fdb7(_0x53b813){const _0x5335d9=_0x3d9f71();_0x504dbe[_0x5335d9]=_0x518e75([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53b813,_0x53b813!=_0x518e75([0x56,0x61,0x6c,0x69,0x64])&&_0x2db0c5();}function _0x3d9f71(){const _0x16f075=window[_0x518e75([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x518e75([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x518e75([0x6e,0x6f,0x77])]())[_0x518e75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x518e75([0x2e]),'');let _0x44fa70=_0x518e75([0x75]);for(let _0x47066c=0x0;_0x47066c<_0x16f075[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47066c+=0x2){let _0x21c5f2=window[_0x518e75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16f075[_0x518e75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47066c,_0x47066c+0x2));_0x21c5f2>=_0x26a8c4[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21c5f2-=_0x26a8c4[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44fa70+=_0x26a8c4[_0x21c5f2];}return _0x44fa70;}function _0x484a13(){const _0x1235de=_0x1e725e[_0x518e75([0x73,0x70,0x6c,0x69,0x74])](_0x518e75([0x2e]));if(0x3!=_0x1235de[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39ab43(_0x1235de[0x1]);function _0x39ab43(_0x4903ed){const _0x1fff6a=_0x1fa751(_0x4903ed);return _0x1fff6a&&_0x22e7d5()?_0x1fff6a:null;function _0x22e7d5(){const _0xcde987=_0x1fff6a[_0x518e75([0x6a,0x74,0x69])],_0x3caa14=window[_0x518e75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcde987[_0x518e75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcde987[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bfe6a={..._0x1fff6a,[_0x518e75([0x6a,0x74,0x69])]:_0xcde987[_0x518e75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcde987[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bfe6a[_0x518e75([0x76,0x63])],_0x5e925b(_0x2bfe6a)==_0x3caa14;}}}async function _0x5633c7(){let _0x16f51d=!0x0;try{const _0x567e88=_0x1e725e[_0x518e75([0x73,0x70,0x6c,0x69,0x74])](_0x518e75([0x2e])),[_0x19e51b,_0xf8ca54,_0x47047a]=_0x567e88;return _0x2bcf14(_0x19e51b),await _0x4f08ea(_0x19e51b,_0xf8ca54,_0x47047a),_0x16f51d;}catch{return!0x1;}function _0x2bcf14(_0x1859e2){const _0x59911c=_0x1fa751(_0x1859e2);_0x59911c&&_0x59911c[_0x518e75([0x61,0x6c,0x67])]==_0x518e75([0x45,0x53,0x32,0x35,0x36])||(_0x16f51d=!0x1);}async function _0x4f08ea(_0x5d930f,_0x4182bc,_0x45c33c){const _0x1332f6=window[_0x518e75([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x518e75([0x66,0x72,0x6f,0x6d])](_0x82e645(_0x45c33c),_0x3dfa2d=>_0x3dfa2d[_0x518e75([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x232fb9=new window[(_0x518e75([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x518e75([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d930f+_0x518e75([0x2e])+_0x4182bc),_0x191e50=window[_0x518e75([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x518e75([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x191e50)return;const _0x105ea0=await _0x191e50[_0x518e75([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x518e75([0x6a,0x77,0x6b]),_0x2c0c38,{[_0x518e75([0x6e,0x61,0x6d,0x65])]:_0x518e75([0x45,0x43,0x44,0x53,0x41]),[_0x518e75([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x518e75([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x518e75([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x191e50[_0x518e75([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x518e75([0x6e,0x61,0x6d,0x65])]:_0x518e75([0x45,0x43,0x44,0x53,0x41]),[_0x518e75([0x68,0x61,0x73,0x68])]:{[_0x518e75([0x6e,0x61,0x6d,0x65])]:_0x518e75([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x105ea0,_0x1332f6,_0x232fb9)||(_0x16f51d=!0x1);}}function _0x1fa751(_0xdbca8d){return _0xdbca8d[_0x518e75([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x518e75([0x65,0x79]))?JSON[_0x518e75([0x70,0x61,0x72,0x73,0x65])](_0x82e645(_0xdbca8d)):null;}function _0x82e645(_0x532482){return window[_0x518e75([0x61,0x74,0x6f,0x62])](_0x532482[_0x518e75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x518e75([0x2b]))[_0x518e75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x518e75([0x2f])));}function _0x5e925b(_0x50ee87){let _0x584d16=0x1505;function _0x560efb(_0x593bfc){for(let _0x13849e=0x0;_0x13849e<_0x593bfc[_0x518e75([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13849e++){const _0x3c9f52=_0x593bfc[_0x518e75([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13849e);_0x584d16=(_0x584d16<<0x5)+_0x584d16+_0x3c9f52,_0x584d16&=_0x584d16;}}function _0x1d1c3b(_0x5e6c26){Array[_0x518e75([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e6c26)?_0x5e6c26[_0x518e75([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d1c3b):_0x5e6c26&&typeof _0x5e6c26==_0x518e75([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x518e75([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e6c26)[_0x518e75([0x73,0x6f,0x72,0x74])]()[_0x518e75([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41c806,_0x2da8ed])=>{_0x560efb(_0x41c806),_0x1d1c3b(_0x2da8ed);}):_0x560efb(window[_0x518e75([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e6c26));}return _0x1d1c3b(_0x50ee87),_0x584d16>>>0x0;}function _0x1a216c(_0x3558a7){return _0x3558a7[_0x518e75([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x518e75([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x518e75([0x30]));}function _0x44ae2a(_0x189885){return _0x189885[_0x518e75([0x73,0x70,0x6c,0x69,0x74])]('')[_0x518e75([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x518e75([0x6a,0x6f,0x69,0x6e])]('');}function _0x608d8e(){}function _0x518e75(_0xd5797d){return _0xd5797d['map'](_0x39fc9e=>String['fromCharCode'](_0x39fc9e))['join']('');}_0x39fdb7(await _0xd4ec70());}(this);}['_moveSelectionToFootnoteDefinition'](_0x491564){const {plugins:_0x25f267,editing:_0xaa931,model:_0x3dc4cc}=this['editor'],_0x2ed17b=_0x25f267['get'](c)['getFootnote'](_0x491564);return!!_0x2ed17b&&(_0x3dc4cc['change'](_0x532afa=>{_0x532afa['setSelection'](_0x532afa['createPositionAt'](_0x2ed17b['definition'],'end'));}),_0xaa931['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5b442d){const {plugins:_0x1d82f4,editing:_0x8451b6,model:_0x572b0f}=this['editor'],_0x4d0c96=_0x1d82f4['get'](c)['getFootnote'](_0x5b442d);return!!_0x4d0c96&&(_0x572b0f['change'](_0x3c0e4b=>{_0x3c0e4b['setSelection'](_0x4d0c96['reference'],'on');}),_0x8451b6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4c5bfc}=this['editor']['model'],_0x3bce96=this['editor']['config']['get']('footnotes.multiBlock');_0x4c5bfc['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4c5bfc['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4c5bfc['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3bce96?_0x4c5bfc['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4c5bfc['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4c5bfc['addChildCheck'](_0x2aa2d7=>{for(const _0x291948 of _0x2aa2d7)if('footnoteDefinition'===_0x291948['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x18d007}=this,{conversion:_0x588865,editing:_0x3116ed}=_0x18d007,{t:t}=_0x18d007['locale'];_0x588865['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x164c12,{writer:_0x56a6b4,consumable:_0x20ee49})=>{const _0x4855f5=_0x164c12['getChild'](0x0);if(!_0x4855f5||!_0x4855f5['is']('element','a'))return null;const _0x3e7034=_0x4855f5['getAttribute']('href')||'';if(!_0x3e7034['startsWith']('#'))return null;const _0x3aa26a=_0x3e7034['replace'](/^#/,'');if(!_0x3aa26a)return null;_0x20ee49['consume'](_0x4855f5,{'name':!0x0,'attributes':['href']});for(const {item:_0x2504bc}of _0x3116ed['view']['createRangeIn'](_0x4855f5))_0x2504bc['is']('$textProxy')?_0x20ee49['consume'](_0x2504bc['textNode'],{'name':!0x0}):_0x2504bc['is']('element')&&_0x20ee49['consume'](_0x2504bc,{'name':!0x0});return _0x56a6b4['createElement']('footnoteRef',{'footnoteId':_0x3aa26a});}}),_0x588865['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2fb6e4,{writer:_0x5fbbfe})=>D(_0x2fb6e4,_0x5fbbfe)}),_0x588865['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x183713,{writer:_0x4db6eb})=>{const _0x440c55=_0x183713['getAttribute']('footnoteCounter');return _0xebf7af(D(_0x183713,_0x4db6eb),_0x4db6eb,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x440c55)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4e6d37}=this,{t:t}=_0x4e6d37['locale'],{conversion:_0xed7d8f}=_0x4e6d37;_0xed7d8f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xed7d8f['for']('upcast')['add'](_0x48bebe=>{_0x48bebe['on']('element:ol',(_0x1be702,_0x117830,_0x4fb75a)=>{const _0x51971d=_0x117830['viewItem'];if(!_0x51971d['hasClass']('footnotes-list')||!_0x117830['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4fb75a['consumable']['consume'](_0x51971d,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x501aeb,modelCursor:_0x4d1a54}=_0x4fb75a['convertChildren'](_0x117830['viewItem'],_0x117830['modelCursor']);_0x117830['modelRange']=_0x501aeb,_0x117830['modelCursor']=_0x4d1a54;}),_0x48bebe['on']('element:hr',(_0x591115,_0x227f18,_0x3b4c94)=>{const _0x31e810=_0x227f18['viewItem'];_0x31e810['hasClass']('footnotes-divider')&&_0x227f18['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3b4c94['consumable']['consume'](_0x31e810,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xed7d8f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x438129,{writer:_0x1959d4})=>g(_0x1959d4)}),_0xed7d8f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x47b54e,{writer:_0x280b60})=>{const _0x213737=g(_0x280b60,{'data-footnotes-list-label':t('Footnotes')}),_0x7249e3=_0xebf7af(_0x213737,_0x280b60,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x280b60['setCustomProperty']('footnotesDefinitions',!0x0,_0x7249e3),_0x7249e3;}});}['_defineDefinitionConverters'](){const {editor:_0x27f77d}=this,{conversion:_0x401c8c,locale:_0x301894}=_0x27f77d,_0x57ecc0=_0x27f77d['config']['get']('footnotes.multiBlock');_0x401c8c['for']('upcast')['add'](_0x90b324=>{_0x90b324['on']('element:li',(_0x1f4115,_0x3f095c,_0x123bda)=>{const _0x554253=_0x3f095c['viewItem'];if(!_0x554253['hasClass']('footnote-definition')||!_0x554253['getAttribute']('id'))return;const _0x40da9f=_0x554253['parent'];if(!_0x40da9f['is']('element','ol')||!_0x40da9f['hasClass']('footnotes-list'))return;if(!_0x123bda['consumable']['test'](_0x554253,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x31a1ab=_0x123bda['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x554253['getAttribute']('id')});if(!_0x123bda['safeInsert'](_0x31a1ab,_0x3f095c['modelCursor']))return;_0x123bda['consumable']['consume'](_0x554253,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1f8ce7=Array['from'](_0x554253['getChildren']())['find'](_0x63e504=>_0x63e504['is']('element')&&_0x63e504['hasClass']('footnote-content'));for(const _0x59dabd of _0x554253['getChildren']())_0x59dabd['is']('element')&&(_0x123bda['consumable']['consume'](_0x59dabd,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x123bda['consumable']['consume'](_0x59dabd,{'name':!0x0,'classes':'footnote-content'}));if(_0x1f8ce7){if(_0x57ecc0)_0x123bda['convertChildren'](_0x1f8ce7,_0x31a1ab);else{const _0x29b4a2=_0x123bda['writer']['createElement']('footnoteInlineContent');_0x123bda['writer']['insert'](_0x29b4a2,_0x31a1ab),_0x123bda['convertChildren'](_0x1f8ce7,_0x29b4a2);}}_0x123bda['updateConversionResult'](_0x31a1ab,_0x3f095c);});}),_0x401c8c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x83cc6,{writer:_0x1210f6})=>v(_0x83cc6,_0x1210f6,_0x301894,{'dataPipeline':!0x0})}),_0x401c8c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xcd1ba7,{writer:_0x509bfa})=>v(_0xcd1ba7,_0x509bfa,_0x301894)});}['_defineBogusParagraphConverters'](){const {editor:_0x428984}=this,{conversion:_0x336b53}=_0x428984;_0x428984['config']['get']('footnotes.multiBlock')?(_0x336b53['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x336b53['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x428984['model']['document'],'change:data',()=>{!function(_0x4fee4a,_0x1ffd14){const _0x5a15c1=_0x4fee4a['document']['differ'],_0x55331d=new Set();for(const _0x1122af of _0x5a15c1['getChanges']()){const _0x22a5c9='attribute'==_0x1122af['type']?_0x1122af['range']['start']['parent']:_0x1122af['position']['parent'];_0x22a5c9['is']('element','footnoteDefinition')&&_0x55331d['add'](_0x22a5c9);}for(const _0x2a51d3 of _0x55331d['values']()){const _0x4b00f6=Array['from'](_0x2a51d3['getChildren']())['filter'](_0x3c5452=>p(_0x3c5452,_0x1ffd14['mapper']));for(const _0x4f6f91 of _0x4b00f6)_0x1ffd14['reconvertItem'](_0x4f6f91);}}(_0x428984['model'],_0x428984['editing']);})):(_0x336b53['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x336b53['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3e8984,{writer:_0x1ab784})=>{const _0x443c99=_0x1ab784['createContainerElement']('span');return _0x1ab784['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x443c99),_0x443c99;}}));}['_defineKeyboardHandlers'](){const {editor:_0x383a15}=this,{editing:_0x361645,t:t}=_0x383a15,_0x3f04cc=_0x383a15['model']['document']['selection'];_0x383a15['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x383a15['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x361645['view']['document'],'enter',(_0x17d33f,_0xc21c51)=>{const _0x4080c8=function(_0xa23556){const _0x4a1b7f=_0xa23556['getSelectedElement']();if(_0x4a1b7f?.['is']('element','footnoteRef'))return _0x4a1b7f;return null;}(_0x3f04cc);if(_0x4080c8){const _0x4ad0f8=_0x4080c8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4ad0f8),_0xc21c51['preventDefault'](),_0x17d33f['stop']();}},{'context':_0x5a73c2});}['_defineClickHandlers'](){const {editor:_0x112b52}=this,{editing:_0x1168db}=_0x112b52;_0x112b52['editing']['view']['addObserver'](_0x1307d2),_0x112b52['editing']['view']['addObserver'](_0xc75ae9);let _0x351889=!0x1;this['listenTo'](_0x1168db['view']['document'],'pointerdown',(_0x2aaa12,_0x20f895)=>{const {target:_0x525b04}=_0x20f895,_0x3685ea=_0x1168db['view']['document']['selection'];_0x351889=!!(_0x525b04['is']('element','a')&&_0x525b04['parent']?.['is']('element','sup')&&_0x525b04['parent']['hasClass']('footnote'))&&_0x3685ea['getSelectedElement']()===_0x525b04['parent'];},{'priority':'high'}),this['listenTo'](_0x1168db['view']['document'],'click',(_0x2b07d3,_0x53cf61)=>{const {target:_0x40b91a}=_0x53cf61;if(!_0x40b91a['is']('element','a'))return;if(_0x40b91a['parent']?.['is']('element','sup')&&_0x40b91a['parent']['hasClass']('footnote')&&!_0x351889)return void _0x53cf61['preventDefault']();let _0x3502d7=_0x40b91a['getAttribute']('href');if(!_0x3502d7?.['startsWith']('#'))return;_0x3502d7=_0x3502d7['slice'](0x1);let _0x4f1657=!0x1;(_0x3502d7['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3502d7['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3502d7))&&(_0x4f1657=!0x0),_0x4f1657&&(_0x53cf61['preventDefault'](),_0x2b07d3['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x22590f}={}){return(_0x58164b,{writer:_0x4639da})=>{if(!h(_0x58164b))return null;if(!_0x22590f)return _0x4639da['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x21d338=_0x4639da['createContainerElement']('p');return _0x4639da['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x21d338),_0x21d338;};}function h(_0x5e471e){const {parent:_0x957358}=_0x5e471e;if(!_0x957358?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x957358['childCount'])return!0x1;for(const _0x27d4e2 of _0x5e471e['getAttributeKeys']())if(!_0x27d4e2['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x27d4e2)return!0x1;return!0x0;}function p(_0x3a042d,_0x1a60d4){if(!_0x3a042d['is']('element','paragraph'))return!0x1;const _0x2cb860=_0x1a60d4['toViewElement'](_0x3a042d);return!!_0x2cb860&&h(_0x3a042d)!==_0x2cb860['is']('element','span');}function J(_0x1abfd9){return _0x5a73c2(_0x1abfd9)&&_0x1abfd9['is']('containerElement')&&!!_0x1abfd9['getCustomProperty']('footnotesDefinitions');}function g(_0x3a8edb,_0x9ea817={}){const _0x19a5dd=_0x3a8edb['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5099b2=_0x3a8edb['createContainerElement']('ol',{'class':'footnotes-list'},_0x3a8edb['createSlot']());return _0x3a8edb['createContainerElement']('div',{'class':'footnotes',..._0x9ea817},[_0x19a5dd,_0x5099b2]);}function D(_0x88912d,_0x496dd0){const _0x1534d8=_0x88912d['getAttribute']('footnoteId'),_0x3d1668=_0x88912d['getAttribute']('footnoteCounter'),_0x1a1402=_0x496dd0['createUIElement']('a',{'href':'#'+_0x1534d8},function(_0x3a4d05){const _0x5530b4=this['toDomElement'](_0x3a4d05);return _0x5530b4['textContent']=_0x3d1668,_0x5530b4;}),_0xf0ad19=_0x496dd0['createContainerElement']('sup',{'id':'ref-'+_0x1534d8,'class':'footnote'},[_0x1a1402]);return _0xf0ad19['getFillerOffset']=()=>null,_0xf0ad19;}function v(_0x4f2c09,_0x12832b,_0x490928,{dataPipeline:_0xd926e9}={}){const {t:t}=_0x490928,_0x2d9a68=_0x4f2c09['getAttribute']('footnoteId'),_0x327967=_0x12832b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2d9a68},function(_0x497e18){const _0x569a01=this['toDomElement'](_0x497e18);return _0x569a01['innerText']='^',_0x569a01;}),_0x47111a=_0xd926e9?_0x12832b['createContainerElement']('div',{'class':'footnote-content'}):_0x29a289(_0x12832b['createEditableElement']('div',{'class':'footnote-content'}),_0x12832b,{'label':t('Footnote\x20content.')});return _0x12832b['insert'](_0x12832b['createPositionAt'](_0x47111a,0x0),_0x12832b['createSlot']()),_0x12832b['createContainerElement']('li',{'class':'footnote-definition','id':_0x2d9a68},[_0x327967,_0x47111a]);}class e extends _0x25b2d6{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x3e45a9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5d0d90}=this,{plugins:_0x33f4a3,model:_0x155714}=_0x5d0d90,_0x3f15bd=_0x33f4a3['get'](_0x3e45a9),_0xed326e=_0x33f4a3['get'](c);this['listenTo'](_0x3f15bd,'outputTransformation',(_0x4009a5,_0xf5823a)=>{const _0x4fb624=function(_0x587a09,_0x16d0af){const _0x42689c=new Set();for(const {item:_0x3b6b23}of _0x587a09['createRangeIn'](_0x16d0af))_0x3b6b23['is']('element','footnoteRef')&&_0x42689c['add'](_0x3b6b23['getAttribute']('footnoteId'));return Array['from'](_0x42689c);}(_0x155714,_0xf5823a['content']);if(!_0x4fb624['length'])return;const _0x3c3b23=_0xed326e['getFootnotes'](),_0x255b0c=_0x4fb624['reduce']((_0x49e38c,_0x35ff84)=>{const _0x36f6d7=_0x3c3b23['find'](_0x5e79ef=>_0x5e79ef['id']===_0x35ff84);if(_0x36f6d7){const _0x128557=_0x5d0d90['data']['toView'](_0x36f6d7['definition'],{'isClipboardPipeline':!0x0}),_0x12ead4=_0x5d0d90['data']['htmlProcessor']['toData'](_0x128557);_0x49e38c[_0x36f6d7['id']]=_0x12ead4;}return _0x49e38c;},Object['create'](null));_0xf5823a['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x255b0c));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0xe67830}=this,{model:_0x1cbadc,plugins:_0xf2864a}=_0xe67830,{view:_0x452d9b}=_0xe67830['editing'],_0x514875=_0xf2864a['get'](_0x3e45a9),_0x7d20ac=_0xf2864a['get'](c);let _0x2628e9=null;this['listenTo'](_0x452d9b['document'],'clipboardInput',(_0x1b4bbc,_0x2a4052)=>{const _0x49fe1e=_0x2a4052['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2628e9=_0x49fe1e?JSON['parse'](_0x49fe1e):null;}),this['listenTo'](_0x514875,'contentInsertion',(_0x4eb6dc,_0x2d97c1)=>{if(!_0x2628e9)return;const _0x36d7d9=_0x2d97c1['sourceEditorId']===this['editor']['id'];_0x36d7d9&&'drop'===_0x2d97c1['method']||_0x1cbadc['change'](_0x3ddf71=>{!function(_0x1d2a49,_0x4a7b22){const _0xb447a=[];for(const {item:_0x857614}of _0x1d2a49['createRangeIn'](_0x4a7b22))_0x857614['is']('element','footnotesDefinitions')&&_0xb447a['push'](_0x857614);for(const _0x162c9a of _0xb447a)_0x1d2a49['remove'](_0x162c9a);}(_0x3ddf71,_0x2d97c1['content']);let _0x584afe=_0x7d20ac['getFootnotesDefinitionsObjectElement']();if(!_0x584afe){const _0x1d155c=_0x1cbadc['document']['selection']['getFirstRange']()['root'];_0x584afe=_0x7d20ac['_insertEmptyFootnotesDefinitionsContainer'](_0x3ddf71,_0x1d155c);}const _0x5a7497=function(_0x1b0517,_0x3c9c72,_0x1f0201){const _0x1b33bc=Object['create'](null);for(const {item:_0x1dbc75}of _0x1b0517['createRangeIn'](_0x3c9c72))if(_0x1dbc75['is']('element','footnoteRef')){const _0x94ab38=_0x1dbc75['getAttribute']('footnoteId');if(!_0x1f0201(_0x94ab38))continue;_0x1b33bc[_0x94ab38]||(_0x1b33bc[_0x94ab38]=_0x574b7f()),_0x1b0517['setAttribute']('footnoteId',_0x1b33bc[_0x94ab38],_0x1dbc75);}return _0x1b33bc;}(_0x3ddf71,_0x2d97c1['content'],_0x52514f=>!_0x36d7d9||null!==_0x7d20ac['getFootnote'](_0x52514f));for(const [_0xb0693c,_0x3c13be]of Object['entries'](_0x2628e9)){const _0x2a8a98=_0x5a7497[_0xb0693c]||_0xb0693c,_0x5c7766=_0x3ddf71['createElement']('footnoteDefinition',{'footnoteId':_0x2a8a98}),_0x217065=_0xe67830['data']['htmlProcessor']['toView'](_0x3c13be),_0x45d42e=_0xe67830['data']['toModel'](_0x217065,_0x5c7766);_0x3ddf71['append'](_0x45d42e,_0x5c7766),_0x3ddf71['insert'](_0x5c7766,_0x584afe,'end');}_0x2628e9=null;});});}}class i extends _0x25b2d6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x103b6a}=this,{componentFactory:_0x3fff17}=_0x103b6a['ui'];_0x3fff17['add']('insertFootnote',x(_0x103b6a,_0x3f32a5)),_0x3fff17['add']('menuBar:insertFootnote',x(_0x103b6a,_0x10551b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f71f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45d6da;for(const _0x7ced66 in _0x4f71f8){const _0x3bb901=_0x7ced66,_0x43e443=_0x4f71f8[_0x3bb901];if('footnotesLicenseKeyValid'==_0x43e443||'footnotesLicenseKeyInvalid'==_0x43e443||'footnotesLicenseKeyExpired'==_0x43e443||'footnotesLicenseKeyDomainLimit'==_0x43e443||'footnotesLicenseKeyNotAllowed'==_0x43e443||'footnotesLicenseKeyEvaluationLimit'==_0x43e443||'footnotesLicenseKeyTrialLimit'==_0x43e443||'footnotesLicenseKeyUsageLimit'==_0x43e443){delete _0x4f71f8[_0x3bb901],_0x45d6da=_0x43e443,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x45d6da&&_0x4f71f8['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x45d6da&&_0x4f71f8['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x45d6da&&_0x4f71f8['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x45d6da&&_0x4f71f8['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x45d6da&&_0x4f71f8['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x45d6da&&_0x4f71f8['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x45d6da&&_0x4f71f8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x5255e1,_0x4f1db0){const _0x194360=_0x5255e1['commands']['get']('insertFootnote');return _0x4b63eb=>{const {t:t}=_0x4b63eb,_0x155949=new _0x4f1db0(_0x4b63eb),_0x1f06af=_0x155949 instanceof _0x10551b;return _0x155949['bind']('isEnabled')['to'](_0x194360,'isEnabled'),_0x155949['set']({'label':t(_0x1f06af?'Footnote':'Insert\x20footnote'),'icon':_0x4e8371,'tooltip':!0x0}),_0x155949['on']('execute',()=>{_0x194360['execute'](),_0x5255e1['editing']['view']['focus']();}),_0x155949;};}class nt extends _0x25b2d6{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 _0x193797{['refresh'](){const {editor:_0x15eb04}=this,_0x1d2c65=_0x15eb04['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1d2c65,this['value']=_0x1d2c65?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3622ac}){const {editor:_0x59b032}=this,_0x239200=_0x59b032['plugins']['get'](c),_0x2d7abc=_0x239200['getFootnotesDefinitionsObjectElement']();_0x2d7abc&&Q['includes'](_0x3622ac)&&_0x59b032['model']['change'](_0x533024=>{_0x533024['setAttribute']('footnotesListStyle',_0x3622ac,_0x2d7abc),_0x239200['_updateFootnotesCounters'](_0x533024);});}}class b extends _0x193797{['refresh'](){const {editor:_0x38acd8}=this,_0x271636=_0x38acd8['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x271636,this['value']=_0x271636?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x30b590}){const {editor:_0xd37a60}=this,_0x4af2b6=_0xd37a60['plugins']['get'](c),_0x152fc9=_0x4af2b6['getFootnotesDefinitionsObjectElement']();_0x152fc9&&Number['isInteger'](_0x30b590)&&_0xd37a60['model']['change'](_0x393097=>{_0x393097['setAttribute']('footnotesListStart',_0x30b590,_0x152fc9),_0x4af2b6['_updateFootnotesCounters'](_0x393097);});}}class P extends _0x25b2d6{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e481b}=this;_0x3e481b['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x3e481b['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x3e481b['commands']['add']('footnotesStyle',new S(_0x3e481b)),_0x3e481b['commands']['add']('footnotesStart',new b(_0x3e481b)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x103a35}=this,{schema:_0x4467f5}=_0x103a35['model'];_0x4467f5['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4807c9}=this,{conversion:_0xfc59a5,model:_0x3a197c}=_0x4807c9,{schema:_0x515c03}=_0x3a197c;_0xfc59a5['for']('upcast')['add'](_0x5c3fba=>{_0x5c3fba['on']('element:ol',(_0x499d43,_0x29610c,_0x2443b4)=>{const _0x5bbd4f=_0x29610c['viewItem'],_0x424840=_0x29610c['modelCursor']?.['parent'];_0x5bbd4f['hasClass']('footnotes-list')&&_0x424840?.['is']('element','footnotesDefinitions')&&(function(_0x2000d2,_0x187ce6,_0x8c253a,_0x3b211e){if(!_0x3b211e['checkAttribute'](_0x187ce6,'footnotesListStart'))return;let _0x217108=0x1;const _0xc4429b=_0x8c253a['consumable']['consume'](_0x2000d2,{'attributes':'start'});if(_0xc4429b){const _0x3b0293=Number['parseInt'](_0x2000d2['getAttribute']('start'),0xa);Number['isNaN'](_0x3b0293)||(_0x217108=_0x3b0293);}!_0xc4429b&&_0x187ce6['hasAttribute']('footnotesListStart')||_0x8c253a['writer']['setAttribute']('footnotesListStart',_0x217108,_0x187ce6);}(_0x5bbd4f,_0x424840,_0x2443b4,_0x515c03),function(_0x5d1103,_0x4aa9da,_0x1699fa,_0x2536ef){if(!_0x2536ef['checkAttribute'](_0x4aa9da,'footnotesListStyle'))return;let _0x39c0ed='decimal',_0x5c6a43=!0x1;if(_0x1699fa['consumable']['consume'](_0x5d1103,{'attributes':'type'})){const _0x53b56a={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5d1103['getAttribute']('type')];_0x53b56a&&(_0x39c0ed=_0x53b56a),_0x5c6a43=!0x0;}_0x1699fa['consumable']['consume'](_0x5d1103,{'styles':'list-style-type'})&&(_0x39c0ed=_0x5d1103['getStyle']('list-style-type'),_0x5c6a43=!0x0),!_0x5c6a43&&_0x4aa9da['hasAttribute']('footnotesListStyle')||_0x1699fa['writer']['setAttribute']('footnotesListStyle',_0x39c0ed,_0x4aa9da);}(_0x5bbd4f,_0x424840,_0x2443b4,_0x515c03));});}),_0xfc59a5['for']('downcast')['add'](_0x21e9d3=>{_0x21e9d3['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1271c6,_0x42a5a7,_0x1fb7f7)=>{if(!_0x1fb7f7['consumable']['consume'](_0x42a5a7['item'],_0x1271c6['name']))return;const _0x2accb3=C(_0x42a5a7['item'],_0x1fb7f7['mapper']),{attributeNewValue:_0x17dc3e}=_0x42a5a7;null==_0x17dc3e||0x1===_0x17dc3e?_0x1fb7f7['writer']['removeAttribute']('start',_0x2accb3):_0x1fb7f7['writer']['setAttribute']('start',String(_0x17dc3e),_0x2accb3);}),_0x21e9d3['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x516a5f,_0x1113c3,_0x167fec)=>{if(!_0x167fec['consumable']['consume'](_0x1113c3['item'],_0x516a5f['name']))return;const _0x4206f1=C(_0x1113c3['item'],_0x167fec['mapper']),{attributeNewValue:_0x1162e1}=_0x1113c3;_0x1162e1&&'decimal'!==_0x1162e1?_0x167fec['writer']['setStyle']('list-style-type',_0x1162e1,_0x4206f1):_0x167fec['writer']['removeStyle']('list-style-type',_0x4206f1);});});}['_definePostfixer'](){const {editor:_0x542e43}=this,{model:_0x51016a}=_0x542e43,_0x4869c7=_0x542e43['plugins']['get'](c),_0x419897=this['_getDefaultListStyle'](),_0x1fb040=this['_getDefaultStartIndex']();_0x51016a['document']['registerPostFixer'](_0x4be8cb=>{const _0x551efb=_0x51016a['document']['differ']['getChanges']();let _0x5a2d38=!0x1;for(const _0x83d2a7 of _0x551efb){if('insert'!==_0x83d2a7['type']||'$text'===_0x83d2a7['name'])continue;const _0xd2a0af=_0x51016a['createRangeOn'](_0x83d2a7['position']['nodeAfter']);for(const _0x162607 of _0xd2a0af['getItems']())_0x162607['is']('element','footnotesDefinitions')&&(!_0x162607['hasAttribute']('footnotesListStart')&&_0x51016a['schema']['checkAttribute'](_0x162607,'footnotesListStart')&&(_0x4be8cb['setAttribute']('footnotesListStart',_0x1fb040,_0x162607),_0x5a2d38=!0x0),!_0x162607['hasAttribute']('footnotesListStyle')&&_0x51016a['schema']['checkAttribute'](_0x162607,'footnotesListStyle')&&(_0x4be8cb['setAttribute']('footnotesListStyle',_0x419897,_0x162607),_0x5a2d38=!0x0));}return _0x5a2d38&&_0x4869c7['_updateFootnotesCounters'](_0x4be8cb),_0x5a2d38;});}['_defineFormatter'](){const {editor:_0x254a82}=this;_0x254a82['plugins']['get'](c)['setFootnoteFormatter'](_0xdd32c8=>this['_formatFootnoteListValue'](_0xdd32c8));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x34534d,value:_0x2d0cbb,digits:_0x336f5d}){const _0x278d95=_0x34534d['getAttribute']('footnotesListStyle'),_0x512cc6=_0x34534d['getAttribute']('footnotesListStart'),_0x4b6921=Math['floor'](_0x2d0cbb)+(_0x512cc6??0x1)-0x1;switch(_0x278d95){case'decimal-leading-zero':return function(_0x54a76e,_0x4a98b0){return String(_0x54a76e)['padStart'](_0x4a98b0,'0');}(_0x4b6921,Math['max'](0x2,_0x336f5d));case'lower-alpha':case'lower-latin':return M(_0x4b6921,!0x1);case'upper-alpha':case'upper-latin':return M(_0x4b6921,!0x0);case'lower-roman':return V(_0x4b6921,!0x1);case'upper-roman':return V(_0x4b6921,!0x0);default:return String(_0x4b6921);}}}function C(_0x1761b1,_0x3591a){const _0x1364dc=_0x3591a['toViewElement'](_0x1761b1);return Array['from'](_0x1364dc['getChildren']())['find'](_0x4d7634=>_0x4d7634['is']('element','ol')&&_0x4d7634['hasClass']('footnotes-list'));}function M(_0x2bb33a,_0x25ba50){let _0x21f0d6='',_0x417411=_0x2bb33a;for(;_0x417411>0x0;){const _0x1e9c62=(_0x417411-0x1)%0x1a;_0x21f0d6=String['fromCharCode'](0x61+_0x1e9c62)+_0x21f0d6,_0x417411=Math['floor']((_0x417411-0x1)/0x1a);}return _0x25ba50?_0x21f0d6['toUpperCase']():_0x21f0d6;}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(_0xfd9f8d,_0x4d8f58){let _0x420b69='',_0x21b034=_0xfd9f8d;for(const {value:_0x2bc31a,numeral:_0x2430ab}of N)for(;_0x21b034>=_0x2bc31a;)_0x420b69+=_0x2430ab,_0x21b034-=_0x2bc31a;return _0x4d8f58?_0x420b69:_0x420b69['toLowerCase']();}class H extends _0x38c38c{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x2cc620();['focusCycler'];constructor(_0x4ff4e5,{styleButtonViews:_0x1e497d,styleGridAriaLabel:_0x7ae45f}){super(_0x4ff4e5),(this['focusCycler']=new _0x2a3983({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1e497d,_0x7ae45f),[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 _0x20e345 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x20e345['element']);_0x176d2d({'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 _0xcaec00=_0x4a9dba=>_0x4a9dba['stopPropagation']();this['keystrokes']['set']('arrowright',_0xcaec00),this['keystrokes']['set']('arrowleft',_0xcaec00),this['keystrokes']['set']('arrowup',_0xcaec00),this['keystrokes']['set']('arrowdown',_0xcaec00);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1ac335,_0x1caad3){const _0x108ddb=new _0x38c38c(this['locale']);return _0x108ddb['children']=_0x108ddb['createCollection'](),_0x108ddb['children']['addMany'](_0x1ac335),_0x108ddb['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1caad3,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x108ddb['children']}),_0x108ddb['children']['delegate']('execute')['to'](this),_0x108ddb['focus']=function(){for(const _0x1da3ef of this['children'])if(_0x1da3ef instanceof _0x3f32a5&&_0x1da3ef['isOn'])return void _0x1da3ef['focus']();this['children']['first']['focus']();},_0x108ddb['focusTracker']=new et(),_0x108ddb['keystrokes']=new ot(),_0x108ddb['render'](),_0x108ddb['keystrokes']['listenTo'](_0x108ddb['element']),this['children']['add'](_0x108ddb),_0x108ddb;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2ff84c=this['_createStartIndexPropertyView'](),_0x59c618=[_0x2ff84c],_0x167bbd=new tt(this['locale'],_0x59c618);return _0x167bbd['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x167bbd['buttonView']['bind']('isEnabled')['toMany'](_0x59c618,'isEnabled',(..._0x6aface)=>_0x6aface['some'](_0x462819=>_0x462819)),_0x167bbd['buttonView']['on']('change:isEnabled',(_0x3e3f03,_0x5266c5,_0x3f3fe1)=>{_0x3f3fe1||(_0x167bbd['isCollapsed']=!0x0);}),this['children']['add'](_0x167bbd),[_0x2ff84c,_0x167bbd];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x249046=new st(this['locale'],it);return _0x249046['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x249046['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x249046['fieldView']['on']('input',()=>{const _0x176fa9=_0x249046['fieldView']['element'],_0x3c63fd=_0x176fa9['valueAsNumber'];Number['isNaN'](_0x3c63fd)?_0x249046['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x176fa9['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3c63fd}):_0x249046['errorText']=t(_0x3c63fd<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x249046;}}class j extends _0x25b2d6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1d7f79,_0x48fbaa];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32c43a}=this,{componentFactory:_0x599bd7}=_0x32c43a['ui'];_0x32c43a['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x599bd7['add']('footnotesStyle',function(_0x270cf7){return _0x17dd02=>{const {t:t}=_0x17dd02,_0x1e7a43=_0x270cf7['commands']['get']('footnotesStyle'),_0x339057=_0x2d99b4(_0x17dd02),{buttonView:_0x412365}=_0x339057;return _0x339057['class']='ck-footnotes-styles-dropdown',_0x339057['bind']('isEnabled')['to'](_0x1e7a43,'isEnabled'),_0x412365['set']({'label':t('Footnotes\x20style'),'icon':_0x4e8371,'tooltip':!0x0}),_0x339057['once']('change:isOpen',()=>{const _0x53d4ac=function({editor:_0x5e263b,dropdownView:_0x37a187}){const {t:t}=_0x5e263b['locale'],_0x53a900=t('Footnotes\x20definitions\x20styles'),_0x409ccb=function(_0x29de16){const t=_0x29de16['locale']['t'],_0x4aec23=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x28c861},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2ce242},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3cbc20},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x283542},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4aa383},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x47ef99}];return _0x4aec23['map'](function(_0x1c0149){const _0x445861=_0x1c0149['locale'];return({label:_0xbef050,icon:_0x40c34d,tooltip:_0x4aeb6f,style:_0x2990bd})=>{const _0x65edf6=_0x1c0149['commands']['get']('footnotesStyle'),_0x405abc=new _0x3f32a5(_0x445861);return _0x405abc['set']({'label':_0xbef050,'icon':_0x40c34d,'tooltip':_0x4aeb6f}),_0x405abc['bind']('isOn')['to'](_0x65edf6,'value',_0x8d9369=>_0x8d9369===_0x2990bd),_0x405abc['bind']('isEnabled')['to'](_0x65edf6,'isEnabled'),_0x405abc['on']('execute',()=>{_0x1c0149['execute']('footnotesStyle',{'value':_0x2990bd}),_0x1c0149['editing']['view']['focus']();}),_0x405abc;};}(_0x29de16));}(_0x5e263b),_0x1a404a=new H(_0x5e263b['locale'],{'styleGridAriaLabel':_0x53a900,'styleButtonViews':_0x409ccb});return _0x1a404a['delegate']('execute')['to'](_0x37a187),_0x1a404a['on']('footnotesListStart',(_0x52def4,_0x3baa4a)=>{_0x5e263b['execute']('footnotesStart',{'value':_0x3baa4a['startIndex']});}),_0x1a404a;}({'editor':_0x270cf7,'dropdownView':_0x339057});_0x339057['panelView']['children']['add'](_0x53d4ac);}),_0x339057;};}(_0x32c43a));}['afterInit'](){const {editor:_0x27ef17}=this,{t:t}=_0x27ef17['locale'],_0x104883=_0x27ef17['plugins']['get'](_0x48fbaa),{defaultPositions:_0x52fbb9}=_0x4b3ffd;_0x104883['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x27ef17['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1db0c2=>{let _0x4cd255=_0x1db0c2['getFirstPosition']()?.['parent'];return _0x4cd255?.['is']('$text')&&(_0x4cd255=_0x4cd255['parent']),_0x4cd255?.['is']('element')?_0x4cd255['findAncestor'](J):null;},'positions':[_0x52fbb9['southArrowNorth'],_0x52fbb9['southArrowNorthMiddleWest'],_0x52fbb9['southArrowNorthMiddleEast'],_0x52fbb9['southArrowNorthWest'],_0x52fbb9['southArrowNorthEast'],_0x52fbb9['northArrowSouth'],_0x52fbb9['northArrowSouthMiddleWest'],_0x52fbb9['northArrowSouthMiddleEast'],_0x52fbb9['northArrowSouthWest'],_0x52fbb9['northArrowSouthEast'],_0x52fbb9['viewportStickyNorth']]});}}class lt extends _0x25b2d6{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251105.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251105.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251105.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251105.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251105.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251105.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251105.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251105.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251105.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
|
-
|
|
23
|
+
const _0x6ac87=_0x542c;(function(_0x20a745,_0x3346bc){const _0x1dc821=_0x542c,_0x3d4b65=_0x20a745();while(!![]){try{const _0x2d28fe=-parseInt(_0x1dc821(0x121))/0x1+-parseInt(_0x1dc821(0x11f))/0x2+-parseInt(_0x1dc821(0x124))/0x3+parseInt(_0x1dc821(0x113))/0x4*(parseInt(_0x1dc821(0x109))/0x5)+parseInt(_0x1dc821(0x115))/0x6+-parseInt(_0x1dc821(0x114))/0x7*(-parseInt(_0x1dc821(0x128))/0x8)+parseInt(_0x1dc821(0x117))/0x9;if(_0x2d28fe===_0x3346bc)break;else _0x3d4b65['push'](_0x3d4b65['shift']());}catch(_0x5682a3){_0x3d4b65['push'](_0x3d4b65['shift']());}}}(_0xaa3d,0xf3ec3));function _0x542c(_0x274849,_0x3e2332){const _0xaa3d1a=_0xaa3d();return _0x542c=function(_0x542cff,_0x4fb8f2){_0x542cff=_0x542cff-0x107;let _0x114864=_0xaa3d1a[_0x542cff];return _0x114864;},_0x542c(_0x274849,_0x3e2332);}function _0xaa3d(){const _0x552101=['selection','createElement','3002840lAEGqx','length','410232tCStwl','get','editor','5446974XFihwb','_getPositionToInsertFootnote','insert-footnote-command-executed-with-invalid-id','_moveSelectionToFootnoteDefinition','235144ltGWIB','string','model','footnoteRef','test','15lsLcqX','execute','document','refresh','plugins','change','checkChild','insertObject','getFirstRange','getItems','400564VtMvVw','455icmGeJ','6968826KBzSXR','FootnotesEditing','12185802YFsofD','footnoteId','isEnabled','end','isObject','isBlock'];_0xaa3d=function(){return _0x552101;};return _0xaa3d();}import{logWarning as _0x43f807,uid as _0x37038e}from'ckeditor5/src/utils.js';import{Command as _0x1a33a4}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x1a33a4{[_0x6ac87(0x10c)](){const _0x51c9aa=_0x6ac87,_0x785574=this[_0x51c9aa(0x123)][_0x51c9aa(0x12a)][_0x51c9aa(0x10b)][_0x51c9aa(0x11d)],_0x459dbf=this[_0x51c9aa(0x125)](_0x785574);this[_0x51c9aa(0x119)]=!!_0x459dbf;}[_0x6ac87(0x10a)](_0x366677){const _0x94bea3=_0x6ac87,{editor:_0x46e1f5}=this,{model:_0xbb590a}=_0x46e1f5,{selection:_0x48e502}=_0xbb590a[_0x94bea3(0x10b)],_0x490951=this[_0x94bea3(0x125)](_0x48e502);if(!_0x490951)return;const _0x2a1033=_0x46e1f5[_0x94bea3(0x10d)][_0x94bea3(0x122)](_0x94bea3(0x116)),_0x47e880=_0x366677?.[_0x94bea3(0x118)]??_0x37038e();!function(_0x4d2f10){const _0x14e71c=_0x94bea3;return _0x14e71c(0x129)==typeof _0x4d2f10&&_0x4d2f10[_0x14e71c(0x120)]>0x0&&!/\s/[_0x14e71c(0x108)](_0x4d2f10)&&!/^\d/[_0x14e71c(0x108)](_0x4d2f10);}(_0x47e880)?_0x43f807(_0x94bea3(0x126)):(_0xbb590a[_0x94bea3(0x10e)](_0x18dce1=>{const _0x431be9=_0x94bea3,_0xb12931=_0x18dce1[_0x431be9(0x11e)](_0x431be9(0x107),{'footnoteId':_0x47e880});_0xbb590a[_0x431be9(0x110)](_0xb12931,_0x490951,null);}),_0x2a1033[_0x94bea3(0x127)](_0x47e880));}[_0x6ac87(0x125)](_0x467f5a){const _0x390a8f=_0x6ac87,{model:_0x54202b}=this[_0x390a8f(0x123)],{schema:_0x5b55cc}=_0x54202b,_0x29584b=_0x467f5a[_0x390a8f(0x111)]();for(const _0x482e28 of _0x29584b[_0x390a8f(0x112)]())if(_0x5b55cc[_0x390a8f(0x11c)](_0x482e28)||_0x5b55cc[_0x390a8f(0x11b)](_0x482e28))return null;const _0x2c244=_0x29584b[_0x390a8f(0x11a)];return _0x5b55cc[_0x390a8f(0x10f)](_0x2c244,_0x390a8f(0x107))?_0x2c244:null;}}
|
package/src/footnotes.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x49b718=_0x5b9f;function _0x17cc(){var _0x388576=['pluginName','667236ITMcen','isOfficialPlugin','30bwNtPK','5279589xJWvCk','18424616hsRNxZ','658305UKnlSM','Footnotes','2746314byqJZr','isPremiumPlugin','705341ZpHbLN','209082bAEHtZ','requires'];_0x17cc=function(){return _0x388576;};return _0x17cc();}(function(_0x4ef123,_0x3f2a08){var _0x4d8fd3=_0x5b9f,_0x115629=_0x4ef123();while(!![]){try{var _0x45738c=-parseInt(_0x4d8fd3(0x88))/0x1+-parseInt(_0x4d8fd3(0x8e))/0x2*(parseInt(_0x4d8fd3(0x89))/0x3)+parseInt(_0x4d8fd3(0x8c))/0x4+parseInt(_0x4d8fd3(0x91))/0x5+parseInt(_0x4d8fd3(0x86))/0x6+-parseInt(_0x4d8fd3(0x8f))/0x7+parseInt(_0x4d8fd3(0x90))/0x8;if(_0x45738c===_0x3f2a08)break;else _0x115629['push'](_0x115629['shift']());}catch(_0x54567a){_0x115629['push'](_0x115629['shift']());}}}(_0x17cc,0x87530));import{Plugin as _0x496dc0}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x3f4517}from'./footnotesediting.js';import{FootnotesClipboard as _0x1afd32}from'./footnotesclipboard.js';function _0x5b9f(_0x313c1b,_0x2df135){var _0x17ccd7=_0x17cc();return _0x5b9f=function(_0x5b9f58,_0x20fb8b){_0x5b9f58=_0x5b9f58-0x86;var _0x263b27=_0x17ccd7[_0x5b9f58];return _0x263b27;},_0x5b9f(_0x313c1b,_0x2df135);}import{FootnotesUI as _0x1a11e8}from'./footnotesui.js';export class Footnotes extends _0x496dc0{static get[_0x49b718(0x8b)](){var _0x1fc0f0=_0x49b718;return _0x1fc0f0(0x92);}static get[_0x49b718(0x8a)](){return[_0x3f4517,_0x1afd32,_0x1a11e8];}static get[_0x49b718(0x8d)](){return!0x0;}static get[_0x49b718(0x87)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c37ba=_0x3c54;(function(_0x5b3129,_0x193f23){const _0x548ad2=_0x3c54,_0x8ff3ab=_0x5b3129();while(!![]){try{const _0x27f5ad=-parseInt(_0x548ad2(0x1e3))/0x1+-parseInt(_0x548ad2(0x1c0))/0x2+-parseInt(_0x548ad2(0x1c1))/0x3*(-parseInt(_0x548ad2(0x1be))/0x4)+parseInt(_0x548ad2(0x1c5))/0x5+-parseInt(_0x548ad2(0x1f4))/0x6+-parseInt(_0x548ad2(0x1d0))/0x7+parseInt(_0x548ad2(0x1d4))/0x8*(parseInt(_0x548ad2(0x1bc))/0x9);if(_0x27f5ad===_0x193f23)break;else _0x8ff3ab['push'](_0x8ff3ab['shift']());}catch(_0x19d411){_0x8ff3ab['push'](_0x8ff3ab['shift']());}}}(_0x18f7,0x1df39));import{Plugin as _0x5a1bbe}from'ckeditor5/src/core.js';function _0x3c54(_0x477245,_0x22fd3c){const _0x18f745=_0x18f7();return _0x3c54=function(_0x3c54df,_0x4c79a2){_0x3c54df=_0x3c54df-0x1af;let _0x2981b7=_0x18f745[_0x3c54df];return _0x2981b7;},_0x3c54(_0x477245,_0x22fd3c);}import{uid as _0x3b3c66}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0x14f6b5}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x5805c3}from'./footnotesediting.js';import{FootnotesTracker as _0xd978c9}from'./footnotestracker.js';export class FootnotesClipboard extends _0x5a1bbe{static get[_0x4c37ba(0x1ea)](){const _0x8dee1f=_0x4c37ba;return _0x8dee1f(0x1dd);}static get[_0x4c37ba(0x1c6)](){return[_0x5805c3,_0x14f6b5];}static get[_0x4c37ba(0x1dc)](){return!0x0;}static get[_0x4c37ba(0x1d7)](){return!0x0;}[_0x4c37ba(0x1ee)](){const _0x3261ff=_0x4c37ba;this[_0x3261ff(0x1f3)]();}[_0x4c37ba(0x1f3)](){const _0x413296=_0x4c37ba;this[_0x413296(0x1cd)](),this[_0x413296(0x1f1)]();}[_0x4c37ba(0x1cd)](){const _0x33909f=_0x4c37ba,{editor:_0x4cabf0}=this,{plugins:_0x133cee,model:_0x3034d5}=_0x4cabf0,_0x8b1d2d=_0x133cee[_0x33909f(0x1c4)](_0x14f6b5),_0x4ea45e=_0x133cee[_0x33909f(0x1c4)](_0xd978c9);this[_0x33909f(0x1e4)](_0x8b1d2d,_0x33909f(0x1d8),(_0x4ce5fa,_0x1eb336)=>{const _0x4470c4=_0x33909f,_0x2cd53d=function(_0x38a3e4,_0x515965){const _0x3f9f80=_0x3c54,_0x286251=new Set();for(const {item:_0x26bb7f}of _0x38a3e4[_0x3f9f80(0x1e7)](_0x515965))_0x26bb7f['is'](_0x3f9f80(0x1bf),_0x3f9f80(0x1e1))&&_0x286251[_0x3f9f80(0x1d5)](_0x26bb7f[_0x3f9f80(0x1bb)](_0x3f9f80(0x1e6)));return Array[_0x3f9f80(0x1d9)](_0x286251);}(_0x3034d5,_0x1eb336[_0x4470c4(0x1e0)]);if(!_0x2cd53d[_0x4470c4(0x1ed)])return;const _0x229312=_0x4ea45e[_0x4470c4(0x1e2)](),_0x145d30=_0x2cd53d[_0x4470c4(0x1af)]((_0x131b6c,_0x525d90)=>{const _0x3d4b2a=_0x4470c4,_0x58f08e=_0x229312[_0x3d4b2a(0x1cb)](_0x16bde6=>_0x16bde6['id']===_0x525d90);if(_0x58f08e){const _0x38c7e0=_0x4cabf0[_0x3d4b2a(0x1ec)][_0x3d4b2a(0x1eb)](_0x58f08e[_0x3d4b2a(0x1df)],{'isClipboardPipeline':!0x0}),_0x5287a7=_0x4cabf0[_0x3d4b2a(0x1ec)][_0x3d4b2a(0x1b3)][_0x3d4b2a(0x1b7)](_0x38c7e0);_0x131b6c[_0x58f08e['id']]=_0x5287a7;}return _0x131b6c;},Object[_0x4470c4(0x1d3)](null));_0x1eb336[_0x4470c4(0x1c7)][_0x4470c4(0x1e5)](_0x4470c4(0x1de),JSON[_0x4470c4(0x1f2)](_0x145d30));});}[_0x4c37ba(0x1f1)](){const _0xed1694=_0x4c37ba,{editor:_0x2c5425}=this,{model:_0x5203c3,plugins:_0x4e1499}=_0x2c5425,{view:_0x1362a9}=_0x2c5425[_0xed1694(0x1c9)],_0x467dfa=_0x4e1499[_0xed1694(0x1c4)](_0x14f6b5),_0x4fcde0=_0x4e1499[_0xed1694(0x1c4)](_0xd978c9);let _0xaf37df=null;this[_0xed1694(0x1e4)](_0x1362a9[_0xed1694(0x1f0)],_0xed1694(0x1c3),(_0x319593,_0x4b451b)=>{const _0x34bfb9=_0xed1694,_0x14aece=_0x4b451b[_0x34bfb9(0x1c7)][_0x34bfb9(0x1c2)](_0x34bfb9(0x1de));_0xaf37df=_0x14aece?JSON[_0x34bfb9(0x1cf)](_0x14aece):null;}),this[_0xed1694(0x1e4)](_0x467dfa,_0xed1694(0x1b9),(_0x4324b7,_0x46c2f9)=>{const _0x5c7771=_0xed1694;if(!_0xaf37df)return;const _0x493222=_0x46c2f9[_0x5c7771(0x1c8)]===this[_0x5c7771(0x1d1)]['id'];_0x493222&&_0x5c7771(0x1b8)===_0x46c2f9[_0x5c7771(0x1b0)]||_0x5203c3[_0x5c7771(0x1b6)](_0x4e893f=>{const _0x1c55fc=_0x5c7771;!function(_0x443f0f,_0x390663){const _0x5457ec=_0x3c54,_0x196fa6=[];for(const {item:_0x53c677}of _0x443f0f[_0x5457ec(0x1e7)](_0x390663))_0x53c677['is'](_0x5457ec(0x1bf),_0x5457ec(0x1b2))&&_0x196fa6[_0x5457ec(0x1b1)](_0x53c677);for(const _0x8f4672 of _0x196fa6)_0x443f0f[_0x5457ec(0x1ba)](_0x8f4672);}(_0x4e893f,_0x46c2f9[_0x1c55fc(0x1e0)]);let _0x5db484=_0x4fcde0[_0x1c55fc(0x1cc)]();if(!_0x5db484){const _0x311288=_0x5203c3[_0x1c55fc(0x1f0)][_0x1c55fc(0x1e9)][_0x1c55fc(0x1b5)]()[_0x1c55fc(0x1ce)];_0x5db484=_0x4fcde0[_0x1c55fc(0x1b4)](_0x4e893f,_0x311288);}const _0x3ea619=function(_0x2b3134,_0x42809e,_0x55edbb){const _0x397389=_0x1c55fc,_0x8bb24=Object[_0x397389(0x1d3)](null);for(const {item:_0x3a2ddc}of _0x2b3134[_0x397389(0x1e7)](_0x42809e))if(_0x3a2ddc['is'](_0x397389(0x1bf),_0x397389(0x1e1))){const _0x123244=_0x3a2ddc[_0x397389(0x1bb)](_0x397389(0x1e6));if(!_0x55edbb(_0x123244))continue;_0x8bb24[_0x123244]||(_0x8bb24[_0x123244]=_0x3b3c66()),_0x2b3134[_0x397389(0x1bd)](_0x397389(0x1e6),_0x8bb24[_0x123244],_0x3a2ddc);}return _0x8bb24;}(_0x4e893f,_0x46c2f9[_0x1c55fc(0x1e0)],_0x3e89a1=>!_0x493222||null!==_0x4fcde0[_0x1c55fc(0x1f5)](_0x3e89a1));for(const [_0x5ed9c2,_0x59fdea]of Object[_0x1c55fc(0x1ca)](_0xaf37df)){const _0x585bd0=_0x3ea619[_0x5ed9c2]||_0x5ed9c2,_0x5b37b4=_0x4e893f[_0x1c55fc(0x1da)](_0x1c55fc(0x1e8),{'footnoteId':_0x585bd0}),_0x22cbf9=_0x2c5425[_0x1c55fc(0x1ec)][_0x1c55fc(0x1b3)][_0x1c55fc(0x1eb)](_0x59fdea),_0x1b70a7=_0x2c5425[_0x1c55fc(0x1ec)][_0x1c55fc(0x1d2)](_0x22cbf9,_0x5b37b4);_0x4e893f[_0x1c55fc(0x1d6)](_0x1b70a7,_0x5b37b4),_0x4e893f[_0x1c55fc(0x1db)](_0x5b37b4,_0x5db484,_0x1c55fc(0x1ef));}_0xaf37df=null;});});}}function _0x18f7(){const _0x272123=['find','getFootnotesDefinitionsObjectElement','_handleCopyFootnotesDefinitions','root','parse','634690BVKlVO','editor','toModel','create','88696OTyagl','add','append','isPremiumPlugin','outputTransformation','from','createElement','insert','isOfficialPlugin','FootnotesClipboard','application/ckeditor5-footnotes','definition','content','footnoteRef','getFootnotes','51176fiKtLg','listenTo','setData','footnoteId','createRangeIn','footnoteDefinition','selection','pluginName','toView','data','length','init','end','document','_handlePasteFootnotesDefinitions','stringify','_defineClipboardIntegration','950004UprWhp','getFootnote','reduce','method','push','footnotesDefinitions','htmlProcessor','_insertEmptyFootnotesDefinitionsContainer','getFirstRange','change','toData','drop','contentInsertion','remove','getAttribute','441mrfZrE','setAttribute','20dlcjzg','element','297556nWStMt','15321KouRtr','getData','clipboardInput','get','14205dJimQO','requires','dataTransfer','sourceEditorId','editing','entries'];_0x18f7=function(){return _0x272123;};return _0x18f7();}
|