@ckeditor/ckeditor5-footnotes 48.2.0-alpha.3 → 48.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x57592d,Command as _0x2a796a}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x43495b,isWidget as _0x504084,toWidgetEditable as _0x24ddc1,WidgetToolbarRepository as _0x4a1f2c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3bd981,logWarning as _0x36d97a,FocusTracker as _0x1719d1,KeystrokeHandler as _0x310a84,global as _0x313623}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x130665,ClickObserver as _0x5933f0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x20b2a3}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x2bac96,ButtonView as _0x22cb22,View as _0x1dfae1,ViewCollection as _0x5e8ee1,FocusCycler as _0x287796,addKeyboardHandlingForGrid as _0x203194,CollapsibleView as _0x4336d0,LabeledFieldView as _0x535a19,createLabeledInputNumber as _0x552192,ContextualBalloon as _0x440f75,BalloonPanelView as _0x4bd53e,createDropdown as _0x107b59}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4d7355,IconListStyleDecimal as _0x5ea563,IconListStyleDecimalLeadingZero as _0x3eb03f,IconListStyleLowerRoman as _0xd1d213,IconListStyleUpperRoman as _0x235263,IconListStyleLowerLatin as _0xef6051,IconListStyleUpperLatin as _0xf3ce82,IconListStyleArabicIndic as _0x5dad58}from'@ckeditor/ckeditor5-icons/dist/index.js';class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4e77d3,_0x5a7efb){this['_model']=_0x4e77d3,this['_elementName']=_0x5a7efb['elementName'],this['_getElementKey']=_0x5a7efb['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5ca06b){const _0x360bcf=new Set(),_0xe37c3=new Map();for(const _0x4c0c9e of _0x5ca06b){if('insert'===_0x4c0c9e['type']&&'$text'!==_0x4c0c9e['name']&&_0x4c0c9e['position']['nodeAfter']){const _0x129c01=this['_model']['createRangeOn'](_0x4c0c9e['position']['nodeAfter']);for(const _0x1b5ce8 of _0x129c01['getItems']()){if(!_0x1b5ce8['is']('element',this['_elementName']))continue;const _0x578d95=this['_getElementKey'](_0x1b5ce8);_0xe37c3['has'](_0x578d95)||_0xe37c3['set'](_0x578d95,[]),_0xe37c3['get'](_0x578d95)['push'](_0x1b5ce8);}}if('remove'===_0x4c0c9e['type']&&_0x4c0c9e['name']===this['_elementName']){const _0x31668e=this['_getElementKey']({'getAttribute':_0x5bf1c5=>_0x4c0c9e['attributes']['get'](_0x5bf1c5)});_0x360bcf['add'](_0x31668e);}}for(const [_0x41e124,_0x5dddca]of this['_trackedElements'])'$graveyard'===_0x5dddca['root']['rootName']&&_0x360bcf['add'](_0x41e124);for(const _0xabadae of _0x360bcf)this['_trackedElements']['delete'](_0xabadae);for(const [_0x4a3a3d,_0x4ecc92]of _0xe37c3)this['_trackedElements']['set'](_0x4a3a3d,_0x4ecc92[_0x4ecc92['length']-0x1]);const _0xd070b9=new Set();for(const [_0x33b675,_0xe0de57]of _0xe37c3)_0x360bcf['has'](_0x33b675)&&(_0xd070b9['add'](_0xe0de57[0x0]),_0xe0de57['length']>0x1?_0xe37c3['set'](_0x33b675,_0xe0de57['slice'](0x1)):_0xe37c3['delete'](_0x33b675),_0x360bcf['delete'](_0x33b675));return{'removed':Array['from'](_0x360bcf),'inserted':Array['from'](_0xe37c3['values']())['flat'](),'moved':Array['from'](_0xd070b9)};}}class FootnotesTracker extends _0x57592d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2193c1){super(_0x2193c1),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3d1dac=>_0x3d1dac['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1cb952=>_0x1cb952['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5252c1}=this,{model:_0x10d25d,data:_0x487a44}=_0x5252c1;_0x10d25d['document']['registerPostFixer'](_0x4cdcca=>{const _0x171686=_0x10d25d['document']['differ']['getChanges']();let _0x33d495=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4cdcca,_0x171686)&&(_0x33d495=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4cdcca,_0x171686)&&(_0x33d495=!0x0),this['_handleFootnoteReferencesChanges'](_0x4cdcca,_0x171686)&&(_0x33d495=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4cdcca)&&(_0x33d495=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4cdcca)&&(_0x33d495=!0x0),this['_sortFootnoteDefinitions'](_0x4cdcca)&&(_0x33d495=!0x0),_0x33d495;}),this['listenTo'](_0x10d25d['document'],'change:data',()=>{_0x10d25d['enqueueChange']({'isUndoable':!0x1},_0x1a3462=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1a3462);});},{'priority':'low'}),this['listenTo'](_0x487a44,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4eaa92){return this['_footnotes']['find'](_0x156623=>_0x156623['id']===_0x4eaa92)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x36eb17){this['_footnoteFormatter']=_0x36eb17;}['_updateFootnotesCounters'](_0x3626f9,_0x35c00d=0x0){let _0x2b8cf4=!0x1;for(let _0x3eb393=_0x35c00d;_0x3eb393<this['_footnotes']['length'];_0x3eb393++)this['_updateFootnoteRefCounter'](_0x3626f9,_0x3eb393)&&(_0x2b8cf4=!0x0);return _0x2b8cf4;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1e85ba,_0x27eb64){const _0x492b82=_0x1e85ba['createElement']('footnotesDefinitions',{});return _0x1e85ba['append'](_0x492b82,_0x27eb64),this['_footnotesDefinitions']=_0x492b82,_0x492b82;}['_ensureFootnotesDefinitionsContainerExists'](_0x465a61){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x6a16af=this['_footnotes'][0x0]['reference']['root'],_0x950d21=this['_insertEmptyFootnotesDefinitionsContainer'](_0x465a61,_0x6a16af);for(const _0x13cabb of this['_footnotes'])_0x13cabb['definition']['parent']||_0x465a61['insert'](_0x13cabb['definition'],_0x950d21,'end');this['_updateFootnotesCounters'](_0x465a61);}['_handleFootnotesDefinitionsObjectChanges'](_0x36f556,_0x2c9db8){let _0x1567fd=!0x1;const {inserted:_0x943d87,removed:_0x30d58f,moved:_0x5c9703}=this['_footnoteDefsContainerTracker']['getChanges'](_0x2c9db8);if(_0x5c9703['length']&&(this['_footnotesDefinitions']=_0x5c9703[0x0]),_0x943d87['length']){if(_0x943d87['length']>0x1||this['_footnotesDefinitions']&&_0x943d87['some'](_0x4da4ad=>_0x4da4ad!==this['_footnotesDefinitions'])){const _0x43a44b=_0x36f556['createElement']('footnotesDefinitions',{}),_0x3c6393=[];this['_footnotesDefinitions']&&_0x3c6393['push'](this['_footnotesDefinitions']),_0x3c6393['push'](..._0x943d87),_0x36f556['insert'](_0x43a44b,_0x3c6393[0x0],'before');for(const _0x2e5676 of _0x3c6393)_0x36f556['move'](_0x36f556['createRangeIn'](_0x2e5676),_0x36f556['createPositionAt'](_0x43a44b,'end')),_0x36f556['remove'](_0x2e5676);this['_footnotesDefinitions']=_0x43a44b,this['_updateFootnotesCounters'](_0x36f556),_0x1567fd=!0x0;}else this['_footnotesDefinitions']=_0x943d87[0x0];}if(_0x30d58f['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x18ad79 of this['_footnotes'])_0x36f556['remove'](_0x18ad79['reference']),_0x1567fd=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1567fd;}['_handleFootnoteDefinitionsChanges'](_0x16f2bf,_0x48086a){let _0x547160=!0x1;const _0x2c3ef6=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x42f2ca,moved:_0x1727bb}=this['_footnoteDefsTracker']['getChanges'](_0x48086a);for(const _0x5aba67 of[..._0x1727bb,..._0x42f2ca]){const _0x1c791b=_0x5aba67['getAttribute']('footnoteId'),_0x179e05=this['getFootnote'](_0x1c791b);_0x179e05&&(_0x179e05['definition']=_0x5aba67),N(_0x16f2bf,_0x2c3ef6,_0x5aba67)&&(_0x547160=!0x0);}return _0x547160;}['_handleFootnoteReferencesChanges'](_0x1bf48f,_0x11e283){let _0xa0d7b4=!0x1;const {removed:_0x4b3407,inserted:_0x4a92af,moved:_0x10a170}=this['_footnoteRefsTracker']['getChanges'](_0x11e283);for(const _0x597621 of _0x4b3407)this['_handleRemoveFootnoteReferenceById'](_0x1bf48f,_0x597621)&&(_0xa0d7b4=!0x0);for(const _0x483e5a of _0x4a92af)this['_handleInsertedFootnoteReference'](_0x1bf48f,_0x483e5a)&&(_0xa0d7b4=!0x0);for(const _0x4a109e of _0x10a170)this['_handleMovedFootnoteReference'](_0x1bf48f,_0x4a109e)&&(_0xa0d7b4=!0x0);return _0xa0d7b4;}['_handleFootnotesDefinitionsObjectSync'](_0x32d8c1){if(!this['_footnotesDefinitions'])return!0x1;let _0x13b001=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x429885=[];for(const _0x65066c of this['_footnotesDefinitions']['getChildren']()){const _0x34a848=_0x65066c['getAttribute']('footnoteId');this['getFootnote'](_0x34a848)||(_0x429885['unshift'](_0x65066c),_0x13b001=!0x0);}for(const _0x4e0148 of _0x429885)_0x32d8c1['remove'](_0x4e0148);}const _0x4018c7=new Set(),_0x56a769=[];for(const _0x3e8cd6 of this['_footnotesDefinitions']['getChildren']()){const _0x4f87e9=_0x3e8cd6['getAttribute']('footnoteId');_0x4018c7['has'](_0x4f87e9)?(_0x56a769['unshift'](_0x3e8cd6),_0x13b001=!0x0):_0x4018c7['add'](_0x4f87e9);}for(const _0x2ad039 of _0x56a769)_0x32d8c1['remove'](_0x2ad039);return this['_footnotesDefinitions']['childCount']||(_0x32d8c1['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x13b001=!0x0),_0x13b001;}['_handleInsertedFootnoteReference'](_0x5e9da1,_0x1db88d){if(this['_footnotes']['find'](_0x15244a=>_0x15244a['reference']===_0x1db88d))return!0x1;let _0x3df2b9=!0x1;const _0x4dacc0=_0x1db88d['getAttribute']('footnoteId'),_0x41ef01=this['_footnotes']['findIndex'](_0xd6f668=>_0xd6f668['id']===_0x4dacc0);-0x1!==_0x41ef01&&(_0x5e9da1['remove'](this['_footnotes'][_0x41ef01]['reference']),this['_footnotes']['splice'](_0x41ef01,0x1),_0x3df2b9=!0x0);let _0xdae0af=this['_footnotesDefinitions']?function(_0x343bc9,_0x4b97a6){for(const _0x11799e of _0x343bc9['getChildren']())if(_0x11799e['getAttribute']('footnoteId')===_0x4b97a6)return _0x11799e;return null;}(this['_footnotesDefinitions'],_0x4dacc0):null;_0xdae0af||(_0xdae0af=_0x5e9da1['createElement']('footnoteDefinition',{'footnoteId':_0x4dacc0}),this['_footnotesDefinitions']&&(_0x5e9da1['insert'](_0xdae0af,this['_footnotesDefinitions'],'end'),_0x3df2b9=!0x0));const _0x2a25f6={'id':_0x4dacc0,'reference':_0x1db88d,'definition':_0xdae0af},_0x20d4cd=R(this['editor']['model'],this['_footnotes'],_0x1db88d);this['_footnotes']['splice'](_0x20d4cd,0x0,_0x2a25f6);let _0x412d35=_0x20d4cd;return-0x1!==_0x41ef01&&(_0x412d35=Math['min'](_0x20d4cd,_0x41ef01)),this['_updateFootnotesCounters'](_0x5e9da1,_0x412d35)&&(_0x3df2b9=!0x0),_0x3df2b9;}['_handleRemoveFootnoteReferenceById'](_0x4bcd27,_0x50fa5e){const _0x2fcf0e=this['_footnotes']['findIndex'](_0x4a8de0=>_0x4a8de0['id']===_0x50fa5e);if(-0x1===_0x2fcf0e)return!0x1;let _0x1b98a8=!0x1;const _0x3409b2=this['_footnotes'][_0x2fcf0e];return'$graveyard'!==_0x3409b2['definition']['root']['rootName']&&(_0x4bcd27['remove'](_0x3409b2['definition']),_0x1b98a8=!0x0),this['_footnotes']['splice'](_0x2fcf0e,0x1),this['_updateFootnotesCounters'](_0x4bcd27,_0x2fcf0e)&&(_0x1b98a8=!0x0),_0x1b98a8;}['_handleMovedFootnoteReference'](_0x88509a,_0x56e90c){const _0x4f51e5=_0x56e90c['getAttribute']('footnoteId'),_0x24aafe=this['_footnotes']['findIndex'](_0x5de595=>_0x5de595['id']===_0x4f51e5),_0x4cb860=this['_footnotes'][_0x24aafe];let _0x93e2bc=!0x1;_0x4cb860['reference']=_0x56e90c,this['_footnotes']['splice'](_0x24aafe,0x1);const _0x2e3f98=R(this['editor']['model'],this['_footnotes'],_0x56e90c);return this['_footnotes']['splice'](_0x2e3f98,0x0,_0x4cb860),this['_updateFootnotesCounters'](_0x88509a,Math['min'](_0x24aafe,_0x2e3f98))&&(_0x93e2bc=!0x0),_0x93e2bc;}['_updateFootnoteRefCounter'](_0x4cf917,_0x25df5f){if(!this['_footnotesDefinitions'])return!0x1;const _0x91bf43=this['_footnotes'][_0x25df5f];let _0x497c6a;return _0x497c6a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x91bf43,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x25df5f+0x1}):String(_0x25df5f+0x1),_0x91bf43['reference']['getAttribute']('footnoteCounter')!=_0x497c6a&&(_0x4cf917['setAttribute']('footnoteCounter',_0x497c6a,_0x91bf43['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x57a99b){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x44726b,_0x459e1f){if(_0x44726b['length']!==_0x459e1f['length'])return!0x1;for(let _0x5b971b=0x0;_0x5b971b<_0x44726b['length'];_0x5b971b++)if(_0x44726b[_0x5b971b]!==_0x459e1f[_0x5b971b])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x433f2c=>_0x433f2c['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x401e11=>_0x401e11['getAttribute']('footnoteId'))))return!0x1;let _0x456ed9=!0x1;for(let _0x4cc5dd=0x0;_0x4cc5dd<this['_footnotes']['length'];_0x4cc5dd++){const _0x44869=this['_footnotes'][_0x4cc5dd],_0xa180e4=_0x57a99b['createPositionBefore'](_0x44869['definition']),_0x5c28ec=_0x57a99b['createPositionAt'](this['_footnotesDefinitions'],_0x4cc5dd);_0xa180e4['isEqual'](_0x5c28ec)||(_0x57a99b['move'](_0x57a99b['createRangeOn'](_0x44869['definition']),_0x5c28ec),_0x456ed9=!0x0);}return _0x456ed9;}['_ensureFootnotesReferencesHaveProperOrder'](_0x572478){if(!this['_footnotes']['length'])return!0x1;const {model:_0x482126}=this['editor'];let _0x5e846b=!0x1;for(let _0x2fb457=0x0;_0x2fb457<this['_footnotes']['length']-0x1;_0x2fb457++){const _0x21382d=this['_footnotes'][_0x2fb457],_0x250d6a=this['_footnotes'][_0x2fb457+0x1],_0x2a1823=_0x482126['createPositionBefore'](_0x21382d['reference']),_0x579887=_0x482126['createPositionBefore'](_0x250d6a['reference']);'after'===_0x2a1823['compareWith'](_0x579887)&&(this['_handleMovedFootnoteReference'](_0x572478,_0x21382d['reference']),_0x2fb457=-0x1,_0x5e846b=!0x0);}return _0x5e846b;}}function N(_0x38a592,_0x5cbe7d,_0x5ca6e5){if(_0x5ca6e5['childCount'])return!0x1;const _0x2cd99b=_0x5cbe7d?'paragraph':'footnoteInlineContent';return _0x38a592['insert'](_0x38a592['createElement'](_0x2cd99b),_0x5ca6e5),!0x0;}function R(_0x4d518e,_0x3122d1,_0x2c0211){if(0x0===_0x3122d1['length'])return 0x0;const _0x44373a=_0x4d518e['createPositionBefore'](_0x2c0211);for(let _0xc1324e=0x0;_0xc1324e<_0x3122d1['length'];_0xc1324e++){const _0x26e135=_0x3122d1[_0xc1324e],_0x23bddc=_0x4d518e['createPositionBefore'](_0x26e135['reference']);if('before'===_0x44373a['compareWith'](_0x23bddc))return _0xc1324e;}const _0x12c982=_0x2c0211['root'];let _0x50804f=-0x1;for(let _0x4baea8=_0x3122d1['length']-0x1;_0x4baea8>=0x0;_0x4baea8--)if(_0x3122d1[_0x4baea8]['reference']['root']===_0x12c982){_0x50804f=_0x4baea8;break;}if(-0x1!==_0x50804f)return _0x50804f+0x1;const _0x3fc1bf=_0x4d518e['document']['getRootNames'](),_0x1ed021=_0x3fc1bf['indexOf'](_0x12c982['rootName']),_0x340d0e=_0x3fc1bf[_0x1ed021+0x1];if(_0x340d0e){for(let _0x392305=0x0;_0x392305<_0x3122d1['length'];_0x392305++)if(_0x3122d1[_0x392305]['reference']['root']['rootName']===_0x340d0e)return _0x392305;}return _0x3122d1['length'];}class InsertFootnoteCommand extends _0x2a796a{['refresh'](){const _0xb3654b=this['editor']['model']['document']['selection'],_0x58b1fd=this['_getPositionToInsertFootnote'](_0xb3654b);this['isEnabled']=!!_0x58b1fd;}['execute'](_0x4fdbf9){const {editor:_0x2efa7c}=this,{model:_0x37da48}=_0x2efa7c,{selection:_0xb6c790}=_0x37da48['document'],_0x231c81=this['_getPositionToInsertFootnote'](_0xb6c790);if(!_0x231c81)return;const _0x57dddd=_0x2efa7c['plugins']['get']('FootnotesEditing'),_0x14a0df=_0x4fdbf9?.['footnoteId']??_0x3bd981();!function(_0x1d1a97){return'string'==typeof _0x1d1a97&&_0x1d1a97['length']>0x0&&!/\s/['test'](_0x1d1a97)&&!/^\d/['test'](_0x1d1a97);}(_0x14a0df)?_0x36d97a('insert-footnote-command-executed-with-invalid-id'):(_0x37da48['change'](_0x5397ef=>{const _0x16243d=_0x5397ef['createElement']('footnoteRef',{'footnoteId':_0x14a0df});_0x37da48['insertObject'](_0x16243d,_0x231c81,null);}),_0x57dddd['_moveSelectionToFootnoteDefinition'](_0x14a0df));}['_getPositionToInsertFootnote'](_0x22d692){const {model:_0x474801}=this['editor'],{schema:_0xbb9ea}=_0x474801,_0x28a48b=_0x22d692['getFirstRange']();for(const _0x2aab70 of _0x28a48b['getItems']())if(_0xbb9ea['isBlock'](_0x2aab70)||_0xbb9ea['isObject'](_0x2aab70))return null;const _0x37afa4=_0x28a48b['end'];return _0xbb9ea['checkChild'](_0x37afa4,'footnoteRef')?_0x37afa4:null;}}class FootnotesEditing extends _0x57592d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x13b9e}=this;_0x13b9e['config']['define']('footnotes.multiBlock',!0x0),_0x13b9e['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x13b9e)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x32a9cd){const _0x88ab5e=_0x217ba9([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]),_0x5d999f=0x47a28506,_0x172b8a=0x47a50e8e^_0x5d999f,_0x1b4756=window[_0x217ba9([0x44,0x61,0x74,0x65])][_0x217ba9([0x6e,0x6f,0x77])](),_0x209173=_0x32a9cd[_0x217ba9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57c280=new window[(_0x217ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cf67e=>{_0x209173[_0x217ba9([0x6f,0x6e,0x63,0x65])](_0x217ba9([0x72,0x65,0x61,0x64,0x79]),_0x2cf67e);}),_0x25174e={[_0x217ba9([0x6b,0x74,0x79])]:_0x217ba9([0x45,0x43]),[_0x217ba9([0x75,0x73,0x65])]:_0x217ba9([0x73,0x69,0x67]),[_0x217ba9([0x63,0x72,0x76])]:_0x217ba9([0x50,0x2d,0x32,0x35,0x36]),[_0x217ba9([0x78])]:_0x217ba9([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]),[_0x217ba9([0x79])]:_0x217ba9([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]),[_0x217ba9([0x61,0x6c,0x67])]:_0x217ba9([0x45,0x53,0x32,0x35,0x36])},_0x4b6624=_0x209173[_0x217ba9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x217ba9([0x67,0x65,0x74])](_0x217ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb6ffa(){let _0x48fa03,_0x6212a=null,_0x132c8f=null;try{if(_0x4b6624==_0x217ba9([0x47,0x50,0x4c]))return _0x217ba9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48fa03=_0x418f41(),!_0x48fa03)return _0x217ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48fa03[_0x217ba9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x132c8f=_0x5a5fc8(_0x48fa03[_0x217ba9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48fa03[_0x217ba9([0x6a,0x74,0x69])])),await _0x34e1db()?_0x42efee()?_0x209c72()?_0x217ba9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe5661a()?(_0x48fa03[_0x217ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x217ba9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6212a=_0x4cc3c4(_0x217ba9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37df1c()):_0x217ba9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x217ba9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x217ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x217ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x209c72(){const _0x5139d8=[_0x217ba9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x217ba9([0x74,0x72,0x69,0x61,0x6c])][_0x217ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48fa03[_0x217ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b4756/0x3e8:0xe10*_0x172b8a;return _0x48fa03[_0x217ba9([0x65,0x78,0x70])]<_0x5139d8;}function _0x42efee(){const _0x270e42=_0x48fa03[_0x217ba9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x270e42&&(!!_0x270e42[_0x217ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x217ba9([0x2a]))||!!_0x270e42[_0x217ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x217ba9([0x46,0x4f,0x4f])));}function _0xe5661a(){const _0x2f4fdf=_0x48fa03[_0x217ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f4fdf||0x0==_0x2f4fdf[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5303c5}=new URL(window[_0x217ba9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f4fdf[_0x217ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5303c5))return!0x0;const _0x478851=_0x5303c5[_0x217ba9([0x73,0x70,0x6c,0x69,0x74])](_0x217ba9([0x2e]));return _0x2f4fdf[_0x217ba9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bb127=>_0x4bb127[_0x217ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x217ba9([0x2a])))[_0x217ba9([0x6d,0x61,0x70])](_0x2fbc52=>_0x2fbc52[_0x217ba9([0x73,0x70,0x6c,0x69,0x74])](_0x217ba9([0x2e])))[_0x217ba9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46bb1c=>_0x46bb1c[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x478851[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x217ba9([0x6d,0x61,0x70])](_0xe04ad8=>Array(_0x478851[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe04ad8[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x217ba9([0x66,0x69,0x6c,0x6c])](_0xe04ad8[0x0]===_0x217ba9([0x2a])?_0x217ba9([0x2a]):'')[_0x217ba9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe04ad8))[_0x217ba9([0x73,0x6f,0x6d,0x65])](_0x4e5180=>_0x478851[_0x217ba9([0x65,0x76,0x65,0x72,0x79])]((_0x4b071b,_0xbb0ab8)=>_0x4e5180[_0xbb0ab8]===_0x4b071b||_0x4e5180[_0xbb0ab8]===_0x217ba9([0x2a])));}function _0x37df1c(){return _0x6212a&&_0x132c8f?new window[(_0x217ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ce5fd,_0x43b269)=>{_0x6212a[_0x217ba9([0x74,0x68,0x65,0x6e])](_0x3ce5fd,_0x43b269),_0x132c8f[_0x217ba9([0x74,0x68,0x65,0x6e])](_0x80b9ee=>{_0x80b9ee!=_0x217ba9([0x56,0x61,0x6c,0x69,0x64])&&_0x3ce5fd(_0x80b9ee);},_0x43b269);}):_0x6212a||_0x132c8f||_0x217ba9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a5fc8(_0x8ca795,_0x319e89){return new window[(_0x217ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ce62d=>{if(_0x373135())return _0x5ce62d(_0x217ba9([0x56,0x61,0x6c,0x69,0x64]));_0x1d96f8(),_0x209173[_0x217ba9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x217ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d9691=!0x1;const _0x27f38c=_0x3bd981();function _0x1480bd(_0x41fe64){return!!_0x41fe64&&(typeof _0x41fe64===_0x217ba9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41fe64===_0x217ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41fe64[_0x217ba9([0x74,0x68,0x65,0x6e])]===_0x217ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41fe64[_0x217ba9([0x63,0x61,0x74,0x63,0x68])]===_0x217ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20dbc2(_0x3fdaa5){_0x552dd8(_0x3fdaa5)[_0x217ba9([0x74,0x68,0x65,0x6e])](_0x21fba0=>{if(!_0x21fba0||_0x21fba0[_0x217ba9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x217ba9([0x6f,0x6b]))return _0x217ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1265fc(_0x592045(_0x27f38c+_0x319e89))!=_0x21fba0[_0x217ba9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x217ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x217ba9([0x56,0x61,0x6c,0x69,0x64]);})[_0x217ba9([0x74,0x68,0x65,0x6e])](_0x2fa3f8=>(_0x4bffad(),_0x2fa3f8),()=>{const _0x15c187=_0x592c91();return null==_0x15c187?(_0x4bffad(),_0x217ba9([0x56,0x61,0x6c,0x69,0x64])):_0x217ba9(_0x1b4756-_0x15c187>(0x63ae0106^_0x5d999f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x217ba9([0x74,0x68,0x65,0x6e])](_0x5ce62d)[_0x217ba9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ce62d(_0x217ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1628b5=0x47946b86^_0x5d999f;function _0x4bffad(){const _0x3501aa=_0x217ba9([0x6c,0x6c,0x63,0x74,0x2d])+_0x1265fc(_0x592045(_0x8ca795)),_0x20014e=_0x103314(_0x1265fc(window[_0x217ba9([0x4d,0x61,0x74,0x68])][_0x217ba9([0x63,0x65,0x69,0x6c])](_0x1b4756/_0x1628b5)));window[_0x217ba9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x217ba9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3501aa,_0x20014e);}function _0x592c91(){const _0x2d8670=_0x217ba9([0x6c,0x6c,0x63,0x74,0x2d])+_0x1265fc(_0x592045(_0x8ca795)),_0x2fbd30=window[_0x217ba9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x217ba9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d8670);return _0x2fbd30?window[_0x217ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x103314(_0x2fbd30),0x10)*_0x1628b5:null;}function _0x552dd8(_0x11bab3){return new window[(_0x217ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ab3af,_0x965868)=>{_0x11bab3[_0x217ba9([0x74,0x68,0x65,0x6e])](_0x4ab3af,_0x965868),window[_0x217ba9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x965868,0x47a351c6^_0x5d999f);});}}_0x209173[_0x217ba9([0x6f,0x6e])](_0x217ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34ac6d,_0x348ced)=>{if(_0x348ced[0x0]!=_0x8ca795)return _0x5ce62d(_0x217ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x348ced[0x1]={..._0x348ced[0x1],[_0x217ba9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x27f38c};},{[_0x217ba9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x217ba9([0x68,0x69,0x67,0x68])}),_0x209173[_0x217ba9([0x6f,0x6e])](_0x217ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bac6a=>{_0x1480bd(_0x4bac6a[_0x217ba9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d9691=!0x0,_0x20dbc2(_0x4bac6a[_0x217ba9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x217ba9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x217ba9([0x6c,0x6f,0x77])}),_0x57c280[_0x217ba9([0x74,0x68,0x65,0x6e])](()=>{_0x5d9691||_0x5ce62d(_0x217ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x373135(){return _0x209173[_0x217ba9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x217ba9([0x76,0x69,0x65,0x77])][_0x217ba9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x217ba9([0x61,0x75,0x74,0x6f]);}function _0x1d96f8(){_0x209173[_0x217ba9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x217ba9([0x76,0x69,0x65,0x77])][_0x217ba9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x217ba9([0x61,0x75,0x74,0x6f]);}}function _0x4cc3c4(_0x37e039){const _0x1768b5=[new window[(_0x217ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3acd2e=>setTimeout(_0x3acd2e,0x47abbbca^_0x5d999f)),_0x57c280[_0x217ba9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x217ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xadb4ee=>{let _0x5d7630=0x0;_0x209173[_0x217ba9([0x6d,0x6f,0x64,0x65,0x6c])][_0x217ba9([0x6f,0x6e])](_0x217ba9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56074a,_0x2e6fd0)=>{_0x2e6fd0[0x0][_0x217ba9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d7630++,_0x5d7630==(0x47a280ee^_0x5d999f)&&(_0xadb4ee(),_0x56074a[_0x217ba9([0x6f,0x66,0x66])]());});}))];return window[_0x217ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x217ba9([0x72,0x61,0x63,0x65])](_0x1768b5)[_0x217ba9([0x74,0x68,0x65,0x6e])](()=>_0x37e039);}async function _0x306923(){await _0x57c280,_0x209173[_0x217ba9([0x6d,0x6f,0x64,0x65,0x6c])][_0x217ba9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2308fa,_0x209173[_0x217ba9([0x6d,0x6f,0x64,0x65,0x6c])][_0x217ba9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2308fa,_0x209173[_0x217ba9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x217ba9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25f7de(_0x4d0157){const _0x4fde0c=_0x3dcc99();_0x209173[_0x4fde0c]=_0x217ba9([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d0157,_0x4d0157!=_0x217ba9([0x56,0x61,0x6c,0x69,0x64])&&_0x306923();}function _0x3dcc99(){const _0x1cbbae=window[_0x217ba9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x217ba9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x217ba9([0x6e,0x6f,0x77])]())[_0x217ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x217ba9([0x2e]),'');let _0x2396f7=_0x217ba9([0x75]);for(let _0x501832=0x0;_0x501832<_0x1cbbae[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x501832+=0x2){let _0x3f2e8f=window[_0x217ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cbbae[_0x217ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x501832,_0x501832+0x2));_0x3f2e8f>=_0x88ab5e[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f2e8f-=_0x88ab5e[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2396f7+=_0x88ab5e[_0x3f2e8f];}return _0x2396f7;}function _0x418f41(){const _0x5c3ee3=_0x4b6624[_0x217ba9([0x73,0x70,0x6c,0x69,0x74])](_0x217ba9([0x2e]));if(0x3!=_0x5c3ee3[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x124bcc(_0x5c3ee3[0x1]);function _0x124bcc(_0x1d3d1a){const _0x19c5ec=_0x1af870(_0x1d3d1a);return _0x19c5ec&&_0xa22b7e()?_0x19c5ec:null;function _0xa22b7e(){const _0x529446=_0x19c5ec[_0x217ba9([0x6a,0x74,0x69])],_0x212fc3=window[_0x217ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529446[_0x217ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x529446[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f30cc={..._0x19c5ec,[_0x217ba9([0x6a,0x74,0x69])]:_0x529446[_0x217ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x529446[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f30cc[_0x217ba9([0x76,0x63])],_0x592045(_0x5f30cc)==_0x212fc3;}}}async function _0x34e1db(){let _0x9da0b9=!0x0;try{const _0x1e4709=_0x4b6624[_0x217ba9([0x73,0x70,0x6c,0x69,0x74])](_0x217ba9([0x2e])),[_0x394a55,_0x1eb962,_0x57d02c]=_0x1e4709;return _0x4042b9(_0x394a55),await _0x3f1855(_0x394a55,_0x1eb962,_0x57d02c),_0x9da0b9;}catch{return!0x1;}function _0x4042b9(_0x533d17){const _0x32fb9a=_0x1af870(_0x533d17);_0x32fb9a&&_0x32fb9a[_0x217ba9([0x61,0x6c,0x67])]==_0x217ba9([0x45,0x53,0x32,0x35,0x36])||(_0x9da0b9=!0x1);}async function _0x3f1855(_0x31d04a,_0x550979,_0x309172){const _0x201954=window[_0x217ba9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x217ba9([0x66,0x72,0x6f,0x6d])](_0x2eef8e(_0x309172),_0x2fb702=>_0x2fb702[_0x217ba9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10e75c=new window[(_0x217ba9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x217ba9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31d04a+_0x217ba9([0x2e])+_0x550979),_0x37df19=window[_0x217ba9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x217ba9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37df19)return;const _0x27018b=await _0x37df19[_0x217ba9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x217ba9([0x6a,0x77,0x6b]),_0x25174e,{[_0x217ba9([0x6e,0x61,0x6d,0x65])]:_0x217ba9([0x45,0x43,0x44,0x53,0x41]),[_0x217ba9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x217ba9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x217ba9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37df19[_0x217ba9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x217ba9([0x6e,0x61,0x6d,0x65])]:_0x217ba9([0x45,0x43,0x44,0x53,0x41]),[_0x217ba9([0x68,0x61,0x73,0x68])]:{[_0x217ba9([0x6e,0x61,0x6d,0x65])]:_0x217ba9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27018b,_0x201954,_0x10e75c)||(_0x9da0b9=!0x1);}}function _0x1af870(_0x2f1db2){return _0x2f1db2[_0x217ba9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x217ba9([0x65,0x79]))?JSON[_0x217ba9([0x70,0x61,0x72,0x73,0x65])](_0x2eef8e(_0x2f1db2)):null;}function _0x2eef8e(_0xa655e9){return window[_0x217ba9([0x61,0x74,0x6f,0x62])](_0xa655e9[_0x217ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x217ba9([0x2b]))[_0x217ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x217ba9([0x2f])));}function _0x592045(_0x3d58c7){let _0x55bcbf=0x1505;function _0x3832ea(_0x2644dc){for(let _0x1fc9b8=0x0;_0x1fc9b8<_0x2644dc[_0x217ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fc9b8++){const _0x4d5379=_0x2644dc[_0x217ba9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fc9b8);_0x55bcbf=(_0x55bcbf<<0x5)+_0x55bcbf+_0x4d5379,_0x55bcbf&=_0x55bcbf;}}function _0x59612e(_0x536565){Array[_0x217ba9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x536565)?_0x536565[_0x217ba9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59612e):_0x536565&&typeof _0x536565==_0x217ba9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x217ba9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x536565)[_0x217ba9([0x73,0x6f,0x72,0x74])]()[_0x217ba9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ee785,_0x1ae6dc])=>{_0x3832ea(_0x1ee785),_0x59612e(_0x1ae6dc);}):_0x3832ea(window[_0x217ba9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x536565));}return _0x59612e(_0x3d58c7),_0x55bcbf>>>0x0;}function _0x1265fc(_0x41ace5){return _0x41ace5[_0x217ba9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x217ba9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x217ba9([0x30]));}function _0x103314(_0x1502e4){return _0x1502e4[_0x217ba9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x217ba9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x217ba9([0x6a,0x6f,0x69,0x6e])]('');}function _0x2308fa(){}function _0x217ba9(_0x3f0a6b){return _0x3f0a6b['map'](_0x51660d=>String['fromCharCode'](_0x51660d))['join']('');}_0x25f7de(await _0xb6ffa());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2a9ed3){const {plugins:_0x6dc212,editing:_0xfc9434,model:_0x2c3104}=this['editor'],_0x15ae26=_0x6dc212['get'](FootnotesTracker)['getFootnote'](_0x2a9ed3);return!!_0x15ae26&&(_0x2c3104['change'](_0xcd14b=>{_0xcd14b['setSelection'](_0xcd14b['createPositionAt'](_0x15ae26['definition'],'end'));}),_0xfc9434['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2254aa){const {plugins:_0x52213a,editing:_0x4de318,model:_0x25bec1}=this['editor'],_0x590b6b=_0x52213a['get'](FootnotesTracker)['getFootnote'](_0x2254aa);return!!_0x590b6b&&(_0x25bec1['change'](_0xba9417=>{_0xba9417['setSelection'](_0x590b6b['reference'],'on');}),_0x4de318['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4251cf}=this['editor']['model'],_0x275f0a=this['editor']['config']['get']('footnotes.multiBlock');_0x4251cf['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4251cf['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4251cf['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x275f0a?_0x4251cf['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4251cf['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4251cf['addChildCheck'](_0x5684ac=>{for(const _0x417258 of _0x5684ac)if('footnoteDefinition'===_0x417258['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x567ff0}=this,{conversion:_0x68f432,editing:_0x371cf8}=_0x567ff0,{t:t}=_0x567ff0['locale'];_0x68f432['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xb1078,{writer:_0x584c24,consumable:_0x6c1744})=>{const _0x167a1b=_0xb1078['getChild'](0x0);if(!_0x167a1b||!_0x167a1b['is']('element','a'))return null;const _0x268e1b=_0x167a1b['getAttribute']('href')||'';if(!_0x268e1b['startsWith']('#'))return null;const _0x260458=_0x268e1b['replace'](/^#/,'');if(!_0x260458)return null;_0x6c1744['consume'](_0x167a1b,{'name':!0x0,'attributes':['href']});for(const {item:_0x355714}of _0x371cf8['view']['createRangeIn'](_0x167a1b))_0x355714['is']('$textProxy')?_0x6c1744['consume'](_0x355714['textNode'],{'name':!0x0}):_0x355714['is']('element')&&_0x6c1744['consume'](_0x355714,{'name':!0x0});return _0x584c24['createElement']('footnoteRef',{'footnoteId':_0x260458});}}),_0x68f432['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2b4b42,{writer:_0x27e950})=>U(_0x2b4b42,_0x27e950)}),_0x68f432['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x11a9bf,{writer:_0x4347f6})=>{const _0x21098b=_0x11a9bf['getAttribute']('footnoteCounter');return _0x43495b(U(_0x11a9bf,_0x4347f6),_0x4347f6,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x21098b)});}});}['_defineDefinitionsConverters'](){const {editor:_0x7df16c}=this,{t:t}=_0x7df16c['locale'],{conversion:_0x425447}=_0x7df16c;_0x425447['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x425447['for']('upcast')['add'](_0x4e7f16=>{_0x4e7f16['on']('element:ol',(_0x344ea9,_0x6b93be,_0x3d6977)=>{const _0x454b4a=_0x6b93be['viewItem'];if(!_0x454b4a['hasClass']('footnotes-list')||!_0x6b93be['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3d6977['consumable']['consume'](_0x454b4a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x196283,modelCursor:_0x4c20e7}=_0x3d6977['convertChildren'](_0x6b93be['viewItem'],_0x6b93be['modelCursor']);_0x6b93be['modelRange']=_0x196283,_0x6b93be['modelCursor']=_0x4c20e7;}),_0x4e7f16['on']('element:hr',(_0x2bdd85,_0x130f14,_0x1e6291)=>{const _0x1c7688=_0x130f14['viewItem'];_0x1c7688['hasClass']('footnotes-divider')&&_0x130f14['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1e6291['consumable']['consume'](_0x1c7688,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x425447['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x14198f,{writer:_0x4fbd8f})=>$(_0x4fbd8f)}),_0x425447['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xef1367,{writer:_0x47ee79})=>{const _0x43606a=$(_0x47ee79,{'data-footnotes-list-label':t('Footnotes')}),_0x161411=_0x43495b(_0x43606a,_0x47ee79,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x47ee79['setCustomProperty']('footnotesDefinitions',!0x0,_0x161411),_0x161411;}});}['_defineDefinitionConverters'](){const {editor:_0x4f5185}=this,{conversion:_0x1ecf62,locale:_0x2a51d7}=_0x4f5185,_0x1528f3=_0x4f5185['config']['get']('footnotes.multiBlock');_0x1ecf62['for']('upcast')['add'](_0x3f0199=>{_0x3f0199['on']('element:li',(_0x1cb3fa,_0x3f89af,_0x36c263)=>{const _0x2c4ea=_0x3f89af['viewItem'];if(!_0x2c4ea['hasClass']('footnote-definition')||!_0x2c4ea['getAttribute']('id'))return;const _0x3c7f5e=_0x2c4ea['parent'];if(!_0x3c7f5e['is']('element','ol')||!_0x3c7f5e['hasClass']('footnotes-list'))return;if(!_0x36c263['consumable']['test'](_0x2c4ea,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x385c46=_0x36c263['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2c4ea['getAttribute']('id')});if(!_0x36c263['safeInsert'](_0x385c46,_0x3f89af['modelCursor']))return;_0x36c263['consumable']['consume'](_0x2c4ea,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4f4640=Array['from'](_0x2c4ea['getChildren']())['find'](_0x3c8816=>_0x3c8816['is']('element')&&_0x3c8816['hasClass']('footnote-content'));for(const _0x545b50 of _0x2c4ea['getChildren']())_0x545b50['is']('element')&&(_0x36c263['consumable']['consume'](_0x545b50,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x36c263['consumable']['consume'](_0x545b50,{'name':!0x0,'classes':'footnote-content'}));if(_0x4f4640){if(_0x1528f3)_0x36c263['convertChildren'](_0x4f4640,_0x385c46);else{const _0x434bfb=_0x36c263['writer']['createElement']('footnoteInlineContent');_0x36c263['writer']['insert'](_0x434bfb,_0x385c46),_0x36c263['convertChildren'](_0x4f4640,_0x434bfb);}}_0x36c263['updateConversionResult'](_0x385c46,_0x3f89af);});}),_0x1ecf62['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1d4985,{writer:_0x4093c0})=>B(_0x1d4985,_0x4093c0,_0x2a51d7,{'dataPipeline':!0x0})}),_0x1ecf62['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x22ced0,{writer:_0x4e1a32})=>B(_0x22ced0,_0x4e1a32,_0x2a51d7)});}['_defineBogusParagraphConverters'](){const {editor:_0xd6ece9}=this,{conversion:_0x439b04}=_0xd6ece9;_0xd6ece9['config']['get']('footnotes.multiBlock')?(_0x439b04['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':K(),'converterPriority':'high'}),_0x439b04['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':K({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xd6ece9['model']['document'],'change:data',()=>{!function(_0x519b06,_0xf179d5){const _0x2b9714=_0x519b06['document']['differ'],_0x4448a2=new Set();for(const _0x5d8f26 of _0x2b9714['getChanges']()){const _0x12c0b8='attribute'==_0x5d8f26['type']?_0x5d8f26['range']['start']['parent']:_0x5d8f26['position']['parent'];_0x12c0b8['is']('element','footnoteDefinition')&&_0x4448a2['add'](_0x12c0b8);}for(const _0x4c4263 of _0x4448a2['values']()){const _0x4d3db6=Array['from'](_0x4c4263['getChildren']())['filter'](_0x3d1a65=>V(_0x3d1a65,_0xf179d5['mapper']));for(const _0x2a3a36 of _0x4d3db6)_0xf179d5['reconvertItem'](_0x2a3a36);}}(_0xd6ece9['model'],_0xd6ece9['editing']);})):(_0x439b04['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':K()}),_0x439b04['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1e19d7,{writer:_0x426209})=>{const _0x2219a9=_0x426209['createContainerElement']('span');return _0x426209['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2219a9),_0x2219a9;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4ba622}=this,{editing:_0x326b96,t:t}=_0x4ba622,_0x1991b5=_0x4ba622['model']['document']['selection'];_0x4ba622['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4ba622['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x326b96['view']['document'],'enter',(_0x15f89e,_0x569890)=>{const _0x2dacd9=function(_0x1cecd0){const _0x16dd68=_0x1cecd0['getSelectedElement']();if(_0x16dd68?.['is']('element','footnoteRef'))return _0x16dd68;return null;}(_0x1991b5);if(_0x2dacd9){const _0x463558=_0x2dacd9['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x463558),_0x569890['preventDefault'](),_0x15f89e['stop']();}},{'context':_0x504084});}['_defineClickHandlers'](){const {editor:_0x1a906a}=this,{editing:_0x3cf11a}=_0x1a906a;_0x1a906a['editing']['view']['addObserver'](_0x130665),_0x1a906a['editing']['view']['addObserver'](_0x5933f0);let _0x49d5bc=!0x1;this['listenTo'](_0x3cf11a['view']['document'],'pointerdown',(_0x55183a,_0x4b2f4b)=>{const {target:_0x20615b}=_0x4b2f4b,_0x409523=_0x3cf11a['view']['document']['selection'];_0x49d5bc=!!(_0x20615b?.['is']('element','a')&&_0x20615b['parent']?.['is']('element','sup')&&_0x20615b['parent']['hasClass']('footnote'))&&_0x409523['getSelectedElement']()===_0x20615b['parent'];},{'priority':'high'}),this['listenTo'](_0x3cf11a['view']['document'],'click',(_0xe84eda,_0x183c87)=>{const {target:_0x1e6781}=_0x183c87;if(!_0x1e6781?.['is']('element','a'))return;if(_0x1e6781['parent']?.['is']('element','sup')&&_0x1e6781['parent']['hasClass']('footnote')&&!_0x49d5bc)return void _0x183c87['preventDefault']();let _0x36faf0=_0x1e6781['getAttribute']('href');if(!_0x36faf0?.['startsWith']('#'))return;_0x36faf0=_0x36faf0['slice'](0x1);let _0x52aea7=!0x1;(_0x36faf0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x36faf0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x36faf0))&&(_0x52aea7=!0x0),_0x52aea7&&(_0x183c87['preventDefault'](),_0xe84eda['stop']());},{'priority':'high','context':'$capture'});}}function K({dataPipeline:_0x201eae}={}){return(_0xc9c949,{writer:_0x5207f7})=>{if(!j(_0xc9c949))return null;if(!_0x201eae)return _0x5207f7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1b3d51=_0x5207f7['createContainerElement']('p');return _0x5207f7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1b3d51),_0x1b3d51;};}function j(_0x29f7f2){const {parent:_0x3cfd58}=_0x29f7f2;if(!_0x3cfd58?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3cfd58['childCount'])return!0x1;for(const _0x3f99b1 of _0x29f7f2['getAttributeKeys']())if(!_0x3f99b1['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3f99b1)return!0x1;return!0x0;}function V(_0x1c3b39,_0x11cf23){if(!_0x1c3b39['is']('element','paragraph'))return!0x1;const _0x399383=_0x11cf23['toViewElement'](_0x1c3b39);return!!_0x399383&&j(_0x1c3b39)!==_0x399383['is']('element','span');}function M(_0x58e6b9){return _0x504084(_0x58e6b9)&&_0x58e6b9['is']('containerElement')&&!!_0x58e6b9['getCustomProperty']('footnotesDefinitions');}function $(_0x50f2e0,_0x5a2e88={}){const _0x431db7=_0x50f2e0['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5c5722=_0x50f2e0['createContainerElement']('ol',{'class':'footnotes-list'},_0x50f2e0['createSlot']());return _0x50f2e0['createContainerElement']('div',{'class':'footnotes',..._0x5a2e88},[_0x431db7,_0x5c5722]);}function U(_0x3cadc7,_0x9c9feb){const _0x1def29=_0x3cadc7['getAttribute']('footnoteId'),_0x297600=_0x3cadc7['getAttribute']('footnoteCounter'),_0x1f33f5=_0x9c9feb['createUIElement']('a',{'href':'#'+_0x1def29},function(_0x6aba7){const _0x4f6964=this['toDomElement'](_0x6aba7);return _0x4f6964['textContent']=_0x297600,_0x4f6964;}),_0x12d5e1=_0x9c9feb['createContainerElement']('sup',{'id':'ref-'+_0x1def29,'class':'footnote'},[_0x1f33f5]);return _0x12d5e1['getFillerOffset']=()=>null,_0x12d5e1;}function B(_0x411c58,_0x22b1a7,_0x14a64e,{dataPipeline:_0x4db259}={}){const {t:t}=_0x14a64e,_0x122802=_0x411c58['getAttribute']('footnoteId'),_0x550f1b=_0x22b1a7['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x122802},function(_0x496de1){const _0x3fb23c=this['toDomElement'](_0x496de1);return _0x3fb23c['innerText']='^',_0x3fb23c;}),_0x45c6e6=_0x4db259?_0x22b1a7['createContainerElement']('div',{'class':'footnote-content'}):_0x24ddc1(_0x22b1a7['createEditableElement']('div',{'class':'footnote-content'}),_0x22b1a7,{'label':t('Footnote\x20content.')});return _0x22b1a7['insert'](_0x22b1a7['createPositionAt'](_0x45c6e6,0x0),_0x22b1a7['createSlot']()),_0x22b1a7['createContainerElement']('li',{'class':'footnote-definition','id':_0x122802},[_0x550f1b,_0x45c6e6]);}class FootnotesClipboard extends _0x57592d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[FootnotesEditing,_0x20b2a3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5b77cd}=this,{plugins:_0x269fd6,model:_0x8974d6}=_0x5b77cd,_0xcfb770=_0x269fd6['get'](_0x20b2a3),_0x1a0871=_0x269fd6['get'](FootnotesTracker);this['listenTo'](_0xcfb770,'outputTransformation',(_0x5bd912,_0x2142e1)=>{const _0x16e4d0=H(_0x8974d6['createRangeIn'](_0x2142e1['content']));if(!_0x16e4d0['length'])return;const _0x54bab3=_0x1a0871['getFootnotes'](),_0xeda814=_0x16e4d0['reduce']((_0x51fcf8,_0x3dac12)=>{const _0x47895b=_0x54bab3['find'](_0x4e4da8=>_0x4e4da8['id']===_0x3dac12);if(_0x47895b){const _0x13e3e8=_0x5b77cd['data']['toView'](_0x47895b['definition'],{'isClipboardPipeline':!0x0}),_0x24221f=_0x5b77cd['data']['htmlProcessor']['toData'](_0x13e3e8);_0x51fcf8[_0x47895b['id']]=_0x24221f;}return _0x51fcf8;},Object['create'](null));_0x2142e1['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xeda814));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x366144}=this,{model:_0x2897a6,plugins:_0x2a2d67}=_0x366144,{view:_0x80b810}=_0x366144['editing'],_0x4db2fa=_0x2a2d67['get'](_0x20b2a3),_0x57f6d3=_0x2a2d67['get'](FootnotesTracker),_0x5a7b30=_0x366144['config']['get']('footnotes.multiBlock');let _0x44b564=null;this['listenTo'](_0x80b810['document'],'clipboardInput',(_0x4184c6,_0x15e25f)=>{const _0x565716=_0x15e25f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x44b564=_0x565716?JSON['parse'](_0x565716):null;}),this['listenTo'](_0x4db2fa,'contentInsertion',(_0x8a9d35,_0x43c66c)=>{const _0x564a16=_0x43c66c['sourceEditorId']===this['editor']['id'];_0x564a16&&'drop'===_0x43c66c['method']||_0x2897a6['change'](_0x2d3952=>{let _0x28f9c3=_0x57f6d3['getFootnotesDefinitionsObjectElement']();const _0x4ddd2e=!!_0x28f9c3&&Array['from'](_0x2897a6['document']['selection']['getSelectedBlocks']())['includes'](_0x28f9c3);if(!_0x44b564&&function(_0xff1c76){for(const {item:_0x253ff9}of _0xff1c76)if(_0x253ff9['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2897a6['createRangeIn'](_0x43c66c['content']))&&(_0x44b564=function(_0x11de40,_0x243ad8){const _0x3029be=q(_0x11de40,_0x243ad8);if(!_0x3029be)return null;const _0x524135=Object['create'](null);for(const _0x3e72eb of _0x3029be['getChildren']())_0x3e72eb['is']('element','footnoteDefinition')&&_0x3e72eb['hasAttribute']('footnoteId')&&(_0x524135[_0x3e72eb['getAttribute']('footnoteId')]=_0x11de40['cloneElement'](_0x3e72eb,!0x0));return Object['keys'](_0x524135)['length']?_0x524135:null;}(_0x2d3952,_0x43c66c['content'])),(_0x28f9c3&&!_0x4ddd2e||!_0x28f9c3&&!_0x44b564)&&function(_0x644e48,_0x5d39d2){const _0x58f895=[];for(const {item:_0x3d0929}of _0x644e48['createRangeIn'](_0x5d39d2))_0x3d0929['is']('element','footnotesDefinitions')&&_0x58f895['push'](_0x3d0929);for(const _0x3c2822 of _0x58f895)_0x644e48['remove'](_0x3c2822);}(_0x2d3952,_0x43c66c['content']),!_0x44b564)return;const {selection:_0x140b05}=_0x2897a6['document'],_0x35bd6d=_0x140b05['getFirstRange']()['root'];_0x28f9c3&&!_0x4ddd2e||(_0x28f9c3=q(_0x2d3952,_0x43c66c['content']),_0x28f9c3||=_0x57f6d3['_insertEmptyFootnotesDefinitionsContainer'](_0x2d3952,_0x35bd6d));const _0x41b19a=Array['from'](_0x140b05['getRanges']())['flatMap'](H),_0x54b8e5=function(_0x5b8b2d,_0x423367,_0x30e9c3){const _0x141bf6=Object['create'](null);for(const {item:_0x138e4f}of _0x5b8b2d['createRangeIn'](_0x423367))if(_0x138e4f['is']('element','footnoteRef')){const _0x563693=_0x138e4f['getAttribute']('footnoteId');if(!_0x30e9c3(_0x563693))continue;_0x141bf6[_0x563693]||(_0x141bf6[_0x563693]=_0x3bd981()),_0x5b8b2d['setAttribute']('footnoteId',_0x141bf6[_0x563693],_0x138e4f);}return _0x141bf6;}(_0x2d3952,_0x43c66c['content'],_0x547485=>{if(!_0x564a16)return!0x0;return!!_0x57f6d3['getFootnote'](_0x547485)&&!_0x41b19a['includes'](_0x547485);});for(const [_0xc97442,_0x5794b5]of Object['entries'](_0x44b564)){const _0x1de792=_0x54b8e5[_0xc97442]||_0xc97442;let _0x2f88bc;if('string'!=typeof _0x5794b5)_0x2f88bc=_0x5794b5,_0x1de792!==_0xc97442&&_0x2d3952['setAttribute']('footnoteId',_0x1de792,_0x2f88bc);else{_0x2f88bc=_0x2d3952['createElement']('footnoteDefinition',{'footnoteId':_0x1de792});const _0x379320=_0x366144['data']['htmlProcessor']['toView'](_0x5794b5);let _0x2afeef;if(_0x5a7b30)_0x2afeef=_0x366144['data']['toModel'](_0x379320,_0x2f88bc);else{_0x2afeef=_0x2d3952['createElement']('footnoteInlineContent');const _0x4d385d=_0x366144['data']['toModel'](_0x379320,_0x2afeef);_0x2d3952['insert'](_0x4d385d,_0x2afeef);}_0x2d3952['append'](_0x2afeef,_0x2f88bc);}_0x2d3952['insert'](_0x2f88bc,_0x28f9c3,'end');}_0x44b564=null;});});}}function q(_0x2a6220,_0x36f8b4){for(const {item:_0x4eee8e}of _0x2a6220['createRangeIn'](_0x36f8b4))if(_0x4eee8e['is']('element','footnotesDefinitions'))return _0x4eee8e;return null;}function H(_0x867904){const _0x28ed75=new Set();for(const {item:_0x4a5747}of _0x867904)_0x4a5747['is']('element','footnoteRef')&&_0x28ed75['add'](_0x4a5747['getAttribute']('footnoteId'));return Array['from'](_0x28ed75);}class FootnotesUI extends _0x57592d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x147133}=this,{componentFactory:_0x27e9b9}=_0x147133['ui'];_0x27e9b9['add']('insertFootnote',z(_0x147133,_0x22cb22)),_0x27e9b9['add']('menuBar:insertFootnote',z(_0x147133,_0x2bac96)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x166cfa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a98be;for(const _0x5afbdc in _0x166cfa){const _0x221548=_0x5afbdc,_0x3b3405=_0x166cfa[_0x221548];if('footnotesLicenseKeyValid'==_0x3b3405||'footnotesLicenseKeyInvalid'==_0x3b3405||'footnotesLicenseKeyExpired'==_0x3b3405||'footnotesLicenseKeyDomainLimit'==_0x3b3405||'footnotesLicenseKeyNotAllowed'==_0x3b3405||'footnotesLicenseKeyEvaluationLimit'==_0x3b3405||'footnotesLicenseKeyUsageLimit'==_0x3b3405){delete _0x166cfa[_0x221548],_0x2a98be=_0x3b3405,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2a98be&&_0x166cfa['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2a98be&&_0x166cfa['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2a98be&&_0x166cfa['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2a98be&&_0x166cfa['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2a98be&&_0x166cfa['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x2a98be&&_0x166cfa['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function z(_0x55c575,_0x41880b){const _0x46fdc4=_0x55c575['commands']['get']('insertFootnote');return _0x149d67=>{const {t:t}=_0x149d67,_0x274016=new _0x41880b(_0x149d67),_0x564e76=_0x274016 instanceof _0x2bac96;return _0x274016['bind']('isEnabled')['to'](_0x46fdc4,'isEnabled'),_0x274016['set']({'label':t(_0x564e76?'Footnote':'Insert\x20footnote'),'icon':_0x4d7355,'tooltip':!0x0}),_0x274016['on']('execute',()=>{_0x46fdc4['execute'](),_0x55c575['editing']['view']['focus']();}),_0x274016;};}class Footnotes extends _0x57592d{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[FootnotesEditing,FootnotesClipboard,FootnotesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const X=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],J=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),G=[...X,'arabic-indic','lower-alpha','upper-alpha'];class FootnotesStyleCommand extends _0x2a796a{['refresh'](){const {editor:_0x19fc8d}=this,_0x272cc6=_0x19fc8d['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x272cc6,this['value']=_0x272cc6?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5365c5}){const {editor:_0x3dd105}=this,_0x13a905=_0x3dd105['plugins']['get'](FootnotesTracker),_0x3f11ab=_0x13a905['getFootnotesDefinitionsObjectElement']();_0x3f11ab&&G['includes'](_0x5365c5)&&_0x3dd105['model']['change'](_0x458c77=>{_0x458c77['setAttribute']('footnotesListStyle',_0x5365c5,_0x3f11ab),_0x13a905['_updateFootnotesCounters'](_0x458c77);});}}class FootnotesStartCommand extends _0x2a796a{['refresh'](){const {editor:_0x457436}=this,_0x40d4f1=_0x457436['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x40d4f1,this['value']=_0x40d4f1?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3be95d}){const {editor:_0x53b8a8}=this,_0x41fe2a=_0x53b8a8['plugins']['get'](FootnotesTracker),_0x5b5503=_0x41fe2a['getFootnotesDefinitionsObjectElement']();_0x5b5503&&Number['isInteger'](_0x3be95d)&&_0x53b8a8['model']['change'](_0x4447b6=>{_0x4447b6['setAttribute']('footnotesListStart',_0x3be95d,_0x5b5503),_0x41fe2a['_updateFootnotesCounters'](_0x4447b6);});}}function Q(_0x4f1f59,_0x35d465){let _0x317d85='',_0xf102e9=_0x4f1f59;for(;_0xf102e9>0x0;){const _0x31b9fd=(_0xf102e9-0x1)%0x1a;_0x317d85=String['fromCharCode'](0x61+_0x31b9fd)+_0x317d85,_0xf102e9=Math['floor']((_0xf102e9-0x1)/0x1a);}return _0x35d465?_0x317d85['toUpperCase']():_0x317d85;}const W=[{'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 Y(_0x3e7c92,_0x38c277){let _0x4135bc='',_0x57e086=_0x3e7c92;for(const {value:_0x36a3a9,numeral:_0x2e0b49}of W)for(;_0x57e086>=_0x36a3a9;)_0x4135bc+=_0x2e0b49,_0x57e086-=_0x36a3a9;return _0x38c277?_0x4135bc:_0x4135bc['toLowerCase']();}const Z=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class FootnotesPropertiesEditing extends _0x57592d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[FootnotesEditing,FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x145411}=this;_0x145411['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x145411['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x145411['config']['define']('footnotes.footnotesProperties.listStyles',[...X]),_0x145411['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x145411)),_0x145411['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x145411)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x30b8b1}=this,{schema:_0x51e736}=_0x30b8b1['model'];_0x51e736['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0xe22b36}=this,{conversion:_0x42bbdc,model:_0x17f326}=_0xe22b36,{schema:_0x3cad61}=_0x17f326;_0x42bbdc['for']('upcast')['add'](_0x277732=>{_0x277732['on']('element:ol',(_0x32c481,_0x241c27,_0x4141e1)=>{const _0x29dc90=_0x241c27['viewItem'],_0x4a6d64=_0x241c27['modelCursor']?.['parent'];_0x29dc90['hasClass']('footnotes-list')&&_0x4a6d64?.['is']('element','footnotesDefinitions')&&(function(_0x239b21,_0x249f74,_0x5b6bac,_0x41cdec){if(!_0x41cdec['checkAttribute'](_0x249f74,'footnotesListStart'))return;let _0x338850=0x1;const _0x38a3c9=_0x5b6bac['consumable']['consume'](_0x239b21,{'attributes':'start'});if(_0x38a3c9){const _0x2f835c=Number['parseInt'](_0x239b21['getAttribute']('start'),0xa);Number['isNaN'](_0x2f835c)||(_0x338850=_0x2f835c);}!_0x38a3c9&&_0x249f74['hasAttribute']('footnotesListStart')||_0x5b6bac['writer']['setAttribute']('footnotesListStart',_0x338850,_0x249f74);}(_0x29dc90,_0x4a6d64,_0x4141e1,_0x3cad61),function(_0x4898ec,_0x42cf20,_0x3e31bd,_0x1aa2a4){if(!_0x1aa2a4['checkAttribute'](_0x42cf20,'footnotesListStyle'))return;let _0x472cff='decimal',_0x238c09=!0x1;if(_0x3e31bd['consumable']['consume'](_0x4898ec,{'attributes':'type'})){const _0x14cc2e={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x4898ec['getAttribute']('type')];_0x14cc2e&&(_0x472cff=_0x14cc2e),_0x238c09=!0x0;}if(_0x3e31bd['consumable']['consume'](_0x4898ec,{'styles':'list-style-type'})){const _0x84577c=tt(_0x4898ec['getStyle']('list-style-type'));_0x84577c&&(_0x472cff=_0x84577c),_0x238c09=!0x0;}!_0x238c09&&_0x42cf20['hasAttribute']('footnotesListStyle')||_0x3e31bd['writer']['setAttribute']('footnotesListStyle',_0x472cff,_0x42cf20);}(_0x29dc90,_0x4a6d64,_0x4141e1,_0x3cad61));});}),_0x42bbdc['for']('downcast')['add'](_0x42adb5=>{_0x42adb5['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x106d17,_0x237d24,_0x428e87)=>{if(!_0x428e87['consumable']['consume'](_0x237d24['item'],_0x106d17['name']))return;const _0x11f533=et(_0x237d24['item'],_0x428e87['mapper']),{attributeNewValue:_0x594b16}=_0x237d24;null==_0x594b16||0x1===_0x594b16?_0x428e87['writer']['removeAttribute']('start',_0x11f533):_0x428e87['writer']['setAttribute']('start',String(_0x594b16),_0x11f533);}),_0x42adb5['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2445ca,_0x4e106d,_0x531b19)=>{if(!_0x531b19['consumable']['consume'](_0x4e106d['item'],_0x2445ca['name']))return;const _0x4ab423=et(_0x4e106d['item'],_0x531b19['mapper']),{attributeNewValue:_0xefe07e}=_0x4e106d;_0xefe07e&&'decimal'!==_0xefe07e?_0x531b19['writer']['setStyle']('list-style-type',_0xefe07e,_0x4ab423):_0x531b19['writer']['removeStyle']('list-style-type',_0x4ab423);});});}['_definePostfixer'](){const {editor:_0x33eb82}=this,{model:_0xd13b54}=_0x33eb82,_0x2fd571=_0x33eb82['plugins']['get'](FootnotesTracker),_0x4a4f5e=this['_getDefaultListStyle'](),_0x58d313=this['_getDefaultStartIndex']();_0xd13b54['document']['registerPostFixer'](_0x5dc7a5=>{const _0x1bd5c4=_0xd13b54['document']['differ']['getChanges']();let _0x385813=!0x1;for(const _0x58f144 of _0x1bd5c4){if('insert'!==_0x58f144['type']||'$text'===_0x58f144['name'])continue;const _0x9c2a1c=_0xd13b54['createRangeOn'](_0x58f144['position']['nodeAfter']);for(const _0x54db36 of _0x9c2a1c['getItems']())_0x54db36['is']('element','footnotesDefinitions')&&(!_0x54db36['hasAttribute']('footnotesListStart')&&_0xd13b54['schema']['checkAttribute'](_0x54db36,'footnotesListStart')&&(_0x5dc7a5['setAttribute']('footnotesListStart',_0x58d313,_0x54db36),_0x385813=!0x0),!_0x54db36['hasAttribute']('footnotesListStyle')&&_0xd13b54['schema']['checkAttribute'](_0x54db36,'footnotesListStyle')&&(_0x5dc7a5['setAttribute']('footnotesListStyle',_0x4a4f5e,_0x54db36),_0x385813=!0x0));}return _0x385813&&_0x2fd571['_updateFootnotesCounters'](_0x5dc7a5),_0x385813;});}['_defineFormatter'](){const {editor:_0x48f94f}=this;_0x48f94f['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x34050b=>this['_formatFootnoteListValue'](_0x34050b));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x522d06,value:_0x20f46f,digits:_0x238440}){const _0x6547f0=_0x522d06['getAttribute']('footnotesListStyle'),_0x40b638=_0x522d06['getAttribute']('footnotesListStart'),_0x1e0bef=Math['floor'](_0x20f46f)+(_0x40b638??0x1)-0x1;switch(_0x6547f0){case'decimal-leading-zero':return function(_0x31271f,_0x35fcd5){return String(_0x31271f)['padStart'](_0x35fcd5,'0');}(_0x1e0bef,Math['max'](0x2,_0x238440));case'lower-alpha':case'lower-latin':return Q(_0x1e0bef,!0x1);case'upper-alpha':case'upper-latin':return Q(_0x1e0bef,!0x0);case'lower-roman':return Y(_0x1e0bef,!0x1);case'upper-roman':return Y(_0x1e0bef,!0x0);case'arabic-indic':return String(_0x1e0bef)['replace'](/\d/g,_0x191244=>Z[Number(_0x191244)]);default:return String(_0x1e0bef);}}}function tt(_0x56de9d){if('string'==typeof _0x56de9d){const _0x4875f0=J[_0x56de9d];if(_0x4875f0)return _0x4875f0;if(G['includes'](_0x56de9d))return _0x56de9d;}return null;}function et(_0x12185c,_0x27b1f3){const _0x11ae0b=_0x27b1f3['toViewElement'](_0x12185c);return Array['from'](_0x11ae0b['getChildren']())['find'](_0x35954a=>_0x35954a['is']('element','ol')&&_0x35954a['hasClass']('footnotes-list'));}class FootnotesDefinitionsPropertiesView extends _0x1dfae1{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x1719d1();['keystrokes']=new _0x310a84();['focusables']=new _0x5e8ee1();['focusCycler'];constructor(_0x22028a,{styleButtonViews:_0x27b6ea,styleGridAriaLabel:_0x571723}){super(_0x22028a),(this['focusCycler']=new _0x287796({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x27b6ea,_0x571723),[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 _0x39f269 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x39f269['element']);_0x203194({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x313623['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 _0x2e4a40=_0x3deb0d=>_0x3deb0d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2e4a40),this['keystrokes']['set']('arrowleft',_0x2e4a40),this['keystrokes']['set']('arrowup',_0x2e4a40),this['keystrokes']['set']('arrowdown',_0x2e4a40);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x218607,_0x369dcd){const _0x2600f3=new _0x1dfae1(this['locale']);return _0x2600f3['children']=_0x2600f3['createCollection'](),_0x2600f3['children']['addMany'](_0x218607),_0x2600f3['setTemplate']({'tag':'div','attributes':{'aria-label':_0x369dcd,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2600f3['children']}),_0x2600f3['children']['delegate']('execute')['to'](this),_0x2600f3['focus']=function(){for(const _0x1da963 of this['children'])if(_0x1da963 instanceof _0x22cb22&&_0x1da963['isOn'])return void _0x1da963['focus']();this['children']['first']['focus']();},_0x2600f3['focusTracker']=new _0x1719d1(),_0x2600f3['keystrokes']=new _0x310a84(),_0x2600f3['render'](),_0x2600f3['keystrokes']['listenTo'](_0x2600f3['element']),this['children']['add'](_0x2600f3),_0x2600f3;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5554fb=this['_createStartIndexPropertyView'](),_0x1679de=[_0x5554fb],_0x550801=new _0x4336d0(this['locale'],_0x1679de);return _0x550801['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x550801['buttonView']['bind']('isEnabled')['toMany'](_0x1679de,'isEnabled',(..._0x29f5cf)=>_0x29f5cf['some'](_0x1c8175=>_0x1c8175)),_0x550801['buttonView']['on']('change:isEnabled',(_0x18f938,_0x2526ff,_0x55b67f)=>{_0x55b67f||(_0x550801['isCollapsed']=!0x0);}),this['children']['add'](_0x550801),[_0x5554fb,_0x550801];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5cebb8=new _0x535a19(this['locale'],_0x552192);return _0x5cebb8['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5cebb8['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5cebb8['fieldView']['on']('input',()=>{const _0x5f560d=_0x5cebb8['fieldView']['element'],_0x1ef6f4=_0x5f560d['valueAsNumber'];Number['isNaN'](_0x1ef6f4)?_0x5cebb8['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5f560d['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1ef6f4}):_0x5cebb8['errorText']=t(_0x1ef6f4<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5cebb8;}}class FootnotesPropertiesUI extends _0x57592d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x440f75,_0x4a1f2c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x115263}=this,{componentFactory:_0x4f68af}=_0x115263['ui'];_0x115263['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4f68af['add']('footnotesStyle',function(_0x2f11b6){return _0x402aeb=>{const {t:t}=_0x402aeb,_0x132d85=_0x2f11b6['commands']['get']('footnotesStyle'),_0x469126=_0x107b59(_0x402aeb),{buttonView:_0x5d9e44}=_0x469126;return _0x469126['class']='ck-footnotes-styles-dropdown',_0x469126['bind']('isEnabled')['to'](_0x132d85,'isEnabled'),_0x5d9e44['set']({'label':t('Footnotes\x20style'),'icon':_0x4d7355,'tooltip':!0x0}),_0x469126['once']('change:isOpen',()=>{const _0x362c23=function({editor:_0x490c19,dropdownView:_0x54e337}){const {t:t}=_0x490c19['locale'],_0x508675=t('Footnotes\x20definitions\x20styles'),_0x620ae=function(_0x266ad0){const {t:t}=_0x266ad0['locale'],_0x1705b5=_0x266ad0['config']['get']('footnotes.footnotesProperties.listStyles'),_0x12c5aa=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x5ea563},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x3eb03f},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0xd1d213},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x235263},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0xef6051},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0xf3ce82},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x5dad58}];return _0x1705b5['map'](_0x1a83ae=>{const _0xfcc1da=tt(_0x1a83ae),_0x2cdc47=_0x12c5aa['find'](_0x109e88=>_0x109e88['style']===_0xfcc1da);return function(_0x3a3400,_0x2f6e2c){const {locale:_0x29e8be}=_0x3a3400,{label:_0x54b63e,icon:_0x246ddf,tooltip:_0x2ef7c2,style:_0x5b3867}=_0x2f6e2c,_0x1ce412=_0x3a3400['commands']['get']('footnotesStyle'),_0x32690f=new _0x22cb22(_0x29e8be);return _0x32690f['set']({'label':_0x54b63e,'icon':_0x246ddf,'tooltip':_0x2ef7c2}),_0x32690f['bind']('isOn')['to'](_0x1ce412,'value',_0x534c8a=>_0x534c8a===_0x5b3867),_0x32690f['bind']('isEnabled')['to'](_0x1ce412,'isEnabled'),_0x32690f['on']('execute',()=>{_0x3a3400['execute']('footnotesStyle',{'value':_0x5b3867}),_0x3a3400['editing']['view']['focus']();}),_0x32690f;}(_0x266ad0,_0x2cdc47);});}(_0x490c19),_0x4b4b2d=new FootnotesDefinitionsPropertiesView(_0x490c19['locale'],{'styleGridAriaLabel':_0x508675,'styleButtonViews':_0x620ae}),_0x2bd941=_0x490c19['commands']['get']('footnotesStart');return _0x4b4b2d['startIndexFieldView']['bind']('isEnabled')['to'](_0x2bd941),_0x4b4b2d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2bd941),_0x4b4b2d['on']('footnotesListStart',(_0x16d570,_0x4565d1)=>{_0x490c19['execute']('footnotesStart',{'value':_0x4565d1['startIndex']});}),_0x4b4b2d['delegate']('execute')['to'](_0x54e337),_0x4b4b2d;}({'editor':_0x2f11b6,'dropdownView':_0x469126});_0x469126['panelView']['children']['add'](_0x362c23);}),_0x469126;};}(_0x115263));}['afterInit'](){const {editor:_0x451fb2}=this,{t:t}=_0x451fb2['locale'],_0x29952f=_0x451fb2['plugins']['get'](_0x4a1f2c),{defaultPositions:_0x443c8c}=_0x4bd53e;_0x29952f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x451fb2['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x361e6c=>{let _0x209257=_0x361e6c['getFirstPosition']()?.['parent'];return _0x209257?.['is']('$text')&&(_0x209257=_0x209257['parent']),_0x209257?.['is']('element')?_0x209257['findAncestor'](M):null;},'positions':[_0x443c8c['southArrowNorth'],_0x443c8c['southArrowNorthMiddleWest'],_0x443c8c['southArrowNorthMiddleEast'],_0x443c8c['southArrowNorthWest'],_0x443c8c['southArrowNorthEast'],_0x443c8c['northArrowSouth'],_0x443c8c['northArrowSouthMiddleWest'],_0x443c8c['northArrowSouthMiddleEast'],_0x443c8c['northArrowSouthWest'],_0x443c8c['northArrowSouthEast'],_0x443c8c['viewportStickyNorth']]});}}class FootnotesProperties extends _0x57592d{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[FootnotesPropertiesEditing,FootnotesPropertiesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Footnotes,FootnotesClipboard,FootnotesEditing,FootnotesProperties,FootnotesPropertiesEditing,FootnotesPropertiesUI,FootnotesStartCommand,FootnotesStyleCommand,FootnotesTracker,FootnotesUI,InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x382a16,Command as _0x536a4a}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4569d4,isWidget as _0x5d130a,toWidgetEditable as _0x41a84c,WidgetToolbarRepository as _0x15ac30}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5d6af1,logWarning as _0x387899,FocusTracker as _0x2f2c76,KeystrokeHandler as _0x4b0e2b,global as _0x36a0f0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xd760b2,ClickObserver as _0x455a9e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5bdd65}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x328d6d,ButtonView as _0x4ae8df,View as _0x142da2,ViewCollection as _0x1b78f0,FocusCycler as _0x33aed9,addKeyboardHandlingForGrid as _0x237d36,CollapsibleView as _0x56bc81,LabeledFieldView as _0x439c74,createLabeledInputNumber as _0x53e547,ContextualBalloon as _0x28b911,BalloonPanelView as _0x3bc1a8,createDropdown as _0x15e874}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4c4649,IconListStyleDecimal as _0x10e043,IconListStyleDecimalLeadingZero as _0x48c989,IconListStyleLowerRoman as _0x192fe0,IconListStyleUpperRoman as _0x579223,IconListStyleLowerLatin as _0x5d8d2c,IconListStyleUpperLatin as _0x2637e9,IconListStyleArabicIndic as _0x2e741d}from'@ckeditor/ckeditor5-icons/dist/index.js';class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x57769a,_0x266209){this['_model']=_0x57769a,this['_elementName']=_0x266209['elementName'],this['_getElementKey']=_0x266209['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1afdf2){const _0x35c467=new Set(),_0x2ff013=new Map();for(const _0x481c7c of _0x1afdf2){if('insert'===_0x481c7c['type']&&'$text'!==_0x481c7c['name']&&_0x481c7c['position']['nodeAfter']){const _0x428e6e=this['_model']['createRangeOn'](_0x481c7c['position']['nodeAfter']);for(const _0x1cc002 of _0x428e6e['getItems']()){if(!_0x1cc002['is']('element',this['_elementName']))continue;const _0x250ba4=this['_getElementKey'](_0x1cc002);_0x2ff013['has'](_0x250ba4)||_0x2ff013['set'](_0x250ba4,[]),_0x2ff013['get'](_0x250ba4)['push'](_0x1cc002);}}if('remove'===_0x481c7c['type']&&_0x481c7c['name']===this['_elementName']){const _0x108295=this['_getElementKey']({'getAttribute':_0x397bc0=>_0x481c7c['attributes']['get'](_0x397bc0)});_0x35c467['add'](_0x108295);}}for(const [_0x12168e,_0x55c147]of this['_trackedElements'])'$graveyard'===_0x55c147['root']['rootName']&&_0x35c467['add'](_0x12168e);for(const _0x10d19b of _0x35c467)this['_trackedElements']['delete'](_0x10d19b);for(const [_0x4c6767,_0x19777c]of _0x2ff013)this['_trackedElements']['set'](_0x4c6767,_0x19777c[_0x19777c['length']-0x1]);const _0x49efb7=new Set();for(const [_0x32c612,_0x4f4ae9]of _0x2ff013)_0x35c467['has'](_0x32c612)&&(_0x49efb7['add'](_0x4f4ae9[0x0]),_0x4f4ae9['length']>0x1?_0x2ff013['set'](_0x32c612,_0x4f4ae9['slice'](0x1)):_0x2ff013['delete'](_0x32c612),_0x35c467['delete'](_0x32c612));return{'removed':Array['from'](_0x35c467),'inserted':Array['from'](_0x2ff013['values']())['flat'](),'moved':Array['from'](_0x49efb7)};}}class FootnotesTracker extends _0x382a16{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38922b){super(_0x38922b),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5acd71=>_0x5acd71['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5bb235=>_0x5bb235['getAttribute']('footnoteId')});}['init'](){const {editor:_0x257927}=this,{model:_0x59af46,data:_0x57521b}=_0x257927;_0x59af46['document']['registerPostFixer'](_0x10c378=>{const _0x45935c=_0x59af46['document']['differ']['getChanges']();let _0x316816=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x10c378,_0x45935c)&&(_0x316816=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x10c378,_0x45935c)&&(_0x316816=!0x0),this['_handleFootnoteReferencesChanges'](_0x10c378,_0x45935c)&&(_0x316816=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x10c378)&&(_0x316816=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x10c378)&&(_0x316816=!0x0),this['_sortFootnoteDefinitions'](_0x10c378)&&(_0x316816=!0x0),_0x316816;}),this['listenTo'](_0x59af46['document'],'change:data',()=>{_0x59af46['enqueueChange']({'isUndoable':!0x1},_0x29ab3f=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x29ab3f);});},{'priority':'low'}),this['listenTo'](_0x57521b,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x292766){return this['_footnotes']['find'](_0x2ffea2=>_0x2ffea2['id']===_0x292766)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2347d4){this['_footnoteFormatter']=_0x2347d4;}['_updateFootnotesCounters'](_0x19e7c0,_0x22a390=0x0){let _0x3dd0bf=!0x1;for(let _0x4a89fb=_0x22a390;_0x4a89fb<this['_footnotes']['length'];_0x4a89fb++)this['_updateFootnoteRefCounter'](_0x19e7c0,_0x4a89fb)&&(_0x3dd0bf=!0x0);return _0x3dd0bf;}['_insertEmptyFootnotesDefinitionsContainer'](_0x98e053,_0x20c54a){const _0x476dcc=_0x98e053['createElement']('footnotesDefinitions',{});return _0x98e053['append'](_0x476dcc,_0x20c54a),this['_footnotesDefinitions']=_0x476dcc,_0x476dcc;}['_ensureFootnotesDefinitionsContainerExists'](_0x321585){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0xe65450=this['_footnotes'][0x0]['reference']['root'],_0x46ab20=this['_insertEmptyFootnotesDefinitionsContainer'](_0x321585,_0xe65450);for(const _0x5cc334 of this['_footnotes'])_0x5cc334['definition']['parent']||_0x321585['insert'](_0x5cc334['definition'],_0x46ab20,'end');this['_updateFootnotesCounters'](_0x321585);}['_handleFootnotesDefinitionsObjectChanges'](_0x1bc650,_0xe3b3f3){let _0x54d3b2=!0x1;const {inserted:_0x59228a,removed:_0x4786f8,moved:_0x2c6128}=this['_footnoteDefsContainerTracker']['getChanges'](_0xe3b3f3);if(_0x2c6128['length']&&(this['_footnotesDefinitions']=_0x2c6128[0x0]),_0x59228a['length']){if(_0x59228a['length']>0x1||this['_footnotesDefinitions']&&_0x59228a['some'](_0xd16511=>_0xd16511!==this['_footnotesDefinitions'])){const _0x152f2e=_0x1bc650['createElement']('footnotesDefinitions',{}),_0x1a3c82=[];this['_footnotesDefinitions']&&_0x1a3c82['push'](this['_footnotesDefinitions']),_0x1a3c82['push'](..._0x59228a),_0x1bc650['insert'](_0x152f2e,_0x1a3c82[0x0],'before');for(const _0x34ffde of _0x1a3c82)_0x1bc650['move'](_0x1bc650['createRangeIn'](_0x34ffde),_0x1bc650['createPositionAt'](_0x152f2e,'end')),_0x1bc650['remove'](_0x34ffde);this['_footnotesDefinitions']=_0x152f2e,this['_updateFootnotesCounters'](_0x1bc650),_0x54d3b2=!0x0;}else this['_footnotesDefinitions']=_0x59228a[0x0];}if(_0x4786f8['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2123dc of this['_footnotes'])_0x1bc650['remove'](_0x2123dc['reference']),_0x54d3b2=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x54d3b2;}['_handleFootnoteDefinitionsChanges'](_0x1ec7b5,_0xdf1e87){let _0x45150b=!0x1;const _0x386d99=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x3fff7e,moved:_0x307307}=this['_footnoteDefsTracker']['getChanges'](_0xdf1e87);for(const _0x392095 of[..._0x307307,..._0x3fff7e]){const _0x71b154=_0x392095['getAttribute']('footnoteId'),_0x5b9719=this['getFootnote'](_0x71b154);_0x5b9719&&(_0x5b9719['definition']=_0x392095),N(_0x1ec7b5,_0x386d99,_0x392095)&&(_0x45150b=!0x0);}return _0x45150b;}['_handleFootnoteReferencesChanges'](_0x4c528d,_0x358b15){let _0x2bafdd=!0x1;const {removed:_0xecf262,inserted:_0xf67670,moved:_0x244968}=this['_footnoteRefsTracker']['getChanges'](_0x358b15);for(const _0x2b739f of _0xecf262)this['_handleRemoveFootnoteReferenceById'](_0x4c528d,_0x2b739f)&&(_0x2bafdd=!0x0);for(const _0x48a48f of _0xf67670)this['_handleInsertedFootnoteReference'](_0x4c528d,_0x48a48f)&&(_0x2bafdd=!0x0);for(const _0x526f66 of _0x244968)this['_handleMovedFootnoteReference'](_0x4c528d,_0x526f66)&&(_0x2bafdd=!0x0);return _0x2bafdd;}['_handleFootnotesDefinitionsObjectSync'](_0x40b266){if(!this['_footnotesDefinitions'])return!0x1;let _0x454e13=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x55d0ee=[];for(const _0x52ae9b of this['_footnotesDefinitions']['getChildren']()){const _0x2efc9b=_0x52ae9b['getAttribute']('footnoteId');this['getFootnote'](_0x2efc9b)||(_0x55d0ee['unshift'](_0x52ae9b),_0x454e13=!0x0);}for(const _0x474cdf of _0x55d0ee)_0x40b266['remove'](_0x474cdf);}const _0x1a5efb=new Set(),_0x326358=[];for(const _0x41865d of this['_footnotesDefinitions']['getChildren']()){const _0x36bc9d=_0x41865d['getAttribute']('footnoteId');_0x1a5efb['has'](_0x36bc9d)?(_0x326358['unshift'](_0x41865d),_0x454e13=!0x0):_0x1a5efb['add'](_0x36bc9d);}for(const _0x21c0e2 of _0x326358)_0x40b266['remove'](_0x21c0e2);return this['_footnotesDefinitions']['childCount']||(_0x40b266['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x454e13=!0x0),_0x454e13;}['_handleInsertedFootnoteReference'](_0x341865,_0x6c66b4){if(this['_footnotes']['find'](_0x5b8e04=>_0x5b8e04['reference']===_0x6c66b4))return!0x1;let _0x4e2a77=!0x1;const _0x3758cd=_0x6c66b4['getAttribute']('footnoteId'),_0x17ca62=this['_footnotes']['findIndex'](_0xb40abe=>_0xb40abe['id']===_0x3758cd);-0x1!==_0x17ca62&&(_0x341865['remove'](this['_footnotes'][_0x17ca62]['reference']),this['_footnotes']['splice'](_0x17ca62,0x1),_0x4e2a77=!0x0);let _0x3648a0=this['_footnotesDefinitions']?function(_0x90ea22,_0x3beaf7){for(const _0xfe42e6 of _0x90ea22['getChildren']())if(_0xfe42e6['getAttribute']('footnoteId')===_0x3beaf7)return _0xfe42e6;return null;}(this['_footnotesDefinitions'],_0x3758cd):null;_0x3648a0||(_0x3648a0=_0x341865['createElement']('footnoteDefinition',{'footnoteId':_0x3758cd}),this['_footnotesDefinitions']&&(_0x341865['insert'](_0x3648a0,this['_footnotesDefinitions'],'end'),_0x4e2a77=!0x0));const _0x4a4f16={'id':_0x3758cd,'reference':_0x6c66b4,'definition':_0x3648a0},_0x3e42c5=R(this['editor']['model'],this['_footnotes'],_0x6c66b4);this['_footnotes']['splice'](_0x3e42c5,0x0,_0x4a4f16);let _0x3e6b26=_0x3e42c5;return-0x1!==_0x17ca62&&(_0x3e6b26=Math['min'](_0x3e42c5,_0x17ca62)),this['_updateFootnotesCounters'](_0x341865,_0x3e6b26)&&(_0x4e2a77=!0x0),_0x4e2a77;}['_handleRemoveFootnoteReferenceById'](_0x37125d,_0x2b3926){const _0x41f9f3=this['_footnotes']['findIndex'](_0xf6d23a=>_0xf6d23a['id']===_0x2b3926);if(-0x1===_0x41f9f3)return!0x1;let _0x3525b3=!0x1;const _0x5a91bf=this['_footnotes'][_0x41f9f3];return'$graveyard'!==_0x5a91bf['definition']['root']['rootName']&&(_0x37125d['remove'](_0x5a91bf['definition']),_0x3525b3=!0x0),this['_footnotes']['splice'](_0x41f9f3,0x1),this['_updateFootnotesCounters'](_0x37125d,_0x41f9f3)&&(_0x3525b3=!0x0),_0x3525b3;}['_handleMovedFootnoteReference'](_0x115ef,_0xf60af4){const _0x49827b=_0xf60af4['getAttribute']('footnoteId'),_0x33a253=this['_footnotes']['findIndex'](_0x23fe38=>_0x23fe38['id']===_0x49827b),_0x4d115f=this['_footnotes'][_0x33a253];let _0x1d77b2=!0x1;_0x4d115f['reference']=_0xf60af4,this['_footnotes']['splice'](_0x33a253,0x1);const _0x512d3a=R(this['editor']['model'],this['_footnotes'],_0xf60af4);return this['_footnotes']['splice'](_0x512d3a,0x0,_0x4d115f),this['_updateFootnotesCounters'](_0x115ef,Math['min'](_0x33a253,_0x512d3a))&&(_0x1d77b2=!0x0),_0x1d77b2;}['_updateFootnoteRefCounter'](_0x2dfbb5,_0x10ba5c){if(!this['_footnotesDefinitions'])return!0x1;const _0x1be28d=this['_footnotes'][_0x10ba5c];let _0x29220a;return _0x29220a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1be28d,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x10ba5c+0x1}):String(_0x10ba5c+0x1),_0x1be28d['reference']['getAttribute']('footnoteCounter')!=_0x29220a&&(_0x2dfbb5['setAttribute']('footnoteCounter',_0x29220a,_0x1be28d['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2b776f){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x12a333,_0xfc1eb9){if(_0x12a333['length']!==_0xfc1eb9['length'])return!0x1;for(let _0x2ab7b0=0x0;_0x2ab7b0<_0x12a333['length'];_0x2ab7b0++)if(_0x12a333[_0x2ab7b0]!==_0xfc1eb9[_0x2ab7b0])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x37ae46=>_0x37ae46['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x2a0911=>_0x2a0911['getAttribute']('footnoteId'))))return!0x1;let _0x4ff200=!0x1;for(let _0x221d9d=0x0;_0x221d9d<this['_footnotes']['length'];_0x221d9d++){const _0x21fa64=this['_footnotes'][_0x221d9d],_0xc2e0c8=_0x2b776f['createPositionBefore'](_0x21fa64['definition']),_0x5130b6=_0x2b776f['createPositionAt'](this['_footnotesDefinitions'],_0x221d9d);_0xc2e0c8['isEqual'](_0x5130b6)||(_0x2b776f['move'](_0x2b776f['createRangeOn'](_0x21fa64['definition']),_0x5130b6),_0x4ff200=!0x0);}return _0x4ff200;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3e98db){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3a3eed}=this['editor'];let _0x1d44e6=!0x1;for(let _0x4b97bd=0x0;_0x4b97bd<this['_footnotes']['length']-0x1;_0x4b97bd++){const _0x32abbb=this['_footnotes'][_0x4b97bd],_0x472bfa=this['_footnotes'][_0x4b97bd+0x1],_0x2e6fb1=_0x3a3eed['createPositionBefore'](_0x32abbb['reference']),_0x6d2ef3=_0x3a3eed['createPositionBefore'](_0x472bfa['reference']);'after'===_0x2e6fb1['compareWith'](_0x6d2ef3)&&(this['_handleMovedFootnoteReference'](_0x3e98db,_0x32abbb['reference']),_0x4b97bd=-0x1,_0x1d44e6=!0x0);}return _0x1d44e6;}}function N(_0x58d042,_0x4195d0,_0x4a7bbc){if(_0x4a7bbc['childCount'])return!0x1;const _0x4f9724=_0x4195d0?'paragraph':'footnoteInlineContent';return _0x58d042['insert'](_0x58d042['createElement'](_0x4f9724),_0x4a7bbc),!0x0;}function R(_0xebb132,_0x2fbabc,_0x12247e){if(0x0===_0x2fbabc['length'])return 0x0;const _0xf45890=_0xebb132['createPositionBefore'](_0x12247e);for(let _0x80e5b7=0x0;_0x80e5b7<_0x2fbabc['length'];_0x80e5b7++){const _0x534b47=_0x2fbabc[_0x80e5b7],_0x4365ec=_0xebb132['createPositionBefore'](_0x534b47['reference']);if('before'===_0xf45890['compareWith'](_0x4365ec))return _0x80e5b7;}const _0x34bd4d=_0x12247e['root'];let _0x59add7=-0x1;for(let _0x17ec42=_0x2fbabc['length']-0x1;_0x17ec42>=0x0;_0x17ec42--)if(_0x2fbabc[_0x17ec42]['reference']['root']===_0x34bd4d){_0x59add7=_0x17ec42;break;}if(-0x1!==_0x59add7)return _0x59add7+0x1;const _0x5bf2f9=_0xebb132['document']['getRootNames'](),_0x453f3f=_0x5bf2f9['indexOf'](_0x34bd4d['rootName']),_0x33e519=_0x5bf2f9[_0x453f3f+0x1];if(_0x33e519){for(let _0x104f62=0x0;_0x104f62<_0x2fbabc['length'];_0x104f62++)if(_0x2fbabc[_0x104f62]['reference']['root']['rootName']===_0x33e519)return _0x104f62;}return _0x2fbabc['length'];}class InsertFootnoteCommand extends _0x536a4a{['refresh'](){const _0x50c327=this['editor']['model']['document']['selection'],_0x55e4aa=this['_getPositionToInsertFootnote'](_0x50c327);this['isEnabled']=!!_0x55e4aa;}['execute'](_0xd2afd){const {editor:_0x54619e}=this,{model:_0x17beb5}=_0x54619e,{selection:_0x1f6539}=_0x17beb5['document'],_0x4b12fe=this['_getPositionToInsertFootnote'](_0x1f6539);if(!_0x4b12fe)return;const _0x5b2c5e=_0x54619e['plugins']['get']('FootnotesEditing'),_0x2799c1=_0xd2afd?.['footnoteId']??_0x5d6af1();!function(_0x2207e7){return'string'==typeof _0x2207e7&&_0x2207e7['length']>0x0&&!/\s/['test'](_0x2207e7)&&!/^\d/['test'](_0x2207e7);}(_0x2799c1)?_0x387899('insert-footnote-command-executed-with-invalid-id'):(_0x17beb5['change'](_0x64d6eb=>{const _0x27014c=_0x64d6eb['createElement']('footnoteRef',{'footnoteId':_0x2799c1});_0x17beb5['insertObject'](_0x27014c,_0x4b12fe,null);}),_0x5b2c5e['_moveSelectionToFootnoteDefinition'](_0x2799c1));}['_getPositionToInsertFootnote'](_0xd11d13){const {model:_0xa2b2b6}=this['editor'],{schema:_0x2742c8}=_0xa2b2b6,_0x46d4d6=_0xd11d13['getFirstRange']();for(const _0x37282e of _0x46d4d6['getItems']())if(_0x2742c8['isBlock'](_0x37282e)||_0x2742c8['isObject'](_0x37282e))return null;const _0xd18e68=_0x46d4d6['end'];return _0x2742c8['checkChild'](_0xd18e68,'footnoteRef')?_0xd18e68:null;}}class FootnotesEditing extends _0x382a16{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d68d3}=this;_0x3d68d3['config']['define']('footnotes.multiBlock',!0x0),_0x3d68d3['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x3d68d3)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x41fab0){const _0x350988=_0x170457([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]),_0x1c4d83=0x47a28506,_0x44eb42=0x47a50ebe^_0x1c4d83,_0x598969=window[_0x170457([0x44,0x61,0x74,0x65])][_0x170457([0x6e,0x6f,0x77])](),_0x4421e6=_0x41fab0[_0x170457([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29603e=new window[(_0x170457([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34c757=>{_0x4421e6[_0x170457([0x6f,0x6e,0x63,0x65])](_0x170457([0x72,0x65,0x61,0x64,0x79]),_0x34c757);}),_0x1dbb05={[_0x170457([0x6b,0x74,0x79])]:_0x170457([0x45,0x43]),[_0x170457([0x75,0x73,0x65])]:_0x170457([0x73,0x69,0x67]),[_0x170457([0x63,0x72,0x76])]:_0x170457([0x50,0x2d,0x32,0x35,0x36]),[_0x170457([0x78])]:_0x170457([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]),[_0x170457([0x79])]:_0x170457([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]),[_0x170457([0x61,0x6c,0x67])]:_0x170457([0x45,0x53,0x32,0x35,0x36])},_0xa01b9e=_0x4421e6[_0x170457([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x170457([0x67,0x65,0x74])](_0x170457([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2eef6f(){let _0x12735d,_0x34aa3c=null,_0x56c378=null;try{if(_0xa01b9e==_0x170457([0x47,0x50,0x4c]))return _0x170457([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12735d=_0x5bfc50(),!_0x12735d)return _0x170457([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12735d[_0x170457([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56c378=_0x425345(_0x12735d[_0x170457([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12735d[_0x170457([0x6a,0x74,0x69])])),await _0x3ac3c4()?_0x1c8534()?_0x148a75()?_0x170457([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11c50c()?(_0x12735d[_0x170457([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x170457([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34aa3c=_0x177b33(_0x170457([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f48c9()):_0x170457([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x170457([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x170457([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x170457([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x148a75(){const _0x16bbab=[_0x170457([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x170457([0x74,0x72,0x69,0x61,0x6c])][_0x170457([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12735d[_0x170457([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x598969/0x3e8:0xe10*_0x44eb42;return _0x12735d[_0x170457([0x65,0x78,0x70])]<_0x16bbab;}function _0x1c8534(){const _0x2375c2=_0x12735d[_0x170457([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2375c2&&(!!_0x2375c2[_0x170457([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x170457([0x2a]))||!!_0x2375c2[_0x170457([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x170457([0x46,0x4f,0x4f])));}function _0x11c50c(){const _0x335e86=_0x12735d[_0x170457([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x335e86||0x0==_0x335e86[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x133dd8}=new URL(window[_0x170457([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x335e86[_0x170457([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x133dd8))return!0x0;const _0x2470ca=_0x133dd8[_0x170457([0x73,0x70,0x6c,0x69,0x74])](_0x170457([0x2e]));return _0x335e86[_0x170457([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb4548=>_0xb4548[_0x170457([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x170457([0x2a])))[_0x170457([0x6d,0x61,0x70])](_0x1a7c92=>_0x1a7c92[_0x170457([0x73,0x70,0x6c,0x69,0x74])](_0x170457([0x2e])))[_0x170457([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x446ff9=>_0x446ff9[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2470ca[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x170457([0x6d,0x61,0x70])](_0x17ab61=>Array(_0x2470ca[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17ab61[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x170457([0x66,0x69,0x6c,0x6c])](_0x17ab61[0x0]===_0x170457([0x2a])?_0x170457([0x2a]):'')[_0x170457([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17ab61))[_0x170457([0x73,0x6f,0x6d,0x65])](_0x3c4826=>_0x2470ca[_0x170457([0x65,0x76,0x65,0x72,0x79])]((_0x32c9aa,_0x4209e0)=>_0x3c4826[_0x4209e0]===_0x32c9aa||_0x3c4826[_0x4209e0]===_0x170457([0x2a])));}function _0x2f48c9(){return _0x34aa3c&&_0x56c378?new window[(_0x170457([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30155e,_0x39a59f)=>{_0x34aa3c[_0x170457([0x74,0x68,0x65,0x6e])](_0x30155e,_0x39a59f),_0x56c378[_0x170457([0x74,0x68,0x65,0x6e])](_0xcc285a=>{_0xcc285a!=_0x170457([0x56,0x61,0x6c,0x69,0x64])&&_0x30155e(_0xcc285a);},_0x39a59f);}):_0x34aa3c||_0x56c378||_0x170457([0x56,0x61,0x6c,0x69,0x64]);}}function _0x425345(_0x4887d3,_0x4fd972){return new window[(_0x170457([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2676fa=>{if(_0x41bdea())return _0x2676fa(_0x170457([0x56,0x61,0x6c,0x69,0x64]));_0x3ba7de(),_0x4421e6[_0x170457([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x170457([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d0742=!0x1;const _0x3fef2f=_0x5d6af1();function _0x4d24de(_0x12254d){return!!_0x12254d&&(typeof _0x12254d===_0x170457([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12254d===_0x170457([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12254d[_0x170457([0x74,0x68,0x65,0x6e])]===_0x170457([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12254d[_0x170457([0x63,0x61,0x74,0x63,0x68])]===_0x170457([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5127f6(_0x20c0d9){_0x354e74(_0x20c0d9)[_0x170457([0x74,0x68,0x65,0x6e])](_0x3fbabe=>{if(!_0x3fbabe||_0x3fbabe[_0x170457([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x170457([0x6f,0x6b]))return _0x170457([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xfb77c1(_0x5bc827(_0x3fef2f+_0x4fd972))!=_0x3fbabe[_0x170457([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x170457([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x170457([0x56,0x61,0x6c,0x69,0x64]);})[_0x170457([0x74,0x68,0x65,0x6e])](_0x1bc72b=>(_0x1039bf(),_0x1bc72b),()=>{const _0xdf5175=_0x5ac1a2();return null==_0xdf5175?(_0x1039bf(),_0x170457([0x56,0x61,0x6c,0x69,0x64])):_0x170457(_0x598969-_0xdf5175>(0x63ae0106^_0x1c4d83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x170457([0x74,0x68,0x65,0x6e])](_0x2676fa)[_0x170457([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2676fa(_0x170457([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1405e4=0x47946b86^_0x1c4d83;function _0x1039bf(){const _0x3f8a4a=_0x170457([0x6c,0x6c,0x63,0x74,0x2d])+_0xfb77c1(_0x5bc827(_0x4887d3)),_0x1e4f93=_0x5cb0f8(_0xfb77c1(window[_0x170457([0x4d,0x61,0x74,0x68])][_0x170457([0x63,0x65,0x69,0x6c])](_0x598969/_0x1405e4)));window[_0x170457([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x170457([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f8a4a,_0x1e4f93);}function _0x5ac1a2(){const _0x5bfba7=_0x170457([0x6c,0x6c,0x63,0x74,0x2d])+_0xfb77c1(_0x5bc827(_0x4887d3)),_0x3a6f44=window[_0x170457([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x170457([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bfba7);return _0x3a6f44?window[_0x170457([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cb0f8(_0x3a6f44),0x10)*_0x1405e4:null;}function _0x354e74(_0x103fad){return new window[(_0x170457([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18fc39,_0x53a455)=>{_0x103fad[_0x170457([0x74,0x68,0x65,0x6e])](_0x18fc39,_0x53a455),window[_0x170457([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53a455,0x47a351c6^_0x1c4d83);});}}_0x4421e6[_0x170457([0x6f,0x6e])](_0x170457([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x408c99,_0x47c6e6)=>{if(_0x47c6e6[0x0]!=_0x4887d3)return _0x2676fa(_0x170457([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47c6e6[0x1]={..._0x47c6e6[0x1],[_0x170457([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fef2f};},{[_0x170457([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x170457([0x68,0x69,0x67,0x68])}),_0x4421e6[_0x170457([0x6f,0x6e])](_0x170457([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d8c4f=>{_0x4d24de(_0x5d8c4f[_0x170457([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d0742=!0x0,_0x5127f6(_0x5d8c4f[_0x170457([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x170457([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x170457([0x6c,0x6f,0x77])}),_0x29603e[_0x170457([0x74,0x68,0x65,0x6e])](()=>{_0x1d0742||_0x2676fa(_0x170457([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41bdea(){return _0x4421e6[_0x170457([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x170457([0x76,0x69,0x65,0x77])][_0x170457([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x170457([0x61,0x75,0x74,0x6f]);}function _0x3ba7de(){_0x4421e6[_0x170457([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x170457([0x76,0x69,0x65,0x77])][_0x170457([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x170457([0x61,0x75,0x74,0x6f]);}}function _0x177b33(_0x590a58){const _0x409167=[new window[(_0x170457([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f3384=>setTimeout(_0x3f3384,0x47abbbca^_0x1c4d83)),_0x29603e[_0x170457([0x74,0x68,0x65,0x6e])](()=>new window[(_0x170457([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14affd=>{let _0x4efc01=0x0;_0x4421e6[_0x170457([0x6d,0x6f,0x64,0x65,0x6c])][_0x170457([0x6f,0x6e])](_0x170457([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42ae47,_0x4f3c7a)=>{_0x4f3c7a[0x0][_0x170457([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4efc01++,_0x4efc01==(0x47a280ee^_0x1c4d83)&&(_0x14affd(),_0x42ae47[_0x170457([0x6f,0x66,0x66])]());});}))];return window[_0x170457([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x170457([0x72,0x61,0x63,0x65])](_0x409167)[_0x170457([0x74,0x68,0x65,0x6e])](()=>_0x590a58);}async function _0xf74a8c(){await _0x29603e,_0x4421e6[_0x170457([0x6d,0x6f,0x64,0x65,0x6c])][_0x170457([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49f8ac,_0x4421e6[_0x170457([0x6d,0x6f,0x64,0x65,0x6c])][_0x170457([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49f8ac,_0x4421e6[_0x170457([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x170457([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c8541(_0x104118){const _0x51ae3b=_0x5867ad();_0x4421e6[_0x51ae3b]=_0x170457([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x104118,_0x104118!=_0x170457([0x56,0x61,0x6c,0x69,0x64])&&_0xf74a8c();}function _0x5867ad(){const _0x251177=window[_0x170457([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x170457([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x170457([0x6e,0x6f,0x77])]())[_0x170457([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x170457([0x2e]),'');let _0x3c5d13=_0x170457([0x75]);for(let _0x5b0fca=0x0;_0x5b0fca<_0x251177[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b0fca+=0x2){let _0x4dce3f=window[_0x170457([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x251177[_0x170457([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b0fca,_0x5b0fca+0x2));_0x4dce3f>=_0x350988[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4dce3f-=_0x350988[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c5d13+=_0x350988[_0x4dce3f];}return _0x3c5d13;}function _0x5bfc50(){const _0x1e558d=_0xa01b9e[_0x170457([0x73,0x70,0x6c,0x69,0x74])](_0x170457([0x2e]));if(0x3!=_0x1e558d[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x152f7b(_0x1e558d[0x1]);function _0x152f7b(_0x28d319){const _0x1b244c=_0x538da8(_0x28d319);return _0x1b244c&&_0x53854b()?_0x1b244c:null;function _0x53854b(){const _0x53532d=_0x1b244c[_0x170457([0x6a,0x74,0x69])],_0x45dcef=window[_0x170457([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53532d[_0x170457([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53532d[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x312d9e={..._0x1b244c,[_0x170457([0x6a,0x74,0x69])]:_0x53532d[_0x170457([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53532d[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x312d9e[_0x170457([0x76,0x63])],_0x5bc827(_0x312d9e)==_0x45dcef;}}}async function _0x3ac3c4(){let _0x1c4c16=!0x0;try{const _0x397e0f=_0xa01b9e[_0x170457([0x73,0x70,0x6c,0x69,0x74])](_0x170457([0x2e])),[_0xe38db2,_0x927444,_0x105874]=_0x397e0f;return _0x24d06e(_0xe38db2),await _0x52862f(_0xe38db2,_0x927444,_0x105874),_0x1c4c16;}catch{return!0x1;}function _0x24d06e(_0x3c1f3c){const _0x5b9a59=_0x538da8(_0x3c1f3c);_0x5b9a59&&_0x5b9a59[_0x170457([0x61,0x6c,0x67])]==_0x170457([0x45,0x53,0x32,0x35,0x36])||(_0x1c4c16=!0x1);}async function _0x52862f(_0x18fc08,_0x1f6067,_0x366383){const _0x2da118=window[_0x170457([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x170457([0x66,0x72,0x6f,0x6d])](_0xce394b(_0x366383),_0x33928f=>_0x33928f[_0x170457([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x358d0b=new window[(_0x170457([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x170457([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18fc08+_0x170457([0x2e])+_0x1f6067),_0x3971b7=window[_0x170457([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x170457([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3971b7)return;const _0x495e48=await _0x3971b7[_0x170457([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x170457([0x6a,0x77,0x6b]),_0x1dbb05,{[_0x170457([0x6e,0x61,0x6d,0x65])]:_0x170457([0x45,0x43,0x44,0x53,0x41]),[_0x170457([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x170457([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x170457([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3971b7[_0x170457([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x170457([0x6e,0x61,0x6d,0x65])]:_0x170457([0x45,0x43,0x44,0x53,0x41]),[_0x170457([0x68,0x61,0x73,0x68])]:{[_0x170457([0x6e,0x61,0x6d,0x65])]:_0x170457([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x495e48,_0x2da118,_0x358d0b)||(_0x1c4c16=!0x1);}}function _0x538da8(_0xcd9436){return _0xcd9436[_0x170457([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x170457([0x65,0x79]))?JSON[_0x170457([0x70,0x61,0x72,0x73,0x65])](_0xce394b(_0xcd9436)):null;}function _0xce394b(_0x51ff45){return window[_0x170457([0x61,0x74,0x6f,0x62])](_0x51ff45[_0x170457([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x170457([0x2b]))[_0x170457([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x170457([0x2f])));}function _0x5bc827(_0x50eca3){let _0x127a6d=0x1505;function _0x2b2da1(_0x403444){for(let _0x1fa222=0x0;_0x1fa222<_0x403444[_0x170457([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fa222++){const _0x179617=_0x403444[_0x170457([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fa222);_0x127a6d=(_0x127a6d<<0x5)+_0x127a6d+_0x179617,_0x127a6d&=_0x127a6d;}}function _0x36b629(_0x365e27){Array[_0x170457([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x365e27)?_0x365e27[_0x170457([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36b629):_0x365e27&&typeof _0x365e27==_0x170457([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x170457([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x365e27)[_0x170457([0x73,0x6f,0x72,0x74])]()[_0x170457([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a3413,_0x1273a8])=>{_0x2b2da1(_0x1a3413),_0x36b629(_0x1273a8);}):_0x2b2da1(window[_0x170457([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x365e27));}return _0x36b629(_0x50eca3),_0x127a6d>>>0x0;}function _0xfb77c1(_0x498d06){return _0x498d06[_0x170457([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x170457([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x170457([0x30]));}function _0x5cb0f8(_0x3849ab){return _0x3849ab[_0x170457([0x73,0x70,0x6c,0x69,0x74])]('')[_0x170457([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x170457([0x6a,0x6f,0x69,0x6e])]('');}function _0x49f8ac(){}function _0x170457(_0xbd2cff){return _0xbd2cff['map'](_0x59440a=>String['fromCharCode'](_0x59440a))['join']('');}_0x1c8541(await _0x2eef6f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x54d7dd){const {plugins:_0x20c0b6,editing:_0x30e366,model:_0x266405}=this['editor'],_0x553cf4=_0x20c0b6['get'](FootnotesTracker)['getFootnote'](_0x54d7dd);return!!_0x553cf4&&(_0x266405['change'](_0x31935c=>{_0x31935c['setSelection'](_0x31935c['createPositionAt'](_0x553cf4['definition'],'end'));}),_0x30e366['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4e3e11){const {plugins:_0x1051dd,editing:_0x4a53c0,model:_0x214a28}=this['editor'],_0x2800ff=_0x1051dd['get'](FootnotesTracker)['getFootnote'](_0x4e3e11);return!!_0x2800ff&&(_0x214a28['change'](_0x17337c=>{_0x17337c['setSelection'](_0x2800ff['reference'],'on');}),_0x4a53c0['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x30b684}=this['editor']['model'],_0x4ee69d=this['editor']['config']['get']('footnotes.multiBlock');_0x30b684['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x30b684['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x30b684['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4ee69d?_0x30b684['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x30b684['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x30b684['addChildCheck'](_0x4a2677=>{for(const _0x529ca5 of _0x4a2677)if('footnoteDefinition'===_0x529ca5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x26a3e8}=this,{conversion:_0x3c0de0,editing:_0x10abad}=_0x26a3e8,{t:t}=_0x26a3e8['locale'];_0x3c0de0['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4c26d9,{writer:_0x2602ca,consumable:_0x9ae0b1})=>{const _0x30cdee=_0x4c26d9['getChild'](0x0);if(!_0x30cdee||!_0x30cdee['is']('element','a'))return null;const _0x3fd2c0=_0x30cdee['getAttribute']('href')||'';if(!_0x3fd2c0['startsWith']('#'))return null;const _0x4d8c85=_0x3fd2c0['replace'](/^#/,'');if(!_0x4d8c85)return null;_0x9ae0b1['consume'](_0x30cdee,{'name':!0x0,'attributes':['href']});for(const {item:_0x4110e1}of _0x10abad['view']['createRangeIn'](_0x30cdee))_0x4110e1['is']('$textProxy')?_0x9ae0b1['consume'](_0x4110e1['textNode'],{'name':!0x0}):_0x4110e1['is']('element')&&_0x9ae0b1['consume'](_0x4110e1,{'name':!0x0});return _0x2602ca['createElement']('footnoteRef',{'footnoteId':_0x4d8c85});}}),_0x3c0de0['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x181d3c,{writer:_0x3448da})=>U(_0x181d3c,_0x3448da)}),_0x3c0de0['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x26354f,{writer:_0x12b513})=>{const _0x547348=_0x26354f['getAttribute']('footnoteCounter');return _0x4569d4(U(_0x26354f,_0x12b513),_0x12b513,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x547348)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1c78e1}=this,{t:t}=_0x1c78e1['locale'],{conversion:_0x25c3e1}=_0x1c78e1;_0x25c3e1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x25c3e1['for']('upcast')['add'](_0x2f97e1=>{_0x2f97e1['on']('element:ol',(_0x47422b,_0x3287a0,_0x54ebb4)=>{const _0x15886f=_0x3287a0['viewItem'];if(!_0x15886f['hasClass']('footnotes-list')||!_0x3287a0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x54ebb4['consumable']['consume'](_0x15886f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x257ed1,modelCursor:_0x2321f7}=_0x54ebb4['convertChildren'](_0x3287a0['viewItem'],_0x3287a0['modelCursor']);_0x3287a0['modelRange']=_0x257ed1,_0x3287a0['modelCursor']=_0x2321f7;}),_0x2f97e1['on']('element:hr',(_0x122bc9,_0x193bcf,_0x5010b2)=>{const _0x12c7e5=_0x193bcf['viewItem'];_0x12c7e5['hasClass']('footnotes-divider')&&_0x193bcf['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5010b2['consumable']['consume'](_0x12c7e5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x25c3e1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1db27c,{writer:_0x55a517})=>$(_0x55a517)}),_0x25c3e1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x357d99,{writer:_0x4fa377})=>{const _0x237140=$(_0x4fa377,{'data-footnotes-list-label':t('Footnotes')}),_0x50c38f=_0x4569d4(_0x237140,_0x4fa377,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4fa377['setCustomProperty']('footnotesDefinitions',!0x0,_0x50c38f),_0x50c38f;}});}['_defineDefinitionConverters'](){const {editor:_0x5d9a95}=this,{conversion:_0x15ee22,locale:_0x16f401}=_0x5d9a95,_0x199f38=_0x5d9a95['config']['get']('footnotes.multiBlock');_0x15ee22['for']('upcast')['add'](_0x4b7c53=>{_0x4b7c53['on']('element:li',(_0x467e3e,_0xeab78d,_0x351108)=>{const _0x440229=_0xeab78d['viewItem'];if(!_0x440229['hasClass']('footnote-definition')||!_0x440229['getAttribute']('id'))return;const _0x255335=_0x440229['parent'];if(!_0x255335['is']('element','ol')||!_0x255335['hasClass']('footnotes-list'))return;if(!_0x351108['consumable']['test'](_0x440229,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x164df9=_0x351108['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x440229['getAttribute']('id')});if(!_0x351108['safeInsert'](_0x164df9,_0xeab78d['modelCursor']))return;_0x351108['consumable']['consume'](_0x440229,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x260212=Array['from'](_0x440229['getChildren']())['find'](_0x39701c=>_0x39701c['is']('element')&&_0x39701c['hasClass']('footnote-content'));for(const _0x44e8c6 of _0x440229['getChildren']())_0x44e8c6['is']('element')&&(_0x351108['consumable']['consume'](_0x44e8c6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x351108['consumable']['consume'](_0x44e8c6,{'name':!0x0,'classes':'footnote-content'}));if(_0x260212){if(_0x199f38)_0x351108['convertChildren'](_0x260212,_0x164df9);else{const _0x3ea864=_0x351108['writer']['createElement']('footnoteInlineContent');_0x351108['writer']['insert'](_0x3ea864,_0x164df9),_0x351108['convertChildren'](_0x260212,_0x3ea864);}}_0x351108['updateConversionResult'](_0x164df9,_0xeab78d);});}),_0x15ee22['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2cb7e1,{writer:_0x1825d2})=>B(_0x2cb7e1,_0x1825d2,_0x16f401,{'dataPipeline':!0x0})}),_0x15ee22['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5d4402,{writer:_0x1df316})=>B(_0x5d4402,_0x1df316,_0x16f401)});}['_defineBogusParagraphConverters'](){const {editor:_0x121295}=this,{conversion:_0x3bb649}=_0x121295;_0x121295['config']['get']('footnotes.multiBlock')?(_0x3bb649['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':K(),'converterPriority':'high'}),_0x3bb649['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':K({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x121295['model']['document'],'change:data',()=>{!function(_0x5eec1a,_0x385430){const _0x1e11eb=_0x5eec1a['document']['differ'],_0x36e0f9=new Set();for(const _0x79e61b of _0x1e11eb['getChanges']()){const _0x2bf90b='attribute'==_0x79e61b['type']?_0x79e61b['range']['start']['parent']:_0x79e61b['position']['parent'];_0x2bf90b['is']('element','footnoteDefinition')&&_0x36e0f9['add'](_0x2bf90b);}for(const _0xbc7126 of _0x36e0f9['values']()){const _0xb510de=Array['from'](_0xbc7126['getChildren']())['filter'](_0xeee7f4=>V(_0xeee7f4,_0x385430['mapper']));for(const _0x47cdb9 of _0xb510de)_0x385430['reconvertItem'](_0x47cdb9);}}(_0x121295['model'],_0x121295['editing']);})):(_0x3bb649['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':K()}),_0x3bb649['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x438544,{writer:_0x1c01c8})=>{const _0x181edb=_0x1c01c8['createContainerElement']('span');return _0x1c01c8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x181edb),_0x181edb;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1eef73}=this,{editing:_0x353dc5,t:t}=_0x1eef73,_0x1a6545=_0x1eef73['model']['document']['selection'];_0x1eef73['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1eef73['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x353dc5['view']['document'],'enter',(_0x282660,_0x59bf10)=>{const _0x19544e=function(_0x5b32cd){const _0x42c320=_0x5b32cd['getSelectedElement']();if(_0x42c320?.['is']('element','footnoteRef'))return _0x42c320;return null;}(_0x1a6545);if(_0x19544e){const _0x588119=_0x19544e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x588119),_0x59bf10['preventDefault'](),_0x282660['stop']();}},{'context':_0x5d130a});}['_defineClickHandlers'](){const {editor:_0x5f555b}=this,{editing:_0x6d2337}=_0x5f555b;_0x5f555b['editing']['view']['addObserver'](_0xd760b2),_0x5f555b['editing']['view']['addObserver'](_0x455a9e);let _0x2438e1=!0x1;this['listenTo'](_0x6d2337['view']['document'],'pointerdown',(_0x4d78ca,_0x5250ee)=>{const {target:_0x277423}=_0x5250ee,_0x9be723=_0x6d2337['view']['document']['selection'];_0x2438e1=!!(_0x277423?.['is']('element','a')&&_0x277423['parent']?.['is']('element','sup')&&_0x277423['parent']['hasClass']('footnote'))&&_0x9be723['getSelectedElement']()===_0x277423['parent'];},{'priority':'high'}),this['listenTo'](_0x6d2337['view']['document'],'click',(_0x2e0f50,_0x4c8fe1)=>{const {target:_0x4a66ee}=_0x4c8fe1;if(!_0x4a66ee?.['is']('element','a'))return;if(_0x4a66ee['parent']?.['is']('element','sup')&&_0x4a66ee['parent']['hasClass']('footnote')&&!_0x2438e1)return void _0x4c8fe1['preventDefault']();let _0x2f8b7b=_0x4a66ee['getAttribute']('href');if(!_0x2f8b7b?.['startsWith']('#'))return;_0x2f8b7b=_0x2f8b7b['slice'](0x1);let _0x55ff97=!0x1;(_0x2f8b7b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2f8b7b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2f8b7b))&&(_0x55ff97=!0x0),_0x55ff97&&(_0x4c8fe1['preventDefault'](),_0x2e0f50['stop']());},{'priority':'high','context':'$capture'});}}function K({dataPipeline:_0x1bcadc}={}){return(_0x3a3133,{writer:_0x1e15b5})=>{if(!j(_0x3a3133))return null;if(!_0x1bcadc)return _0x1e15b5['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3dc30d=_0x1e15b5['createContainerElement']('p');return _0x1e15b5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3dc30d),_0x3dc30d;};}function j(_0x1f2222){const {parent:_0x5d08f2}=_0x1f2222;if(!_0x5d08f2?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5d08f2['childCount'])return!0x1;for(const _0x349328 of _0x1f2222['getAttributeKeys']())if(!_0x349328['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x349328)return!0x1;return!0x0;}function V(_0x5983c,_0x1915fc){if(!_0x5983c['is']('element','paragraph'))return!0x1;const _0x4c4a3e=_0x1915fc['toViewElement'](_0x5983c);return!!_0x4c4a3e&&j(_0x5983c)!==_0x4c4a3e['is']('element','span');}function M(_0x29a064){return _0x5d130a(_0x29a064)&&_0x29a064['is']('containerElement')&&!!_0x29a064['getCustomProperty']('footnotesDefinitions');}function $(_0x5bfe30,_0x5193a4={}){const _0x1928cb=_0x5bfe30['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x42616e=_0x5bfe30['createContainerElement']('ol',{'class':'footnotes-list'},_0x5bfe30['createSlot']());return _0x5bfe30['createContainerElement']('div',{'class':'footnotes',..._0x5193a4},[_0x1928cb,_0x42616e]);}function U(_0xdb5760,_0x36d9df){const _0x33150d=_0xdb5760['getAttribute']('footnoteId'),_0x1bc5dc=_0xdb5760['getAttribute']('footnoteCounter'),_0x502061=_0x36d9df['createUIElement']('a',{'href':'#'+_0x33150d},function(_0x382227){const _0x1a2ff1=this['toDomElement'](_0x382227);return _0x1a2ff1['textContent']=_0x1bc5dc,_0x1a2ff1;}),_0x10e8b2=_0x36d9df['createContainerElement']('sup',{'id':'ref-'+_0x33150d,'class':'footnote'},[_0x502061]);return _0x10e8b2['getFillerOffset']=()=>null,_0x10e8b2;}function B(_0x270095,_0x16adbf,_0x2660a6,{dataPipeline:_0x31b917}={}){const {t:t}=_0x2660a6,_0x1063fe=_0x270095['getAttribute']('footnoteId'),_0x2b6608=_0x16adbf['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1063fe},function(_0x3a6b73){const _0x3f9cf5=this['toDomElement'](_0x3a6b73);return _0x3f9cf5['innerText']='^',_0x3f9cf5;}),_0x5a0b52=_0x31b917?_0x16adbf['createContainerElement']('div',{'class':'footnote-content'}):_0x41a84c(_0x16adbf['createEditableElement']('div',{'class':'footnote-content'}),_0x16adbf,{'label':t('Footnote\x20content.')});return _0x16adbf['insert'](_0x16adbf['createPositionAt'](_0x5a0b52,0x0),_0x16adbf['createSlot']()),_0x16adbf['createContainerElement']('li',{'class':'footnote-definition','id':_0x1063fe},[_0x2b6608,_0x5a0b52]);}class FootnotesClipboard extends _0x382a16{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[FootnotesEditing,_0x5bdd65];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2cef2d}=this,{plugins:_0x41ea7d,model:_0x1e57bd}=_0x2cef2d,_0x5b8286=_0x41ea7d['get'](_0x5bdd65),_0x4a0236=_0x41ea7d['get'](FootnotesTracker);this['listenTo'](_0x5b8286,'outputTransformation',(_0x241c50,_0xaa66d4)=>{const _0x4811eb=H(_0x1e57bd['createRangeIn'](_0xaa66d4['content']));if(!_0x4811eb['length'])return;const _0x5b27ea=_0x4a0236['getFootnotes'](),_0x58004d=_0x4811eb['reduce']((_0x42ea7d,_0x192fe3)=>{const _0x4f779d=_0x5b27ea['find'](_0x5a5206=>_0x5a5206['id']===_0x192fe3);if(_0x4f779d){const _0x35743b=_0x2cef2d['data']['toView'](_0x4f779d['definition'],{'isClipboardPipeline':!0x0}),_0x538974=_0x2cef2d['data']['htmlProcessor']['toData'](_0x35743b);_0x42ea7d[_0x4f779d['id']]=_0x538974;}return _0x42ea7d;},Object['create'](null));_0xaa66d4['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x58004d));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4c6c6c}=this,{model:_0x27b951,plugins:_0x46e051}=_0x4c6c6c,{view:_0x269ccd}=_0x4c6c6c['editing'],_0x4728ec=_0x46e051['get'](_0x5bdd65),_0x265aeb=_0x46e051['get'](FootnotesTracker),_0x102713=_0x4c6c6c['config']['get']('footnotes.multiBlock');let _0x4ab06f=null;this['listenTo'](_0x269ccd['document'],'clipboardInput',(_0x58d3f4,_0x4561ee)=>{const _0xe4af72=_0x4561ee['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4ab06f=_0xe4af72?JSON['parse'](_0xe4af72):null;}),this['listenTo'](_0x4728ec,'contentInsertion',(_0x25adf0,_0x29ba1f)=>{const _0x119d4d=_0x29ba1f['sourceEditorId']===this['editor']['id'];_0x119d4d&&'drop'===_0x29ba1f['method']||_0x27b951['change'](_0x10bb1d=>{let _0x363aad=_0x265aeb['getFootnotesDefinitionsObjectElement']();const _0x3b2453=!!_0x363aad&&Array['from'](_0x27b951['document']['selection']['getSelectedBlocks']())['includes'](_0x363aad);if(!_0x4ab06f&&function(_0x4354b6){for(const {item:_0x143777}of _0x4354b6)if(_0x143777['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x27b951['createRangeIn'](_0x29ba1f['content']))&&(_0x4ab06f=function(_0x57ce96,_0xe5d93d){const _0x3e32a8=q(_0x57ce96,_0xe5d93d);if(!_0x3e32a8)return null;const _0x1a72b4=Object['create'](null);for(const _0x4b7828 of _0x3e32a8['getChildren']())_0x4b7828['is']('element','footnoteDefinition')&&_0x4b7828['hasAttribute']('footnoteId')&&(_0x1a72b4[_0x4b7828['getAttribute']('footnoteId')]=_0x57ce96['cloneElement'](_0x4b7828,!0x0));return Object['keys'](_0x1a72b4)['length']?_0x1a72b4:null;}(_0x10bb1d,_0x29ba1f['content'])),(_0x363aad&&!_0x3b2453||!_0x363aad&&!_0x4ab06f)&&function(_0x45a70d,_0x1a70bf){const _0x40f3e2=[];for(const {item:_0x4cb4b0}of _0x45a70d['createRangeIn'](_0x1a70bf))_0x4cb4b0['is']('element','footnotesDefinitions')&&_0x40f3e2['push'](_0x4cb4b0);for(const _0x239d4a of _0x40f3e2)_0x45a70d['remove'](_0x239d4a);}(_0x10bb1d,_0x29ba1f['content']),!_0x4ab06f)return;const {selection:_0x58dc10}=_0x27b951['document'],_0x30a731=_0x58dc10['getFirstRange']()['root'];_0x363aad&&!_0x3b2453||(_0x363aad=q(_0x10bb1d,_0x29ba1f['content']),_0x363aad||=_0x265aeb['_insertEmptyFootnotesDefinitionsContainer'](_0x10bb1d,_0x30a731));const _0x3926c1=Array['from'](_0x58dc10['getRanges']())['flatMap'](H),_0x18ef1f=function(_0x4c2c1e,_0x28fbfe,_0x37fdc2){const _0x3567a0=Object['create'](null);for(const {item:_0x264d62}of _0x4c2c1e['createRangeIn'](_0x28fbfe))if(_0x264d62['is']('element','footnoteRef')){const _0x5471fb=_0x264d62['getAttribute']('footnoteId');if(!_0x37fdc2(_0x5471fb))continue;_0x3567a0[_0x5471fb]||(_0x3567a0[_0x5471fb]=_0x5d6af1()),_0x4c2c1e['setAttribute']('footnoteId',_0x3567a0[_0x5471fb],_0x264d62);}return _0x3567a0;}(_0x10bb1d,_0x29ba1f['content'],_0x6d50cf=>{if(!_0x119d4d)return!0x0;return!!_0x265aeb['getFootnote'](_0x6d50cf)&&!_0x3926c1['includes'](_0x6d50cf);});for(const [_0x1a6c18,_0x260649]of Object['entries'](_0x4ab06f)){const _0x6bf66d=_0x18ef1f[_0x1a6c18]||_0x1a6c18;let _0x4373f3;if('string'!=typeof _0x260649)_0x4373f3=_0x260649,_0x6bf66d!==_0x1a6c18&&_0x10bb1d['setAttribute']('footnoteId',_0x6bf66d,_0x4373f3);else{_0x4373f3=_0x10bb1d['createElement']('footnoteDefinition',{'footnoteId':_0x6bf66d});const _0x578768=_0x4c6c6c['data']['htmlProcessor']['toView'](_0x260649);let _0x30491e;if(_0x102713)_0x30491e=_0x4c6c6c['data']['toModel'](_0x578768,_0x4373f3);else{_0x30491e=_0x10bb1d['createElement']('footnoteInlineContent');const _0x4d35c9=_0x4c6c6c['data']['toModel'](_0x578768,_0x30491e);_0x10bb1d['insert'](_0x4d35c9,_0x30491e);}_0x10bb1d['append'](_0x30491e,_0x4373f3);}_0x10bb1d['insert'](_0x4373f3,_0x363aad,'end');}_0x4ab06f=null;});});}}function q(_0xccd57f,_0x3e575e){for(const {item:_0x26267c}of _0xccd57f['createRangeIn'](_0x3e575e))if(_0x26267c['is']('element','footnotesDefinitions'))return _0x26267c;return null;}function H(_0x120334){const _0x49694a=new Set();for(const {item:_0x2358d5}of _0x120334)_0x2358d5['is']('element','footnoteRef')&&_0x49694a['add'](_0x2358d5['getAttribute']('footnoteId'));return Array['from'](_0x49694a);}class FootnotesUI extends _0x382a16{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd5d0a1}=this,{componentFactory:_0x127db6}=_0xd5d0a1['ui'];_0x127db6['add']('insertFootnote',z(_0xd5d0a1,_0x4ae8df)),_0x127db6['add']('menuBar:insertFootnote',z(_0xd5d0a1,_0x328d6d)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x571a5b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x554c1a;for(const _0x3ddd19 in _0x571a5b){const _0x4b908f=_0x3ddd19,_0x58a375=_0x571a5b[_0x4b908f];if('footnotesLicenseKeyValid'==_0x58a375||'footnotesLicenseKeyInvalid'==_0x58a375||'footnotesLicenseKeyExpired'==_0x58a375||'footnotesLicenseKeyDomainLimit'==_0x58a375||'footnotesLicenseKeyNotAllowed'==_0x58a375||'footnotesLicenseKeyEvaluationLimit'==_0x58a375||'footnotesLicenseKeyUsageLimit'==_0x58a375){delete _0x571a5b[_0x4b908f],_0x554c1a=_0x58a375,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x554c1a&&_0x571a5b['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x554c1a&&_0x571a5b['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x554c1a&&_0x571a5b['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x554c1a&&_0x571a5b['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x554c1a&&_0x571a5b['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x554c1a&&_0x571a5b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function z(_0x746264,_0x50cc00){const _0x169d6b=_0x746264['commands']['get']('insertFootnote');return _0x10f1e8=>{const {t:t}=_0x10f1e8,_0x17876d=new _0x50cc00(_0x10f1e8),_0x6c6a97=_0x17876d instanceof _0x328d6d;return _0x17876d['bind']('isEnabled')['to'](_0x169d6b,'isEnabled'),_0x17876d['set']({'label':t(_0x6c6a97?'Footnote':'Insert\x20footnote'),'icon':_0x4c4649,'tooltip':!0x0}),_0x17876d['on']('execute',()=>{_0x169d6b['execute'](),_0x746264['editing']['view']['focus']();}),_0x17876d;};}class Footnotes extends _0x382a16{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[FootnotesEditing,FootnotesClipboard,FootnotesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const X=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],J=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),G=[...X,'arabic-indic','lower-alpha','upper-alpha'];class FootnotesStyleCommand extends _0x536a4a{['refresh'](){const {editor:_0x2e9f98}=this,_0x18b564=_0x2e9f98['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x18b564,this['value']=_0x18b564?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5aba67}){const {editor:_0x23eedb}=this,_0x47bb7a=_0x23eedb['plugins']['get'](FootnotesTracker),_0x94013e=_0x47bb7a['getFootnotesDefinitionsObjectElement']();_0x94013e&&G['includes'](_0x5aba67)&&_0x23eedb['model']['change'](_0x4b6a90=>{_0x4b6a90['setAttribute']('footnotesListStyle',_0x5aba67,_0x94013e),_0x47bb7a['_updateFootnotesCounters'](_0x4b6a90);});}}class FootnotesStartCommand extends _0x536a4a{['refresh'](){const {editor:_0x50f574}=this,_0x294dbe=_0x50f574['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x294dbe,this['value']=_0x294dbe?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x54d9d7}){const {editor:_0x1c552f}=this,_0x32f31f=_0x1c552f['plugins']['get'](FootnotesTracker),_0x28ee9c=_0x32f31f['getFootnotesDefinitionsObjectElement']();_0x28ee9c&&Number['isInteger'](_0x54d9d7)&&_0x1c552f['model']['change'](_0x5db0d0=>{_0x5db0d0['setAttribute']('footnotesListStart',_0x54d9d7,_0x28ee9c),_0x32f31f['_updateFootnotesCounters'](_0x5db0d0);});}}function Q(_0xe47de1,_0x3bde0e){let _0x324a55='',_0x5f1aee=_0xe47de1;for(;_0x5f1aee>0x0;){const _0x18fa70=(_0x5f1aee-0x1)%0x1a;_0x324a55=String['fromCharCode'](0x61+_0x18fa70)+_0x324a55,_0x5f1aee=Math['floor']((_0x5f1aee-0x1)/0x1a);}return _0x3bde0e?_0x324a55['toUpperCase']():_0x324a55;}const W=[{'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 Y(_0x512052,_0x1be4f6){let _0x631ab='',_0xd24856=_0x512052;for(const {value:_0x3cb6b1,numeral:_0x567ca3}of W)for(;_0xd24856>=_0x3cb6b1;)_0x631ab+=_0x567ca3,_0xd24856-=_0x3cb6b1;return _0x1be4f6?_0x631ab:_0x631ab['toLowerCase']();}const Z=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class FootnotesPropertiesEditing extends _0x382a16{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[FootnotesEditing,FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x246de}=this;_0x246de['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x246de['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x246de['config']['define']('footnotes.footnotesProperties.listStyles',[...X]),_0x246de['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x246de)),_0x246de['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x246de)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x485063}=this,{schema:_0x1fe0b5}=_0x485063['model'];_0x1fe0b5['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4d7183}=this,{conversion:_0x34d86d,model:_0x28ae82}=_0x4d7183,{schema:_0x22bb52}=_0x28ae82;_0x34d86d['for']('upcast')['add'](_0x1f3b95=>{_0x1f3b95['on']('element:ol',(_0x3f3d68,_0x2d92da,_0x30066e)=>{const _0x1fc7b9=_0x2d92da['viewItem'],_0x41823f=_0x2d92da['modelCursor']?.['parent'];_0x1fc7b9['hasClass']('footnotes-list')&&_0x41823f?.['is']('element','footnotesDefinitions')&&(function(_0x3b7ce0,_0x5142ec,_0x15b153,_0x1aa6ea){if(!_0x1aa6ea['checkAttribute'](_0x5142ec,'footnotesListStart'))return;let _0x19c2f5=0x1;const _0x15b86c=_0x15b153['consumable']['consume'](_0x3b7ce0,{'attributes':'start'});if(_0x15b86c){const _0x3c284c=Number['parseInt'](_0x3b7ce0['getAttribute']('start'),0xa);Number['isNaN'](_0x3c284c)||(_0x19c2f5=_0x3c284c);}!_0x15b86c&&_0x5142ec['hasAttribute']('footnotesListStart')||_0x15b153['writer']['setAttribute']('footnotesListStart',_0x19c2f5,_0x5142ec);}(_0x1fc7b9,_0x41823f,_0x30066e,_0x22bb52),function(_0x4a25d0,_0x57e83b,_0x288570,_0x317fae){if(!_0x317fae['checkAttribute'](_0x57e83b,'footnotesListStyle'))return;let _0x3db687='decimal',_0x53eda6=!0x1;if(_0x288570['consumable']['consume'](_0x4a25d0,{'attributes':'type'})){const _0x5b989f={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x4a25d0['getAttribute']('type')];_0x5b989f&&(_0x3db687=_0x5b989f),_0x53eda6=!0x0;}if(_0x288570['consumable']['consume'](_0x4a25d0,{'styles':'list-style-type'})){const _0xceb4ab=tt(_0x4a25d0['getStyle']('list-style-type'));_0xceb4ab&&(_0x3db687=_0xceb4ab),_0x53eda6=!0x0;}!_0x53eda6&&_0x57e83b['hasAttribute']('footnotesListStyle')||_0x288570['writer']['setAttribute']('footnotesListStyle',_0x3db687,_0x57e83b);}(_0x1fc7b9,_0x41823f,_0x30066e,_0x22bb52));});}),_0x34d86d['for']('downcast')['add'](_0x2946ad=>{_0x2946ad['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x3dc11d,_0x2daaef,_0x289622)=>{if(!_0x289622['consumable']['consume'](_0x2daaef['item'],_0x3dc11d['name']))return;const _0x5edf2e=et(_0x2daaef['item'],_0x289622['mapper']),{attributeNewValue:_0x108475}=_0x2daaef;null==_0x108475||0x1===_0x108475?_0x289622['writer']['removeAttribute']('start',_0x5edf2e):_0x289622['writer']['setAttribute']('start',String(_0x108475),_0x5edf2e);}),_0x2946ad['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1caa3f,_0x4404f4,_0x2fc79e)=>{if(!_0x2fc79e['consumable']['consume'](_0x4404f4['item'],_0x1caa3f['name']))return;const _0x56a750=et(_0x4404f4['item'],_0x2fc79e['mapper']),{attributeNewValue:_0x1ed791}=_0x4404f4;_0x1ed791&&'decimal'!==_0x1ed791?_0x2fc79e['writer']['setStyle']('list-style-type',_0x1ed791,_0x56a750):_0x2fc79e['writer']['removeStyle']('list-style-type',_0x56a750);});});}['_definePostfixer'](){const {editor:_0xeccb7e}=this,{model:_0x25c83d}=_0xeccb7e,_0x59d803=_0xeccb7e['plugins']['get'](FootnotesTracker),_0x52b20a=this['_getDefaultListStyle'](),_0x498191=this['_getDefaultStartIndex']();_0x25c83d['document']['registerPostFixer'](_0x202e79=>{const _0x1e5a56=_0x25c83d['document']['differ']['getChanges']();let _0x5edc96=!0x1;for(const _0x4d8ede of _0x1e5a56){if('insert'!==_0x4d8ede['type']||'$text'===_0x4d8ede['name'])continue;const _0x455067=_0x25c83d['createRangeOn'](_0x4d8ede['position']['nodeAfter']);for(const _0x28d6c2 of _0x455067['getItems']())_0x28d6c2['is']('element','footnotesDefinitions')&&(!_0x28d6c2['hasAttribute']('footnotesListStart')&&_0x25c83d['schema']['checkAttribute'](_0x28d6c2,'footnotesListStart')&&(_0x202e79['setAttribute']('footnotesListStart',_0x498191,_0x28d6c2),_0x5edc96=!0x0),!_0x28d6c2['hasAttribute']('footnotesListStyle')&&_0x25c83d['schema']['checkAttribute'](_0x28d6c2,'footnotesListStyle')&&(_0x202e79['setAttribute']('footnotesListStyle',_0x52b20a,_0x28d6c2),_0x5edc96=!0x0));}return _0x5edc96&&_0x59d803['_updateFootnotesCounters'](_0x202e79),_0x5edc96;});}['_defineFormatter'](){const {editor:_0x543243}=this;_0x543243['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x8305cd=>this['_formatFootnoteListValue'](_0x8305cd));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x367baa,value:_0x4965b4,digits:_0x382688}){const _0x2986fc=_0x367baa['getAttribute']('footnotesListStyle'),_0x5b9557=_0x367baa['getAttribute']('footnotesListStart'),_0x2ce905=Math['floor'](_0x4965b4)+(_0x5b9557??0x1)-0x1;switch(_0x2986fc){case'decimal-leading-zero':return function(_0x55c3b3,_0x41801a){return String(_0x55c3b3)['padStart'](_0x41801a,'0');}(_0x2ce905,Math['max'](0x2,_0x382688));case'lower-alpha':case'lower-latin':return Q(_0x2ce905,!0x1);case'upper-alpha':case'upper-latin':return Q(_0x2ce905,!0x0);case'lower-roman':return Y(_0x2ce905,!0x1);case'upper-roman':return Y(_0x2ce905,!0x0);case'arabic-indic':return String(_0x2ce905)['replace'](/\d/g,_0x23e9a5=>Z[Number(_0x23e9a5)]);default:return String(_0x2ce905);}}}function tt(_0x512312){if('string'==typeof _0x512312){const _0x2233fa=J[_0x512312];if(_0x2233fa)return _0x2233fa;if(G['includes'](_0x512312))return _0x512312;}return null;}function et(_0x57b0cd,_0x937aa1){const _0x60d047=_0x937aa1['toViewElement'](_0x57b0cd);return Array['from'](_0x60d047['getChildren']())['find'](_0xd6cc20=>_0xd6cc20['is']('element','ol')&&_0xd6cc20['hasClass']('footnotes-list'));}class FootnotesDefinitionsPropertiesView extends _0x142da2{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x2f2c76();['keystrokes']=new _0x4b0e2b();['focusables']=new _0x1b78f0();['focusCycler'];constructor(_0x2a87af,{styleButtonViews:_0x479023,styleGridAriaLabel:_0x3310eb}){super(_0x2a87af),(this['focusCycler']=new _0x33aed9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x479023,_0x3310eb),[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 _0x5e94c6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5e94c6['element']);_0x237d36({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x36a0f0['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 _0x18163a=_0x287d20=>_0x287d20['stopPropagation']();this['keystrokes']['set']('arrowright',_0x18163a),this['keystrokes']['set']('arrowleft',_0x18163a),this['keystrokes']['set']('arrowup',_0x18163a),this['keystrokes']['set']('arrowdown',_0x18163a);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4579f4,_0x563a86){const _0x336347=new _0x142da2(this['locale']);return _0x336347['children']=_0x336347['createCollection'](),_0x336347['children']['addMany'](_0x4579f4),_0x336347['setTemplate']({'tag':'div','attributes':{'aria-label':_0x563a86,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x336347['children']}),_0x336347['children']['delegate']('execute')['to'](this),_0x336347['focus']=function(){for(const _0x2d5fa8 of this['children'])if(_0x2d5fa8 instanceof _0x4ae8df&&_0x2d5fa8['isOn'])return void _0x2d5fa8['focus']();this['children']['first']['focus']();},_0x336347['focusTracker']=new _0x2f2c76(),_0x336347['keystrokes']=new _0x4b0e2b(),_0x336347['render'](),_0x336347['keystrokes']['listenTo'](_0x336347['element']),this['children']['add'](_0x336347),_0x336347;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x58e875=this['_createStartIndexPropertyView'](),_0x2040e3=[_0x58e875],_0x37cfe4=new _0x56bc81(this['locale'],_0x2040e3);return _0x37cfe4['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x37cfe4['buttonView']['bind']('isEnabled')['toMany'](_0x2040e3,'isEnabled',(..._0xd84539)=>_0xd84539['some'](_0x3df8ba=>_0x3df8ba)),_0x37cfe4['buttonView']['on']('change:isEnabled',(_0x32977f,_0x125e2c,_0x473bf9)=>{_0x473bf9||(_0x37cfe4['isCollapsed']=!0x0);}),this['children']['add'](_0x37cfe4),[_0x58e875,_0x37cfe4];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3ea645=new _0x439c74(this['locale'],_0x53e547);return _0x3ea645['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3ea645['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3ea645['fieldView']['on']('input',()=>{const _0x3bfadb=_0x3ea645['fieldView']['element'],_0x29a65a=_0x3bfadb['valueAsNumber'];Number['isNaN'](_0x29a65a)?_0x3ea645['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3bfadb['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x29a65a}):_0x3ea645['errorText']=t(_0x29a65a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3ea645;}}class FootnotesPropertiesUI extends _0x382a16{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x28b911,_0x15ac30];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4eca42}=this,{componentFactory:_0x4fbae2}=_0x4eca42['ui'];_0x4eca42['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4fbae2['add']('footnotesStyle',function(_0x53a63a){return _0x1cda9e=>{const {t:t}=_0x1cda9e,_0x205d15=_0x53a63a['commands']['get']('footnotesStyle'),_0x3bef47=_0x15e874(_0x1cda9e),{buttonView:_0x5a5582}=_0x3bef47;return _0x3bef47['class']='ck-footnotes-styles-dropdown',_0x3bef47['bind']('isEnabled')['to'](_0x205d15,'isEnabled'),_0x5a5582['set']({'label':t('Footnotes\x20style'),'icon':_0x4c4649,'tooltip':!0x0}),_0x3bef47['once']('change:isOpen',()=>{const _0x539cbb=function({editor:_0x508f9d,dropdownView:_0xb80f5d}){const {t:t}=_0x508f9d['locale'],_0xccfd01=t('Footnotes\x20definitions\x20styles'),_0x410a2f=function(_0x432119){const {t:t}=_0x432119['locale'],_0x5ed893=_0x432119['config']['get']('footnotes.footnotesProperties.listStyles'),_0x35e765=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x10e043},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x48c989},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x192fe0},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x579223},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x5d8d2c},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x2637e9},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x2e741d}];return _0x5ed893['map'](_0x58adf6=>{const _0x2f901c=tt(_0x58adf6),_0x3714ca=_0x35e765['find'](_0x3af7cb=>_0x3af7cb['style']===_0x2f901c);return function(_0x4a3954,_0x1405a5){const {locale:_0x4051b3}=_0x4a3954,{label:_0x20a330,icon:_0x593d33,tooltip:_0x254949,style:_0x18cc8e}=_0x1405a5,_0x398317=_0x4a3954['commands']['get']('footnotesStyle'),_0x8c15ea=new _0x4ae8df(_0x4051b3);return _0x8c15ea['set']({'label':_0x20a330,'icon':_0x593d33,'tooltip':_0x254949}),_0x8c15ea['bind']('isOn')['to'](_0x398317,'value',_0x185689=>_0x185689===_0x18cc8e),_0x8c15ea['bind']('isEnabled')['to'](_0x398317,'isEnabled'),_0x8c15ea['on']('execute',()=>{_0x4a3954['execute']('footnotesStyle',{'value':_0x18cc8e}),_0x4a3954['editing']['view']['focus']();}),_0x8c15ea;}(_0x432119,_0x3714ca);});}(_0x508f9d),_0x2b0aa0=new FootnotesDefinitionsPropertiesView(_0x508f9d['locale'],{'styleGridAriaLabel':_0xccfd01,'styleButtonViews':_0x410a2f}),_0x2dbedd=_0x508f9d['commands']['get']('footnotesStart');return _0x2b0aa0['startIndexFieldView']['bind']('isEnabled')['to'](_0x2dbedd),_0x2b0aa0['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2dbedd),_0x2b0aa0['on']('footnotesListStart',(_0x3a0321,_0x1b9084)=>{_0x508f9d['execute']('footnotesStart',{'value':_0x1b9084['startIndex']});}),_0x2b0aa0['delegate']('execute')['to'](_0xb80f5d),_0x2b0aa0;}({'editor':_0x53a63a,'dropdownView':_0x3bef47});_0x3bef47['panelView']['children']['add'](_0x539cbb);}),_0x3bef47;};}(_0x4eca42));}['afterInit'](){const {editor:_0x34ea2c}=this,{t:t}=_0x34ea2c['locale'],_0x5844e2=_0x34ea2c['plugins']['get'](_0x15ac30),{defaultPositions:_0x4c23d6}=_0x3bc1a8;_0x5844e2['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x34ea2c['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xaf150b=>{let _0x531e4a=_0xaf150b['getFirstPosition']()?.['parent'];return _0x531e4a?.['is']('$text')&&(_0x531e4a=_0x531e4a['parent']),_0x531e4a?.['is']('element')?_0x531e4a['findAncestor'](M):null;},'positions':[_0x4c23d6['southArrowNorth'],_0x4c23d6['southArrowNorthMiddleWest'],_0x4c23d6['southArrowNorthMiddleEast'],_0x4c23d6['southArrowNorthWest'],_0x4c23d6['southArrowNorthEast'],_0x4c23d6['northArrowSouth'],_0x4c23d6['northArrowSouthMiddleWest'],_0x4c23d6['northArrowSouthMiddleEast'],_0x4c23d6['northArrowSouthWest'],_0x4c23d6['northArrowSouthEast'],_0x4c23d6['viewportStickyNorth']]});}}class FootnotesProperties extends _0x382a16{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[FootnotesPropertiesEditing,FootnotesPropertiesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Footnotes,FootnotesClipboard,FootnotesEditing,FootnotesProperties,FootnotesPropertiesEditing,FootnotesPropertiesUI,FootnotesStartCommand,FootnotesStyleCommand,FootnotesTracker,FootnotesUI,InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.5",
|
|
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.2.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.2.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-enter": "48.2.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-widget": "48.2.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.2.0-alpha.5",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
|
|
38
|
+
"@ckeditor/ckeditor5-enter": "48.2.0-alpha.5",
|
|
39
|
+
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.5",
|
|
42
|
+
"@ckeditor/ckeditor5-widget": "48.2.0-alpha.5"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist",
|