@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251030.0 → 0.0.0-nightly-20251031.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 _0x5a4266,Command as _0x43caa9}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4c01dd,isWidget as _0x154edf,toWidgetEditable as _0x498796,WidgetToolbarRepository as _0x6c205}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x4ead23,logWarning as _0x5b511c,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x275c97,ClickObserver as _0x1889c7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xb323c9}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x51d454,ButtonView as _0x253836,View as _0xf5b978,ViewCollection as _0x2b99b2,FocusCycler as _0x3cadfa,addKeyboardHandlingForGrid as _0x1023bc,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x3e82de,BalloonPanelView as _0x3db375,createDropdown as _0x3a1861}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4503ac,IconListStyleDecimal as _0x2df69b,IconListStyleDecimalLeadingZero as _0x4459ae,IconListStyleLowerRoman as _0x965475,IconListStyleUpperRoman as _0x29a9a7,IconListStyleLowerLatin as _0x1129b8,IconListStyleUpperLatin as _0x17a7e5}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x583047,_0x5071fd){this['_model']=_0x583047,this['_elementName']=_0x5071fd['elementName'],this['_getElementKey']=_0x5071fd['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x384f12){const _0x12f91e=new Set(),_0x1334c1=new Map();for(const _0x959851 of _0x384f12){if('insert'===_0x959851['type']&&'$text'!==_0x959851['name']&&_0x959851['position']['nodeAfter']){const _0x3d36ce=this['_model']['createRangeOn'](_0x959851['position']['nodeAfter']);for(const _0x206337 of _0x3d36ce['getItems']()){if(!_0x206337['is']('element',this['_elementName']))continue;const _0x28b58c=this['_getElementKey'](_0x206337);_0x1334c1['has'](_0x28b58c)||_0x1334c1['set'](_0x28b58c,[]),_0x1334c1['get'](_0x28b58c)['push'](_0x206337);}}if('remove'===_0x959851['type']&&_0x959851['name']===this['_elementName']){const _0x1f52c0=this['_getElementKey']({'getAttribute':_0x3149df=>_0x959851['attributes']['get'](_0x3149df)});_0x12f91e['add'](_0x1f52c0);}}for(const [_0x40439d,_0x3ac8fe]of this['_trackedElements'])'$graveyard'===_0x3ac8fe['root']['rootName']&&_0x12f91e['add'](_0x40439d);for(const _0x421eca of _0x12f91e)this['_trackedElements']['delete'](_0x421eca);for(const [_0x4606a7,_0x3d7316]of _0x1334c1)this['_trackedElements']['set'](_0x4606a7,_0x3d7316[_0x3d7316['length']-0x1]);const _0x22d473=new Set();for(const [_0x31e956,_0x42bcc0]of _0x1334c1)_0x12f91e['has'](_0x31e956)&&(_0x22d473['add'](_0x42bcc0[0x0]),_0x42bcc0['length']>0x1?_0x1334c1['set'](_0x31e956,_0x42bcc0['slice'](0x1)):_0x1334c1['delete'](_0x31e956),_0x12f91e['delete'](_0x31e956));return{'removed':Array['from'](_0x12f91e),'inserted':Array['from'](_0x1334c1['values']())['flat'](),'moved':Array['from'](_0x22d473)};}}class c extends _0x5a4266{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43db6d){super(_0x43db6d),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x53b5af=>_0x53b5af['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x332028=>_0x332028['getAttribute']('footnoteId')});}['init'](){const {editor:_0x421cea}=this,{model:_0x570cf6,data:_0x1fe483}=_0x421cea;_0x570cf6['document']['registerPostFixer'](_0x27cb21=>{const _0xd41c6e=_0x570cf6['document']['differ']['getChanges']();let _0x14914a=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x27cb21,_0xd41c6e)&&(_0x14914a=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x27cb21,_0xd41c6e)&&(_0x14914a=!0x0),this['_handleFootnoteReferencesChanges'](_0x27cb21,_0xd41c6e)&&(_0x14914a=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x27cb21)&&(_0x14914a=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x27cb21)&&(_0x14914a=!0x0),this['_sortFootnoteDefinitions'](_0x27cb21)&&(_0x14914a=!0x0),_0x14914a;}),this['listenTo'](_0x570cf6['document'],'change:data',()=>{_0x570cf6['enqueueChange']({'isUndoable':!0x1},_0x540538=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x540538);});},{'priority':'low'}),this['listenTo'](_0x1fe483,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x280c30){return this['_footnotes']['find'](_0x4bf09a=>_0x4bf09a['id']===_0x280c30)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1392a6){this['_footnoteFormatter']=_0x1392a6;}['_updateFootnotesCounters'](_0x26d816,_0xbc8339=0x0){let _0x4f4764=!0x1;for(let _0x543a42=_0xbc8339;_0x543a42<this['_footnotes']['length'];_0x543a42++)this['_updateFootnoteRefCounter'](_0x26d816,_0x543a42)&&(_0x4f4764=!0x0);return _0x4f4764;}['_insertEmptyFootnotesDefinitionsContainer'](_0x31dcce,_0x47a009){const _0xc3c872=_0x31dcce['createElement']('footnotesDefinitions',{});return _0x31dcce['append'](_0xc3c872,_0x47a009),this['_footnotesDefinitions']=_0xc3c872,_0xc3c872;}['_ensureFootnotesDefinitionsContainerExists'](_0x409431){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x111beb=this['_footnotes'][0x0]['reference']['root'],_0x1e37df=this['_insertEmptyFootnotesDefinitionsContainer'](_0x409431,_0x111beb);for(const _0x300b5a of this['_footnotes'])_0x300b5a['definition']['parent']||_0x409431['insert'](_0x300b5a['definition'],_0x1e37df,'end');this['_updateFootnotesCounters'](_0x409431);}['_handleFootnotesDefinitionsObjectChanges'](_0x296274,_0x4e3708){let _0x39ee3e=!0x1;const {inserted:_0x283150,removed:_0x1d478,moved:_0x70c9a5}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4e3708);if(_0x70c9a5['length']&&(this['_footnotesDefinitions']=_0x70c9a5[0x0]),_0x283150['length']){if(_0x283150['length']>0x1||this['_footnotesDefinitions']&&_0x283150['some'](_0x35f943=>_0x35f943!==this['_footnotesDefinitions'])){const _0x2a1b75=_0x296274['createElement']('footnotesDefinitions',{}),_0x27f453=[];this['_footnotesDefinitions']&&_0x27f453['push'](this['_footnotesDefinitions']),_0x27f453['push'](..._0x283150),_0x296274['insert'](_0x2a1b75,_0x27f453[0x0],'before');for(const _0x4a9132 of _0x27f453)_0x296274['move'](_0x296274['createRangeIn'](_0x4a9132),_0x296274['createPositionAt'](_0x2a1b75,'end')),_0x296274['remove'](_0x4a9132);this['_footnotesDefinitions']=_0x2a1b75,this['_updateFootnotesCounters'](_0x296274),_0x39ee3e=!0x0;}else this['_footnotesDefinitions']=_0x283150[0x0];}if(_0x1d478['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x58f5a5 of this['_footnotes'])_0x296274['remove'](_0x58f5a5['reference']),_0x39ee3e=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x39ee3e;}['_handleFootnoteDefinitionsChanges'](_0x49a29e,_0x2628d5){let _0x364897=!0x1;const _0x4be354=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x6c5dc,moved:_0x58102d}=this['_footnoteDefsTracker']['getChanges'](_0x2628d5);for(const _0x196de5 of[..._0x58102d,..._0x6c5dc]){const _0x4576e3=_0x196de5['getAttribute']('footnoteId'),_0x17632a=this['getFootnote'](_0x4576e3);_0x17632a&&(_0x17632a['definition']=_0x196de5),_(_0x49a29e,_0x4be354,_0x196de5)&&(_0x364897=!0x0);}return _0x364897;}['_handleFootnoteReferencesChanges'](_0x24cd79,_0x55a0b5){let _0x2ea682=!0x1;const {removed:_0x367679,inserted:_0x44e81d,moved:_0x19db34}=this['_footnoteRefsTracker']['getChanges'](_0x55a0b5);for(const _0x557db2 of _0x367679)this['_handleRemoveFootnoteReferenceById'](_0x24cd79,_0x557db2)&&(_0x2ea682=!0x0);for(const _0x5a32d4 of _0x44e81d)this['_handleInsertedFootnoteReference'](_0x24cd79,_0x5a32d4)&&(_0x2ea682=!0x0);for(const _0x111e3c of _0x19db34)this['_handleMovedFootnoteReference'](_0x24cd79,_0x111e3c)&&(_0x2ea682=!0x0);return _0x2ea682;}['_handleFootnotesDefinitionsObjectSync'](_0x2358c6){if(!this['_footnotesDefinitions'])return!0x1;let _0x4e9dfd=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x317001=[];for(const _0x1a364 of this['_footnotesDefinitions']['getChildren']()){const _0x37dfc7=_0x1a364['getAttribute']('footnoteId');this['getFootnote'](_0x37dfc7)||(_0x317001['unshift'](_0x1a364),_0x4e9dfd=!0x0);}for(const _0x57e7a6 of _0x317001)_0x2358c6['remove'](_0x57e7a6);}const _0x3abd59=new Set(),_0x12128a=[];for(const _0x1aaa72 of this['_footnotesDefinitions']['getChildren']()){const _0x3c519c=_0x1aaa72['getAttribute']('footnoteId');_0x3abd59['has'](_0x3c519c)?(_0x12128a['unshift'](_0x1aaa72),_0x4e9dfd=!0x0):_0x3abd59['add'](_0x3c519c);}for(const _0x29df84 of _0x12128a)_0x2358c6['remove'](_0x29df84);return this['_footnotesDefinitions']['childCount']||(_0x2358c6['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4e9dfd=!0x0),_0x4e9dfd;}['_handleInsertedFootnoteReference'](_0x407c4c,_0x4a7fc9){if(this['_footnotes']['find'](_0x65d1d4=>_0x65d1d4['reference']===_0x4a7fc9))return!0x1;let _0x419581=!0x1;const _0x430180=_0x4a7fc9['getAttribute']('footnoteId'),_0x1a9c77=this['_footnotes']['findIndex'](_0x56cc74=>_0x56cc74['id']===_0x430180);-0x1!==_0x1a9c77&&(_0x407c4c['remove'](this['_footnotes'][_0x1a9c77]['reference']),this['_footnotes']['splice'](_0x1a9c77,0x1),_0x419581=!0x0);let _0x11bf7c=this['_footnotesDefinitions']?function(_0x501b6f,_0x3a3a53){for(const _0x494cf1 of _0x501b6f['getChildren']())if(_0x494cf1['getAttribute']('footnoteId')===_0x3a3a53)return _0x494cf1;return null;}(this['_footnotesDefinitions'],_0x430180):null;_0x11bf7c||(_0x11bf7c=_0x407c4c['createElement']('footnoteDefinition',{'footnoteId':_0x430180}),this['_footnotesDefinitions']&&(_0x407c4c['insert'](_0x11bf7c,this['_footnotesDefinitions'],'end'),_0x419581=!0x0));const _0x5eda4c={'id':_0x430180,'reference':_0x4a7fc9,'definition':_0x11bf7c},_0x1e04ee=I(this['editor']['model'],this['_footnotes'],_0x4a7fc9);this['_footnotes']['splice'](_0x1e04ee,0x0,_0x5eda4c);let _0x567344=_0x1e04ee;return-0x1!==_0x1a9c77&&(_0x567344=Math['min'](_0x1e04ee,_0x1a9c77)),this['_updateFootnotesCounters'](_0x407c4c,_0x567344)&&(_0x419581=!0x0),_0x419581;}['_handleRemoveFootnoteReferenceById'](_0x3dbe7e,_0x5be729){const _0x2b5be2=this['_footnotes']['findIndex'](_0x4abbff=>_0x4abbff['id']===_0x5be729);if(-0x1===_0x2b5be2)return!0x1;let _0x4019dc=!0x1;const _0x45f854=this['_footnotes'][_0x2b5be2];return'$graveyard'!==_0x45f854['definition']['root']['rootName']&&(_0x3dbe7e['remove'](_0x45f854['definition']),_0x4019dc=!0x0),this['_footnotes']['splice'](_0x2b5be2,0x1),this['_updateFootnotesCounters'](_0x3dbe7e,_0x2b5be2)&&(_0x4019dc=!0x0),_0x4019dc;}['_handleMovedFootnoteReference'](_0xba7843,_0x37e6de){const _0x5024c1=_0x37e6de['getAttribute']('footnoteId'),_0x1189a0=this['_footnotes']['findIndex'](_0x490e92=>_0x490e92['id']===_0x5024c1),_0x907193=this['_footnotes'][_0x1189a0];let _0x32cb8e=!0x1;_0x907193['reference']=_0x37e6de,this['_footnotes']['splice'](_0x1189a0,0x1);const _0xbf40a1=I(this['editor']['model'],this['_footnotes'],_0x37e6de);return this['_footnotes']['splice'](_0xbf40a1,0x0,_0x907193),this['_updateFootnotesCounters'](_0xba7843,Math['min'](_0x1189a0,_0xbf40a1))&&(_0x32cb8e=!0x0),_0x32cb8e;}['_updateFootnoteRefCounter'](_0x84996,_0xa29573){if(!this['_footnotesDefinitions'])return!0x1;const _0x21c948=this['_footnotes'][_0xa29573];let _0x445819;return _0x445819=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x21c948,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xa29573+0x1}):String(_0xa29573+0x1),_0x21c948['reference']['getAttribute']('footnoteCounter')!=_0x445819&&(_0x84996['setAttribute']('footnoteCounter',_0x445819,_0x21c948['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x1e19c2){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x398f4e,_0x10757f){if(_0x398f4e['length']!==_0x10757f['length'])return!0x1;for(let _0x41e041=0x0;_0x41e041<_0x398f4e['length'];_0x41e041++)if(_0x398f4e[_0x41e041]!==_0x10757f[_0x41e041])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1fb7a1=>_0x1fb7a1['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x226103=>_0x226103['getAttribute']('footnoteId'))))return!0x1;let _0x161284=!0x1;for(let _0x32db35=0x0;_0x32db35<this['_footnotes']['length'];_0x32db35++){const _0x461616=this['_footnotes'][_0x32db35],_0x51a270=_0x1e19c2['createPositionBefore'](_0x461616['definition']),_0x3f4741=_0x1e19c2['createPositionAt'](this['_footnotesDefinitions'],_0x32db35);_0x51a270['isEqual'](_0x3f4741)||(_0x1e19c2['move'](_0x1e19c2['createRangeOn'](_0x461616['definition']),_0x3f4741),_0x161284=!0x0);}return _0x161284;}['_ensureFootnotesReferencesHaveProperOrder'](_0x25ea3e){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5ee0e0}=this['editor'];let _0x5d6d74=!0x1;for(let _0xa98194=0x0;_0xa98194<this['_footnotes']['length']-0x1;_0xa98194++){const _0x465769=this['_footnotes'][_0xa98194],_0x561ebb=this['_footnotes'][_0xa98194+0x1],_0x4e9709=_0x5ee0e0['createPositionBefore'](_0x465769['reference']),_0x1a4880=_0x5ee0e0['createPositionBefore'](_0x561ebb['reference']);'after'===_0x4e9709['compareWith'](_0x1a4880)&&(this['_handleMovedFootnoteReference'](_0x25ea3e,_0x465769['reference']),_0xa98194=-0x1,_0x5d6d74=!0x0);}return _0x5d6d74;}}function _(_0x38f8ea,_0x2c66e9,_0x976790){if(_0x976790['childCount'])return!0x1;const _0x3b7a13=_0x2c66e9?'paragraph':'footnoteInlineContent';return _0x38f8ea['insert'](_0x38f8ea['createElement'](_0x3b7a13),_0x976790),!0x0;}function I(_0x2f8fb9,_0x38cf82,_0x3225b9){if(0x0===_0x38cf82['length'])return 0x0;const _0x314a2c=_0x2f8fb9['createPositionBefore'](_0x3225b9);for(let _0x150806=0x0;_0x150806<_0x38cf82['length'];_0x150806++){const _0x33732a=_0x38cf82[_0x150806],_0x11b178=_0x2f8fb9['createPositionBefore'](_0x33732a['reference']);if('before'===_0x314a2c['compareWith'](_0x11b178))return _0x150806;}const _0x5fcff9=_0x3225b9['root'];let _0x327f86=-0x1;for(let _0x4d5ac8=_0x38cf82['length']-0x1;_0x4d5ac8>=0x0;_0x4d5ac8--)if(_0x38cf82[_0x4d5ac8]['reference']['root']===_0x5fcff9){_0x327f86=_0x4d5ac8;break;}if(-0x1!==_0x327f86)return _0x327f86+0x1;const _0x2ff127=_0x2f8fb9['document']['getRootNames'](),_0x34e0ba=_0x2ff127['indexOf'](_0x5fcff9['rootName']),_0x1c5ab4=_0x2ff127[_0x34e0ba+0x1];if(_0x1c5ab4){for(let _0x32bf6b=0x0;_0x32bf6b<_0x38cf82['length'];_0x32bf6b++)if(_0x38cf82[_0x32bf6b]['reference']['root']['rootName']===_0x1c5ab4)return _0x32bf6b;}return _0x38cf82['length'];}class w extends _0x43caa9{['refresh'](){const _0x5531ea=this['editor']['model']['document']['selection'],_0x473000=this['_getPositionToInsertFootnote'](_0x5531ea);this['isEnabled']=!!_0x473000;}['execute'](_0x4e288d){const {editor:_0x4f7aa8}=this,{model:_0x3e347d}=_0x4f7aa8,{selection:_0x2517c0}=_0x3e347d['document'],_0x29770b=this['_getPositionToInsertFootnote'](_0x2517c0);if(!_0x29770b)return;const _0x25b582=_0x4f7aa8['plugins']['get']('FootnotesEditing'),_0x176244=_0x4e288d?.['footnoteId']??_0x4ead23();!function(_0x48c2f1){return'string'==typeof _0x48c2f1&&_0x48c2f1['length']>0x0&&!/\s/['test'](_0x48c2f1)&&!/^\d/['test'](_0x48c2f1);}(_0x176244)?_0x5b511c('insert-footnote-command-executed-with-invalid-id'):(_0x3e347d['change'](_0x40b072=>{const _0x332a34=_0x40b072['createElement']('footnoteRef',{'footnoteId':_0x176244});_0x3e347d['insertObject'](_0x332a34,_0x29770b,null);}),_0x25b582['_moveSelectionToFootnoteDefinition'](_0x176244));}['_getPositionToInsertFootnote'](_0xaadb40){const {model:_0x384443}=this['editor'],{schema:_0x470dd8}=_0x384443,_0x497f0f=_0xaadb40['getFirstRange']();for(const _0x2964d2 of _0x497f0f['getItems']())if(_0x470dd8['isBlock'](_0x2964d2)||_0x470dd8['isObject'](_0x2964d2))return null;const _0x3b2e4a=_0x497f0f['end'];return _0x470dd8['checkChild'](_0x3b2e4a,'footnoteRef')?_0x3b2e4a:null;}}class r extends _0x5a4266{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x844cbd}=this;_0x844cbd['config']['define']('footnotes.multiBlock',!0x0),_0x844cbd['commands']['add']('insertFootnote',new w(_0x844cbd)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3d8c88){const _0x255fe2=_0x4f8f81([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]),_0x395930=0x47a28506,_0x3e007c=0x47a5f2ae^_0x395930,_0x167e35=window[_0x4f8f81([0x44,0x61,0x74,0x65])][_0x4f8f81([0x6e,0x6f,0x77])](),_0x544b11=_0x3d8c88[_0x4f8f81([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x155572=new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebd89=>{_0x544b11[_0x4f8f81([0x6f,0x6e,0x63,0x65])](_0x4f8f81([0x72,0x65,0x61,0x64,0x79]),_0x2ebd89);}),_0x1916d3={[_0x4f8f81([0x6b,0x74,0x79])]:_0x4f8f81([0x45,0x43]),[_0x4f8f81([0x75,0x73,0x65])]:_0x4f8f81([0x73,0x69,0x67]),[_0x4f8f81([0x63,0x72,0x76])]:_0x4f8f81([0x50,0x2d,0x32,0x35,0x36]),[_0x4f8f81([0x78])]:_0x4f8f81([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]),[_0x4f8f81([0x79])]:_0x4f8f81([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]),[_0x4f8f81([0x61,0x6c,0x67])]:_0x4f8f81([0x45,0x53,0x32,0x35,0x36])},_0x54ae50=_0x544b11[_0x4f8f81([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f8f81([0x67,0x65,0x74])](_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58af49(){let _0x34d09b,_0x451043=null,_0x561618=null;try{if(_0x54ae50==_0x4f8f81([0x47,0x50,0x4c]))return _0x4f8f81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34d09b=_0x5df630(),!_0x34d09b)return _0x4f8f81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34d09b[_0x4f8f81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x561618=_0x12d823(_0x34d09b[_0x4f8f81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34d09b[_0x4f8f81([0x6a,0x74,0x69])])),await _0x9a6f20()?_0x261661()?_0x52c624()?_0x4f8f81([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19c2e0()?(_0x34d09b[_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f8f81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x451043=_0x4230de(_0x4f8f81([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34d09b[_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f8f81([0x74,0x72,0x69,0x61,0x6c])&&(_0x451043=_0x4230de(_0x4f8f81([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x355041()):_0x4f8f81([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f8f81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f8f81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f8f81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52c624(){const _0x2046d4=[_0x4f8f81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f8f81([0x74,0x72,0x69,0x61,0x6c])][_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34d09b[_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x167e35/0x3e8:0xe10*_0x3e007c;return _0x34d09b[_0x4f8f81([0x65,0x78,0x70])]<_0x2046d4;}function _0x261661(){const _0x35d30a=_0x34d09b[_0x4f8f81([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35d30a&&(!!_0x35d30a[_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8f81([0x2a]))||!!_0x35d30a[_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8f81([0x46,0x4f,0x4f])));}function _0x19c2e0(){const _0x4ed57e=_0x34d09b[_0x4f8f81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ed57e||0x0==_0x4ed57e[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52d890}=new URL(window[_0x4f8f81([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ed57e[_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d890))return!0x0;const _0x5c923b=_0x52d890[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])](_0x4f8f81([0x2e]));return _0x4ed57e[_0x4f8f81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37caa1=>_0x37caa1[_0x4f8f81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8f81([0x2a])))[_0x4f8f81([0x6d,0x61,0x70])](_0x32e236=>_0x32e236[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])](_0x4f8f81([0x2e])))[_0x4f8f81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39f680=>_0x39f680[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c923b[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f8f81([0x6d,0x61,0x70])](_0x1b7e43=>Array(_0x5c923b[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b7e43[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f8f81([0x66,0x69,0x6c,0x6c])](_0x1b7e43[0x0]===_0x4f8f81([0x2a])?_0x4f8f81([0x2a]):'')[_0x4f8f81([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b7e43))[_0x4f8f81([0x73,0x6f,0x6d,0x65])](_0x351936=>_0x5c923b[_0x4f8f81([0x65,0x76,0x65,0x72,0x79])]((_0x471274,_0xcfb331)=>_0x351936[_0xcfb331]===_0x471274||_0x351936[_0xcfb331]===_0x4f8f81([0x2a])));}function _0x355041(){return _0x451043&&_0x561618?new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x159624,_0x500c92)=>{_0x451043[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x159624,_0x500c92),_0x561618[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x50d844=>{_0x50d844!=_0x4f8f81([0x56,0x61,0x6c,0x69,0x64])&&_0x159624(_0x50d844);},_0x500c92);}):_0x451043||_0x561618||_0x4f8f81([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12d823(_0x142c26,_0x134f50){return new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b9c4c=>{if(_0x3e2e45())return _0x2b9c4c(_0x4f8f81([0x56,0x61,0x6c,0x69,0x64]));_0x3495f9(),_0x544b11[_0x4f8f81([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f8f81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x483b9e=!0x1;const _0x224d81=_0x4ead23();function _0xb44d4c(_0x41d4a5){return!!_0x41d4a5&&(typeof _0x41d4a5===_0x4f8f81([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41d4a5===_0x4f8f81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41d4a5[_0x4f8f81([0x74,0x68,0x65,0x6e])]===_0x4f8f81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41d4a5[_0x4f8f81([0x63,0x61,0x74,0x63,0x68])]===_0x4f8f81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b4e30(_0x5701e8){_0x2dc2ad(_0x5701e8)[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x2c081e=>{if(!_0x2c081e||_0x2c081e[_0x4f8f81([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f8f81([0x6f,0x6b]))return _0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10dba5(_0x5902a9(_0x224d81+_0x134f50))!=_0x2c081e[_0x4f8f81([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f8f81([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x264207=>(_0x29b00e(),_0x264207),()=>{const _0xa490c9=_0x1311fd();return null==_0xa490c9?(_0x29b00e(),_0x4f8f81([0x56,0x61,0x6c,0x69,0x64])):_0x4f8f81(_0x167e35-_0xa490c9>(0x63ae0106^_0x395930)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x2b9c4c)[_0x4f8f81([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b9c4c(_0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55e0f8=0x47946b86^_0x395930;function _0x29b00e(){const _0x58121e=_0x4f8f81([0x6c,0x6c,0x63,0x74,0x2d])+_0x10dba5(_0x5902a9(_0x142c26)),_0x548aa1=_0x4874d6(_0x10dba5(window[_0x4f8f81([0x4d,0x61,0x74,0x68])][_0x4f8f81([0x63,0x65,0x69,0x6c])](_0x167e35/_0x55e0f8)));window[_0x4f8f81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f8f81([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58121e,_0x548aa1);}function _0x1311fd(){const _0xd75436=_0x4f8f81([0x6c,0x6c,0x63,0x74,0x2d])+_0x10dba5(_0x5902a9(_0x142c26)),_0x58a014=window[_0x4f8f81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f8f81([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd75436);return _0x58a014?window[_0x4f8f81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4874d6(_0x58a014),0x10)*_0x55e0f8:null;}function _0x2dc2ad(_0x5ddf4d){return new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46daac,_0x26d494)=>{_0x5ddf4d[_0x4f8f81([0x74,0x68,0x65,0x6e])](_0x46daac,_0x26d494),window[_0x4f8f81([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26d494,0x47a351c6^_0x395930);});}}_0x544b11[_0x4f8f81([0x6f,0x6e])](_0x4f8f81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2438eb,_0x50a165)=>{if(_0x50a165[0x0]!=_0x142c26)return _0x2b9c4c(_0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50a165[0x1]={..._0x50a165[0x1],[_0x4f8f81([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x224d81};},{[_0x4f8f81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f8f81([0x68,0x69,0x67,0x68])}),_0x544b11[_0x4f8f81([0x6f,0x6e])](_0x4f8f81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c6d3a=>{_0xb44d4c(_0x4c6d3a[_0x4f8f81([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x483b9e=!0x0,_0x4b4e30(_0x4c6d3a[_0x4f8f81([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f8f81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f8f81([0x6c,0x6f,0x77])}),_0x155572[_0x4f8f81([0x74,0x68,0x65,0x6e])](()=>{_0x483b9e||_0x2b9c4c(_0x4f8f81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e2e45(){return _0x544b11[_0x4f8f81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f8f81([0x76,0x69,0x65,0x77])][_0x4f8f81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f8f81([0x61,0x75,0x74,0x6f]);}function _0x3495f9(){_0x544b11[_0x4f8f81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f8f81([0x76,0x69,0x65,0x77])][_0x4f8f81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f8f81([0x61,0x75,0x74,0x6f]);}}function _0x4230de(_0x2f5860){const _0x41c5bb=[new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c930=>setTimeout(_0x32c930,0x47abbbca^_0x395930)),_0x155572[_0x4f8f81([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c255c=>{let _0x150878=0x0;_0x544b11[_0x4f8f81([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f8f81([0x6f,0x6e])](_0x4f8f81([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54877a,_0xaee65)=>{_0xaee65[0x0][_0x4f8f81([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x150878++,_0x150878==(0x47a284fe^_0x395930)&&(_0x4c255c(),_0x54877a[_0x4f8f81([0x6f,0x66,0x66])]());});}))];return window[_0x4f8f81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f8f81([0x72,0x61,0x63,0x65])](_0x41c5bb)[_0x4f8f81([0x74,0x68,0x65,0x6e])](()=>_0x2f5860);}async function _0x406cc2(){await _0x155572,_0x544b11[_0x4f8f81([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f8f81([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43caa6,_0x544b11[_0x4f8f81([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f8f81([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43caa6,_0x544b11[_0x4f8f81([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f8f81([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ae5e5(_0x3912d9){const _0x3cd52c=_0x358630();_0x544b11[_0x3cd52c]=_0x4f8f81([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3912d9,_0x3912d9!=_0x4f8f81([0x56,0x61,0x6c,0x69,0x64])&&_0x406cc2();}function _0x358630(){const _0x494979=window[_0x4f8f81([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f8f81([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f8f81([0x6e,0x6f,0x77])]())[_0x4f8f81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f8f81([0x2e]),'');let _0x23e994=_0x4f8f81([0x75]);for(let _0x1be876=0x0;_0x1be876<_0x494979[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1be876+=0x2){let _0x284240=window[_0x4f8f81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x494979[_0x4f8f81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1be876,_0x1be876+0x2));_0x284240>=_0x255fe2[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x284240-=_0x255fe2[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23e994+=_0x255fe2[_0x284240];}return _0x23e994;}function _0x5df630(){const _0xd56ce1=_0x54ae50[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])](_0x4f8f81([0x2e]));if(0x3!=_0xd56ce1[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4512bc(_0xd56ce1[0x1]);function _0x4512bc(_0x4ffc2c){const _0x5240c7=_0x52b393(_0x4ffc2c);return _0x5240c7&&_0x1729a9()?_0x5240c7:null;function _0x1729a9(){const _0x5d1b97=_0x5240c7[_0x4f8f81([0x6a,0x74,0x69])],_0x420258=window[_0x4f8f81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1b97[_0x4f8f81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d1b97[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1984d2={..._0x5240c7,[_0x4f8f81([0x6a,0x74,0x69])]:_0x5d1b97[_0x4f8f81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d1b97[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1984d2[_0x4f8f81([0x76,0x63])],_0x5902a9(_0x1984d2)==_0x420258;}}}async function _0x9a6f20(){let _0x3558ed=!0x0;try{const _0x91f9f5=_0x54ae50[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])](_0x4f8f81([0x2e])),[_0x1967b5,_0x55ce5f,_0xeadef4]=_0x91f9f5;return _0x2d7a42(_0x1967b5),await _0xc6f76c(_0x1967b5,_0x55ce5f,_0xeadef4),_0x3558ed;}catch{return!0x1;}function _0x2d7a42(_0x304986){const _0x4f1334=_0x52b393(_0x304986);_0x4f1334&&_0x4f1334[_0x4f8f81([0x61,0x6c,0x67])]==_0x4f8f81([0x45,0x53,0x32,0x35,0x36])||(_0x3558ed=!0x1);}async function _0xc6f76c(_0x546a4c,_0x31b46f,_0x325e16){const _0x5db4ca=window[_0x4f8f81([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f8f81([0x66,0x72,0x6f,0x6d])](_0x309ad2(_0x325e16),_0x3ab479=>_0x3ab479[_0x4f8f81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b14c4=new window[(_0x4f8f81([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f8f81([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x546a4c+_0x4f8f81([0x2e])+_0x31b46f),_0x416a36=window[_0x4f8f81([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f8f81([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x416a36)return;const _0x1d381f=await _0x416a36[_0x4f8f81([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f8f81([0x6a,0x77,0x6b]),_0x1916d3,{[_0x4f8f81([0x6e,0x61,0x6d,0x65])]:_0x4f8f81([0x45,0x43,0x44,0x53,0x41]),[_0x4f8f81([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f8f81([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f8f81([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x416a36[_0x4f8f81([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f8f81([0x6e,0x61,0x6d,0x65])]:_0x4f8f81([0x45,0x43,0x44,0x53,0x41]),[_0x4f8f81([0x68,0x61,0x73,0x68])]:{[_0x4f8f81([0x6e,0x61,0x6d,0x65])]:_0x4f8f81([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d381f,_0x5db4ca,_0x4b14c4)||(_0x3558ed=!0x1);}}function _0x52b393(_0x296c04){return _0x296c04[_0x4f8f81([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f8f81([0x65,0x79]))?JSON[_0x4f8f81([0x70,0x61,0x72,0x73,0x65])](_0x309ad2(_0x296c04)):null;}function _0x309ad2(_0x29deaf){return window[_0x4f8f81([0x61,0x74,0x6f,0x62])](_0x29deaf[_0x4f8f81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f8f81([0x2b]))[_0x4f8f81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f8f81([0x2f])));}function _0x5902a9(_0x51ad07){let _0x1f3656=0x1505;function _0x403a5a(_0x2de061){for(let _0x29141b=0x0;_0x29141b<_0x2de061[_0x4f8f81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29141b++){const _0x37c94f=_0x2de061[_0x4f8f81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29141b);_0x1f3656=(_0x1f3656<<0x5)+_0x1f3656+_0x37c94f,_0x1f3656&=_0x1f3656;}}function _0x4154ba(_0x4aa60d){Array[_0x4f8f81([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4aa60d)?_0x4aa60d[_0x4f8f81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4154ba):_0x4aa60d&&typeof _0x4aa60d==_0x4f8f81([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f8f81([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4aa60d)[_0x4f8f81([0x73,0x6f,0x72,0x74])]()[_0x4f8f81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e0004,_0xaedc52])=>{_0x403a5a(_0x4e0004),_0x4154ba(_0xaedc52);}):_0x403a5a(window[_0x4f8f81([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4aa60d));}return _0x4154ba(_0x51ad07),_0x1f3656>>>0x0;}function _0x10dba5(_0x12a2ed){return _0x12a2ed[_0x4f8f81([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f8f81([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f8f81([0x30]));}function _0x4874d6(_0x41a4b5){return _0x41a4b5[_0x4f8f81([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f8f81([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f8f81([0x6a,0x6f,0x69,0x6e])]('');}function _0x43caa6(){}function _0x4f8f81(_0x229d76){return _0x229d76['map'](_0x5def67=>String['fromCharCode'](_0x5def67))['join']('');}_0x3ae5e5(await _0x58af49());}(this);}['_moveSelectionToFootnoteDefinition'](_0x457a64){const {plugins:_0x296a05,editing:_0x4bd66c,model:_0xa776cb}=this['editor'],_0x4732da=_0x296a05['get'](c)['getFootnote'](_0x457a64);return!!_0x4732da&&(_0xa776cb['change'](_0x2405bc=>{_0x2405bc['setSelection'](_0x2405bc['createPositionAt'](_0x4732da['definition'],'end'));}),_0x4bd66c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5ad4e5){const {plugins:_0x4ff7bf,editing:_0x121a2b,model:_0x1eb7ac}=this['editor'],_0x19d56e=_0x4ff7bf['get'](c)['getFootnote'](_0x5ad4e5);return!!_0x19d56e&&(_0x1eb7ac['change'](_0x18d34a=>{_0x18d34a['setSelection'](_0x19d56e['reference'],'on');}),_0x121a2b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4af477}=this['editor']['model'],_0x24415f=this['editor']['config']['get']('footnotes.multiBlock');_0x4af477['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4af477['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4af477['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x24415f?_0x4af477['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4af477['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4af477['addChildCheck'](_0x4fcc73=>{for(const _0x14cd45 of _0x4fcc73)if('footnoteDefinition'===_0x14cd45['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2617d5}=this,{conversion:_0x1a8f5c,editing:_0x5c492f}=_0x2617d5,{t:t}=_0x2617d5['locale'];_0x1a8f5c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2ff8ad,{writer:_0x4ca86b,consumable:_0xa7a7c1})=>{const _0x38882=_0x2ff8ad['getChild'](0x0);if(!_0x38882||!_0x38882['is']('element','a'))return null;const _0x1746ec=_0x38882['getAttribute']('href')||'';if(!_0x1746ec['startsWith']('#'))return null;const _0x182086=_0x1746ec['replace'](/^#/,'');if(!_0x182086)return null;_0xa7a7c1['consume'](_0x38882,{'name':!0x0,'attributes':['href']});for(const {item:_0x47c374}of _0x5c492f['view']['createRangeIn'](_0x38882))_0x47c374['is']('$textProxy')?_0xa7a7c1['consume'](_0x47c374['textNode'],{'name':!0x0}):_0x47c374['is']('element')&&_0xa7a7c1['consume'](_0x47c374,{'name':!0x0});return _0x4ca86b['createElement']('footnoteRef',{'footnoteId':_0x182086});}}),_0x1a8f5c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1d3a45,{writer:_0x4edbca})=>D(_0x1d3a45,_0x4edbca)}),_0x1a8f5c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4313fe,{writer:_0x1687a7})=>{const _0x5232a9=_0x4313fe['getAttribute']('footnoteCounter');return _0x4c01dd(D(_0x4313fe,_0x1687a7),_0x1687a7,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5232a9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3935f8}=this,{t:t}=_0x3935f8['locale'],{conversion:_0x43f52d}=_0x3935f8;_0x43f52d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x43f52d['for']('upcast')['add'](_0x3cf396=>{_0x3cf396['on']('element:ol',(_0x2704a6,_0x405350,_0x4bd88a)=>{const _0x6a01df=_0x405350['viewItem'];if(!_0x6a01df['hasClass']('footnotes-list')||!_0x405350['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4bd88a['consumable']['consume'](_0x6a01df,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x47b41f,modelCursor:_0x482d85}=_0x4bd88a['convertChildren'](_0x405350['viewItem'],_0x405350['modelCursor']);_0x405350['modelRange']=_0x47b41f,_0x405350['modelCursor']=_0x482d85;}),_0x3cf396['on']('element:hr',(_0xfffe22,_0x45a5f9,_0x23c7b0)=>{const _0x1541bc=_0x45a5f9['viewItem'];_0x1541bc['hasClass']('footnotes-divider')&&_0x45a5f9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x23c7b0['consumable']['consume'](_0x1541bc,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x43f52d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x267c6d,{writer:_0x1c849d})=>g(_0x1c849d)}),_0x43f52d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4a9aa0,{writer:_0x4c68e8})=>{const _0xf84daf=g(_0x4c68e8,{'data-footnotes-list-label':t('Footnotes')}),_0x2a73cb=_0x4c01dd(_0xf84daf,_0x4c68e8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4c68e8['setCustomProperty']('footnotesDefinitions',!0x0,_0x2a73cb),_0x2a73cb;}});}['_defineDefinitionConverters'](){const {editor:_0x3b5b25}=this,{conversion:_0x3701e1,locale:_0x4ec979}=_0x3b5b25,_0x4c1c14=_0x3b5b25['config']['get']('footnotes.multiBlock');_0x3701e1['for']('upcast')['add'](_0x43e993=>{_0x43e993['on']('element:li',(_0x668a25,_0x2b0ea5,_0x388fe4)=>{const _0x4b81d2=_0x2b0ea5['viewItem'];if(!_0x4b81d2['hasClass']('footnote-definition')||!_0x4b81d2['getAttribute']('id'))return;const _0x3e3a5d=_0x4b81d2['parent'];if(!_0x3e3a5d['is']('element','ol')||!_0x3e3a5d['hasClass']('footnotes-list'))return;if(!_0x388fe4['consumable']['test'](_0x4b81d2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4d529e=_0x388fe4['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4b81d2['getAttribute']('id')});if(!_0x388fe4['safeInsert'](_0x4d529e,_0x2b0ea5['modelCursor']))return;_0x388fe4['consumable']['consume'](_0x4b81d2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x529209=Array['from'](_0x4b81d2['getChildren']())['find'](_0x5af7b3=>_0x5af7b3['is']('element')&&_0x5af7b3['hasClass']('footnote-content'));for(const _0xd22740 of _0x4b81d2['getChildren']())_0xd22740['is']('element')&&(_0x388fe4['consumable']['consume'](_0xd22740,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x388fe4['consumable']['consume'](_0xd22740,{'name':!0x0,'classes':'footnote-content'}));if(_0x529209){if(_0x4c1c14)_0x388fe4['convertChildren'](_0x529209,_0x4d529e);else{const _0x9708a8=_0x388fe4['writer']['createElement']('footnoteInlineContent');_0x388fe4['writer']['insert'](_0x9708a8,_0x4d529e),_0x388fe4['convertChildren'](_0x529209,_0x9708a8);}}_0x388fe4['updateConversionResult'](_0x4d529e,_0x2b0ea5);});}),_0x3701e1['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4e5c3c,{writer:_0x2a4365})=>v(_0x4e5c3c,_0x2a4365,_0x4ec979,{'dataPipeline':!0x0})}),_0x3701e1['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24b49f,{writer:_0x321dd7})=>v(_0x24b49f,_0x321dd7,_0x4ec979)});}['_defineBogusParagraphConverters'](){const {editor:_0x4b6bb6}=this,{conversion:_0x527e2b}=_0x4b6bb6;_0x4b6bb6['config']['get']('footnotes.multiBlock')?(_0x527e2b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x527e2b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4b6bb6['model']['document'],'change:data',()=>{!function(_0x302b33,_0x9a3699){const _0x152131=_0x302b33['document']['differ'],_0x52c45d=new Set();for(const _0x3f82f7 of _0x152131['getChanges']()){const _0x3a299b='attribute'==_0x3f82f7['type']?_0x3f82f7['range']['start']['parent']:_0x3f82f7['position']['parent'];_0x3a299b['is']('element','footnoteDefinition')&&_0x52c45d['add'](_0x3a299b);}for(const _0xbf1d0 of _0x52c45d['values']()){const _0x297d87=Array['from'](_0xbf1d0['getChildren']())['filter'](_0x52108e=>p(_0x52108e,_0x9a3699['mapper']));for(const _0x31fff7 of _0x297d87)_0x9a3699['reconvertItem'](_0x31fff7);}}(_0x4b6bb6['model'],_0x4b6bb6['editing']);})):(_0x527e2b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x527e2b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x318185,{writer:_0x340179})=>{const _0x181b4a=_0x340179['createContainerElement']('span');return _0x340179['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x181b4a),_0x181b4a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x186587}=this,{editing:_0x267c2c,t:t}=_0x186587,_0x6c453a=_0x186587['model']['document']['selection'];_0x186587['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x186587['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x267c2c['view']['document'],'enter',(_0x3168ed,_0x23a0cd)=>{const _0x405c47=function(_0x55ed49){const _0x4bb96d=_0x55ed49['getSelectedElement']();if(_0x4bb96d?.['is']('element','footnoteRef'))return _0x4bb96d;return null;}(_0x6c453a);if(_0x405c47){const _0x2ae145=_0x405c47['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2ae145),_0x23a0cd['preventDefault'](),_0x3168ed['stop']();}},{'context':_0x154edf});}['_defineClickHandlers'](){const {editor:_0x362cea}=this,{editing:_0x1b1264}=_0x362cea;_0x362cea['editing']['view']['addObserver'](_0x275c97),_0x362cea['editing']['view']['addObserver'](_0x1889c7);let _0x254def=!0x1;this['listenTo'](_0x1b1264['view']['document'],'pointerdown',(_0x51eadc,_0x51ec06)=>{const {target:_0x12edec}=_0x51ec06,_0x1ad8bf=_0x1b1264['view']['document']['selection'];_0x254def=!!(_0x12edec['is']('element','a')&&_0x12edec['parent']?.['is']('element','sup')&&_0x12edec['parent']['hasClass']('footnote'))&&_0x1ad8bf['getSelectedElement']()===_0x12edec['parent'];},{'priority':'high'}),this['listenTo'](_0x1b1264['view']['document'],'click',(_0x5bc067,_0x299c75)=>{const {target:_0x256e23}=_0x299c75;if(!_0x256e23['is']('element','a'))return;if(_0x256e23['parent']?.['is']('element','sup')&&_0x256e23['parent']['hasClass']('footnote')&&!_0x254def)return void _0x299c75['preventDefault']();let _0xcd855b=_0x256e23['getAttribute']('href');if(!_0xcd855b?.['startsWith']('#'))return;_0xcd855b=_0xcd855b['slice'](0x1);let _0x5a7bc0=!0x1;(_0xcd855b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xcd855b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xcd855b))&&(_0x5a7bc0=!0x0),_0x5a7bc0&&(_0x299c75['preventDefault'](),_0x5bc067['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x44e9e2}={}){return(_0x200222,{writer:_0x41bafc})=>{if(!h(_0x200222))return null;if(!_0x44e9e2)return _0x41bafc['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x85aad5=_0x41bafc['createContainerElement']('p');return _0x41bafc['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x85aad5),_0x85aad5;};}function h(_0x817c7d){const {parent:_0x3bfd94}=_0x817c7d;if(!_0x3bfd94?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3bfd94['childCount'])return!0x1;for(const _0x56d904 of _0x817c7d['getAttributeKeys']())if(!_0x56d904['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x56d904)return!0x1;return!0x0;}function p(_0x4feeb3,_0x37efd3){if(!_0x4feeb3['is']('element','paragraph'))return!0x1;const _0x509424=_0x37efd3['toViewElement'](_0x4feeb3);return!!_0x509424&&h(_0x4feeb3)!==_0x509424['is']('element','span');}function J(_0x129ac2){return _0x154edf(_0x129ac2)&&_0x129ac2['is']('containerElement')&&!!_0x129ac2['getCustomProperty']('footnotesDefinitions');}function g(_0x5d4777,_0x12d803={}){const _0x1f37eb=_0x5d4777['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5d2aae=_0x5d4777['createContainerElement']('ol',{'class':'footnotes-list'},_0x5d4777['createSlot']());return _0x5d4777['createContainerElement']('div',{'class':'footnotes',..._0x12d803},[_0x1f37eb,_0x5d2aae]);}function D(_0x181f15,_0x1be973){const _0x305ad8=_0x181f15['getAttribute']('footnoteId'),_0x3b2580=_0x181f15['getAttribute']('footnoteCounter'),_0x30a004=_0x1be973['createUIElement']('a',{'href':'#'+_0x305ad8},function(_0x2f291b){const _0x842d8a=this['toDomElement'](_0x2f291b);return _0x842d8a['textContent']=_0x3b2580,_0x842d8a;}),_0xb78eb0=_0x1be973['createContainerElement']('sup',{'id':'ref-'+_0x305ad8,'class':'footnote'},[_0x30a004]);return _0xb78eb0['getFillerOffset']=()=>null,_0xb78eb0;}function v(_0x445418,_0x506255,_0x339dce,{dataPipeline:_0x47884c}={}){const {t:t}=_0x339dce,_0x583cec=_0x445418['getAttribute']('footnoteId'),_0x47efed=_0x506255['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x583cec},function(_0x478670){const _0x5efc1f=this['toDomElement'](_0x478670);return _0x5efc1f['innerText']='^',_0x5efc1f;}),_0x39ae6f=_0x47884c?_0x506255['createContainerElement']('div',{'class':'footnote-content'}):_0x498796(_0x506255['createEditableElement']('div',{'class':'footnote-content'}),_0x506255,{'label':t('Footnote\x20content.')});return _0x506255['insert'](_0x506255['createPositionAt'](_0x39ae6f,0x0),_0x506255['createSlot']()),_0x506255['createContainerElement']('li',{'class':'footnote-definition','id':_0x583cec},[_0x47efed,_0x39ae6f]);}class e extends _0x5a4266{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xb323c9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x308427}=this,{plugins:_0x279bc4,model:_0x17f5f9}=_0x308427,_0x1f245f=_0x279bc4['get'](_0xb323c9),_0x380a42=_0x279bc4['get'](c);this['listenTo'](_0x1f245f,'outputTransformation',(_0x439a76,_0x3f55a6)=>{const _0x2ae5b6=function(_0x2f56ea,_0xb0ff2f){const _0x80d353=new Set();for(const {item:_0x2fa9ef}of _0x2f56ea['createRangeIn'](_0xb0ff2f))_0x2fa9ef['is']('element','footnoteRef')&&_0x80d353['add'](_0x2fa9ef['getAttribute']('footnoteId'));return Array['from'](_0x80d353);}(_0x17f5f9,_0x3f55a6['content']);if(!_0x2ae5b6['length'])return;const _0x22181e=_0x380a42['getFootnotes'](),_0x937530=_0x2ae5b6['reduce']((_0xbff18c,_0x36a8c9)=>{const _0x461811=_0x22181e['find'](_0x3d10f0=>_0x3d10f0['id']===_0x36a8c9);if(_0x461811){const _0x11d36c=_0x308427['data']['toView'](_0x461811['definition'],{'isClipboardPipeline':!0x0}),_0x30f2bc=_0x308427['data']['htmlProcessor']['toData'](_0x11d36c);_0xbff18c[_0x461811['id']]=_0x30f2bc;}return _0xbff18c;},Object['create'](null));_0x3f55a6['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x937530));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x631a3b}=this,{model:_0x326337,plugins:_0x24a9f2}=_0x631a3b,{view:_0x1fe5ea}=_0x631a3b['editing'],_0x2257a6=_0x24a9f2['get'](_0xb323c9),_0xe0e39=_0x24a9f2['get'](c);let _0x27dd13=null;this['listenTo'](_0x1fe5ea['document'],'clipboardInput',(_0x35fb32,_0x6a1c53)=>{const _0xf46570=_0x6a1c53['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x27dd13=_0xf46570?JSON['parse'](_0xf46570):null;}),this['listenTo'](_0x2257a6,'contentInsertion',(_0x493a67,_0x499e6f)=>{if(!_0x27dd13)return;const _0x12b7af=_0x499e6f['sourceEditorId']===this['editor']['id'];_0x12b7af&&'drop'===_0x499e6f['method']||_0x326337['change'](_0x1133ab=>{!function(_0x58bb68,_0x1fd36){const _0x1c7a89=[];for(const {item:_0x5f3fe1}of _0x58bb68['createRangeIn'](_0x1fd36))_0x5f3fe1['is']('element','footnotesDefinitions')&&_0x1c7a89['push'](_0x5f3fe1);for(const _0x169893 of _0x1c7a89)_0x58bb68['remove'](_0x169893);}(_0x1133ab,_0x499e6f['content']);let _0x48615a=_0xe0e39['getFootnotesDefinitionsObjectElement']();if(!_0x48615a){const _0x5ed593=_0x326337['document']['selection']['getFirstRange']()['root'];_0x48615a=_0xe0e39['_insertEmptyFootnotesDefinitionsContainer'](_0x1133ab,_0x5ed593);}const _0x511ad9=function(_0x578748,_0x6c970c,_0x127c78){const _0x47fc1e=Object['create'](null);for(const {item:_0x97b71a}of _0x578748['createRangeIn'](_0x6c970c))if(_0x97b71a['is']('element','footnoteRef')){const _0x2702d1=_0x97b71a['getAttribute']('footnoteId');if(!_0x127c78(_0x2702d1))continue;_0x47fc1e[_0x2702d1]||(_0x47fc1e[_0x2702d1]=_0x4ead23()),_0x578748['setAttribute']('footnoteId',_0x47fc1e[_0x2702d1],_0x97b71a);}return _0x47fc1e;}(_0x1133ab,_0x499e6f['content'],_0x20c335=>!_0x12b7af||null!==_0xe0e39['getFootnote'](_0x20c335));for(const [_0x1c1814,_0xe5b27d]of Object['entries'](_0x27dd13)){const _0x1e6b70=_0x511ad9[_0x1c1814]||_0x1c1814,_0xff5399=_0x1133ab['createElement']('footnoteDefinition',{'footnoteId':_0x1e6b70}),_0x586401=_0x631a3b['data']['htmlProcessor']['toView'](_0xe5b27d),_0x55fa20=_0x631a3b['data']['toModel'](_0x586401,_0xff5399);_0x1133ab['append'](_0x55fa20,_0xff5399),_0x1133ab['insert'](_0xff5399,_0x48615a,'end');}_0x27dd13=null;});});}}class i extends _0x5a4266{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xaae9b6}=this,{componentFactory:_0x4588cc}=_0xaae9b6['ui'];_0x4588cc['add']('insertFootnote',x(_0xaae9b6,_0x253836)),_0x4588cc['add']('menuBar:insertFootnote',x(_0xaae9b6,_0x51d454)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x214969=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d4530;for(const _0x25445b in _0x214969){const _0x327471=_0x25445b,_0x3c8582=_0x214969[_0x327471];if('footnotesLicenseKeyValid'==_0x3c8582||'footnotesLicenseKeyInvalid'==_0x3c8582||'footnotesLicenseKeyExpired'==_0x3c8582||'footnotesLicenseKeyDomainLimit'==_0x3c8582||'footnotesLicenseKeyNotAllowed'==_0x3c8582||'footnotesLicenseKeyEvaluationLimit'==_0x3c8582||'footnotesLicenseKeyTrialLimit'==_0x3c8582||'footnotesLicenseKeyUsageLimit'==_0x3c8582){delete _0x214969[_0x327471],_0x2d4530=_0x3c8582,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2d4530&&_0x214969['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2d4530&&_0x214969['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2d4530&&_0x214969['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2d4530&&_0x214969['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2d4530&&_0x214969['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2d4530&&_0x214969['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2d4530&&_0x214969['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x31c85a,_0x61520e){const _0x4ef337=_0x31c85a['commands']['get']('insertFootnote');return _0xeed551=>{const {t:t}=_0xeed551,_0x48abe9=new _0x61520e(_0xeed551),_0x2cc0b9=_0x48abe9 instanceof _0x51d454;return _0x48abe9['bind']('isEnabled')['to'](_0x4ef337,'isEnabled'),_0x48abe9['set']({'label':t(_0x2cc0b9?'Footnote':'Insert\x20footnote'),'icon':_0x4503ac,'tooltip':!0x0}),_0x48abe9['on']('execute',()=>{_0x4ef337['execute'](),_0x31c85a['editing']['view']['focus']();}),_0x48abe9;};}class nt extends _0x5a4266{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 _0x43caa9{['refresh'](){const {editor:_0xb9867b}=this,_0x4645dd=_0xb9867b['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4645dd,this['value']=_0x4645dd?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x149ffb}){const {editor:_0x19ed3c}=this,_0x4f1f1d=_0x19ed3c['plugins']['get'](c),_0x28eeee=_0x4f1f1d['getFootnotesDefinitionsObjectElement']();_0x28eeee&&Q['includes'](_0x149ffb)&&_0x19ed3c['model']['change'](_0x50cb6a=>{_0x50cb6a['setAttribute']('footnotesListStyle',_0x149ffb,_0x28eeee),_0x4f1f1d['_updateFootnotesCounters'](_0x50cb6a);});}}class b extends _0x43caa9{['refresh'](){const {editor:_0x180865}=this,_0x42e1a2=_0x180865['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x42e1a2,this['value']=_0x42e1a2?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x405d5e}){const {editor:_0x49cbc5}=this,_0x5559e0=_0x49cbc5['plugins']['get'](c),_0x4029b6=_0x5559e0['getFootnotesDefinitionsObjectElement']();_0x4029b6&&Number['isInteger'](_0x405d5e)&&_0x49cbc5['model']['change'](_0x51cf02=>{_0x51cf02['setAttribute']('footnotesListStart',_0x405d5e,_0x4029b6),_0x5559e0['_updateFootnotesCounters'](_0x51cf02);});}}class P extends _0x5a4266{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ad16b}=this;_0x2ad16b['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2ad16b['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2ad16b['commands']['add']('footnotesStyle',new S(_0x2ad16b)),_0x2ad16b['commands']['add']('footnotesStart',new b(_0x2ad16b)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x252872}=this,{schema:_0x326d8c}=_0x252872['model'];_0x326d8c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0xdeff10}=this,{conversion:_0x31afee,model:_0x64dd1f}=_0xdeff10,{schema:_0x4f1b81}=_0x64dd1f;_0x31afee['for']('upcast')['add'](_0x48fecb=>{_0x48fecb['on']('element:ol',(_0x4dca73,_0x1920b9,_0x34307c)=>{const _0xb0e015=_0x1920b9['viewItem'],_0x1e445a=_0x1920b9['modelCursor']?.['parent'];_0xb0e015['hasClass']('footnotes-list')&&_0x1e445a?.['is']('element','footnotesDefinitions')&&(function(_0x3d3bd2,_0x15af42,_0x4f082d,_0x145ccf){if(!_0x145ccf['checkAttribute'](_0x15af42,'footnotesListStart'))return;let _0x2faaed=0x1;const _0x161137=_0x4f082d['consumable']['consume'](_0x3d3bd2,{'attributes':'start'});if(_0x161137){const _0x1ab915=Number['parseInt'](_0x3d3bd2['getAttribute']('start'),0xa);Number['isNaN'](_0x1ab915)||(_0x2faaed=_0x1ab915);}!_0x161137&&_0x15af42['hasAttribute']('footnotesListStart')||_0x4f082d['writer']['setAttribute']('footnotesListStart',_0x2faaed,_0x15af42);}(_0xb0e015,_0x1e445a,_0x34307c,_0x4f1b81),function(_0x29d38f,_0x45dbd7,_0x590eef,_0x42e7a1){if(!_0x42e7a1['checkAttribute'](_0x45dbd7,'footnotesListStyle'))return;let _0x1b1074='decimal',_0x3a73ed=!0x1;if(_0x590eef['consumable']['consume'](_0x29d38f,{'attributes':'type'})){const _0x500c81={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x29d38f['getAttribute']('type')];_0x500c81&&(_0x1b1074=_0x500c81),_0x3a73ed=!0x0;}_0x590eef['consumable']['consume'](_0x29d38f,{'styles':'list-style-type'})&&(_0x1b1074=_0x29d38f['getStyle']('list-style-type'),_0x3a73ed=!0x0),!_0x3a73ed&&_0x45dbd7['hasAttribute']('footnotesListStyle')||_0x590eef['writer']['setAttribute']('footnotesListStyle',_0x1b1074,_0x45dbd7);}(_0xb0e015,_0x1e445a,_0x34307c,_0x4f1b81));});}),_0x31afee['for']('downcast')['add'](_0x39d9da=>{_0x39d9da['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x196c97,_0x5b67e7,_0x229f55)=>{if(!_0x229f55['consumable']['consume'](_0x5b67e7['item'],_0x196c97['name']))return;const _0x5825e8=C(_0x5b67e7['item'],_0x229f55['mapper']),{attributeNewValue:_0x5ec56e}=_0x5b67e7;null==_0x5ec56e||0x1===_0x5ec56e?_0x229f55['writer']['removeAttribute']('start',_0x5825e8):_0x229f55['writer']['setAttribute']('start',String(_0x5ec56e),_0x5825e8);}),_0x39d9da['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x36f335,_0x32d024,_0x1b2df7)=>{if(!_0x1b2df7['consumable']['consume'](_0x32d024['item'],_0x36f335['name']))return;const _0x35bd9f=C(_0x32d024['item'],_0x1b2df7['mapper']),{attributeNewValue:_0x51bbda}=_0x32d024;_0x51bbda&&'decimal'!==_0x51bbda?_0x1b2df7['writer']['setStyle']('list-style-type',_0x51bbda,_0x35bd9f):_0x1b2df7['writer']['removeStyle']('list-style-type',_0x35bd9f);});});}['_definePostfixer'](){const {editor:_0x2a4161}=this,{model:_0x397516}=_0x2a4161,_0x1100e5=_0x2a4161['plugins']['get'](c),_0x64da37=this['_getDefaultListStyle'](),_0x3982f1=this['_getDefaultStartIndex']();_0x397516['document']['registerPostFixer'](_0x1f9ff2=>{const _0x330ba5=_0x397516['document']['differ']['getChanges']();let _0x3338dd=!0x1;for(const _0xc3522e of _0x330ba5){if('insert'!==_0xc3522e['type']||'$text'===_0xc3522e['name'])continue;const _0x323549=_0x397516['createRangeOn'](_0xc3522e['position']['nodeAfter']);for(const _0x40fe44 of _0x323549['getItems']())_0x40fe44['is']('element','footnotesDefinitions')&&(!_0x40fe44['hasAttribute']('footnotesListStart')&&_0x397516['schema']['checkAttribute'](_0x40fe44,'footnotesListStart')&&(_0x1f9ff2['setAttribute']('footnotesListStart',_0x3982f1,_0x40fe44),_0x3338dd=!0x0),!_0x40fe44['hasAttribute']('footnotesListStyle')&&_0x397516['schema']['checkAttribute'](_0x40fe44,'footnotesListStyle')&&(_0x1f9ff2['setAttribute']('footnotesListStyle',_0x64da37,_0x40fe44),_0x3338dd=!0x0));}return _0x3338dd&&_0x1100e5['_updateFootnotesCounters'](_0x1f9ff2),_0x3338dd;});}['_defineFormatter'](){const {editor:_0x138274}=this;_0x138274['plugins']['get'](c)['setFootnoteFormatter'](_0x206004=>this['_formatFootnoteListValue'](_0x206004));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5b9900,value:_0x1cc3b0,digits:_0x39daea}){const _0x4806d2=_0x5b9900['getAttribute']('footnotesListStyle'),_0x5b76b6=_0x5b9900['getAttribute']('footnotesListStart'),_0x4df2ef=Math['floor'](_0x1cc3b0)+(_0x5b76b6??0x1)-0x1;switch(_0x4806d2){case'decimal-leading-zero':return function(_0x59a911,_0x2240d5){return String(_0x59a911)['padStart'](_0x2240d5,'0');}(_0x4df2ef,Math['max'](0x2,_0x39daea));case'lower-alpha':case'lower-latin':return M(_0x4df2ef,!0x1);case'upper-alpha':case'upper-latin':return M(_0x4df2ef,!0x0);case'lower-roman':return V(_0x4df2ef,!0x1);case'upper-roman':return V(_0x4df2ef,!0x0);default:return String(_0x4df2ef);}}}function C(_0x5d03e4,_0x217c19){const _0x5d1cec=_0x217c19['toViewElement'](_0x5d03e4);return Array['from'](_0x5d1cec['getChildren']())['find'](_0x19b674=>_0x19b674['is']('element','ol')&&_0x19b674['hasClass']('footnotes-list'));}function M(_0x44f75d,_0xf661ae){let _0x19eb1e='',_0x1fe7c4=_0x44f75d;for(;_0x1fe7c4>0x0;){const _0x354cdd=(_0x1fe7c4-0x1)%0x1a;_0x19eb1e=String['fromCharCode'](0x61+_0x354cdd)+_0x19eb1e,_0x1fe7c4=Math['floor']((_0x1fe7c4-0x1)/0x1a);}return _0xf661ae?_0x19eb1e['toUpperCase']():_0x19eb1e;}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(_0x5f50ef,_0x5dafeb){let _0x21a55a='',_0x40bbe5=_0x5f50ef;for(const {value:_0x4aaf8d,numeral:_0x3b10d9}of N)for(;_0x40bbe5>=_0x4aaf8d;)_0x21a55a+=_0x3b10d9,_0x40bbe5-=_0x4aaf8d;return _0x5dafeb?_0x21a55a:_0x21a55a['toLowerCase']();}class H extends _0xf5b978{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x2b99b2();['focusCycler'];constructor(_0x7350a4,{styleButtonViews:_0x3c20f5,styleGridAriaLabel:_0x2b9ecf}){super(_0x7350a4),(this['focusCycler']=new _0x3cadfa({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3c20f5,_0x2b9ecf),[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 _0x3fef38 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3fef38['element']);_0x1023bc({'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 _0x2f3cff=_0x205582=>_0x205582['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f3cff),this['keystrokes']['set']('arrowleft',_0x2f3cff),this['keystrokes']['set']('arrowup',_0x2f3cff),this['keystrokes']['set']('arrowdown',_0x2f3cff);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5c68d8,_0x2272ba){const _0x1ca299=new _0xf5b978(this['locale']);return _0x1ca299['children']=_0x1ca299['createCollection'](),_0x1ca299['children']['addMany'](_0x5c68d8),_0x1ca299['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2272ba,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1ca299['children']}),_0x1ca299['children']['delegate']('execute')['to'](this),_0x1ca299['focus']=function(){for(const _0x2aa7d8 of this['children'])if(_0x2aa7d8 instanceof _0x253836&&_0x2aa7d8['isOn'])return void _0x2aa7d8['focus']();this['children']['first']['focus']();},_0x1ca299['focusTracker']=new et(),_0x1ca299['keystrokes']=new ot(),_0x1ca299['render'](),_0x1ca299['keystrokes']['listenTo'](_0x1ca299['element']),this['children']['add'](_0x1ca299),_0x1ca299;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x38f816=this['_createStartIndexPropertyView'](),_0x5a4b5c=[_0x38f816],_0x45592e=new tt(this['locale'],_0x5a4b5c);return _0x45592e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x45592e['buttonView']['bind']('isEnabled')['toMany'](_0x5a4b5c,'isEnabled',(..._0xff0376)=>_0xff0376['some'](_0x159c69=>_0x159c69)),_0x45592e['buttonView']['on']('change:isEnabled',(_0x46b399,_0x15c0fb,_0x15d7b4)=>{_0x15d7b4||(_0x45592e['isCollapsed']=!0x0);}),this['children']['add'](_0x45592e),[_0x38f816,_0x45592e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xf7485c=new st(this['locale'],it);return _0xf7485c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xf7485c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xf7485c['fieldView']['on']('input',()=>{const _0x366eb7=_0xf7485c['fieldView']['element'],_0x192f4f=_0x366eb7['valueAsNumber'];Number['isNaN'](_0x192f4f)?_0xf7485c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x366eb7['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x192f4f}):_0xf7485c['errorText']=t(_0x192f4f<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xf7485c;}}class j extends _0x5a4266{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3e82de,_0x6c205];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x12242a}=this,{componentFactory:_0x15d9d0}=_0x12242a['ui'];_0x12242a['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x15d9d0['add']('footnotesStyle',function(_0x523e88){return _0x2c91f9=>{const {t:t}=_0x2c91f9,_0x197528=_0x523e88['commands']['get']('footnotesStyle'),_0x352fa1=_0x3a1861(_0x2c91f9),{buttonView:_0x325d00}=_0x352fa1;return _0x352fa1['class']='ck-footnotes-styles-dropdown',_0x352fa1['bind']('isEnabled')['to'](_0x197528,'isEnabled'),_0x325d00['set']({'label':t('Footnotes\x20style'),'icon':_0x4503ac,'tooltip':!0x0}),_0x352fa1['once']('change:isOpen',()=>{const _0x1172aa=function({editor:_0x4f40c1,dropdownView:_0x2e3d64}){const {t:t}=_0x4f40c1['locale'],_0x551d2c=t('Footnotes\x20definitions\x20styles'),_0x127a3b=function(_0x5460f9){const t=_0x5460f9['locale']['t'],_0x1a26a2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2df69b},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4459ae},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x965475},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x29a9a7},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1129b8},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x17a7e5}];return _0x1a26a2['map'](function(_0x4c2da8){const _0x3367c6=_0x4c2da8['locale'];return({label:_0xc5fbee,icon:_0x34b849,tooltip:_0x389ed1,style:_0x45dea7})=>{const _0x32a066=_0x4c2da8['commands']['get']('footnotesStyle'),_0x23b556=new _0x253836(_0x3367c6);return _0x23b556['set']({'label':_0xc5fbee,'icon':_0x34b849,'tooltip':_0x389ed1}),_0x23b556['bind']('isOn')['to'](_0x32a066,'value',_0x1c70a0=>_0x1c70a0===_0x45dea7),_0x23b556['bind']('isEnabled')['to'](_0x32a066,'isEnabled'),_0x23b556['on']('execute',()=>{_0x4c2da8['execute']('footnotesStyle',{'value':_0x45dea7}),_0x4c2da8['editing']['view']['focus']();}),_0x23b556;};}(_0x5460f9));}(_0x4f40c1),_0x5503d3=new H(_0x4f40c1['locale'],{'styleGridAriaLabel':_0x551d2c,'styleButtonViews':_0x127a3b});return _0x5503d3['delegate']('execute')['to'](_0x2e3d64),_0x5503d3['on']('footnotesListStart',(_0xe835b4,_0x3583ed)=>{_0x4f40c1['execute']('footnotesStart',{'value':_0x3583ed['startIndex']});}),_0x5503d3;}({'editor':_0x523e88,'dropdownView':_0x352fa1});_0x352fa1['panelView']['children']['add'](_0x1172aa);}),_0x352fa1;};}(_0x12242a));}['afterInit'](){const {editor:_0x482610}=this,{t:t}=_0x482610['locale'],_0x48dd99=_0x482610['plugins']['get'](_0x6c205),{defaultPositions:_0x317860}=_0x3db375;_0x48dd99['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x482610['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x31d9e5=>{let _0x46f021=_0x31d9e5['getFirstPosition']()?.['parent'];return _0x46f021?.['is']('$text')&&(_0x46f021=_0x46f021['parent']),_0x46f021?.['is']('element')?_0x46f021['findAncestor'](J):null;},'positions':[_0x317860['southArrowNorth'],_0x317860['southArrowNorthMiddleWest'],_0x317860['southArrowNorthMiddleEast'],_0x317860['southArrowNorthWest'],_0x317860['southArrowNorthEast'],_0x317860['northArrowSouth'],_0x317860['northArrowSouthMiddleWest'],_0x317860['northArrowSouthMiddleEast'],_0x317860['northArrowSouthWest'],_0x317860['northArrowSouthEast'],_0x317860['viewportStickyNorth']]});}}class lt extends _0x5a4266{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 _0xd3a18c,Command as _0x48caf5}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x13c244,isWidget as _0x51e66b,toWidgetEditable as _0x35b21c,WidgetToolbarRepository as _0x517ff2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x33024d,logWarning as _0x5baafc,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x28117e,ClickObserver as _0x4a3d73}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1a3aaf}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1b0814,ButtonView as _0x597e22,View as _0x1a2eba,ViewCollection as _0x378fc1,FocusCycler as _0x2182f9,addKeyboardHandlingForGrid as _0xeae053,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x6532a0,BalloonPanelView as _0x52e9c6,createDropdown as _0x4c101c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xdd0539,IconListStyleDecimal as _0x31521a,IconListStyleDecimalLeadingZero as _0xc406c1,IconListStyleLowerRoman as _0x345fa2,IconListStyleUpperRoman as _0x52964e,IconListStyleLowerLatin as _0x22de01,IconListStyleUpperLatin as _0x2f6702}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x37bbe0,_0x3dbbc3){this['_model']=_0x37bbe0,this['_elementName']=_0x3dbbc3['elementName'],this['_getElementKey']=_0x3dbbc3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1a5912){const _0x5b9b5b=new Set(),_0x2ebeb2=new Map();for(const _0x4b26b3 of _0x1a5912){if('insert'===_0x4b26b3['type']&&'$text'!==_0x4b26b3['name']&&_0x4b26b3['position']['nodeAfter']){const _0x23d4ed=this['_model']['createRangeOn'](_0x4b26b3['position']['nodeAfter']);for(const _0x4abd2c of _0x23d4ed['getItems']()){if(!_0x4abd2c['is']('element',this['_elementName']))continue;const _0x29902f=this['_getElementKey'](_0x4abd2c);_0x2ebeb2['has'](_0x29902f)||_0x2ebeb2['set'](_0x29902f,[]),_0x2ebeb2['get'](_0x29902f)['push'](_0x4abd2c);}}if('remove'===_0x4b26b3['type']&&_0x4b26b3['name']===this['_elementName']){const _0x5a57a7=this['_getElementKey']({'getAttribute':_0x3134f2=>_0x4b26b3['attributes']['get'](_0x3134f2)});_0x5b9b5b['add'](_0x5a57a7);}}for(const [_0x4593d0,_0x1cb9b4]of this['_trackedElements'])'$graveyard'===_0x1cb9b4['root']['rootName']&&_0x5b9b5b['add'](_0x4593d0);for(const _0x156036 of _0x5b9b5b)this['_trackedElements']['delete'](_0x156036);for(const [_0x362873,_0x1ba829]of _0x2ebeb2)this['_trackedElements']['set'](_0x362873,_0x1ba829[_0x1ba829['length']-0x1]);const _0x3fcfc9=new Set();for(const [_0x561b52,_0x4c55d7]of _0x2ebeb2)_0x5b9b5b['has'](_0x561b52)&&(_0x3fcfc9['add'](_0x4c55d7[0x0]),_0x4c55d7['length']>0x1?_0x2ebeb2['set'](_0x561b52,_0x4c55d7['slice'](0x1)):_0x2ebeb2['delete'](_0x561b52),_0x5b9b5b['delete'](_0x561b52));return{'removed':Array['from'](_0x5b9b5b),'inserted':Array['from'](_0x2ebeb2['values']())['flat'](),'moved':Array['from'](_0x3fcfc9)};}}class c extends _0xd3a18c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25e1c9){super(_0x25e1c9),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3931fc=>_0x3931fc['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x137b6b=>_0x137b6b['getAttribute']('footnoteId')});}['init'](){const {editor:_0x426e9a}=this,{model:_0x352610,data:_0x35a10c}=_0x426e9a;_0x352610['document']['registerPostFixer'](_0x536c06=>{const _0xafa9b1=_0x352610['document']['differ']['getChanges']();let _0x44f106=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x536c06,_0xafa9b1)&&(_0x44f106=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x536c06,_0xafa9b1)&&(_0x44f106=!0x0),this['_handleFootnoteReferencesChanges'](_0x536c06,_0xafa9b1)&&(_0x44f106=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x536c06)&&(_0x44f106=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x536c06)&&(_0x44f106=!0x0),this['_sortFootnoteDefinitions'](_0x536c06)&&(_0x44f106=!0x0),_0x44f106;}),this['listenTo'](_0x352610['document'],'change:data',()=>{_0x352610['enqueueChange']({'isUndoable':!0x1},_0x1e6442=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1e6442);});},{'priority':'low'}),this['listenTo'](_0x35a10c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5c4a2c){return this['_footnotes']['find'](_0x241f10=>_0x241f10['id']===_0x5c4a2c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1640b6){this['_footnoteFormatter']=_0x1640b6;}['_updateFootnotesCounters'](_0x319e94,_0x26be47=0x0){let _0x4da897=!0x1;for(let _0x26417c=_0x26be47;_0x26417c<this['_footnotes']['length'];_0x26417c++)this['_updateFootnoteRefCounter'](_0x319e94,_0x26417c)&&(_0x4da897=!0x0);return _0x4da897;}['_insertEmptyFootnotesDefinitionsContainer'](_0x53f0a6,_0x1df0fa){const _0x27afcf=_0x53f0a6['createElement']('footnotesDefinitions',{});return _0x53f0a6['append'](_0x27afcf,_0x1df0fa),this['_footnotesDefinitions']=_0x27afcf,_0x27afcf;}['_ensureFootnotesDefinitionsContainerExists'](_0x1b0eac){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5f1e96=this['_footnotes'][0x0]['reference']['root'],_0x4b2bf2=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1b0eac,_0x5f1e96);for(const _0x462389 of this['_footnotes'])_0x462389['definition']['parent']||_0x1b0eac['insert'](_0x462389['definition'],_0x4b2bf2,'end');this['_updateFootnotesCounters'](_0x1b0eac);}['_handleFootnotesDefinitionsObjectChanges'](_0x1b21ea,_0x339406){let _0x5c65e9=!0x1;const {inserted:_0x2ed69b,removed:_0xc853e1,moved:_0x585ab9}=this['_footnoteDefsContainerTracker']['getChanges'](_0x339406);if(_0x585ab9['length']&&(this['_footnotesDefinitions']=_0x585ab9[0x0]),_0x2ed69b['length']){if(_0x2ed69b['length']>0x1||this['_footnotesDefinitions']&&_0x2ed69b['some'](_0xe10d36=>_0xe10d36!==this['_footnotesDefinitions'])){const _0x4f0907=_0x1b21ea['createElement']('footnotesDefinitions',{}),_0x1b2208=[];this['_footnotesDefinitions']&&_0x1b2208['push'](this['_footnotesDefinitions']),_0x1b2208['push'](..._0x2ed69b),_0x1b21ea['insert'](_0x4f0907,_0x1b2208[0x0],'before');for(const _0x152d2d of _0x1b2208)_0x1b21ea['move'](_0x1b21ea['createRangeIn'](_0x152d2d),_0x1b21ea['createPositionAt'](_0x4f0907,'end')),_0x1b21ea['remove'](_0x152d2d);this['_footnotesDefinitions']=_0x4f0907,this['_updateFootnotesCounters'](_0x1b21ea),_0x5c65e9=!0x0;}else this['_footnotesDefinitions']=_0x2ed69b[0x0];}if(_0xc853e1['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x59495c of this['_footnotes'])_0x1b21ea['remove'](_0x59495c['reference']),_0x5c65e9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5c65e9;}['_handleFootnoteDefinitionsChanges'](_0x45b632,_0x58a003){let _0x42716e=!0x1;const _0x5d9e2f=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x20cdbf,moved:_0x3c672b}=this['_footnoteDefsTracker']['getChanges'](_0x58a003);for(const _0x5837a0 of[..._0x3c672b,..._0x20cdbf]){const _0x433272=_0x5837a0['getAttribute']('footnoteId'),_0x5ddf53=this['getFootnote'](_0x433272);_0x5ddf53&&(_0x5ddf53['definition']=_0x5837a0),_(_0x45b632,_0x5d9e2f,_0x5837a0)&&(_0x42716e=!0x0);}return _0x42716e;}['_handleFootnoteReferencesChanges'](_0x2a17bd,_0x3d03c2){let _0x6df8cb=!0x1;const {removed:_0x2c8965,inserted:_0x18f97f,moved:_0x2dc403}=this['_footnoteRefsTracker']['getChanges'](_0x3d03c2);for(const _0x509d1b of _0x2c8965)this['_handleRemoveFootnoteReferenceById'](_0x2a17bd,_0x509d1b)&&(_0x6df8cb=!0x0);for(const _0xf5ffa4 of _0x18f97f)this['_handleInsertedFootnoteReference'](_0x2a17bd,_0xf5ffa4)&&(_0x6df8cb=!0x0);for(const _0x2368d7 of _0x2dc403)this['_handleMovedFootnoteReference'](_0x2a17bd,_0x2368d7)&&(_0x6df8cb=!0x0);return _0x6df8cb;}['_handleFootnotesDefinitionsObjectSync'](_0x5499ee){if(!this['_footnotesDefinitions'])return!0x1;let _0x5831a5=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5b4a96=[];for(const _0xcafbf1 of this['_footnotesDefinitions']['getChildren']()){const _0x2bd992=_0xcafbf1['getAttribute']('footnoteId');this['getFootnote'](_0x2bd992)||(_0x5b4a96['unshift'](_0xcafbf1),_0x5831a5=!0x0);}for(const _0x4d6800 of _0x5b4a96)_0x5499ee['remove'](_0x4d6800);}const _0x5a1d23=new Set(),_0xeae39e=[];for(const _0x180395 of this['_footnotesDefinitions']['getChildren']()){const _0x7c1b5d=_0x180395['getAttribute']('footnoteId');_0x5a1d23['has'](_0x7c1b5d)?(_0xeae39e['unshift'](_0x180395),_0x5831a5=!0x0):_0x5a1d23['add'](_0x7c1b5d);}for(const _0x2c298c of _0xeae39e)_0x5499ee['remove'](_0x2c298c);return this['_footnotesDefinitions']['childCount']||(_0x5499ee['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5831a5=!0x0),_0x5831a5;}['_handleInsertedFootnoteReference'](_0x27f576,_0xaf1abb){if(this['_footnotes']['find'](_0x4c724e=>_0x4c724e['reference']===_0xaf1abb))return!0x1;let _0x5b490=!0x1;const _0x406ee3=_0xaf1abb['getAttribute']('footnoteId'),_0x4f4187=this['_footnotes']['findIndex'](_0x2de356=>_0x2de356['id']===_0x406ee3);-0x1!==_0x4f4187&&(_0x27f576['remove'](this['_footnotes'][_0x4f4187]['reference']),this['_footnotes']['splice'](_0x4f4187,0x1),_0x5b490=!0x0);let _0x77bfcf=this['_footnotesDefinitions']?function(_0x35d1ab,_0x2ab9a8){for(const _0x26ae25 of _0x35d1ab['getChildren']())if(_0x26ae25['getAttribute']('footnoteId')===_0x2ab9a8)return _0x26ae25;return null;}(this['_footnotesDefinitions'],_0x406ee3):null;_0x77bfcf||(_0x77bfcf=_0x27f576['createElement']('footnoteDefinition',{'footnoteId':_0x406ee3}),this['_footnotesDefinitions']&&(_0x27f576['insert'](_0x77bfcf,this['_footnotesDefinitions'],'end'),_0x5b490=!0x0));const _0x1f5dfc={'id':_0x406ee3,'reference':_0xaf1abb,'definition':_0x77bfcf},_0x341352=I(this['editor']['model'],this['_footnotes'],_0xaf1abb);this['_footnotes']['splice'](_0x341352,0x0,_0x1f5dfc);let _0xb4cf21=_0x341352;return-0x1!==_0x4f4187&&(_0xb4cf21=Math['min'](_0x341352,_0x4f4187)),this['_updateFootnotesCounters'](_0x27f576,_0xb4cf21)&&(_0x5b490=!0x0),_0x5b490;}['_handleRemoveFootnoteReferenceById'](_0xc3bca1,_0x178365){const _0x3e0b3c=this['_footnotes']['findIndex'](_0x58921a=>_0x58921a['id']===_0x178365);if(-0x1===_0x3e0b3c)return!0x1;let _0x295f10=!0x1;const _0x2ccd10=this['_footnotes'][_0x3e0b3c];return'$graveyard'!==_0x2ccd10['definition']['root']['rootName']&&(_0xc3bca1['remove'](_0x2ccd10['definition']),_0x295f10=!0x0),this['_footnotes']['splice'](_0x3e0b3c,0x1),this['_updateFootnotesCounters'](_0xc3bca1,_0x3e0b3c)&&(_0x295f10=!0x0),_0x295f10;}['_handleMovedFootnoteReference'](_0x1dbde1,_0x2a089d){const _0x444a83=_0x2a089d['getAttribute']('footnoteId'),_0xbca2c1=this['_footnotes']['findIndex'](_0x33a33f=>_0x33a33f['id']===_0x444a83),_0x47d4a0=this['_footnotes'][_0xbca2c1];let _0x3e4fa7=!0x1;_0x47d4a0['reference']=_0x2a089d,this['_footnotes']['splice'](_0xbca2c1,0x1);const _0x310682=I(this['editor']['model'],this['_footnotes'],_0x2a089d);return this['_footnotes']['splice'](_0x310682,0x0,_0x47d4a0),this['_updateFootnotesCounters'](_0x1dbde1,Math['min'](_0xbca2c1,_0x310682))&&(_0x3e4fa7=!0x0),_0x3e4fa7;}['_updateFootnoteRefCounter'](_0xf2c962,_0x3aca46){if(!this['_footnotesDefinitions'])return!0x1;const _0x3d8740=this['_footnotes'][_0x3aca46];let _0x3a4fd6;return _0x3a4fd6=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3d8740,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3aca46+0x1}):String(_0x3aca46+0x1),_0x3d8740['reference']['getAttribute']('footnoteCounter')!=_0x3a4fd6&&(_0xf2c962['setAttribute']('footnoteCounter',_0x3a4fd6,_0x3d8740['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x320670){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x522246,_0x30b023){if(_0x522246['length']!==_0x30b023['length'])return!0x1;for(let _0x498c52=0x0;_0x498c52<_0x522246['length'];_0x498c52++)if(_0x522246[_0x498c52]!==_0x30b023[_0x498c52])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5c93c9=>_0x5c93c9['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3d14cd=>_0x3d14cd['getAttribute']('footnoteId'))))return!0x1;let _0x5d65f4=!0x1;for(let _0x1baa9a=0x0;_0x1baa9a<this['_footnotes']['length'];_0x1baa9a++){const _0x1dfc4a=this['_footnotes'][_0x1baa9a],_0x45617d=_0x320670['createPositionBefore'](_0x1dfc4a['definition']),_0x14cded=_0x320670['createPositionAt'](this['_footnotesDefinitions'],_0x1baa9a);_0x45617d['isEqual'](_0x14cded)||(_0x320670['move'](_0x320670['createRangeOn'](_0x1dfc4a['definition']),_0x14cded),_0x5d65f4=!0x0);}return _0x5d65f4;}['_ensureFootnotesReferencesHaveProperOrder'](_0x1bcef8){if(!this['_footnotes']['length'])return!0x1;const {model:_0x224b7b}=this['editor'];let _0x261022=!0x1;for(let _0xf2caf8=0x0;_0xf2caf8<this['_footnotes']['length']-0x1;_0xf2caf8++){const _0x30f992=this['_footnotes'][_0xf2caf8],_0x2bad08=this['_footnotes'][_0xf2caf8+0x1],_0x115c9e=_0x224b7b['createPositionBefore'](_0x30f992['reference']),_0x1ba747=_0x224b7b['createPositionBefore'](_0x2bad08['reference']);'after'===_0x115c9e['compareWith'](_0x1ba747)&&(this['_handleMovedFootnoteReference'](_0x1bcef8,_0x30f992['reference']),_0xf2caf8=-0x1,_0x261022=!0x0);}return _0x261022;}}function _(_0x38dae6,_0x1d9082,_0x302299){if(_0x302299['childCount'])return!0x1;const _0x7dade3=_0x1d9082?'paragraph':'footnoteInlineContent';return _0x38dae6['insert'](_0x38dae6['createElement'](_0x7dade3),_0x302299),!0x0;}function I(_0x483aae,_0x2d800b,_0x148ea3){if(0x0===_0x2d800b['length'])return 0x0;const _0x19d208=_0x483aae['createPositionBefore'](_0x148ea3);for(let _0x5747b2=0x0;_0x5747b2<_0x2d800b['length'];_0x5747b2++){const _0x30e23d=_0x2d800b[_0x5747b2],_0x448bda=_0x483aae['createPositionBefore'](_0x30e23d['reference']);if('before'===_0x19d208['compareWith'](_0x448bda))return _0x5747b2;}const _0x14d1e8=_0x148ea3['root'];let _0x4870ff=-0x1;for(let _0x1354d9=_0x2d800b['length']-0x1;_0x1354d9>=0x0;_0x1354d9--)if(_0x2d800b[_0x1354d9]['reference']['root']===_0x14d1e8){_0x4870ff=_0x1354d9;break;}if(-0x1!==_0x4870ff)return _0x4870ff+0x1;const _0xc3503e=_0x483aae['document']['getRootNames'](),_0x9975b8=_0xc3503e['indexOf'](_0x14d1e8['rootName']),_0x242c81=_0xc3503e[_0x9975b8+0x1];if(_0x242c81){for(let _0x31bd33=0x0;_0x31bd33<_0x2d800b['length'];_0x31bd33++)if(_0x2d800b[_0x31bd33]['reference']['root']['rootName']===_0x242c81)return _0x31bd33;}return _0x2d800b['length'];}class w extends _0x48caf5{['refresh'](){const _0x351d2f=this['editor']['model']['document']['selection'],_0x5f2fc4=this['_getPositionToInsertFootnote'](_0x351d2f);this['isEnabled']=!!_0x5f2fc4;}['execute'](_0x2e0c45){const {editor:_0x170be3}=this,{model:_0x4499e4}=_0x170be3,{selection:_0x2afe11}=_0x4499e4['document'],_0x2ff587=this['_getPositionToInsertFootnote'](_0x2afe11);if(!_0x2ff587)return;const _0x507fbc=_0x170be3['plugins']['get']('FootnotesEditing'),_0x1abf6b=_0x2e0c45?.['footnoteId']??_0x33024d();!function(_0x29c662){return'string'==typeof _0x29c662&&_0x29c662['length']>0x0&&!/\s/['test'](_0x29c662)&&!/^\d/['test'](_0x29c662);}(_0x1abf6b)?_0x5baafc('insert-footnote-command-executed-with-invalid-id'):(_0x4499e4['change'](_0x9f1b45=>{const _0x1d6875=_0x9f1b45['createElement']('footnoteRef',{'footnoteId':_0x1abf6b});_0x4499e4['insertObject'](_0x1d6875,_0x2ff587,null);}),_0x507fbc['_moveSelectionToFootnoteDefinition'](_0x1abf6b));}['_getPositionToInsertFootnote'](_0x56eecf){const {model:_0xbce467}=this['editor'],{schema:_0x3a70f0}=_0xbce467,_0x23d41f=_0x56eecf['getFirstRange']();for(const _0x3891c0 of _0x23d41f['getItems']())if(_0x3a70f0['isBlock'](_0x3891c0)||_0x3a70f0['isObject'](_0x3891c0))return null;const _0x23f230=_0x23d41f['end'];return _0x3a70f0['checkChild'](_0x23f230,'footnoteRef')?_0x23f230:null;}}class r extends _0xd3a18c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x197959}=this;_0x197959['config']['define']('footnotes.multiBlock',!0x0),_0x197959['commands']['add']('insertFootnote',new w(_0x197959)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2baab5){const _0x35c465=_0x372b6e([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]),_0x4c734c=0x47a28506,_0x471189=0x47a5f2c6^_0x4c734c,_0x38f8ba=window[_0x372b6e([0x44,0x61,0x74,0x65])][_0x372b6e([0x6e,0x6f,0x77])](),_0x2b5c5e=_0x2baab5[_0x372b6e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5060ea=new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaedcc0=>{_0x2b5c5e[_0x372b6e([0x6f,0x6e,0x63,0x65])](_0x372b6e([0x72,0x65,0x61,0x64,0x79]),_0xaedcc0);}),_0x33eba7={[_0x372b6e([0x6b,0x74,0x79])]:_0x372b6e([0x45,0x43]),[_0x372b6e([0x75,0x73,0x65])]:_0x372b6e([0x73,0x69,0x67]),[_0x372b6e([0x63,0x72,0x76])]:_0x372b6e([0x50,0x2d,0x32,0x35,0x36]),[_0x372b6e([0x78])]:_0x372b6e([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]),[_0x372b6e([0x79])]:_0x372b6e([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]),[_0x372b6e([0x61,0x6c,0x67])]:_0x372b6e([0x45,0x53,0x32,0x35,0x36])},_0x1437bf=_0x2b5c5e[_0x372b6e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x372b6e([0x67,0x65,0x74])](_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f187c(){let _0x3f4a9e,_0x5ae943=null,_0x2d8630=null;try{if(_0x1437bf==_0x372b6e([0x47,0x50,0x4c]))return _0x372b6e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f4a9e=_0x46d3e2(),!_0x3f4a9e)return _0x372b6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f4a9e[_0x372b6e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d8630=_0x552008(_0x3f4a9e[_0x372b6e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f4a9e[_0x372b6e([0x6a,0x74,0x69])])),await _0xdf716b()?_0x2641d4()?_0x47996e()?_0x372b6e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5dc05f()?(_0x3f4a9e[_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x372b6e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ae943=_0x4b7175(_0x372b6e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f4a9e[_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x372b6e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ae943=_0x4b7175(_0x372b6e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4db088()):_0x372b6e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x372b6e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x372b6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x372b6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47996e(){const _0x3f1aee=[_0x372b6e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x372b6e([0x74,0x72,0x69,0x61,0x6c])][_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4a9e[_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38f8ba/0x3e8:0xe10*_0x471189;return _0x3f4a9e[_0x372b6e([0x65,0x78,0x70])]<_0x3f1aee;}function _0x2641d4(){const _0x42d4a5=_0x3f4a9e[_0x372b6e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42d4a5&&(!!_0x42d4a5[_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x372b6e([0x2a]))||!!_0x42d4a5[_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x372b6e([0x46,0x4f,0x4f])));}function _0x5dc05f(){const _0x54f6dd=_0x3f4a9e[_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54f6dd||0x0==_0x54f6dd[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25059e}=new URL(window[_0x372b6e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54f6dd[_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25059e))return!0x0;const _0x533ed8=_0x25059e[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])](_0x372b6e([0x2e]));return _0x54f6dd[_0x372b6e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5310ca=>_0x5310ca[_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x372b6e([0x2a])))[_0x372b6e([0x6d,0x61,0x70])](_0x11c549=>_0x11c549[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])](_0x372b6e([0x2e])))[_0x372b6e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13a921=>_0x13a921[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x533ed8[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x372b6e([0x6d,0x61,0x70])](_0x2c863f=>Array(_0x533ed8[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c863f[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x372b6e([0x66,0x69,0x6c,0x6c])](_0x2c863f[0x0]===_0x372b6e([0x2a])?_0x372b6e([0x2a]):'')[_0x372b6e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c863f))[_0x372b6e([0x73,0x6f,0x6d,0x65])](_0x245fd1=>_0x533ed8[_0x372b6e([0x65,0x76,0x65,0x72,0x79])]((_0x2843fc,_0x17c12b)=>_0x245fd1[_0x17c12b]===_0x2843fc||_0x245fd1[_0x17c12b]===_0x372b6e([0x2a])));}function _0x4db088(){return _0x5ae943&&_0x2d8630?new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ae57d,_0xcc6690)=>{_0x5ae943[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x3ae57d,_0xcc6690),_0x2d8630[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x59a65a=>{_0x59a65a!=_0x372b6e([0x56,0x61,0x6c,0x69,0x64])&&_0x3ae57d(_0x59a65a);},_0xcc6690);}):_0x5ae943||_0x2d8630||_0x372b6e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x552008(_0x1fde9a,_0x13b2d3){return new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3327bc=>{if(_0x31f9cf())return _0x3327bc(_0x372b6e([0x56,0x61,0x6c,0x69,0x64]));_0x3dfa75(),_0x2b5c5e[_0x372b6e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x372b6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dd6db=!0x1;const _0x166bdf=_0x33024d();function _0x357d52(_0x336cb5){return!!_0x336cb5&&(typeof _0x336cb5===_0x372b6e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x336cb5===_0x372b6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x336cb5[_0x372b6e([0x74,0x68,0x65,0x6e])]===_0x372b6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x336cb5[_0x372b6e([0x63,0x61,0x74,0x63,0x68])]===_0x372b6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x313c98(_0x321b24){_0x51511e(_0x321b24)[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x29a8ae=>{if(!_0x29a8ae||_0x29a8ae[_0x372b6e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x372b6e([0x6f,0x6b]))return _0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28a98b(_0x1e06bb(_0x166bdf+_0x13b2d3))!=_0x29a8ae[_0x372b6e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x372b6e([0x56,0x61,0x6c,0x69,0x64]);})[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x4efcf7=>(_0x284a1(),_0x4efcf7),()=>{const _0x494185=_0x202285();return null==_0x494185?(_0x284a1(),_0x372b6e([0x56,0x61,0x6c,0x69,0x64])):_0x372b6e(_0x38f8ba-_0x494185>(0x63ae0106^_0x4c734c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x3327bc)[_0x372b6e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3327bc(_0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21925a=0x47946b86^_0x4c734c;function _0x284a1(){const _0x1cbbfc=_0x372b6e([0x6c,0x6c,0x63,0x74,0x2d])+_0x28a98b(_0x1e06bb(_0x1fde9a)),_0x5b0fb3=_0x3c41c9(_0x28a98b(window[_0x372b6e([0x4d,0x61,0x74,0x68])][_0x372b6e([0x63,0x65,0x69,0x6c])](_0x38f8ba/_0x21925a)));window[_0x372b6e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x372b6e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cbbfc,_0x5b0fb3);}function _0x202285(){const _0x35d33c=_0x372b6e([0x6c,0x6c,0x63,0x74,0x2d])+_0x28a98b(_0x1e06bb(_0x1fde9a)),_0x5246d7=window[_0x372b6e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x372b6e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35d33c);return _0x5246d7?window[_0x372b6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c41c9(_0x5246d7),0x10)*_0x21925a:null;}function _0x51511e(_0x2d6151){return new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48f3ea,_0x567162)=>{_0x2d6151[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x48f3ea,_0x567162),window[_0x372b6e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x567162,0x47a351c6^_0x4c734c);});}}_0x2b5c5e[_0x372b6e([0x6f,0x6e])](_0x372b6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4acfc4,_0x10e962)=>{if(_0x10e962[0x0]!=_0x1fde9a)return _0x3327bc(_0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10e962[0x1]={..._0x10e962[0x1],[_0x372b6e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x166bdf};},{[_0x372b6e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x372b6e([0x68,0x69,0x67,0x68])}),_0x2b5c5e[_0x372b6e([0x6f,0x6e])](_0x372b6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45a46d=>{_0x357d52(_0x45a46d[_0x372b6e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dd6db=!0x0,_0x313c98(_0x45a46d[_0x372b6e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x372b6e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x372b6e([0x6c,0x6f,0x77])}),_0x5060ea[_0x372b6e([0x74,0x68,0x65,0x6e])](()=>{_0x4dd6db||_0x3327bc(_0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31f9cf(){return _0x2b5c5e[_0x372b6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x372b6e([0x76,0x69,0x65,0x77])][_0x372b6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x372b6e([0x61,0x75,0x74,0x6f]);}function _0x3dfa75(){_0x2b5c5e[_0x372b6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x372b6e([0x76,0x69,0x65,0x77])][_0x372b6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x372b6e([0x61,0x75,0x74,0x6f]);}}function _0x4b7175(_0x2f03b2){const _0x5bca41=[new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110b54=>setTimeout(_0x110b54,0x47abbbca^_0x4c734c)),_0x5060ea[_0x372b6e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x592c46=>{let _0x5c4945=0x0;_0x2b5c5e[_0x372b6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x372b6e([0x6f,0x6e])](_0x372b6e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f42ad,_0x2203d6)=>{_0x2203d6[0x0][_0x372b6e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c4945++,_0x5c4945==(0x47a284fe^_0x4c734c)&&(_0x592c46(),_0x5f42ad[_0x372b6e([0x6f,0x66,0x66])]());});}))];return window[_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x372b6e([0x72,0x61,0x63,0x65])](_0x5bca41)[_0x372b6e([0x74,0x68,0x65,0x6e])](()=>_0x2f03b2);}async function _0x472690(){await _0x5060ea,_0x2b5c5e[_0x372b6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x372b6e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44cc27,_0x2b5c5e[_0x372b6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x372b6e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44cc27,_0x2b5c5e[_0x372b6e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x372b6e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d7f7f(_0x4e18e7){const _0x3c393a=_0x3a1543();_0x2b5c5e[_0x3c393a]=_0x372b6e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e18e7,_0x4e18e7!=_0x372b6e([0x56,0x61,0x6c,0x69,0x64])&&_0x472690();}function _0x3a1543(){const _0x5a0215=window[_0x372b6e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x372b6e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x372b6e([0x6e,0x6f,0x77])]())[_0x372b6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x372b6e([0x2e]),'');let _0x546be3=_0x372b6e([0x75]);for(let _0x29c294=0x0;_0x29c294<_0x5a0215[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29c294+=0x2){let _0x2e595f=window[_0x372b6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a0215[_0x372b6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29c294,_0x29c294+0x2));_0x2e595f>=_0x35c465[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e595f-=_0x35c465[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x546be3+=_0x35c465[_0x2e595f];}return _0x546be3;}function _0x46d3e2(){const _0x579b40=_0x1437bf[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])](_0x372b6e([0x2e]));if(0x3!=_0x579b40[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f72d5(_0x579b40[0x1]);function _0x3f72d5(_0x550b2f){const _0x4c86b5=_0x40a8f2(_0x550b2f);return _0x4c86b5&&_0x19a1b3()?_0x4c86b5:null;function _0x19a1b3(){const _0x48465e=_0x4c86b5[_0x372b6e([0x6a,0x74,0x69])],_0x3b2146=window[_0x372b6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48465e[_0x372b6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48465e[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f76d5={..._0x4c86b5,[_0x372b6e([0x6a,0x74,0x69])]:_0x48465e[_0x372b6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48465e[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f76d5[_0x372b6e([0x76,0x63])],_0x1e06bb(_0x1f76d5)==_0x3b2146;}}}async function _0xdf716b(){let _0x4bf1ee=!0x0;try{const _0x4820fe=_0x1437bf[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])](_0x372b6e([0x2e])),[_0x1362a8,_0x16b896,_0x5b70ab]=_0x4820fe;return _0x29ae4b(_0x1362a8),await _0x11067a(_0x1362a8,_0x16b896,_0x5b70ab),_0x4bf1ee;}catch{return!0x1;}function _0x29ae4b(_0x5dd0b7){const _0x6b9586=_0x40a8f2(_0x5dd0b7);_0x6b9586&&_0x6b9586[_0x372b6e([0x61,0x6c,0x67])]==_0x372b6e([0x45,0x53,0x32,0x35,0x36])||(_0x4bf1ee=!0x1);}async function _0x11067a(_0x33f522,_0x2834c8,_0x4a6678){const _0x58a27b=window[_0x372b6e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x372b6e([0x66,0x72,0x6f,0x6d])](_0x29d061(_0x4a6678),_0x4d2233=>_0x4d2233[_0x372b6e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e14e8=new window[(_0x372b6e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x372b6e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33f522+_0x372b6e([0x2e])+_0x2834c8),_0x3bf34c=window[_0x372b6e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x372b6e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bf34c)return;const _0x1a98c1=await _0x3bf34c[_0x372b6e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x372b6e([0x6a,0x77,0x6b]),_0x33eba7,{[_0x372b6e([0x6e,0x61,0x6d,0x65])]:_0x372b6e([0x45,0x43,0x44,0x53,0x41]),[_0x372b6e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x372b6e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x372b6e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bf34c[_0x372b6e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x372b6e([0x6e,0x61,0x6d,0x65])]:_0x372b6e([0x45,0x43,0x44,0x53,0x41]),[_0x372b6e([0x68,0x61,0x73,0x68])]:{[_0x372b6e([0x6e,0x61,0x6d,0x65])]:_0x372b6e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a98c1,_0x58a27b,_0x2e14e8)||(_0x4bf1ee=!0x1);}}function _0x40a8f2(_0x32bee3){return _0x32bee3[_0x372b6e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x372b6e([0x65,0x79]))?JSON[_0x372b6e([0x70,0x61,0x72,0x73,0x65])](_0x29d061(_0x32bee3)):null;}function _0x29d061(_0x4e8537){return window[_0x372b6e([0x61,0x74,0x6f,0x62])](_0x4e8537[_0x372b6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x372b6e([0x2b]))[_0x372b6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x372b6e([0x2f])));}function _0x1e06bb(_0x42c228){let _0x4735bc=0x1505;function _0x479bf7(_0x21c483){for(let _0x4e6b61=0x0;_0x4e6b61<_0x21c483[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e6b61++){const _0xeacc32=_0x21c483[_0x372b6e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e6b61);_0x4735bc=(_0x4735bc<<0x5)+_0x4735bc+_0xeacc32,_0x4735bc&=_0x4735bc;}}function _0x35d5ce(_0x4702a7){Array[_0x372b6e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4702a7)?_0x4702a7[_0x372b6e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35d5ce):_0x4702a7&&typeof _0x4702a7==_0x372b6e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x372b6e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4702a7)[_0x372b6e([0x73,0x6f,0x72,0x74])]()[_0x372b6e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e0733,_0xf07c4f])=>{_0x479bf7(_0x5e0733),_0x35d5ce(_0xf07c4f);}):_0x479bf7(window[_0x372b6e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4702a7));}return _0x35d5ce(_0x42c228),_0x4735bc>>>0x0;}function _0x28a98b(_0x3bac23){return _0x3bac23[_0x372b6e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x372b6e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x372b6e([0x30]));}function _0x3c41c9(_0x119f5e){return _0x119f5e[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x372b6e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x372b6e([0x6a,0x6f,0x69,0x6e])]('');}function _0x44cc27(){}function _0x372b6e(_0xd023e){return _0xd023e['map'](_0x240a71=>String['fromCharCode'](_0x240a71))['join']('');}_0x2d7f7f(await _0x3f187c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x36ddb9){const {plugins:_0x1a67ad,editing:_0x933c63,model:_0x20085d}=this['editor'],_0xbc75e8=_0x1a67ad['get'](c)['getFootnote'](_0x36ddb9);return!!_0xbc75e8&&(_0x20085d['change'](_0x5d70e8=>{_0x5d70e8['setSelection'](_0x5d70e8['createPositionAt'](_0xbc75e8['definition'],'end'));}),_0x933c63['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2d0e66){const {plugins:_0x544126,editing:_0x5dc6de,model:_0x4c04d6}=this['editor'],_0x2a8673=_0x544126['get'](c)['getFootnote'](_0x2d0e66);return!!_0x2a8673&&(_0x4c04d6['change'](_0x58efb0=>{_0x58efb0['setSelection'](_0x2a8673['reference'],'on');}),_0x5dc6de['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x13a457}=this['editor']['model'],_0x3fadc7=this['editor']['config']['get']('footnotes.multiBlock');_0x13a457['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x13a457['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x13a457['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3fadc7?_0x13a457['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x13a457['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x13a457['addChildCheck'](_0x572bb8=>{for(const _0x42e0fb of _0x572bb8)if('footnoteDefinition'===_0x42e0fb['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4e45dc}=this,{conversion:_0x352de8,editing:_0x29cdac}=_0x4e45dc,{t:t}=_0x4e45dc['locale'];_0x352de8['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xa7ffd0,{writer:_0x333dd5,consumable:_0x5343a3})=>{const _0x5c88ea=_0xa7ffd0['getChild'](0x0);if(!_0x5c88ea||!_0x5c88ea['is']('element','a'))return null;const _0x88cafa=_0x5c88ea['getAttribute']('href')||'';if(!_0x88cafa['startsWith']('#'))return null;const _0x586cd9=_0x88cafa['replace'](/^#/,'');if(!_0x586cd9)return null;_0x5343a3['consume'](_0x5c88ea,{'name':!0x0,'attributes':['href']});for(const {item:_0x1513c3}of _0x29cdac['view']['createRangeIn'](_0x5c88ea))_0x1513c3['is']('$textProxy')?_0x5343a3['consume'](_0x1513c3['textNode'],{'name':!0x0}):_0x1513c3['is']('element')&&_0x5343a3['consume'](_0x1513c3,{'name':!0x0});return _0x333dd5['createElement']('footnoteRef',{'footnoteId':_0x586cd9});}}),_0x352de8['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19219f,{writer:_0x32d078})=>D(_0x19219f,_0x32d078)}),_0x352de8['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x40eda3,{writer:_0xedc50a})=>{const _0x520190=_0x40eda3['getAttribute']('footnoteCounter');return _0x13c244(D(_0x40eda3,_0xedc50a),_0xedc50a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x520190)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3e55bd}=this,{t:t}=_0x3e55bd['locale'],{conversion:_0x4f0f48}=_0x3e55bd;_0x4f0f48['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4f0f48['for']('upcast')['add'](_0x101b23=>{_0x101b23['on']('element:ol',(_0x5a4da9,_0x2752bf,_0x38e621)=>{const _0xca3f2f=_0x2752bf['viewItem'];if(!_0xca3f2f['hasClass']('footnotes-list')||!_0x2752bf['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x38e621['consumable']['consume'](_0xca3f2f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x132a86,modelCursor:_0x157758}=_0x38e621['convertChildren'](_0x2752bf['viewItem'],_0x2752bf['modelCursor']);_0x2752bf['modelRange']=_0x132a86,_0x2752bf['modelCursor']=_0x157758;}),_0x101b23['on']('element:hr',(_0x11eb00,_0x51b35c,_0x4b8a5b)=>{const _0x36f1cf=_0x51b35c['viewItem'];_0x36f1cf['hasClass']('footnotes-divider')&&_0x51b35c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4b8a5b['consumable']['consume'](_0x36f1cf,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4f0f48['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x420b50,{writer:_0x434d58})=>g(_0x434d58)}),_0x4f0f48['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x209409,{writer:_0x1e34b0})=>{const _0x37d367=g(_0x1e34b0,{'data-footnotes-list-label':t('Footnotes')}),_0x410507=_0x13c244(_0x37d367,_0x1e34b0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1e34b0['setCustomProperty']('footnotesDefinitions',!0x0,_0x410507),_0x410507;}});}['_defineDefinitionConverters'](){const {editor:_0x199fed}=this,{conversion:_0x33eec2,locale:_0x21af0d}=_0x199fed,_0x3f03b7=_0x199fed['config']['get']('footnotes.multiBlock');_0x33eec2['for']('upcast')['add'](_0x36143e=>{_0x36143e['on']('element:li',(_0x10bddd,_0x52c1a8,_0x3306fa)=>{const _0x52cb21=_0x52c1a8['viewItem'];if(!_0x52cb21['hasClass']('footnote-definition')||!_0x52cb21['getAttribute']('id'))return;const _0x359207=_0x52cb21['parent'];if(!_0x359207['is']('element','ol')||!_0x359207['hasClass']('footnotes-list'))return;if(!_0x3306fa['consumable']['test'](_0x52cb21,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x513fe1=_0x3306fa['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x52cb21['getAttribute']('id')});if(!_0x3306fa['safeInsert'](_0x513fe1,_0x52c1a8['modelCursor']))return;_0x3306fa['consumable']['consume'](_0x52cb21,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x260e9d=Array['from'](_0x52cb21['getChildren']())['find'](_0x3a72ba=>_0x3a72ba['is']('element')&&_0x3a72ba['hasClass']('footnote-content'));for(const _0x3c16ac of _0x52cb21['getChildren']())_0x3c16ac['is']('element')&&(_0x3306fa['consumable']['consume'](_0x3c16ac,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3306fa['consumable']['consume'](_0x3c16ac,{'name':!0x0,'classes':'footnote-content'}));if(_0x260e9d){if(_0x3f03b7)_0x3306fa['convertChildren'](_0x260e9d,_0x513fe1);else{const _0x78d78f=_0x3306fa['writer']['createElement']('footnoteInlineContent');_0x3306fa['writer']['insert'](_0x78d78f,_0x513fe1),_0x3306fa['convertChildren'](_0x260e9d,_0x78d78f);}}_0x3306fa['updateConversionResult'](_0x513fe1,_0x52c1a8);});}),_0x33eec2['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3625c5,{writer:_0x55075f})=>v(_0x3625c5,_0x55075f,_0x21af0d,{'dataPipeline':!0x0})}),_0x33eec2['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x507937,{writer:_0x2a0dbe})=>v(_0x507937,_0x2a0dbe,_0x21af0d)});}['_defineBogusParagraphConverters'](){const {editor:_0x2059f7}=this,{conversion:_0x42ccbb}=_0x2059f7;_0x2059f7['config']['get']('footnotes.multiBlock')?(_0x42ccbb['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x42ccbb['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2059f7['model']['document'],'change:data',()=>{!function(_0x2993d4,_0x283329){const _0x255479=_0x2993d4['document']['differ'],_0x4bc594=new Set();for(const _0x2528c3 of _0x255479['getChanges']()){const _0x18582b='attribute'==_0x2528c3['type']?_0x2528c3['range']['start']['parent']:_0x2528c3['position']['parent'];_0x18582b['is']('element','footnoteDefinition')&&_0x4bc594['add'](_0x18582b);}for(const _0x21f85e of _0x4bc594['values']()){const _0x507563=Array['from'](_0x21f85e['getChildren']())['filter'](_0x18a217=>p(_0x18a217,_0x283329['mapper']));for(const _0x1bedc2 of _0x507563)_0x283329['reconvertItem'](_0x1bedc2);}}(_0x2059f7['model'],_0x2059f7['editing']);})):(_0x42ccbb['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x42ccbb['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4cf9aa,{writer:_0x2d6f64})=>{const _0x51d3fc=_0x2d6f64['createContainerElement']('span');return _0x2d6f64['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x51d3fc),_0x51d3fc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5b50f4}=this,{editing:_0x22ad99,t:t}=_0x5b50f4,_0x379639=_0x5b50f4['model']['document']['selection'];_0x5b50f4['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5b50f4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x22ad99['view']['document'],'enter',(_0x29d836,_0x320737)=>{const _0x46e48e=function(_0x340c22){const _0x13625d=_0x340c22['getSelectedElement']();if(_0x13625d?.['is']('element','footnoteRef'))return _0x13625d;return null;}(_0x379639);if(_0x46e48e){const _0x3c57bd=_0x46e48e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3c57bd),_0x320737['preventDefault'](),_0x29d836['stop']();}},{'context':_0x51e66b});}['_defineClickHandlers'](){const {editor:_0x1c5c25}=this,{editing:_0x5e4d65}=_0x1c5c25;_0x1c5c25['editing']['view']['addObserver'](_0x28117e),_0x1c5c25['editing']['view']['addObserver'](_0x4a3d73);let _0x13ce07=!0x1;this['listenTo'](_0x5e4d65['view']['document'],'pointerdown',(_0x1568af,_0x50ca94)=>{const {target:_0x5c43a2}=_0x50ca94,_0x5457cf=_0x5e4d65['view']['document']['selection'];_0x13ce07=!!(_0x5c43a2['is']('element','a')&&_0x5c43a2['parent']?.['is']('element','sup')&&_0x5c43a2['parent']['hasClass']('footnote'))&&_0x5457cf['getSelectedElement']()===_0x5c43a2['parent'];},{'priority':'high'}),this['listenTo'](_0x5e4d65['view']['document'],'click',(_0x7822c5,_0xab6e9a)=>{const {target:_0x32de96}=_0xab6e9a;if(!_0x32de96['is']('element','a'))return;if(_0x32de96['parent']?.['is']('element','sup')&&_0x32de96['parent']['hasClass']('footnote')&&!_0x13ce07)return void _0xab6e9a['preventDefault']();let _0x167fa5=_0x32de96['getAttribute']('href');if(!_0x167fa5?.['startsWith']('#'))return;_0x167fa5=_0x167fa5['slice'](0x1);let _0x34b21b=!0x1;(_0x167fa5['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x167fa5['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x167fa5))&&(_0x34b21b=!0x0),_0x34b21b&&(_0xab6e9a['preventDefault'](),_0x7822c5['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0xcf0f6e}={}){return(_0x2abb2c,{writer:_0x3e8a1e})=>{if(!h(_0x2abb2c))return null;if(!_0xcf0f6e)return _0x3e8a1e['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xe7c5d7=_0x3e8a1e['createContainerElement']('p');return _0x3e8a1e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xe7c5d7),_0xe7c5d7;};}function h(_0x3392ad){const {parent:_0x5a1c38}=_0x3392ad;if(!_0x5a1c38?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5a1c38['childCount'])return!0x1;for(const _0x557b8f of _0x3392ad['getAttributeKeys']())if(!_0x557b8f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x557b8f)return!0x1;return!0x0;}function p(_0x44ab37,_0x3c5458){if(!_0x44ab37['is']('element','paragraph'))return!0x1;const _0x5791f1=_0x3c5458['toViewElement'](_0x44ab37);return!!_0x5791f1&&h(_0x44ab37)!==_0x5791f1['is']('element','span');}function J(_0x55c30f){return _0x51e66b(_0x55c30f)&&_0x55c30f['is']('containerElement')&&!!_0x55c30f['getCustomProperty']('footnotesDefinitions');}function g(_0x22fbd6,_0x41e34a={}){const _0x45aa21=_0x22fbd6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1c33e6=_0x22fbd6['createContainerElement']('ol',{'class':'footnotes-list'},_0x22fbd6['createSlot']());return _0x22fbd6['createContainerElement']('div',{'class':'footnotes',..._0x41e34a},[_0x45aa21,_0x1c33e6]);}function D(_0x2ee930,_0x120785){const _0x270ee=_0x2ee930['getAttribute']('footnoteId'),_0x3fe8c6=_0x2ee930['getAttribute']('footnoteCounter'),_0x6cf847=_0x120785['createUIElement']('a',{'href':'#'+_0x270ee},function(_0x5332af){const _0x416daa=this['toDomElement'](_0x5332af);return _0x416daa['textContent']=_0x3fe8c6,_0x416daa;}),_0x1e75dd=_0x120785['createContainerElement']('sup',{'id':'ref-'+_0x270ee,'class':'footnote'},[_0x6cf847]);return _0x1e75dd['getFillerOffset']=()=>null,_0x1e75dd;}function v(_0x15c1e2,_0x1761ea,_0x237442,{dataPipeline:_0x470bfe}={}){const {t:t}=_0x237442,_0x3a2c9b=_0x15c1e2['getAttribute']('footnoteId'),_0x2a2e1d=_0x1761ea['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3a2c9b},function(_0xcf1adc){const _0xc8e464=this['toDomElement'](_0xcf1adc);return _0xc8e464['innerText']='^',_0xc8e464;}),_0x276cf2=_0x470bfe?_0x1761ea['createContainerElement']('div',{'class':'footnote-content'}):_0x35b21c(_0x1761ea['createEditableElement']('div',{'class':'footnote-content'}),_0x1761ea,{'label':t('Footnote\x20content.')});return _0x1761ea['insert'](_0x1761ea['createPositionAt'](_0x276cf2,0x0),_0x1761ea['createSlot']()),_0x1761ea['createContainerElement']('li',{'class':'footnote-definition','id':_0x3a2c9b},[_0x2a2e1d,_0x276cf2]);}class e extends _0xd3a18c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1a3aaf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3650f5}=this,{plugins:_0x47ac5f,model:_0xe8b4ec}=_0x3650f5,_0x446471=_0x47ac5f['get'](_0x1a3aaf),_0x340be1=_0x47ac5f['get'](c);this['listenTo'](_0x446471,'outputTransformation',(_0x322420,_0x38b8f0)=>{const _0x32aeb6=function(_0x341af1,_0x466dff){const _0x3f9e58=new Set();for(const {item:_0x135575}of _0x341af1['createRangeIn'](_0x466dff))_0x135575['is']('element','footnoteRef')&&_0x3f9e58['add'](_0x135575['getAttribute']('footnoteId'));return Array['from'](_0x3f9e58);}(_0xe8b4ec,_0x38b8f0['content']);if(!_0x32aeb6['length'])return;const _0xd75168=_0x340be1['getFootnotes'](),_0x8939d4=_0x32aeb6['reduce']((_0x5c4cf8,_0x2fac80)=>{const _0x541aa9=_0xd75168['find'](_0x256e43=>_0x256e43['id']===_0x2fac80);if(_0x541aa9){const _0x51d8e3=_0x3650f5['data']['toView'](_0x541aa9['definition'],{'isClipboardPipeline':!0x0}),_0x766374=_0x3650f5['data']['htmlProcessor']['toData'](_0x51d8e3);_0x5c4cf8[_0x541aa9['id']]=_0x766374;}return _0x5c4cf8;},Object['create'](null));_0x38b8f0['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x8939d4));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5d8e67}=this,{model:_0x277313,plugins:_0x18b54d}=_0x5d8e67,{view:_0x59976c}=_0x5d8e67['editing'],_0x2b6ef0=_0x18b54d['get'](_0x1a3aaf),_0x4d16d7=_0x18b54d['get'](c);let _0x17867c=null;this['listenTo'](_0x59976c['document'],'clipboardInput',(_0xeeea2f,_0x2394b6)=>{const _0x1f274d=_0x2394b6['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x17867c=_0x1f274d?JSON['parse'](_0x1f274d):null;}),this['listenTo'](_0x2b6ef0,'contentInsertion',(_0x5e9bc7,_0x4dffaf)=>{if(!_0x17867c)return;const _0x5bad42=_0x4dffaf['sourceEditorId']===this['editor']['id'];_0x5bad42&&'drop'===_0x4dffaf['method']||_0x277313['change'](_0x3d5fce=>{!function(_0x72d5dd,_0x2ce0e1){const _0x481100=[];for(const {item:_0x465acf}of _0x72d5dd['createRangeIn'](_0x2ce0e1))_0x465acf['is']('element','footnotesDefinitions')&&_0x481100['push'](_0x465acf);for(const _0x5546a0 of _0x481100)_0x72d5dd['remove'](_0x5546a0);}(_0x3d5fce,_0x4dffaf['content']);let _0x535206=_0x4d16d7['getFootnotesDefinitionsObjectElement']();if(!_0x535206){const _0x11d1d1=_0x277313['document']['selection']['getFirstRange']()['root'];_0x535206=_0x4d16d7['_insertEmptyFootnotesDefinitionsContainer'](_0x3d5fce,_0x11d1d1);}const _0x21e862=function(_0x4f18fb,_0x36ad4c,_0x3b896a){const _0x52e693=Object['create'](null);for(const {item:_0x3aa938}of _0x4f18fb['createRangeIn'](_0x36ad4c))if(_0x3aa938['is']('element','footnoteRef')){const _0x42fb9f=_0x3aa938['getAttribute']('footnoteId');if(!_0x3b896a(_0x42fb9f))continue;_0x52e693[_0x42fb9f]||(_0x52e693[_0x42fb9f]=_0x33024d()),_0x4f18fb['setAttribute']('footnoteId',_0x52e693[_0x42fb9f],_0x3aa938);}return _0x52e693;}(_0x3d5fce,_0x4dffaf['content'],_0x5a48e3=>!_0x5bad42||null!==_0x4d16d7['getFootnote'](_0x5a48e3));for(const [_0x4e3996,_0x333bdc]of Object['entries'](_0x17867c)){const _0xcc5ac=_0x21e862[_0x4e3996]||_0x4e3996,_0x2359a6=_0x3d5fce['createElement']('footnoteDefinition',{'footnoteId':_0xcc5ac}),_0x489006=_0x5d8e67['data']['htmlProcessor']['toView'](_0x333bdc),_0x4f8cd3=_0x5d8e67['data']['toModel'](_0x489006,_0x2359a6);_0x3d5fce['append'](_0x4f8cd3,_0x2359a6),_0x3d5fce['insert'](_0x2359a6,_0x535206,'end');}_0x17867c=null;});});}}class i extends _0xd3a18c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d7c63}=this,{componentFactory:_0x259eb6}=_0x3d7c63['ui'];_0x259eb6['add']('insertFootnote',x(_0x3d7c63,_0x597e22)),_0x259eb6['add']('menuBar:insertFootnote',x(_0x3d7c63,_0x1b0814)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x14e79d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x76d254;for(const _0x2b1e00 in _0x14e79d){const _0x5953f4=_0x2b1e00,_0xd69602=_0x14e79d[_0x5953f4];if('footnotesLicenseKeyValid'==_0xd69602||'footnotesLicenseKeyInvalid'==_0xd69602||'footnotesLicenseKeyExpired'==_0xd69602||'footnotesLicenseKeyDomainLimit'==_0xd69602||'footnotesLicenseKeyNotAllowed'==_0xd69602||'footnotesLicenseKeyEvaluationLimit'==_0xd69602||'footnotesLicenseKeyTrialLimit'==_0xd69602||'footnotesLicenseKeyUsageLimit'==_0xd69602){delete _0x14e79d[_0x5953f4],_0x76d254=_0xd69602,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x76d254&&_0x14e79d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x76d254&&_0x14e79d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x76d254&&_0x14e79d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x76d254&&_0x14e79d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x76d254&&_0x14e79d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x76d254&&_0x14e79d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x76d254&&_0x14e79d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x2abda5,_0x445cc3){const _0x3ed830=_0x2abda5['commands']['get']('insertFootnote');return _0x22c3ea=>{const {t:t}=_0x22c3ea,_0x535316=new _0x445cc3(_0x22c3ea),_0x4d2bf7=_0x535316 instanceof _0x1b0814;return _0x535316['bind']('isEnabled')['to'](_0x3ed830,'isEnabled'),_0x535316['set']({'label':t(_0x4d2bf7?'Footnote':'Insert\x20footnote'),'icon':_0xdd0539,'tooltip':!0x0}),_0x535316['on']('execute',()=>{_0x3ed830['execute'](),_0x2abda5['editing']['view']['focus']();}),_0x535316;};}class nt extends _0xd3a18c{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 _0x48caf5{['refresh'](){const {editor:_0x2906dc}=this,_0x3d90db=_0x2906dc['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3d90db,this['value']=_0x3d90db?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x12bc15}){const {editor:_0x2dbc4a}=this,_0xed3036=_0x2dbc4a['plugins']['get'](c),_0x4edfb4=_0xed3036['getFootnotesDefinitionsObjectElement']();_0x4edfb4&&Q['includes'](_0x12bc15)&&_0x2dbc4a['model']['change'](_0x24ee7d=>{_0x24ee7d['setAttribute']('footnotesListStyle',_0x12bc15,_0x4edfb4),_0xed3036['_updateFootnotesCounters'](_0x24ee7d);});}}class b extends _0x48caf5{['refresh'](){const {editor:_0x5180ff}=this,_0x320eb9=_0x5180ff['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x320eb9,this['value']=_0x320eb9?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x30980a}){const {editor:_0x1cfdc2}=this,_0x4ffddb=_0x1cfdc2['plugins']['get'](c),_0x4f4c75=_0x4ffddb['getFootnotesDefinitionsObjectElement']();_0x4f4c75&&Number['isInteger'](_0x30980a)&&_0x1cfdc2['model']['change'](_0x32fa4d=>{_0x32fa4d['setAttribute']('footnotesListStart',_0x30980a,_0x4f4c75),_0x4ffddb['_updateFootnotesCounters'](_0x32fa4d);});}}class P extends _0xd3a18c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x85ef07}=this;_0x85ef07['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x85ef07['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x85ef07['commands']['add']('footnotesStyle',new S(_0x85ef07)),_0x85ef07['commands']['add']('footnotesStart',new b(_0x85ef07)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x511857}=this,{schema:_0x13987d}=_0x511857['model'];_0x13987d['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x245d03}=this,{conversion:_0x309553,model:_0x1eba00}=_0x245d03,{schema:_0x12bff2}=_0x1eba00;_0x309553['for']('upcast')['add'](_0xcf5058=>{_0xcf5058['on']('element:ol',(_0x4b23f4,_0x39dd0d,_0x46a6dc)=>{const _0x4b3d05=_0x39dd0d['viewItem'],_0x49b3f5=_0x39dd0d['modelCursor']?.['parent'];_0x4b3d05['hasClass']('footnotes-list')&&_0x49b3f5?.['is']('element','footnotesDefinitions')&&(function(_0x4b4fc6,_0x34211f,_0x361ebf,_0x617a34){if(!_0x617a34['checkAttribute'](_0x34211f,'footnotesListStart'))return;let _0x26a889=0x1;const _0x328a50=_0x361ebf['consumable']['consume'](_0x4b4fc6,{'attributes':'start'});if(_0x328a50){const _0x32434e=Number['parseInt'](_0x4b4fc6['getAttribute']('start'),0xa);Number['isNaN'](_0x32434e)||(_0x26a889=_0x32434e);}!_0x328a50&&_0x34211f['hasAttribute']('footnotesListStart')||_0x361ebf['writer']['setAttribute']('footnotesListStart',_0x26a889,_0x34211f);}(_0x4b3d05,_0x49b3f5,_0x46a6dc,_0x12bff2),function(_0x2c7e7f,_0x404de4,_0x37bb41,_0x1d3e2f){if(!_0x1d3e2f['checkAttribute'](_0x404de4,'footnotesListStyle'))return;let _0x5cce03='decimal',_0x59c848=!0x1;if(_0x37bb41['consumable']['consume'](_0x2c7e7f,{'attributes':'type'})){const _0x50051c={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2c7e7f['getAttribute']('type')];_0x50051c&&(_0x5cce03=_0x50051c),_0x59c848=!0x0;}_0x37bb41['consumable']['consume'](_0x2c7e7f,{'styles':'list-style-type'})&&(_0x5cce03=_0x2c7e7f['getStyle']('list-style-type'),_0x59c848=!0x0),!_0x59c848&&_0x404de4['hasAttribute']('footnotesListStyle')||_0x37bb41['writer']['setAttribute']('footnotesListStyle',_0x5cce03,_0x404de4);}(_0x4b3d05,_0x49b3f5,_0x46a6dc,_0x12bff2));});}),_0x309553['for']('downcast')['add'](_0x1732d2=>{_0x1732d2['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5ae397,_0xd835e9,_0x48ec90)=>{if(!_0x48ec90['consumable']['consume'](_0xd835e9['item'],_0x5ae397['name']))return;const _0x2069b4=C(_0xd835e9['item'],_0x48ec90['mapper']),{attributeNewValue:_0x361916}=_0xd835e9;null==_0x361916||0x1===_0x361916?_0x48ec90['writer']['removeAttribute']('start',_0x2069b4):_0x48ec90['writer']['setAttribute']('start',String(_0x361916),_0x2069b4);}),_0x1732d2['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xc10bd4,_0x133acc,_0x38479e)=>{if(!_0x38479e['consumable']['consume'](_0x133acc['item'],_0xc10bd4['name']))return;const _0x5a3a7d=C(_0x133acc['item'],_0x38479e['mapper']),{attributeNewValue:_0x1eed4c}=_0x133acc;_0x1eed4c&&'decimal'!==_0x1eed4c?_0x38479e['writer']['setStyle']('list-style-type',_0x1eed4c,_0x5a3a7d):_0x38479e['writer']['removeStyle']('list-style-type',_0x5a3a7d);});});}['_definePostfixer'](){const {editor:_0x2aa8f5}=this,{model:_0x128eb2}=_0x2aa8f5,_0x5044ab=_0x2aa8f5['plugins']['get'](c),_0x1075e1=this['_getDefaultListStyle'](),_0x1b8565=this['_getDefaultStartIndex']();_0x128eb2['document']['registerPostFixer'](_0x29aa5f=>{const _0x3cd597=_0x128eb2['document']['differ']['getChanges']();let _0x4419c4=!0x1;for(const _0x326cd5 of _0x3cd597){if('insert'!==_0x326cd5['type']||'$text'===_0x326cd5['name'])continue;const _0x5b5230=_0x128eb2['createRangeOn'](_0x326cd5['position']['nodeAfter']);for(const _0xaadc8d of _0x5b5230['getItems']())_0xaadc8d['is']('element','footnotesDefinitions')&&(!_0xaadc8d['hasAttribute']('footnotesListStart')&&_0x128eb2['schema']['checkAttribute'](_0xaadc8d,'footnotesListStart')&&(_0x29aa5f['setAttribute']('footnotesListStart',_0x1b8565,_0xaadc8d),_0x4419c4=!0x0),!_0xaadc8d['hasAttribute']('footnotesListStyle')&&_0x128eb2['schema']['checkAttribute'](_0xaadc8d,'footnotesListStyle')&&(_0x29aa5f['setAttribute']('footnotesListStyle',_0x1075e1,_0xaadc8d),_0x4419c4=!0x0));}return _0x4419c4&&_0x5044ab['_updateFootnotesCounters'](_0x29aa5f),_0x4419c4;});}['_defineFormatter'](){const {editor:_0x530d34}=this;_0x530d34['plugins']['get'](c)['setFootnoteFormatter'](_0x5b347f=>this['_formatFootnoteListValue'](_0x5b347f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5e8c3a,value:_0x55b3f9,digits:_0x627cda}){const _0x52d134=_0x5e8c3a['getAttribute']('footnotesListStyle'),_0x434d23=_0x5e8c3a['getAttribute']('footnotesListStart'),_0x430b28=Math['floor'](_0x55b3f9)+(_0x434d23??0x1)-0x1;switch(_0x52d134){case'decimal-leading-zero':return function(_0x49b89d,_0x275076){return String(_0x49b89d)['padStart'](_0x275076,'0');}(_0x430b28,Math['max'](0x2,_0x627cda));case'lower-alpha':case'lower-latin':return M(_0x430b28,!0x1);case'upper-alpha':case'upper-latin':return M(_0x430b28,!0x0);case'lower-roman':return V(_0x430b28,!0x1);case'upper-roman':return V(_0x430b28,!0x0);default:return String(_0x430b28);}}}function C(_0x2851f6,_0x52c1c4){const _0x3ffdf4=_0x52c1c4['toViewElement'](_0x2851f6);return Array['from'](_0x3ffdf4['getChildren']())['find'](_0x932324=>_0x932324['is']('element','ol')&&_0x932324['hasClass']('footnotes-list'));}function M(_0x4684b6,_0x1203bc){let _0x5b2fcd='',_0x2d4b0d=_0x4684b6;for(;_0x2d4b0d>0x0;){const _0x4e6899=(_0x2d4b0d-0x1)%0x1a;_0x5b2fcd=String['fromCharCode'](0x61+_0x4e6899)+_0x5b2fcd,_0x2d4b0d=Math['floor']((_0x2d4b0d-0x1)/0x1a);}return _0x1203bc?_0x5b2fcd['toUpperCase']():_0x5b2fcd;}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(_0x5979e2,_0x1ddad5){let _0x24b258='',_0x25e995=_0x5979e2;for(const {value:_0x99e999,numeral:_0xa3f8f3}of N)for(;_0x25e995>=_0x99e999;)_0x24b258+=_0xa3f8f3,_0x25e995-=_0x99e999;return _0x1ddad5?_0x24b258:_0x24b258['toLowerCase']();}class H extends _0x1a2eba{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x378fc1();['focusCycler'];constructor(_0x542d51,{styleButtonViews:_0x45b6be,styleGridAriaLabel:_0xdbe423}){super(_0x542d51),(this['focusCycler']=new _0x2182f9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x45b6be,_0xdbe423),[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 _0x2ddf31 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2ddf31['element']);_0xeae053({'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 _0x3ebc4b=_0x4491a2=>_0x4491a2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3ebc4b),this['keystrokes']['set']('arrowleft',_0x3ebc4b),this['keystrokes']['set']('arrowup',_0x3ebc4b),this['keystrokes']['set']('arrowdown',_0x3ebc4b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x520140,_0x489d30){const _0x520081=new _0x1a2eba(this['locale']);return _0x520081['children']=_0x520081['createCollection'](),_0x520081['children']['addMany'](_0x520140),_0x520081['setTemplate']({'tag':'div','attributes':{'aria-label':_0x489d30,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x520081['children']}),_0x520081['children']['delegate']('execute')['to'](this),_0x520081['focus']=function(){for(const _0x11b246 of this['children'])if(_0x11b246 instanceof _0x597e22&&_0x11b246['isOn'])return void _0x11b246['focus']();this['children']['first']['focus']();},_0x520081['focusTracker']=new et(),_0x520081['keystrokes']=new ot(),_0x520081['render'](),_0x520081['keystrokes']['listenTo'](_0x520081['element']),this['children']['add'](_0x520081),_0x520081;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1896f4=this['_createStartIndexPropertyView'](),_0x596197=[_0x1896f4],_0x29a4b7=new tt(this['locale'],_0x596197);return _0x29a4b7['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x29a4b7['buttonView']['bind']('isEnabled')['toMany'](_0x596197,'isEnabled',(..._0x3dc60b)=>_0x3dc60b['some'](_0x4dea6a=>_0x4dea6a)),_0x29a4b7['buttonView']['on']('change:isEnabled',(_0x1b8dbb,_0x4688b5,_0x4b6cba)=>{_0x4b6cba||(_0x29a4b7['isCollapsed']=!0x0);}),this['children']['add'](_0x29a4b7),[_0x1896f4,_0x29a4b7];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5aba1f=new st(this['locale'],it);return _0x5aba1f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5aba1f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5aba1f['fieldView']['on']('input',()=>{const _0x48dee2=_0x5aba1f['fieldView']['element'],_0x282f3a=_0x48dee2['valueAsNumber'];Number['isNaN'](_0x282f3a)?_0x5aba1f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x48dee2['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x282f3a}):_0x5aba1f['errorText']=t(_0x282f3a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5aba1f;}}class j extends _0xd3a18c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x6532a0,_0x517ff2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x41409e}=this,{componentFactory:_0x479ebd}=_0x41409e['ui'];_0x41409e['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x479ebd['add']('footnotesStyle',function(_0x34ab24){return _0x17868e=>{const {t:t}=_0x17868e,_0x224258=_0x34ab24['commands']['get']('footnotesStyle'),_0x5e5962=_0x4c101c(_0x17868e),{buttonView:_0x12b2a3}=_0x5e5962;return _0x5e5962['class']='ck-footnotes-styles-dropdown',_0x5e5962['bind']('isEnabled')['to'](_0x224258,'isEnabled'),_0x12b2a3['set']({'label':t('Footnotes\x20style'),'icon':_0xdd0539,'tooltip':!0x0}),_0x5e5962['once']('change:isOpen',()=>{const _0xc19eb9=function({editor:_0x16e40e,dropdownView:_0x316daa}){const {t:t}=_0x16e40e['locale'],_0x458d4b=t('Footnotes\x20definitions\x20styles'),_0x24de47=function(_0x58f09c){const t=_0x58f09c['locale']['t'],_0x454126=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x31521a},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xc406c1},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x345fa2},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x52964e},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x22de01},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2f6702}];return _0x454126['map'](function(_0x135712){const _0xb07cb7=_0x135712['locale'];return({label:_0x3ab361,icon:_0x3c5a01,tooltip:_0x474d2f,style:_0x50fd8b})=>{const _0x46bf37=_0x135712['commands']['get']('footnotesStyle'),_0x178ac2=new _0x597e22(_0xb07cb7);return _0x178ac2['set']({'label':_0x3ab361,'icon':_0x3c5a01,'tooltip':_0x474d2f}),_0x178ac2['bind']('isOn')['to'](_0x46bf37,'value',_0x496dd7=>_0x496dd7===_0x50fd8b),_0x178ac2['bind']('isEnabled')['to'](_0x46bf37,'isEnabled'),_0x178ac2['on']('execute',()=>{_0x135712['execute']('footnotesStyle',{'value':_0x50fd8b}),_0x135712['editing']['view']['focus']();}),_0x178ac2;};}(_0x58f09c));}(_0x16e40e),_0x4e3b63=new H(_0x16e40e['locale'],{'styleGridAriaLabel':_0x458d4b,'styleButtonViews':_0x24de47});return _0x4e3b63['delegate']('execute')['to'](_0x316daa),_0x4e3b63['on']('footnotesListStart',(_0x5d4ed0,_0x4c4a09)=>{_0x16e40e['execute']('footnotesStart',{'value':_0x4c4a09['startIndex']});}),_0x4e3b63;}({'editor':_0x34ab24,'dropdownView':_0x5e5962});_0x5e5962['panelView']['children']['add'](_0xc19eb9);}),_0x5e5962;};}(_0x41409e));}['afterInit'](){const {editor:_0x1ebb79}=this,{t:t}=_0x1ebb79['locale'],_0x3bafde=_0x1ebb79['plugins']['get'](_0x517ff2),{defaultPositions:_0x52f7b9}=_0x52e9c6;_0x3bafde['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1ebb79['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x507707=>{let _0x70a127=_0x507707['getFirstPosition']()?.['parent'];return _0x70a127?.['is']('$text')&&(_0x70a127=_0x70a127['parent']),_0x70a127?.['is']('element')?_0x70a127['findAncestor'](J):null;},'positions':[_0x52f7b9['southArrowNorth'],_0x52f7b9['southArrowNorthMiddleWest'],_0x52f7b9['southArrowNorthMiddleEast'],_0x52f7b9['southArrowNorthWest'],_0x52f7b9['southArrowNorthEast'],_0x52f7b9['northArrowSouth'],_0x52f7b9['northArrowSouthMiddleWest'],_0x52f7b9['northArrowSouthMiddleEast'],_0x52f7b9['northArrowSouthWest'],_0x52f7b9['northArrowSouthEast'],_0x52f7b9['viewportStickyNorth']]});}}class lt extends _0xd3a18c{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-20251031.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-20251031.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251031.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251031.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251031.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251031.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251031.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251031.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251031.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2215a9=_0x2c31;(function(_0x42e7e4,_0x32e798){const _0x14809e=_0x2c31,_0x78361d=_0x42e7e4();while(!![]){try{const _0x1f24bd=parseInt(_0x14809e(0x16c))/0x1+-parseInt(_0x14809e(0x188))/0x2*(parseInt(_0x14809e(0x165))/0x3)+-parseInt(_0x14809e(0x184))/0x4+parseInt(_0x14809e(0x183))/0x5+-parseInt(_0x14809e(0x170))/0x6+-parseInt(_0x14809e(0x176))/0x7*(parseInt(_0x14809e(0x167))/0x8)+parseInt(_0x14809e(0x182))/0x9*(parseInt(_0x14809e(0x17f))/0xa);if(_0x1f24bd===_0x32e798)break;else _0x78361d['push'](_0x78361d['shift']());}catch(_0x4af74c){_0x78361d['push'](_0x78361d['shift']());}}}(_0x550d,0x1ef65));function _0x550d(){const _0x2ecdda=['model','length','293652Nmeenp','get','insert-footnote-command-executed-with-invalid-id','string','editor','document','7lfhyzL','_getPositionToInsertFootnote','isObject','execute','getFirstRange','getItems','selection','checkChild','end','19920wPfupR','isEnabled','_moveSelectionToFootnoteDefinition','1134ymvITt','1106700YGUslL','75376lKtZrR','plugins','test','refresh','12KhhpbN','change','59397sUDaiC','FootnotesEditing','1882952wauUit','footnoteId','footnoteRef','isBlock','insertObject','76438JgQjLA','createElement'];_0x550d=function(){return _0x2ecdda;};return _0x550d();}import{logWarning as _0x475bf9,uid as _0x1fe851}from'ckeditor5/src/utils.js';import{Command as _0x291809}from'ckeditor5/src/core.js';function _0x2c31(_0x2b365a,_0x441893){const _0x550dc7=_0x550d();return _0x2c31=function(_0x2c310b,_0x59697e){_0x2c310b=_0x2c310b-0x164;let _0x34f008=_0x550dc7[_0x2c310b];return _0x34f008;},_0x2c31(_0x2b365a,_0x441893);}export class InsertFootnoteCommand extends _0x291809{[_0x2215a9(0x187)](){const _0x1d9855=_0x2215a9,_0x2f0a82=this[_0x1d9855(0x174)][_0x1d9855(0x16e)][_0x1d9855(0x175)][_0x1d9855(0x17c)],_0x3378bc=this[_0x1d9855(0x177)](_0x2f0a82);this[_0x1d9855(0x180)]=!!_0x3378bc;}[_0x2215a9(0x179)](_0x1b53f0){const _0x2fd0ea=_0x2215a9,{editor:_0x38fe3a}=this,{model:_0x1b7e04}=_0x38fe3a,{selection:_0x5669ac}=_0x1b7e04[_0x2fd0ea(0x175)],_0x17150e=this[_0x2fd0ea(0x177)](_0x5669ac);if(!_0x17150e)return;const _0x3dc04f=_0x38fe3a[_0x2fd0ea(0x185)][_0x2fd0ea(0x171)](_0x2fd0ea(0x166)),_0x3909dc=_0x1b53f0?.[_0x2fd0ea(0x168)]??_0x1fe851();!function(_0x31bdcc){const _0x588d23=_0x2fd0ea;return _0x588d23(0x173)==typeof _0x31bdcc&&_0x31bdcc[_0x588d23(0x16f)]>0x0&&!/\s/[_0x588d23(0x186)](_0x31bdcc)&&!/^\d/[_0x588d23(0x186)](_0x31bdcc);}(_0x3909dc)?_0x475bf9(_0x2fd0ea(0x172)):(_0x1b7e04[_0x2fd0ea(0x164)](_0xcdc776=>{const _0x20178b=_0x2fd0ea,_0x4c96e9=_0xcdc776[_0x20178b(0x16d)](_0x20178b(0x169),{'footnoteId':_0x3909dc});_0x1b7e04[_0x20178b(0x16b)](_0x4c96e9,_0x17150e,null);}),_0x3dc04f[_0x2fd0ea(0x181)](_0x3909dc));}[_0x2215a9(0x177)](_0x58ec96){const _0x17926d=_0x2215a9,{model:_0x3d6f30}=this[_0x17926d(0x174)],{schema:_0x2acd40}=_0x3d6f30,_0x2a84dc=_0x58ec96[_0x17926d(0x17a)]();for(const _0x151765 of _0x2a84dc[_0x17926d(0x17b)]())if(_0x2acd40[_0x17926d(0x16a)](_0x151765)||_0x2acd40[_0x17926d(0x178)](_0x151765))return null;const _0x19e995=_0x2a84dc[_0x17926d(0x17e)];return _0x2acd40[_0x17926d(0x17d)](_0x19e995,_0x17926d(0x169))?_0x19e995:null;}}
|
package/src/footnotes.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4927(){var _0x566d63=['66100980Bzjsap','194IWhyjQ','1240670fvjPmo','15178FXocBZ','isOfficialPlugin','pluginName','isPremiumPlugin','8qrgUMO','16596738WZYvGZ','16FTgFDa','2179608ektjCy','1335900EfBXfL','4795098ypJpqB','Footnotes','requires'];_0x4927=function(){return _0x566d63;};return _0x4927();}var _0x455cbb=_0x45e0;(function(_0x61fa98,_0x178a5f){var _0x1c1403=_0x45e0,_0x30304c=_0x61fa98();while(!![]){try{var _0x41c7d1=parseInt(_0x1c1403(0x18a))/0x1*(-parseInt(_0x1c1403(0x18c))/0x2)+-parseInt(_0x1c1403(0x184))/0x3+parseInt(_0x1c1403(0x181))/0x4*(-parseInt(_0x1c1403(0x18b))/0x5)+parseInt(_0x1c1403(0x185))/0x6+parseInt(_0x1c1403(0x186))/0x7*(-parseInt(_0x1c1403(0x183))/0x8)+-parseInt(_0x1c1403(0x182))/0x9+parseInt(_0x1c1403(0x189))/0xa;if(_0x41c7d1===_0x178a5f)break;else _0x30304c['push'](_0x30304c['shift']());}catch(_0x96aea7){_0x30304c['push'](_0x30304c['shift']());}}}(_0x4927,0xe17b0));import{Plugin as _0x2b7972}from'ckeditor5/src/core.js';function _0x45e0(_0x1bb41b,_0x249166){var _0x49278c=_0x4927();return _0x45e0=function(_0x45e0aa,_0x3486db){_0x45e0aa=_0x45e0aa-0x180;var _0x19b6f8=_0x49278c[_0x45e0aa];return _0x19b6f8;},_0x45e0(_0x1bb41b,_0x249166);}import{FootnotesEditing as _0x2dac56}from'./footnotesediting.js';import{FootnotesClipboard as _0x189de5}from'./footnotesclipboard.js';import{FootnotesUI as _0x59a236}from'./footnotesui.js';export class Footnotes extends _0x2b7972{static get[_0x455cbb(0x18e)](){var _0x570ce1=_0x455cbb;return _0x570ce1(0x187);}static get[_0x455cbb(0x188)](){return[_0x2dac56,_0x189de5,_0x59a236];}static get[_0x455cbb(0x18d)](){return!0x0;}static get[_0x455cbb(0x180)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x15e7(){const _0x236fbb=['footnoteRef','change','application/ckeditor5-footnotes','init','250YPraqM','add','pluginName','toModel','dataTransfer','definition','getFootnote','create','setAttribute','_insertEmptyFootnotesDefinitionsContainer','method','_defineClipboardIntegration','selection','reduce','push','getFootnotesDefinitionsObjectElement','177133RbLFBy','toView','insert','entries','541509IeKKyu','drop','1788708GElHLs','getData','find','content','setData','append','7QXIGJe','isOfficialPlugin','footnoteDefinition','sourceEditorId','from','createElement','isPremiumPlugin','footnoteId','18ZFpxkE','getAttribute','toData','2lzvIsp','htmlProcessor','footnotesDefinitions','outputTransformation','root','createRangeIn','length','getFootnotes','get','parse','stringify','element','clipboardInput','remove','document','_handleCopyFootnotesDefinitions','editing','data','editor','end','3180528pKhVDC','contentInsertion','getFirstRange','FootnotesClipboard','5sGLTqu','1308780MmnkBY','1135388vvRbay','requires','_handlePasteFootnotesDefinitions','listenTo','17490648GMgCou'];_0x15e7=function(){return _0x236fbb;};return _0x15e7();}const _0x15821d=_0x5704;(function(_0xda5b35,_0x733976){const _0x577087=_0x5704,_0x170548=_0xda5b35();while(!![]){try{const _0x46cd10=parseInt(_0x577087(0x18b))/0x1*(parseInt(_0x577087(0x19e))/0x2)+-parseInt(_0x577087(0x18d))/0x3+-parseInt(_0x577087(0x16e))/0x4*(-parseInt(_0x577087(0x16c))/0x5)+-parseInt(_0x577087(0x16d))/0x6*(-parseInt(_0x577087(0x193))/0x7)+parseInt(_0x577087(0x168))/0x8*(-parseInt(_0x577087(0x19b))/0x9)+-parseInt(_0x577087(0x177))/0xa*(parseInt(_0x577087(0x187))/0xb)+parseInt(_0x577087(0x172))/0xc;if(_0x46cd10===_0x733976)break;else _0x170548['push'](_0x170548['shift']());}catch(_0x362c05){_0x170548['push'](_0x170548['shift']());}}}(_0x15e7,0xaca19));import{Plugin as _0x3e023e}from'ckeditor5/src/core.js';import{uid as _0x2dc85e}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0xcca9e3}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x31c39b}from'./footnotesediting.js';import{FootnotesTracker as _0x31fd04}from'./footnotestracker.js';function _0x5704(_0x30b604,_0x4f4d99){const _0x15e722=_0x15e7();return _0x5704=function(_0x570475,_0x5ea68a){_0x570475=_0x570475-0x160;let _0xb59d54=_0x15e722[_0x570475];return _0xb59d54;},_0x5704(_0x30b604,_0x4f4d99);}export class FootnotesClipboard extends _0x3e023e{static get[_0x15821d(0x179)](){const _0x485263=_0x15821d;return _0x485263(0x16b);}static get[_0x15821d(0x16f)](){return[_0x31c39b,_0xcca9e3];}static get[_0x15821d(0x194)](){return!0x0;}static get[_0x15821d(0x199)](){return!0x0;}[_0x15821d(0x176)](){const _0x4ef5a9=_0x15821d;this[_0x4ef5a9(0x182)]();}[_0x15821d(0x182)](){const _0x3ccb20=_0x15821d;this[_0x3ccb20(0x163)](),this[_0x3ccb20(0x170)]();}[_0x15821d(0x163)](){const _0x52a359=_0x15821d,{editor:_0x185f73}=this,{plugins:_0x26dd03,model:_0x4decb1}=_0x185f73,_0x1af064=_0x26dd03[_0x52a359(0x1a6)](_0xcca9e3),_0x2b84d2=_0x26dd03[_0x52a359(0x1a6)](_0x31fd04);this[_0x52a359(0x171)](_0x1af064,_0x52a359(0x1a1),(_0x37a6bd,_0x2a458f)=>{const _0x3e828b=_0x52a359,_0x44a3f1=function(_0x1c801c,_0x2e7116){const _0x5c9973=_0x5704,_0x5e9dca=new Set();for(const {item:_0x195d89}of _0x1c801c[_0x5c9973(0x1a3)](_0x2e7116))_0x195d89['is'](_0x5c9973(0x1a9),_0x5c9973(0x173))&&_0x5e9dca[_0x5c9973(0x178)](_0x195d89[_0x5c9973(0x19c)](_0x5c9973(0x19a)));return Array[_0x5c9973(0x197)](_0x5e9dca);}(_0x4decb1,_0x2a458f[_0x3e828b(0x190)]);if(!_0x44a3f1[_0x3e828b(0x1a4)])return;const _0x93c88=_0x2b84d2[_0x3e828b(0x1a5)](),_0xe8b3de=_0x44a3f1[_0x3e828b(0x184)]((_0x58def1,_0x11f1c2)=>{const _0x108e04=_0x3e828b,_0x13d09a=_0x93c88[_0x108e04(0x18f)](_0x49cafd=>_0x49cafd['id']===_0x11f1c2);if(_0x13d09a){const _0xad011f=_0x185f73[_0x108e04(0x165)][_0x108e04(0x188)](_0x13d09a[_0x108e04(0x17c)],{'isClipboardPipeline':!0x0}),_0x58d765=_0x185f73[_0x108e04(0x165)][_0x108e04(0x19f)][_0x108e04(0x19d)](_0xad011f);_0x58def1[_0x13d09a['id']]=_0x58d765;}return _0x58def1;},Object[_0x3e828b(0x17e)](null));_0x2a458f[_0x3e828b(0x17b)][_0x3e828b(0x191)](_0x3e828b(0x175),JSON[_0x3e828b(0x1a8)](_0xe8b3de));});}[_0x15821d(0x170)](){const _0x1484ee=_0x15821d,{editor:_0x17c60e}=this,{model:_0x5f5ac8,plugins:_0x2730fd}=_0x17c60e,{view:_0x51f9be}=_0x17c60e[_0x1484ee(0x164)],_0x1e4c2a=_0x2730fd[_0x1484ee(0x1a6)](_0xcca9e3),_0x14431a=_0x2730fd[_0x1484ee(0x1a6)](_0x31fd04);let _0x47afdf=null;this[_0x1484ee(0x171)](_0x51f9be[_0x1484ee(0x162)],_0x1484ee(0x160),(_0x33aead,_0x1ede84)=>{const _0x1f41fa=_0x1484ee,_0x21b62c=_0x1ede84[_0x1f41fa(0x17b)][_0x1f41fa(0x18e)](_0x1f41fa(0x175));_0x47afdf=_0x21b62c?JSON[_0x1f41fa(0x1a7)](_0x21b62c):null;}),this[_0x1484ee(0x171)](_0x1e4c2a,_0x1484ee(0x169),(_0x5b5188,_0x3019f4)=>{const _0x161c4e=_0x1484ee;if(!_0x47afdf)return;const _0x2ddb13=_0x3019f4[_0x161c4e(0x196)]===this[_0x161c4e(0x166)]['id'];_0x2ddb13&&_0x161c4e(0x18c)===_0x3019f4[_0x161c4e(0x181)]||_0x5f5ac8[_0x161c4e(0x174)](_0x251ac0=>{const _0x29e935=_0x161c4e;!function(_0x9f7976,_0x4e65f4){const _0x46aac0=_0x5704,_0x3009fd=[];for(const {item:_0x326eb9}of _0x9f7976[_0x46aac0(0x1a3)](_0x4e65f4))_0x326eb9['is'](_0x46aac0(0x1a9),_0x46aac0(0x1a0))&&_0x3009fd[_0x46aac0(0x185)](_0x326eb9);for(const _0x4f5731 of _0x3009fd)_0x9f7976[_0x46aac0(0x161)](_0x4f5731);}(_0x251ac0,_0x3019f4[_0x29e935(0x190)]);let _0x225355=_0x14431a[_0x29e935(0x186)]();if(!_0x225355){const _0x46f1a6=_0x5f5ac8[_0x29e935(0x162)][_0x29e935(0x183)][_0x29e935(0x16a)]()[_0x29e935(0x1a2)];_0x225355=_0x14431a[_0x29e935(0x180)](_0x251ac0,_0x46f1a6);}const _0x544ee8=function(_0x114b28,_0x33a0a9,_0x2be1ba){const _0x14e287=_0x29e935,_0x32ac88=Object[_0x14e287(0x17e)](null);for(const {item:_0x313f6a}of _0x114b28[_0x14e287(0x1a3)](_0x33a0a9))if(_0x313f6a['is'](_0x14e287(0x1a9),_0x14e287(0x173))){const _0x25c461=_0x313f6a[_0x14e287(0x19c)](_0x14e287(0x19a));if(!_0x2be1ba(_0x25c461))continue;_0x32ac88[_0x25c461]||(_0x32ac88[_0x25c461]=_0x2dc85e()),_0x114b28[_0x14e287(0x17f)](_0x14e287(0x19a),_0x32ac88[_0x25c461],_0x313f6a);}return _0x32ac88;}(_0x251ac0,_0x3019f4[_0x29e935(0x190)],_0x167bb3=>!_0x2ddb13||null!==_0x14431a[_0x29e935(0x17d)](_0x167bb3));for(const [_0x4a35a1,_0x483ac4]of Object[_0x29e935(0x18a)](_0x47afdf)){const _0x161894=_0x544ee8[_0x4a35a1]||_0x4a35a1,_0x133d47=_0x251ac0[_0x29e935(0x198)](_0x29e935(0x195),{'footnoteId':_0x161894}),_0x36fc44=_0x17c60e[_0x29e935(0x165)][_0x29e935(0x19f)][_0x29e935(0x188)](_0x483ac4),_0x359783=_0x17c60e[_0x29e935(0x165)][_0x29e935(0x17a)](_0x36fc44,_0x133d47);_0x251ac0[_0x29e935(0x192)](_0x359783,_0x133d47),_0x251ac0[_0x29e935(0x189)](_0x133d47,_0x225355,_0x29e935(0x167));}_0x47afdf=null;});});}}
|