@ckeditor/ckeditor5-footnotes 48.0.1-alpha.0 → 48.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xd9b0c4,Command as _0x44bdb4}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1153e8,isWidget as _0x454a6b,toWidgetEditable as _0x402a36,WidgetToolbarRepository as _0xf7babd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x6ffec9,logWarning as _0x163343,FocusTracker as _0x1c5066,KeystrokeHandler as _0x35e87a,global as _0x108115}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x15c060,ClickObserver as _0x5d66e1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x503252}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x190c7f,ButtonView as _0x5b6b16,View as _0x2952a9,ViewCollection as _0x411ec1,FocusCycler as _0x4dfe02,addKeyboardHandlingForGrid as _0xfee55d,CollapsibleView as _0x4082fa,LabeledFieldView as _0x4d292c,createLabeledInputNumber as _0x4c2ec1,ContextualBalloon as _0x260156,BalloonPanelView as _0x120e62,createDropdown as _0x2f2645}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x12eacd,IconListStyleDecimal as _0x13c580,IconListStyleDecimalLeadingZero as _0x2aba5f,IconListStyleLowerRoman as _0x2f8863,IconListStyleUpperRoman as _0x5a5221,IconListStyleLowerLatin as _0x132cbb,IconListStyleUpperLatin as _0x24a427,IconListStyleArabicIndic as _0x11d7c2}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0xc79b31,_0x4f5ea2){this['_model']=_0xc79b31,this['_elementName']=_0x4f5ea2['elementName'],this['_getElementKey']=_0x4f5ea2['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xa1788b){const _0x293df1=new Set(),_0x1ce846=new Map();for(const _0x2024d0 of _0xa1788b){if('insert'===_0x2024d0['type']&&'$text'!==_0x2024d0['name']&&_0x2024d0['position']['nodeAfter']){const _0x5df44c=this['_model']['createRangeOn'](_0x2024d0['position']['nodeAfter']);for(const _0x18059f of _0x5df44c['getItems']()){if(!_0x18059f['is']('element',this['_elementName']))continue;const _0x5d1e44=this['_getElementKey'](_0x18059f);_0x1ce846['has'](_0x5d1e44)||_0x1ce846['set'](_0x5d1e44,[]),_0x1ce846['get'](_0x5d1e44)['push'](_0x18059f);}}if('remove'===_0x2024d0['type']&&_0x2024d0['name']===this['_elementName']){const _0x25bb47=this['_getElementKey']({'getAttribute':_0x26c24e=>_0x2024d0['attributes']['get'](_0x26c24e)});_0x293df1['add'](_0x25bb47);}}for(const [_0x11f627,_0x35a572]of this['_trackedElements'])'$graveyard'===_0x35a572['root']['rootName']&&_0x293df1['add'](_0x11f627);for(const _0x415dee of _0x293df1)this['_trackedElements']['delete'](_0x415dee);for(const [_0x291dd5,_0x22ac18]of _0x1ce846)this['_trackedElements']['set'](_0x291dd5,_0x22ac18[_0x22ac18['length']-0x1]);const _0x1bdbec=new Set();for(const [_0x529994,_0x250db7]of _0x1ce846)_0x293df1['has'](_0x529994)&&(_0x1bdbec['add'](_0x250db7[0x0]),_0x250db7['length']>0x1?_0x1ce846['set'](_0x529994,_0x250db7['slice'](0x1)):_0x1ce846['delete'](_0x529994),_0x293df1['delete'](_0x529994));return{'removed':Array['from'](_0x293df1),'inserted':Array['from'](_0x1ce846['values']())['flat'](),'moved':Array['from'](_0x1bdbec)};}}class K extends _0xd9b0c4{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1831e1){super(_0x1831e1),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1c7d87=>_0x1c7d87['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x8158d8=>_0x8158d8['getAttribute']('footnoteId')});}['init'](){const {editor:_0x423bb9}=this,{model:_0x243da6,data:_0x152bda}=_0x423bb9;_0x243da6['document']['registerPostFixer'](_0x5217b6=>{const _0x234a1c=_0x243da6['document']['differ']['getChanges']();let _0x4d0d9c=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5217b6,_0x234a1c)&&(_0x4d0d9c=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5217b6,_0x234a1c)&&(_0x4d0d9c=!0x0),this['_handleFootnoteReferencesChanges'](_0x5217b6,_0x234a1c)&&(_0x4d0d9c=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5217b6)&&(_0x4d0d9c=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5217b6)&&(_0x4d0d9c=!0x0),this['_sortFootnoteDefinitions'](_0x5217b6)&&(_0x4d0d9c=!0x0),_0x4d0d9c;}),this['listenTo'](_0x243da6['document'],'change:data',()=>{_0x243da6['enqueueChange']({'isUndoable':!0x1},_0x520f47=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x520f47);});},{'priority':'low'}),this['listenTo'](_0x152bda,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x40e64e){return this['_footnotes']['find'](_0x1ede3e=>_0x1ede3e['id']===_0x40e64e)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4c30d3){this['_footnoteFormatter']=_0x4c30d3;}['_updateFootnotesCounters'](_0x2a1863,_0x166bc0=0x0){let _0x49c08e=!0x1;for(let _0x5ddf43=_0x166bc0;_0x5ddf43<this['_footnotes']['length'];_0x5ddf43++)this['_updateFootnoteRefCounter'](_0x2a1863,_0x5ddf43)&&(_0x49c08e=!0x0);return _0x49c08e;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2ed43e,_0x525776){const _0x51e19a=_0x2ed43e['createElement']('footnotesDefinitions',{});return _0x2ed43e['append'](_0x51e19a,_0x525776),this['_footnotesDefinitions']=_0x51e19a,_0x51e19a;}['_ensureFootnotesDefinitionsContainerExists'](_0x2fdd1a){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x3f9994=this['_footnotes'][0x0]['reference']['root'],_0x19de8e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2fdd1a,_0x3f9994);for(const _0x1dab02 of this['_footnotes'])_0x1dab02['definition']['parent']||_0x2fdd1a['insert'](_0x1dab02['definition'],_0x19de8e,'end');this['_updateFootnotesCounters'](_0x2fdd1a);}['_handleFootnotesDefinitionsObjectChanges'](_0x23b500,_0x1f0d92){let _0x25a7dc=!0x1;const {inserted:_0x563f3e,removed:_0x4b3e88,moved:_0x260088}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1f0d92);if(_0x260088['length']&&(this['_footnotesDefinitions']=_0x260088[0x0]),_0x563f3e['length']){if(_0x563f3e['length']>0x1||this['_footnotesDefinitions']&&_0x563f3e['some'](_0x25a413=>_0x25a413!==this['_footnotesDefinitions'])){const _0x156334=_0x23b500['createElement']('footnotesDefinitions',{}),_0x3b7614=[];this['_footnotesDefinitions']&&_0x3b7614['push'](this['_footnotesDefinitions']),_0x3b7614['push'](..._0x563f3e),_0x23b500['insert'](_0x156334,_0x3b7614[0x0],'before');for(const _0x1b23ea of _0x3b7614)_0x23b500['move'](_0x23b500['createRangeIn'](_0x1b23ea),_0x23b500['createPositionAt'](_0x156334,'end')),_0x23b500['remove'](_0x1b23ea);this['_footnotesDefinitions']=_0x156334,this['_updateFootnotesCounters'](_0x23b500),_0x25a7dc=!0x0;}else this['_footnotesDefinitions']=_0x563f3e[0x0];}if(_0x4b3e88['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x425db6 of this['_footnotes'])_0x23b500['remove'](_0x425db6['reference']),_0x25a7dc=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x25a7dc;}['_handleFootnoteDefinitionsChanges'](_0x2bb134,_0xfc34d5){let _0xd35c94=!0x1;const _0x5daabe=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2c46d1,moved:_0x53d070}=this['_footnoteDefsTracker']['getChanges'](_0xfc34d5);for(const _0x10887e of[..._0x53d070,..._0x2c46d1]){const _0xc0f998=_0x10887e['getAttribute']('footnoteId'),_0x5d8ea7=this['getFootnote'](_0xc0f998);_0x5d8ea7&&(_0x5d8ea7['definition']=_0x10887e),j(_0x2bb134,_0x5daabe,_0x10887e)&&(_0xd35c94=!0x0);}return _0xd35c94;}['_handleFootnoteReferencesChanges'](_0x3c46d9,_0x1e8358){let _0x482f97=!0x1;const {removed:_0x27d1d7,inserted:_0x1b7573,moved:_0x41217a}=this['_footnoteRefsTracker']['getChanges'](_0x1e8358);for(const _0x19017d of _0x27d1d7)this['_handleRemoveFootnoteReferenceById'](_0x3c46d9,_0x19017d)&&(_0x482f97=!0x0);for(const _0x456c18 of _0x1b7573)this['_handleInsertedFootnoteReference'](_0x3c46d9,_0x456c18)&&(_0x482f97=!0x0);for(const _0x2b8844 of _0x41217a)this['_handleMovedFootnoteReference'](_0x3c46d9,_0x2b8844)&&(_0x482f97=!0x0);return _0x482f97;}['_handleFootnotesDefinitionsObjectSync'](_0x1567fb){if(!this['_footnotesDefinitions'])return!0x1;let _0x3f3c4f=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xf2998b=[];for(const _0x54ac39 of this['_footnotesDefinitions']['getChildren']()){const _0x3892f2=_0x54ac39['getAttribute']('footnoteId');this['getFootnote'](_0x3892f2)||(_0xf2998b['unshift'](_0x54ac39),_0x3f3c4f=!0x0);}for(const _0x26d873 of _0xf2998b)_0x1567fb['remove'](_0x26d873);}const _0x25a090=new Set(),_0x18a2c9=[];for(const _0x34f530 of this['_footnotesDefinitions']['getChildren']()){const _0x25a535=_0x34f530['getAttribute']('footnoteId');_0x25a090['has'](_0x25a535)?(_0x18a2c9['unshift'](_0x34f530),_0x3f3c4f=!0x0):_0x25a090['add'](_0x25a535);}for(const _0x8b3d01 of _0x18a2c9)_0x1567fb['remove'](_0x8b3d01);return this['_footnotesDefinitions']['childCount']||(_0x1567fb['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3f3c4f=!0x0),_0x3f3c4f;}['_handleInsertedFootnoteReference'](_0x22b061,_0xbbf808){if(this['_footnotes']['find'](_0x317e4a=>_0x317e4a['reference']===_0xbbf808))return!0x1;let _0x17ca45=!0x1;const _0x38b9f0=_0xbbf808['getAttribute']('footnoteId'),_0x200799=this['_footnotes']['findIndex'](_0x227903=>_0x227903['id']===_0x38b9f0);-0x1!==_0x200799&&(_0x22b061['remove'](this['_footnotes'][_0x200799]['reference']),this['_footnotes']['splice'](_0x200799,0x1),_0x17ca45=!0x0);let _0x4a60d3=this['_footnotesDefinitions']?function(_0x3cc36a,_0xaa238a){for(const _0x5e29ae of _0x3cc36a['getChildren']())if(_0x5e29ae['getAttribute']('footnoteId')===_0xaa238a)return _0x5e29ae;return null;}(this['_footnotesDefinitions'],_0x38b9f0):null;_0x4a60d3||(_0x4a60d3=_0x22b061['createElement']('footnoteDefinition',{'footnoteId':_0x38b9f0}),this['_footnotesDefinitions']&&(_0x22b061['insert'](_0x4a60d3,this['_footnotesDefinitions'],'end'),_0x17ca45=!0x0));const _0x15cafa={'id':_0x38b9f0,'reference':_0xbbf808,'definition':_0x4a60d3},_0x4f6deb=T(this['editor']['model'],this['_footnotes'],_0xbbf808);this['_footnotes']['splice'](_0x4f6deb,0x0,_0x15cafa);let _0x25b1d8=_0x4f6deb;return-0x1!==_0x200799&&(_0x25b1d8=Math['min'](_0x4f6deb,_0x200799)),this['_updateFootnotesCounters'](_0x22b061,_0x25b1d8)&&(_0x17ca45=!0x0),_0x17ca45;}['_handleRemoveFootnoteReferenceById'](_0x5c4655,_0x50303f){const _0x1d543a=this['_footnotes']['findIndex'](_0x5edb19=>_0x5edb19['id']===_0x50303f);if(-0x1===_0x1d543a)return!0x1;let _0x1ad0fb=!0x1;const _0x6a8ef=this['_footnotes'][_0x1d543a];return'$graveyard'!==_0x6a8ef['definition']['root']['rootName']&&(_0x5c4655['remove'](_0x6a8ef['definition']),_0x1ad0fb=!0x0),this['_footnotes']['splice'](_0x1d543a,0x1),this['_updateFootnotesCounters'](_0x5c4655,_0x1d543a)&&(_0x1ad0fb=!0x0),_0x1ad0fb;}['_handleMovedFootnoteReference'](_0x3001a9,_0x43d5f2){const _0x19cedc=_0x43d5f2['getAttribute']('footnoteId'),_0x27cd65=this['_footnotes']['findIndex'](_0x521e14=>_0x521e14['id']===_0x19cedc),_0x4772d8=this['_footnotes'][_0x27cd65];let _0x36d95f=!0x1;_0x4772d8['reference']=_0x43d5f2,this['_footnotes']['splice'](_0x27cd65,0x1);const _0x35f51c=T(this['editor']['model'],this['_footnotes'],_0x43d5f2);return this['_footnotes']['splice'](_0x35f51c,0x0,_0x4772d8),this['_updateFootnotesCounters'](_0x3001a9,Math['min'](_0x27cd65,_0x35f51c))&&(_0x36d95f=!0x0),_0x36d95f;}['_updateFootnoteRefCounter'](_0xfec260,_0x543b34){if(!this['_footnotesDefinitions'])return!0x1;const _0x3444e9=this['_footnotes'][_0x543b34];let _0x31177c;return _0x31177c=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3444e9,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x543b34+0x1}):String(_0x543b34+0x1),_0x3444e9['reference']['getAttribute']('footnoteCounter')!=_0x31177c&&(_0xfec260['setAttribute']('footnoteCounter',_0x31177c,_0x3444e9['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2d15bd){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5bf69f,_0x5cb31c){if(_0x5bf69f['length']!==_0x5cb31c['length'])return!0x1;for(let _0xbeea87=0x0;_0xbeea87<_0x5bf69f['length'];_0xbeea87++)if(_0x5bf69f[_0xbeea87]!==_0x5cb31c[_0xbeea87])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4996f1=>_0x4996f1['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x214cb3=>_0x214cb3['getAttribute']('footnoteId'))))return!0x1;let _0x2a6172=!0x1;for(let _0x1d7c5a=0x0;_0x1d7c5a<this['_footnotes']['length'];_0x1d7c5a++){const _0xb98296=this['_footnotes'][_0x1d7c5a],_0x1f273f=_0x2d15bd['createPositionBefore'](_0xb98296['definition']),_0x71e725=_0x2d15bd['createPositionAt'](this['_footnotesDefinitions'],_0x1d7c5a);_0x1f273f['isEqual'](_0x71e725)||(_0x2d15bd['move'](_0x2d15bd['createRangeOn'](_0xb98296['definition']),_0x71e725),_0x2a6172=!0x0);}return _0x2a6172;}['_ensureFootnotesReferencesHaveProperOrder'](_0x55515e){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1feeb3}=this['editor'];let _0xc1a1bd=!0x1;for(let _0xed059=0x0;_0xed059<this['_footnotes']['length']-0x1;_0xed059++){const _0x31cc77=this['_footnotes'][_0xed059],_0x40f0dd=this['_footnotes'][_0xed059+0x1],_0x34ffd8=_0x1feeb3['createPositionBefore'](_0x31cc77['reference']),_0x2cf46d=_0x1feeb3['createPositionBefore'](_0x40f0dd['reference']);'after'===_0x34ffd8['compareWith'](_0x2cf46d)&&(this['_handleMovedFootnoteReference'](_0x55515e,_0x31cc77['reference']),_0xed059=-0x1,_0xc1a1bd=!0x0);}return _0xc1a1bd;}}function j(_0x516208,_0x559283,_0x37e5b0){if(_0x37e5b0['childCount'])return!0x1;const _0x35ee35=_0x559283?'paragraph':'footnoteInlineContent';return _0x516208['insert'](_0x516208['createElement'](_0x35ee35),_0x37e5b0),!0x0;}function T(_0x2195e2,_0x71a7a1,_0x21782c){if(0x0===_0x71a7a1['length'])return 0x0;const _0x5a9f3e=_0x2195e2['createPositionBefore'](_0x21782c);for(let _0x7266db=0x0;_0x7266db<_0x71a7a1['length'];_0x7266db++){const _0xf7fb72=_0x71a7a1[_0x7266db],_0x842a0c=_0x2195e2['createPositionBefore'](_0xf7fb72['reference']);if('before'===_0x5a9f3e['compareWith'](_0x842a0c))return _0x7266db;}const _0x588ee0=_0x21782c['root'];let _0x4a1dea=-0x1;for(let _0x433ff0=_0x71a7a1['length']-0x1;_0x433ff0>=0x0;_0x433ff0--)if(_0x71a7a1[_0x433ff0]['reference']['root']===_0x588ee0){_0x4a1dea=_0x433ff0;break;}if(-0x1!==_0x4a1dea)return _0x4a1dea+0x1;const _0x1c4b7d=_0x2195e2['document']['getRootNames'](),_0x445afe=_0x1c4b7d['indexOf'](_0x588ee0['rootName']),_0x212d23=_0x1c4b7d[_0x445afe+0x1];if(_0x212d23){for(let _0x437ddc=0x0;_0x437ddc<_0x71a7a1['length'];_0x437ddc++)if(_0x71a7a1[_0x437ddc]['reference']['root']['rootName']===_0x212d23)return _0x437ddc;}return _0x71a7a1['length'];}class V extends _0x44bdb4{['refresh'](){const _0x5e1c8d=this['editor']['model']['document']['selection'],_0x3e864d=this['_getPositionToInsertFootnote'](_0x5e1c8d);this['isEnabled']=!!_0x3e864d;}['execute'](_0x295492){const {editor:_0x19348e}=this,{model:_0x9d681}=_0x19348e,{selection:_0x3843ae}=_0x9d681['document'],_0x54b5e1=this['_getPositionToInsertFootnote'](_0x3843ae);if(!_0x54b5e1)return;const _0x316993=_0x19348e['plugins']['get']('FootnotesEditing'),_0x363e65=_0x295492?.['footnoteId']??_0x6ffec9();!function(_0x3644b2){return'string'==typeof _0x3644b2&&_0x3644b2['length']>0x0&&!/\s/['test'](_0x3644b2)&&!/^\d/['test'](_0x3644b2);}(_0x363e65)?_0x163343('insert-footnote-command-executed-with-invalid-id'):(_0x9d681['change'](_0x54aef2=>{const _0x5a4ddd=_0x54aef2['createElement']('footnoteRef',{'footnoteId':_0x363e65});_0x9d681['insertObject'](_0x5a4ddd,_0x54b5e1,null);}),_0x316993['_moveSelectionToFootnoteDefinition'](_0x363e65));}['_getPositionToInsertFootnote'](_0x359870){const {model:_0x59e7cd}=this['editor'],{schema:_0x199a10}=_0x59e7cd,_0x4de9ff=_0x359870['getFirstRange']();for(const _0x4c453d of _0x4de9ff['getItems']())if(_0x199a10['isBlock'](_0x4c453d)||_0x199a10['isObject'](_0x4c453d))return null;const _0x1b3e7e=_0x4de9ff['end'];return _0x199a10['checkChild'](_0x1b3e7e,'footnoteRef')?_0x1b3e7e:null;}}class $ extends _0xd9b0c4{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x45fe47}=this;_0x45fe47['config']['define']('footnotes.multiBlock',!0x0),_0x45fe47['commands']['add']('insertFootnote',new V(_0x45fe47)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5d44f7){const _0x31bd80=_0x3a480d([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]),_0x529a02=0x47a28506,_0x25fd92=0x47a502e6^_0x529a02,_0x14c031=window[_0x3a480d([0x44,0x61,0x74,0x65])][_0x3a480d([0x6e,0x6f,0x77])](),_0x1eb697=_0x5d44f7[_0x3a480d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ebf16=new window[(_0x3a480d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36ad13=>{_0x1eb697[_0x3a480d([0x6f,0x6e,0x63,0x65])](_0x3a480d([0x72,0x65,0x61,0x64,0x79]),_0x36ad13);}),_0x3e892f={[_0x3a480d([0x6b,0x74,0x79])]:_0x3a480d([0x45,0x43]),[_0x3a480d([0x75,0x73,0x65])]:_0x3a480d([0x73,0x69,0x67]),[_0x3a480d([0x63,0x72,0x76])]:_0x3a480d([0x50,0x2d,0x32,0x35,0x36]),[_0x3a480d([0x78])]:_0x3a480d([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]),[_0x3a480d([0x79])]:_0x3a480d([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]),[_0x3a480d([0x61,0x6c,0x67])]:_0x3a480d([0x45,0x53,0x32,0x35,0x36])},_0x2d9ac4=_0x1eb697[_0x3a480d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a480d([0x67,0x65,0x74])](_0x3a480d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x87243(){let _0x1262d8,_0x5eb16c=null,_0x2b74bd=null;try{if(_0x2d9ac4==_0x3a480d([0x47,0x50,0x4c]))return _0x3a480d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1262d8=_0x3e2089(),!_0x1262d8)return _0x3a480d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1262d8[_0x3a480d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b74bd=_0x278ff0(_0x1262d8[_0x3a480d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1262d8[_0x3a480d([0x6a,0x74,0x69])])),await _0x9247b7()?_0x1d75e9()?_0x2abfa4()?_0x3a480d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x305324()?(_0x1262d8[_0x3a480d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a480d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5eb16c=_0x38d14c(_0x3a480d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58259d()):_0x3a480d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a480d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a480d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a480d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2abfa4(){const _0x41448c=[_0x3a480d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a480d([0x74,0x72,0x69,0x61,0x6c])][_0x3a480d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1262d8[_0x3a480d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14c031/0x3e8:0xe10*_0x25fd92;return _0x1262d8[_0x3a480d([0x65,0x78,0x70])]<_0x41448c;}function _0x1d75e9(){const _0x4c8ee5=_0x1262d8[_0x3a480d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c8ee5&&(!!_0x4c8ee5[_0x3a480d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a480d([0x2a]))||!!_0x4c8ee5[_0x3a480d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a480d([0x46,0x4f,0x4f])));}function _0x305324(){const _0x55a05f=_0x1262d8[_0x3a480d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55a05f||0x0==_0x55a05f[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34657d}=new URL(window[_0x3a480d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x55a05f[_0x3a480d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34657d))return!0x0;const _0x51d063=_0x34657d[_0x3a480d([0x73,0x70,0x6c,0x69,0x74])](_0x3a480d([0x2e]));return _0x55a05f[_0x3a480d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2655e6=>_0x2655e6[_0x3a480d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a480d([0x2a])))[_0x3a480d([0x6d,0x61,0x70])](_0x3cac49=>_0x3cac49[_0x3a480d([0x73,0x70,0x6c,0x69,0x74])](_0x3a480d([0x2e])))[_0x3a480d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb83528=>_0xb83528[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51d063[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a480d([0x6d,0x61,0x70])](_0x199732=>Array(_0x51d063[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x199732[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a480d([0x66,0x69,0x6c,0x6c])](_0x199732[0x0]===_0x3a480d([0x2a])?_0x3a480d([0x2a]):'')[_0x3a480d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x199732))[_0x3a480d([0x73,0x6f,0x6d,0x65])](_0x5e54de=>_0x51d063[_0x3a480d([0x65,0x76,0x65,0x72,0x79])]((_0x11ff7e,_0x1238bc)=>_0x5e54de[_0x1238bc]===_0x11ff7e||_0x5e54de[_0x1238bc]===_0x3a480d([0x2a])));}function _0x58259d(){return _0x5eb16c&&_0x2b74bd?new window[(_0x3a480d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30ecdc,_0x4981cb)=>{_0x5eb16c[_0x3a480d([0x74,0x68,0x65,0x6e])](_0x30ecdc,_0x4981cb),_0x2b74bd[_0x3a480d([0x74,0x68,0x65,0x6e])](_0x3512ab=>{_0x3512ab!=_0x3a480d([0x56,0x61,0x6c,0x69,0x64])&&_0x30ecdc(_0x3512ab);},_0x4981cb);}):_0x5eb16c||_0x2b74bd||_0x3a480d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x278ff0(_0x33ba5b,_0x31cccb){return new window[(_0x3a480d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c601c=>{if(_0x4750ac())return _0x2c601c(_0x3a480d([0x56,0x61,0x6c,0x69,0x64]));_0x170c3e(),_0x1eb697[_0x3a480d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a480d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10386b=!0x1;const _0x208cc0=_0x6ffec9();function _0x16adde(_0x15b012){return!!_0x15b012&&(typeof _0x15b012===_0x3a480d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15b012===_0x3a480d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15b012[_0x3a480d([0x74,0x68,0x65,0x6e])]===_0x3a480d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15b012[_0x3a480d([0x63,0x61,0x74,0x63,0x68])]===_0x3a480d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fad1e(_0x8d1fe0){_0x500877(_0x8d1fe0)[_0x3a480d([0x74,0x68,0x65,0x6e])](_0x42e8b0=>{if(!_0x42e8b0||_0x42e8b0[_0x3a480d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a480d([0x6f,0x6b]))return _0x3a480d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c9a38(_0x4fd829(_0x208cc0+_0x31cccb))!=_0x42e8b0[_0x3a480d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a480d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a480d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a480d([0x74,0x68,0x65,0x6e])](_0x37276b=>(_0x2b254e(),_0x37276b),()=>{const _0x33653b=_0x409980();return null==_0x33653b?(_0x2b254e(),_0x3a480d([0x56,0x61,0x6c,0x69,0x64])):_0x3a480d(_0x14c031-_0x33653b>(0x63ae0106^_0x529a02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a480d([0x74,0x68,0x65,0x6e])](_0x2c601c)[_0x3a480d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c601c(_0x3a480d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18f294=0x47946b86^_0x529a02;function _0x2b254e(){const _0x18b4c6=_0x3a480d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c9a38(_0x4fd829(_0x33ba5b)),_0x5f2d76=_0x72ec43(_0x5c9a38(window[_0x3a480d([0x4d,0x61,0x74,0x68])][_0x3a480d([0x63,0x65,0x69,0x6c])](_0x14c031/_0x18f294)));window[_0x3a480d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a480d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18b4c6,_0x5f2d76);}function _0x409980(){const _0x101f45=_0x3a480d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c9a38(_0x4fd829(_0x33ba5b)),_0x3d979a=window[_0x3a480d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a480d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x101f45);return _0x3d979a?window[_0x3a480d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x72ec43(_0x3d979a),0x10)*_0x18f294:null;}function _0x500877(_0x36abee){return new window[(_0x3a480d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1498b6,_0xc131fb)=>{_0x36abee[_0x3a480d([0x74,0x68,0x65,0x6e])](_0x1498b6,_0xc131fb),window[_0x3a480d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc131fb,0x47a351c6^_0x529a02);});}}_0x1eb697[_0x3a480d([0x6f,0x6e])](_0x3a480d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x334633,_0x30ff16)=>{if(_0x30ff16[0x0]!=_0x33ba5b)return _0x2c601c(_0x3a480d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30ff16[0x1]={..._0x30ff16[0x1],[_0x3a480d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x208cc0};},{[_0x3a480d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a480d([0x68,0x69,0x67,0x68])}),_0x1eb697[_0x3a480d([0x6f,0x6e])](_0x3a480d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x496b29=>{_0x16adde(_0x496b29[_0x3a480d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10386b=!0x0,_0x3fad1e(_0x496b29[_0x3a480d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a480d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a480d([0x6c,0x6f,0x77])}),_0x2ebf16[_0x3a480d([0x74,0x68,0x65,0x6e])](()=>{_0x10386b||_0x2c601c(_0x3a480d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4750ac(){return _0x1eb697[_0x3a480d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a480d([0x76,0x69,0x65,0x77])][_0x3a480d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a480d([0x61,0x75,0x74,0x6f]);}function _0x170c3e(){_0x1eb697[_0x3a480d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a480d([0x76,0x69,0x65,0x77])][_0x3a480d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a480d([0x61,0x75,0x74,0x6f]);}}function _0x38d14c(_0x5524b1){const _0x3f3df5=[new window[(_0x3a480d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5316fb=>setTimeout(_0x5316fb,0x47abbbca^_0x529a02)),_0x2ebf16[_0x3a480d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a480d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55e204=>{let _0x3f7b32=0x0;_0x1eb697[_0x3a480d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a480d([0x6f,0x6e])](_0x3a480d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d1376,_0x4676f0)=>{_0x4676f0[0x0][_0x3a480d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f7b32++,_0x3f7b32==(0x47a280ee^_0x529a02)&&(_0x55e204(),_0x1d1376[_0x3a480d([0x6f,0x66,0x66])]());});}))];return window[_0x3a480d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a480d([0x72,0x61,0x63,0x65])](_0x3f3df5)[_0x3a480d([0x74,0x68,0x65,0x6e])](()=>_0x5524b1);}async function _0x5e00d5(){await _0x2ebf16,_0x1eb697[_0x3a480d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a480d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x424f25,_0x1eb697[_0x3a480d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a480d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x424f25,_0x1eb697[_0x3a480d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a480d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x206e76(_0x129a02){const _0x280c84=_0x430454();_0x1eb697[_0x280c84]=_0x3a480d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x129a02,_0x129a02!=_0x3a480d([0x56,0x61,0x6c,0x69,0x64])&&_0x5e00d5();}function _0x430454(){const _0x569f0a=window[_0x3a480d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a480d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a480d([0x6e,0x6f,0x77])]())[_0x3a480d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a480d([0x2e]),'');let _0x129928=_0x3a480d([0x75]);for(let _0xbb32d=0x0;_0xbb32d<_0x569f0a[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbb32d+=0x2){let _0x58c13e=window[_0x3a480d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x569f0a[_0x3a480d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbb32d,_0xbb32d+0x2));_0x58c13e>=_0x31bd80[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58c13e-=_0x31bd80[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x129928+=_0x31bd80[_0x58c13e];}return _0x129928;}function _0x3e2089(){const _0x480a26=_0x2d9ac4[_0x3a480d([0x73,0x70,0x6c,0x69,0x74])](_0x3a480d([0x2e]));if(0x3!=_0x480a26[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x138768(_0x480a26[0x1]);function _0x138768(_0x1dbe7f){const _0x5777b9=_0xb1fcfc(_0x1dbe7f);return _0x5777b9&&_0x555d5f()?_0x5777b9:null;function _0x555d5f(){const _0x85f486=_0x5777b9[_0x3a480d([0x6a,0x74,0x69])],_0x4db999=window[_0x3a480d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x85f486[_0x3a480d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x85f486[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d46c1={..._0x5777b9,[_0x3a480d([0x6a,0x74,0x69])]:_0x85f486[_0x3a480d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x85f486[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d46c1[_0x3a480d([0x76,0x63])],_0x4fd829(_0x4d46c1)==_0x4db999;}}}async function _0x9247b7(){let _0x4e26be=!0x0;try{const _0x519179=_0x2d9ac4[_0x3a480d([0x73,0x70,0x6c,0x69,0x74])](_0x3a480d([0x2e])),[_0x36bfbb,_0xd10a90,_0x32cb34]=_0x519179;return _0x2d6f96(_0x36bfbb),await _0x552e6e(_0x36bfbb,_0xd10a90,_0x32cb34),_0x4e26be;}catch{return!0x1;}function _0x2d6f96(_0x1ce92d){const _0x49eb6c=_0xb1fcfc(_0x1ce92d);_0x49eb6c&&_0x49eb6c[_0x3a480d([0x61,0x6c,0x67])]==_0x3a480d([0x45,0x53,0x32,0x35,0x36])||(_0x4e26be=!0x1);}async function _0x552e6e(_0x1cff25,_0x2aabfa,_0x5517e1){const _0x5b3098=window[_0x3a480d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a480d([0x66,0x72,0x6f,0x6d])](_0x4d1dc3(_0x5517e1),_0x341552=>_0x341552[_0x3a480d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x198675=new window[(_0x3a480d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a480d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1cff25+_0x3a480d([0x2e])+_0x2aabfa),_0x13780a=window[_0x3a480d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a480d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13780a)return;const _0x1c6975=await _0x13780a[_0x3a480d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a480d([0x6a,0x77,0x6b]),_0x3e892f,{[_0x3a480d([0x6e,0x61,0x6d,0x65])]:_0x3a480d([0x45,0x43,0x44,0x53,0x41]),[_0x3a480d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a480d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a480d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13780a[_0x3a480d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a480d([0x6e,0x61,0x6d,0x65])]:_0x3a480d([0x45,0x43,0x44,0x53,0x41]),[_0x3a480d([0x68,0x61,0x73,0x68])]:{[_0x3a480d([0x6e,0x61,0x6d,0x65])]:_0x3a480d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c6975,_0x5b3098,_0x198675)||(_0x4e26be=!0x1);}}function _0xb1fcfc(_0x30deab){return _0x30deab[_0x3a480d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a480d([0x65,0x79]))?JSON[_0x3a480d([0x70,0x61,0x72,0x73,0x65])](_0x4d1dc3(_0x30deab)):null;}function _0x4d1dc3(_0x3db129){return window[_0x3a480d([0x61,0x74,0x6f,0x62])](_0x3db129[_0x3a480d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a480d([0x2b]))[_0x3a480d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a480d([0x2f])));}function _0x4fd829(_0x4541ba){let _0x24bc71=0x1505;function _0x563431(_0x2455b9){for(let _0x373db0=0x0;_0x373db0<_0x2455b9[_0x3a480d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x373db0++){const _0xec4cb5=_0x2455b9[_0x3a480d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x373db0);_0x24bc71=(_0x24bc71<<0x5)+_0x24bc71+_0xec4cb5,_0x24bc71&=_0x24bc71;}}function _0x51e39b(_0x477aa2){Array[_0x3a480d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x477aa2)?_0x477aa2[_0x3a480d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51e39b):_0x477aa2&&typeof _0x477aa2==_0x3a480d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a480d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x477aa2)[_0x3a480d([0x73,0x6f,0x72,0x74])]()[_0x3a480d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d45af,_0x2141b7])=>{_0x563431(_0x1d45af),_0x51e39b(_0x2141b7);}):_0x563431(window[_0x3a480d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x477aa2));}return _0x51e39b(_0x4541ba),_0x24bc71>>>0x0;}function _0x5c9a38(_0xd03fe6){return _0xd03fe6[_0x3a480d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a480d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a480d([0x30]));}function _0x72ec43(_0x389d55){return _0x389d55[_0x3a480d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a480d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a480d([0x6a,0x6f,0x69,0x6e])]('');}function _0x424f25(){}function _0x3a480d(_0x332b00){return _0x332b00['map'](_0x294ada=>String['fromCharCode'](_0x294ada))['join']('');}_0x206e76(await _0x87243());}(this);}['_moveSelectionToFootnoteDefinition'](_0x86d158){const {plugins:_0x2bd874,editing:_0x49decf,model:_0x56e090}=this['editor'],_0x3aa56f=_0x2bd874['get'](K)['getFootnote'](_0x86d158);return!!_0x3aa56f&&(_0x56e090['change'](_0x34547b=>{_0x34547b['setSelection'](_0x34547b['createPositionAt'](_0x3aa56f['definition'],'end'));}),_0x49decf['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x6db44e){const {plugins:_0xf0b786,editing:_0x1cd9af,model:_0x3e41f0}=this['editor'],_0x3abced=_0xf0b786['get'](K)['getFootnote'](_0x6db44e);return!!_0x3abced&&(_0x3e41f0['change'](_0x10d907=>{_0x10d907['setSelection'](_0x3abced['reference'],'on');}),_0x1cd9af['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4bd43e}=this['editor']['model'],_0x1af425=this['editor']['config']['get']('footnotes.multiBlock');_0x4bd43e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4bd43e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4bd43e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1af425?_0x4bd43e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4bd43e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4bd43e['addChildCheck'](_0x3f7bf6=>{for(const _0x7662b of _0x3f7bf6)if('footnoteDefinition'===_0x7662b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xa220ba}=this,{conversion:_0xb4953b,editing:_0x2bc7d2}=_0xa220ba,{t:t}=_0xa220ba['locale'];_0xb4953b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x367f68,{writer:_0x533581,consumable:_0x339144})=>{const _0x13552b=_0x367f68['getChild'](0x0);if(!_0x13552b||!_0x13552b['is']('element','a'))return null;const _0x417fd9=_0x13552b['getAttribute']('href')||'';if(!_0x417fd9['startsWith']('#'))return null;const _0x4367ce=_0x417fd9['replace'](/^#/,'');if(!_0x4367ce)return null;_0x339144['consume'](_0x13552b,{'name':!0x0,'attributes':['href']});for(const {item:_0x206c8f}of _0x2bc7d2['view']['createRangeIn'](_0x13552b))_0x206c8f['is']('$textProxy')?_0x339144['consume'](_0x206c8f['textNode'],{'name':!0x0}):_0x206c8f['is']('element')&&_0x339144['consume'](_0x206c8f,{'name':!0x0});return _0x533581['createElement']('footnoteRef',{'footnoteId':_0x4367ce});}}),_0xb4953b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x438d53,{writer:_0x2a17b7})=>z(_0x438d53,_0x2a17b7)}),_0xb4953b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3ae289,{writer:_0x567d0e})=>{const _0x19dbe5=_0x3ae289['getAttribute']('footnoteCounter');return _0x1153e8(z(_0x3ae289,_0x567d0e),_0x567d0e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x19dbe5)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5b1c4a}=this,{t:t}=_0x5b1c4a['locale'],{conversion:_0x27002f}=_0x5b1c4a;_0x27002f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x27002f['for']('upcast')['add'](_0xc41940=>{_0xc41940['on']('element:ol',(_0x3904e9,_0x188d51,_0xe128f1)=>{const _0x495582=_0x188d51['viewItem'];if(!_0x495582['hasClass']('footnotes-list')||!_0x188d51['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xe128f1['consumable']['consume'](_0x495582,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x24ae9f,modelCursor:_0x26eacf}=_0xe128f1['convertChildren'](_0x188d51['viewItem'],_0x188d51['modelCursor']);_0x188d51['modelRange']=_0x24ae9f,_0x188d51['modelCursor']=_0x26eacf;}),_0xc41940['on']('element:hr',(_0x4cbc1d,_0x5732de,_0x570fab)=>{const _0xacc116=_0x5732de['viewItem'];_0xacc116['hasClass']('footnotes-divider')&&_0x5732de['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x570fab['consumable']['consume'](_0xacc116,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x27002f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1668ee,{writer:_0xc426fd})=>H(_0xc426fd)}),_0x27002f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x51d73e,{writer:_0x34c890})=>{const _0x439c37=H(_0x34c890,{'data-footnotes-list-label':t('Footnotes')}),_0x4abfbc=_0x1153e8(_0x439c37,_0x34c890,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x34c890['setCustomProperty']('footnotesDefinitions',!0x0,_0x4abfbc),_0x4abfbc;}});}['_defineDefinitionConverters'](){const {editor:_0x4af682}=this,{conversion:_0x3398c7,locale:_0x1736cb}=_0x4af682,_0x5552eb=_0x4af682['config']['get']('footnotes.multiBlock');_0x3398c7['for']('upcast')['add'](_0x18b4f3=>{_0x18b4f3['on']('element:li',(_0x305e08,_0x53ba57,_0x433635)=>{const _0x63131a=_0x53ba57['viewItem'];if(!_0x63131a['hasClass']('footnote-definition')||!_0x63131a['getAttribute']('id'))return;const _0x3ddfb8=_0x63131a['parent'];if(!_0x3ddfb8['is']('element','ol')||!_0x3ddfb8['hasClass']('footnotes-list'))return;if(!_0x433635['consumable']['test'](_0x63131a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x30de2a=_0x433635['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x63131a['getAttribute']('id')});if(!_0x433635['safeInsert'](_0x30de2a,_0x53ba57['modelCursor']))return;_0x433635['consumable']['consume'](_0x63131a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x59cb48=Array['from'](_0x63131a['getChildren']())['find'](_0xa41b5d=>_0xa41b5d['is']('element')&&_0xa41b5d['hasClass']('footnote-content'));for(const _0x3ca429 of _0x63131a['getChildren']())_0x3ca429['is']('element')&&(_0x433635['consumable']['consume'](_0x3ca429,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x433635['consumable']['consume'](_0x3ca429,{'name':!0x0,'classes':'footnote-content'}));if(_0x59cb48){if(_0x5552eb)_0x433635['convertChildren'](_0x59cb48,_0x30de2a);else{const _0x227043=_0x433635['writer']['createElement']('footnoteInlineContent');_0x433635['writer']['insert'](_0x227043,_0x30de2a),_0x433635['convertChildren'](_0x59cb48,_0x227043);}}_0x433635['updateConversionResult'](_0x30de2a,_0x53ba57);});}),_0x3398c7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2e1cee,{writer:_0x26a377})=>X(_0x2e1cee,_0x26a377,_0x1736cb,{'dataPipeline':!0x0})}),_0x3398c7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1fa213,{writer:_0x27d4f3})=>X(_0x1fa213,_0x27d4f3,_0x1736cb)});}['_defineBogusParagraphConverters'](){const {editor:_0x4e6fed}=this,{conversion:_0x10311b}=_0x4e6fed;_0x4e6fed['config']['get']('footnotes.multiBlock')?(_0x10311b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x10311b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4e6fed['model']['document'],'change:data',()=>{!function(_0x2c94af,_0x1dd5de){const _0x49f260=_0x2c94af['document']['differ'],_0x46b7fd=new Set();for(const _0x5b27f6 of _0x49f260['getChanges']()){const _0x35a036='attribute'==_0x5b27f6['type']?_0x5b27f6['range']['start']['parent']:_0x5b27f6['position']['parent'];_0x35a036['is']('element','footnoteDefinition')&&_0x46b7fd['add'](_0x35a036);}for(const _0xc21704 of _0x46b7fd['values']()){const _0x5c0d5b=Array['from'](_0xc21704['getChildren']())['filter'](_0x142196=>U(_0x142196,_0x1dd5de['mapper']));for(const _0x6a70b8 of _0x5c0d5b)_0x1dd5de['reconvertItem'](_0x6a70b8);}}(_0x4e6fed['model'],_0x4e6fed['editing']);})):(_0x10311b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x10311b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x551bf6,{writer:_0x242dc0})=>{const _0x403379=_0x242dc0['createContainerElement']('span');return _0x242dc0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x403379),_0x403379;}}));}['_defineKeyboardHandlers'](){const {editor:_0x26e1a2}=this,{editing:_0x31e690,t:t}=_0x26e1a2,_0x4a070b=_0x26e1a2['model']['document']['selection'];_0x26e1a2['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x26e1a2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x31e690['view']['document'],'enter',(_0xd28e35,_0x558c54)=>{const _0x1dbcb2=function(_0x265a6b){const _0x3b73de=_0x265a6b['getSelectedElement']();if(_0x3b73de?.['is']('element','footnoteRef'))return _0x3b73de;return null;}(_0x4a070b);if(_0x1dbcb2){const _0x4160d1=_0x1dbcb2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4160d1),_0x558c54['preventDefault'](),_0xd28e35['stop']();}},{'context':_0x454a6b});}['_defineClickHandlers'](){const {editor:_0x1719f5}=this,{editing:_0x33fc06}=_0x1719f5;_0x1719f5['editing']['view']['addObserver'](_0x15c060),_0x1719f5['editing']['view']['addObserver'](_0x5d66e1);let _0x9f566e=!0x1;this['listenTo'](_0x33fc06['view']['document'],'pointerdown',(_0x104f7c,_0xed3b20)=>{const {target:_0x1e5e7c}=_0xed3b20,_0x5450d6=_0x33fc06['view']['document']['selection'];_0x9f566e=!!(_0x1e5e7c?.['is']('element','a')&&_0x1e5e7c['parent']?.['is']('element','sup')&&_0x1e5e7c['parent']['hasClass']('footnote'))&&_0x5450d6['getSelectedElement']()===_0x1e5e7c['parent'];},{'priority':'high'}),this['listenTo'](_0x33fc06['view']['document'],'click',(_0x18c7b8,_0x2b8338)=>{const {target:_0x162466}=_0x2b8338;if(!_0x162466?.['is']('element','a'))return;if(_0x162466['parent']?.['is']('element','sup')&&_0x162466['parent']['hasClass']('footnote')&&!_0x9f566e)return void _0x2b8338['preventDefault']();let _0x5d8540=_0x162466['getAttribute']('href');if(!_0x5d8540?.['startsWith']('#'))return;_0x5d8540=_0x5d8540['slice'](0x1);let _0x1f8281=!0x1;(_0x5d8540['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5d8540['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5d8540))&&(_0x1f8281=!0x0),_0x1f8281&&(_0x2b8338['preventDefault'](),_0x18c7b8['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x54ef55}={}){return(_0x10e0dd,{writer:_0x171946})=>{if(!M(_0x10e0dd))return null;if(!_0x54ef55)return _0x171946['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x150388=_0x171946['createContainerElement']('p');return _0x171946['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x150388),_0x150388;};}function M(_0x427237){const {parent:_0x38f93c}=_0x427237;if(!_0x38f93c?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x38f93c['childCount'])return!0x1;for(const _0x5a3911 of _0x427237['getAttributeKeys']())if(!_0x5a3911['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5a3911)return!0x1;return!0x0;}function U(_0x47a4f9,_0x3598ca){if(!_0x47a4f9['is']('element','paragraph'))return!0x1;const _0x1ccae0=_0x3598ca['toViewElement'](_0x47a4f9);return!!_0x1ccae0&&M(_0x47a4f9)!==_0x1ccae0['is']('element','span');}function q(_0x582608){return _0x454a6b(_0x582608)&&_0x582608['is']('containerElement')&&!!_0x582608['getCustomProperty']('footnotesDefinitions');}function H(_0x3587e3,_0x4aec0c={}){const _0x57a563=_0x3587e3['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x428449=_0x3587e3['createContainerElement']('ol',{'class':'footnotes-list'},_0x3587e3['createSlot']());return _0x3587e3['createContainerElement']('div',{'class':'footnotes',..._0x4aec0c},[_0x57a563,_0x428449]);}function z(_0x3cbf47,_0x2987b9){const _0x10d389=_0x3cbf47['getAttribute']('footnoteId'),_0x4f6182=_0x3cbf47['getAttribute']('footnoteCounter'),_0x3d3cf8=_0x2987b9['createUIElement']('a',{'href':'#'+_0x10d389},function(_0x487740){const _0x3e151b=this['toDomElement'](_0x487740);return _0x3e151b['textContent']=_0x4f6182,_0x3e151b;}),_0x43f04b=_0x2987b9['createContainerElement']('sup',{'id':'ref-'+_0x10d389,'class':'footnote'},[_0x3d3cf8]);return _0x43f04b['getFillerOffset']=()=>null,_0x43f04b;}function X(_0x150382,_0x304c15,_0x55d141,{dataPipeline:_0x5171b2}={}){const {t:t}=_0x55d141,_0x1b7ba6=_0x150382['getAttribute']('footnoteId'),_0x4ddef6=_0x304c15['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1b7ba6},function(_0x1f6782){const _0x2acab5=this['toDomElement'](_0x1f6782);return _0x2acab5['innerText']='^',_0x2acab5;}),_0x5aae18=_0x5171b2?_0x304c15['createContainerElement']('div',{'class':'footnote-content'}):_0x402a36(_0x304c15['createEditableElement']('div',{'class':'footnote-content'}),_0x304c15,{'label':t('Footnote\x20content.')});return _0x304c15['insert'](_0x304c15['createPositionAt'](_0x5aae18,0x0),_0x304c15['createSlot']()),_0x304c15['createContainerElement']('li',{'class':'footnote-definition','id':_0x1b7ba6},[_0x4ddef6,_0x5aae18]);}class J extends _0xd9b0c4{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x503252];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x591041}=this,{plugins:_0x3d8594,model:_0xe3efd7}=_0x591041,_0x218bd7=_0x3d8594['get'](_0x503252),_0x164929=_0x3d8594['get'](K);this['listenTo'](_0x218bd7,'outputTransformation',(_0x40f537,_0x199af7)=>{const _0x5208a9=Q(_0xe3efd7['createRangeIn'](_0x199af7['content']));if(!_0x5208a9['length'])return;const _0x5bcf1e=_0x164929['getFootnotes'](),_0x2db6eb=_0x5208a9['reduce']((_0x2cd5ef,_0x41a07a)=>{const _0x31d40b=_0x5bcf1e['find'](_0x5d39f3=>_0x5d39f3['id']===_0x41a07a);if(_0x31d40b){const _0x3dedfb=_0x591041['data']['toView'](_0x31d40b['definition'],{'isClipboardPipeline':!0x0}),_0x3e7b76=_0x591041['data']['htmlProcessor']['toData'](_0x3dedfb);_0x2cd5ef[_0x31d40b['id']]=_0x3e7b76;}return _0x2cd5ef;},Object['create'](null));_0x199af7['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2db6eb));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x197329}=this,{model:_0x4e75ad,plugins:_0x3a4b05}=_0x197329,{view:_0x40450c}=_0x197329['editing'],_0x45000a=_0x3a4b05['get'](_0x503252),_0x409fb0=_0x3a4b05['get'](K),_0x1e2f36=_0x197329['config']['get']('footnotes.multiBlock');let _0x2dccb2=null;this['listenTo'](_0x40450c['document'],'clipboardInput',(_0x24d370,_0x4613b6)=>{const _0x184a62=_0x4613b6['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2dccb2=_0x184a62?JSON['parse'](_0x184a62):null;}),this['listenTo'](_0x45000a,'contentInsertion',(_0x447171,_0x3b3a9e)=>{const _0x5eb292=_0x3b3a9e['sourceEditorId']===this['editor']['id'];_0x5eb292&&'drop'===_0x3b3a9e['method']||_0x4e75ad['change'](_0x14aa96=>{let _0x10060e=_0x409fb0['getFootnotesDefinitionsObjectElement']();const _0x400291=!!_0x10060e&&Array['from'](_0x4e75ad['document']['selection']['getSelectedBlocks']())['includes'](_0x10060e);if(!_0x2dccb2&&function(_0x9b1c23){for(const {item:_0x27cd31}of _0x9b1c23)if(_0x27cd31['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4e75ad['createRangeIn'](_0x3b3a9e['content']))&&(_0x2dccb2=function(_0x13233a,_0x3a9cc9){const _0x574119=G(_0x13233a,_0x3a9cc9);if(!_0x574119)return null;const _0x573909=Object['create'](null);for(const _0x5eca9e of _0x574119['getChildren']())_0x5eca9e['is']('element','footnoteDefinition')&&_0x5eca9e['hasAttribute']('footnoteId')&&(_0x573909[_0x5eca9e['getAttribute']('footnoteId')]=_0x13233a['cloneElement'](_0x5eca9e,!0x0));return Object['keys'](_0x573909)['length']?_0x573909:null;}(_0x14aa96,_0x3b3a9e['content'])),(_0x10060e&&!_0x400291||!_0x10060e&&!_0x2dccb2)&&function(_0x32101a,_0x1b1e27){const _0x1eb316=[];for(const {item:_0x1c054d}of _0x32101a['createRangeIn'](_0x1b1e27))_0x1c054d['is']('element','footnotesDefinitions')&&_0x1eb316['push'](_0x1c054d);for(const _0x2f23f4 of _0x1eb316)_0x32101a['remove'](_0x2f23f4);}(_0x14aa96,_0x3b3a9e['content']),!_0x2dccb2)return;const {selection:_0x3f4960}=_0x4e75ad['document'],_0x1a5c4d=_0x3f4960['getFirstRange']()['root'];_0x10060e&&!_0x400291||(_0x10060e=G(_0x14aa96,_0x3b3a9e['content']),_0x10060e||=_0x409fb0['_insertEmptyFootnotesDefinitionsContainer'](_0x14aa96,_0x1a5c4d));const _0x4aea77=Array['from'](_0x3f4960['getRanges']())['flatMap'](Q),_0x21b797=function(_0x21dc13,_0x9531b2,_0x51e3db){const _0x87c990=Object['create'](null);for(const {item:_0x476f1d}of _0x21dc13['createRangeIn'](_0x9531b2))if(_0x476f1d['is']('element','footnoteRef')){const _0x1ffd3e=_0x476f1d['getAttribute']('footnoteId');if(!_0x51e3db(_0x1ffd3e))continue;_0x87c990[_0x1ffd3e]||(_0x87c990[_0x1ffd3e]=_0x6ffec9()),_0x21dc13['setAttribute']('footnoteId',_0x87c990[_0x1ffd3e],_0x476f1d);}return _0x87c990;}(_0x14aa96,_0x3b3a9e['content'],_0x1ff1b9=>{if(!_0x5eb292)return!0x0;return!!_0x409fb0['getFootnote'](_0x1ff1b9)&&!_0x4aea77['includes'](_0x1ff1b9);});for(const [_0x2aa1bb,_0x6c3a69]of Object['entries'](_0x2dccb2)){const _0x34d54a=_0x21b797[_0x2aa1bb]||_0x2aa1bb;let _0x394a6e;if('string'!=typeof _0x6c3a69)_0x394a6e=_0x6c3a69,_0x34d54a!==_0x2aa1bb&&_0x14aa96['setAttribute']('footnoteId',_0x34d54a,_0x394a6e);else{_0x394a6e=_0x14aa96['createElement']('footnoteDefinition',{'footnoteId':_0x34d54a});const _0xae9f62=_0x197329['data']['htmlProcessor']['toView'](_0x6c3a69);let _0xc9f21e;if(_0x1e2f36)_0xc9f21e=_0x197329['data']['toModel'](_0xae9f62,_0x394a6e);else{_0xc9f21e=_0x14aa96['createElement']('footnoteInlineContent');const _0x30897a=_0x197329['data']['toModel'](_0xae9f62,_0xc9f21e);_0x14aa96['insert'](_0x30897a,_0xc9f21e);}_0x14aa96['append'](_0xc9f21e,_0x394a6e);}_0x14aa96['insert'](_0x394a6e,_0x10060e,'end');}_0x2dccb2=null;});});}}function G(_0x3b019f,_0x69877a){for(const {item:_0x59a0e6}of _0x3b019f['createRangeIn'](_0x69877a))if(_0x59a0e6['is']('element','footnotesDefinitions'))return _0x59a0e6;return null;}function Q(_0x467757){const _0x420f2f=new Set();for(const {item:_0xdb84ec}of _0x467757)_0xdb84ec['is']('element','footnoteRef')&&_0x420f2f['add'](_0xdb84ec['getAttribute']('footnoteId'));return Array['from'](_0x420f2f);}class W extends _0xd9b0c4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x116c5d}=this,{componentFactory:_0x2161eb}=_0x116c5d['ui'];_0x2161eb['add']('insertFootnote',Y(_0x116c5d,_0x5b6b16)),_0x2161eb['add']('menuBar:insertFootnote',Y(_0x116c5d,_0x190c7f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36f6df=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x793ea6;for(const _0x46f6c8 in _0x36f6df){const _0x1780ec=_0x46f6c8,_0x3b4cc5=_0x36f6df[_0x1780ec];if('footnotesLicenseKeyValid'==_0x3b4cc5||'footnotesLicenseKeyInvalid'==_0x3b4cc5||'footnotesLicenseKeyExpired'==_0x3b4cc5||'footnotesLicenseKeyDomainLimit'==_0x3b4cc5||'footnotesLicenseKeyNotAllowed'==_0x3b4cc5||'footnotesLicenseKeyEvaluationLimit'==_0x3b4cc5||'footnotesLicenseKeyUsageLimit'==_0x3b4cc5){delete _0x36f6df[_0x1780ec],_0x793ea6=_0x3b4cc5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x793ea6&&_0x36f6df['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x793ea6&&_0x36f6df['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x793ea6&&_0x36f6df['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x793ea6&&_0x36f6df['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x793ea6&&_0x36f6df['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x793ea6&&_0x36f6df['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x19ae1f,_0x236118){const _0x165791=_0x19ae1f['commands']['get']('insertFootnote');return _0x10a59d=>{const {t:t}=_0x10a59d,_0x276fa0=new _0x236118(_0x10a59d),_0x7778d5=_0x276fa0 instanceof _0x190c7f;return _0x276fa0['bind']('isEnabled')['to'](_0x165791,'isEnabled'),_0x276fa0['set']({'label':t(_0x7778d5?'Footnote':'Insert\x20footnote'),'icon':_0x12eacd,'tooltip':!0x0}),_0x276fa0['on']('execute',()=>{_0x165791['execute'](),_0x19ae1f['editing']['view']['focus']();}),_0x276fa0;};}class Z extends _0xd9b0c4{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[$,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];class nt extends _0x44bdb4{['refresh'](){const {editor:_0x2c5349}=this,_0x2c3d13=_0x2c5349['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2c3d13,this['value']=_0x2c3d13?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xae812}){const {editor:_0xa29a56}=this,_0x5e5cd7=_0xa29a56['plugins']['get'](K),_0x31c63d=_0x5e5cd7['getFootnotesDefinitionsObjectElement']();_0x31c63d&&ot['includes'](_0xae812)&&_0xa29a56['model']['change'](_0x41b75c=>{_0x41b75c['setAttribute']('footnotesListStyle',_0xae812,_0x31c63d),_0x5e5cd7['_updateFootnotesCounters'](_0x41b75c);});}}class it extends _0x44bdb4{['refresh'](){const {editor:_0x4f6c66}=this,_0x175d21=_0x4f6c66['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x175d21,this['value']=_0x175d21?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2761d1}){const {editor:_0x50a79d}=this,_0x2af5dd=_0x50a79d['plugins']['get'](K),_0x20c3ec=_0x2af5dd['getFootnotesDefinitionsObjectElement']();_0x20c3ec&&Number['isInteger'](_0x2761d1)&&_0x50a79d['model']['change'](_0x5b750b=>{_0x5b750b['setAttribute']('footnotesListStart',_0x2761d1,_0x20c3ec),_0x2af5dd['_updateFootnotesCounters'](_0x5b750b);});}}function st(_0x4dc6b2,_0x599086){let _0x216139='',_0x2aebae=_0x4dc6b2;for(;_0x2aebae>0x0;){const _0x1ff68b=(_0x2aebae-0x1)%0x1a;_0x216139=String['fromCharCode'](0x61+_0x1ff68b)+_0x216139,_0x2aebae=Math['floor']((_0x2aebae-0x1)/0x1a);}return _0x599086?_0x216139['toUpperCase']():_0x216139;}const rt=[{'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 lt(_0x43e160,_0x133461){let _0x2e3e7f='',_0x42f756=_0x43e160;for(const {value:_0x261ec0,numeral:_0x5a1afe}of rt)for(;_0x42f756>=_0x261ec0;)_0x2e3e7f+=_0x5a1afe,_0x42f756-=_0x261ec0;return _0x133461?_0x2e3e7f:_0x2e3e7f['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0xd9b0c4{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f67ed}=this;_0x4f67ed['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4f67ed['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4f67ed['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x4f67ed['commands']['add']('footnotesStyle',new nt(_0x4f67ed)),_0x4f67ed['commands']['add']('footnotesStart',new it(_0x4f67ed)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x480718}=this,{schema:_0x3cbc93}=_0x480718['model'];_0x3cbc93['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x502fe5}=this,{conversion:_0x561e57,model:_0x133ae2}=_0x502fe5,{schema:_0xb0ddee}=_0x133ae2;_0x561e57['for']('upcast')['add'](_0x399ea4=>{_0x399ea4['on']('element:ol',(_0xfee6cb,_0x2d25f8,_0x53eff5)=>{const _0x214ad6=_0x2d25f8['viewItem'],_0x2efe66=_0x2d25f8['modelCursor']?.['parent'];_0x214ad6['hasClass']('footnotes-list')&&_0x2efe66?.['is']('element','footnotesDefinitions')&&(function(_0x437c5f,_0x1db9bf,_0x32a0cc,_0x29f906){if(!_0x29f906['checkAttribute'](_0x1db9bf,'footnotesListStart'))return;let _0x5fb6ce=0x1;const _0x10e2af=_0x32a0cc['consumable']['consume'](_0x437c5f,{'attributes':'start'});if(_0x10e2af){const _0xd09a6=Number['parseInt'](_0x437c5f['getAttribute']('start'),0xa);Number['isNaN'](_0xd09a6)||(_0x5fb6ce=_0xd09a6);}!_0x10e2af&&_0x1db9bf['hasAttribute']('footnotesListStart')||_0x32a0cc['writer']['setAttribute']('footnotesListStart',_0x5fb6ce,_0x1db9bf);}(_0x214ad6,_0x2efe66,_0x53eff5,_0xb0ddee),function(_0x1417fd,_0xecbc9d,_0x4a6a2e,_0x5e28d5){if(!_0x5e28d5['checkAttribute'](_0xecbc9d,'footnotesListStyle'))return;let _0x5f2db0='decimal',_0x597efe=!0x1;if(_0x4a6a2e['consumable']['consume'](_0x1417fd,{'attributes':'type'})){const _0x120c8f={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x1417fd['getAttribute']('type')];_0x120c8f&&(_0x5f2db0=_0x120c8f),_0x597efe=!0x0;}if(_0x4a6a2e['consumable']['consume'](_0x1417fd,{'styles':'list-style-type'})){const _0x46944b=ct(_0x1417fd['getStyle']('list-style-type'));_0x46944b&&(_0x5f2db0=_0x46944b),_0x597efe=!0x0;}!_0x597efe&&_0xecbc9d['hasAttribute']('footnotesListStyle')||_0x4a6a2e['writer']['setAttribute']('footnotesListStyle',_0x5f2db0,_0xecbc9d);}(_0x214ad6,_0x2efe66,_0x53eff5,_0xb0ddee));});}),_0x561e57['for']('downcast')['add'](_0x5eec8d=>{_0x5eec8d['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x2bb080,_0x252391,_0x4f64d7)=>{if(!_0x4f64d7['consumable']['consume'](_0x252391['item'],_0x2bb080['name']))return;const _0x24c46c=ut(_0x252391['item'],_0x4f64d7['mapper']),{attributeNewValue:_0x51327a}=_0x252391;null==_0x51327a||0x1===_0x51327a?_0x4f64d7['writer']['removeAttribute']('start',_0x24c46c):_0x4f64d7['writer']['setAttribute']('start',String(_0x51327a),_0x24c46c);}),_0x5eec8d['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xd1b643,_0x50526d,_0x50f039)=>{if(!_0x50f039['consumable']['consume'](_0x50526d['item'],_0xd1b643['name']))return;const _0x198c96=ut(_0x50526d['item'],_0x50f039['mapper']),{attributeNewValue:_0x2860b7}=_0x50526d;_0x2860b7&&'decimal'!==_0x2860b7?_0x50f039['writer']['setStyle']('list-style-type',_0x2860b7,_0x198c96):_0x50f039['writer']['removeStyle']('list-style-type',_0x198c96);});});}['_definePostfixer'](){const {editor:_0x33b7be}=this,{model:_0x13920e}=_0x33b7be,_0x58a394=_0x33b7be['plugins']['get'](K),_0x4aafa1=this['_getDefaultListStyle'](),_0x4b6ed0=this['_getDefaultStartIndex']();_0x13920e['document']['registerPostFixer'](_0x1ba62a=>{const _0x274357=_0x13920e['document']['differ']['getChanges']();let _0x4fc046=!0x1;for(const _0x1e1142 of _0x274357){if('insert'!==_0x1e1142['type']||'$text'===_0x1e1142['name'])continue;const _0x1f3e88=_0x13920e['createRangeOn'](_0x1e1142['position']['nodeAfter']);for(const _0x5c5243 of _0x1f3e88['getItems']())_0x5c5243['is']('element','footnotesDefinitions')&&(!_0x5c5243['hasAttribute']('footnotesListStart')&&_0x13920e['schema']['checkAttribute'](_0x5c5243,'footnotesListStart')&&(_0x1ba62a['setAttribute']('footnotesListStart',_0x4b6ed0,_0x5c5243),_0x4fc046=!0x0),!_0x5c5243['hasAttribute']('footnotesListStyle')&&_0x13920e['schema']['checkAttribute'](_0x5c5243,'footnotesListStyle')&&(_0x1ba62a['setAttribute']('footnotesListStyle',_0x4aafa1,_0x5c5243),_0x4fc046=!0x0));}return _0x4fc046&&_0x58a394['_updateFootnotesCounters'](_0x1ba62a),_0x4fc046;});}['_defineFormatter'](){const {editor:_0x5d28b8}=this;_0x5d28b8['plugins']['get'](K)['setFootnoteFormatter'](_0x846d52=>this['_formatFootnoteListValue'](_0x846d52));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4b1ea2,value:_0x552037,digits:_0x1c3d6c}){const _0x29f436=_0x4b1ea2['getAttribute']('footnotesListStyle'),_0x503dee=_0x4b1ea2['getAttribute']('footnotesListStart'),_0x4dbe9a=Math['floor'](_0x552037)+(_0x503dee??0x1)-0x1;switch(_0x29f436){case'decimal-leading-zero':return function(_0x56f99e,_0x2ebb24){return String(_0x56f99e)['padStart'](_0x2ebb24,'0');}(_0x4dbe9a,Math['max'](0x2,_0x1c3d6c));case'lower-alpha':case'lower-latin':return st(_0x4dbe9a,!0x1);case'upper-alpha':case'upper-latin':return st(_0x4dbe9a,!0x0);case'lower-roman':return lt(_0x4dbe9a,!0x1);case'upper-roman':return lt(_0x4dbe9a,!0x0);case'arabic-indic':return String(_0x4dbe9a)['replace'](/\d/g,_0x309d60=>ft[Number(_0x309d60)]);default:return String(_0x4dbe9a);}}}function ct(_0x1d90e9){if('string'==typeof _0x1d90e9){const _0x120c29=et[_0x1d90e9];if(_0x120c29)return _0x120c29;if(ot['includes'](_0x1d90e9))return _0x1d90e9;}return null;}function ut(_0x3bed4b,_0x1c9b9c){const _0xf41ca6=_0x1c9b9c['toViewElement'](_0x3bed4b);return Array['from'](_0xf41ca6['getChildren']())['find'](_0xa072c1=>_0xa072c1['is']('element','ol')&&_0xa072c1['hasClass']('footnotes-list'));}class dt extends _0x2952a9{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x1c5066();['keystrokes']=new _0x35e87a();['focusables']=new _0x411ec1();['focusCycler'];constructor(_0x355aa5,{styleButtonViews:_0x47d7d2,styleGridAriaLabel:_0x2f2514}){super(_0x355aa5),(this['focusCycler']=new _0x4dfe02({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x47d7d2,_0x2f2514),[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 _0x5430c4 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5430c4['element']);_0xfee55d({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x108115['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 _0x3e63e4=_0x4713ec=>_0x4713ec['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3e63e4),this['keystrokes']['set']('arrowleft',_0x3e63e4),this['keystrokes']['set']('arrowup',_0x3e63e4),this['keystrokes']['set']('arrowdown',_0x3e63e4);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x533d41,_0x121a6f){const _0x57cb3b=new _0x2952a9(this['locale']);return _0x57cb3b['children']=_0x57cb3b['createCollection'](),_0x57cb3b['children']['addMany'](_0x533d41),_0x57cb3b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x121a6f,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x57cb3b['children']}),_0x57cb3b['children']['delegate']('execute')['to'](this),_0x57cb3b['focus']=function(){for(const _0x3ac20a of this['children'])if(_0x3ac20a instanceof _0x5b6b16&&_0x3ac20a['isOn'])return void _0x3ac20a['focus']();this['children']['first']['focus']();},_0x57cb3b['focusTracker']=new _0x1c5066(),_0x57cb3b['keystrokes']=new _0x35e87a(),_0x57cb3b['render'](),_0x57cb3b['keystrokes']['listenTo'](_0x57cb3b['element']),this['children']['add'](_0x57cb3b),_0x57cb3b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3a950b=this['_createStartIndexPropertyView'](),_0x23f96d=[_0x3a950b],_0x4fb29c=new _0x4082fa(this['locale'],_0x23f96d);return _0x4fb29c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4fb29c['buttonView']['bind']('isEnabled')['toMany'](_0x23f96d,'isEnabled',(..._0x13bcbd)=>_0x13bcbd['some'](_0x17b3d8=>_0x17b3d8)),_0x4fb29c['buttonView']['on']('change:isEnabled',(_0x20edd9,_0x20a663,_0x4d4792)=>{_0x4d4792||(_0x4fb29c['isCollapsed']=!0x0);}),this['children']['add'](_0x4fb29c),[_0x3a950b,_0x4fb29c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4a5116=new _0x4d292c(this['locale'],_0x4c2ec1);return _0x4a5116['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4a5116['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4a5116['fieldView']['on']('input',()=>{const _0x3d0f8a=_0x4a5116['fieldView']['element'],_0x95d7e7=_0x3d0f8a['valueAsNumber'];Number['isNaN'](_0x95d7e7)?_0x4a5116['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3d0f8a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x95d7e7}):_0x4a5116['errorText']=t(_0x95d7e7<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4a5116;}}class ht extends _0xd9b0c4{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x260156,_0xf7babd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x36b8eb}=this,{componentFactory:_0x51e120}=_0x36b8eb['ui'];_0x36b8eb['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x51e120['add']('footnotesStyle',function(_0x2016b6){return _0x5ccc14=>{const {t:t}=_0x5ccc14,_0x35ac9b=_0x2016b6['commands']['get']('footnotesStyle'),_0x2f823b=_0x2f2645(_0x5ccc14),{buttonView:_0x1f437f}=_0x2f823b;return _0x2f823b['class']='ck-footnotes-styles-dropdown',_0x2f823b['bind']('isEnabled')['to'](_0x35ac9b,'isEnabled'),_0x1f437f['set']({'label':t('Footnotes\x20style'),'icon':_0x12eacd,'tooltip':!0x0}),_0x2f823b['once']('change:isOpen',()=>{const _0x33a0f4=function({editor:_0x186a2b,dropdownView:_0x374024}){const {t:t}=_0x186a2b['locale'],_0x26c468=t('Footnotes\x20definitions\x20styles'),_0x41e29a=function(_0x2d31a9){const {t:t}=_0x2d31a9['locale'],_0x1c9d6f=_0x2d31a9['config']['get']('footnotes.footnotesProperties.listStyles'),_0x57c7f4=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x13c580},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x2aba5f},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x2f8863},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x5a5221},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x132cbb},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x24a427},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x11d7c2}];return _0x1c9d6f['map'](_0xa7845c=>{const _0x229674=ct(_0xa7845c),_0x139911=_0x57c7f4['find'](_0x1b32af=>_0x1b32af['style']===_0x229674);return function(_0x7c4120,_0x4e2129){const {locale:_0x1b3ce7}=_0x7c4120,{label:_0x29a71c,icon:_0x1cb296,tooltip:_0x4d8897,style:_0x53c706}=_0x4e2129,_0x1dd502=_0x7c4120['commands']['get']('footnotesStyle'),_0x16b92d=new _0x5b6b16(_0x1b3ce7);return _0x16b92d['set']({'label':_0x29a71c,'icon':_0x1cb296,'tooltip':_0x4d8897}),_0x16b92d['bind']('isOn')['to'](_0x1dd502,'value',_0x59b47e=>_0x59b47e===_0x53c706),_0x16b92d['bind']('isEnabled')['to'](_0x1dd502,'isEnabled'),_0x16b92d['on']('execute',()=>{_0x7c4120['execute']('footnotesStyle',{'value':_0x53c706}),_0x7c4120['editing']['view']['focus']();}),_0x16b92d;}(_0x2d31a9,_0x139911);});}(_0x186a2b),_0x14b367=new dt(_0x186a2b['locale'],{'styleGridAriaLabel':_0x26c468,'styleButtonViews':_0x41e29a}),_0x47c8ea=_0x186a2b['commands']['get']('footnotesStart');return _0x14b367['startIndexFieldView']['bind']('isEnabled')['to'](_0x47c8ea),_0x14b367['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x47c8ea),_0x14b367['on']('footnotesListStart',(_0x33bcd5,_0x5e0b7b)=>{_0x186a2b['execute']('footnotesStart',{'value':_0x5e0b7b['startIndex']});}),_0x14b367['delegate']('execute')['to'](_0x374024),_0x14b367;}({'editor':_0x2016b6,'dropdownView':_0x2f823b});_0x2f823b['panelView']['children']['add'](_0x33a0f4);}),_0x2f823b;};}(_0x36b8eb));}['afterInit'](){const {editor:_0x3ec62f}=this,{t:t}=_0x3ec62f['locale'],_0x2888ea=_0x3ec62f['plugins']['get'](_0xf7babd),{defaultPositions:_0x3ef5e0}=_0x120e62;_0x2888ea['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3ec62f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5c8b45=>{let _0x41d634=_0x5c8b45['getFirstPosition']()?.['parent'];return _0x41d634?.['is']('$text')&&(_0x41d634=_0x41d634['parent']),_0x41d634?.['is']('element')?_0x41d634['findAncestor'](q):null;},'positions':[_0x3ef5e0['southArrowNorth'],_0x3ef5e0['southArrowNorthMiddleWest'],_0x3ef5e0['southArrowNorthMiddleEast'],_0x3ef5e0['southArrowNorthWest'],_0x3ef5e0['southArrowNorthEast'],_0x3ef5e0['northArrowSouth'],_0x3ef5e0['northArrowSouthMiddleWest'],_0x3ef5e0['northArrowSouthMiddleEast'],_0x3ef5e0['northArrowSouthWest'],_0x3ef5e0['northArrowSouthEast'],_0x3ef5e0['viewportStickyNorth']]});}}class mt extends _0xd9b0c4{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[at,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Z as Footnotes,J as FootnotesClipboard,$ as FootnotesEditing,mt as FootnotesProperties,at as FootnotesPropertiesEditing,ht as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,K as FootnotesTracker,W as FootnotesUI,V as InsertFootnoteCommand};
23
+ import{Plugin as _0x1e1533,Command as _0x5b6dff}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x43c247,isWidget as _0x2a8d9d,toWidgetEditable as _0x41573e,WidgetToolbarRepository as _0x46bf04}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x4cf4e5,logWarning as _0x6e2e40,FocusTracker as _0x133c67,KeystrokeHandler as _0x570328,global as _0x511582}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x22643a,ClickObserver as _0x5216eb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x498d9a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x2de974,ButtonView as _0x2c9d61,View as _0x151744,ViewCollection as _0x31a3e7,FocusCycler as _0x2e4319,addKeyboardHandlingForGrid as _0x1ce317,CollapsibleView as _0x400660,LabeledFieldView as _0x16228b,createLabeledInputNumber as _0x1e30a8,ContextualBalloon as _0x432c24,BalloonPanelView as _0xec83eb,createDropdown as _0x1770c5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3ffa67,IconListStyleDecimal as _0x58f150,IconListStyleDecimalLeadingZero as _0x27e637,IconListStyleLowerRoman as _0xbf8c50,IconListStyleUpperRoman as _0x42442c,IconListStyleLowerLatin as _0x10edda,IconListStyleUpperLatin as _0x59fc5c,IconListStyleArabicIndic as _0x3ce8a5}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x281216,_0x45cff2){this['_model']=_0x281216,this['_elementName']=_0x45cff2['elementName'],this['_getElementKey']=_0x45cff2['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3485ce){const _0x1ac0d3=new Set(),_0x5f414e=new Map();for(const _0x392ea0 of _0x3485ce){if('insert'===_0x392ea0['type']&&'$text'!==_0x392ea0['name']&&_0x392ea0['position']['nodeAfter']){const _0x25e304=this['_model']['createRangeOn'](_0x392ea0['position']['nodeAfter']);for(const _0x223df1 of _0x25e304['getItems']()){if(!_0x223df1['is']('element',this['_elementName']))continue;const _0x28b755=this['_getElementKey'](_0x223df1);_0x5f414e['has'](_0x28b755)||_0x5f414e['set'](_0x28b755,[]),_0x5f414e['get'](_0x28b755)['push'](_0x223df1);}}if('remove'===_0x392ea0['type']&&_0x392ea0['name']===this['_elementName']){const _0x562ed6=this['_getElementKey']({'getAttribute':_0x59e1a7=>_0x392ea0['attributes']['get'](_0x59e1a7)});_0x1ac0d3['add'](_0x562ed6);}}for(const [_0x55d7d0,_0x28f978]of this['_trackedElements'])'$graveyard'===_0x28f978['root']['rootName']&&_0x1ac0d3['add'](_0x55d7d0);for(const _0x153b12 of _0x1ac0d3)this['_trackedElements']['delete'](_0x153b12);for(const [_0x5e14e6,_0x2c9810]of _0x5f414e)this['_trackedElements']['set'](_0x5e14e6,_0x2c9810[_0x2c9810['length']-0x1]);const _0x20a1f4=new Set();for(const [_0x383166,_0x5f48cc]of _0x5f414e)_0x1ac0d3['has'](_0x383166)&&(_0x20a1f4['add'](_0x5f48cc[0x0]),_0x5f48cc['length']>0x1?_0x5f414e['set'](_0x383166,_0x5f48cc['slice'](0x1)):_0x5f414e['delete'](_0x383166),_0x1ac0d3['delete'](_0x383166));return{'removed':Array['from'](_0x1ac0d3),'inserted':Array['from'](_0x5f414e['values']())['flat'](),'moved':Array['from'](_0x20a1f4)};}}class K extends _0x1e1533{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe696a6){super(_0xe696a6),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x539019=>_0x539019['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3d920c=>_0x3d920c['getAttribute']('footnoteId')});}['init'](){const {editor:_0x238909}=this,{model:_0x1975fb,data:_0x348cf2}=_0x238909;_0x1975fb['document']['registerPostFixer'](_0x3af6ab=>{const _0x42ca72=_0x1975fb['document']['differ']['getChanges']();let _0x2b9ccd=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3af6ab,_0x42ca72)&&(_0x2b9ccd=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3af6ab,_0x42ca72)&&(_0x2b9ccd=!0x0),this['_handleFootnoteReferencesChanges'](_0x3af6ab,_0x42ca72)&&(_0x2b9ccd=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3af6ab)&&(_0x2b9ccd=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3af6ab)&&(_0x2b9ccd=!0x0),this['_sortFootnoteDefinitions'](_0x3af6ab)&&(_0x2b9ccd=!0x0),_0x2b9ccd;}),this['listenTo'](_0x1975fb['document'],'change:data',()=>{_0x1975fb['enqueueChange']({'isUndoable':!0x1},_0xb66668=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xb66668);});},{'priority':'low'}),this['listenTo'](_0x348cf2,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x28c2cb){return this['_footnotes']['find'](_0x5519d2=>_0x5519d2['id']===_0x28c2cb)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x365e86){this['_footnoteFormatter']=_0x365e86;}['_updateFootnotesCounters'](_0x549e1e,_0x27238e=0x0){let _0x4cab4e=!0x1;for(let _0x13a642=_0x27238e;_0x13a642<this['_footnotes']['length'];_0x13a642++)this['_updateFootnoteRefCounter'](_0x549e1e,_0x13a642)&&(_0x4cab4e=!0x0);return _0x4cab4e;}['_insertEmptyFootnotesDefinitionsContainer'](_0xe81775,_0x1e7d90){const _0x2f77cc=_0xe81775['createElement']('footnotesDefinitions',{});return _0xe81775['append'](_0x2f77cc,_0x1e7d90),this['_footnotesDefinitions']=_0x2f77cc,_0x2f77cc;}['_ensureFootnotesDefinitionsContainerExists'](_0x51937b){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5363e7=this['_footnotes'][0x0]['reference']['root'],_0xca5223=this['_insertEmptyFootnotesDefinitionsContainer'](_0x51937b,_0x5363e7);for(const _0x45e56d of this['_footnotes'])_0x45e56d['definition']['parent']||_0x51937b['insert'](_0x45e56d['definition'],_0xca5223,'end');this['_updateFootnotesCounters'](_0x51937b);}['_handleFootnotesDefinitionsObjectChanges'](_0xc39cc,_0x1317d1){let _0xce008b=!0x1;const {inserted:_0x4b9ac8,removed:_0xa407a,moved:_0x330c20}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1317d1);if(_0x330c20['length']&&(this['_footnotesDefinitions']=_0x330c20[0x0]),_0x4b9ac8['length']){if(_0x4b9ac8['length']>0x1||this['_footnotesDefinitions']&&_0x4b9ac8['some'](_0x39bfad=>_0x39bfad!==this['_footnotesDefinitions'])){const _0x4beb76=_0xc39cc['createElement']('footnotesDefinitions',{}),_0x2707f6=[];this['_footnotesDefinitions']&&_0x2707f6['push'](this['_footnotesDefinitions']),_0x2707f6['push'](..._0x4b9ac8),_0xc39cc['insert'](_0x4beb76,_0x2707f6[0x0],'before');for(const _0x43fa1c of _0x2707f6)_0xc39cc['move'](_0xc39cc['createRangeIn'](_0x43fa1c),_0xc39cc['createPositionAt'](_0x4beb76,'end')),_0xc39cc['remove'](_0x43fa1c);this['_footnotesDefinitions']=_0x4beb76,this['_updateFootnotesCounters'](_0xc39cc),_0xce008b=!0x0;}else this['_footnotesDefinitions']=_0x4b9ac8[0x0];}if(_0xa407a['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x481d67 of this['_footnotes'])_0xc39cc['remove'](_0x481d67['reference']),_0xce008b=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xce008b;}['_handleFootnoteDefinitionsChanges'](_0x2200a2,_0x2279fa){let _0x1912b4=!0x1;const _0x465d97=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x294b58,moved:_0x52c3da}=this['_footnoteDefsTracker']['getChanges'](_0x2279fa);for(const _0xe5100f of[..._0x52c3da,..._0x294b58]){const _0x37c7cf=_0xe5100f['getAttribute']('footnoteId'),_0x1d33e5=this['getFootnote'](_0x37c7cf);_0x1d33e5&&(_0x1d33e5['definition']=_0xe5100f),j(_0x2200a2,_0x465d97,_0xe5100f)&&(_0x1912b4=!0x0);}return _0x1912b4;}['_handleFootnoteReferencesChanges'](_0x26d685,_0x26135e){let _0x3cb819=!0x1;const {removed:_0x58da4a,inserted:_0x3b9e11,moved:_0x28d159}=this['_footnoteRefsTracker']['getChanges'](_0x26135e);for(const _0x3c0fcb of _0x58da4a)this['_handleRemoveFootnoteReferenceById'](_0x26d685,_0x3c0fcb)&&(_0x3cb819=!0x0);for(const _0x5e54f0 of _0x3b9e11)this['_handleInsertedFootnoteReference'](_0x26d685,_0x5e54f0)&&(_0x3cb819=!0x0);for(const _0x34863d of _0x28d159)this['_handleMovedFootnoteReference'](_0x26d685,_0x34863d)&&(_0x3cb819=!0x0);return _0x3cb819;}['_handleFootnotesDefinitionsObjectSync'](_0x3dbd98){if(!this['_footnotesDefinitions'])return!0x1;let _0xfbb656=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x160fe8=[];for(const _0x4dc611 of this['_footnotesDefinitions']['getChildren']()){const _0x5ee77a=_0x4dc611['getAttribute']('footnoteId');this['getFootnote'](_0x5ee77a)||(_0x160fe8['unshift'](_0x4dc611),_0xfbb656=!0x0);}for(const _0x470eae of _0x160fe8)_0x3dbd98['remove'](_0x470eae);}const _0x3f1aa5=new Set(),_0x345a84=[];for(const _0x4cf2c2 of this['_footnotesDefinitions']['getChildren']()){const _0x180419=_0x4cf2c2['getAttribute']('footnoteId');_0x3f1aa5['has'](_0x180419)?(_0x345a84['unshift'](_0x4cf2c2),_0xfbb656=!0x0):_0x3f1aa5['add'](_0x180419);}for(const _0x4b6b85 of _0x345a84)_0x3dbd98['remove'](_0x4b6b85);return this['_footnotesDefinitions']['childCount']||(_0x3dbd98['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xfbb656=!0x0),_0xfbb656;}['_handleInsertedFootnoteReference'](_0x95dc7f,_0x224fb5){if(this['_footnotes']['find'](_0x38f228=>_0x38f228['reference']===_0x224fb5))return!0x1;let _0x2e2e37=!0x1;const _0xae9c16=_0x224fb5['getAttribute']('footnoteId'),_0xb34847=this['_footnotes']['findIndex'](_0x1cfda6=>_0x1cfda6['id']===_0xae9c16);-0x1!==_0xb34847&&(_0x95dc7f['remove'](this['_footnotes'][_0xb34847]['reference']),this['_footnotes']['splice'](_0xb34847,0x1),_0x2e2e37=!0x0);let _0xe8fc4e=this['_footnotesDefinitions']?function(_0x45fda9,_0x402123){for(const _0x58d1f9 of _0x45fda9['getChildren']())if(_0x58d1f9['getAttribute']('footnoteId')===_0x402123)return _0x58d1f9;return null;}(this['_footnotesDefinitions'],_0xae9c16):null;_0xe8fc4e||(_0xe8fc4e=_0x95dc7f['createElement']('footnoteDefinition',{'footnoteId':_0xae9c16}),this['_footnotesDefinitions']&&(_0x95dc7f['insert'](_0xe8fc4e,this['_footnotesDefinitions'],'end'),_0x2e2e37=!0x0));const _0x5ecdf2={'id':_0xae9c16,'reference':_0x224fb5,'definition':_0xe8fc4e},_0x438868=T(this['editor']['model'],this['_footnotes'],_0x224fb5);this['_footnotes']['splice'](_0x438868,0x0,_0x5ecdf2);let _0x9e918d=_0x438868;return-0x1!==_0xb34847&&(_0x9e918d=Math['min'](_0x438868,_0xb34847)),this['_updateFootnotesCounters'](_0x95dc7f,_0x9e918d)&&(_0x2e2e37=!0x0),_0x2e2e37;}['_handleRemoveFootnoteReferenceById'](_0x2b9eb9,_0x536812){const _0x5182f7=this['_footnotes']['findIndex'](_0x2ecd48=>_0x2ecd48['id']===_0x536812);if(-0x1===_0x5182f7)return!0x1;let _0x56634c=!0x1;const _0x306d51=this['_footnotes'][_0x5182f7];return'$graveyard'!==_0x306d51['definition']['root']['rootName']&&(_0x2b9eb9['remove'](_0x306d51['definition']),_0x56634c=!0x0),this['_footnotes']['splice'](_0x5182f7,0x1),this['_updateFootnotesCounters'](_0x2b9eb9,_0x5182f7)&&(_0x56634c=!0x0),_0x56634c;}['_handleMovedFootnoteReference'](_0x33ed42,_0xec089f){const _0x4a50b5=_0xec089f['getAttribute']('footnoteId'),_0x2a22f6=this['_footnotes']['findIndex'](_0x3452cf=>_0x3452cf['id']===_0x4a50b5),_0x4fba38=this['_footnotes'][_0x2a22f6];let _0x5e31dc=!0x1;_0x4fba38['reference']=_0xec089f,this['_footnotes']['splice'](_0x2a22f6,0x1);const _0x460193=T(this['editor']['model'],this['_footnotes'],_0xec089f);return this['_footnotes']['splice'](_0x460193,0x0,_0x4fba38),this['_updateFootnotesCounters'](_0x33ed42,Math['min'](_0x2a22f6,_0x460193))&&(_0x5e31dc=!0x0),_0x5e31dc;}['_updateFootnoteRefCounter'](_0x45f623,_0x4ef7a1){if(!this['_footnotesDefinitions'])return!0x1;const _0x38fb96=this['_footnotes'][_0x4ef7a1];let _0x567012;return _0x567012=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x38fb96,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4ef7a1+0x1}):String(_0x4ef7a1+0x1),_0x38fb96['reference']['getAttribute']('footnoteCounter')!=_0x567012&&(_0x45f623['setAttribute']('footnoteCounter',_0x567012,_0x38fb96['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x494d6f){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5eb978,_0x478b79){if(_0x5eb978['length']!==_0x478b79['length'])return!0x1;for(let _0x4110e6=0x0;_0x4110e6<_0x5eb978['length'];_0x4110e6++)if(_0x5eb978[_0x4110e6]!==_0x478b79[_0x4110e6])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x39b71d=>_0x39b71d['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x1026ab=>_0x1026ab['getAttribute']('footnoteId'))))return!0x1;let _0x730b4e=!0x1;for(let _0x32672c=0x0;_0x32672c<this['_footnotes']['length'];_0x32672c++){const _0x10f94a=this['_footnotes'][_0x32672c],_0x1a9aca=_0x494d6f['createPositionBefore'](_0x10f94a['definition']),_0x2ef685=_0x494d6f['createPositionAt'](this['_footnotesDefinitions'],_0x32672c);_0x1a9aca['isEqual'](_0x2ef685)||(_0x494d6f['move'](_0x494d6f['createRangeOn'](_0x10f94a['definition']),_0x2ef685),_0x730b4e=!0x0);}return _0x730b4e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x43b82e){if(!this['_footnotes']['length'])return!0x1;const {model:_0x14f6b5}=this['editor'];let _0x2e4d2b=!0x1;for(let _0x7dd1cc=0x0;_0x7dd1cc<this['_footnotes']['length']-0x1;_0x7dd1cc++){const _0x198bd6=this['_footnotes'][_0x7dd1cc],_0xcdfe96=this['_footnotes'][_0x7dd1cc+0x1],_0x3bd4b4=_0x14f6b5['createPositionBefore'](_0x198bd6['reference']),_0x31b308=_0x14f6b5['createPositionBefore'](_0xcdfe96['reference']);'after'===_0x3bd4b4['compareWith'](_0x31b308)&&(this['_handleMovedFootnoteReference'](_0x43b82e,_0x198bd6['reference']),_0x7dd1cc=-0x1,_0x2e4d2b=!0x0);}return _0x2e4d2b;}}function j(_0x2e978d,_0x638bc3,_0x4c06d2){if(_0x4c06d2['childCount'])return!0x1;const _0x2f4634=_0x638bc3?'paragraph':'footnoteInlineContent';return _0x2e978d['insert'](_0x2e978d['createElement'](_0x2f4634),_0x4c06d2),!0x0;}function T(_0x3c3408,_0x256575,_0x1f4174){if(0x0===_0x256575['length'])return 0x0;const _0x2373e2=_0x3c3408['createPositionBefore'](_0x1f4174);for(let _0xcb295b=0x0;_0xcb295b<_0x256575['length'];_0xcb295b++){const _0x5f89a8=_0x256575[_0xcb295b],_0x537a5e=_0x3c3408['createPositionBefore'](_0x5f89a8['reference']);if('before'===_0x2373e2['compareWith'](_0x537a5e))return _0xcb295b;}const _0x4c2e31=_0x1f4174['root'];let _0x4c87c1=-0x1;for(let _0x1e419a=_0x256575['length']-0x1;_0x1e419a>=0x0;_0x1e419a--)if(_0x256575[_0x1e419a]['reference']['root']===_0x4c2e31){_0x4c87c1=_0x1e419a;break;}if(-0x1!==_0x4c87c1)return _0x4c87c1+0x1;const _0x3e33db=_0x3c3408['document']['getRootNames'](),_0x3c07c9=_0x3e33db['indexOf'](_0x4c2e31['rootName']),_0x2549c5=_0x3e33db[_0x3c07c9+0x1];if(_0x2549c5){for(let _0x3aa313=0x0;_0x3aa313<_0x256575['length'];_0x3aa313++)if(_0x256575[_0x3aa313]['reference']['root']['rootName']===_0x2549c5)return _0x3aa313;}return _0x256575['length'];}class V extends _0x5b6dff{['refresh'](){const _0x5df06d=this['editor']['model']['document']['selection'],_0x3add25=this['_getPositionToInsertFootnote'](_0x5df06d);this['isEnabled']=!!_0x3add25;}['execute'](_0x46df34){const {editor:_0x115313}=this,{model:_0x1c247b}=_0x115313,{selection:_0xe12d13}=_0x1c247b['document'],_0x458e46=this['_getPositionToInsertFootnote'](_0xe12d13);if(!_0x458e46)return;const _0x57fe78=_0x115313['plugins']['get']('FootnotesEditing'),_0x1e0ec7=_0x46df34?.['footnoteId']??_0x4cf4e5();!function(_0xdb9d13){return'string'==typeof _0xdb9d13&&_0xdb9d13['length']>0x0&&!/\s/['test'](_0xdb9d13)&&!/^\d/['test'](_0xdb9d13);}(_0x1e0ec7)?_0x6e2e40('insert-footnote-command-executed-with-invalid-id'):(_0x1c247b['change'](_0x1aa035=>{const _0x4c4567=_0x1aa035['createElement']('footnoteRef',{'footnoteId':_0x1e0ec7});_0x1c247b['insertObject'](_0x4c4567,_0x458e46,null);}),_0x57fe78['_moveSelectionToFootnoteDefinition'](_0x1e0ec7));}['_getPositionToInsertFootnote'](_0x4a976f){const {model:_0x489798}=this['editor'],{schema:_0x43f6d7}=_0x489798,_0x5f0f68=_0x4a976f['getFirstRange']();for(const _0xd83dfd of _0x5f0f68['getItems']())if(_0x43f6d7['isBlock'](_0xd83dfd)||_0x43f6d7['isObject'](_0xd83dfd))return null;const _0x50f297=_0x5f0f68['end'];return _0x43f6d7['checkChild'](_0x50f297,'footnoteRef')?_0x50f297:null;}}class $ extends _0x1e1533{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x31235b}=this;_0x31235b['config']['define']('footnotes.multiBlock',!0x0),_0x31235b['commands']['add']('insertFootnote',new V(_0x31235b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2901f7){const _0x4bd328=_0x582d93([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]),_0x34b93b=0x47a28506,_0x1c46b7=0x47a502fe^_0x34b93b,_0x1744fa=window[_0x582d93([0x44,0x61,0x74,0x65])][_0x582d93([0x6e,0x6f,0x77])](),_0x17e830=_0x2901f7[_0x582d93([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x86fe29=new window[(_0x582d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x169920=>{_0x17e830[_0x582d93([0x6f,0x6e,0x63,0x65])](_0x582d93([0x72,0x65,0x61,0x64,0x79]),_0x169920);}),_0x257c80={[_0x582d93([0x6b,0x74,0x79])]:_0x582d93([0x45,0x43]),[_0x582d93([0x75,0x73,0x65])]:_0x582d93([0x73,0x69,0x67]),[_0x582d93([0x63,0x72,0x76])]:_0x582d93([0x50,0x2d,0x32,0x35,0x36]),[_0x582d93([0x78])]:_0x582d93([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]),[_0x582d93([0x79])]:_0x582d93([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]),[_0x582d93([0x61,0x6c,0x67])]:_0x582d93([0x45,0x53,0x32,0x35,0x36])},_0x29068a=_0x17e830[_0x582d93([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x582d93([0x67,0x65,0x74])](_0x582d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41e6d0(){let _0x9fbca6,_0x30ed7b=null,_0x4a6ed3=null;try{if(_0x29068a==_0x582d93([0x47,0x50,0x4c]))return _0x582d93([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9fbca6=_0x4334c3(),!_0x9fbca6)return _0x582d93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9fbca6[_0x582d93([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a6ed3=_0x1f3298(_0x9fbca6[_0x582d93([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9fbca6[_0x582d93([0x6a,0x74,0x69])])),await _0x17cbcc()?_0x5d3b0c()?_0x36adca()?_0x582d93([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47ac71()?(_0x9fbca6[_0x582d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x582d93([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30ed7b=_0x4aef65(_0x582d93([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x590062()):_0x582d93([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x582d93([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x582d93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x582d93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36adca(){const _0x2cbfd6=[_0x582d93([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x582d93([0x74,0x72,0x69,0x61,0x6c])][_0x582d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9fbca6[_0x582d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1744fa/0x3e8:0xe10*_0x1c46b7;return _0x9fbca6[_0x582d93([0x65,0x78,0x70])]<_0x2cbfd6;}function _0x5d3b0c(){const _0x987dd4=_0x9fbca6[_0x582d93([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x987dd4&&(!!_0x987dd4[_0x582d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582d93([0x2a]))||!!_0x987dd4[_0x582d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582d93([0x46,0x4f,0x4f])));}function _0x47ac71(){const _0x1209ee=_0x9fbca6[_0x582d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1209ee||0x0==_0x1209ee[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x102abb}=new URL(window[_0x582d93([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1209ee[_0x582d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102abb))return!0x0;const _0xfe2f89=_0x102abb[_0x582d93([0x73,0x70,0x6c,0x69,0x74])](_0x582d93([0x2e]));return _0x1209ee[_0x582d93([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d632a=>_0x5d632a[_0x582d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582d93([0x2a])))[_0x582d93([0x6d,0x61,0x70])](_0x1616c8=>_0x1616c8[_0x582d93([0x73,0x70,0x6c,0x69,0x74])](_0x582d93([0x2e])))[_0x582d93([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21951b=>_0x21951b[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xfe2f89[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x582d93([0x6d,0x61,0x70])](_0x44b36c=>Array(_0xfe2f89[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44b36c[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x582d93([0x66,0x69,0x6c,0x6c])](_0x44b36c[0x0]===_0x582d93([0x2a])?_0x582d93([0x2a]):'')[_0x582d93([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44b36c))[_0x582d93([0x73,0x6f,0x6d,0x65])](_0x3279c9=>_0xfe2f89[_0x582d93([0x65,0x76,0x65,0x72,0x79])]((_0x55a271,_0x135d9c)=>_0x3279c9[_0x135d9c]===_0x55a271||_0x3279c9[_0x135d9c]===_0x582d93([0x2a])));}function _0x590062(){return _0x30ed7b&&_0x4a6ed3?new window[(_0x582d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19294c,_0x453d94)=>{_0x30ed7b[_0x582d93([0x74,0x68,0x65,0x6e])](_0x19294c,_0x453d94),_0x4a6ed3[_0x582d93([0x74,0x68,0x65,0x6e])](_0x58f5be=>{_0x58f5be!=_0x582d93([0x56,0x61,0x6c,0x69,0x64])&&_0x19294c(_0x58f5be);},_0x453d94);}):_0x30ed7b||_0x4a6ed3||_0x582d93([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f3298(_0x16140a,_0xbfe042){return new window[(_0x582d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ffb61=>{if(_0x3c47f3())return _0x3ffb61(_0x582d93([0x56,0x61,0x6c,0x69,0x64]));_0x531265(),_0x17e830[_0x582d93([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x582d93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46fda4=!0x1;const _0x8a5c80=_0x4cf4e5();function _0x442681(_0x1173eb){return!!_0x1173eb&&(typeof _0x1173eb===_0x582d93([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1173eb===_0x582d93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1173eb[_0x582d93([0x74,0x68,0x65,0x6e])]===_0x582d93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1173eb[_0x582d93([0x63,0x61,0x74,0x63,0x68])]===_0x582d93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3042ac(_0x59f365){_0x2e25b5(_0x59f365)[_0x582d93([0x74,0x68,0x65,0x6e])](_0x3846b5=>{if(!_0x3846b5||_0x3846b5[_0x582d93([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x582d93([0x6f,0x6b]))return _0x582d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44853b(_0x458ca(_0x8a5c80+_0xbfe042))!=_0x3846b5[_0x582d93([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x582d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x582d93([0x56,0x61,0x6c,0x69,0x64]);})[_0x582d93([0x74,0x68,0x65,0x6e])](_0x4feff1=>(_0x2bdc39(),_0x4feff1),()=>{const _0x2f1ec7=_0x110168();return null==_0x2f1ec7?(_0x2bdc39(),_0x582d93([0x56,0x61,0x6c,0x69,0x64])):_0x582d93(_0x1744fa-_0x2f1ec7>(0x63ae0106^_0x34b93b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x582d93([0x74,0x68,0x65,0x6e])](_0x3ffb61)[_0x582d93([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ffb61(_0x582d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f5915=0x47946b86^_0x34b93b;function _0x2bdc39(){const _0x11cea3=_0x582d93([0x6c,0x6c,0x63,0x74,0x2d])+_0x44853b(_0x458ca(_0x16140a)),_0x111cb4=_0x131dae(_0x44853b(window[_0x582d93([0x4d,0x61,0x74,0x68])][_0x582d93([0x63,0x65,0x69,0x6c])](_0x1744fa/_0x4f5915)));window[_0x582d93([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x582d93([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11cea3,_0x111cb4);}function _0x110168(){const _0xa1015a=_0x582d93([0x6c,0x6c,0x63,0x74,0x2d])+_0x44853b(_0x458ca(_0x16140a)),_0x15f2e2=window[_0x582d93([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x582d93([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa1015a);return _0x15f2e2?window[_0x582d93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x131dae(_0x15f2e2),0x10)*_0x4f5915:null;}function _0x2e25b5(_0x4a5561){return new window[(_0x582d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x82297e,_0xdbda9f)=>{_0x4a5561[_0x582d93([0x74,0x68,0x65,0x6e])](_0x82297e,_0xdbda9f),window[_0x582d93([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdbda9f,0x47a351c6^_0x34b93b);});}}_0x17e830[_0x582d93([0x6f,0x6e])](_0x582d93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46a506,_0x196be8)=>{if(_0x196be8[0x0]!=_0x16140a)return _0x3ffb61(_0x582d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x196be8[0x1]={..._0x196be8[0x1],[_0x582d93([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8a5c80};},{[_0x582d93([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x582d93([0x68,0x69,0x67,0x68])}),_0x17e830[_0x582d93([0x6f,0x6e])](_0x582d93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d9674=>{_0x442681(_0x4d9674[_0x582d93([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46fda4=!0x0,_0x3042ac(_0x4d9674[_0x582d93([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x582d93([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x582d93([0x6c,0x6f,0x77])}),_0x86fe29[_0x582d93([0x74,0x68,0x65,0x6e])](()=>{_0x46fda4||_0x3ffb61(_0x582d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c47f3(){return _0x17e830[_0x582d93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x582d93([0x76,0x69,0x65,0x77])][_0x582d93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x582d93([0x61,0x75,0x74,0x6f]);}function _0x531265(){_0x17e830[_0x582d93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x582d93([0x76,0x69,0x65,0x77])][_0x582d93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x582d93([0x61,0x75,0x74,0x6f]);}}function _0x4aef65(_0x11275b){const _0x469c3a=[new window[(_0x582d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f962=>setTimeout(_0x49f962,0x47abbbca^_0x34b93b)),_0x86fe29[_0x582d93([0x74,0x68,0x65,0x6e])](()=>new window[(_0x582d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ac040=>{let _0xafa88d=0x0;_0x17e830[_0x582d93([0x6d,0x6f,0x64,0x65,0x6c])][_0x582d93([0x6f,0x6e])](_0x582d93([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x162797,_0x440bec)=>{_0x440bec[0x0][_0x582d93([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xafa88d++,_0xafa88d==(0x47a280ee^_0x34b93b)&&(_0x2ac040(),_0x162797[_0x582d93([0x6f,0x66,0x66])]());});}))];return window[_0x582d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x582d93([0x72,0x61,0x63,0x65])](_0x469c3a)[_0x582d93([0x74,0x68,0x65,0x6e])](()=>_0x11275b);}async function _0x4d8291(){await _0x86fe29,_0x17e830[_0x582d93([0x6d,0x6f,0x64,0x65,0x6c])][_0x582d93([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b8a0c,_0x17e830[_0x582d93([0x6d,0x6f,0x64,0x65,0x6c])][_0x582d93([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b8a0c,_0x17e830[_0x582d93([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x582d93([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd71ebb(_0xf1ea17){const _0x4ed4bf=_0x39181b();_0x17e830[_0x4ed4bf]=_0x582d93([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf1ea17,_0xf1ea17!=_0x582d93([0x56,0x61,0x6c,0x69,0x64])&&_0x4d8291();}function _0x39181b(){const _0x40410b=window[_0x582d93([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x582d93([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x582d93([0x6e,0x6f,0x77])]())[_0x582d93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x582d93([0x2e]),'');let _0x15b019=_0x582d93([0x75]);for(let _0x33023e=0x0;_0x33023e<_0x40410b[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33023e+=0x2){let _0x380814=window[_0x582d93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40410b[_0x582d93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33023e,_0x33023e+0x2));_0x380814>=_0x4bd328[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x380814-=_0x4bd328[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15b019+=_0x4bd328[_0x380814];}return _0x15b019;}function _0x4334c3(){const _0x3557e5=_0x29068a[_0x582d93([0x73,0x70,0x6c,0x69,0x74])](_0x582d93([0x2e]));if(0x3!=_0x3557e5[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a406f(_0x3557e5[0x1]);function _0x3a406f(_0x33ecb0){const _0x40d9a7=_0x58871f(_0x33ecb0);return _0x40d9a7&&_0x5cef8e()?_0x40d9a7:null;function _0x5cef8e(){const _0x3f0ecc=_0x40d9a7[_0x582d93([0x6a,0x74,0x69])],_0x5c2c05=window[_0x582d93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f0ecc[_0x582d93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f0ecc[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x75fa27={..._0x40d9a7,[_0x582d93([0x6a,0x74,0x69])]:_0x3f0ecc[_0x582d93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f0ecc[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x75fa27[_0x582d93([0x76,0x63])],_0x458ca(_0x75fa27)==_0x5c2c05;}}}async function _0x17cbcc(){let _0x34ec8e=!0x0;try{const _0x978b0d=_0x29068a[_0x582d93([0x73,0x70,0x6c,0x69,0x74])](_0x582d93([0x2e])),[_0x2e9d07,_0x487e77,_0x1cc370]=_0x978b0d;return _0x59ee0d(_0x2e9d07),await _0xa4a571(_0x2e9d07,_0x487e77,_0x1cc370),_0x34ec8e;}catch{return!0x1;}function _0x59ee0d(_0x92afe7){const _0x1d4466=_0x58871f(_0x92afe7);_0x1d4466&&_0x1d4466[_0x582d93([0x61,0x6c,0x67])]==_0x582d93([0x45,0x53,0x32,0x35,0x36])||(_0x34ec8e=!0x1);}async function _0xa4a571(_0x452eb4,_0x4a49a0,_0x30af42){const _0x486e72=window[_0x582d93([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x582d93([0x66,0x72,0x6f,0x6d])](_0x47d658(_0x30af42),_0x38b91f=>_0x38b91f[_0x582d93([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x415ea0=new window[(_0x582d93([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x582d93([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x452eb4+_0x582d93([0x2e])+_0x4a49a0),_0x384d29=window[_0x582d93([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x582d93([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x384d29)return;const _0x557f73=await _0x384d29[_0x582d93([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x582d93([0x6a,0x77,0x6b]),_0x257c80,{[_0x582d93([0x6e,0x61,0x6d,0x65])]:_0x582d93([0x45,0x43,0x44,0x53,0x41]),[_0x582d93([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x582d93([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x582d93([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x384d29[_0x582d93([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x582d93([0x6e,0x61,0x6d,0x65])]:_0x582d93([0x45,0x43,0x44,0x53,0x41]),[_0x582d93([0x68,0x61,0x73,0x68])]:{[_0x582d93([0x6e,0x61,0x6d,0x65])]:_0x582d93([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x557f73,_0x486e72,_0x415ea0)||(_0x34ec8e=!0x1);}}function _0x58871f(_0x229af8){return _0x229af8[_0x582d93([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x582d93([0x65,0x79]))?JSON[_0x582d93([0x70,0x61,0x72,0x73,0x65])](_0x47d658(_0x229af8)):null;}function _0x47d658(_0x8445e5){return window[_0x582d93([0x61,0x74,0x6f,0x62])](_0x8445e5[_0x582d93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x582d93([0x2b]))[_0x582d93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x582d93([0x2f])));}function _0x458ca(_0x4db886){let _0x497b90=0x1505;function _0x444dab(_0x3344e0){for(let _0x5268aa=0x0;_0x5268aa<_0x3344e0[_0x582d93([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5268aa++){const _0x597627=_0x3344e0[_0x582d93([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5268aa);_0x497b90=(_0x497b90<<0x5)+_0x497b90+_0x597627,_0x497b90&=_0x497b90;}}function _0x1a84d6(_0x49660c){Array[_0x582d93([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x49660c)?_0x49660c[_0x582d93([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a84d6):_0x49660c&&typeof _0x49660c==_0x582d93([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x582d93([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x49660c)[_0x582d93([0x73,0x6f,0x72,0x74])]()[_0x582d93([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c6640,_0x1d2297])=>{_0x444dab(_0x2c6640),_0x1a84d6(_0x1d2297);}):_0x444dab(window[_0x582d93([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x49660c));}return _0x1a84d6(_0x4db886),_0x497b90>>>0x0;}function _0x44853b(_0x528d2e){return _0x528d2e[_0x582d93([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x582d93([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x582d93([0x30]));}function _0x131dae(_0x103dd6){return _0x103dd6[_0x582d93([0x73,0x70,0x6c,0x69,0x74])]('')[_0x582d93([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x582d93([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b8a0c(){}function _0x582d93(_0x28cbec){return _0x28cbec['map'](_0x1bdb72=>String['fromCharCode'](_0x1bdb72))['join']('');}_0xd71ebb(await _0x41e6d0());}(this);}['_moveSelectionToFootnoteDefinition'](_0x36e1cf){const {plugins:_0x552f27,editing:_0xef4a78,model:_0x8cc242}=this['editor'],_0xa2a7e5=_0x552f27['get'](K)['getFootnote'](_0x36e1cf);return!!_0xa2a7e5&&(_0x8cc242['change'](_0x35b1d3=>{_0x35b1d3['setSelection'](_0x35b1d3['createPositionAt'](_0xa2a7e5['definition'],'end'));}),_0xef4a78['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2f46f6){const {plugins:_0x2dc0ba,editing:_0x8d76f7,model:_0x47d711}=this['editor'],_0x1dc54e=_0x2dc0ba['get'](K)['getFootnote'](_0x2f46f6);return!!_0x1dc54e&&(_0x47d711['change'](_0x416b8f=>{_0x416b8f['setSelection'](_0x1dc54e['reference'],'on');}),_0x8d76f7['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3ba039}=this['editor']['model'],_0x31283a=this['editor']['config']['get']('footnotes.multiBlock');_0x3ba039['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3ba039['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3ba039['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x31283a?_0x3ba039['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3ba039['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3ba039['addChildCheck'](_0x3c8189=>{for(const _0x28c1fc of _0x3c8189)if('footnoteDefinition'===_0x28c1fc['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5709fd}=this,{conversion:_0x696e7e,editing:_0x24c285}=_0x5709fd,{t:t}=_0x5709fd['locale'];_0x696e7e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1656f8,{writer:_0x248898,consumable:_0x3996c7})=>{const _0x4c8808=_0x1656f8['getChild'](0x0);if(!_0x4c8808||!_0x4c8808['is']('element','a'))return null;const _0x11883e=_0x4c8808['getAttribute']('href')||'';if(!_0x11883e['startsWith']('#'))return null;const _0x2a88a3=_0x11883e['replace'](/^#/,'');if(!_0x2a88a3)return null;_0x3996c7['consume'](_0x4c8808,{'name':!0x0,'attributes':['href']});for(const {item:_0x453fee}of _0x24c285['view']['createRangeIn'](_0x4c8808))_0x453fee['is']('$textProxy')?_0x3996c7['consume'](_0x453fee['textNode'],{'name':!0x0}):_0x453fee['is']('element')&&_0x3996c7['consume'](_0x453fee,{'name':!0x0});return _0x248898['createElement']('footnoteRef',{'footnoteId':_0x2a88a3});}}),_0x696e7e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3a5abd,{writer:_0x191a28})=>z(_0x3a5abd,_0x191a28)}),_0x696e7e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x6e13d9,{writer:_0x11c6de})=>{const _0x1562ac=_0x6e13d9['getAttribute']('footnoteCounter');return _0x43c247(z(_0x6e13d9,_0x11c6de),_0x11c6de,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1562ac)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4ea2b9}=this,{t:t}=_0x4ea2b9['locale'],{conversion:_0x352005}=_0x4ea2b9;_0x352005['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x352005['for']('upcast')['add'](_0x5bdc1d=>{_0x5bdc1d['on']('element:ol',(_0x3e6acf,_0x442b03,_0x1effe1)=>{const _0xf180ec=_0x442b03['viewItem'];if(!_0xf180ec['hasClass']('footnotes-list')||!_0x442b03['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1effe1['consumable']['consume'](_0xf180ec,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3ec50f,modelCursor:_0x4a1065}=_0x1effe1['convertChildren'](_0x442b03['viewItem'],_0x442b03['modelCursor']);_0x442b03['modelRange']=_0x3ec50f,_0x442b03['modelCursor']=_0x4a1065;}),_0x5bdc1d['on']('element:hr',(_0x4717d1,_0x1adf34,_0x500e0a)=>{const _0x358a91=_0x1adf34['viewItem'];_0x358a91['hasClass']('footnotes-divider')&&_0x1adf34['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x500e0a['consumable']['consume'](_0x358a91,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x352005['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1b168d,{writer:_0x438441})=>H(_0x438441)}),_0x352005['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1cf958,{writer:_0x5d64ae})=>{const _0x4216e3=H(_0x5d64ae,{'data-footnotes-list-label':t('Footnotes')}),_0x4d2181=_0x43c247(_0x4216e3,_0x5d64ae,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5d64ae['setCustomProperty']('footnotesDefinitions',!0x0,_0x4d2181),_0x4d2181;}});}['_defineDefinitionConverters'](){const {editor:_0x134d36}=this,{conversion:_0x2f795a,locale:_0x4cab51}=_0x134d36,_0x501f07=_0x134d36['config']['get']('footnotes.multiBlock');_0x2f795a['for']('upcast')['add'](_0x30fffa=>{_0x30fffa['on']('element:li',(_0x56c091,_0x5aa5c5,_0x5ec626)=>{const _0x43fea0=_0x5aa5c5['viewItem'];if(!_0x43fea0['hasClass']('footnote-definition')||!_0x43fea0['getAttribute']('id'))return;const _0x69e1c6=_0x43fea0['parent'];if(!_0x69e1c6['is']('element','ol')||!_0x69e1c6['hasClass']('footnotes-list'))return;if(!_0x5ec626['consumable']['test'](_0x43fea0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3ddbb3=_0x5ec626['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x43fea0['getAttribute']('id')});if(!_0x5ec626['safeInsert'](_0x3ddbb3,_0x5aa5c5['modelCursor']))return;_0x5ec626['consumable']['consume'](_0x43fea0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4106df=Array['from'](_0x43fea0['getChildren']())['find'](_0x1e75b2=>_0x1e75b2['is']('element')&&_0x1e75b2['hasClass']('footnote-content'));for(const _0xbcf9c0 of _0x43fea0['getChildren']())_0xbcf9c0['is']('element')&&(_0x5ec626['consumable']['consume'](_0xbcf9c0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5ec626['consumable']['consume'](_0xbcf9c0,{'name':!0x0,'classes':'footnote-content'}));if(_0x4106df){if(_0x501f07)_0x5ec626['convertChildren'](_0x4106df,_0x3ddbb3);else{const _0x56dab2=_0x5ec626['writer']['createElement']('footnoteInlineContent');_0x5ec626['writer']['insert'](_0x56dab2,_0x3ddbb3),_0x5ec626['convertChildren'](_0x4106df,_0x56dab2);}}_0x5ec626['updateConversionResult'](_0x3ddbb3,_0x5aa5c5);});}),_0x2f795a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x42b4e7,{writer:_0x54e562})=>X(_0x42b4e7,_0x54e562,_0x4cab51,{'dataPipeline':!0x0})}),_0x2f795a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x40f233,{writer:_0x3b15db})=>X(_0x40f233,_0x3b15db,_0x4cab51)});}['_defineBogusParagraphConverters'](){const {editor:_0x12e1da}=this,{conversion:_0x2f7d88}=_0x12e1da;_0x12e1da['config']['get']('footnotes.multiBlock')?(_0x2f7d88['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x2f7d88['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x12e1da['model']['document'],'change:data',()=>{!function(_0x10729f,_0xfad99){const _0x68caa8=_0x10729f['document']['differ'],_0x3f5275=new Set();for(const _0x1cbff2 of _0x68caa8['getChanges']()){const _0x2d3957='attribute'==_0x1cbff2['type']?_0x1cbff2['range']['start']['parent']:_0x1cbff2['position']['parent'];_0x2d3957['is']('element','footnoteDefinition')&&_0x3f5275['add'](_0x2d3957);}for(const _0x44c6dd of _0x3f5275['values']()){const _0x480f98=Array['from'](_0x44c6dd['getChildren']())['filter'](_0x5bf4c7=>U(_0x5bf4c7,_0xfad99['mapper']));for(const _0x716b06 of _0x480f98)_0xfad99['reconvertItem'](_0x716b06);}}(_0x12e1da['model'],_0x12e1da['editing']);})):(_0x2f7d88['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x2f7d88['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x27e757,{writer:_0x85f6e6})=>{const _0x471160=_0x85f6e6['createContainerElement']('span');return _0x85f6e6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x471160),_0x471160;}}));}['_defineKeyboardHandlers'](){const {editor:_0xb7371c}=this,{editing:_0x17c8a2,t:t}=_0xb7371c,_0x304c1e=_0xb7371c['model']['document']['selection'];_0xb7371c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xb7371c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x17c8a2['view']['document'],'enter',(_0x51d245,_0x2f68d4)=>{const _0x18fff0=function(_0x221cb3){const _0x34294a=_0x221cb3['getSelectedElement']();if(_0x34294a?.['is']('element','footnoteRef'))return _0x34294a;return null;}(_0x304c1e);if(_0x18fff0){const _0x3994e4=_0x18fff0['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3994e4),_0x2f68d4['preventDefault'](),_0x51d245['stop']();}},{'context':_0x2a8d9d});}['_defineClickHandlers'](){const {editor:_0x3fab78}=this,{editing:_0xccb3e6}=_0x3fab78;_0x3fab78['editing']['view']['addObserver'](_0x22643a),_0x3fab78['editing']['view']['addObserver'](_0x5216eb);let _0x4a2d7c=!0x1;this['listenTo'](_0xccb3e6['view']['document'],'pointerdown',(_0xcc0f39,_0x44aada)=>{const {target:_0x1adf60}=_0x44aada,_0x287eca=_0xccb3e6['view']['document']['selection'];_0x4a2d7c=!!(_0x1adf60?.['is']('element','a')&&_0x1adf60['parent']?.['is']('element','sup')&&_0x1adf60['parent']['hasClass']('footnote'))&&_0x287eca['getSelectedElement']()===_0x1adf60['parent'];},{'priority':'high'}),this['listenTo'](_0xccb3e6['view']['document'],'click',(_0x2be143,_0x1cc4d6)=>{const {target:_0x58b766}=_0x1cc4d6;if(!_0x58b766?.['is']('element','a'))return;if(_0x58b766['parent']?.['is']('element','sup')&&_0x58b766['parent']['hasClass']('footnote')&&!_0x4a2d7c)return void _0x1cc4d6['preventDefault']();let _0x819064=_0x58b766['getAttribute']('href');if(!_0x819064?.['startsWith']('#'))return;_0x819064=_0x819064['slice'](0x1);let _0x58987f=!0x1;(_0x819064['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x819064['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x819064))&&(_0x58987f=!0x0),_0x58987f&&(_0x1cc4d6['preventDefault'](),_0x2be143['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x14bed3}={}){return(_0x41b975,{writer:_0x75078})=>{if(!M(_0x41b975))return null;if(!_0x14bed3)return _0x75078['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x49838e=_0x75078['createContainerElement']('p');return _0x75078['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x49838e),_0x49838e;};}function M(_0x1277de){const {parent:_0x33e4ea}=_0x1277de;if(!_0x33e4ea?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x33e4ea['childCount'])return!0x1;for(const _0x622965 of _0x1277de['getAttributeKeys']())if(!_0x622965['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x622965)return!0x1;return!0x0;}function U(_0x2de556,_0x59e755){if(!_0x2de556['is']('element','paragraph'))return!0x1;const _0x4247c1=_0x59e755['toViewElement'](_0x2de556);return!!_0x4247c1&&M(_0x2de556)!==_0x4247c1['is']('element','span');}function q(_0x36bdbb){return _0x2a8d9d(_0x36bdbb)&&_0x36bdbb['is']('containerElement')&&!!_0x36bdbb['getCustomProperty']('footnotesDefinitions');}function H(_0x48b0cc,_0x1f2e3b={}){const _0x223601=_0x48b0cc['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x54b104=_0x48b0cc['createContainerElement']('ol',{'class':'footnotes-list'},_0x48b0cc['createSlot']());return _0x48b0cc['createContainerElement']('div',{'class':'footnotes',..._0x1f2e3b},[_0x223601,_0x54b104]);}function z(_0x4158ab,_0x3c9eed){const _0x20667f=_0x4158ab['getAttribute']('footnoteId'),_0x2eea30=_0x4158ab['getAttribute']('footnoteCounter'),_0xbcb3dc=_0x3c9eed['createUIElement']('a',{'href':'#'+_0x20667f},function(_0x4fd077){const _0x34d741=this['toDomElement'](_0x4fd077);return _0x34d741['textContent']=_0x2eea30,_0x34d741;}),_0x5a0557=_0x3c9eed['createContainerElement']('sup',{'id':'ref-'+_0x20667f,'class':'footnote'},[_0xbcb3dc]);return _0x5a0557['getFillerOffset']=()=>null,_0x5a0557;}function X(_0x3e661a,_0x8442ee,_0x336235,{dataPipeline:_0xdcc274}={}){const {t:t}=_0x336235,_0x2c9deb=_0x3e661a['getAttribute']('footnoteId'),_0x37fcff=_0x8442ee['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2c9deb},function(_0x7c3b7c){const _0x5edb4a=this['toDomElement'](_0x7c3b7c);return _0x5edb4a['innerText']='^',_0x5edb4a;}),_0x247135=_0xdcc274?_0x8442ee['createContainerElement']('div',{'class':'footnote-content'}):_0x41573e(_0x8442ee['createEditableElement']('div',{'class':'footnote-content'}),_0x8442ee,{'label':t('Footnote\x20content.')});return _0x8442ee['insert'](_0x8442ee['createPositionAt'](_0x247135,0x0),_0x8442ee['createSlot']()),_0x8442ee['createContainerElement']('li',{'class':'footnote-definition','id':_0x2c9deb},[_0x37fcff,_0x247135]);}class J extends _0x1e1533{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x498d9a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x41b14a}=this,{plugins:_0x5ed869,model:_0x30eb10}=_0x41b14a,_0x5956e3=_0x5ed869['get'](_0x498d9a),_0x5bdb74=_0x5ed869['get'](K);this['listenTo'](_0x5956e3,'outputTransformation',(_0x358fc4,_0x1b45a8)=>{const _0x1f12a9=Q(_0x30eb10['createRangeIn'](_0x1b45a8['content']));if(!_0x1f12a9['length'])return;const _0x4f254e=_0x5bdb74['getFootnotes'](),_0x25829c=_0x1f12a9['reduce']((_0x266cc3,_0x511573)=>{const _0x184010=_0x4f254e['find'](_0x280712=>_0x280712['id']===_0x511573);if(_0x184010){const _0x4986f6=_0x41b14a['data']['toView'](_0x184010['definition'],{'isClipboardPipeline':!0x0}),_0x92007=_0x41b14a['data']['htmlProcessor']['toData'](_0x4986f6);_0x266cc3[_0x184010['id']]=_0x92007;}return _0x266cc3;},Object['create'](null));_0x1b45a8['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x25829c));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x399222}=this,{model:_0x1e14da,plugins:_0x3e5ae6}=_0x399222,{view:_0x307288}=_0x399222['editing'],_0x419ea7=_0x3e5ae6['get'](_0x498d9a),_0x3449ee=_0x3e5ae6['get'](K),_0x1bad65=_0x399222['config']['get']('footnotes.multiBlock');let _0x391d97=null;this['listenTo'](_0x307288['document'],'clipboardInput',(_0x144656,_0x5b055e)=>{const _0x404100=_0x5b055e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x391d97=_0x404100?JSON['parse'](_0x404100):null;}),this['listenTo'](_0x419ea7,'contentInsertion',(_0x2cf08f,_0x4ca5ec)=>{const _0xd9c62=_0x4ca5ec['sourceEditorId']===this['editor']['id'];_0xd9c62&&'drop'===_0x4ca5ec['method']||_0x1e14da['change'](_0xbb27f0=>{let _0x31a247=_0x3449ee['getFootnotesDefinitionsObjectElement']();const _0x5939c9=!!_0x31a247&&Array['from'](_0x1e14da['document']['selection']['getSelectedBlocks']())['includes'](_0x31a247);if(!_0x391d97&&function(_0x4da042){for(const {item:_0x3a22ee}of _0x4da042)if(_0x3a22ee['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x1e14da['createRangeIn'](_0x4ca5ec['content']))&&(_0x391d97=function(_0x3ad27a,_0x333609){const _0x20d312=G(_0x3ad27a,_0x333609);if(!_0x20d312)return null;const _0x285154=Object['create'](null);for(const _0x299093 of _0x20d312['getChildren']())_0x299093['is']('element','footnoteDefinition')&&_0x299093['hasAttribute']('footnoteId')&&(_0x285154[_0x299093['getAttribute']('footnoteId')]=_0x3ad27a['cloneElement'](_0x299093,!0x0));return Object['keys'](_0x285154)['length']?_0x285154:null;}(_0xbb27f0,_0x4ca5ec['content'])),(_0x31a247&&!_0x5939c9||!_0x31a247&&!_0x391d97)&&function(_0x13ce1f,_0x4a28e0){const _0x368dae=[];for(const {item:_0x159775}of _0x13ce1f['createRangeIn'](_0x4a28e0))_0x159775['is']('element','footnotesDefinitions')&&_0x368dae['push'](_0x159775);for(const _0x3c3244 of _0x368dae)_0x13ce1f['remove'](_0x3c3244);}(_0xbb27f0,_0x4ca5ec['content']),!_0x391d97)return;const {selection:_0x2ec1fd}=_0x1e14da['document'],_0x603ee7=_0x2ec1fd['getFirstRange']()['root'];_0x31a247&&!_0x5939c9||(_0x31a247=G(_0xbb27f0,_0x4ca5ec['content']),_0x31a247||=_0x3449ee['_insertEmptyFootnotesDefinitionsContainer'](_0xbb27f0,_0x603ee7));const _0x959aee=Array['from'](_0x2ec1fd['getRanges']())['flatMap'](Q),_0x28caad=function(_0x31e9b4,_0x348696,_0x3830a4){const _0x22ade8=Object['create'](null);for(const {item:_0x228728}of _0x31e9b4['createRangeIn'](_0x348696))if(_0x228728['is']('element','footnoteRef')){const _0xa65f78=_0x228728['getAttribute']('footnoteId');if(!_0x3830a4(_0xa65f78))continue;_0x22ade8[_0xa65f78]||(_0x22ade8[_0xa65f78]=_0x4cf4e5()),_0x31e9b4['setAttribute']('footnoteId',_0x22ade8[_0xa65f78],_0x228728);}return _0x22ade8;}(_0xbb27f0,_0x4ca5ec['content'],_0x3fb1cb=>{if(!_0xd9c62)return!0x0;return!!_0x3449ee['getFootnote'](_0x3fb1cb)&&!_0x959aee['includes'](_0x3fb1cb);});for(const [_0x209ad9,_0x2a440d]of Object['entries'](_0x391d97)){const _0x4940d7=_0x28caad[_0x209ad9]||_0x209ad9;let _0x28eb07;if('string'!=typeof _0x2a440d)_0x28eb07=_0x2a440d,_0x4940d7!==_0x209ad9&&_0xbb27f0['setAttribute']('footnoteId',_0x4940d7,_0x28eb07);else{_0x28eb07=_0xbb27f0['createElement']('footnoteDefinition',{'footnoteId':_0x4940d7});const _0x161bc3=_0x399222['data']['htmlProcessor']['toView'](_0x2a440d);let _0x282ac4;if(_0x1bad65)_0x282ac4=_0x399222['data']['toModel'](_0x161bc3,_0x28eb07);else{_0x282ac4=_0xbb27f0['createElement']('footnoteInlineContent');const _0x19ebab=_0x399222['data']['toModel'](_0x161bc3,_0x282ac4);_0xbb27f0['insert'](_0x19ebab,_0x282ac4);}_0xbb27f0['append'](_0x282ac4,_0x28eb07);}_0xbb27f0['insert'](_0x28eb07,_0x31a247,'end');}_0x391d97=null;});});}}function G(_0x5bae68,_0x4e3120){for(const {item:_0x61d63c}of _0x5bae68['createRangeIn'](_0x4e3120))if(_0x61d63c['is']('element','footnotesDefinitions'))return _0x61d63c;return null;}function Q(_0x2369ae){const _0xd7b9cc=new Set();for(const {item:_0x219580}of _0x2369ae)_0x219580['is']('element','footnoteRef')&&_0xd7b9cc['add'](_0x219580['getAttribute']('footnoteId'));return Array['from'](_0xd7b9cc);}class W extends _0x1e1533{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x7ba176}=this,{componentFactory:_0x11ff60}=_0x7ba176['ui'];_0x11ff60['add']('insertFootnote',Y(_0x7ba176,_0x2c9d61)),_0x11ff60['add']('menuBar:insertFootnote',Y(_0x7ba176,_0x2de974)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8c7ba7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x339bd9;for(const _0x139205 in _0x8c7ba7){const _0x4932a6=_0x139205,_0x2e07b8=_0x8c7ba7[_0x4932a6];if('footnotesLicenseKeyValid'==_0x2e07b8||'footnotesLicenseKeyInvalid'==_0x2e07b8||'footnotesLicenseKeyExpired'==_0x2e07b8||'footnotesLicenseKeyDomainLimit'==_0x2e07b8||'footnotesLicenseKeyNotAllowed'==_0x2e07b8||'footnotesLicenseKeyEvaluationLimit'==_0x2e07b8||'footnotesLicenseKeyUsageLimit'==_0x2e07b8){delete _0x8c7ba7[_0x4932a6],_0x339bd9=_0x2e07b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x339bd9&&_0x8c7ba7['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x339bd9&&_0x8c7ba7['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x339bd9&&_0x8c7ba7['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x339bd9&&_0x8c7ba7['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x339bd9&&_0x8c7ba7['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x339bd9&&_0x8c7ba7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x41accd,_0x2cae78){const _0x350eaf=_0x41accd['commands']['get']('insertFootnote');return _0x337b42=>{const {t:t}=_0x337b42,_0x4a9647=new _0x2cae78(_0x337b42),_0x3e8de4=_0x4a9647 instanceof _0x2de974;return _0x4a9647['bind']('isEnabled')['to'](_0x350eaf,'isEnabled'),_0x4a9647['set']({'label':t(_0x3e8de4?'Footnote':'Insert\x20footnote'),'icon':_0x3ffa67,'tooltip':!0x0}),_0x4a9647['on']('execute',()=>{_0x350eaf['execute'](),_0x41accd['editing']['view']['focus']();}),_0x4a9647;};}class Z extends _0x1e1533{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[$,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];class nt extends _0x5b6dff{['refresh'](){const {editor:_0x5cd6bf}=this,_0x2ec5d5=_0x5cd6bf['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2ec5d5,this['value']=_0x2ec5d5?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1981b7}){const {editor:_0xf2d8e3}=this,_0x52b928=_0xf2d8e3['plugins']['get'](K),_0x21808b=_0x52b928['getFootnotesDefinitionsObjectElement']();_0x21808b&&ot['includes'](_0x1981b7)&&_0xf2d8e3['model']['change'](_0x29f94e=>{_0x29f94e['setAttribute']('footnotesListStyle',_0x1981b7,_0x21808b),_0x52b928['_updateFootnotesCounters'](_0x29f94e);});}}class it extends _0x5b6dff{['refresh'](){const {editor:_0x5cfb27}=this,_0x195817=_0x5cfb27['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x195817,this['value']=_0x195817?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2a9995}){const {editor:_0x107181}=this,_0x5d6958=_0x107181['plugins']['get'](K),_0x5752be=_0x5d6958['getFootnotesDefinitionsObjectElement']();_0x5752be&&Number['isInteger'](_0x2a9995)&&_0x107181['model']['change'](_0x2b8467=>{_0x2b8467['setAttribute']('footnotesListStart',_0x2a9995,_0x5752be),_0x5d6958['_updateFootnotesCounters'](_0x2b8467);});}}function st(_0x4a44ce,_0x436632){let _0x4c0500='',_0x2249c4=_0x4a44ce;for(;_0x2249c4>0x0;){const _0x3384cf=(_0x2249c4-0x1)%0x1a;_0x4c0500=String['fromCharCode'](0x61+_0x3384cf)+_0x4c0500,_0x2249c4=Math['floor']((_0x2249c4-0x1)/0x1a);}return _0x436632?_0x4c0500['toUpperCase']():_0x4c0500;}const rt=[{'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 lt(_0xc1d5ac,_0x4cba5e){let _0x52598c='',_0x294feb=_0xc1d5ac;for(const {value:_0x4e0745,numeral:_0x474232}of rt)for(;_0x294feb>=_0x4e0745;)_0x52598c+=_0x474232,_0x294feb-=_0x4e0745;return _0x4cba5e?_0x52598c:_0x52598c['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x1e1533{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1cc8ac}=this;_0x1cc8ac['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x1cc8ac['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x1cc8ac['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x1cc8ac['commands']['add']('footnotesStyle',new nt(_0x1cc8ac)),_0x1cc8ac['commands']['add']('footnotesStart',new it(_0x1cc8ac)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2612b4}=this,{schema:_0x38f6c3}=_0x2612b4['model'];_0x38f6c3['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x26947a}=this,{conversion:_0x140b31,model:_0x3f519a}=_0x26947a,{schema:_0x199b49}=_0x3f519a;_0x140b31['for']('upcast')['add'](_0x589e47=>{_0x589e47['on']('element:ol',(_0x419043,_0xa8d38e,_0x867815)=>{const _0x5c8d28=_0xa8d38e['viewItem'],_0xe1fa13=_0xa8d38e['modelCursor']?.['parent'];_0x5c8d28['hasClass']('footnotes-list')&&_0xe1fa13?.['is']('element','footnotesDefinitions')&&(function(_0x45aaab,_0xc4188b,_0x7f8ae8,_0xe204cb){if(!_0xe204cb['checkAttribute'](_0xc4188b,'footnotesListStart'))return;let _0x50be34=0x1;const _0x41fef8=_0x7f8ae8['consumable']['consume'](_0x45aaab,{'attributes':'start'});if(_0x41fef8){const _0x3c2b6c=Number['parseInt'](_0x45aaab['getAttribute']('start'),0xa);Number['isNaN'](_0x3c2b6c)||(_0x50be34=_0x3c2b6c);}!_0x41fef8&&_0xc4188b['hasAttribute']('footnotesListStart')||_0x7f8ae8['writer']['setAttribute']('footnotesListStart',_0x50be34,_0xc4188b);}(_0x5c8d28,_0xe1fa13,_0x867815,_0x199b49),function(_0x26613d,_0x392a0e,_0x1bba05,_0x37527b){if(!_0x37527b['checkAttribute'](_0x392a0e,'footnotesListStyle'))return;let _0x2c94d9='decimal',_0x3861cd=!0x1;if(_0x1bba05['consumable']['consume'](_0x26613d,{'attributes':'type'})){const _0x521cfc={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x26613d['getAttribute']('type')];_0x521cfc&&(_0x2c94d9=_0x521cfc),_0x3861cd=!0x0;}if(_0x1bba05['consumable']['consume'](_0x26613d,{'styles':'list-style-type'})){const _0x359159=ct(_0x26613d['getStyle']('list-style-type'));_0x359159&&(_0x2c94d9=_0x359159),_0x3861cd=!0x0;}!_0x3861cd&&_0x392a0e['hasAttribute']('footnotesListStyle')||_0x1bba05['writer']['setAttribute']('footnotesListStyle',_0x2c94d9,_0x392a0e);}(_0x5c8d28,_0xe1fa13,_0x867815,_0x199b49));});}),_0x140b31['for']('downcast')['add'](_0x3d94a8=>{_0x3d94a8['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x73ae66,_0x623a54,_0x245640)=>{if(!_0x245640['consumable']['consume'](_0x623a54['item'],_0x73ae66['name']))return;const _0x108176=ut(_0x623a54['item'],_0x245640['mapper']),{attributeNewValue:_0x538644}=_0x623a54;null==_0x538644||0x1===_0x538644?_0x245640['writer']['removeAttribute']('start',_0x108176):_0x245640['writer']['setAttribute']('start',String(_0x538644),_0x108176);}),_0x3d94a8['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2aeba7,_0xb87ab4,_0x46a50a)=>{if(!_0x46a50a['consumable']['consume'](_0xb87ab4['item'],_0x2aeba7['name']))return;const _0x26c84e=ut(_0xb87ab4['item'],_0x46a50a['mapper']),{attributeNewValue:_0x4ccf74}=_0xb87ab4;_0x4ccf74&&'decimal'!==_0x4ccf74?_0x46a50a['writer']['setStyle']('list-style-type',_0x4ccf74,_0x26c84e):_0x46a50a['writer']['removeStyle']('list-style-type',_0x26c84e);});});}['_definePostfixer'](){const {editor:_0x4d6408}=this,{model:_0x3696fa}=_0x4d6408,_0x5ec5b0=_0x4d6408['plugins']['get'](K),_0x3d2b07=this['_getDefaultListStyle'](),_0x595e38=this['_getDefaultStartIndex']();_0x3696fa['document']['registerPostFixer'](_0x28ba55=>{const _0x547ddd=_0x3696fa['document']['differ']['getChanges']();let _0x33eb99=!0x1;for(const _0x3d5804 of _0x547ddd){if('insert'!==_0x3d5804['type']||'$text'===_0x3d5804['name'])continue;const _0x38521b=_0x3696fa['createRangeOn'](_0x3d5804['position']['nodeAfter']);for(const _0x3bc86f of _0x38521b['getItems']())_0x3bc86f['is']('element','footnotesDefinitions')&&(!_0x3bc86f['hasAttribute']('footnotesListStart')&&_0x3696fa['schema']['checkAttribute'](_0x3bc86f,'footnotesListStart')&&(_0x28ba55['setAttribute']('footnotesListStart',_0x595e38,_0x3bc86f),_0x33eb99=!0x0),!_0x3bc86f['hasAttribute']('footnotesListStyle')&&_0x3696fa['schema']['checkAttribute'](_0x3bc86f,'footnotesListStyle')&&(_0x28ba55['setAttribute']('footnotesListStyle',_0x3d2b07,_0x3bc86f),_0x33eb99=!0x0));}return _0x33eb99&&_0x5ec5b0['_updateFootnotesCounters'](_0x28ba55),_0x33eb99;});}['_defineFormatter'](){const {editor:_0x7bddd9}=this;_0x7bddd9['plugins']['get'](K)['setFootnoteFormatter'](_0x12420a=>this['_formatFootnoteListValue'](_0x12420a));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x22f3f6,value:_0x335b7b,digits:_0x13849e}){const _0x13f730=_0x22f3f6['getAttribute']('footnotesListStyle'),_0x146578=_0x22f3f6['getAttribute']('footnotesListStart'),_0x21bc9e=Math['floor'](_0x335b7b)+(_0x146578??0x1)-0x1;switch(_0x13f730){case'decimal-leading-zero':return function(_0x1ac5b7,_0x40c2dd){return String(_0x1ac5b7)['padStart'](_0x40c2dd,'0');}(_0x21bc9e,Math['max'](0x2,_0x13849e));case'lower-alpha':case'lower-latin':return st(_0x21bc9e,!0x1);case'upper-alpha':case'upper-latin':return st(_0x21bc9e,!0x0);case'lower-roman':return lt(_0x21bc9e,!0x1);case'upper-roman':return lt(_0x21bc9e,!0x0);case'arabic-indic':return String(_0x21bc9e)['replace'](/\d/g,_0x1b8990=>ft[Number(_0x1b8990)]);default:return String(_0x21bc9e);}}}function ct(_0x4eb648){if('string'==typeof _0x4eb648){const _0x4b752d=et[_0x4eb648];if(_0x4b752d)return _0x4b752d;if(ot['includes'](_0x4eb648))return _0x4eb648;}return null;}function ut(_0x45d2bb,_0x17c138){const _0x863bb6=_0x17c138['toViewElement'](_0x45d2bb);return Array['from'](_0x863bb6['getChildren']())['find'](_0x4397f3=>_0x4397f3['is']('element','ol')&&_0x4397f3['hasClass']('footnotes-list'));}class dt extends _0x151744{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x133c67();['keystrokes']=new _0x570328();['focusables']=new _0x31a3e7();['focusCycler'];constructor(_0xee5d39,{styleButtonViews:_0x34513a,styleGridAriaLabel:_0x583507}){super(_0xee5d39),(this['focusCycler']=new _0x2e4319({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x34513a,_0x583507),[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 _0x3ac6bc of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3ac6bc['element']);_0x1ce317({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x511582['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 _0x4fbc3e=_0x5774fd=>_0x5774fd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4fbc3e),this['keystrokes']['set']('arrowleft',_0x4fbc3e),this['keystrokes']['set']('arrowup',_0x4fbc3e),this['keystrokes']['set']('arrowdown',_0x4fbc3e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3ebd2d,_0x3db2ba){const _0x2ade42=new _0x151744(this['locale']);return _0x2ade42['children']=_0x2ade42['createCollection'](),_0x2ade42['children']['addMany'](_0x3ebd2d),_0x2ade42['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3db2ba,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2ade42['children']}),_0x2ade42['children']['delegate']('execute')['to'](this),_0x2ade42['focus']=function(){for(const _0x334db9 of this['children'])if(_0x334db9 instanceof _0x2c9d61&&_0x334db9['isOn'])return void _0x334db9['focus']();this['children']['first']['focus']();},_0x2ade42['focusTracker']=new _0x133c67(),_0x2ade42['keystrokes']=new _0x570328(),_0x2ade42['render'](),_0x2ade42['keystrokes']['listenTo'](_0x2ade42['element']),this['children']['add'](_0x2ade42),_0x2ade42;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x36ceeb=this['_createStartIndexPropertyView'](),_0x38cb6a=[_0x36ceeb],_0x38f323=new _0x400660(this['locale'],_0x38cb6a);return _0x38f323['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x38f323['buttonView']['bind']('isEnabled')['toMany'](_0x38cb6a,'isEnabled',(..._0x194a84)=>_0x194a84['some'](_0x30c18d=>_0x30c18d)),_0x38f323['buttonView']['on']('change:isEnabled',(_0x36fece,_0x3b5459,_0x3a9b06)=>{_0x3a9b06||(_0x38f323['isCollapsed']=!0x0);}),this['children']['add'](_0x38f323),[_0x36ceeb,_0x38f323];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3476bf=new _0x16228b(this['locale'],_0x1e30a8);return _0x3476bf['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3476bf['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3476bf['fieldView']['on']('input',()=>{const _0x408880=_0x3476bf['fieldView']['element'],_0x38d010=_0x408880['valueAsNumber'];Number['isNaN'](_0x38d010)?_0x3476bf['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x408880['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x38d010}):_0x3476bf['errorText']=t(_0x38d010<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3476bf;}}class ht extends _0x1e1533{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x432c24,_0x46bf04];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x520e48}=this,{componentFactory:_0x2b463}=_0x520e48['ui'];_0x520e48['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2b463['add']('footnotesStyle',function(_0x11de8d){return _0x39508d=>{const {t:t}=_0x39508d,_0xc5e246=_0x11de8d['commands']['get']('footnotesStyle'),_0x57dfb9=_0x1770c5(_0x39508d),{buttonView:_0x23c667}=_0x57dfb9;return _0x57dfb9['class']='ck-footnotes-styles-dropdown',_0x57dfb9['bind']('isEnabled')['to'](_0xc5e246,'isEnabled'),_0x23c667['set']({'label':t('Footnotes\x20style'),'icon':_0x3ffa67,'tooltip':!0x0}),_0x57dfb9['once']('change:isOpen',()=>{const _0x2a77d6=function({editor:_0xc9b2c5,dropdownView:_0x28b919}){const {t:t}=_0xc9b2c5['locale'],_0x21c718=t('Footnotes\x20definitions\x20styles'),_0x451bf0=function(_0x1c653a){const {t:t}=_0x1c653a['locale'],_0x2b5a97=_0x1c653a['config']['get']('footnotes.footnotesProperties.listStyles'),_0x14f128=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x58f150},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x27e637},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0xbf8c50},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x42442c},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x10edda},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x59fc5c},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x3ce8a5}];return _0x2b5a97['map'](_0x398476=>{const _0x5a060e=ct(_0x398476),_0x496c9b=_0x14f128['find'](_0x4fe0fb=>_0x4fe0fb['style']===_0x5a060e);return function(_0x37f13f,_0x201c01){const {locale:_0x38e433}=_0x37f13f,{label:_0x4ae3bf,icon:_0x121b61,tooltip:_0x22a0fc,style:_0x2a9ce5}=_0x201c01,_0x513a20=_0x37f13f['commands']['get']('footnotesStyle'),_0x2e56da=new _0x2c9d61(_0x38e433);return _0x2e56da['set']({'label':_0x4ae3bf,'icon':_0x121b61,'tooltip':_0x22a0fc}),_0x2e56da['bind']('isOn')['to'](_0x513a20,'value',_0x90ff05=>_0x90ff05===_0x2a9ce5),_0x2e56da['bind']('isEnabled')['to'](_0x513a20,'isEnabled'),_0x2e56da['on']('execute',()=>{_0x37f13f['execute']('footnotesStyle',{'value':_0x2a9ce5}),_0x37f13f['editing']['view']['focus']();}),_0x2e56da;}(_0x1c653a,_0x496c9b);});}(_0xc9b2c5),_0x53636e=new dt(_0xc9b2c5['locale'],{'styleGridAriaLabel':_0x21c718,'styleButtonViews':_0x451bf0}),_0xc72f1c=_0xc9b2c5['commands']['get']('footnotesStart');return _0x53636e['startIndexFieldView']['bind']('isEnabled')['to'](_0xc72f1c),_0x53636e['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xc72f1c),_0x53636e['on']('footnotesListStart',(_0x7128d0,_0x3e2f5c)=>{_0xc9b2c5['execute']('footnotesStart',{'value':_0x3e2f5c['startIndex']});}),_0x53636e['delegate']('execute')['to'](_0x28b919),_0x53636e;}({'editor':_0x11de8d,'dropdownView':_0x57dfb9});_0x57dfb9['panelView']['children']['add'](_0x2a77d6);}),_0x57dfb9;};}(_0x520e48));}['afterInit'](){const {editor:_0x5b11de}=this,{t:t}=_0x5b11de['locale'],_0x17aeeb=_0x5b11de['plugins']['get'](_0x46bf04),{defaultPositions:_0x34d37c}=_0xec83eb;_0x17aeeb['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5b11de['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x11ff25=>{let _0x4f48db=_0x11ff25['getFirstPosition']()?.['parent'];return _0x4f48db?.['is']('$text')&&(_0x4f48db=_0x4f48db['parent']),_0x4f48db?.['is']('element')?_0x4f48db['findAncestor'](q):null;},'positions':[_0x34d37c['southArrowNorth'],_0x34d37c['southArrowNorthMiddleWest'],_0x34d37c['southArrowNorthMiddleEast'],_0x34d37c['southArrowNorthWest'],_0x34d37c['southArrowNorthEast'],_0x34d37c['northArrowSouth'],_0x34d37c['northArrowSouthMiddleWest'],_0x34d37c['northArrowSouthMiddleEast'],_0x34d37c['northArrowSouthWest'],_0x34d37c['northArrowSouthEast'],_0x34d37c['viewportStickyNorth']]});}}class mt extends _0x1e1533{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[at,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Z as Footnotes,J as FootnotesClipboard,$ as FootnotesEditing,mt as FootnotesProperties,at as FootnotesPropertiesEditing,ht as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,K as FootnotesTracker,W as FootnotesUI,V as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "48.0.1-alpha.0",
3
+ "version": "48.0.1",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,14 +32,14 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-clipboard": "48.0.1-alpha.0",
36
- "@ckeditor/ckeditor5-core": "48.0.1-alpha.0",
37
- "@ckeditor/ckeditor5-engine": "48.0.1-alpha.0",
38
- "@ckeditor/ckeditor5-enter": "48.0.1-alpha.0",
39
- "@ckeditor/ckeditor5-icons": "48.0.1-alpha.0",
40
- "@ckeditor/ckeditor5-ui": "48.0.1-alpha.0",
41
- "@ckeditor/ckeditor5-utils": "48.0.1-alpha.0",
42
- "@ckeditor/ckeditor5-widget": "48.0.1-alpha.0"
35
+ "@ckeditor/ckeditor5-clipboard": "48.0.1",
36
+ "@ckeditor/ckeditor5-core": "48.0.1",
37
+ "@ckeditor/ckeditor5-engine": "48.0.1",
38
+ "@ckeditor/ckeditor5-enter": "48.0.1",
39
+ "@ckeditor/ckeditor5-icons": "48.0.1",
40
+ "@ckeditor/ckeditor5-ui": "48.0.1",
41
+ "@ckeditor/ckeditor5-utils": "48.0.1",
42
+ "@ckeditor/ckeditor5-widget": "48.0.1"
43
43
  },
44
44
  "files": [
45
45
  "dist",