@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251024.0 → 0.0.0-nightly-20251025.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xcea80,Command as _0x214dfd}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x30b5e5,isWidget as _0x1e7fed,toWidgetEditable as _0x20cb5c,WidgetToolbarRepository as _0x363de1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x146a2d,logWarning as _0x4fc5ac,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x82adbf,ClickObserver as _0x1bdbc0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5acdbd}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x129cf5,ButtonView as _0x1d8b5f,View as _0x5b7187,ViewCollection as _0x4feebe,FocusCycler as _0xcde62c,addKeyboardHandlingForGrid as _0x3d2f80,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x2321b8,BalloonPanelView as _0x41aa3f,createDropdown as _0x17c049}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3be37e,IconListStyleDecimal as _0x565230,IconListStyleDecimalLeadingZero as _0x4fc1f9,IconListStyleLowerRoman as _0x517c41,IconListStyleUpperRoman as _0x1ceb52,IconListStyleLowerLatin as _0xd9e409,IconListStyleUpperLatin as _0x226891}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x1f2bf4,_0x32475f){this['_model']=_0x1f2bf4,this['_elementName']=_0x32475f['elementName'],this['_getElementKey']=_0x32475f['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xde0554){const _0x5942e8=new Set(),_0x5d4d18=new Map();for(const _0x1710e9 of _0xde0554){if('insert'===_0x1710e9['type']&&'$text'!==_0x1710e9['name']&&_0x1710e9['position']['nodeAfter']){const _0x2b1560=this['_model']['createRangeOn'](_0x1710e9['position']['nodeAfter']);for(const _0x4ed06a of _0x2b1560['getItems']()){if(!_0x4ed06a['is']('element',this['_elementName']))continue;const _0x2dec14=this['_getElementKey'](_0x4ed06a);_0x5d4d18['has'](_0x2dec14)||_0x5d4d18['set'](_0x2dec14,[]),_0x5d4d18['get'](_0x2dec14)['push'](_0x4ed06a);}}if('remove'===_0x1710e9['type']&&_0x1710e9['name']===this['_elementName']){const _0x5126db=this['_getElementKey']({'getAttribute':_0x1185ba=>_0x1710e9['attributes']['get'](_0x1185ba)});_0x5942e8['add'](_0x5126db);}}for(const [_0x4312c7,_0x43923e]of this['_trackedElements'])'$graveyard'===_0x43923e['root']['rootName']&&_0x5942e8['add'](_0x4312c7);for(const _0xf92591 of _0x5942e8)this['_trackedElements']['delete'](_0xf92591);for(const [_0x4d069a,_0x31acdb]of _0x5d4d18)this['_trackedElements']['set'](_0x4d069a,_0x31acdb[_0x31acdb['length']-0x1]);const _0x46b5ee=new Set();for(const [_0x455847,_0x5dd2f3]of _0x5d4d18)_0x5942e8['has'](_0x455847)&&(_0x46b5ee['add'](_0x5dd2f3[0x0]),_0x5dd2f3['length']>0x1?_0x5d4d18['set'](_0x455847,_0x5dd2f3['slice'](0x1)):_0x5d4d18['delete'](_0x455847),_0x5942e8['delete'](_0x455847));return{'removed':Array['from'](_0x5942e8),'inserted':Array['from'](_0x5d4d18['values']())['flat'](),'moved':Array['from'](_0x46b5ee)};}}class c extends _0xcea80{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57c637){super(_0x57c637),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x44c27f=>_0x44c27f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1347df=>_0x1347df['getAttribute']('footnoteId')});}['init'](){const {editor:_0x58edb5}=this,{model:_0x2ae28c,data:_0x5ea262}=_0x58edb5;_0x2ae28c['document']['registerPostFixer'](_0x46acf5=>{const _0x48ffc0=_0x2ae28c['document']['differ']['getChanges']();let _0x5b73de=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x46acf5,_0x48ffc0)&&(_0x5b73de=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x46acf5,_0x48ffc0)&&(_0x5b73de=!0x0),this['_handleFootnoteReferencesChanges'](_0x46acf5,_0x48ffc0)&&(_0x5b73de=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x46acf5)&&(_0x5b73de=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x46acf5)&&(_0x5b73de=!0x0),this['_sortFootnoteDefinitions'](_0x46acf5)&&(_0x5b73de=!0x0),_0x5b73de;}),this['listenTo'](_0x2ae28c['document'],'change:data',()=>{_0x2ae28c['enqueueChange']({'isUndoable':!0x1},_0x339296=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x339296);});},{'priority':'low'}),this['listenTo'](_0x5ea262,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0xe64394){return this['_footnotes']['find'](_0xb4a9ec=>_0xb4a9ec['id']===_0xe64394)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4e1c7a){this['_footnoteFormatter']=_0x4e1c7a;}['_updateFootnotesCounters'](_0x317a02,_0x2a0ecd=0x0){let _0x3dd298=!0x1;for(let _0x44fbd3=_0x2a0ecd;_0x44fbd3<this['_footnotes']['length'];_0x44fbd3++)this['_updateFootnoteRefCounter'](_0x317a02,_0x44fbd3)&&(_0x3dd298=!0x0);return _0x3dd298;}['_insertEmptyFootnotesDefinitionsContainer'](_0x8599d9,_0x239b19){const _0x568ee=_0x8599d9['createElement']('footnotesDefinitions',{});return _0x8599d9['append'](_0x568ee,_0x239b19),this['_footnotesDefinitions']=_0x568ee,_0x568ee;}['_ensureFootnotesDefinitionsContainerExists'](_0x274efd){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x1eafcd=this['_footnotes'][0x0]['reference']['root'],_0x5bb2f9=this['_insertEmptyFootnotesDefinitionsContainer'](_0x274efd,_0x1eafcd);for(const _0x30d498 of this['_footnotes'])_0x30d498['definition']['parent']||_0x274efd['insert'](_0x30d498['definition'],_0x5bb2f9,'end');this['_updateFootnotesCounters'](_0x274efd);}['_handleFootnotesDefinitionsObjectChanges'](_0x3183fc,_0x41239b){let _0x1576e9=!0x1;const {inserted:_0x5e728e,removed:_0x3acd1b,moved:_0x38d52e}=this['_footnoteDefsContainerTracker']['getChanges'](_0x41239b);if(_0x38d52e['length']&&(this['_footnotesDefinitions']=_0x38d52e[0x0]),_0x5e728e['length']){if(_0x5e728e['length']>0x1||this['_footnotesDefinitions']&&_0x5e728e['some'](_0x4c5f60=>_0x4c5f60!==this['_footnotesDefinitions'])){const _0x4b0f52=_0x3183fc['createElement']('footnotesDefinitions',{}),_0x3f94a8=[];this['_footnotesDefinitions']&&_0x3f94a8['push'](this['_footnotesDefinitions']),_0x3f94a8['push'](..._0x5e728e),_0x3183fc['insert'](_0x4b0f52,_0x3f94a8[0x0],'before');for(const _0x4f4205 of _0x3f94a8)_0x3183fc['move'](_0x3183fc['createRangeIn'](_0x4f4205),_0x3183fc['createPositionAt'](_0x4b0f52,'end')),_0x3183fc['remove'](_0x4f4205);this['_footnotesDefinitions']=_0x4b0f52,this['_updateFootnotesCounters'](_0x3183fc),_0x1576e9=!0x0;}else this['_footnotesDefinitions']=_0x5e728e[0x0];}if(_0x3acd1b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x255ce4 of this['_footnotes'])_0x3183fc['remove'](_0x255ce4['reference']),_0x1576e9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1576e9;}['_handleFootnoteDefinitionsChanges'](_0x467067,_0x1f4555){let _0x8ad215=!0x1;const _0x5d0715=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x30bfc3,moved:_0x164c53}=this['_footnoteDefsTracker']['getChanges'](_0x1f4555);for(const _0x5b6730 of[..._0x164c53,..._0x30bfc3]){const _0x2c74b7=_0x5b6730['getAttribute']('footnoteId'),_0x78241b=this['getFootnote'](_0x2c74b7);_0x78241b&&(_0x78241b['definition']=_0x5b6730),_(_0x467067,_0x5d0715,_0x5b6730)&&(_0x8ad215=!0x0);}return _0x8ad215;}['_handleFootnoteReferencesChanges'](_0x413fa2,_0x5dba23){let _0x2b8e92=!0x1;const {removed:_0x2cff96,inserted:_0x1c0587,moved:_0x1fe57e}=this['_footnoteRefsTracker']['getChanges'](_0x5dba23);for(const _0x5e60a7 of _0x2cff96)this['_handleRemoveFootnoteReferenceById'](_0x413fa2,_0x5e60a7)&&(_0x2b8e92=!0x0);for(const _0x524c60 of _0x1c0587)this['_handleInsertedFootnoteReference'](_0x413fa2,_0x524c60)&&(_0x2b8e92=!0x0);for(const _0x55581d of _0x1fe57e)this['_handleMovedFootnoteReference'](_0x413fa2,_0x55581d)&&(_0x2b8e92=!0x0);return _0x2b8e92;}['_handleFootnotesDefinitionsObjectSync'](_0x570f80){if(!this['_footnotesDefinitions'])return!0x1;let _0x73001c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4c3658=[];for(const _0x1d8fc7 of this['_footnotesDefinitions']['getChildren']()){const _0x2285d9=_0x1d8fc7['getAttribute']('footnoteId');this['getFootnote'](_0x2285d9)||(_0x4c3658['unshift'](_0x1d8fc7),_0x73001c=!0x0);}for(const _0x327e1e of _0x4c3658)_0x570f80['remove'](_0x327e1e);}const _0x48e1df=new Set(),_0x4f7d5f=[];for(const _0xf2a7b7 of this['_footnotesDefinitions']['getChildren']()){const _0x5a4ea5=_0xf2a7b7['getAttribute']('footnoteId');_0x48e1df['has'](_0x5a4ea5)?(_0x4f7d5f['unshift'](_0xf2a7b7),_0x73001c=!0x0):_0x48e1df['add'](_0x5a4ea5);}for(const _0x70107f of _0x4f7d5f)_0x570f80['remove'](_0x70107f);return this['_footnotesDefinitions']['childCount']||(_0x570f80['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x73001c=!0x0),_0x73001c;}['_handleInsertedFootnoteReference'](_0x210c8d,_0x5df395){if(this['_footnotes']['find'](_0x284e4d=>_0x284e4d['reference']===_0x5df395))return!0x1;let _0x406891=!0x1;const _0x15c3ff=_0x5df395['getAttribute']('footnoteId'),_0x5a1b54=this['getFootnote'](_0x15c3ff);_0x5a1b54&&(_0x210c8d['remove'](_0x5a1b54['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x147683=>_0x147683['id']!==_0x15c3ff),_0x406891=!0x0);let _0x2e4ed2=this['_footnotesDefinitions']?function(_0x1d9b70,_0x53c7d6){for(const _0x29cb75 of _0x1d9b70['getChildren']())if(_0x29cb75['getAttribute']('footnoteId')===_0x53c7d6)return _0x29cb75;return null;}(this['_footnotesDefinitions'],_0x15c3ff):null;_0x2e4ed2||(_0x2e4ed2=_0x210c8d['createElement']('footnoteDefinition',{'footnoteId':_0x15c3ff}),this['_footnotesDefinitions']&&(_0x210c8d['insert'](_0x2e4ed2,this['_footnotesDefinitions'],'end'),_0x406891=!0x0));const _0x4d0207={'id':_0x15c3ff,'reference':_0x5df395,'definition':_0x2e4ed2},_0x558b82=I(this['editor']['model'],this['_footnotes'],_0x5df395);return this['_footnotes']['splice'](_0x558b82,0x0,_0x4d0207),this['_updateFootnotesCounters'](_0x210c8d,_0x558b82)&&(_0x406891=!0x0),_0x406891;}['_handleRemoveFootnoteReferenceById'](_0xe28f18,_0x32e7bb){const _0x4eaf2a=this['_footnotes']['findIndex'](_0x3bf107=>_0x3bf107['id']===_0x32e7bb);if(-0x1===_0x4eaf2a)return!0x1;let _0x49f902=!0x1;const _0x51d76d=this['_footnotes'][_0x4eaf2a];return'$graveyard'!==_0x51d76d['definition']['root']['rootName']&&(_0xe28f18['remove'](_0x51d76d['definition']),_0x49f902=!0x0),this['_footnotes']['splice'](_0x4eaf2a,0x1),this['_updateFootnotesCounters'](_0xe28f18,_0x4eaf2a)&&(_0x49f902=!0x0),_0x49f902;}['_handleMovedFootnoteReference'](_0x51f17d,_0x44eba){const _0x485999=_0x44eba['getAttribute']('footnoteId'),_0x2b02b9=this['_footnotes']['findIndex'](_0x4a6b65=>_0x4a6b65['id']===_0x485999),_0x989b25=this['_footnotes'][_0x2b02b9];let _0x944af9=!0x1;_0x989b25['reference']=_0x44eba,this['_footnotes']['splice'](_0x2b02b9,0x1);const _0x2cd3d3=I(this['editor']['model'],this['_footnotes'],_0x44eba);return this['_footnotes']['splice'](_0x2cd3d3,0x0,_0x989b25),this['_updateFootnotesCounters'](_0x51f17d,Math['min'](_0x2b02b9,_0x2cd3d3))&&(_0x944af9=!0x0),_0x944af9;}['_updateFootnoteRefCounter'](_0x351d24,_0x2c93ba){if(!this['_footnotesDefinitions'])return!0x1;const _0x30b1fb=this['_footnotes'][_0x2c93ba];let _0x22788f;return _0x22788f=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x30b1fb,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2c93ba+0x1}):String(_0x2c93ba+0x1),_0x30b1fb['reference']['getAttribute']('footnoteCounter')!=_0x22788f&&(_0x351d24['setAttribute']('footnoteCounter',_0x22788f,_0x30b1fb['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x478cb8){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x25c8d,_0x3105ce){if(_0x25c8d['length']!==_0x3105ce['length'])return!0x1;for(let _0x472740=0x0;_0x472740<_0x25c8d['length'];_0x472740++)if(_0x25c8d[_0x472740]!==_0x3105ce[_0x472740])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x11fb51=>_0x11fb51['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x428bb4=>_0x428bb4['getAttribute']('footnoteId'))))return!0x1;let _0x27d54e=!0x1;for(let _0x4e512f=0x0;_0x4e512f<this['_footnotes']['length'];_0x4e512f++){const _0x2f622b=this['_footnotes'][_0x4e512f],_0x2e042f=_0x478cb8['createPositionBefore'](_0x2f622b['definition']),_0xeb4a08=_0x478cb8['createPositionAt'](this['_footnotesDefinitions'],_0x4e512f);_0x2e042f['isEqual'](_0xeb4a08)||(_0x478cb8['move'](_0x478cb8['createRangeOn'](_0x2f622b['definition']),_0xeb4a08),_0x27d54e=!0x0);}return _0x27d54e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x30fe98){if(!this['_footnotes']['length'])return!0x1;const {model:_0x43424f}=this['editor'];let _0x4e30b4=!0x1;for(let _0x24580e=0x0;_0x24580e<this['_footnotes']['length']-0x1;_0x24580e++){const _0x51b1f8=this['_footnotes'][_0x24580e],_0xfa6755=this['_footnotes'][_0x24580e+0x1],_0x4f821a=_0x43424f['createPositionBefore'](_0x51b1f8['reference']),_0x3f2363=_0x43424f['createPositionBefore'](_0xfa6755['reference']);'after'===_0x4f821a['compareWith'](_0x3f2363)&&(this['_handleMovedFootnoteReference'](_0x30fe98,_0x51b1f8['reference']),_0x24580e=-0x1,_0x4e30b4=!0x0);}return _0x4e30b4;}}function _(_0x5bbffe,_0x20d0b0,_0x4dba79){if(_0x4dba79['childCount'])return!0x1;const _0x4144b2=_0x20d0b0?'paragraph':'footnoteInlineContent';return _0x5bbffe['insert'](_0x5bbffe['createElement'](_0x4144b2),_0x4dba79),!0x0;}function I(_0x44aee2,_0x12ec7a,_0x79e3f9){if(0x0===_0x12ec7a['length'])return 0x0;const _0x18f63=_0x44aee2['createPositionBefore'](_0x79e3f9);for(let _0x419a89=0x0;_0x419a89<_0x12ec7a['length'];_0x419a89++){const _0x17180a=_0x12ec7a[_0x419a89],_0x5e2017=_0x44aee2['createPositionBefore'](_0x17180a['reference']);if('before'===_0x18f63['compareWith'](_0x5e2017))return _0x419a89;}const _0x296338=_0x79e3f9['root'];let _0x3fcb44=-0x1;for(let _0x4067a2=_0x12ec7a['length']-0x1;_0x4067a2>=0x0;_0x4067a2--)if(_0x12ec7a[_0x4067a2]['reference']['root']===_0x296338){_0x3fcb44=_0x4067a2;break;}if(-0x1!==_0x3fcb44)return _0x3fcb44+0x1;const _0x1fbc35=_0x44aee2['document']['getRootNames'](),_0x2539d9=_0x1fbc35['indexOf'](_0x296338['rootName']),_0x511621=_0x1fbc35[_0x2539d9+0x1];if(_0x511621){for(let _0x599766=0x0;_0x599766<_0x12ec7a['length'];_0x599766++)if(_0x12ec7a[_0x599766]['reference']['root']['rootName']===_0x511621)return _0x599766;}return _0x12ec7a['length'];}class w extends _0x214dfd{['refresh'](){const _0x1383ea=this['editor']['model']['document']['selection'],_0x2bdac3=this['_getPositionToInsertFootnote'](_0x1383ea);this['isEnabled']=!!_0x2bdac3;}['execute'](_0x57bfdf){const {editor:_0x284ebf}=this,{model:_0x14190}=_0x284ebf,{selection:_0x50e2cd}=_0x14190['document'],_0x41cbf3=this['_getPositionToInsertFootnote'](_0x50e2cd);if(!_0x41cbf3)return;const _0x412df7=_0x284ebf['plugins']['get']('FootnotesEditing'),_0xc0126a=_0x57bfdf?.['footnoteId']??_0x146a2d();!function(_0x2db2d6){return'string'==typeof _0x2db2d6&&_0x2db2d6['length']>0x0&&!/\s/['test'](_0x2db2d6)&&!/^\d/['test'](_0x2db2d6);}(_0xc0126a)?_0x4fc5ac('insert-footnote-command-executed-with-invalid-id'):(_0x14190['change'](_0x2c4c50=>{const _0x15bfef=_0x2c4c50['createElement']('footnoteRef',{'footnoteId':_0xc0126a});_0x14190['insertObject'](_0x15bfef,_0x41cbf3,null);}),_0x412df7['_moveSelectionToFootnoteDefinition'](_0xc0126a));}['_getPositionToInsertFootnote'](_0x1dd051){const {model:_0x58c8d8}=this['editor'],{schema:_0x2d3de9}=_0x58c8d8,_0x2257b8=_0x1dd051['getFirstRange']();for(const _0xc98543 of _0x2257b8['getItems']())if(_0x2d3de9['isBlock'](_0xc98543)||_0x2d3de9['isObject'](_0xc98543))return null;const _0x43e5fd=_0x2257b8['end'];return _0x2d3de9['checkChild'](_0x43e5fd,'footnoteRef')?_0x43e5fd:null;}}class r extends _0xcea80{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3a80f7}=this;_0x3a80f7['config']['define']('footnotes.multiBlock',!0x0),_0x3a80f7['commands']['add']('insertFootnote',new w(_0x3a80f7)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1ddcf9){const _0x19d0f7=_0x135fe0([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x5813ee=0x47a28506,_0x52b968=0x47a5f21e^_0x5813ee,_0x188164=window[_0x135fe0([0x44,0x61,0x74,0x65])][_0x135fe0([0x6e,0x6f,0x77])](),_0x3ffdd5=_0x1ddcf9[_0x135fe0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c379a=new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d1587=>{_0x3ffdd5[_0x135fe0([0x6f,0x6e,0x63,0x65])](_0x135fe0([0x72,0x65,0x61,0x64,0x79]),_0x3d1587);}),_0x77ad17={[_0x135fe0([0x6b,0x74,0x79])]:_0x135fe0([0x45,0x43]),[_0x135fe0([0x75,0x73,0x65])]:_0x135fe0([0x73,0x69,0x67]),[_0x135fe0([0x63,0x72,0x76])]:_0x135fe0([0x50,0x2d,0x32,0x35,0x36]),[_0x135fe0([0x78])]:_0x135fe0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x135fe0([0x79])]:_0x135fe0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x135fe0([0x61,0x6c,0x67])]:_0x135fe0([0x45,0x53,0x32,0x35,0x36])},_0x2628a0=_0x3ffdd5[_0x135fe0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x135fe0([0x67,0x65,0x74])](_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27f839(){let _0x52682b,_0xe9bbb7=null,_0x184658=null;try{if(_0x2628a0==_0x135fe0([0x47,0x50,0x4c]))return _0x135fe0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52682b=_0x10be2c(),!_0x52682b)return _0x135fe0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52682b[_0x135fe0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x184658=_0x5c29a5(_0x52682b[_0x135fe0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52682b[_0x135fe0([0x6a,0x74,0x69])])),await _0x19596f()?_0x151d8a()?_0x109158()?_0x135fe0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd3e0df()?(_0x52682b[_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x135fe0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe9bbb7=_0x32dd34(_0x135fe0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52682b[_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x135fe0([0x74,0x72,0x69,0x61,0x6c])&&(_0xe9bbb7=_0x32dd34(_0x135fe0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x238f77()):_0x135fe0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x135fe0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x135fe0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x135fe0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x109158(){const _0x2e38c3=[_0x135fe0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x135fe0([0x74,0x72,0x69,0x61,0x6c])][_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52682b[_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x188164/0x3e8:0xe10*_0x52b968;return _0x52682b[_0x135fe0([0x65,0x78,0x70])]<_0x2e38c3;}function _0x151d8a(){const _0x522cb3=_0x52682b[_0x135fe0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x522cb3&&(!!_0x522cb3[_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135fe0([0x2a]))||!!_0x522cb3[_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135fe0([0x46,0x4f,0x4f])));}function _0xd3e0df(){const _0x2def3a=_0x52682b[_0x135fe0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2def3a||0x0==_0x2def3a[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cc6ca}=new URL(window[_0x135fe0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2def3a[_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc6ca))return!0x0;const _0x217529=_0x2cc6ca[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])](_0x135fe0([0x2e]));return _0x2def3a[_0x135fe0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x291b04=>_0x291b04[_0x135fe0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135fe0([0x2a])))[_0x135fe0([0x6d,0x61,0x70])](_0x25b2a8=>_0x25b2a8[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])](_0x135fe0([0x2e])))[_0x135fe0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ab565=>_0x3ab565[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x217529[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x135fe0([0x6d,0x61,0x70])](_0x7b0df4=>Array(_0x217529[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x7b0df4[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x135fe0([0x66,0x69,0x6c,0x6c])](_0x7b0df4[0x0]===_0x135fe0([0x2a])?_0x135fe0([0x2a]):'')[_0x135fe0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x7b0df4))[_0x135fe0([0x73,0x6f,0x6d,0x65])](_0x370dbf=>_0x217529[_0x135fe0([0x65,0x76,0x65,0x72,0x79])]((_0x43601a,_0x562f79)=>_0x370dbf[_0x562f79]===_0x43601a||_0x370dbf[_0x562f79]===_0x135fe0([0x2a])));}function _0x238f77(){return _0xe9bbb7&&_0x184658?new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x387f27,_0x5ab701)=>{_0xe9bbb7[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x387f27,_0x5ab701),_0x184658[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x313eb2=>{_0x313eb2!=_0x135fe0([0x56,0x61,0x6c,0x69,0x64])&&_0x387f27(_0x313eb2);},_0x5ab701);}):_0xe9bbb7||_0x184658||_0x135fe0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c29a5(_0x547bc8,_0x577984){return new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbad4e9=>{if(_0x59544d())return _0xbad4e9(_0x135fe0([0x56,0x61,0x6c,0x69,0x64]));_0x204646(),_0x3ffdd5[_0x135fe0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x135fe0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x61d60e=!0x1;const _0x32e725=_0x146a2d();function _0x879e1c(_0x275a49){return!!_0x275a49&&(typeof _0x275a49===_0x135fe0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x275a49===_0x135fe0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x275a49[_0x135fe0([0x74,0x68,0x65,0x6e])]===_0x135fe0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x275a49[_0x135fe0([0x63,0x61,0x74,0x63,0x68])]===_0x135fe0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53c0cc(_0x508dd0){_0x36ccd5(_0x508dd0)[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x330baf=>{if(!_0x330baf||_0x330baf[_0x135fe0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x135fe0([0x6f,0x6b]))return _0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xaf935d(_0x343aaf(_0x32e725+_0x577984))!=_0x330baf[_0x135fe0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x135fe0([0x56,0x61,0x6c,0x69,0x64]);})[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x2c948d=>(_0x515560(),_0x2c948d),()=>{const _0x3acaa1=_0x23f5f4();return null==_0x3acaa1?(_0x515560(),_0x135fe0([0x56,0x61,0x6c,0x69,0x64])):_0x135fe0(_0x188164-_0x3acaa1>(0x63ae0106^_0x5813ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x135fe0([0x74,0x68,0x65,0x6e])](_0xbad4e9)[_0x135fe0([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbad4e9(_0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35426e=0x47946b86^_0x5813ee;function _0x515560(){const _0x41890c=_0x135fe0([0x6c,0x6c,0x63,0x74,0x2d])+_0xaf935d(_0x343aaf(_0x547bc8)),_0x1773d3=_0x4a4afc(_0xaf935d(window[_0x135fe0([0x4d,0x61,0x74,0x68])][_0x135fe0([0x63,0x65,0x69,0x6c])](_0x188164/_0x35426e)));window[_0x135fe0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x135fe0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41890c,_0x1773d3);}function _0x23f5f4(){const _0x3595d3=_0x135fe0([0x6c,0x6c,0x63,0x74,0x2d])+_0xaf935d(_0x343aaf(_0x547bc8)),_0x209096=window[_0x135fe0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x135fe0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3595d3);return _0x209096?window[_0x135fe0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4afc(_0x209096),0x10)*_0x35426e:null;}function _0x36ccd5(_0x460fb0){return new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51e241,_0x34a9ae)=>{_0x460fb0[_0x135fe0([0x74,0x68,0x65,0x6e])](_0x51e241,_0x34a9ae),window[_0x135fe0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34a9ae,0x47a351c6^_0x5813ee);});}}_0x3ffdd5[_0x135fe0([0x6f,0x6e])](_0x135fe0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x473762,_0x331311)=>{if(_0x331311[0x0]!=_0x547bc8)return _0xbad4e9(_0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x331311[0x1]={..._0x331311[0x1],[_0x135fe0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32e725};},{[_0x135fe0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x135fe0([0x68,0x69,0x67,0x68])}),_0x3ffdd5[_0x135fe0([0x6f,0x6e])](_0x135fe0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x309c38=>{_0x879e1c(_0x309c38[_0x135fe0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x61d60e=!0x0,_0x53c0cc(_0x309c38[_0x135fe0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x135fe0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x135fe0([0x6c,0x6f,0x77])}),_0x4c379a[_0x135fe0([0x74,0x68,0x65,0x6e])](()=>{_0x61d60e||_0xbad4e9(_0x135fe0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59544d(){return _0x3ffdd5[_0x135fe0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x135fe0([0x76,0x69,0x65,0x77])][_0x135fe0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x135fe0([0x61,0x75,0x74,0x6f]);}function _0x204646(){_0x3ffdd5[_0x135fe0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x135fe0([0x76,0x69,0x65,0x77])][_0x135fe0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x135fe0([0x61,0x75,0x74,0x6f]);}}function _0x32dd34(_0x50849e){const _0xb74a8c=[new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x569e57=>setTimeout(_0x569e57,0x47abbbca^_0x5813ee)),_0x4c379a[_0x135fe0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x543fb6=>{let _0x1a3697=0x0;_0x3ffdd5[_0x135fe0([0x6d,0x6f,0x64,0x65,0x6c])][_0x135fe0([0x6f,0x6e])](_0x135fe0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x97c10d,_0x37f073)=>{_0x37f073[0x0][_0x135fe0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a3697++,_0x1a3697==(0x47a284fe^_0x5813ee)&&(_0x543fb6(),_0x97c10d[_0x135fe0([0x6f,0x66,0x66])]());});}))];return window[_0x135fe0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x135fe0([0x72,0x61,0x63,0x65])](_0xb74a8c)[_0x135fe0([0x74,0x68,0x65,0x6e])](()=>_0x50849e);}async function _0x4a142e(){await _0x4c379a,_0x3ffdd5[_0x135fe0([0x6d,0x6f,0x64,0x65,0x6c])][_0x135fe0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x568621,_0x3ffdd5[_0x135fe0([0x6d,0x6f,0x64,0x65,0x6c])][_0x135fe0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x568621,_0x3ffdd5[_0x135fe0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x135fe0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x226925(_0x4cdbb9){const _0x3d3030=_0x37c99e();_0x3ffdd5[_0x3d3030]=_0x135fe0([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4cdbb9,_0x4cdbb9!=_0x135fe0([0x56,0x61,0x6c,0x69,0x64])&&_0x4a142e();}function _0x37c99e(){const _0x11c9cb=window[_0x135fe0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x135fe0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x135fe0([0x6e,0x6f,0x77])]())[_0x135fe0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x135fe0([0x2e]),'');let _0x44244b=_0x135fe0([0x75]);for(let _0x11ba16=0x0;_0x11ba16<_0x11c9cb[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11ba16+=0x2){let _0x1287fc=window[_0x135fe0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11c9cb[_0x135fe0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11ba16,_0x11ba16+0x2));_0x1287fc>=_0x19d0f7[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1287fc-=_0x19d0f7[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44244b+=_0x19d0f7[_0x1287fc];}return _0x44244b;}function _0x10be2c(){const _0x155201=_0x2628a0[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])](_0x135fe0([0x2e]));if(0x3!=_0x155201[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x567795(_0x155201[0x1]);function _0x567795(_0x1f09de){const _0x222d20=_0x4e1ebf(_0x1f09de);return _0x222d20&&_0x381163()?_0x222d20:null;function _0x381163(){const _0x20fdeb=_0x222d20[_0x135fe0([0x6a,0x74,0x69])],_0xfff9d1=window[_0x135fe0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20fdeb[_0x135fe0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20fdeb[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fae19={..._0x222d20,[_0x135fe0([0x6a,0x74,0x69])]:_0x20fdeb[_0x135fe0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20fdeb[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fae19[_0x135fe0([0x76,0x63])],_0x343aaf(_0x3fae19)==_0xfff9d1;}}}async function _0x19596f(){let _0x50c5ce=!0x0;try{const _0x515e24=_0x2628a0[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])](_0x135fe0([0x2e])),[_0x8c943e,_0x133d30,_0x4ad90c]=_0x515e24;return _0x1fafb3(_0x8c943e),await _0x444b35(_0x8c943e,_0x133d30,_0x4ad90c),_0x50c5ce;}catch{return!0x1;}function _0x1fafb3(_0x42c15e){const _0x175b9b=_0x4e1ebf(_0x42c15e);_0x175b9b&&_0x175b9b[_0x135fe0([0x61,0x6c,0x67])]==_0x135fe0([0x45,0x53,0x32,0x35,0x36])||(_0x50c5ce=!0x1);}async function _0x444b35(_0x13d1a9,_0x477113,_0x1ff62b){const _0x36ab44=window[_0x135fe0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x135fe0([0x66,0x72,0x6f,0x6d])](_0x1bee36(_0x1ff62b),_0x5b48b9=>_0x5b48b9[_0x135fe0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37f6c3=new window[(_0x135fe0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x135fe0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13d1a9+_0x135fe0([0x2e])+_0x477113),_0x216757=window[_0x135fe0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x135fe0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x216757)return;const _0x4c8172=await _0x216757[_0x135fe0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x135fe0([0x6a,0x77,0x6b]),_0x77ad17,{[_0x135fe0([0x6e,0x61,0x6d,0x65])]:_0x135fe0([0x45,0x43,0x44,0x53,0x41]),[_0x135fe0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x135fe0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x135fe0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x216757[_0x135fe0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x135fe0([0x6e,0x61,0x6d,0x65])]:_0x135fe0([0x45,0x43,0x44,0x53,0x41]),[_0x135fe0([0x68,0x61,0x73,0x68])]:{[_0x135fe0([0x6e,0x61,0x6d,0x65])]:_0x135fe0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c8172,_0x36ab44,_0x37f6c3)||(_0x50c5ce=!0x1);}}function _0x4e1ebf(_0xecb590){return _0xecb590[_0x135fe0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x135fe0([0x65,0x79]))?JSON[_0x135fe0([0x70,0x61,0x72,0x73,0x65])](_0x1bee36(_0xecb590)):null;}function _0x1bee36(_0x2a8149){return window[_0x135fe0([0x61,0x74,0x6f,0x62])](_0x2a8149[_0x135fe0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x135fe0([0x2b]))[_0x135fe0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x135fe0([0x2f])));}function _0x343aaf(_0xb46d84){let _0x2bed57=0x1505;function _0x115aa9(_0x2690c6){for(let _0x3f88b4=0x0;_0x3f88b4<_0x2690c6[_0x135fe0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f88b4++){const _0x1848b3=_0x2690c6[_0x135fe0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f88b4);_0x2bed57=(_0x2bed57<<0x5)+_0x2bed57+_0x1848b3,_0x2bed57&=_0x2bed57;}}function _0x347e97(_0x2b59ce){Array[_0x135fe0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b59ce)?_0x2b59ce[_0x135fe0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x347e97):_0x2b59ce&&typeof _0x2b59ce==_0x135fe0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x135fe0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b59ce)[_0x135fe0([0x73,0x6f,0x72,0x74])]()[_0x135fe0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24c4f0,_0x450c23])=>{_0x115aa9(_0x24c4f0),_0x347e97(_0x450c23);}):_0x115aa9(window[_0x135fe0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b59ce));}return _0x347e97(_0xb46d84),_0x2bed57>>>0x0;}function _0xaf935d(_0x7aef36){return _0x7aef36[_0x135fe0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x135fe0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x135fe0([0x30]));}function _0x4a4afc(_0x24dae4){return _0x24dae4[_0x135fe0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x135fe0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x135fe0([0x6a,0x6f,0x69,0x6e])]('');}function _0x568621(){}function _0x135fe0(_0x5af592){return _0x5af592['map'](_0x36bc8e=>String['fromCharCode'](_0x36bc8e))['join']('');}_0x226925(await _0x27f839());}(this);}['_moveSelectionToFootnoteDefinition'](_0x481383){const {plugins:_0x136188,editing:_0x96d33c,model:_0x14fd59}=this['editor'],_0x1614cd=_0x136188['get'](c)['getFootnote'](_0x481383);return!!_0x1614cd&&(_0x14fd59['change'](_0x15b1e6=>{_0x15b1e6['setSelection'](_0x15b1e6['createPositionAt'](_0x1614cd['definition'],'end'));}),_0x96d33c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5c8e51){const {plugins:_0x21f600,editing:_0x5536c1,model:_0x1b6f95}=this['editor'],_0x407d00=_0x21f600['get'](c)['getFootnote'](_0x5c8e51);return!!_0x407d00&&(_0x1b6f95['change'](_0x33b2e1=>{_0x33b2e1['setSelection'](_0x407d00['reference'],'on');}),_0x5536c1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x26899c}=this['editor']['model'],_0x5b6427=this['editor']['config']['get']('footnotes.multiBlock');_0x26899c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x26899c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x26899c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5b6427?_0x26899c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x26899c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x26899c['addChildCheck'](_0x2391b1=>{for(const _0x46da42 of _0x2391b1)if('footnoteDefinition'===_0x46da42['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1575aa}=this,{conversion:_0x380ed2,editing:_0x136f98}=_0x1575aa,{t:t}=_0x1575aa['locale'];_0x380ed2['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2a2b69,{writer:_0x49a778,consumable:_0x5a5177})=>{const _0x4438c9=_0x2a2b69['getChild'](0x0);if(!_0x4438c9||!_0x4438c9['is']('element','a'))return null;const _0x195e52=_0x4438c9['getAttribute']('href')||'';if(!_0x195e52['startsWith']('#'))return null;const _0x2bd48b=_0x195e52['replace'](/^#/,'');if(!_0x2bd48b)return null;_0x5a5177['consume'](_0x4438c9,{'name':!0x0,'attributes':['href']});for(const {item:_0x13075f}of _0x136f98['view']['createRangeIn'](_0x4438c9))_0x13075f['is']('$textProxy')?_0x5a5177['consume'](_0x13075f['textNode'],{'name':!0x0}):_0x13075f['is']('element')&&_0x5a5177['consume'](_0x13075f,{'name':!0x0});return _0x49a778['createElement']('footnoteRef',{'footnoteId':_0x2bd48b});}}),_0x380ed2['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xf2fed5,{writer:_0x1cc094})=>D(_0xf2fed5,_0x1cc094)}),_0x380ed2['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2f89d6,{writer:_0x563813})=>{const _0x1864ff=_0x2f89d6['getAttribute']('footnoteCounter');return _0x30b5e5(D(_0x2f89d6,_0x563813),_0x563813,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1864ff)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c4274}=this,{t:t}=_0x4c4274['locale'],{conversion:_0x48aa10}=_0x4c4274;_0x48aa10['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x48aa10['for']('upcast')['add'](_0x37fa43=>{_0x37fa43['on']('element:ol',(_0x44a5d3,_0x53a8cd,_0x468e99)=>{const _0x4ff8b8=_0x53a8cd['viewItem'];if(!_0x4ff8b8['hasClass']('footnotes-list')||!_0x53a8cd['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x468e99['consumable']['consume'](_0x4ff8b8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1236e3,modelCursor:_0x5baf94}=_0x468e99['convertChildren'](_0x53a8cd['viewItem'],_0x53a8cd['modelCursor']);_0x53a8cd['modelRange']=_0x1236e3,_0x53a8cd['modelCursor']=_0x5baf94;}),_0x37fa43['on']('element:hr',(_0x890e81,_0x455004,_0xdaba0)=>{const _0x5e5ea9=_0x455004['viewItem'];_0x5e5ea9['hasClass']('footnotes-divider')&&_0x455004['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xdaba0['consumable']['consume'](_0x5e5ea9,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x48aa10['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e5d2b,{writer:_0xe1a35})=>g(_0xe1a35)}),_0x48aa10['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x243aea,{writer:_0x1603d8})=>{const _0x3893de=g(_0x1603d8,{'data-footnotes-list-label':t('Footnotes')}),_0xac0879=_0x30b5e5(_0x3893de,_0x1603d8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1603d8['setCustomProperty']('footnotesDefinitions',!0x0,_0xac0879),_0xac0879;}});}['_defineDefinitionConverters'](){const {editor:_0x523df9}=this,{conversion:_0x1f3ce7,locale:_0x581a4c}=_0x523df9,_0x4507f4=_0x523df9['config']['get']('footnotes.multiBlock');_0x1f3ce7['for']('upcast')['add'](_0x51d835=>{_0x51d835['on']('element:li',(_0x57000c,_0x559037,_0x29590f)=>{const _0x5d2f75=_0x559037['viewItem'];if(!_0x5d2f75['hasClass']('footnote-definition')||!_0x5d2f75['getAttribute']('id'))return;const _0x877612=_0x5d2f75['parent'];if(!_0x877612['is']('element','ol')||!_0x877612['hasClass']('footnotes-list'))return;if(!_0x29590f['consumable']['test'](_0x5d2f75,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x508324=_0x29590f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5d2f75['getAttribute']('id')});if(!_0x29590f['safeInsert'](_0x508324,_0x559037['modelCursor']))return;_0x29590f['consumable']['consume'](_0x5d2f75,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x59f7d2=Array['from'](_0x5d2f75['getChildren']())['find'](_0x43f597=>_0x43f597['is']('element')&&_0x43f597['hasClass']('footnote-content'));for(const _0x1ab0a9 of _0x5d2f75['getChildren']())_0x1ab0a9['is']('element')&&(_0x29590f['consumable']['consume'](_0x1ab0a9,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x29590f['consumable']['consume'](_0x1ab0a9,{'name':!0x0,'classes':'footnote-content'}));if(_0x59f7d2){if(_0x4507f4)_0x29590f['convertChildren'](_0x59f7d2,_0x508324);else{const _0x9e8dfa=_0x29590f['writer']['createElement']('footnoteInlineContent');_0x29590f['writer']['insert'](_0x9e8dfa,_0x508324),_0x29590f['convertChildren'](_0x59f7d2,_0x9e8dfa);}}_0x29590f['updateConversionResult'](_0x508324,_0x559037);});}),_0x1f3ce7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3fb588,{writer:_0x31b157})=>v(_0x3fb588,_0x31b157,_0x581a4c,{'dataPipeline':!0x0})}),_0x1f3ce7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x194d33,{writer:_0x26ea5f})=>v(_0x194d33,_0x26ea5f,_0x581a4c)});}['_defineBogusParagraphConverters'](){const {editor:_0x5113cf}=this,{conversion:_0x4f9b2a}=_0x5113cf;_0x5113cf['config']['get']('footnotes.multiBlock')?(_0x4f9b2a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4f9b2a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5113cf['model']['document'],'change:data',()=>{!function(_0x37d66a,_0x44e3c9){const _0x45e9f2=_0x37d66a['document']['differ'],_0x1dd7a7=new Set();for(const _0x2c1243 of _0x45e9f2['getChanges']()){const _0x2a51c3='attribute'==_0x2c1243['type']?_0x2c1243['range']['start']['parent']:_0x2c1243['position']['parent'];_0x2a51c3['is']('element','footnoteDefinition')&&_0x1dd7a7['add'](_0x2a51c3);}for(const _0x43d87d of _0x1dd7a7['values']()){const _0x9aa4f7=Array['from'](_0x43d87d['getChildren']())['filter'](_0x43494a=>p(_0x43494a,_0x44e3c9['mapper']));for(const _0x4c1acb of _0x9aa4f7)_0x44e3c9['reconvertItem'](_0x4c1acb);}}(_0x5113cf['model'],_0x5113cf['editing']);})):(_0x4f9b2a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4f9b2a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x42c9c1,{writer:_0x28da27})=>{const _0x4c90df=_0x28da27['createContainerElement']('span');return _0x28da27['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4c90df),_0x4c90df;}}));}['_defineKeyboardHandlers'](){const {editor:_0x16ffb6}=this,{editing:_0x3bee73,t:t}=_0x16ffb6,_0x35a622=_0x16ffb6['model']['document']['selection'];_0x16ffb6['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x16ffb6['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x3bee73['view']['document'],'enter',(_0x2d4c92,_0x42b092)=>{const _0x527bb2=function(_0x5b8fd0){const _0x1e50ba=_0x5b8fd0['getSelectedElement']();if(_0x1e50ba?.['is']('element','footnoteRef'))return _0x1e50ba;return null;}(_0x35a622);if(_0x527bb2){const _0x4f4777=_0x527bb2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4f4777),_0x42b092['preventDefault'](),_0x2d4c92['stop']();}},{'context':_0x1e7fed});}['_defineClickHandlers'](){const {editor:_0xaed6ac}=this,{editing:_0x3df84b}=_0xaed6ac;_0xaed6ac['editing']['view']['addObserver'](_0x82adbf),_0xaed6ac['editing']['view']['addObserver'](_0x1bdbc0);let _0x41ccd9=!0x1;this['listenTo'](_0x3df84b['view']['document'],'pointerdown',(_0x1e7067,_0x12ab04)=>{const {target:_0x5d9e85}=_0x12ab04,_0x210861=_0x3df84b['view']['document']['selection'];_0x41ccd9=!(!_0x5d9e85['is']('element','sup')||!_0x5d9e85['hasClass']('footnote'))&&_0x210861['getSelectedElement']()===_0x5d9e85;},{'priority':'high'}),this['listenTo'](_0x3df84b['view']['document'],'click',(_0x27083b,_0x2d96ae)=>{const {target:_0x3b6f77}=_0x2d96ae,_0x1b43b7=_0x3b6f77['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x1b43b7['slice'](0x1)),_0x27083b['stop'](),_0x2d96ae['preventDefault']();},{'priority':'high','context':_0x6b727e=>_0x6b727e['is']('element','sup')&&_0x6b727e['hasClass']('footnote')&&_0x41ccd9}),this['listenTo'](_0x3df84b['view']['document'],'click',(_0x1e148f,_0x1c4fa8)=>{const {target:_0x44cc6f}=_0x1c4fa8;if(!_0x44cc6f['is']('element','a'))return;let _0x1d2abc=_0x44cc6f['getAttribute']('href');if(!_0x1d2abc?.['startsWith']('#'))return;_0x1d2abc=_0x1d2abc['slice'](0x1);let _0x28528b=!0x1;(_0x1d2abc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1d2abc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1d2abc))&&(_0x28528b=!0x0),_0x28528b&&(_0x1c4fa8['preventDefault'](),_0x1e148f['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x5511e5}={}){return(_0x47ac43,{writer:_0x2a7d29})=>{if(!h(_0x47ac43))return null;if(!_0x5511e5)return _0x2a7d29['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x178eec=_0x2a7d29['createContainerElement']('p');return _0x2a7d29['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x178eec),_0x178eec;};}function h(_0x4d63dc){const {parent:_0x24b916}=_0x4d63dc;if(!_0x24b916?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x24b916['childCount'])return!0x1;for(const _0x5e18b6 of _0x4d63dc['getAttributeKeys']())if(!_0x5e18b6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5e18b6)return!0x1;return!0x0;}function p(_0x2980d4,_0x6f4427){if(!_0x2980d4['is']('element','paragraph'))return!0x1;const _0x280ca5=_0x6f4427['toViewElement'](_0x2980d4);return!!_0x280ca5&&h(_0x2980d4)!==_0x280ca5['is']('element','span');}function J(_0x25154c){return _0x1e7fed(_0x25154c)&&_0x25154c['is']('containerElement')&&!!_0x25154c['getCustomProperty']('footnotesDefinitions');}function g(_0x18bd14,_0xba7d7c={}){const _0x147b98=_0x18bd14['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4093d0=_0x18bd14['createContainerElement']('ol',{'class':'footnotes-list'},_0x18bd14['createSlot']());return _0x18bd14['createContainerElement']('div',{'class':'footnotes',..._0xba7d7c},[_0x147b98,_0x4093d0]);}function D(_0x1d06f2,_0xa4f881){const _0x1c34da=_0x1d06f2['getAttribute']('footnoteId'),_0x331e9d=_0x1d06f2['getAttribute']('footnoteCounter'),_0x2f13a1=_0xa4f881['createUIElement']('a',{'href':'#'+_0x1c34da},function(_0x3888dd){const _0x42367c=this['toDomElement'](_0x3888dd);return _0x42367c['textContent']=_0x331e9d,_0x42367c;}),_0x5e4aa7=_0xa4f881['createContainerElement']('sup',{'id':'ref-'+_0x1c34da,'class':'footnote'},[_0x2f13a1]);return _0x5e4aa7['getFillerOffset']=()=>null,_0x5e4aa7;}function v(_0x28258a,_0x360568,_0x5a7538,{dataPipeline:_0x17d60a}={}){const {t:t}=_0x5a7538,_0x5bee59=_0x28258a['getAttribute']('footnoteId'),_0x22d016=_0x360568['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5bee59},function(_0x42861f){const _0x568c41=this['toDomElement'](_0x42861f);return _0x568c41['innerText']='^',_0x568c41;}),_0x63af6b=_0x17d60a?_0x360568['createContainerElement']('div',{'class':'footnote-content'}):_0x20cb5c(_0x360568['createEditableElement']('div',{'class':'footnote-content'}),_0x360568,{'label':t('Footnote\x20content.')});return _0x360568['insert'](_0x360568['createPositionAt'](_0x63af6b,0x0),_0x360568['createSlot']()),_0x360568['createContainerElement']('li',{'class':'footnote-definition','id':_0x5bee59},[_0x22d016,_0x63af6b]);}class e extends _0xcea80{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5acdbd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3679c5}=this,{plugins:_0x3fcc74,model:_0x230212}=_0x3679c5,_0x159581=_0x3fcc74['get'](_0x5acdbd),_0x389412=_0x3fcc74['get'](c);this['listenTo'](_0x159581,'outputTransformation',(_0x16fd62,_0x37d56a)=>{const _0x29c468=function(_0x1a84d9,_0x57c51f){const _0x5dcddd=new Set();for(const {item:_0x525da9}of _0x1a84d9['createRangeIn'](_0x57c51f))_0x525da9['is']('element','footnoteRef')&&_0x5dcddd['add'](_0x525da9['getAttribute']('footnoteId'));return Array['from'](_0x5dcddd);}(_0x230212,_0x37d56a['content']);if(!_0x29c468['length'])return;const _0x263669=_0x389412['getFootnotes'](),_0x19b97a=_0x29c468['reduce']((_0x78bba4,_0x41eee4)=>{const _0x371461=_0x263669['find'](_0x88d9b8=>_0x88d9b8['id']===_0x41eee4);if(_0x371461){const _0x19938e=_0x3679c5['data']['toView'](_0x371461['definition'],{'isClipboardPipeline':!0x0}),_0x241b3a=_0x3679c5['data']['htmlProcessor']['toData'](_0x19938e);_0x78bba4[_0x371461['id']]=_0x241b3a;}return _0x78bba4;},Object['create'](null));_0x37d56a['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x19b97a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5adca9}=this,{model:_0x2b68e2,plugins:_0x2f3440}=_0x5adca9,{view:_0x179a27}=_0x5adca9['editing'],_0x389254=_0x2f3440['get'](_0x5acdbd),_0x74cf8c=_0x2f3440['get'](c);let _0x5edeac=null;this['listenTo'](_0x179a27['document'],'clipboardInput',(_0x2e7b4c,_0x511ebd)=>{const _0x3e16ae=_0x511ebd['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5edeac=_0x3e16ae?JSON['parse'](_0x3e16ae):null;}),this['listenTo'](_0x389254,'contentInsertion',(_0x2863e3,_0x30cfee)=>{if(!_0x5edeac)return;const _0x189029=_0x30cfee['sourceEditorId']===this['editor']['id'];_0x189029&&'drop'===_0x30cfee['method']||_0x2b68e2['change'](_0x52cc79=>{!function(_0xcb5571,_0x3252cc){const _0x40baf2=[];for(const {item:_0x1b6b33}of _0xcb5571['createRangeIn'](_0x3252cc))_0x1b6b33['is']('element','footnotesDefinitions')&&_0x40baf2['push'](_0x1b6b33);for(const _0x3054db of _0x40baf2)_0xcb5571['remove'](_0x3054db);}(_0x52cc79,_0x30cfee['content']);let _0xa1fb44=_0x74cf8c['getFootnotesDefinitionsObjectElement']();if(!_0xa1fb44){const _0x3c7016=_0x2b68e2['document']['selection']['getFirstRange']()['root'];_0xa1fb44=_0x74cf8c['_insertEmptyFootnotesDefinitionsContainer'](_0x52cc79,_0x3c7016);}const _0x47ccb1=function(_0x5f239d,_0x2604f2,_0x145f06){const _0x18e4c4=Object['create'](null);for(const {item:_0x41af7a}of _0x5f239d['createRangeIn'](_0x2604f2))if(_0x41af7a['is']('element','footnoteRef')){const _0x4b5b12=_0x41af7a['getAttribute']('footnoteId');if(!_0x145f06(_0x4b5b12))continue;_0x18e4c4[_0x4b5b12]||(_0x18e4c4[_0x4b5b12]=_0x146a2d()),_0x5f239d['setAttribute']('footnoteId',_0x18e4c4[_0x4b5b12],_0x41af7a);}return _0x18e4c4;}(_0x52cc79,_0x30cfee['content'],_0x3757a6=>!_0x189029||null!==_0x74cf8c['getFootnote'](_0x3757a6));for(const [_0x3303b7,_0x1d9abc]of Object['entries'](_0x5edeac)){const _0x2b15bd=_0x47ccb1[_0x3303b7]||_0x3303b7,_0x11a307=_0x52cc79['createElement']('footnoteDefinition',{'footnoteId':_0x2b15bd}),_0x2868c0=_0x5adca9['data']['htmlProcessor']['toView'](_0x1d9abc),_0x18c7b4=_0x5adca9['data']['toModel'](_0x2868c0,_0x11a307);_0x52cc79['append'](_0x18c7b4,_0x11a307),_0x52cc79['insert'](_0x11a307,_0xa1fb44,'end');}_0x5edeac=null;});});}}class i extends _0xcea80{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3975db}=this,{componentFactory:_0x3672ba}=_0x3975db['ui'];_0x3672ba['add']('insertFootnote',x(_0x3975db,_0x1d8b5f)),_0x3672ba['add']('menuBar:insertFootnote',x(_0x3975db,_0x129cf5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2027fb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x536ddf;for(const _0x325d62 in _0x2027fb){const _0x5c689d=_0x325d62,_0x28b84c=_0x2027fb[_0x5c689d];if('footnotesLicenseKeyValid'==_0x28b84c||'footnotesLicenseKeyInvalid'==_0x28b84c||'footnotesLicenseKeyExpired'==_0x28b84c||'footnotesLicenseKeyDomainLimit'==_0x28b84c||'footnotesLicenseKeyNotAllowed'==_0x28b84c||'footnotesLicenseKeyEvaluationLimit'==_0x28b84c||'footnotesLicenseKeyTrialLimit'==_0x28b84c||'footnotesLicenseKeyUsageLimit'==_0x28b84c){delete _0x2027fb[_0x5c689d],_0x536ddf=_0x28b84c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x536ddf&&_0x2027fb['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x536ddf&&_0x2027fb['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x536ddf&&_0x2027fb['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x536ddf&&_0x2027fb['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x536ddf&&_0x2027fb['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x536ddf&&_0x2027fb['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x536ddf&&_0x2027fb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x36ea17,_0x2dd8e2){const _0x514083=_0x36ea17['commands']['get']('insertFootnote');return _0x5d9d58=>{const {t:t}=_0x5d9d58,_0x1662c0=new _0x2dd8e2(_0x5d9d58),_0x219876=_0x1662c0 instanceof _0x129cf5;return _0x1662c0['bind']('isEnabled')['to'](_0x514083,'isEnabled'),_0x1662c0['set']({'label':t(_0x219876?'Footnote':'Insert\x20footnote'),'icon':_0x3be37e,'tooltip':!0x0}),_0x1662c0['on']('execute',()=>{_0x514083['execute'](),_0x36ea17['editing']['view']['focus']();}),_0x1662c0;};}class nt extends _0xcea80{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x214dfd{['refresh'](){const {editor:_0x3d1297}=this,_0x354f80=_0x3d1297['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x354f80,this['value']=_0x354f80?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x27d0bf}){const {editor:_0x1b49f2}=this,_0x2bc8ec=_0x1b49f2['plugins']['get'](c),_0x1e08fc=_0x2bc8ec['getFootnotesDefinitionsObjectElement']();_0x1e08fc&&Q['includes'](_0x27d0bf)&&_0x1b49f2['model']['change'](_0x2bd943=>{_0x2bd943['setAttribute']('footnotesListStyle',_0x27d0bf,_0x1e08fc),_0x2bc8ec['_updateFootnotesCounters'](_0x2bd943);});}}class b extends _0x214dfd{['refresh'](){const {editor:_0x3e0751}=this,_0x4b9d1d=_0x3e0751['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4b9d1d,this['value']=_0x4b9d1d?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x134ce3}){const {editor:_0x1f653b}=this,_0x593820=_0x1f653b['plugins']['get'](c),_0xd55c58=_0x593820['getFootnotesDefinitionsObjectElement']();_0xd55c58&&Number['isInteger'](_0x134ce3)&&_0x1f653b['model']['change'](_0x4a8e9e=>{_0x4a8e9e['setAttribute']('footnotesListStart',_0x134ce3,_0xd55c58),_0x593820['_updateFootnotesCounters'](_0x4a8e9e);});}}class P extends _0xcea80{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x210476}=this;_0x210476['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x210476['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x210476['commands']['add']('footnotesStyle',new S(_0x210476)),_0x210476['commands']['add']('footnotesStart',new b(_0x210476)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x246f03}=this,{schema:_0x304e87}=_0x246f03['model'];_0x304e87['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5928c0}=this,{conversion:_0x8c3ad7,model:_0x32ca83}=_0x5928c0,{schema:_0x195cca}=_0x32ca83;_0x8c3ad7['for']('upcast')['add'](_0x10489e=>{_0x10489e['on']('element:ol',(_0x2357a1,_0x40d89c,_0x579939)=>{const _0x5b5170=_0x40d89c['viewItem'],_0x4a0b5c=_0x40d89c['modelCursor']?.['parent'];_0x5b5170['hasClass']('footnotes-list')&&_0x4a0b5c?.['is']('element','footnotesDefinitions')&&(function(_0x1c3f81,_0x423646,_0x124375,_0x3cf50f){if(!_0x3cf50f['checkAttribute'](_0x423646,'footnotesListStart'))return;let _0x37080a=0x1;const _0x5755f9=_0x124375['consumable']['consume'](_0x1c3f81,{'attributes':'start'});if(_0x5755f9){const _0x46d2a7=Number['parseInt'](_0x1c3f81['getAttribute']('start'),0xa);Number['isNaN'](_0x46d2a7)||(_0x37080a=_0x46d2a7);}!_0x5755f9&&_0x423646['hasAttribute']('footnotesListStart')||_0x124375['writer']['setAttribute']('footnotesListStart',_0x37080a,_0x423646);}(_0x5b5170,_0x4a0b5c,_0x579939,_0x195cca),function(_0xb5d16e,_0x1b3dd7,_0x703b92,_0x13a835){if(!_0x13a835['checkAttribute'](_0x1b3dd7,'footnotesListStyle'))return;let _0x11b120='decimal',_0x59de96=!0x1;if(_0x703b92['consumable']['consume'](_0xb5d16e,{'attributes':'type'})){const _0x501f87={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xb5d16e['getAttribute']('type')];_0x501f87&&(_0x11b120=_0x501f87),_0x59de96=!0x0;}_0x703b92['consumable']['consume'](_0xb5d16e,{'styles':'list-style-type'})&&(_0x11b120=_0xb5d16e['getStyle']('list-style-type'),_0x59de96=!0x0),!_0x59de96&&_0x1b3dd7['hasAttribute']('footnotesListStyle')||_0x703b92['writer']['setAttribute']('footnotesListStyle',_0x11b120,_0x1b3dd7);}(_0x5b5170,_0x4a0b5c,_0x579939,_0x195cca));});}),_0x8c3ad7['for']('downcast')['add'](_0x249530=>{_0x249530['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x18aa44,_0x13250c,_0x362425)=>{if(!_0x362425['consumable']['consume'](_0x13250c['item'],_0x18aa44['name']))return;const _0x243337=C(_0x13250c['item'],_0x362425['mapper']),{attributeNewValue:_0x457c34}=_0x13250c;null==_0x457c34||0x1===_0x457c34?_0x362425['writer']['removeAttribute']('start',_0x243337):_0x362425['writer']['setAttribute']('start',String(_0x457c34),_0x243337);}),_0x249530['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xbaa3cb,_0x56d846,_0x466bc1)=>{if(!_0x466bc1['consumable']['consume'](_0x56d846['item'],_0xbaa3cb['name']))return;const _0x326edd=C(_0x56d846['item'],_0x466bc1['mapper']),{attributeNewValue:_0x6242d6}=_0x56d846;_0x6242d6&&'decimal'!==_0x6242d6?_0x466bc1['writer']['setStyle']('list-style-type',_0x6242d6,_0x326edd):_0x466bc1['writer']['removeStyle']('list-style-type',_0x326edd);});});}['_definePostfixer'](){const {editor:_0x3a3162}=this,{model:_0x2ed5e8}=_0x3a3162,_0x3f92d3=_0x3a3162['plugins']['get'](c),_0x2ff9b6=this['_getDefaultListStyle'](),_0x50b218=this['_getDefaultStartIndex']();_0x2ed5e8['document']['registerPostFixer'](_0x3cd9c2=>{const _0x3cd2d4=_0x2ed5e8['document']['differ']['getChanges']();let _0x267312=!0x1;for(const _0x20f352 of _0x3cd2d4){if('insert'!==_0x20f352['type']||'$text'===_0x20f352['name'])continue;const _0x10001d=_0x2ed5e8['createRangeOn'](_0x20f352['position']['nodeAfter']);for(const _0x41fc81 of _0x10001d['getItems']())_0x41fc81['is']('element','footnotesDefinitions')&&(!_0x41fc81['hasAttribute']('footnotesListStart')&&_0x2ed5e8['schema']['checkAttribute'](_0x41fc81,'footnotesListStart')&&(_0x3cd9c2['setAttribute']('footnotesListStart',_0x50b218,_0x41fc81),_0x267312=!0x0),!_0x41fc81['hasAttribute']('footnotesListStyle')&&_0x2ed5e8['schema']['checkAttribute'](_0x41fc81,'footnotesListStyle')&&(_0x3cd9c2['setAttribute']('footnotesListStyle',_0x2ff9b6,_0x41fc81),_0x267312=!0x0));}return _0x267312&&_0x3f92d3['_updateFootnotesCounters'](_0x3cd9c2),_0x267312;});}['_defineFormatter'](){const {editor:_0x411778}=this;_0x411778['plugins']['get'](c)['setFootnoteFormatter'](_0x5adcc4=>this['_formatFootnoteListValue'](_0x5adcc4));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2a601e,value:_0x25030b,digits:_0x1264b2}){const _0x38bea9=_0x2a601e['getAttribute']('footnotesListStyle'),_0x509dba=_0x2a601e['getAttribute']('footnotesListStart'),_0x21c00b=Math['floor'](_0x25030b)+(_0x509dba??0x1)-0x1;switch(_0x38bea9){case'decimal-leading-zero':return function(_0x509652,_0x2e543c){return String(_0x509652)['padStart'](_0x2e543c,'0');}(_0x21c00b,Math['max'](0x2,_0x1264b2));case'lower-alpha':case'lower-latin':return M(_0x21c00b,!0x1);case'upper-alpha':case'upper-latin':return M(_0x21c00b,!0x0);case'lower-roman':return V(_0x21c00b,!0x1);case'upper-roman':return V(_0x21c00b,!0x0);default:return String(_0x21c00b);}}}function C(_0x1b1fa5,_0x3062ba){const _0x6552b2=_0x3062ba['toViewElement'](_0x1b1fa5);return Array['from'](_0x6552b2['getChildren']())['find'](_0x1f2382=>_0x1f2382['is']('element','ol')&&_0x1f2382['hasClass']('footnotes-list'));}function M(_0x5b7e21,_0x2d7c33){let _0x3404ab='',_0x8c117e=_0x5b7e21;for(;_0x8c117e>0x0;){const _0xa13cd8=(_0x8c117e-0x1)%0x1a;_0x3404ab=String['fromCharCode'](0x61+_0xa13cd8)+_0x3404ab,_0x8c117e=Math['floor']((_0x8c117e-0x1)/0x1a);}return _0x2d7c33?_0x3404ab['toUpperCase']():_0x3404ab;}const N=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function V(_0x42ea28,_0x536edc){let _0x2a4c36='',_0x91ecd3=_0x42ea28;for(const {value:_0x35db6e,numeral:_0x5f3d26}of N)for(;_0x91ecd3>=_0x35db6e;)_0x2a4c36+=_0x5f3d26,_0x91ecd3-=_0x35db6e;return _0x536edc?_0x2a4c36:_0x2a4c36['toLowerCase']();}class H extends _0x5b7187{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x4feebe();['focusCycler'];constructor(_0x42f759,{styleButtonViews:_0x3143ef,styleGridAriaLabel:_0x4fb53d}){super(_0x42f759),(this['focusCycler']=new _0xcde62c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3143ef,_0x4fb53d),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x5e1e2d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5e1e2d['element']);_0x3d2f80({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x426def=_0x577fc8=>_0x577fc8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x426def),this['keystrokes']['set']('arrowleft',_0x426def),this['keystrokes']['set']('arrowup',_0x426def),this['keystrokes']['set']('arrowdown',_0x426def);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1c7094,_0x463942){const _0x570df6=new _0x5b7187(this['locale']);return _0x570df6['children']=_0x570df6['createCollection'](),_0x570df6['children']['addMany'](_0x1c7094),_0x570df6['setTemplate']({'tag':'div','attributes':{'aria-label':_0x463942,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x570df6['children']}),_0x570df6['children']['delegate']('execute')['to'](this),_0x570df6['focus']=function(){for(const _0x2faa41 of this['children'])if(_0x2faa41 instanceof _0x1d8b5f&&_0x2faa41['isOn'])return void _0x2faa41['focus']();this['children']['first']['focus']();},_0x570df6['focusTracker']=new et(),_0x570df6['keystrokes']=new ot(),_0x570df6['render'](),_0x570df6['keystrokes']['listenTo'](_0x570df6['element']),this['children']['add'](_0x570df6),_0x570df6;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2d4f0d=this['_createStartIndexPropertyView'](),_0x56feab=[_0x2d4f0d],_0x435eee=new tt(this['locale'],_0x56feab);return _0x435eee['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x435eee['buttonView']['bind']('isEnabled')['toMany'](_0x56feab,'isEnabled',(..._0x1032f8)=>_0x1032f8['some'](_0x2e4dbf=>_0x2e4dbf)),_0x435eee['buttonView']['on']('change:isEnabled',(_0x215fa3,_0x24352f,_0x46b130)=>{_0x46b130||(_0x435eee['isCollapsed']=!0x0);}),this['children']['add'](_0x435eee),[_0x2d4f0d,_0x435eee];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2a852f=new st(this['locale'],it);return _0x2a852f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2a852f['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2a852f['fieldView']['on']('input',()=>{const _0x2d2c66=_0x2a852f['fieldView']['element'],_0x150735=_0x2d2c66['valueAsNumber'];Number['isNaN'](_0x150735)?_0x2a852f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2d2c66['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x150735}):_0x2a852f['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2a852f;}}class j extends _0xcea80{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2321b8,_0x363de1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b54a3}=this,{componentFactory:_0x49934d}=_0x5b54a3['ui'];_0x5b54a3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x49934d['add']('footnotesStyle',function(_0x1fe322){return _0x1d1187=>{const {t:t}=_0x1d1187,_0x140ae7=_0x1fe322['commands']['get']('footnotesStyle'),_0x34bf6b=_0x17c049(_0x1d1187),{buttonView:_0x190be5}=_0x34bf6b;return _0x34bf6b['class']='ck-footnotes-styles-dropdown',_0x34bf6b['bind']('isEnabled')['to'](_0x140ae7,'isEnabled'),_0x190be5['set']({'label':t('Footnotes\x20style'),'icon':_0x3be37e,'tooltip':!0x0}),_0x34bf6b['once']('change:isOpen',()=>{const _0x2e2384=function({editor:_0x315bc2,dropdownView:_0x13b675}){const {t:t}=_0x315bc2['locale'],_0x46f964=t('Footnotes\x20definitions\x20styles'),_0x2f1074=function(_0x47ed73){const t=_0x47ed73['locale']['t'],_0x2fc788=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x565230},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4fc1f9},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x517c41},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1ceb52},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xd9e409},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x226891}];return _0x2fc788['map'](function(_0x58bb72){const _0x53544a=_0x58bb72['locale'];return({label:_0x31a9c9,icon:_0x42ecd9,tooltip:_0x3ab232,style:_0x4f64d})=>{const _0x45c0ec=_0x58bb72['commands']['get']('footnotesStyle'),_0x53bb9c=new _0x1d8b5f(_0x53544a);return _0x53bb9c['set']({'label':_0x31a9c9,'icon':_0x42ecd9,'tooltip':_0x3ab232}),_0x53bb9c['bind']('isOn')['to'](_0x45c0ec,'value',_0x4cbffd=>_0x4cbffd===_0x4f64d),_0x53bb9c['bind']('isEnabled')['to'](_0x45c0ec,'isEnabled'),_0x53bb9c['on']('execute',()=>{_0x58bb72['execute']('footnotesStyle',{'value':_0x4f64d}),_0x58bb72['editing']['view']['focus']();}),_0x53bb9c;};}(_0x47ed73));}(_0x315bc2),_0x4c2233=new H(_0x315bc2['locale'],{'styleGridAriaLabel':_0x46f964,'styleButtonViews':_0x2f1074});return _0x4c2233['delegate']('execute')['to'](_0x13b675),_0x4c2233['on']('footnotesListStart',(_0xc5124d,_0x2a9a04)=>{_0x315bc2['execute']('footnotesStart',{'value':_0x2a9a04['startIndex']});}),_0x4c2233;}({'editor':_0x1fe322,'dropdownView':_0x34bf6b});_0x34bf6b['panelView']['children']['add'](_0x2e2384);}),_0x34bf6b;};}(_0x5b54a3));}['afterInit'](){const {editor:_0x4bbc58}=this,{t:t}=_0x4bbc58['locale'],_0x55e5e0=_0x4bbc58['plugins']['get'](_0x363de1),{defaultPositions:_0x1d9beb}=_0x41aa3f;_0x55e5e0['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4bbc58['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1e6033=>{let _0x3b9e36=_0x1e6033['getFirstPosition']()?.['parent'];return _0x3b9e36?.['is']('$text')&&(_0x3b9e36=_0x3b9e36['parent']),_0x3b9e36?.['is']('element')?_0x3b9e36['findAncestor'](J):null;},'positions':[_0x1d9beb['southArrowNorth'],_0x1d9beb['southArrowNorthMiddleWest'],_0x1d9beb['southArrowNorthMiddleEast'],_0x1d9beb['southArrowNorthWest'],_0x1d9beb['southArrowNorthEast'],_0x1d9beb['northArrowSouth'],_0x1d9beb['northArrowSouthMiddleWest'],_0x1d9beb['northArrowSouthMiddleEast'],_0x1d9beb['northArrowSouthWest'],_0x1d9beb['northArrowSouthEast'],_0x1d9beb['viewportStickyNorth']]});}}class lt extends _0xcea80{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x159ee2,Command as _0xdfca9b}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3e60ed,isWidget as _0x59857d,toWidgetEditable as _0x2837be,WidgetToolbarRepository as _0x5056f8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3d9da6,logWarning as _0x5a8c29,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5eccae,ClickObserver as _0x117457}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xe7051a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x36cf87,ButtonView as _0x1e890f,View as _0x4ac842,ViewCollection as _0x43f46e,FocusCycler as _0x1bea9e,addKeyboardHandlingForGrid as _0x534e1f,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x55aa71,BalloonPanelView as _0x4f6eb3,createDropdown as _0x29e202}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xa6776d,IconListStyleDecimal as _0x420b8a,IconListStyleDecimalLeadingZero as _0x46a556,IconListStyleLowerRoman as _0x2f1382,IconListStyleUpperRoman as _0x435546,IconListStyleLowerLatin as _0x2237d3,IconListStyleUpperLatin as _0x5c1e20}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4484cc,_0x3c0222){this['_model']=_0x4484cc,this['_elementName']=_0x3c0222['elementName'],this['_getElementKey']=_0x3c0222['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x278b38){const _0x49fc8f=new Set(),_0x2338e0=new Map();for(const _0x43e8c8 of _0x278b38){if('insert'===_0x43e8c8['type']&&'$text'!==_0x43e8c8['name']&&_0x43e8c8['position']['nodeAfter']){const _0x1d1808=this['_model']['createRangeOn'](_0x43e8c8['position']['nodeAfter']);for(const _0x135b4a of _0x1d1808['getItems']()){if(!_0x135b4a['is']('element',this['_elementName']))continue;const _0x1471fc=this['_getElementKey'](_0x135b4a);_0x2338e0['has'](_0x1471fc)||_0x2338e0['set'](_0x1471fc,[]),_0x2338e0['get'](_0x1471fc)['push'](_0x135b4a);}}if('remove'===_0x43e8c8['type']&&_0x43e8c8['name']===this['_elementName']){const _0x538645=this['_getElementKey']({'getAttribute':_0x4dbdb3=>_0x43e8c8['attributes']['get'](_0x4dbdb3)});_0x49fc8f['add'](_0x538645);}}for(const [_0x48281f,_0x9517b7]of this['_trackedElements'])'$graveyard'===_0x9517b7['root']['rootName']&&_0x49fc8f['add'](_0x48281f);for(const _0x4cfac1 of _0x49fc8f)this['_trackedElements']['delete'](_0x4cfac1);for(const [_0x1325d7,_0x3b0b58]of _0x2338e0)this['_trackedElements']['set'](_0x1325d7,_0x3b0b58[_0x3b0b58['length']-0x1]);const _0x472689=new Set();for(const [_0x5b7541,_0x38377e]of _0x2338e0)_0x49fc8f['has'](_0x5b7541)&&(_0x472689['add'](_0x38377e[0x0]),_0x38377e['length']>0x1?_0x2338e0['set'](_0x5b7541,_0x38377e['slice'](0x1)):_0x2338e0['delete'](_0x5b7541),_0x49fc8f['delete'](_0x5b7541));return{'removed':Array['from'](_0x49fc8f),'inserted':Array['from'](_0x2338e0['values']())['flat'](),'moved':Array['from'](_0x472689)};}}class c extends _0x159ee2{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfa2bb9){super(_0xfa2bb9),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x20cd76=>_0x20cd76['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x441559=>_0x441559['getAttribute']('footnoteId')});}['init'](){const {editor:_0x36be0d}=this,{model:_0xef7068,data:_0x26ec78}=_0x36be0d;_0xef7068['document']['registerPostFixer'](_0x1e0448=>{const _0x544f52=_0xef7068['document']['differ']['getChanges']();let _0x3449af=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x1e0448,_0x544f52)&&(_0x3449af=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x1e0448,_0x544f52)&&(_0x3449af=!0x0),this['_handleFootnoteReferencesChanges'](_0x1e0448,_0x544f52)&&(_0x3449af=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x1e0448)&&(_0x3449af=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x1e0448)&&(_0x3449af=!0x0),this['_sortFootnoteDefinitions'](_0x1e0448)&&(_0x3449af=!0x0),_0x3449af;}),this['listenTo'](_0xef7068['document'],'change:data',()=>{_0xef7068['enqueueChange']({'isUndoable':!0x1},_0x12873e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x12873e);});},{'priority':'low'}),this['listenTo'](_0x26ec78,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x27cbde){return this['_footnotes']['find'](_0xeac235=>_0xeac235['id']===_0x27cbde)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x251277){this['_footnoteFormatter']=_0x251277;}['_updateFootnotesCounters'](_0x9743a9,_0x3819b6=0x0){let _0x4561fb=!0x1;for(let _0x253e88=_0x3819b6;_0x253e88<this['_footnotes']['length'];_0x253e88++)this['_updateFootnoteRefCounter'](_0x9743a9,_0x253e88)&&(_0x4561fb=!0x0);return _0x4561fb;}['_insertEmptyFootnotesDefinitionsContainer'](_0x32189e,_0x5db217){const _0x152fb8=_0x32189e['createElement']('footnotesDefinitions',{});return _0x32189e['append'](_0x152fb8,_0x5db217),this['_footnotesDefinitions']=_0x152fb8,_0x152fb8;}['_ensureFootnotesDefinitionsContainerExists'](_0x10a642){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2e1a4c=this['_footnotes'][0x0]['reference']['root'],_0x42c29e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x10a642,_0x2e1a4c);for(const _0x44261e of this['_footnotes'])_0x44261e['definition']['parent']||_0x10a642['insert'](_0x44261e['definition'],_0x42c29e,'end');this['_updateFootnotesCounters'](_0x10a642);}['_handleFootnotesDefinitionsObjectChanges'](_0x5d5208,_0x6fdc03){let _0x2980f5=!0x1;const {inserted:_0x2a12a4,removed:_0x497997,moved:_0x988ff7}=this['_footnoteDefsContainerTracker']['getChanges'](_0x6fdc03);if(_0x988ff7['length']&&(this['_footnotesDefinitions']=_0x988ff7[0x0]),_0x2a12a4['length']){if(_0x2a12a4['length']>0x1||this['_footnotesDefinitions']&&_0x2a12a4['some'](_0xf9dffe=>_0xf9dffe!==this['_footnotesDefinitions'])){const _0x54578a=_0x5d5208['createElement']('footnotesDefinitions',{}),_0x5af8aa=[];this['_footnotesDefinitions']&&_0x5af8aa['push'](this['_footnotesDefinitions']),_0x5af8aa['push'](..._0x2a12a4),_0x5d5208['insert'](_0x54578a,_0x5af8aa[0x0],'before');for(const _0xc40f1d of _0x5af8aa)_0x5d5208['move'](_0x5d5208['createRangeIn'](_0xc40f1d),_0x5d5208['createPositionAt'](_0x54578a,'end')),_0x5d5208['remove'](_0xc40f1d);this['_footnotesDefinitions']=_0x54578a,this['_updateFootnotesCounters'](_0x5d5208),_0x2980f5=!0x0;}else this['_footnotesDefinitions']=_0x2a12a4[0x0];}if(_0x497997['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x5ab413 of this['_footnotes'])_0x5d5208['remove'](_0x5ab413['reference']),_0x2980f5=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2980f5;}['_handleFootnoteDefinitionsChanges'](_0x2ba7a5,_0x3bcc00){let _0x2fd659=!0x1;const _0x1ce515=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x301003,moved:_0x126d3e}=this['_footnoteDefsTracker']['getChanges'](_0x3bcc00);for(const _0x21fd6c of[..._0x126d3e,..._0x301003]){const _0xfa838a=_0x21fd6c['getAttribute']('footnoteId'),_0x46ace2=this['getFootnote'](_0xfa838a);_0x46ace2&&(_0x46ace2['definition']=_0x21fd6c),_(_0x2ba7a5,_0x1ce515,_0x21fd6c)&&(_0x2fd659=!0x0);}return _0x2fd659;}['_handleFootnoteReferencesChanges'](_0xc332fd,_0x3a3667){let _0x449cf2=!0x1;const {removed:_0x3bcd17,inserted:_0x25bda7,moved:_0x5d2ee9}=this['_footnoteRefsTracker']['getChanges'](_0x3a3667);for(const _0x1749b2 of _0x3bcd17)this['_handleRemoveFootnoteReferenceById'](_0xc332fd,_0x1749b2)&&(_0x449cf2=!0x0);for(const _0x22bb30 of _0x25bda7)this['_handleInsertedFootnoteReference'](_0xc332fd,_0x22bb30)&&(_0x449cf2=!0x0);for(const _0x976b4a of _0x5d2ee9)this['_handleMovedFootnoteReference'](_0xc332fd,_0x976b4a)&&(_0x449cf2=!0x0);return _0x449cf2;}['_handleFootnotesDefinitionsObjectSync'](_0x5e4309){if(!this['_footnotesDefinitions'])return!0x1;let _0x170e5b=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x9645af=[];for(const _0x2a115a of this['_footnotesDefinitions']['getChildren']()){const _0xdf7cb2=_0x2a115a['getAttribute']('footnoteId');this['getFootnote'](_0xdf7cb2)||(_0x9645af['unshift'](_0x2a115a),_0x170e5b=!0x0);}for(const _0x1209e1 of _0x9645af)_0x5e4309['remove'](_0x1209e1);}const _0x5df128=new Set(),_0x68b757=[];for(const _0x34b31b of this['_footnotesDefinitions']['getChildren']()){const _0x13b626=_0x34b31b['getAttribute']('footnoteId');_0x5df128['has'](_0x13b626)?(_0x68b757['unshift'](_0x34b31b),_0x170e5b=!0x0):_0x5df128['add'](_0x13b626);}for(const _0x26192c of _0x68b757)_0x5e4309['remove'](_0x26192c);return this['_footnotesDefinitions']['childCount']||(_0x5e4309['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x170e5b=!0x0),_0x170e5b;}['_handleInsertedFootnoteReference'](_0x37c4d4,_0xe61469){if(this['_footnotes']['find'](_0x216c14=>_0x216c14['reference']===_0xe61469))return!0x1;let _0x2b8065=!0x1;const _0x195d01=_0xe61469['getAttribute']('footnoteId'),_0x3baf43=this['getFootnote'](_0x195d01);_0x3baf43&&(_0x37c4d4['remove'](_0x3baf43['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x35e5ea=>_0x35e5ea['id']!==_0x195d01),_0x2b8065=!0x0);let _0x46f56d=this['_footnotesDefinitions']?function(_0x2d04b4,_0x5ac024){for(const _0x237158 of _0x2d04b4['getChildren']())if(_0x237158['getAttribute']('footnoteId')===_0x5ac024)return _0x237158;return null;}(this['_footnotesDefinitions'],_0x195d01):null;_0x46f56d||(_0x46f56d=_0x37c4d4['createElement']('footnoteDefinition',{'footnoteId':_0x195d01}),this['_footnotesDefinitions']&&(_0x37c4d4['insert'](_0x46f56d,this['_footnotesDefinitions'],'end'),_0x2b8065=!0x0));const _0x201859={'id':_0x195d01,'reference':_0xe61469,'definition':_0x46f56d},_0x5534c2=I(this['editor']['model'],this['_footnotes'],_0xe61469);return this['_footnotes']['splice'](_0x5534c2,0x0,_0x201859),this['_updateFootnotesCounters'](_0x37c4d4,_0x5534c2)&&(_0x2b8065=!0x0),_0x2b8065;}['_handleRemoveFootnoteReferenceById'](_0x3bc2be,_0x1489f2){const _0x532cee=this['_footnotes']['findIndex'](_0x46ae6d=>_0x46ae6d['id']===_0x1489f2);if(-0x1===_0x532cee)return!0x1;let _0x16e507=!0x1;const _0x5384bb=this['_footnotes'][_0x532cee];return'$graveyard'!==_0x5384bb['definition']['root']['rootName']&&(_0x3bc2be['remove'](_0x5384bb['definition']),_0x16e507=!0x0),this['_footnotes']['splice'](_0x532cee,0x1),this['_updateFootnotesCounters'](_0x3bc2be,_0x532cee)&&(_0x16e507=!0x0),_0x16e507;}['_handleMovedFootnoteReference'](_0x390b6e,_0x3dba16){const _0x43d0fe=_0x3dba16['getAttribute']('footnoteId'),_0x24b3a3=this['_footnotes']['findIndex'](_0x3f28be=>_0x3f28be['id']===_0x43d0fe),_0x3b0d84=this['_footnotes'][_0x24b3a3];let _0x4aee9c=!0x1;_0x3b0d84['reference']=_0x3dba16,this['_footnotes']['splice'](_0x24b3a3,0x1);const _0x5c46ea=I(this['editor']['model'],this['_footnotes'],_0x3dba16);return this['_footnotes']['splice'](_0x5c46ea,0x0,_0x3b0d84),this['_updateFootnotesCounters'](_0x390b6e,Math['min'](_0x24b3a3,_0x5c46ea))&&(_0x4aee9c=!0x0),_0x4aee9c;}['_updateFootnoteRefCounter'](_0x13ce14,_0x4119c2){if(!this['_footnotesDefinitions'])return!0x1;const _0xfe0f=this['_footnotes'][_0x4119c2];let _0x2676b7;return _0x2676b7=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xfe0f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4119c2+0x1}):String(_0x4119c2+0x1),_0xfe0f['reference']['getAttribute']('footnoteCounter')!=_0x2676b7&&(_0x13ce14['setAttribute']('footnoteCounter',_0x2676b7,_0xfe0f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x75760b){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x4d5750,_0x540365){if(_0x4d5750['length']!==_0x540365['length'])return!0x1;for(let _0x39af9d=0x0;_0x39af9d<_0x4d5750['length'];_0x39af9d++)if(_0x4d5750[_0x39af9d]!==_0x540365[_0x39af9d])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5bf319=>_0x5bf319['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x507497=>_0x507497['getAttribute']('footnoteId'))))return!0x1;let _0x39a323=!0x1;for(let _0x3145d1=0x0;_0x3145d1<this['_footnotes']['length'];_0x3145d1++){const _0x546b1=this['_footnotes'][_0x3145d1],_0x14e018=_0x75760b['createPositionBefore'](_0x546b1['definition']),_0x3da732=_0x75760b['createPositionAt'](this['_footnotesDefinitions'],_0x3145d1);_0x14e018['isEqual'](_0x3da732)||(_0x75760b['move'](_0x75760b['createRangeOn'](_0x546b1['definition']),_0x3da732),_0x39a323=!0x0);}return _0x39a323;}['_ensureFootnotesReferencesHaveProperOrder'](_0xb466a3){if(!this['_footnotes']['length'])return!0x1;const {model:_0x30b487}=this['editor'];let _0x139b3a=!0x1;for(let _0x577b84=0x0;_0x577b84<this['_footnotes']['length']-0x1;_0x577b84++){const _0x245983=this['_footnotes'][_0x577b84],_0x193c10=this['_footnotes'][_0x577b84+0x1],_0x49be08=_0x30b487['createPositionBefore'](_0x245983['reference']),_0x40af7c=_0x30b487['createPositionBefore'](_0x193c10['reference']);'after'===_0x49be08['compareWith'](_0x40af7c)&&(this['_handleMovedFootnoteReference'](_0xb466a3,_0x245983['reference']),_0x577b84=-0x1,_0x139b3a=!0x0);}return _0x139b3a;}}function _(_0x1805db,_0x4adbc3,_0x22859c){if(_0x22859c['childCount'])return!0x1;const _0x4bf88f=_0x4adbc3?'paragraph':'footnoteInlineContent';return _0x1805db['insert'](_0x1805db['createElement'](_0x4bf88f),_0x22859c),!0x0;}function I(_0x14dd8b,_0xea72ea,_0x697ee7){if(0x0===_0xea72ea['length'])return 0x0;const _0x49f797=_0x14dd8b['createPositionBefore'](_0x697ee7);for(let _0x3f17cf=0x0;_0x3f17cf<_0xea72ea['length'];_0x3f17cf++){const _0x3d8582=_0xea72ea[_0x3f17cf],_0x4be44a=_0x14dd8b['createPositionBefore'](_0x3d8582['reference']);if('before'===_0x49f797['compareWith'](_0x4be44a))return _0x3f17cf;}const _0x53e5d0=_0x697ee7['root'];let _0x4682f9=-0x1;for(let _0x3f226f=_0xea72ea['length']-0x1;_0x3f226f>=0x0;_0x3f226f--)if(_0xea72ea[_0x3f226f]['reference']['root']===_0x53e5d0){_0x4682f9=_0x3f226f;break;}if(-0x1!==_0x4682f9)return _0x4682f9+0x1;const _0x2374f3=_0x14dd8b['document']['getRootNames'](),_0x237e96=_0x2374f3['indexOf'](_0x53e5d0['rootName']),_0x3637b6=_0x2374f3[_0x237e96+0x1];if(_0x3637b6){for(let _0x4cbf60=0x0;_0x4cbf60<_0xea72ea['length'];_0x4cbf60++)if(_0xea72ea[_0x4cbf60]['reference']['root']['rootName']===_0x3637b6)return _0x4cbf60;}return _0xea72ea['length'];}class w extends _0xdfca9b{['refresh'](){const _0x1b62d1=this['editor']['model']['document']['selection'],_0x52a8d4=this['_getPositionToInsertFootnote'](_0x1b62d1);this['isEnabled']=!!_0x52a8d4;}['execute'](_0x46775b){const {editor:_0x51f1ed}=this,{model:_0x58419a}=_0x51f1ed,{selection:_0x24e4f5}=_0x58419a['document'],_0x23defa=this['_getPositionToInsertFootnote'](_0x24e4f5);if(!_0x23defa)return;const _0x26b17a=_0x51f1ed['plugins']['get']('FootnotesEditing'),_0x264022=_0x46775b?.['footnoteId']??_0x3d9da6();!function(_0x3ae19b){return'string'==typeof _0x3ae19b&&_0x3ae19b['length']>0x0&&!/\s/['test'](_0x3ae19b)&&!/^\d/['test'](_0x3ae19b);}(_0x264022)?_0x5a8c29('insert-footnote-command-executed-with-invalid-id'):(_0x58419a['change'](_0x1c0098=>{const _0x1587ba=_0x1c0098['createElement']('footnoteRef',{'footnoteId':_0x264022});_0x58419a['insertObject'](_0x1587ba,_0x23defa,null);}),_0x26b17a['_moveSelectionToFootnoteDefinition'](_0x264022));}['_getPositionToInsertFootnote'](_0x18eb43){const {model:_0x10b97c}=this['editor'],{schema:_0x3c4936}=_0x10b97c,_0x51455e=_0x18eb43['getFirstRange']();for(const _0x5d9cfa of _0x51455e['getItems']())if(_0x3c4936['isBlock'](_0x5d9cfa)||_0x3c4936['isObject'](_0x5d9cfa))return null;const _0x2ca35e=_0x51455e['end'];return _0x3c4936['checkChild'](_0x2ca35e,'footnoteRef')?_0x2ca35e:null;}}class r extends _0x159ee2{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3120f4}=this;_0x3120f4['config']['define']('footnotes.multiBlock',!0x0),_0x3120f4['commands']['add']('insertFootnote',new w(_0x3120f4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x280890){const _0x457031=_0x3c214e([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]),_0x13bcfa=0x47a28506,_0x1c7460=0x47a5f236^_0x13bcfa,_0x771845=window[_0x3c214e([0x44,0x61,0x74,0x65])][_0x3c214e([0x6e,0x6f,0x77])](),_0x24e49d=_0x280890[_0x3c214e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5379b0=new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5cc5=>{_0x24e49d[_0x3c214e([0x6f,0x6e,0x63,0x65])](_0x3c214e([0x72,0x65,0x61,0x64,0x79]),_0x4f5cc5);}),_0x5474f6={[_0x3c214e([0x6b,0x74,0x79])]:_0x3c214e([0x45,0x43]),[_0x3c214e([0x75,0x73,0x65])]:_0x3c214e([0x73,0x69,0x67]),[_0x3c214e([0x63,0x72,0x76])]:_0x3c214e([0x50,0x2d,0x32,0x35,0x36]),[_0x3c214e([0x78])]:_0x3c214e([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]),[_0x3c214e([0x79])]:_0x3c214e([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]),[_0x3c214e([0x61,0x6c,0x67])]:_0x3c214e([0x45,0x53,0x32,0x35,0x36])},_0x593217=_0x24e49d[_0x3c214e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c214e([0x67,0x65,0x74])](_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc4da0d(){let _0x4c2b5c,_0x50b41f=null,_0x1e4ce0=null;try{if(_0x593217==_0x3c214e([0x47,0x50,0x4c]))return _0x3c214e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c2b5c=_0x1c1e10(),!_0x4c2b5c)return _0x3c214e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c2b5c[_0x3c214e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e4ce0=_0x5bd743(_0x4c2b5c[_0x3c214e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c2b5c[_0x3c214e([0x6a,0x74,0x69])])),await _0x30526b()?_0x5ab7c0()?_0x1f5a15()?_0x3c214e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ef88e()?(_0x4c2b5c[_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c214e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50b41f=_0x5e0886(_0x3c214e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c2b5c[_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c214e([0x74,0x72,0x69,0x61,0x6c])&&(_0x50b41f=_0x5e0886(_0x3c214e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x352931()):_0x3c214e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c214e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c214e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c214e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f5a15(){const _0x36af62=[_0x3c214e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c214e([0x74,0x72,0x69,0x61,0x6c])][_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c2b5c[_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x771845/0x3e8:0xe10*_0x1c7460;return _0x4c2b5c[_0x3c214e([0x65,0x78,0x70])]<_0x36af62;}function _0x5ab7c0(){const _0x53e2c6=_0x4c2b5c[_0x3c214e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53e2c6&&(!!_0x53e2c6[_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c214e([0x2a]))||!!_0x53e2c6[_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c214e([0x46,0x4f,0x4f])));}function _0x2ef88e(){const _0x5165f5=_0x4c2b5c[_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5165f5||0x0==_0x5165f5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cc440}=new URL(window[_0x3c214e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5165f5[_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc440))return!0x0;const _0x2df46c=_0x2cc440[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])](_0x3c214e([0x2e]));return _0x5165f5[_0x3c214e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54c3dd=>_0x54c3dd[_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c214e([0x2a])))[_0x3c214e([0x6d,0x61,0x70])](_0x2e637e=>_0x2e637e[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])](_0x3c214e([0x2e])))[_0x3c214e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x459808=>_0x459808[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2df46c[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c214e([0x6d,0x61,0x70])](_0x53d87b=>Array(_0x2df46c[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53d87b[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c214e([0x66,0x69,0x6c,0x6c])](_0x53d87b[0x0]===_0x3c214e([0x2a])?_0x3c214e([0x2a]):'')[_0x3c214e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53d87b))[_0x3c214e([0x73,0x6f,0x6d,0x65])](_0x43c795=>_0x2df46c[_0x3c214e([0x65,0x76,0x65,0x72,0x79])]((_0x17a511,_0xc909a6)=>_0x43c795[_0xc909a6]===_0x17a511||_0x43c795[_0xc909a6]===_0x3c214e([0x2a])));}function _0x352931(){return _0x50b41f&&_0x1e4ce0?new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1eb546,_0x500aaa)=>{_0x50b41f[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x1eb546,_0x500aaa),_0x1e4ce0[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x201cac=>{_0x201cac!=_0x3c214e([0x56,0x61,0x6c,0x69,0x64])&&_0x1eb546(_0x201cac);},_0x500aaa);}):_0x50b41f||_0x1e4ce0||_0x3c214e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5bd743(_0x33578b,_0x1fd32a){return new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23220c=>{if(_0x5ee2b2())return _0x23220c(_0x3c214e([0x56,0x61,0x6c,0x69,0x64]));_0x1055a7(),_0x24e49d[_0x3c214e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c214e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c7392=!0x1;const _0x4bfbfb=_0x3d9da6();function _0xdb9400(_0x1e5100){return!!_0x1e5100&&(typeof _0x1e5100===_0x3c214e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e5100===_0x3c214e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e5100[_0x3c214e([0x74,0x68,0x65,0x6e])]===_0x3c214e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e5100[_0x3c214e([0x63,0x61,0x74,0x63,0x68])]===_0x3c214e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bbdc6(_0x2496fc){_0x310cf5(_0x2496fc)[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x208f69=>{if(!_0x208f69||_0x208f69[_0x3c214e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c214e([0x6f,0x6b]))return _0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a734e(_0x1a6b2c(_0x4bfbfb+_0x1fd32a))!=_0x208f69[_0x3c214e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c214e([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x36ad04=>(_0x5a2326(),_0x36ad04),()=>{const _0x5a4a5c=_0x263b64();return null==_0x5a4a5c?(_0x5a2326(),_0x3c214e([0x56,0x61,0x6c,0x69,0x64])):_0x3c214e(_0x771845-_0x5a4a5c>(0x63ae0106^_0x13bcfa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x23220c)[_0x3c214e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23220c(_0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fb7b9=0x47946b86^_0x13bcfa;function _0x5a2326(){const _0xc448f7=_0x3c214e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a734e(_0x1a6b2c(_0x33578b)),_0x4ef198=_0x51ddf9(_0x3a734e(window[_0x3c214e([0x4d,0x61,0x74,0x68])][_0x3c214e([0x63,0x65,0x69,0x6c])](_0x771845/_0x4fb7b9)));window[_0x3c214e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c214e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc448f7,_0x4ef198);}function _0x263b64(){const _0x275553=_0x3c214e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a734e(_0x1a6b2c(_0x33578b)),_0x299c3f=window[_0x3c214e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c214e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x275553);return _0x299c3f?window[_0x3c214e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ddf9(_0x299c3f),0x10)*_0x4fb7b9:null;}function _0x310cf5(_0x48fcba){return new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26ca6e,_0x4e6fda)=>{_0x48fcba[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x26ca6e,_0x4e6fda),window[_0x3c214e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6fda,0x47a351c6^_0x13bcfa);});}}_0x24e49d[_0x3c214e([0x6f,0x6e])](_0x3c214e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b21dd,_0x20bf5e)=>{if(_0x20bf5e[0x0]!=_0x33578b)return _0x23220c(_0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20bf5e[0x1]={..._0x20bf5e[0x1],[_0x3c214e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4bfbfb};},{[_0x3c214e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c214e([0x68,0x69,0x67,0x68])}),_0x24e49d[_0x3c214e([0x6f,0x6e])](_0x3c214e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc828fb=>{_0xdb9400(_0xc828fb[_0x3c214e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c7392=!0x0,_0x5bbdc6(_0xc828fb[_0x3c214e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c214e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c214e([0x6c,0x6f,0x77])}),_0x5379b0[_0x3c214e([0x74,0x68,0x65,0x6e])](()=>{_0x5c7392||_0x23220c(_0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ee2b2(){return _0x24e49d[_0x3c214e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c214e([0x76,0x69,0x65,0x77])][_0x3c214e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c214e([0x61,0x75,0x74,0x6f]);}function _0x1055a7(){_0x24e49d[_0x3c214e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c214e([0x76,0x69,0x65,0x77])][_0x3c214e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c214e([0x61,0x75,0x74,0x6f]);}}function _0x5e0886(_0x217f6c){const _0x51cd76=[new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3eb05c=>setTimeout(_0x3eb05c,0x47abbbca^_0x13bcfa)),_0x5379b0[_0x3c214e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dbec2=>{let _0x8c681=0x0;_0x24e49d[_0x3c214e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c214e([0x6f,0x6e])](_0x3c214e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x137783,_0x46b1fd)=>{_0x46b1fd[0x0][_0x3c214e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8c681++,_0x8c681==(0x47a284fe^_0x13bcfa)&&(_0x2dbec2(),_0x137783[_0x3c214e([0x6f,0x66,0x66])]());});}))];return window[_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c214e([0x72,0x61,0x63,0x65])](_0x51cd76)[_0x3c214e([0x74,0x68,0x65,0x6e])](()=>_0x217f6c);}async function _0x39b721(){await _0x5379b0,_0x24e49d[_0x3c214e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c214e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2722c7,_0x24e49d[_0x3c214e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c214e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2722c7,_0x24e49d[_0x3c214e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c214e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2b7638(_0x281fec){const _0xc87f6b=_0x26f2ab();_0x24e49d[_0xc87f6b]=_0x3c214e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x281fec,_0x281fec!=_0x3c214e([0x56,0x61,0x6c,0x69,0x64])&&_0x39b721();}function _0x26f2ab(){const _0x2c64c5=window[_0x3c214e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c214e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c214e([0x6e,0x6f,0x77])]())[_0x3c214e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c214e([0x2e]),'');let _0xe9a378=_0x3c214e([0x75]);for(let _0x168ec2=0x0;_0x168ec2<_0x2c64c5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x168ec2+=0x2){let _0x553a62=window[_0x3c214e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c64c5[_0x3c214e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x168ec2,_0x168ec2+0x2));_0x553a62>=_0x457031[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x553a62-=_0x457031[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe9a378+=_0x457031[_0x553a62];}return _0xe9a378;}function _0x1c1e10(){const _0x2ca2a5=_0x593217[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])](_0x3c214e([0x2e]));if(0x3!=_0x2ca2a5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13f9ba(_0x2ca2a5[0x1]);function _0x13f9ba(_0x41085c){const _0x160b7d=_0x2ec09d(_0x41085c);return _0x160b7d&&_0x719917()?_0x160b7d:null;function _0x719917(){const _0x787bb5=_0x160b7d[_0x3c214e([0x6a,0x74,0x69])],_0x5985e5=window[_0x3c214e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x787bb5[_0x3c214e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x787bb5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d12ed={..._0x160b7d,[_0x3c214e([0x6a,0x74,0x69])]:_0x787bb5[_0x3c214e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x787bb5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d12ed[_0x3c214e([0x76,0x63])],_0x1a6b2c(_0x1d12ed)==_0x5985e5;}}}async function _0x30526b(){let _0x2b3169=!0x0;try{const _0x3eb202=_0x593217[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])](_0x3c214e([0x2e])),[_0x1f60da,_0x59adc3,_0x3bd722]=_0x3eb202;return _0x28eb7d(_0x1f60da),await _0x4830e1(_0x1f60da,_0x59adc3,_0x3bd722),_0x2b3169;}catch{return!0x1;}function _0x28eb7d(_0x44aa10){const _0x2746d2=_0x2ec09d(_0x44aa10);_0x2746d2&&_0x2746d2[_0x3c214e([0x61,0x6c,0x67])]==_0x3c214e([0x45,0x53,0x32,0x35,0x36])||(_0x2b3169=!0x1);}async function _0x4830e1(_0x169723,_0x5166ce,_0x7c2f3){const _0x3273eb=window[_0x3c214e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c214e([0x66,0x72,0x6f,0x6d])](_0x4a2586(_0x7c2f3),_0x153483=>_0x153483[_0x3c214e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50ddb9=new window[(_0x3c214e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c214e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x169723+_0x3c214e([0x2e])+_0x5166ce),_0x225648=window[_0x3c214e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c214e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x225648)return;const _0x2ebce3=await _0x225648[_0x3c214e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c214e([0x6a,0x77,0x6b]),_0x5474f6,{[_0x3c214e([0x6e,0x61,0x6d,0x65])]:_0x3c214e([0x45,0x43,0x44,0x53,0x41]),[_0x3c214e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c214e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c214e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x225648[_0x3c214e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c214e([0x6e,0x61,0x6d,0x65])]:_0x3c214e([0x45,0x43,0x44,0x53,0x41]),[_0x3c214e([0x68,0x61,0x73,0x68])]:{[_0x3c214e([0x6e,0x61,0x6d,0x65])]:_0x3c214e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ebce3,_0x3273eb,_0x50ddb9)||(_0x2b3169=!0x1);}}function _0x2ec09d(_0x55320a){return _0x55320a[_0x3c214e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c214e([0x65,0x79]))?JSON[_0x3c214e([0x70,0x61,0x72,0x73,0x65])](_0x4a2586(_0x55320a)):null;}function _0x4a2586(_0x4fd9c1){return window[_0x3c214e([0x61,0x74,0x6f,0x62])](_0x4fd9c1[_0x3c214e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c214e([0x2b]))[_0x3c214e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c214e([0x2f])));}function _0x1a6b2c(_0x257bed){let _0x26a02e=0x1505;function _0x22828f(_0x2da697){for(let _0x485341=0x0;_0x485341<_0x2da697[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485341++){const _0x48674f=_0x2da697[_0x3c214e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x485341);_0x26a02e=(_0x26a02e<<0x5)+_0x26a02e+_0x48674f,_0x26a02e&=_0x26a02e;}}function _0x2c9615(_0x5ce73b){Array[_0x3c214e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ce73b)?_0x5ce73b[_0x3c214e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c9615):_0x5ce73b&&typeof _0x5ce73b==_0x3c214e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c214e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ce73b)[_0x3c214e([0x73,0x6f,0x72,0x74])]()[_0x3c214e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x707db7,_0x4432d5])=>{_0x22828f(_0x707db7),_0x2c9615(_0x4432d5);}):_0x22828f(window[_0x3c214e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ce73b));}return _0x2c9615(_0x257bed),_0x26a02e>>>0x0;}function _0x3a734e(_0x1f2839){return _0x1f2839[_0x3c214e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c214e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c214e([0x30]));}function _0x51ddf9(_0x2b8f2a){return _0x2b8f2a[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c214e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c214e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2722c7(){}function _0x3c214e(_0x3e9562){return _0x3e9562['map'](_0x35e4df=>String['fromCharCode'](_0x35e4df))['join']('');}_0x2b7638(await _0xc4da0d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5b718d){const {plugins:_0x3e1715,editing:_0x21fd11,model:_0x5107fe}=this['editor'],_0x91e443=_0x3e1715['get'](c)['getFootnote'](_0x5b718d);return!!_0x91e443&&(_0x5107fe['change'](_0x3b5793=>{_0x3b5793['setSelection'](_0x3b5793['createPositionAt'](_0x91e443['definition'],'end'));}),_0x21fd11['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2441e8){const {plugins:_0x6bdaab,editing:_0x908761,model:_0x3f7936}=this['editor'],_0x12f463=_0x6bdaab['get'](c)['getFootnote'](_0x2441e8);return!!_0x12f463&&(_0x3f7936['change'](_0x2ccf71=>{_0x2ccf71['setSelection'](_0x12f463['reference'],'on');}),_0x908761['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4632b8}=this['editor']['model'],_0x246b1f=this['editor']['config']['get']('footnotes.multiBlock');_0x4632b8['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4632b8['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4632b8['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x246b1f?_0x4632b8['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4632b8['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4632b8['addChildCheck'](_0xeb5c1d=>{for(const _0x3bb7d4 of _0xeb5c1d)if('footnoteDefinition'===_0x3bb7d4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x17aa7f}=this,{conversion:_0x373956,editing:_0x100be0}=_0x17aa7f,{t:t}=_0x17aa7f['locale'];_0x373956['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1bd684,{writer:_0x2a1e9f,consumable:_0x34c3b5})=>{const _0x3b7799=_0x1bd684['getChild'](0x0);if(!_0x3b7799||!_0x3b7799['is']('element','a'))return null;const _0x3ffd06=_0x3b7799['getAttribute']('href')||'';if(!_0x3ffd06['startsWith']('#'))return null;const _0x153306=_0x3ffd06['replace'](/^#/,'');if(!_0x153306)return null;_0x34c3b5['consume'](_0x3b7799,{'name':!0x0,'attributes':['href']});for(const {item:_0x3fb551}of _0x100be0['view']['createRangeIn'](_0x3b7799))_0x3fb551['is']('$textProxy')?_0x34c3b5['consume'](_0x3fb551['textNode'],{'name':!0x0}):_0x3fb551['is']('element')&&_0x34c3b5['consume'](_0x3fb551,{'name':!0x0});return _0x2a1e9f['createElement']('footnoteRef',{'footnoteId':_0x153306});}}),_0x373956['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x50d496,{writer:_0x41785c})=>D(_0x50d496,_0x41785c)}),_0x373956['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4204ac,{writer:_0x1da044})=>{const _0x115ec1=_0x4204ac['getAttribute']('footnoteCounter');return _0x3e60ed(D(_0x4204ac,_0x1da044),_0x1da044,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x115ec1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x9b8b3b}=this,{t:t}=_0x9b8b3b['locale'],{conversion:_0x445dac}=_0x9b8b3b;_0x445dac['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x445dac['for']('upcast')['add'](_0x18f0d3=>{_0x18f0d3['on']('element:ol',(_0x39c75c,_0x188987,_0x251921)=>{const _0xf325d2=_0x188987['viewItem'];if(!_0xf325d2['hasClass']('footnotes-list')||!_0x188987['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x251921['consumable']['consume'](_0xf325d2,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xadf1e0,modelCursor:_0x323cfe}=_0x251921['convertChildren'](_0x188987['viewItem'],_0x188987['modelCursor']);_0x188987['modelRange']=_0xadf1e0,_0x188987['modelCursor']=_0x323cfe;}),_0x18f0d3['on']('element:hr',(_0x307321,_0xb8dc57,_0x480710)=>{const _0x1ecde5=_0xb8dc57['viewItem'];_0x1ecde5['hasClass']('footnotes-divider')&&_0xb8dc57['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x480710['consumable']['consume'](_0x1ecde5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x445dac['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xb1081e,{writer:_0x959c71})=>g(_0x959c71)}),_0x445dac['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x364cc7,{writer:_0x218366})=>{const _0x3a5aa7=g(_0x218366,{'data-footnotes-list-label':t('Footnotes')}),_0xae7d5f=_0x3e60ed(_0x3a5aa7,_0x218366,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x218366['setCustomProperty']('footnotesDefinitions',!0x0,_0xae7d5f),_0xae7d5f;}});}['_defineDefinitionConverters'](){const {editor:_0x306467}=this,{conversion:_0x4f2d94,locale:_0x8617d}=_0x306467,_0x1ae9ef=_0x306467['config']['get']('footnotes.multiBlock');_0x4f2d94['for']('upcast')['add'](_0x58f8e9=>{_0x58f8e9['on']('element:li',(_0x57eb31,_0x1294f1,_0x2a0b8e)=>{const _0x44db1a=_0x1294f1['viewItem'];if(!_0x44db1a['hasClass']('footnote-definition')||!_0x44db1a['getAttribute']('id'))return;const _0x2397da=_0x44db1a['parent'];if(!_0x2397da['is']('element','ol')||!_0x2397da['hasClass']('footnotes-list'))return;if(!_0x2a0b8e['consumable']['test'](_0x44db1a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x517961=_0x2a0b8e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x44db1a['getAttribute']('id')});if(!_0x2a0b8e['safeInsert'](_0x517961,_0x1294f1['modelCursor']))return;_0x2a0b8e['consumable']['consume'](_0x44db1a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1d18b6=Array['from'](_0x44db1a['getChildren']())['find'](_0x498744=>_0x498744['is']('element')&&_0x498744['hasClass']('footnote-content'));for(const _0x396983 of _0x44db1a['getChildren']())_0x396983['is']('element')&&(_0x2a0b8e['consumable']['consume'](_0x396983,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2a0b8e['consumable']['consume'](_0x396983,{'name':!0x0,'classes':'footnote-content'}));if(_0x1d18b6){if(_0x1ae9ef)_0x2a0b8e['convertChildren'](_0x1d18b6,_0x517961);else{const _0x3352da=_0x2a0b8e['writer']['createElement']('footnoteInlineContent');_0x2a0b8e['writer']['insert'](_0x3352da,_0x517961),_0x2a0b8e['convertChildren'](_0x1d18b6,_0x3352da);}}_0x2a0b8e['updateConversionResult'](_0x517961,_0x1294f1);});}),_0x4f2d94['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x22a9dd,{writer:_0xa3ec9a})=>v(_0x22a9dd,_0xa3ec9a,_0x8617d,{'dataPipeline':!0x0})}),_0x4f2d94['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xb6dad9,{writer:_0x8d744d})=>v(_0xb6dad9,_0x8d744d,_0x8617d)});}['_defineBogusParagraphConverters'](){const {editor:_0x22c213}=this,{conversion:_0x3d77f8}=_0x22c213;_0x22c213['config']['get']('footnotes.multiBlock')?(_0x3d77f8['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x3d77f8['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x22c213['model']['document'],'change:data',()=>{!function(_0x110ff2,_0x55c8cc){const _0x4dc809=_0x110ff2['document']['differ'],_0x57c575=new Set();for(const _0x5df991 of _0x4dc809['getChanges']()){const _0x3ce696='attribute'==_0x5df991['type']?_0x5df991['range']['start']['parent']:_0x5df991['position']['parent'];_0x3ce696['is']('element','footnoteDefinition')&&_0x57c575['add'](_0x3ce696);}for(const _0x416279 of _0x57c575['values']()){const _0x4e5c0f=Array['from'](_0x416279['getChildren']())['filter'](_0x5dbd03=>p(_0x5dbd03,_0x55c8cc['mapper']));for(const _0x4c70c3 of _0x4e5c0f)_0x55c8cc['reconvertItem'](_0x4c70c3);}}(_0x22c213['model'],_0x22c213['editing']);})):(_0x3d77f8['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x3d77f8['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5b06d1,{writer:_0x497334})=>{const _0xe72fd2=_0x497334['createContainerElement']('span');return _0x497334['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xe72fd2),_0xe72fd2;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5871fe}=this,{editing:_0x39a05c,t:t}=_0x5871fe,_0x393220=_0x5871fe['model']['document']['selection'];_0x5871fe['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5871fe['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x39a05c['view']['document'],'enter',(_0x2623b2,_0x5d3027)=>{const _0x140989=function(_0x3d8377){const _0x1b7699=_0x3d8377['getSelectedElement']();if(_0x1b7699?.['is']('element','footnoteRef'))return _0x1b7699;return null;}(_0x393220);if(_0x140989){const _0x10518f=_0x140989['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x10518f),_0x5d3027['preventDefault'](),_0x2623b2['stop']();}},{'context':_0x59857d});}['_defineClickHandlers'](){const {editor:_0x355af7}=this,{editing:_0x69f2b}=_0x355af7;_0x355af7['editing']['view']['addObserver'](_0x5eccae),_0x355af7['editing']['view']['addObserver'](_0x117457);let _0x393db7=!0x1;this['listenTo'](_0x69f2b['view']['document'],'pointerdown',(_0xd5644a,_0x42bedc)=>{const {target:_0x983c41}=_0x42bedc,_0xd0e9fa=_0x69f2b['view']['document']['selection'];_0x393db7=!(!_0x983c41['is']('element','sup')||!_0x983c41['hasClass']('footnote'))&&_0xd0e9fa['getSelectedElement']()===_0x983c41;},{'priority':'high'}),this['listenTo'](_0x69f2b['view']['document'],'click',(_0x15ba9d,_0x57af5f)=>{const {target:_0x5e03d1}=_0x57af5f,_0x14aaed=_0x5e03d1['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x14aaed['slice'](0x1)),_0x15ba9d['stop'](),_0x57af5f['preventDefault']();},{'priority':'high','context':_0x38b6f5=>_0x38b6f5['is']('element','sup')&&_0x38b6f5['hasClass']('footnote')&&_0x393db7}),this['listenTo'](_0x69f2b['view']['document'],'click',(_0x41e38a,_0x451ccc)=>{const {target:_0x114c81}=_0x451ccc;if(!_0x114c81['is']('element','a'))return;let _0x4ce58b=_0x114c81['getAttribute']('href');if(!_0x4ce58b?.['startsWith']('#'))return;_0x4ce58b=_0x4ce58b['slice'](0x1);let _0x54740b=!0x1;(_0x4ce58b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4ce58b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4ce58b))&&(_0x54740b=!0x0),_0x54740b&&(_0x451ccc['preventDefault'](),_0x41e38a['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x1a5037}={}){return(_0x365aed,{writer:_0xf1f79a})=>{if(!h(_0x365aed))return null;if(!_0x1a5037)return _0xf1f79a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4a89c5=_0xf1f79a['createContainerElement']('p');return _0xf1f79a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4a89c5),_0x4a89c5;};}function h(_0x86a625){const {parent:_0x433916}=_0x86a625;if(!_0x433916?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x433916['childCount'])return!0x1;for(const _0xe01ec4 of _0x86a625['getAttributeKeys']())if(!_0xe01ec4['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xe01ec4)return!0x1;return!0x0;}function p(_0x137fbb,_0x31c145){if(!_0x137fbb['is']('element','paragraph'))return!0x1;const _0xe108fb=_0x31c145['toViewElement'](_0x137fbb);return!!_0xe108fb&&h(_0x137fbb)!==_0xe108fb['is']('element','span');}function J(_0x20ecfd){return _0x59857d(_0x20ecfd)&&_0x20ecfd['is']('containerElement')&&!!_0x20ecfd['getCustomProperty']('footnotesDefinitions');}function g(_0x13a865,_0x27a40f={}){const _0x2d6502=_0x13a865['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2fb3dc=_0x13a865['createContainerElement']('ol',{'class':'footnotes-list'},_0x13a865['createSlot']());return _0x13a865['createContainerElement']('div',{'class':'footnotes',..._0x27a40f},[_0x2d6502,_0x2fb3dc]);}function D(_0x247bc9,_0x5defed){const _0x3f680e=_0x247bc9['getAttribute']('footnoteId'),_0x37df4f=_0x247bc9['getAttribute']('footnoteCounter'),_0x2faf3d=_0x5defed['createUIElement']('a',{'href':'#'+_0x3f680e},function(_0x46cbf4){const _0x3dc1a1=this['toDomElement'](_0x46cbf4);return _0x3dc1a1['textContent']=_0x37df4f,_0x3dc1a1;}),_0x514b08=_0x5defed['createContainerElement']('sup',{'id':'ref-'+_0x3f680e,'class':'footnote'},[_0x2faf3d]);return _0x514b08['getFillerOffset']=()=>null,_0x514b08;}function v(_0x4dcfad,_0x570305,_0x49feef,{dataPipeline:_0x779851}={}){const {t:t}=_0x49feef,_0x21a8d2=_0x4dcfad['getAttribute']('footnoteId'),_0x5ba4dd=_0x570305['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x21a8d2},function(_0x4189f0){const _0x16c6a9=this['toDomElement'](_0x4189f0);return _0x16c6a9['innerText']='^',_0x16c6a9;}),_0x5f1620=_0x779851?_0x570305['createContainerElement']('div',{'class':'footnote-content'}):_0x2837be(_0x570305['createEditableElement']('div',{'class':'footnote-content'}),_0x570305,{'label':t('Footnote\x20content.')});return _0x570305['insert'](_0x570305['createPositionAt'](_0x5f1620,0x0),_0x570305['createSlot']()),_0x570305['createContainerElement']('li',{'class':'footnote-definition','id':_0x21a8d2},[_0x5ba4dd,_0x5f1620]);}class e extends _0x159ee2{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xe7051a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x246abe}=this,{plugins:_0x459924,model:_0x22ecca}=_0x246abe,_0x30448d=_0x459924['get'](_0xe7051a),_0x53c88c=_0x459924['get'](c);this['listenTo'](_0x30448d,'outputTransformation',(_0x4c1795,_0x342b8f)=>{const _0x2c7338=function(_0x4e14a8,_0x39b97d){const _0x2986b6=new Set();for(const {item:_0x467225}of _0x4e14a8['createRangeIn'](_0x39b97d))_0x467225['is']('element','footnoteRef')&&_0x2986b6['add'](_0x467225['getAttribute']('footnoteId'));return Array['from'](_0x2986b6);}(_0x22ecca,_0x342b8f['content']);if(!_0x2c7338['length'])return;const _0x108b2e=_0x53c88c['getFootnotes'](),_0x459f99=_0x2c7338['reduce']((_0x25dd3e,_0x30f988)=>{const _0x9846fd=_0x108b2e['find'](_0x272c01=>_0x272c01['id']===_0x30f988);if(_0x9846fd){const _0xdcfdb6=_0x246abe['data']['toView'](_0x9846fd['definition'],{'isClipboardPipeline':!0x0}),_0x4b2df7=_0x246abe['data']['htmlProcessor']['toData'](_0xdcfdb6);_0x25dd3e[_0x9846fd['id']]=_0x4b2df7;}return _0x25dd3e;},Object['create'](null));_0x342b8f['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x459f99));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x14347e}=this,{model:_0x2f3f45,plugins:_0x3d1066}=_0x14347e,{view:_0x2767b4}=_0x14347e['editing'],_0x34a615=_0x3d1066['get'](_0xe7051a),_0x524e9e=_0x3d1066['get'](c);let _0x51d6d1=null;this['listenTo'](_0x2767b4['document'],'clipboardInput',(_0x5e57a8,_0x14f5c9)=>{const _0x10406f=_0x14f5c9['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x51d6d1=_0x10406f?JSON['parse'](_0x10406f):null;}),this['listenTo'](_0x34a615,'contentInsertion',(_0x472ea9,_0x597993)=>{if(!_0x51d6d1)return;const _0x566d3b=_0x597993['sourceEditorId']===this['editor']['id'];_0x566d3b&&'drop'===_0x597993['method']||_0x2f3f45['change'](_0x31615c=>{!function(_0x1d290b,_0x72da75){const _0x557ef1=[];for(const {item:_0x3c9b14}of _0x1d290b['createRangeIn'](_0x72da75))_0x3c9b14['is']('element','footnotesDefinitions')&&_0x557ef1['push'](_0x3c9b14);for(const _0x581522 of _0x557ef1)_0x1d290b['remove'](_0x581522);}(_0x31615c,_0x597993['content']);let _0x229265=_0x524e9e['getFootnotesDefinitionsObjectElement']();if(!_0x229265){const _0x1be428=_0x2f3f45['document']['selection']['getFirstRange']()['root'];_0x229265=_0x524e9e['_insertEmptyFootnotesDefinitionsContainer'](_0x31615c,_0x1be428);}const _0x14b758=function(_0x485d3b,_0x44e4cd,_0x33d0d1){const _0x29ee7b=Object['create'](null);for(const {item:_0xdf9c24}of _0x485d3b['createRangeIn'](_0x44e4cd))if(_0xdf9c24['is']('element','footnoteRef')){const _0xc111=_0xdf9c24['getAttribute']('footnoteId');if(!_0x33d0d1(_0xc111))continue;_0x29ee7b[_0xc111]||(_0x29ee7b[_0xc111]=_0x3d9da6()),_0x485d3b['setAttribute']('footnoteId',_0x29ee7b[_0xc111],_0xdf9c24);}return _0x29ee7b;}(_0x31615c,_0x597993['content'],_0x108134=>!_0x566d3b||null!==_0x524e9e['getFootnote'](_0x108134));for(const [_0x58db02,_0x5572cc]of Object['entries'](_0x51d6d1)){const _0x2576f7=_0x14b758[_0x58db02]||_0x58db02,_0x371fd1=_0x31615c['createElement']('footnoteDefinition',{'footnoteId':_0x2576f7}),_0x56cf0f=_0x14347e['data']['htmlProcessor']['toView'](_0x5572cc),_0x1ec90a=_0x14347e['data']['toModel'](_0x56cf0f,_0x371fd1);_0x31615c['append'](_0x1ec90a,_0x371fd1),_0x31615c['insert'](_0x371fd1,_0x229265,'end');}_0x51d6d1=null;});});}}class i extends _0x159ee2{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3feb68}=this,{componentFactory:_0x35e8b5}=_0x3feb68['ui'];_0x35e8b5['add']('insertFootnote',x(_0x3feb68,_0x1e890f)),_0x35e8b5['add']('menuBar:insertFootnote',x(_0x3feb68,_0x36cf87)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58bb84=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37b752;for(const _0x41703b in _0x58bb84){const _0x8d7d3b=_0x41703b,_0x72511c=_0x58bb84[_0x8d7d3b];if('footnotesLicenseKeyValid'==_0x72511c||'footnotesLicenseKeyInvalid'==_0x72511c||'footnotesLicenseKeyExpired'==_0x72511c||'footnotesLicenseKeyDomainLimit'==_0x72511c||'footnotesLicenseKeyNotAllowed'==_0x72511c||'footnotesLicenseKeyEvaluationLimit'==_0x72511c||'footnotesLicenseKeyTrialLimit'==_0x72511c||'footnotesLicenseKeyUsageLimit'==_0x72511c){delete _0x58bb84[_0x8d7d3b],_0x37b752=_0x72511c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x37b752&&_0x58bb84['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x37b752&&_0x58bb84['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x37b752&&_0x58bb84['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x37b752&&_0x58bb84['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x37b752&&_0x58bb84['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x37b752&&_0x58bb84['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x37b752&&_0x58bb84['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x298fab,_0xcc071e){const _0x39d311=_0x298fab['commands']['get']('insertFootnote');return _0x58a8bd=>{const {t:t}=_0x58a8bd,_0x2f362f=new _0xcc071e(_0x58a8bd),_0x212fdb=_0x2f362f instanceof _0x36cf87;return _0x2f362f['bind']('isEnabled')['to'](_0x39d311,'isEnabled'),_0x2f362f['set']({'label':t(_0x212fdb?'Footnote':'Insert\x20footnote'),'icon':_0xa6776d,'tooltip':!0x0}),_0x2f362f['on']('execute',()=>{_0x39d311['execute'](),_0x298fab['editing']['view']['focus']();}),_0x2f362f;};}class nt extends _0x159ee2{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0xdfca9b{['refresh'](){const {editor:_0x4f0538}=this,_0x49853f=_0x4f0538['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x49853f,this['value']=_0x49853f?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x507ee0}){const {editor:_0x300b5d}=this,_0x51a5c6=_0x300b5d['plugins']['get'](c),_0x5ccf7c=_0x51a5c6['getFootnotesDefinitionsObjectElement']();_0x5ccf7c&&Q['includes'](_0x507ee0)&&_0x300b5d['model']['change'](_0x1d6470=>{_0x1d6470['setAttribute']('footnotesListStyle',_0x507ee0,_0x5ccf7c),_0x51a5c6['_updateFootnotesCounters'](_0x1d6470);});}}class b extends _0xdfca9b{['refresh'](){const {editor:_0xec298b}=this,_0x44ab60=_0xec298b['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x44ab60,this['value']=_0x44ab60?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1eed3f}){const {editor:_0x55ee6b}=this,_0x22b808=_0x55ee6b['plugins']['get'](c),_0x5b6507=_0x22b808['getFootnotesDefinitionsObjectElement']();_0x5b6507&&Number['isInteger'](_0x1eed3f)&&_0x55ee6b['model']['change'](_0x199537=>{_0x199537['setAttribute']('footnotesListStart',_0x1eed3f,_0x5b6507),_0x22b808['_updateFootnotesCounters'](_0x199537);});}}class P extends _0x159ee2{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4adfd5}=this;_0x4adfd5['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4adfd5['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4adfd5['commands']['add']('footnotesStyle',new S(_0x4adfd5)),_0x4adfd5['commands']['add']('footnotesStart',new b(_0x4adfd5)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x54a14f}=this,{schema:_0x32eddb}=_0x54a14f['model'];_0x32eddb['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x3c840c}=this,{conversion:_0x1534f4,model:_0x4a1a96}=_0x3c840c,{schema:_0x40597a}=_0x4a1a96;_0x1534f4['for']('upcast')['add'](_0x57e398=>{_0x57e398['on']('element:ol',(_0x15c66a,_0x5a3475,_0x350ac0)=>{const _0x544e11=_0x5a3475['viewItem'],_0x395f15=_0x5a3475['modelCursor']?.['parent'];_0x544e11['hasClass']('footnotes-list')&&_0x395f15?.['is']('element','footnotesDefinitions')&&(function(_0x459205,_0x29cfd7,_0x32dcac,_0x1488d6){if(!_0x1488d6['checkAttribute'](_0x29cfd7,'footnotesListStart'))return;let _0x470b32=0x1;const _0x309d4d=_0x32dcac['consumable']['consume'](_0x459205,{'attributes':'start'});if(_0x309d4d){const _0x407394=Number['parseInt'](_0x459205['getAttribute']('start'),0xa);Number['isNaN'](_0x407394)||(_0x470b32=_0x407394);}!_0x309d4d&&_0x29cfd7['hasAttribute']('footnotesListStart')||_0x32dcac['writer']['setAttribute']('footnotesListStart',_0x470b32,_0x29cfd7);}(_0x544e11,_0x395f15,_0x350ac0,_0x40597a),function(_0xf85cfa,_0x58285b,_0x4da006,_0x43f304){if(!_0x43f304['checkAttribute'](_0x58285b,'footnotesListStyle'))return;let _0x43e3c2='decimal',_0x28e0f5=!0x1;if(_0x4da006['consumable']['consume'](_0xf85cfa,{'attributes':'type'})){const _0x510ac0={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xf85cfa['getAttribute']('type')];_0x510ac0&&(_0x43e3c2=_0x510ac0),_0x28e0f5=!0x0;}_0x4da006['consumable']['consume'](_0xf85cfa,{'styles':'list-style-type'})&&(_0x43e3c2=_0xf85cfa['getStyle']('list-style-type'),_0x28e0f5=!0x0),!_0x28e0f5&&_0x58285b['hasAttribute']('footnotesListStyle')||_0x4da006['writer']['setAttribute']('footnotesListStyle',_0x43e3c2,_0x58285b);}(_0x544e11,_0x395f15,_0x350ac0,_0x40597a));});}),_0x1534f4['for']('downcast')['add'](_0x45be0a=>{_0x45be0a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x212a93,_0x329045,_0xbb1f71)=>{if(!_0xbb1f71['consumable']['consume'](_0x329045['item'],_0x212a93['name']))return;const _0x28ba98=C(_0x329045['item'],_0xbb1f71['mapper']),{attributeNewValue:_0xb6f552}=_0x329045;null==_0xb6f552||0x1===_0xb6f552?_0xbb1f71['writer']['removeAttribute']('start',_0x28ba98):_0xbb1f71['writer']['setAttribute']('start',String(_0xb6f552),_0x28ba98);}),_0x45be0a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x57eac1,_0x481ca3,_0x4db4ac)=>{if(!_0x4db4ac['consumable']['consume'](_0x481ca3['item'],_0x57eac1['name']))return;const _0x33b692=C(_0x481ca3['item'],_0x4db4ac['mapper']),{attributeNewValue:_0x145c65}=_0x481ca3;_0x145c65&&'decimal'!==_0x145c65?_0x4db4ac['writer']['setStyle']('list-style-type',_0x145c65,_0x33b692):_0x4db4ac['writer']['removeStyle']('list-style-type',_0x33b692);});});}['_definePostfixer'](){const {editor:_0xe42bf5}=this,{model:_0x3b13e7}=_0xe42bf5,_0x2ebca1=_0xe42bf5['plugins']['get'](c),_0x247dd6=this['_getDefaultListStyle'](),_0x1e0318=this['_getDefaultStartIndex']();_0x3b13e7['document']['registerPostFixer'](_0x44e35a=>{const _0x102b26=_0x3b13e7['document']['differ']['getChanges']();let _0x57bbda=!0x1;for(const _0x13935e of _0x102b26){if('insert'!==_0x13935e['type']||'$text'===_0x13935e['name'])continue;const _0x3fa2bd=_0x3b13e7['createRangeOn'](_0x13935e['position']['nodeAfter']);for(const _0x82c6f5 of _0x3fa2bd['getItems']())_0x82c6f5['is']('element','footnotesDefinitions')&&(!_0x82c6f5['hasAttribute']('footnotesListStart')&&_0x3b13e7['schema']['checkAttribute'](_0x82c6f5,'footnotesListStart')&&(_0x44e35a['setAttribute']('footnotesListStart',_0x1e0318,_0x82c6f5),_0x57bbda=!0x0),!_0x82c6f5['hasAttribute']('footnotesListStyle')&&_0x3b13e7['schema']['checkAttribute'](_0x82c6f5,'footnotesListStyle')&&(_0x44e35a['setAttribute']('footnotesListStyle',_0x247dd6,_0x82c6f5),_0x57bbda=!0x0));}return _0x57bbda&&_0x2ebca1['_updateFootnotesCounters'](_0x44e35a),_0x57bbda;});}['_defineFormatter'](){const {editor:_0x476e51}=this;_0x476e51['plugins']['get'](c)['setFootnoteFormatter'](_0x2dd02e=>this['_formatFootnoteListValue'](_0x2dd02e));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3de880,value:_0x3f5b2c,digits:_0x2d040c}){const _0x446fc=_0x3de880['getAttribute']('footnotesListStyle'),_0x3a0822=_0x3de880['getAttribute']('footnotesListStart'),_0x4c19f3=Math['floor'](_0x3f5b2c)+(_0x3a0822??0x1)-0x1;switch(_0x446fc){case'decimal-leading-zero':return function(_0x417a0a,_0x11670c){return String(_0x417a0a)['padStart'](_0x11670c,'0');}(_0x4c19f3,Math['max'](0x2,_0x2d040c));case'lower-alpha':case'lower-latin':return M(_0x4c19f3,!0x1);case'upper-alpha':case'upper-latin':return M(_0x4c19f3,!0x0);case'lower-roman':return V(_0x4c19f3,!0x1);case'upper-roman':return V(_0x4c19f3,!0x0);default:return String(_0x4c19f3);}}}function C(_0x5eb9ed,_0x1955f5){const _0x3350a6=_0x1955f5['toViewElement'](_0x5eb9ed);return Array['from'](_0x3350a6['getChildren']())['find'](_0x52b8e9=>_0x52b8e9['is']('element','ol')&&_0x52b8e9['hasClass']('footnotes-list'));}function M(_0x3457af,_0x4dc580){let _0x266b9f='',_0x2cee3b=_0x3457af;for(;_0x2cee3b>0x0;){const _0xa11726=(_0x2cee3b-0x1)%0x1a;_0x266b9f=String['fromCharCode'](0x61+_0xa11726)+_0x266b9f,_0x2cee3b=Math['floor']((_0x2cee3b-0x1)/0x1a);}return _0x4dc580?_0x266b9f['toUpperCase']():_0x266b9f;}const N=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function V(_0x44c872,_0x2a9fd7){let _0x4206fa='',_0x5abb4a=_0x44c872;for(const {value:_0x55248d,numeral:_0x20ef3c}of N)for(;_0x5abb4a>=_0x55248d;)_0x4206fa+=_0x20ef3c,_0x5abb4a-=_0x55248d;return _0x2a9fd7?_0x4206fa:_0x4206fa['toLowerCase']();}class H extends _0x4ac842{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x43f46e();['focusCycler'];constructor(_0x49a333,{styleButtonViews:_0x2b4325,styleGridAriaLabel:_0x159ca0}){super(_0x49a333),(this['focusCycler']=new _0x1bea9e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x2b4325,_0x159ca0),[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 _0xf2839f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0xf2839f['element']);_0x534e1f({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x2dfd9b=_0x21fcc8=>_0x21fcc8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2dfd9b),this['keystrokes']['set']('arrowleft',_0x2dfd9b),this['keystrokes']['set']('arrowup',_0x2dfd9b),this['keystrokes']['set']('arrowdown',_0x2dfd9b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xc737ec,_0x43e8bc){const _0x38ff4b=new _0x4ac842(this['locale']);return _0x38ff4b['children']=_0x38ff4b['createCollection'](),_0x38ff4b['children']['addMany'](_0xc737ec),_0x38ff4b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x43e8bc,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x38ff4b['children']}),_0x38ff4b['children']['delegate']('execute')['to'](this),_0x38ff4b['focus']=function(){for(const _0x49d07d of this['children'])if(_0x49d07d instanceof _0x1e890f&&_0x49d07d['isOn'])return void _0x49d07d['focus']();this['children']['first']['focus']();},_0x38ff4b['focusTracker']=new et(),_0x38ff4b['keystrokes']=new ot(),_0x38ff4b['render'](),_0x38ff4b['keystrokes']['listenTo'](_0x38ff4b['element']),this['children']['add'](_0x38ff4b),_0x38ff4b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x29327a=this['_createStartIndexPropertyView'](),_0x59d478=[_0x29327a],_0x217a57=new tt(this['locale'],_0x59d478);return _0x217a57['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x217a57['buttonView']['bind']('isEnabled')['toMany'](_0x59d478,'isEnabled',(..._0x485c2f)=>_0x485c2f['some'](_0x216814=>_0x216814)),_0x217a57['buttonView']['on']('change:isEnabled',(_0x5393f9,_0x24aae1,_0x3205fa)=>{_0x3205fa||(_0x217a57['isCollapsed']=!0x0);}),this['children']['add'](_0x217a57),[_0x29327a,_0x217a57];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x18085d=new st(this['locale'],it);return _0x18085d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x18085d['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x18085d['fieldView']['on']('input',()=>{const _0x2ac430=_0x18085d['fieldView']['element'],_0x3b5643=_0x2ac430['valueAsNumber'];Number['isNaN'](_0x3b5643)?_0x18085d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2ac430['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3b5643}):_0x18085d['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x18085d;}}class j extends _0x159ee2{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x55aa71,_0x5056f8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2285f5}=this,{componentFactory:_0x507d2b}=_0x2285f5['ui'];_0x2285f5['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x507d2b['add']('footnotesStyle',function(_0x35b096){return _0x27faa7=>{const {t:t}=_0x27faa7,_0x5ea2ac=_0x35b096['commands']['get']('footnotesStyle'),_0x1ba44b=_0x29e202(_0x27faa7),{buttonView:_0x53854d}=_0x1ba44b;return _0x1ba44b['class']='ck-footnotes-styles-dropdown',_0x1ba44b['bind']('isEnabled')['to'](_0x5ea2ac,'isEnabled'),_0x53854d['set']({'label':t('Footnotes\x20style'),'icon':_0xa6776d,'tooltip':!0x0}),_0x1ba44b['once']('change:isOpen',()=>{const _0x216a1e=function({editor:_0x420ade,dropdownView:_0x556884}){const {t:t}=_0x420ade['locale'],_0x4472d3=t('Footnotes\x20definitions\x20styles'),_0x5397e3=function(_0x55e566){const t=_0x55e566['locale']['t'],_0x23edf9=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x420b8a},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x46a556},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2f1382},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x435546},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2237d3},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5c1e20}];return _0x23edf9['map'](function(_0x31279f){const _0x1a9330=_0x31279f['locale'];return({label:_0x390455,icon:_0x461daf,tooltip:_0xdfacbd,style:_0x44af7d})=>{const _0x38c73d=_0x31279f['commands']['get']('footnotesStyle'),_0x319877=new _0x1e890f(_0x1a9330);return _0x319877['set']({'label':_0x390455,'icon':_0x461daf,'tooltip':_0xdfacbd}),_0x319877['bind']('isOn')['to'](_0x38c73d,'value',_0x3b2bc1=>_0x3b2bc1===_0x44af7d),_0x319877['bind']('isEnabled')['to'](_0x38c73d,'isEnabled'),_0x319877['on']('execute',()=>{_0x31279f['execute']('footnotesStyle',{'value':_0x44af7d}),_0x31279f['editing']['view']['focus']();}),_0x319877;};}(_0x55e566));}(_0x420ade),_0x3fa183=new H(_0x420ade['locale'],{'styleGridAriaLabel':_0x4472d3,'styleButtonViews':_0x5397e3});return _0x3fa183['delegate']('execute')['to'](_0x556884),_0x3fa183['on']('footnotesListStart',(_0x5b2b5c,_0x19bcc6)=>{_0x420ade['execute']('footnotesStart',{'value':_0x19bcc6['startIndex']});}),_0x3fa183;}({'editor':_0x35b096,'dropdownView':_0x1ba44b});_0x1ba44b['panelView']['children']['add'](_0x216a1e);}),_0x1ba44b;};}(_0x2285f5));}['afterInit'](){const {editor:_0x566076}=this,{t:t}=_0x566076['locale'],_0x1676dd=_0x566076['plugins']['get'](_0x5056f8),{defaultPositions:_0x24435f}=_0x4f6eb3;_0x1676dd['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x566076['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5d3a3b=>{let _0x3851dd=_0x5d3a3b['getFirstPosition']()?.['parent'];return _0x3851dd?.['is']('$text')&&(_0x3851dd=_0x3851dd['parent']),_0x3851dd?.['is']('element')?_0x3851dd['findAncestor'](J):null;},'positions':[_0x24435f['southArrowNorth'],_0x24435f['southArrowNorthMiddleWest'],_0x24435f['southArrowNorthMiddleEast'],_0x24435f['southArrowNorthWest'],_0x24435f['southArrowNorthEast'],_0x24435f['northArrowSouth'],_0x24435f['northArrowSouthMiddleWest'],_0x24435f['northArrowSouthMiddleEast'],_0x24435f['northArrowSouthWest'],_0x24435f['northArrowSouthEast'],_0x24435f['viewportStickyNorth']]});}}class lt extends _0x159ee2{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251025.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251025.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251025.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251025.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251025.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251025.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251025.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251025.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251025.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x15eb57=_0x44a4;(function(_0x1a10a8,_0x29bc3d){const _0x1feeb4=_0x44a4,_0x592c8b=_0x1a10a8();while(!![]){try{const _0x36bf52=-parseInt(_0x1feeb4(0xea))/0x1+parseInt(_0x1feeb4(0x104))/0x2*(-parseInt(_0x1feeb4(0x102))/0x3)+parseInt(_0x1feeb4(0xfa))/0x4+parseInt(_0x1feeb4(0xf0))/0x5+-parseInt(_0x1feeb4(0xef))/0x6*(parseInt(_0x1feeb4(0xfe))/0x7)+parseInt(_0x1feeb4(0xe6))/0x8+parseInt(_0x1feeb4(0xf1))/0x9;if(_0x36bf52===_0x29bc3d)break;else _0x592c8b['push'](_0x592c8b['shift']());}catch(_0xc5725b){_0x592c8b['push'](_0x592c8b['shift']());}}}(_0x483e,0x94bdb));import{logWarning as _0x3ad000,uid as _0x59a302}from'ckeditor5/src/utils.js';function _0x483e(){const _0x4b82ca=['get','length','1097459RtaPqv','execute','isBlock','getItems','_moveSelectionToFootnoteDefinition','916428GSnaOg','5257350phPlGV','4761774TgddVo','footnoteRef','refresh','document','createElement','_getPositionToInsertFootnote','selection','change','isEnabled','2367236FRkhcP','FootnotesEditing','editor','checkChild','49PmXAxl','test','model','plugins','3XFVZrh','footnoteId','1158284nQHLoA','insert-footnote-command-executed-with-invalid-id','getFirstRange','isObject','string','insertObject','9461160OjumyN','end'];_0x483e=function(){return _0x4b82ca;};return _0x483e();}function _0x44a4(_0x581f11,_0xfd7704){const _0x483e3e=_0x483e();return _0x44a4=function(_0x44a441,_0x155e33){_0x44a441=_0x44a441-0xe1;let _0x374ec8=_0x483e3e[_0x44a441];return _0x374ec8;},_0x44a4(_0x581f11,_0xfd7704);}import{Command as _0x6815dd}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x6815dd{[_0x15eb57(0xf3)](){const _0x57c2d6=_0x15eb57,_0x595d5a=this[_0x57c2d6(0xfc)][_0x57c2d6(0x100)][_0x57c2d6(0xf4)][_0x57c2d6(0xf7)],_0x5e89b9=this[_0x57c2d6(0xf6)](_0x595d5a);this[_0x57c2d6(0xf9)]=!!_0x5e89b9;}[_0x15eb57(0xeb)](_0x22e7d0){const _0x5f0127=_0x15eb57,{editor:_0x3701fe}=this,{model:_0x399363}=_0x3701fe,{selection:_0x2360f5}=_0x399363[_0x5f0127(0xf4)],_0x45ea93=this[_0x5f0127(0xf6)](_0x2360f5);if(!_0x45ea93)return;const _0x5dd551=_0x3701fe[_0x5f0127(0x101)][_0x5f0127(0xe8)](_0x5f0127(0xfb)),_0x2d48c7=_0x22e7d0?.[_0x5f0127(0x103)]??_0x59a302();!function(_0x729e42){const _0x24d224=_0x5f0127;return _0x24d224(0xe4)==typeof _0x729e42&&_0x729e42[_0x24d224(0xe9)]>0x0&&!/\s/[_0x24d224(0xff)](_0x729e42)&&!/^\d/[_0x24d224(0xff)](_0x729e42);}(_0x2d48c7)?_0x3ad000(_0x5f0127(0xe1)):(_0x399363[_0x5f0127(0xf8)](_0x505bbd=>{const _0x474781=_0x5f0127,_0x1283e9=_0x505bbd[_0x474781(0xf5)](_0x474781(0xf2),{'footnoteId':_0x2d48c7});_0x399363[_0x474781(0xe5)](_0x1283e9,_0x45ea93,null);}),_0x5dd551[_0x5f0127(0xee)](_0x2d48c7));}[_0x15eb57(0xf6)](_0x565e0f){const _0x197483=_0x15eb57,{model:_0x4f49a7}=this[_0x197483(0xfc)],{schema:_0x4e48b7}=_0x4f49a7,_0x482ea4=_0x565e0f[_0x197483(0xe2)]();for(const _0x1a8c2e of _0x482ea4[_0x197483(0xed)]())if(_0x4e48b7[_0x197483(0xec)](_0x1a8c2e)||_0x4e48b7[_0x197483(0xe3)](_0x1a8c2e))return null;const _0x3140b6=_0x482ea4[_0x197483(0xe7)];return _0x4e48b7[_0x197483(0xfd)](_0x3140b6,_0x197483(0xf2))?_0x3140b6:null;}}
|
package/src/footnotes.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x33e75f=_0x251f;(function(_0x172288,_0x2412ea){var _0x46cc22=_0x251f,_0x2ed6b9=_0x172288();while(!![]){try{var _0x3fac61=-parseInt(_0x46cc22(0x168))/0x1+-parseInt(_0x46cc22(0x15b))/0x2*(parseInt(_0x46cc22(0x166))/0x3)+parseInt(_0x46cc22(0x15c))/0x4*(-parseInt(_0x46cc22(0x15d))/0x5)+parseInt(_0x46cc22(0x161))/0x6+-parseInt(_0x46cc22(0x165))/0x7+-parseInt(_0x46cc22(0x162))/0x8+parseInt(_0x46cc22(0x15e))/0x9;if(_0x3fac61===_0x2412ea)break;else _0x2ed6b9['push'](_0x2ed6b9['shift']());}catch(_0x22dd36){_0x2ed6b9['push'](_0x2ed6b9['shift']());}}}(_0x4310,0x56da2));function _0x251f(_0x285bff,_0x3337f8){var _0x43100a=_0x4310();return _0x251f=function(_0x251ffd,_0x27451b){_0x251ffd=_0x251ffd-0x15b;var _0x471c26=_0x43100a[_0x251ffd];return _0x471c26;},_0x251f(_0x285bff,_0x3337f8);}import{Plugin as _0x18ffcc}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x506f41}from'./footnotesediting.js';import{FootnotesClipboard as _0x5011e6}from'./footnotesclipboard.js';import{FootnotesUI as _0x5aeb78}from'./footnotesui.js';export class Footnotes extends _0x18ffcc{static get[_0x33e75f(0x164)](){var _0x41c838=_0x33e75f;return _0x41c838(0x167);}static get[_0x33e75f(0x163)](){return[_0x506f41,_0x5011e6,_0x5aeb78];}static get[_0x33e75f(0x160)](){return!0x0;}static get[_0x33e75f(0x15f)](){return!0x0;}}function _0x4310(){var _0x42171a=['4tGcFpd','2814390QVkIYj','22996035AmhBut','isPremiumPlugin','isOfficialPlugin','423306kAusXJ','2579704IEufpj','requires','pluginName','3621443VSMUph','6gJfrAm','Footnotes','300106zAskQU','567124HAGenM'];_0x4310=function(){return _0x42171a;};return _0x4310();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4ed8(){const _0x2c8553=['insert','pluginName','parse','getFootnotesDefinitionsObjectElement','data','29205539pitjsi','_insertEmptyFootnotesDefinitionsContainer','toModel','toData','createRangeIn','requires','47838BoNFWK','dataTransfer','getFirstRange','drop','sourceEditorId','element','create','footnoteDefinition','2884021Wjxbgy','2327144amMNCR','append','getFootnotes','_handlePasteFootnotesDefinitions','toView','add','end','method','find','1tnizwg','get','document','422892okTCOx','editing','footnoteId','isOfficialPlugin','8KDxfNc','footnotesDefinitions','getData','application/ckeditor5-footnotes','70oFrLiM','setAttribute','createElement','getAttribute','_defineClipboardIntegration','clipboardInput','isPremiumPlugin','reduce','getFootnote','listenTo','1456695FxdILa','root','stringify','init','_handleCopyFootnotesDefinitions','from','definition','content','htmlProcessor','footnoteRef','setData','change','290zLrAaq','push','359004KJMEHZ','editor','outputTransformation','contentInsertion','FootnotesClipboard','entries','remove','length','selection'];_0x4ed8=function(){return _0x2c8553;};return _0x4ed8();}function _0x3552(_0x429c81,_0x4e3c8a){const _0x4ed814=_0x4ed8();return _0x3552=function(_0x35524b,_0x3428cf){_0x35524b=_0x35524b-0x156;let _0x2d741d=_0x4ed814[_0x35524b];return _0x2d741d;},_0x3552(_0x429c81,_0x4e3c8a);}const _0x686449=_0x3552;(function(_0x226d5d,_0x11bdde){const _0x210465=_0x3552,_0x256566=_0x226d5d();while(!![]){try{const _0x21a015=-parseInt(_0x210465(0x17a))/0x1*(parseInt(_0x210465(0x171))/0x2)+parseInt(_0x210465(0x19d))/0x3+parseInt(_0x210465(0x17d))/0x4+parseInt(_0x210465(0x19b))/0x5*(parseInt(_0x210465(0x168))/0x6)+-parseInt(_0x210465(0x170))/0x7*(parseInt(_0x210465(0x181))/0x8)+parseInt(_0x210465(0x18f))/0x9*(-parseInt(_0x210465(0x185))/0xa)+parseInt(_0x210465(0x162))/0xb;if(_0x21a015===_0x11bdde)break;else _0x256566['push'](_0x256566['shift']());}catch(_0x555c83){_0x256566['push'](_0x256566['shift']());}}}(_0x4ed8,0x9adca));import{Plugin as _0x21d82e}from'ckeditor5/src/core.js';import{uid as _0x14e86f}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0x320631}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x3cf082}from'./footnotesediting.js';import{FootnotesTracker as _0x3c3504}from'./footnotestracker.js';export class FootnotesClipboard extends _0x21d82e{static get[_0x686449(0x15e)](){const _0x4da7bc=_0x686449;return _0x4da7bc(0x158);}static get[_0x686449(0x167)](){return[_0x3cf082,_0x320631];}static get[_0x686449(0x180)](){return!0x0;}static get[_0x686449(0x18b)](){return!0x0;}[_0x686449(0x192)](){const _0x23f889=_0x686449;this[_0x23f889(0x189)]();}[_0x686449(0x189)](){const _0xba070e=_0x686449;this[_0xba070e(0x193)](),this[_0xba070e(0x174)]();}[_0x686449(0x193)](){const _0x5cdef7=_0x686449,{editor:_0x348d47}=this,{plugins:_0x3e9f2f,model:_0x1dc0b}=_0x348d47,_0x91cf56=_0x3e9f2f[_0x5cdef7(0x17b)](_0x320631),_0x3779c5=_0x3e9f2f[_0x5cdef7(0x17b)](_0x3c3504);this[_0x5cdef7(0x18e)](_0x91cf56,_0x5cdef7(0x156),(_0x73b3ed,_0x143b29)=>{const _0x25e0bf=_0x5cdef7,_0x41196a=function(_0x48c735,_0x4220e1){const _0x43a927=_0x3552,_0x5b6353=new Set();for(const {item:_0x792cf3}of _0x48c735[_0x43a927(0x166)](_0x4220e1))_0x792cf3['is'](_0x43a927(0x16d),_0x43a927(0x198))&&_0x5b6353[_0x43a927(0x176)](_0x792cf3[_0x43a927(0x188)](_0x43a927(0x17f)));return Array[_0x43a927(0x194)](_0x5b6353);}(_0x1dc0b,_0x143b29[_0x25e0bf(0x196)]);if(!_0x41196a[_0x25e0bf(0x15b)])return;const _0x2ee900=_0x3779c5[_0x25e0bf(0x173)](),_0x50d09f=_0x41196a[_0x25e0bf(0x18c)]((_0x521762,_0x12f1f0)=>{const _0x417521=_0x25e0bf,_0x5488a7=_0x2ee900[_0x417521(0x179)](_0x24c346=>_0x24c346['id']===_0x12f1f0);if(_0x5488a7){const _0x546cee=_0x348d47[_0x417521(0x161)][_0x417521(0x175)](_0x5488a7[_0x417521(0x195)],{'isClipboardPipeline':!0x0}),_0x357a48=_0x348d47[_0x417521(0x161)][_0x417521(0x197)][_0x417521(0x165)](_0x546cee);_0x521762[_0x5488a7['id']]=_0x357a48;}return _0x521762;},Object[_0x25e0bf(0x16e)](null));_0x143b29[_0x25e0bf(0x169)][_0x25e0bf(0x199)](_0x25e0bf(0x184),JSON[_0x25e0bf(0x191)](_0x50d09f));});}[_0x686449(0x174)](){const _0x496508=_0x686449,{editor:_0x4395c5}=this,{model:_0x18238f,plugins:_0x469353}=_0x4395c5,{view:_0x261855}=_0x4395c5[_0x496508(0x17e)],_0x30b720=_0x469353[_0x496508(0x17b)](_0x320631),_0x298dc0=_0x469353[_0x496508(0x17b)](_0x3c3504);let _0x3b685b=null;this[_0x496508(0x18e)](_0x261855[_0x496508(0x17c)],_0x496508(0x18a),(_0x494eec,_0x22390b)=>{const _0x5824e6=_0x496508,_0x44f370=_0x22390b[_0x5824e6(0x169)][_0x5824e6(0x183)](_0x5824e6(0x184));_0x3b685b=_0x44f370?JSON[_0x5824e6(0x15f)](_0x44f370):null;}),this[_0x496508(0x18e)](_0x30b720,_0x496508(0x157),(_0x2ca2af,_0x4c21f7)=>{const _0x1b01da=_0x496508;if(!_0x3b685b)return;const _0x1bb5f2=_0x4c21f7[_0x1b01da(0x16c)]===this[_0x1b01da(0x19e)]['id'];_0x1bb5f2&&_0x1b01da(0x16b)===_0x4c21f7[_0x1b01da(0x178)]||_0x18238f[_0x1b01da(0x19a)](_0x18162b=>{const _0x2c7878=_0x1b01da;!function(_0x4155e0,_0x3633ca){const _0xa39339=_0x3552,_0x22f8b5=[];for(const {item:_0x43ac6a}of _0x4155e0[_0xa39339(0x166)](_0x3633ca))_0x43ac6a['is'](_0xa39339(0x16d),_0xa39339(0x182))&&_0x22f8b5[_0xa39339(0x19c)](_0x43ac6a);for(const _0x17d299 of _0x22f8b5)_0x4155e0[_0xa39339(0x15a)](_0x17d299);}(_0x18162b,_0x4c21f7[_0x2c7878(0x196)]);let _0xe6e172=_0x298dc0[_0x2c7878(0x160)]();if(!_0xe6e172){const _0x14e18c=_0x18238f[_0x2c7878(0x17c)][_0x2c7878(0x15c)][_0x2c7878(0x16a)]()[_0x2c7878(0x190)];_0xe6e172=_0x298dc0[_0x2c7878(0x163)](_0x18162b,_0x14e18c);}const _0x25eec7=function(_0x294278,_0xb49361,_0x4513f7){const _0x51597e=_0x2c7878,_0x3ff46b=Object[_0x51597e(0x16e)](null);for(const {item:_0x18d124}of _0x294278[_0x51597e(0x166)](_0xb49361))if(_0x18d124['is'](_0x51597e(0x16d),_0x51597e(0x198))){const _0x32b21d=_0x18d124[_0x51597e(0x188)](_0x51597e(0x17f));if(!_0x4513f7(_0x32b21d))continue;_0x3ff46b[_0x32b21d]||(_0x3ff46b[_0x32b21d]=_0x14e86f()),_0x294278[_0x51597e(0x186)](_0x51597e(0x17f),_0x3ff46b[_0x32b21d],_0x18d124);}return _0x3ff46b;}(_0x18162b,_0x4c21f7[_0x2c7878(0x196)],_0x14ba3b=>!_0x1bb5f2||null!==_0x298dc0[_0x2c7878(0x18d)](_0x14ba3b));for(const [_0x500cfe,_0x1c10b3]of Object[_0x2c7878(0x159)](_0x3b685b)){const _0x2626b3=_0x25eec7[_0x500cfe]||_0x500cfe,_0x5a2015=_0x18162b[_0x2c7878(0x187)](_0x2c7878(0x16f),{'footnoteId':_0x2626b3}),_0x2461b2=_0x4395c5[_0x2c7878(0x161)][_0x2c7878(0x197)][_0x2c7878(0x175)](_0x1c10b3),_0x3dc2bd=_0x4395c5[_0x2c7878(0x161)][_0x2c7878(0x164)](_0x2461b2,_0x5a2015);_0x18162b[_0x2c7878(0x172)](_0x3dc2bd,_0x5a2015),_0x18162b[_0x2c7878(0x15d)](_0x5a2015,_0xe6e172,_0x2c7878(0x177));}_0x3b685b=null;});});}}
|