@ckeditor/ckeditor5-document-outline 48.1.0-alpha.3 → 48.1.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1bbd71,Command as _0x28cef0}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x533d3b,throttle as _0x46f7b4}from'es-toolkit/compat';import{ModelText as _0x181cdf,ModelTreeWalker as _0x4ade38}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x17f05e,diffToChanges as _0x41c101,scrollAncestorsToShowTarget as _0x4d4295,CKEditorError as _0x271392,global as _0xfb0400,Rect as _0x5196fc,uid as _0x544d98,priorities as _0x2b9cfb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xf5c5bf,ButtonView as _0x239b42,MenuBarMenuListItemButtonView as _0x1626b1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x116962,toWidget as _0x40b94c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x168cc9}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x193764){let _0x36e237='';for(const _0x1e1c0c of _0x193764['getChildren']())_0x1e1c0c instanceof _0x181cdf&&(_0x36e237+=_0x1e1c0c['data']);return _0x36e237;}class I extends _0x1bbd71{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x21ecf4=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x4aac7a=[];_0x21ecf4['model']['document']['on']('change',_0x533d3b(()=>{const _0x582fc4=_0x4aac7a;_0x4aac7a=this['_getOutlineDefinitions']();const _0x38955b=_0x17f05e(_0x582fc4,_0x4aac7a,(_0x56917b,_0x70a0cf)=>_0x56917b['level']===_0x70a0cf['level']&&_0x56917b['text']===_0x70a0cf['text']&&_0x56917b['modelElement']===_0x70a0cf['modelElement']),_0x4ac18b=_0x41c101(_0x38955b,_0x4aac7a),_0x229a98=this['_getActiveHeading'](),_0xa04b03=_0x4aac7a['findIndex'](_0xc302fa=>_0xc302fa['modelElement']===_0x229a98);_0x4ac18b['length']&&this['fire']('change',{'outlineDefinitions':_0x4aac7a,'activeItemIndex':_0xa04b03,'outlineChanges':_0x4ac18b}),this['fire']('activeItemIndex',{'index':_0xa04b03});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x5bcfc6=this['editor'],_0x19dc99=[],_0x5625da=this['_headingNames'];for(const _0x4955e9 of _0x5bcfc6['model']['document']['getRootNames']())_0x389462(_0x5bcfc6['model']['document']['getRoot'](_0x4955e9));function _0x389462(_0x19cba4){for(const _0x1ebf16 of _0x19cba4['getChildren']())_0x1ebf16['is']('element')&&(_0x5625da['includes'](_0x1ebf16['name'])&&_0x19dc99['push']({'level':_0x5625da['indexOf'](_0x1ebf16['name'])+0x1,'text':v(_0x1ebf16),'modelElement':_0x1ebf16}),_0x389462(_0x1ebf16));}return _0x19dc99;}['_getActiveHeading'](){const _0x372f8f=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x2c5b3d=new _0x4ade38({'direction':'backward','startPosition':_0x372f8f});for(const _0x3f60a4 of _0x2c5b3d)if(_0x3f60a4['item']['is']('element')&&this['_headingNames']['includes'](_0x3f60a4['item']['name']))return _0x3f60a4['item'];}['_getHeadingNames'](){const _0x2975b1=this['editor']['config']['get']('documentOutline.headings');return _0x2975b1||function(_0x2070da){const _0x592ba6=_0x2070da['config']['get']('heading.options');return _0x592ba6?_0x592ba6['reduce']((_0x42b0e9,_0xc0f826)=>('paragraph'!==_0xc0f826['model']&&_0x42b0e9['push'](_0xc0f826['model']),_0x42b0e9),[]):_0x2070da['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x3f4cef=this['editor'],_0x31aaff=['h1','h2','h3','h4','h5','h6'],_0x333ea0=[];for(const _0x3739f7 of _0x31aaff){const _0x51fce7=_0x3f4cef['editing']['view']['domConverter']['domToView'](document['createElement'](_0x3739f7)),_0x47e2b7=_0x3f4cef['data']['toModel'](_0x51fce7)['getChild'](0x0);_0x47e2b7?.['is']('element')&&_0x333ea0['push'](_0x47e2b7['name']);}this['_headingNames']=_0x333ea0;}}function C(_0xb6be79,_0x4e3981){const t=_0xb6be79['t'];switch(_0x4e3981){case'Empty\x20heading':return t('Empty\x20heading');case'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':return t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.');case'No\x20headings\x20were\x20found\x20in\x20the\x20document.':return t('No\x20headings\x20were\x20found\x20in\x20the\x20document.');case'Table\x20of\x20contents':return t('Table\x20of\x20contents');default:return _0x4e3981;}}class _ extends _0xf5c5bf{constructor(_0xa6c565,_0x44b676=!0x1){super(_0xa6c565);const _0x120972=this['bindTemplate'],_0x4ee8a4=_0x44b676?'['+C(_0xa6c565,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x20399a=>!_0x20399a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x120972['to']('level',_0x2b7a5a=>'ck-document-outline__item_level-'+_0x2b7a5a),_0x120972['if']('isActive','ck-document-outline__item_active'),_0x120972['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x120972['to']('text')},'children':[{'text':_0x120972['to']('text',_0x6fbdf2=>_0x6fbdf2||_0x4ee8a4)}],'on':{'click':_0x120972['to']('click')}});}}class x extends _0xf5c5bf{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x5ebdca,_0x4632c2=!0x1,_0x274366){super(_0x5ebdca),this['showEmptyHeadingText']=_0x4632c2,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x274366,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x284830,_0x2fea5b,_0x480dc4,_0x4df5bb)=>{this['_setActiveItem'](_0x4df5bb,_0x480dc4);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x5ebdca['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x5ebdca,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x18e13b){_0x18e13b['forEach'](_0x3d7801=>{'insert'==_0x3d7801['type']?this['_insertItem'](_0x3d7801['index'],..._0x3d7801['values']):'delete'==_0x3d7801['type']&&this['_deleteItem'](_0x3d7801['index'],_0x3d7801['howMany']);});}['_setActiveItem'](_0x2a0a28,_0x532438){if(-0x1!==_0x2a0a28){const _0x2888e4=this['items']['get'](_0x2a0a28);_0x2888e4&&(_0x2888e4['isActive']=!0x1);}-0x1!==_0x532438&&(this['items']['get'](_0x532438)['isActive']=!0x0,this['_scrollToItem'](_0x532438));}['_insertItem'](_0x353f3f,..._0x28b56d){const _0x15e602=_0x28b56d['map']((_0x40c4c7,_0x5c030d)=>{const _0x51cada=new _(this['locale'],this['showEmptyHeadingText']);return _0x51cada['text']=_0x40c4c7['text'],_0x51cada['level']=_0x40c4c7['level'],_0x353f3f+_0x5c030d===this['activeItemIndex']&&(_0x51cada['isActive']=!0x0),_0x51cada;});this['items']['addMany'](_0x15e602,_0x353f3f);}['_deleteItem'](_0x214b17,_0x3a1252){do{this['items']['remove'](_0x214b17);}while(--_0x3a1252);}['_handleItemClick'](_0x40bc7a){const _0x1967d7=this['items']['getIndex'](_0x40bc7a['source']);this['fire']('itemSelected',_0x1967d7);}['_scrollToItem'](_0x5a5054){_0x4d4295(this['items']['get'](_0x5a5054)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class L extends _0x1bbd71{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2abfa9){super(_0x2abfa9),this['view']=new x(_0x2abfa9['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x46f7b4(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x2785f3=this['editor'],_0x367f06=_0x2785f3['plugins']['get']('DocumentOutlineUtils');let _0x102d56=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x2785f3['config']['get']('documentOutline.container'))throw new _0x271392('document-outline-container-not-provided',{'editor':_0x2785f3});_0x2785f3['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x367f06['on']('change',this['_handleOutlineChange']['bind'](this)),_0x367f06['on']('activeItemIndex',(_0x51480b,{index:_0x1b975d})=>this['_setActiveViewItem'](_0x1b975d)),this['view']['on']('itemSelected',(_0x562e1f,_0x5b0306)=>{_0x102d56=!0x0,this['_handleItemSelected'](_0x5b0306);}),this['view']['listenTo'](_0xfb0400['document'],'scroll',()=>{_0x102d56?_0x102d56=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0xfb0400['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x25c992){const _0x299cee=_0x3075b0([0x61,0x57,0x78,0x6c,0x50,0x47,0x30,0x41,0x33,0x43,0x44,0x64,0x48,0x42,0x73,0x5a,0x45,0x71,0x77,0x55,0x4c,0x6f,0x6a,0x4f,0x72,0x67,0x4d,0x58,0x56,0x54,0x52,0x76,0x75,0x31,0x62,0x49,0x32,0x34,0x38,0x37,0x70,0x74,0x7a,0x4a,0x4b,0x51,0x65,0x69,0x68,0x66,0x4e,0x6b,0x59,0x53,0x39,0x6e,0x36,0x79,0x35,0x6d,0x63,0x46]),_0x536e44=0x1cb264a3,_0x69b3e2=0x1cb5ed33^_0x536e44,_0x34de85=window[_0x3075b0([0x44,0x61,0x74,0x65])][_0x3075b0([0x6e,0x6f,0x77])](),_0x558375=_0x25c992[_0x3075b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a3e3f=new window[(_0x3075b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2538cf=>{_0x558375[_0x3075b0([0x6f,0x6e,0x63,0x65])](_0x3075b0([0x72,0x65,0x61,0x64,0x79]),_0x2538cf);}),_0x3bf2d5={[_0x3075b0([0x6b,0x74,0x79])]:_0x3075b0([0x45,0x43]),[_0x3075b0([0x75,0x73,0x65])]:_0x3075b0([0x73,0x69,0x67]),[_0x3075b0([0x63,0x72,0x76])]:_0x3075b0([0x50,0x2d,0x32,0x35,0x36]),[_0x3075b0([0x78])]:_0x3075b0([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]),[_0x3075b0([0x79])]:_0x3075b0([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]),[_0x3075b0([0x61,0x6c,0x67])]:_0x3075b0([0x45,0x53,0x32,0x35,0x36])},_0x1a7cec=_0x558375[_0x3075b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3075b0([0x67,0x65,0x74])](_0x3075b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x588328(){let _0x2e0b4c,_0x1b4540=null,_0x21d749=null;try{if(_0x1a7cec==_0x3075b0([0x47,0x50,0x4c]))return _0x3075b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e0b4c=_0x835736(),!_0x2e0b4c)return _0x3075b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e0b4c[_0x3075b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21d749=_0x3fea7f(_0x2e0b4c[_0x3075b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e0b4c[_0x3075b0([0x6a,0x74,0x69])])),await _0x26a1c9()?_0x5c8fd9()?_0x21ea99()?_0x3075b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b3239()?(_0x2e0b4c[_0x3075b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3075b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b4540=_0x5f7008(_0x3075b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41224c()):_0x3075b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3075b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3075b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3075b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21ea99(){const _0x4a7aff=[_0x3075b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3075b0([0x74,0x72,0x69,0x61,0x6c])][_0x3075b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e0b4c[_0x3075b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34de85/0x3e8:0xe10*_0x69b3e2;return _0x2e0b4c[_0x3075b0([0x65,0x78,0x70])]<_0x4a7aff;}function _0x5c8fd9(){const _0xc1d261=_0x2e0b4c[_0x3075b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc1d261&&(!!_0xc1d261[_0x3075b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3075b0([0x2a]))||(!!_0xc1d261[_0x3075b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3075b0([0x44,0x4f]))||(!!_0xc1d261[_0x3075b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3075b0([0x50,0x50]))||!(!_0xc1d261[_0x3075b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3075b0([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x937639()))));}function _0x5b3239(){const _0x2b1b9a=_0x2e0b4c[_0x3075b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b1b9a||0x0==_0x2b1b9a[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8d5461}=new URL(window[_0x3075b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b1b9a[_0x3075b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d5461))return!0x0;const _0x1dbfe6=_0x8d5461[_0x3075b0([0x73,0x70,0x6c,0x69,0x74])](_0x3075b0([0x2e]));return _0x2b1b9a[_0x3075b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa42acc=>_0xa42acc[_0x3075b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3075b0([0x2a])))[_0x3075b0([0x6d,0x61,0x70])](_0x391083=>_0x391083[_0x3075b0([0x73,0x70,0x6c,0x69,0x74])](_0x3075b0([0x2e])))[_0x3075b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x311d83=>_0x311d83[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1dbfe6[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3075b0([0x6d,0x61,0x70])](_0x57fe4a=>Array(_0x1dbfe6[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57fe4a[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3075b0([0x66,0x69,0x6c,0x6c])](_0x57fe4a[0x0]===_0x3075b0([0x2a])?_0x3075b0([0x2a]):'')[_0x3075b0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57fe4a))[_0x3075b0([0x73,0x6f,0x6d,0x65])](_0x1a8074=>_0x1dbfe6[_0x3075b0([0x65,0x76,0x65,0x72,0x79])]((_0x3d5111,_0x1dfeb7)=>_0x1a8074[_0x1dfeb7]===_0x3d5111||_0x1a8074[_0x1dfeb7]===_0x3075b0([0x2a])));}function _0x41224c(){return _0x1b4540&&_0x21d749?new window[(_0x3075b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55a576,_0x35b5e4)=>{_0x1b4540[_0x3075b0([0x74,0x68,0x65,0x6e])](_0x55a576,_0x35b5e4),_0x21d749[_0x3075b0([0x74,0x68,0x65,0x6e])](_0x28ecc2=>{_0x28ecc2!=_0x3075b0([0x56,0x61,0x6c,0x69,0x64])&&_0x55a576(_0x28ecc2);},_0x35b5e4);}):_0x1b4540||_0x21d749||_0x3075b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3fea7f(_0x4fbbc1,_0x7b423e){return new window[(_0x3075b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56c9c4=>{if(_0x2a4330())return _0x56c9c4(_0x3075b0([0x56,0x61,0x6c,0x69,0x64]));_0x40ada0(),_0x558375[_0x3075b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3075b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18de91=!0x1;const _0x21eb44=_0x544d98();function _0x31f162(_0x579546){return!!_0x579546&&(typeof _0x579546===_0x3075b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x579546===_0x3075b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x579546[_0x3075b0([0x74,0x68,0x65,0x6e])]===_0x3075b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x579546[_0x3075b0([0x63,0x61,0x74,0x63,0x68])]===_0x3075b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3233a3(_0x52abbc){_0x46f954(_0x52abbc)[_0x3075b0([0x74,0x68,0x65,0x6e])](_0x4e0aa7=>{if(!_0x4e0aa7||_0x4e0aa7[_0x3075b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3075b0([0x6f,0x6b]))return _0x3075b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e2124(_0x5837bd(_0x21eb44+_0x7b423e))!=_0x4e0aa7[_0x3075b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3075b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3075b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x3075b0([0x74,0x68,0x65,0x6e])](_0x726672=>(_0x4981a9(),_0x726672),()=>{const _0x42a670=_0x4f7f32();return null==_0x42a670?(_0x4981a9(),_0x3075b0([0x56,0x61,0x6c,0x69,0x64])):_0x3075b0(_0x34de85-_0x42a670>(0x38bee0a3^_0x536e44)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3075b0([0x74,0x68,0x65,0x6e])](_0x56c9c4)[_0x3075b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56c9c4(_0x3075b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x584a70=0x1c848a23^_0x536e44;function _0x4981a9(){const _0x2334e1=_0x3075b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e2124(_0x5837bd(_0x4fbbc1)),_0x30b4eb=_0x40b940(_0x5e2124(window[_0x3075b0([0x4d,0x61,0x74,0x68])][_0x3075b0([0x63,0x65,0x69,0x6c])](_0x34de85/_0x584a70)));window[_0x3075b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3075b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2334e1,_0x30b4eb);}function _0x4f7f32(){const _0x201b90=_0x3075b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e2124(_0x5837bd(_0x4fbbc1)),_0x4820da=window[_0x3075b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3075b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x201b90);return _0x4820da?window[_0x3075b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40b940(_0x4820da),0x10)*_0x584a70:null;}function _0x46f954(_0x29fafb){return new window[(_0x3075b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5354e3,_0x58988d)=>{_0x29fafb[_0x3075b0([0x74,0x68,0x65,0x6e])](_0x5354e3,_0x58988d),window[_0x3075b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58988d,0x1cb3b063^_0x536e44);});}}_0x558375[_0x3075b0([0x6f,0x6e])](_0x3075b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a6c99,_0x157cfa)=>{if(_0x157cfa[0x0]!=_0x4fbbc1)return _0x56c9c4(_0x3075b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x157cfa[0x1]={..._0x157cfa[0x1],[_0x3075b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21eb44};},{[_0x3075b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3075b0([0x68,0x69,0x67,0x68])}),_0x558375[_0x3075b0([0x6f,0x6e])](_0x3075b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34f487=>{_0x31f162(_0x34f487[_0x3075b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18de91=!0x0,_0x3233a3(_0x34f487[_0x3075b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3075b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3075b0([0x6c,0x6f,0x77])}),_0x5a3e3f[_0x3075b0([0x74,0x68,0x65,0x6e])](()=>{_0x18de91||_0x56c9c4(_0x3075b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a4330(){return _0x558375[_0x3075b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3075b0([0x76,0x69,0x65,0x77])][_0x3075b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3075b0([0x61,0x75,0x74,0x6f]);}function _0x40ada0(){_0x558375[_0x3075b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3075b0([0x76,0x69,0x65,0x77])][_0x3075b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3075b0([0x61,0x75,0x74,0x6f]);}}function _0x5f7008(_0x1fcb06){const _0x209f58=[new window[(_0x3075b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fc9f0=>setTimeout(_0x1fc9f0,0x1cbb5a6f^_0x536e44)),_0x5a3e3f[_0x3075b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3075b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbc04c6=>{let _0x489035=0x0;_0x558375[_0x3075b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3075b0([0x6f,0x6e])](_0x3075b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x61cfe7,_0x3c29d7)=>{_0x3c29d7[0x0][_0x3075b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x489035++,_0x489035==(0x1cb2614b^_0x536e44)&&(_0xbc04c6(),_0x61cfe7[_0x3075b0([0x6f,0x66,0x66])]());});}))];return window[_0x3075b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3075b0([0x72,0x61,0x63,0x65])](_0x209f58)[_0x3075b0([0x74,0x68,0x65,0x6e])](()=>_0x1fcb06);}async function _0x4aa2ea(){await _0x5a3e3f,_0x558375[_0x3075b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3075b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x542a43,_0x558375[_0x3075b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3075b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x542a43,_0x558375[_0x3075b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3075b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x937639(){return window[_0x3075b0([0x67,0x6c,0x6f,0x62])]&&window[_0x3075b0([0x67,0x6c,0x6f,0x62])][_0x3075b0([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x20799c(_0x302d09){const _0x49908a=_0x19641c();_0x558375[_0x49908a]=_0x3075b0([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x302d09,_0x302d09!=_0x3075b0([0x56,0x61,0x6c,0x69,0x64])&&_0x4aa2ea();}function _0x19641c(){const _0x241bce=window[_0x3075b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3075b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3075b0([0x6e,0x6f,0x77])]())[_0x3075b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3075b0([0x2e]),'');let _0x2743d3=_0x3075b0([0x61]);for(let _0x705207=0x0;_0x705207<_0x241bce[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x705207+=0x2){let _0x264475=window[_0x3075b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x241bce[_0x3075b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x705207,_0x705207+0x2));_0x264475>=_0x299cee[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x264475-=_0x299cee[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2743d3+=_0x299cee[_0x264475];}return _0x2743d3;}function _0x835736(){const _0x1fc356=_0x1a7cec[_0x3075b0([0x73,0x70,0x6c,0x69,0x74])](_0x3075b0([0x2e]));if(0x3!=_0x1fc356[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34c841(_0x1fc356[0x1]);function _0x34c841(_0x6389df){const _0x49819b=_0x12b698(_0x6389df);return _0x49819b&&_0x473cbd()?_0x49819b:null;function _0x473cbd(){const _0xa88b4d=_0x49819b[_0x3075b0([0x6a,0x74,0x69])],_0x37e684=window[_0x3075b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa88b4d[_0x3075b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa88b4d[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43f271={..._0x49819b,[_0x3075b0([0x6a,0x74,0x69])]:_0xa88b4d[_0x3075b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa88b4d[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43f271[_0x3075b0([0x76,0x63])],_0x5837bd(_0x43f271)==_0x37e684;}}}async function _0x26a1c9(){let _0x5e698a=!0x0;try{const _0x5c6a97=_0x1a7cec[_0x3075b0([0x73,0x70,0x6c,0x69,0x74])](_0x3075b0([0x2e])),[_0xc9f177,_0x32ccce,_0x1560ad]=_0x5c6a97;return _0x2ef76c(_0xc9f177),await _0x2b9570(_0xc9f177,_0x32ccce,_0x1560ad),_0x5e698a;}catch{return!0x1;}function _0x2ef76c(_0x5389a2){const _0x4857b5=_0x12b698(_0x5389a2);_0x4857b5&&_0x4857b5[_0x3075b0([0x61,0x6c,0x67])]==_0x3075b0([0x45,0x53,0x32,0x35,0x36])||(_0x5e698a=!0x1);}async function _0x2b9570(_0x292d99,_0x27d07d,_0x4f9cdb){const _0x5f55da=window[_0x3075b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3075b0([0x66,0x72,0x6f,0x6d])](_0x5da39e(_0x4f9cdb),_0x220e70=>_0x220e70[_0x3075b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x54b4b6=new window[(_0x3075b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3075b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x292d99+_0x3075b0([0x2e])+_0x27d07d),_0x880310=window[_0x3075b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3075b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x880310)return;const _0xc39cd0=await _0x880310[_0x3075b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3075b0([0x6a,0x77,0x6b]),_0x3bf2d5,{[_0x3075b0([0x6e,0x61,0x6d,0x65])]:_0x3075b0([0x45,0x43,0x44,0x53,0x41]),[_0x3075b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3075b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3075b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x880310[_0x3075b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3075b0([0x6e,0x61,0x6d,0x65])]:_0x3075b0([0x45,0x43,0x44,0x53,0x41]),[_0x3075b0([0x68,0x61,0x73,0x68])]:{[_0x3075b0([0x6e,0x61,0x6d,0x65])]:_0x3075b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc39cd0,_0x5f55da,_0x54b4b6)||(_0x5e698a=!0x1);}}function _0x12b698(_0xe73905){return _0xe73905[_0x3075b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3075b0([0x65,0x79]))?JSON[_0x3075b0([0x70,0x61,0x72,0x73,0x65])](_0x5da39e(_0xe73905)):null;}function _0x5da39e(_0x4c48fd){return window[_0x3075b0([0x61,0x74,0x6f,0x62])](_0x4c48fd[_0x3075b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3075b0([0x2b]))[_0x3075b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3075b0([0x2f])));}function _0x5837bd(_0x22325a){let _0x384621=0x1505;function _0x3b091a(_0xa0d9bb){for(let _0x3719c8=0x0;_0x3719c8<_0xa0d9bb[_0x3075b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3719c8++){const _0x52fd20=_0xa0d9bb[_0x3075b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3719c8);_0x384621=(_0x384621<<0x5)+_0x384621+_0x52fd20,_0x384621&=_0x384621;}}function _0x4999c3(_0x1a3a8e){Array[_0x3075b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a3a8e)?_0x1a3a8e[_0x3075b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4999c3):_0x1a3a8e&&typeof _0x1a3a8e==_0x3075b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3075b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a3a8e)[_0x3075b0([0x73,0x6f,0x72,0x74])]()[_0x3075b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xdb5cd3,_0x46a1c2])=>{_0x3b091a(_0xdb5cd3),_0x4999c3(_0x46a1c2);}):_0x3b091a(window[_0x3075b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a3a8e));}return _0x4999c3(_0x22325a),_0x384621>>>0x0;}function _0x5e2124(_0x384bed){return _0x384bed[_0x3075b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3075b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3075b0([0x30]));}function _0x40b940(_0x13f8c4){return _0x13f8c4[_0x3075b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3075b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3075b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x542a43(){}function _0x3075b0(_0x751327){return _0x751327['map'](_0x1fbeff=>String['fromCharCode'](_0x1fbeff))['join']('');}_0x20799c(await _0x588328());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x1d4d00,{outlineDefinitions:_0xa383a0,outlineChanges:_0x142c09}){this['_currentOutlineDefinitions']=_0xa383a0,this['view']['sync'](_0x142c09);}['_setActiveViewItem'](_0x424e61){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x424e61]&&(this['view']['activeItemIndex']=_0x424e61);}['_handleItemSelected'](_0x477c94){const _0x37be43=this['_currentOutlineDefinitions'][_0x477c94]['modelElement'];this['editor']['model']['change'](_0x552c15=>{_0x552c15['setSelection'](_0x37be43,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x477c94);}['_updateActiveDefinitionOnViewportChange'](){const _0x451df4=this['editor'];let _0x5a5eec;for(const _0xa6be2f of _0x451df4['model']['document']['getRootNames']()){const _0x273a14=_0x451df4['editing']['view']['getDomRoot'](_0xa6be2f),_0x64c608=_0x273a14&&new _0x5196fc(_0x273a14)['getVisible']();if(_0x64c608){const _0x354132=new _0x5196fc(_0xfb0400['window'])['getIntersection'](_0x64c608);_0x354132&&(_0x5a5eec=_0x354132['top']+0.25*_0x354132['height']);}}if(void 0x0===_0x5a5eec)return;const _0x35af1e=k(_0x451df4['editing'],this['_currentOutlineDefinitions'],_0x5a5eec);_0x35af1e?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x35af1e)):this['_setActiveViewItem'](-0x1);}}function k(_0x36809e,_0x16576c,_0x2ff354,_0x1fffd1=0x0,_0x37782f=_0x16576c['length']-0x1){const _0x1234cc=Math['floor'](_0x1fffd1+(_0x37782f-_0x1fffd1)/0x2);if(_0x37782f>=_0x1fffd1){const _0x229e6d=_0x16576c[_0x1234cc],_0x130221=_0x36809e['mapper']['toViewElement'](_0x229e6d['modelElement']);if(!_0x130221)return null;const _0x2f01da=_0x36809e['view']['domConverter']['mapViewToDom'](_0x130221);return new _0x5196fc(_0x2f01da)['bottom']>_0x2ff354?k(_0x36809e,_0x16576c,_0x2ff354,_0x1fffd1,_0x1234cc-0x1):k(_0x36809e,_0x16576c,_0x2ff354,_0x1234cc+0x1,_0x37782f);}return _0x1234cc<0x0?null:_0x16576c[_0x1234cc];}class K extends _0x1bbd71{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,L];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1a9aa0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5da975;for(const _0x4c341c in _0x1a9aa0){const _0x27ce91=_0x4c341c,_0x4fd2a0=_0x1a9aa0[_0x27ce91];if('documentOutlineLicenseKeyValid'==_0x4fd2a0||'documentOutlineLicenseKeyInvalid'==_0x4fd2a0||'documentOutlineLicenseKeyExpired'==_0x4fd2a0||'documentOutlineLicenseKeyDomainLimit'==_0x4fd2a0||'documentOutlineLicenseKeyNotAllowed'==_0x4fd2a0||'documentOutlineLicenseKeyEvaluationLimit'==_0x4fd2a0||'documentOutlineLicenseKeyUsageLimit'==_0x4fd2a0){delete _0x1a9aa0[_0x27ce91],_0x5da975=_0x4fd2a0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x5da975&&_0x1a9aa0['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x5da975&&_0x1a9aa0['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x5da975&&_0x1a9aa0['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x5da975&&_0x1a9aa0['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x5da975&&_0x1a9aa0['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x5da975&&_0x1a9aa0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x28cef0{['execute'](){this['editor']['model']['change'](_0x363ac5=>{this['editor']['model']['insertObject'](_0x363ac5['createElement']('tableOfContents'));});}['refresh'](){const _0x38072c=this['editor']['model'],_0x4fbea1=_0x38072c['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x4fbea1&&_0x38072c['schema']['findAllowedParent'](_0x4fbea1,'tableOfContents'));}}class N extends _0x1bbd71{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x54248c=this['editor'];if(_0x54248c['config']['get']('headingId.modelAttributeName'))return;(function(_0x3c16af){const _0x52d33a=new Map();if(_0x3c16af)return _0x3c16af['forEach'](_0x1c0ac0=>{'paragraph'!==_0x1c0ac0['model']&&_0x52d33a['set'](_0x1c0ac0['view'],_0x1c0ac0['model']);}),_0x52d33a['get']('h1')||_0x52d33a['set']('h1','heading1'),_0x52d33a;return _0x52d33a;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x192da9,_0x54561d)=>{this['_customUpcastHeadingsConversion'](_0x54561d),this['_customDataDowncastHeadingsConversion'](_0x192da9),_0x54248c['model']['schema']['isRegistered'](_0x192da9)&&_0x54248c['model']['schema']['extend'](_0x192da9,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x1ef50a){this['editor']['conversion']['for']('upcast')['add'](_0x3a8a7a=>_0x3a8a7a['on']('element:'+_0x1ef50a,(_0x5eb7d2,_0x5622c3,_0x2a8372)=>{const {consumable:_0x2a8abd,writer:_0x15298f}=_0x2a8372,_0xb71f4e=_0x5622c3['viewItem']['getAttribute']('id'),_0x2057cd=_0x5622c3['modelRange']['getContainedElement']();if(_0x2057cd)return _0xb71f4e&&_0xb71f4e['length']||_0x2057cd['hasAttribute']('headingId')?void(_0x2a8abd['consume'](_0x5622c3['viewItem'],{'attributes':['id']})&&_0x15298f['setAttribute']('headingId',_0xb71f4e,_0x2057cd)):(_0x2a8abd['consume'](_0x5622c3['viewItem'],{'attributes':['id']}),void _0x15298f['setAttribute']('headingId',_0x544d98(),_0x2057cd));},{'priority':_0x2b9cfb['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x39c7c5){this['editor']['conversion']['for']('downcast')['add'](_0x1a9d7b=>_0x1a9d7b['on']('attribute:headingId:'+_0x39c7c5,(_0x5f1a90,_0x278d52,_0x1d14ed)=>{if(!_0x1d14ed['consumable']['consume'](_0x278d52['item'],_0x5f1a90['name']))return;const _0x334623=_0x278d52['item']['getAttribute']('headingId'),_0x5f039b=_0x1d14ed['mapper']['toViewElement'](_0x278d52['item']);_0x1d14ed['writer']['setAttribute']('id',_0x334623,_0x5f039b);}));}['_registerHeadingIdAttributePostfixer'](){const _0x4b2cc3=this['editor'],_0x26a804=new Set(),_0x31d90f=new Set();function _0x5ebcb5(_0x3bce20,_0x136d59){const _0x15f396=_0x544d98();return _0x31d90f['add'](_0x15f396),_0x3bce20['setAttribute']('headingId',_0x15f396,_0x136d59),_0x15f396;}function _0x5e7ed3(_0x34b257,_0x133d20){_0x34b257['removeAttribute']('headingId',_0x133d20);}_0x4b2cc3['model']['document']['registerPostFixer'](_0x1dfe7d=>{const _0x4807bf=_0x4b2cc3['model']['document']['differ']['getChanges']();let _0x20af67=!0x1;for(const _0x2d74a4 of _0x4807bf)if('insert'==_0x2d74a4['type']&&_0x2d74a4['name']){if(T(_0x2d74a4['name'])){const _0x578d24=_0x2d74a4['attributes']['get']('headingId');'string'==typeof _0x578d24?_0x26a804['has'](_0x578d24)?(_0x5ebcb5(_0x1dfe7d,_0x2d74a4['position']['nodeAfter']),_0x20af67=!0x0):_0x31d90f['add'](_0x578d24):(_0x5ebcb5(_0x1dfe7d,_0x2d74a4['position']['nodeAfter']),_0x20af67=!0x0);}else'string'==typeof _0x2d74a4['attributes']['get']('headingId')&&(_0x5e7ed3(_0x1dfe7d,_0x2d74a4['position']['nodeAfter']),_0x20af67=!0x0);}else{if('remove'==_0x2d74a4['type']){const _0x347588=_0x2d74a4['attributes']['get']('headingId');'string'==typeof _0x347588&&_0x26a804['delete'](_0x347588);}}return _0x20af67;}),_0x4b2cc3['model']['document']['on']('change',()=>{_0x31d90f['forEach'](_0x433fbb=>_0x26a804['add'](_0x433fbb)),_0x31d90f['clear']();});}}function T(_0x122a3e){return!!_0x122a3e['match'](/heading\d/);}class A extends _0x1bbd71{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x116962,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x2f22ad){super(_0x2f22ad),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x5e29b5=this['editor'],_0x120a35=_0x5e29b5['editing']['view']['document'];_0x5e29b5['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x5e29b5['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x120a35,'click',(_0x5ee6c3,_0x145d58)=>{if(!_0x145d58['target'])return;const _0x20ff25=_0x145d58['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x20ff25)&&(_0x145d58['domEvent']['preventDefault'](),_0x5ee6c3['stop'](),this['_handleScrollToHeading'](_0x20ff25));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x5e29b5['commands']['add']('insertTableOfContents',new E(_0x5e29b5));const _0x35e7b1=_0x5e29b5['config']['get']('tableOfContents.headings');if(_0x35e7b1&&_0x35e7b1['length'])this['listenTo'](_0x5e29b5['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x35e7b1),this['_updateTableOfContentsElements']();});else _0x5e29b5['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x1cac9c,_0x2f89d6)=>{this['_currentOutlineDefinitions']=_0x2f89d6['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x5e29b5['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x5c34e2){const _0xe192aa=_0xa8cb8e([0x6d,0x72,0x34,0x7a,0x32,0x79,0x61,0x6b,0x4d,0x33,0x78,0x30,0x70,0x68,0x74,0x44,0x37,0x6a,0x42,0x77,0x31,0x54,0x36,0x71,0x52,0x66,0x65,0x55,0x75,0x5a,0x63,0x4f,0x4c,0x4e,0x4b,0x56,0x67,0x51,0x53,0x50,0x45,0x39,0x69,0x47,0x49,0x48,0x6f,0x58,0x6c,0x4a,0x57,0x38,0x59,0x73,0x43,0x62,0x35,0x41,0x6e,0x64,0x46,0x76]),_0x25ca89=0x6b9b05fd,_0x19b863=0x6b9c8c6d^_0x25ca89,_0x50a463=window[_0xa8cb8e([0x44,0x61,0x74,0x65])][_0xa8cb8e([0x6e,0x6f,0x77])](),_0x2f30e0=_0x5c34e2[_0xa8cb8e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc82706=new window[(_0xa8cb8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9db8=>{_0x2f30e0[_0xa8cb8e([0x6f,0x6e,0x63,0x65])](_0xa8cb8e([0x72,0x65,0x61,0x64,0x79]),_0x4d9db8);}),_0x3ed970={[_0xa8cb8e([0x6b,0x74,0x79])]:_0xa8cb8e([0x45,0x43]),[_0xa8cb8e([0x75,0x73,0x65])]:_0xa8cb8e([0x73,0x69,0x67]),[_0xa8cb8e([0x63,0x72,0x76])]:_0xa8cb8e([0x50,0x2d,0x32,0x35,0x36]),[_0xa8cb8e([0x78])]:_0xa8cb8e([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]),[_0xa8cb8e([0x79])]:_0xa8cb8e([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]),[_0xa8cb8e([0x61,0x6c,0x67])]:_0xa8cb8e([0x45,0x53,0x32,0x35,0x36])},_0x2e248d=_0x2f30e0[_0xa8cb8e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa8cb8e([0x67,0x65,0x74])](_0xa8cb8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x559937(){let _0x4269fd,_0x1e81fc=null,_0x30c9bf=null;try{if(_0x2e248d==_0xa8cb8e([0x47,0x50,0x4c]))return _0xa8cb8e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4269fd=_0x1379d7(),!_0x4269fd)return _0xa8cb8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4269fd[_0xa8cb8e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30c9bf=_0x136566(_0x4269fd[_0xa8cb8e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4269fd[_0xa8cb8e([0x6a,0x74,0x69])])),await _0xa6e4d3()?_0x3e9333()?_0x3873b5()?_0xa8cb8e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18b62d()?(_0x4269fd[_0xa8cb8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8cb8e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e81fc=_0x48b3f0(_0xa8cb8e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x269286()):_0xa8cb8e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa8cb8e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa8cb8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa8cb8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3873b5(){const _0x53b76b=[_0xa8cb8e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa8cb8e([0x74,0x72,0x69,0x61,0x6c])][_0xa8cb8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4269fd[_0xa8cb8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50a463/0x3e8:0xe10*_0x19b863;return _0x4269fd[_0xa8cb8e([0x65,0x78,0x70])]<_0x53b76b;}function _0x3e9333(){const _0x45c32c=_0x4269fd[_0xa8cb8e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x45c32c&&(!!_0x45c32c[_0xa8cb8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8cb8e([0x2a]))||(!!_0x45c32c[_0xa8cb8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8cb8e([0x54,0x4f,0x43]))||(!!_0x45c32c[_0xa8cb8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8cb8e([0x50,0x50]))||!(!_0x45c32c[_0xa8cb8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8cb8e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x9467b7()))));}function _0x18b62d(){const _0x492be2=_0x4269fd[_0xa8cb8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x492be2||0x0==_0x492be2[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa93022}=new URL(window[_0xa8cb8e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x492be2[_0xa8cb8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa93022))return!0x0;const _0xea0736=_0xa93022[_0xa8cb8e([0x73,0x70,0x6c,0x69,0x74])](_0xa8cb8e([0x2e]));return _0x492be2[_0xa8cb8e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5613d2=>_0x5613d2[_0xa8cb8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8cb8e([0x2a])))[_0xa8cb8e([0x6d,0x61,0x70])](_0xad37e6=>_0xad37e6[_0xa8cb8e([0x73,0x70,0x6c,0x69,0x74])](_0xa8cb8e([0x2e])))[_0xa8cb8e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc6cd71=>_0xc6cd71[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xea0736[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa8cb8e([0x6d,0x61,0x70])](_0x35a70d=>Array(_0xea0736[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x35a70d[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa8cb8e([0x66,0x69,0x6c,0x6c])](_0x35a70d[0x0]===_0xa8cb8e([0x2a])?_0xa8cb8e([0x2a]):'')[_0xa8cb8e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x35a70d))[_0xa8cb8e([0x73,0x6f,0x6d,0x65])](_0x2b0f31=>_0xea0736[_0xa8cb8e([0x65,0x76,0x65,0x72,0x79])]((_0x2bf465,_0x4ee726)=>_0x2b0f31[_0x4ee726]===_0x2bf465||_0x2b0f31[_0x4ee726]===_0xa8cb8e([0x2a])));}function _0x269286(){return _0x1e81fc&&_0x30c9bf?new window[(_0xa8cb8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d96b0,_0x30dcb8)=>{_0x1e81fc[_0xa8cb8e([0x74,0x68,0x65,0x6e])](_0x1d96b0,_0x30dcb8),_0x30c9bf[_0xa8cb8e([0x74,0x68,0x65,0x6e])](_0x2bef4d=>{_0x2bef4d!=_0xa8cb8e([0x56,0x61,0x6c,0x69,0x64])&&_0x1d96b0(_0x2bef4d);},_0x30dcb8);}):_0x1e81fc||_0x30c9bf||_0xa8cb8e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x136566(_0x42de02,_0x536b33){return new window[(_0xa8cb8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42b893=>{if(_0x1f8525())return _0x42b893(_0xa8cb8e([0x56,0x61,0x6c,0x69,0x64]));_0x55ee3d(),_0x2f30e0[_0xa8cb8e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa8cb8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ef6c4=!0x1;const _0x29fe87=_0x544d98();function _0x38e3d4(_0x317a6b){return!!_0x317a6b&&(typeof _0x317a6b===_0xa8cb8e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x317a6b===_0xa8cb8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x317a6b[_0xa8cb8e([0x74,0x68,0x65,0x6e])]===_0xa8cb8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x317a6b[_0xa8cb8e([0x63,0x61,0x74,0x63,0x68])]===_0xa8cb8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa9deb9(_0x23f34f){_0x4794d3(_0x23f34f)[_0xa8cb8e([0x74,0x68,0x65,0x6e])](_0x296ee0=>{if(!_0x296ee0||_0x296ee0[_0xa8cb8e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa8cb8e([0x6f,0x6b]))return _0xa8cb8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2897d5(_0x5dc729(_0x29fe87+_0x536b33))!=_0x296ee0[_0xa8cb8e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa8cb8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa8cb8e([0x56,0x61,0x6c,0x69,0x64]);})[_0xa8cb8e([0x74,0x68,0x65,0x6e])](_0x429801=>(_0x11344d(),_0x429801),()=>{const _0x3b2026=_0x5660e1();return null==_0x3b2026?(_0x11344d(),_0xa8cb8e([0x56,0x61,0x6c,0x69,0x64])):_0xa8cb8e(_0x50a463-_0x3b2026>(0x4f9781fd^_0x25ca89)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa8cb8e([0x74,0x68,0x65,0x6e])](_0x42b893)[_0xa8cb8e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42b893(_0xa8cb8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x323d22=0x6badeb7d^_0x25ca89;function _0x11344d(){const _0x54ae9f=_0xa8cb8e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2897d5(_0x5dc729(_0x42de02)),_0x3bbe04=_0x2402f3(_0x2897d5(window[_0xa8cb8e([0x4d,0x61,0x74,0x68])][_0xa8cb8e([0x63,0x65,0x69,0x6c])](_0x50a463/_0x323d22)));window[_0xa8cb8e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8cb8e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54ae9f,_0x3bbe04);}function _0x5660e1(){const _0x3ee080=_0xa8cb8e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2897d5(_0x5dc729(_0x42de02)),_0x1471a7=window[_0xa8cb8e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8cb8e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ee080);return _0x1471a7?window[_0xa8cb8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2402f3(_0x1471a7),0x10)*_0x323d22:null;}function _0x4794d3(_0x53fa90){return new window[(_0xa8cb8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c0981,_0x5cf45f)=>{_0x53fa90[_0xa8cb8e([0x74,0x68,0x65,0x6e])](_0x4c0981,_0x5cf45f),window[_0xa8cb8e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5cf45f,0x6b9ad13d^_0x25ca89);});}}_0x2f30e0[_0xa8cb8e([0x6f,0x6e])](_0xa8cb8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50d21b,_0x317525)=>{if(_0x317525[0x0]!=_0x42de02)return _0x42b893(_0xa8cb8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x317525[0x1]={..._0x317525[0x1],[_0xa8cb8e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29fe87};},{[_0xa8cb8e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8cb8e([0x68,0x69,0x67,0x68])}),_0x2f30e0[_0xa8cb8e([0x6f,0x6e])](_0xa8cb8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd71e87=>{_0x38e3d4(_0xd71e87[_0xa8cb8e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ef6c4=!0x0,_0xa9deb9(_0xd71e87[_0xa8cb8e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa8cb8e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8cb8e([0x6c,0x6f,0x77])}),_0xc82706[_0xa8cb8e([0x74,0x68,0x65,0x6e])](()=>{_0x1ef6c4||_0x42b893(_0xa8cb8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f8525(){return _0x2f30e0[_0xa8cb8e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8cb8e([0x76,0x69,0x65,0x77])][_0xa8cb8e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa8cb8e([0x61,0x75,0x74,0x6f]);}function _0x55ee3d(){_0x2f30e0[_0xa8cb8e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8cb8e([0x76,0x69,0x65,0x77])][_0xa8cb8e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa8cb8e([0x61,0x75,0x74,0x6f]);}}function _0x48b3f0(_0x46f866){const _0x4b52d9=[new window[(_0xa8cb8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3684e5=>setTimeout(_0x3684e5,0x6b923b31^_0x25ca89)),_0xc82706[_0xa8cb8e([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa8cb8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92675b=>{let _0xd88539=0x0;_0x2f30e0[_0xa8cb8e([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8cb8e([0x6f,0x6e])](_0xa8cb8e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38ed77,_0x4492b2)=>{_0x4492b2[0x0][_0xa8cb8e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd88539++,_0xd88539==(0x6b9b0015^_0x25ca89)&&(_0x92675b(),_0x38ed77[_0xa8cb8e([0x6f,0x66,0x66])]());});}))];return window[_0xa8cb8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa8cb8e([0x72,0x61,0x63,0x65])](_0x4b52d9)[_0xa8cb8e([0x74,0x68,0x65,0x6e])](()=>_0x46f866);}async function _0x143a51(){await _0xc82706,_0x2f30e0[_0xa8cb8e([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8cb8e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25ab73,_0x2f30e0[_0xa8cb8e([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8cb8e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25ab73,_0x2f30e0[_0xa8cb8e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa8cb8e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9467b7(){return window[_0xa8cb8e([0x67,0x6c,0x6f,0x62])]&&window[_0xa8cb8e([0x67,0x6c,0x6f,0x62])][_0xa8cb8e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2314c7(_0x21ff37){const _0x460195=_0x54cd81();_0x2f30e0[_0x460195]=_0xa8cb8e([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21ff37,_0x21ff37!=_0xa8cb8e([0x56,0x61,0x6c,0x69,0x64])&&_0x143a51();}function _0x54cd81(){const _0x260e02=window[_0xa8cb8e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa8cb8e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa8cb8e([0x6e,0x6f,0x77])]())[_0xa8cb8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa8cb8e([0x2e]),'');let _0x2bf742=_0xa8cb8e([0x6d]);for(let _0x579979=0x0;_0x579979<_0x260e02[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x579979+=0x2){let _0xfdfe2b=window[_0xa8cb8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260e02[_0xa8cb8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x579979,_0x579979+0x2));_0xfdfe2b>=_0xe192aa[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfdfe2b-=_0xe192aa[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bf742+=_0xe192aa[_0xfdfe2b];}return _0x2bf742;}function _0x1379d7(){const _0x25d948=_0x2e248d[_0xa8cb8e([0x73,0x70,0x6c,0x69,0x74])](_0xa8cb8e([0x2e]));if(0x3!=_0x25d948[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51c337(_0x25d948[0x1]);function _0x51c337(_0x14fda3){const _0x3f8cec=_0xfde96b(_0x14fda3);return _0x3f8cec&&_0x3b2e2d()?_0x3f8cec:null;function _0x3b2e2d(){const _0x271199=_0x3f8cec[_0xa8cb8e([0x6a,0x74,0x69])],_0x31cf46=window[_0xa8cb8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271199[_0xa8cb8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x271199[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc434c0={..._0x3f8cec,[_0xa8cb8e([0x6a,0x74,0x69])]:_0x271199[_0xa8cb8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x271199[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc434c0[_0xa8cb8e([0x76,0x63])],_0x5dc729(_0xc434c0)==_0x31cf46;}}}async function _0xa6e4d3(){let _0x1d8cbe=!0x0;try{const _0x41704d=_0x2e248d[_0xa8cb8e([0x73,0x70,0x6c,0x69,0x74])](_0xa8cb8e([0x2e])),[_0x27debb,_0x4447b7,_0x207f02]=_0x41704d;return _0x3ee293(_0x27debb),await _0x16cc50(_0x27debb,_0x4447b7,_0x207f02),_0x1d8cbe;}catch{return!0x1;}function _0x3ee293(_0x4ef0ce){const _0x150f7d=_0xfde96b(_0x4ef0ce);_0x150f7d&&_0x150f7d[_0xa8cb8e([0x61,0x6c,0x67])]==_0xa8cb8e([0x45,0x53,0x32,0x35,0x36])||(_0x1d8cbe=!0x1);}async function _0x16cc50(_0x3a69fa,_0x590c52,_0x30f351){const _0xa14925=window[_0xa8cb8e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa8cb8e([0x66,0x72,0x6f,0x6d])](_0x20de6d(_0x30f351),_0x42b00e=>_0x42b00e[_0xa8cb8e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ce247=new window[(_0xa8cb8e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa8cb8e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a69fa+_0xa8cb8e([0x2e])+_0x590c52),_0x8c8aaa=window[_0xa8cb8e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa8cb8e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8c8aaa)return;const _0x3681d4=await _0x8c8aaa[_0xa8cb8e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa8cb8e([0x6a,0x77,0x6b]),_0x3ed970,{[_0xa8cb8e([0x6e,0x61,0x6d,0x65])]:_0xa8cb8e([0x45,0x43,0x44,0x53,0x41]),[_0xa8cb8e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa8cb8e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa8cb8e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8c8aaa[_0xa8cb8e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa8cb8e([0x6e,0x61,0x6d,0x65])]:_0xa8cb8e([0x45,0x43,0x44,0x53,0x41]),[_0xa8cb8e([0x68,0x61,0x73,0x68])]:{[_0xa8cb8e([0x6e,0x61,0x6d,0x65])]:_0xa8cb8e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3681d4,_0xa14925,_0x3ce247)||(_0x1d8cbe=!0x1);}}function _0xfde96b(_0x3071f9){return _0x3071f9[_0xa8cb8e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa8cb8e([0x65,0x79]))?JSON[_0xa8cb8e([0x70,0x61,0x72,0x73,0x65])](_0x20de6d(_0x3071f9)):null;}function _0x20de6d(_0x18c1de){return window[_0xa8cb8e([0x61,0x74,0x6f,0x62])](_0x18c1de[_0xa8cb8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa8cb8e([0x2b]))[_0xa8cb8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa8cb8e([0x2f])));}function _0x5dc729(_0x503037){let _0x20edee=0x1505;function _0x583fa2(_0x54e193){for(let _0x4411ff=0x0;_0x4411ff<_0x54e193[_0xa8cb8e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4411ff++){const _0x568fc3=_0x54e193[_0xa8cb8e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4411ff);_0x20edee=(_0x20edee<<0x5)+_0x20edee+_0x568fc3,_0x20edee&=_0x20edee;}}function _0xd7da5a(_0x36234d){Array[_0xa8cb8e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36234d)?_0x36234d[_0xa8cb8e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd7da5a):_0x36234d&&typeof _0x36234d==_0xa8cb8e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa8cb8e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36234d)[_0xa8cb8e([0x73,0x6f,0x72,0x74])]()[_0xa8cb8e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5287ea,_0x5bf9ca])=>{_0x583fa2(_0x5287ea),_0xd7da5a(_0x5bf9ca);}):_0x583fa2(window[_0xa8cb8e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36234d));}return _0xd7da5a(_0x503037),_0x20edee>>>0x0;}function _0x2897d5(_0x3b17d5){return _0x3b17d5[_0xa8cb8e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa8cb8e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa8cb8e([0x30]));}function _0x2402f3(_0x33329){return _0x33329[_0xa8cb8e([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa8cb8e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa8cb8e([0x6a,0x6f,0x69,0x6e])]('');}function _0x25ab73(){}function _0xa8cb8e(_0x1919a3){return _0x1919a3['map'](_0x233975=>String['fromCharCode'](_0x233975))['join']('');}_0x2314c7(await _0x559937());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x1a7503=>{'$graveyard'!==_0x1a7503['rootName']&&this['editor']['editing']['reconvertItem'](_0x1a7503);});}['_trackNewToCElements'](){for(const _0x49bb55 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x49bb55['type']||'tableOfContents'!==_0x49bb55['name'])return;this['_tableOfContentsElements']['add'](_0x49bb55['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x50a561){const _0x21970f=this['editor'],_0x51271f=[];for(const _0x3a0de6 of _0x21970f['model']['document']['getRootNames']())_0x37e43e(_0x21970f['model']['document']['getRoot'](_0x3a0de6));function _0x37e43e(_0x1b86c7){for(const _0x48ae45 of _0x1b86c7['getChildren']())_0x48ae45['is']('element')&&(_0x50a561['includes'](_0x48ae45['name'])&&_0x51271f['push']({'level':_0x50a561['indexOf'](_0x48ae45['name'])+0x1,'text':v(_0x48ae45),'modelElement':_0x48ae45}),_0x37e43e(_0x48ae45));}return _0x51271f;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x286943=this['editor']['conversion'];_0x286943['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x286943['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x21c750,{writer:_0x3124be})=>this['_createTableOfContents'](_0x3124be,!0x0)}),_0x286943['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x4d1a57,{writer:_0x422dbc})=>{this['_tableOfContentsElements']['add'](_0x4d1a57);const _0x49f818=this['_createTableOfContents'](_0x422dbc);return _0x40b94c(_0x49f818,_0x422dbc,{'label':C(this['editor']['locale'],'Table\x20of\x20contents')});}}),this['editor']['data']['registerRawContentMatcher']({'name':'div','classes':'table-of-contents'}),this['editor']['editing']['mapper']['on']('viewToModelPosition',this['_redirectMapper'](),{'priority':'high'});}['_createTableOfContents'](_0x4f3c7f,_0x26313b=!0x1){const {locale:_0x26f65d}=this['editor'],_0x34d33f=_0x4f3c7f['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x26313b&&{'data-table-of-contents-label':C(_0x26f65d,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x26313b&&_0x4f3c7f['insert'](_0x4f3c7f['createPositionAt'](_0x34d33f,'end'),_0x4f3c7f['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x4f3c7f['createText'](C(_0x26f65d,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x495215=_0x26313b?'':'['+C(_0x26f65d,'Empty\x20heading')+']';let _0x7cb832=_0x34d33f;return this['_currentOutlineDefinitions']['forEach']((_0x3fcd70,_0x8f9bed,_0x1af165)=>{const _0x4b4974=this['editor']['model']['hasContent'](_0x3fcd70['modelElement'],{'ignoreWhitespaces':!0x0}),_0x53775b=_0x4b4974?_0x3fcd70['text']:_0x495215,_0x2aa6bb=_0x3fcd70['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x2f6cfb=_0x4f3c7f['createContainerElement']('a',{'href':'#'+_0x2aa6bb,...!_0x26313b&&{'tabindex':'-1'}},[_0x4f3c7f['createText'](_0x53775b)]),_0x4098cb=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x4f3c7f['setCustomProperty']('tableOfContentsHeadingIndex',_0x8f9bed,_0x2f6cfb);const _0x4dbd44=_0x4f3c7f['createContainerElement']('li',null,[_0x4b4974||!_0x26313b&&_0x4098cb?_0x2f6cfb:_0x4f3c7f['createText']('')]),_0x26ae09=_0x8f9bed?_0x1af165[_0x8f9bed-0x1]['level']:0x0,_0x2b5d37=Math['abs'](_0x3fcd70['level']-_0x26ae09);if(_0x3fcd70['level']>_0x26ae09){const _0x20c8bd=P(_0x4dbd44,_0x2b5d37,_0x4f3c7f);_0x4f3c7f['insert'](_0x4f3c7f['createPositionAt'](_0x7cb832,'end'),_0x20c8bd);}else{const _0x20e25c=function(_0x41978f,_0x25cd58){return _0x41978f['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0xb6f090=>_0xb6f090['is']('element','ol'))[_0x25cd58];}(_0x7cb832,_0x2b5d37);_0x4f3c7f['insert'](_0x4f3c7f['createPositionAt'](_0x20e25c,'end'),_0x4dbd44);}_0x7cb832=_0x4dbd44;}),_0x34d33f;}['_handleScrollToHeading'](_0x49ce11){const _0x51a6cb=this['_currentOutlineDefinitions'][_0x49ce11]['modelElement'];this['editor']['model']['change'](_0x56309c=>{_0x56309c['setSelection'](_0x51a6cb,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x32e379,_0x50d2e3)=>{const _0x2c36e2=_0x50d2e3['mapper'],_0x4bd7c7=_0x2c36e2['findMappedViewAncestor'](_0x50d2e3['viewPosition']),_0x25b749=_0x2c36e2['toModelElement'](_0x4bd7c7);_0x25b749['is']('element','tableOfContents')&&(_0x50d2e3['modelPosition']=this['editor']['model']['createPositionAt'](_0x25b749,0x0),_0x32e379['stop']());};}}function P(_0x5d3a6b,_0x606393,_0x4518d2){return 0x1===_0x606393?_0x4518d2['createContainerElement']('ol',null,[_0x5d3a6b]):_0x4518d2['createContainerElement']('ol',null,[_0x4518d2['createContainerElement']('li',null,[P(_0x5d3a6b,_0x606393-0x1,_0x4518d2)])]);}class D extends _0x1bbd71{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x240a43=this['editor'];_0x240a43['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x23902a=this['_createButton'](_0x239b42);return _0x23902a['tooltip']=!0x0,_0x23902a;}),_0x240a43['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x1626b1)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2b380b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16b9d5;for(const _0x227be7 in _0x2b380b){const _0x5b8927=_0x227be7,_0x2b0683=_0x2b380b[_0x5b8927];if('tableOfContentsLicenseKeyValid'==_0x2b0683||'tableOfContentsLicenseKeyInvalid'==_0x2b0683||'tableOfContentsLicenseKeyExpired'==_0x2b0683||'tableOfContentsLicenseKeyDomainLimit'==_0x2b0683||'tableOfContentsLicenseKeyNotAllowed'==_0x2b0683||'tableOfContentsLicenseKeyEvaluationLimit'==_0x2b0683||'tableOfContentsLicenseKeyUsageLimit'==_0x2b0683){delete _0x2b380b[_0x5b8927],_0x16b9d5=_0x2b0683,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x16b9d5&&_0x2b380b['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x16b9d5&&_0x2b380b['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x16b9d5&&_0x2b380b['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x16b9d5&&_0x2b380b['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x16b9d5&&_0x2b380b['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x16b9d5&&_0x2b380b['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0xbf2372){const _0x38163f=this['editor'],_0x38740a=_0x38163f['locale'],_0x348727=_0x38163f['commands']['get']('insertTableOfContents'),_0x5999bf=new _0xbf2372(_0x38740a);return _0x5999bf['set']({'label':C(_0x38740a,'Table\x20of\x20contents'),'icon':_0x168cc9}),_0x5999bf['bind']('isEnabled')['to'](_0x348727,'isEnabled'),this['listenTo'](_0x5999bf,'execute',()=>{_0x38163f['execute']('insertTableOfContents'),_0x38163f['editing']['view']['focus']();}),_0x5999bf;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x1bbd71{static get['requires'](){return[A,D];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{K as DocumentOutline,L as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
23
+ import{Plugin as _0x170292,Command as _0x2d4894}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x40da14,throttle as _0x576711}from'es-toolkit/compat';import{ModelText as _0x3e06b4,ModelTreeWalker as _0x1a2ee4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x3b5611,diffToChanges as _0x1dfab6,scrollAncestorsToShowTarget as _0x29b53a,CKEditorError as _0x4e378e,global as _0x50442b,Rect as _0x5a0f8d,uid as _0x5a68c1,priorities as _0x5f53d5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x378dc0,ButtonView as _0x2d886d,MenuBarMenuListItemButtonView as _0x52938e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x24eb4d,toWidget as _0x344d43}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x3f4ec9}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x186309){let _0x3077f4='';for(const _0x20db1e of _0x186309['getChildren']())_0x20db1e instanceof _0x3e06b4&&(_0x3077f4+=_0x20db1e['data']);return _0x3077f4;}class I extends _0x170292{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x15a6ec=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x7f4188=[];_0x15a6ec['model']['document']['on']('change',_0x40da14(()=>{const _0xe18f1a=_0x7f4188;_0x7f4188=this['_getOutlineDefinitions']();const _0x5bfcea=_0x3b5611(_0xe18f1a,_0x7f4188,(_0x25b323,_0x4edd72)=>_0x25b323['level']===_0x4edd72['level']&&_0x25b323['text']===_0x4edd72['text']&&_0x25b323['modelElement']===_0x4edd72['modelElement']),_0x8c86b1=_0x1dfab6(_0x5bfcea,_0x7f4188),_0x88e96c=this['_getActiveHeading'](),_0x3ddfb6=_0x7f4188['findIndex'](_0x13ba64=>_0x13ba64['modelElement']===_0x88e96c);_0x8c86b1['length']&&this['fire']('change',{'outlineDefinitions':_0x7f4188,'activeItemIndex':_0x3ddfb6,'outlineChanges':_0x8c86b1}),this['fire']('activeItemIndex',{'index':_0x3ddfb6});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x235965=this['editor'],_0x32b3d6=[],_0x2f1db0=this['_headingNames'];for(const _0x44ad2c of _0x235965['model']['document']['getRootNames']())_0x19b2b1(_0x235965['model']['document']['getRoot'](_0x44ad2c));function _0x19b2b1(_0x4cb6c4){for(const _0x1c0917 of _0x4cb6c4['getChildren']())_0x1c0917['is']('element')&&(_0x2f1db0['includes'](_0x1c0917['name'])&&_0x32b3d6['push']({'level':_0x2f1db0['indexOf'](_0x1c0917['name'])+0x1,'text':v(_0x1c0917),'modelElement':_0x1c0917}),_0x19b2b1(_0x1c0917));}return _0x32b3d6;}['_getActiveHeading'](){const _0x1a8e0c=this['editor']['model']['document']['selection']['getFirstPosition'](),_0xdc2da4=new _0x1a2ee4({'direction':'backward','startPosition':_0x1a8e0c});for(const _0x4a871e of _0xdc2da4)if(_0x4a871e['item']['is']('element')&&this['_headingNames']['includes'](_0x4a871e['item']['name']))return _0x4a871e['item'];}['_getHeadingNames'](){const _0x2613ed=this['editor']['config']['get']('documentOutline.headings');return _0x2613ed||function(_0xf118d0){const _0x58187b=_0xf118d0['config']['get']('heading.options');return _0x58187b?_0x58187b['reduce']((_0x45525e,_0x1199b6)=>('paragraph'!==_0x1199b6['model']&&_0x45525e['push'](_0x1199b6['model']),_0x45525e),[]):_0xf118d0['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x541940=this['editor'],_0x20651d=['h1','h2','h3','h4','h5','h6'],_0x3b467a=[];for(const _0x17f02d of _0x20651d){const _0x391620=_0x541940['editing']['view']['domConverter']['domToView'](document['createElement'](_0x17f02d)),_0x23b847=_0x541940['data']['toModel'](_0x391620)['getChild'](0x0);_0x23b847?.['is']('element')&&_0x3b467a['push'](_0x23b847['name']);}this['_headingNames']=_0x3b467a;}}function C(_0x43ffd5,_0x416e39){const t=_0x43ffd5['t'];switch(_0x416e39){case'Empty\x20heading':return t('Empty\x20heading');case'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':return t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.');case'No\x20headings\x20were\x20found\x20in\x20the\x20document.':return t('No\x20headings\x20were\x20found\x20in\x20the\x20document.');case'Table\x20of\x20contents':return t('Table\x20of\x20contents');default:return _0x416e39;}}class _ extends _0x378dc0{constructor(_0x5db3b5,_0x32d56f=!0x1){super(_0x5db3b5);const _0x4a6c77=this['bindTemplate'],_0x211799=_0x32d56f?'['+C(_0x5db3b5,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5be18f=>!_0x5be18f),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x4a6c77['to']('level',_0x2d01d2=>'ck-document-outline__item_level-'+_0x2d01d2),_0x4a6c77['if']('isActive','ck-document-outline__item_active'),_0x4a6c77['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x4a6c77['to']('text')},'children':[{'text':_0x4a6c77['to']('text',_0x42c9bb=>_0x42c9bb||_0x211799)}],'on':{'click':_0x4a6c77['to']('click')}});}}class x extends _0x378dc0{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x4a679c,_0x493f72=!0x1,_0x5573f0){super(_0x4a679c),this['showEmptyHeadingText']=_0x493f72,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x5573f0,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x16bff9,_0x647695,_0x307047,_0x261788)=>{this['_setActiveItem'](_0x261788,_0x307047);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x4a679c['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x4a679c,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0xea5899){_0xea5899['forEach'](_0x1e1e27=>{'insert'==_0x1e1e27['type']?this['_insertItem'](_0x1e1e27['index'],..._0x1e1e27['values']):'delete'==_0x1e1e27['type']&&this['_deleteItem'](_0x1e1e27['index'],_0x1e1e27['howMany']);});}['_setActiveItem'](_0x2f107b,_0x5ef41b){if(-0x1!==_0x2f107b){const _0x23a672=this['items']['get'](_0x2f107b);_0x23a672&&(_0x23a672['isActive']=!0x1);}-0x1!==_0x5ef41b&&(this['items']['get'](_0x5ef41b)['isActive']=!0x0,this['_scrollToItem'](_0x5ef41b));}['_insertItem'](_0xd21d93,..._0x355197){const _0x31690e=_0x355197['map']((_0x3e9a0c,_0x82caf9)=>{const _0x318ca7=new _(this['locale'],this['showEmptyHeadingText']);return _0x318ca7['text']=_0x3e9a0c['text'],_0x318ca7['level']=_0x3e9a0c['level'],_0xd21d93+_0x82caf9===this['activeItemIndex']&&(_0x318ca7['isActive']=!0x0),_0x318ca7;});this['items']['addMany'](_0x31690e,_0xd21d93);}['_deleteItem'](_0xa8cc5b,_0x1231e0){do{this['items']['remove'](_0xa8cc5b);}while(--_0x1231e0);}['_handleItemClick'](_0x3b52e0){const _0x100e69=this['items']['getIndex'](_0x3b52e0['source']);this['fire']('itemSelected',_0x100e69);}['_scrollToItem'](_0x123760){_0x29b53a(this['items']['get'](_0x123760)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class L extends _0x170292{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x128776){super(_0x128776),this['view']=new x(_0x128776['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x576711(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x7acd45=this['editor'],_0x5440a6=_0x7acd45['plugins']['get']('DocumentOutlineUtils');let _0x3f4c93=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x7acd45['config']['get']('documentOutline.container'))throw new _0x4e378e('document-outline-container-not-provided',{'editor':_0x7acd45});_0x7acd45['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x5440a6['on']('change',this['_handleOutlineChange']['bind'](this)),_0x5440a6['on']('activeItemIndex',(_0x4874aa,{index:_0x9a6479})=>this['_setActiveViewItem'](_0x9a6479)),this['view']['on']('itemSelected',(_0x3d283e,_0x434a5d)=>{_0x3f4c93=!0x0,this['_handleItemSelected'](_0x434a5d);}),this['view']['listenTo'](_0x50442b['document'],'scroll',()=>{_0x3f4c93?_0x3f4c93=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x50442b['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x14b2ca){const _0x2723f0=_0x2cd655([0x61,0x57,0x78,0x6c,0x50,0x47,0x30,0x41,0x33,0x43,0x44,0x64,0x48,0x42,0x73,0x5a,0x45,0x71,0x77,0x55,0x4c,0x6f,0x6a,0x4f,0x72,0x67,0x4d,0x58,0x56,0x54,0x52,0x76,0x75,0x31,0x62,0x49,0x32,0x34,0x38,0x37,0x70,0x74,0x7a,0x4a,0x4b,0x51,0x65,0x69,0x68,0x66,0x4e,0x6b,0x59,0x53,0x39,0x6e,0x36,0x79,0x35,0x6d,0x63,0x46]),_0x460bce=0x1cb264a3,_0x2d7ac1=0x1cb5ed63^_0x460bce,_0x5834e6=window[_0x2cd655([0x44,0x61,0x74,0x65])][_0x2cd655([0x6e,0x6f,0x77])](),_0xc4813a=_0x14b2ca[_0x2cd655([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d72ba=new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaccf13=>{_0xc4813a[_0x2cd655([0x6f,0x6e,0x63,0x65])](_0x2cd655([0x72,0x65,0x61,0x64,0x79]),_0xaccf13);}),_0x1fd9b1={[_0x2cd655([0x6b,0x74,0x79])]:_0x2cd655([0x45,0x43]),[_0x2cd655([0x75,0x73,0x65])]:_0x2cd655([0x73,0x69,0x67]),[_0x2cd655([0x63,0x72,0x76])]:_0x2cd655([0x50,0x2d,0x32,0x35,0x36]),[_0x2cd655([0x78])]:_0x2cd655([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]),[_0x2cd655([0x79])]:_0x2cd655([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]),[_0x2cd655([0x61,0x6c,0x67])]:_0x2cd655([0x45,0x53,0x32,0x35,0x36])},_0x4e84d9=_0xc4813a[_0x2cd655([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cd655([0x67,0x65,0x74])](_0x2cd655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43f33c(){let _0x36d8fa,_0x1201f0=null,_0x2f367c=null;try{if(_0x4e84d9==_0x2cd655([0x47,0x50,0x4c]))return _0x2cd655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36d8fa=_0x24a4f7(),!_0x36d8fa)return _0x2cd655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36d8fa[_0x2cd655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f367c=_0x248c89(_0x36d8fa[_0x2cd655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36d8fa[_0x2cd655([0x6a,0x74,0x69])])),await _0x3674e7()?_0x320507()?_0x17fce0()?_0x2cd655([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c414b()?(_0x36d8fa[_0x2cd655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cd655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1201f0=_0x1c5e2f(_0x2cd655([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30b9e0()):_0x2cd655([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cd655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cd655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cd655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17fce0(){const _0x5662f3=[_0x2cd655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cd655([0x74,0x72,0x69,0x61,0x6c])][_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36d8fa[_0x2cd655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5834e6/0x3e8:0xe10*_0x2d7ac1;return _0x36d8fa[_0x2cd655([0x65,0x78,0x70])]<_0x5662f3;}function _0x320507(){const _0x1c7fad=_0x36d8fa[_0x2cd655([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c7fad&&(!!_0x1c7fad[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x2a]))||(!!_0x1c7fad[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x44,0x4f]))||(!!_0x1c7fad[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x50,0x50]))||!(!_0x1c7fad[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x49b822()))));}function _0x2c414b(){const _0x4ecb84=_0x36d8fa[_0x2cd655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ecb84||0x0==_0x4ecb84[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20b192}=new URL(window[_0x2cd655([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ecb84[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20b192))return!0x0;const _0x435392=_0x20b192[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])](_0x2cd655([0x2e]));return _0x4ecb84[_0x2cd655([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4327f1=>_0x4327f1[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x2a])))[_0x2cd655([0x6d,0x61,0x70])](_0x2fb75c=>_0x2fb75c[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])](_0x2cd655([0x2e])))[_0x2cd655([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25bd5f=>_0x25bd5f[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x435392[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cd655([0x6d,0x61,0x70])](_0x1b80a1=>Array(_0x435392[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b80a1[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cd655([0x66,0x69,0x6c,0x6c])](_0x1b80a1[0x0]===_0x2cd655([0x2a])?_0x2cd655([0x2a]):'')[_0x2cd655([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b80a1))[_0x2cd655([0x73,0x6f,0x6d,0x65])](_0x27f125=>_0x435392[_0x2cd655([0x65,0x76,0x65,0x72,0x79])]((_0x3d4d75,_0xd10b4a)=>_0x27f125[_0xd10b4a]===_0x3d4d75||_0x27f125[_0xd10b4a]===_0x2cd655([0x2a])));}function _0x30b9e0(){return _0x1201f0&&_0x2f367c?new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x561e2e,_0x16fd0e)=>{_0x1201f0[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x561e2e,_0x16fd0e),_0x2f367c[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x516a22=>{_0x516a22!=_0x2cd655([0x56,0x61,0x6c,0x69,0x64])&&_0x561e2e(_0x516a22);},_0x16fd0e);}):_0x1201f0||_0x2f367c||_0x2cd655([0x56,0x61,0x6c,0x69,0x64]);}}function _0x248c89(_0x6f6e83,_0x30edb3){return new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebed2=>{if(_0x11c666())return _0x2ebed2(_0x2cd655([0x56,0x61,0x6c,0x69,0x64]));_0x54546d(),_0xc4813a[_0x2cd655([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cd655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e4435=!0x1;const _0x791413=_0x5a68c1();function _0x255980(_0x39956e){return!!_0x39956e&&(typeof _0x39956e===_0x2cd655([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39956e===_0x2cd655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39956e[_0x2cd655([0x74,0x68,0x65,0x6e])]===_0x2cd655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39956e[_0x2cd655([0x63,0x61,0x74,0x63,0x68])]===_0x2cd655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x285950(_0x5c7c97){_0x240033(_0x5c7c97)[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x7f8159=>{if(!_0x7f8159||_0x7f8159[_0x2cd655([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cd655([0x6f,0x6b]))return _0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbfaab1(_0x4275bd(_0x791413+_0x30edb3))!=_0x7f8159[_0x2cd655([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cd655([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x5bc6b5=>(_0x136fbb(),_0x5bc6b5),()=>{const _0x3bed1b=_0x303bd4();return null==_0x3bed1b?(_0x136fbb(),_0x2cd655([0x56,0x61,0x6c,0x69,0x64])):_0x2cd655(_0x5834e6-_0x3bed1b>(0x38bee0a3^_0x460bce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x2ebed2)[_0x2cd655([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ebed2(_0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d4c33=0x1c848a23^_0x460bce;function _0x136fbb(){const _0x4132a1=_0x2cd655([0x6c,0x6c,0x63,0x74,0x2d])+_0xbfaab1(_0x4275bd(_0x6f6e83)),_0x1266fd=_0x5a2631(_0xbfaab1(window[_0x2cd655([0x4d,0x61,0x74,0x68])][_0x2cd655([0x63,0x65,0x69,0x6c])](_0x5834e6/_0x2d4c33)));window[_0x2cd655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cd655([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4132a1,_0x1266fd);}function _0x303bd4(){const _0x359f5d=_0x2cd655([0x6c,0x6c,0x63,0x74,0x2d])+_0xbfaab1(_0x4275bd(_0x6f6e83)),_0x505966=window[_0x2cd655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cd655([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x359f5d);return _0x505966?window[_0x2cd655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a2631(_0x505966),0x10)*_0x2d4c33:null;}function _0x240033(_0x6b6ec9){return new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e0464,_0x46d638)=>{_0x6b6ec9[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x1e0464,_0x46d638),window[_0x2cd655([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46d638,0x1cb3b063^_0x460bce);});}}_0xc4813a[_0x2cd655([0x6f,0x6e])](_0x2cd655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x323861,_0x3d7722)=>{if(_0x3d7722[0x0]!=_0x6f6e83)return _0x2ebed2(_0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d7722[0x1]={..._0x3d7722[0x1],[_0x2cd655([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x791413};},{[_0x2cd655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cd655([0x68,0x69,0x67,0x68])}),_0xc4813a[_0x2cd655([0x6f,0x6e])](_0x2cd655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50b863=>{_0x255980(_0x50b863[_0x2cd655([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e4435=!0x0,_0x285950(_0x50b863[_0x2cd655([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cd655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cd655([0x6c,0x6f,0x77])}),_0x1d72ba[_0x2cd655([0x74,0x68,0x65,0x6e])](()=>{_0x1e4435||_0x2ebed2(_0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11c666(){return _0xc4813a[_0x2cd655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cd655([0x76,0x69,0x65,0x77])][_0x2cd655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cd655([0x61,0x75,0x74,0x6f]);}function _0x54546d(){_0xc4813a[_0x2cd655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cd655([0x76,0x69,0x65,0x77])][_0x2cd655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cd655([0x61,0x75,0x74,0x6f]);}}function _0x1c5e2f(_0x1ae376){const _0xffdcda=[new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe37d93=>setTimeout(_0xe37d93,0x1cbb5a6f^_0x460bce)),_0x1d72ba[_0x2cd655([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf98713=>{let _0x39ea29=0x0;_0xc4813a[_0x2cd655([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd655([0x6f,0x6e])](_0x2cd655([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x269593,_0x1eec68)=>{_0x1eec68[0x0][_0x2cd655([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39ea29++,_0x39ea29==(0x1cb2614b^_0x460bce)&&(_0xf98713(),_0x269593[_0x2cd655([0x6f,0x66,0x66])]());});}))];return window[_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cd655([0x72,0x61,0x63,0x65])](_0xffdcda)[_0x2cd655([0x74,0x68,0x65,0x6e])](()=>_0x1ae376);}async function _0x3f8c2d(){await _0x1d72ba,_0xc4813a[_0x2cd655([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd655([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x779a10,_0xc4813a[_0x2cd655([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd655([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x779a10,_0xc4813a[_0x2cd655([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cd655([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49b822(){return window[_0x2cd655([0x67,0x6c,0x6f,0x62])]&&window[_0x2cd655([0x67,0x6c,0x6f,0x62])][_0x2cd655([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x11f240(_0x5c6960){const _0x35787e=_0x506447();_0xc4813a[_0x35787e]=_0x2cd655([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c6960,_0x5c6960!=_0x2cd655([0x56,0x61,0x6c,0x69,0x64])&&_0x3f8c2d();}function _0x506447(){const _0x6dbd6b=window[_0x2cd655([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cd655([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cd655([0x6e,0x6f,0x77])]())[_0x2cd655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cd655([0x2e]),'');let _0x4ccf34=_0x2cd655([0x61]);for(let _0x145ab2=0x0;_0x145ab2<_0x6dbd6b[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145ab2+=0x2){let _0x14f2b7=window[_0x2cd655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6dbd6b[_0x2cd655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145ab2,_0x145ab2+0x2));_0x14f2b7>=_0x2723f0[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14f2b7-=_0x2723f0[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ccf34+=_0x2723f0[_0x14f2b7];}return _0x4ccf34;}function _0x24a4f7(){const _0x4de24e=_0x4e84d9[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])](_0x2cd655([0x2e]));if(0x3!=_0x4de24e[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2829a2(_0x4de24e[0x1]);function _0x2829a2(_0x64b8e4){const _0x21fa69=_0x132e47(_0x64b8e4);return _0x21fa69&&_0x2fd052()?_0x21fa69:null;function _0x2fd052(){const _0x4b4427=_0x21fa69[_0x2cd655([0x6a,0x74,0x69])],_0x2f90e0=window[_0x2cd655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b4427[_0x2cd655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b4427[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3895ab={..._0x21fa69,[_0x2cd655([0x6a,0x74,0x69])]:_0x4b4427[_0x2cd655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b4427[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3895ab[_0x2cd655([0x76,0x63])],_0x4275bd(_0x3895ab)==_0x2f90e0;}}}async function _0x3674e7(){let _0x424ca6=!0x0;try{const _0x227390=_0x4e84d9[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])](_0x2cd655([0x2e])),[_0x53dc01,_0x4f828a,_0x5a4a70]=_0x227390;return _0x487e23(_0x53dc01),await _0x5be83c(_0x53dc01,_0x4f828a,_0x5a4a70),_0x424ca6;}catch{return!0x1;}function _0x487e23(_0x1b16a6){const _0x51526c=_0x132e47(_0x1b16a6);_0x51526c&&_0x51526c[_0x2cd655([0x61,0x6c,0x67])]==_0x2cd655([0x45,0x53,0x32,0x35,0x36])||(_0x424ca6=!0x1);}async function _0x5be83c(_0x4d0387,_0x13ce12,_0x23d1f5){const _0xac06fc=window[_0x2cd655([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cd655([0x66,0x72,0x6f,0x6d])](_0x457697(_0x23d1f5),_0x6456af=>_0x6456af[_0x2cd655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32d81e=new window[(_0x2cd655([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cd655([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d0387+_0x2cd655([0x2e])+_0x13ce12),_0xcd7cfd=window[_0x2cd655([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cd655([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xcd7cfd)return;const _0x50588c=await _0xcd7cfd[_0x2cd655([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cd655([0x6a,0x77,0x6b]),_0x1fd9b1,{[_0x2cd655([0x6e,0x61,0x6d,0x65])]:_0x2cd655([0x45,0x43,0x44,0x53,0x41]),[_0x2cd655([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cd655([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cd655([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xcd7cfd[_0x2cd655([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cd655([0x6e,0x61,0x6d,0x65])]:_0x2cd655([0x45,0x43,0x44,0x53,0x41]),[_0x2cd655([0x68,0x61,0x73,0x68])]:{[_0x2cd655([0x6e,0x61,0x6d,0x65])]:_0x2cd655([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50588c,_0xac06fc,_0x32d81e)||(_0x424ca6=!0x1);}}function _0x132e47(_0x4da0a4){return _0x4da0a4[_0x2cd655([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cd655([0x65,0x79]))?JSON[_0x2cd655([0x70,0x61,0x72,0x73,0x65])](_0x457697(_0x4da0a4)):null;}function _0x457697(_0x430c08){return window[_0x2cd655([0x61,0x74,0x6f,0x62])](_0x430c08[_0x2cd655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cd655([0x2b]))[_0x2cd655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cd655([0x2f])));}function _0x4275bd(_0x31b6fd){let _0x29f620=0x1505;function _0x284361(_0x12bd71){for(let _0x1f7d91=0x0;_0x1f7d91<_0x12bd71[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f7d91++){const _0x46e78c=_0x12bd71[_0x2cd655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f7d91);_0x29f620=(_0x29f620<<0x5)+_0x29f620+_0x46e78c,_0x29f620&=_0x29f620;}}function _0x1aa069(_0x319b05){Array[_0x2cd655([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x319b05)?_0x319b05[_0x2cd655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1aa069):_0x319b05&&typeof _0x319b05==_0x2cd655([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cd655([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x319b05)[_0x2cd655([0x73,0x6f,0x72,0x74])]()[_0x2cd655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58e518,_0x3daddd])=>{_0x284361(_0x58e518),_0x1aa069(_0x3daddd);}):_0x284361(window[_0x2cd655([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x319b05));}return _0x1aa069(_0x31b6fd),_0x29f620>>>0x0;}function _0xbfaab1(_0x3b7373){return _0x3b7373[_0x2cd655([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cd655([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cd655([0x30]));}function _0x5a2631(_0x22b36c){return _0x22b36c[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cd655([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cd655([0x6a,0x6f,0x69,0x6e])]('');}function _0x779a10(){}function _0x2cd655(_0x1b6825){return _0x1b6825['map'](_0x4e0e25=>String['fromCharCode'](_0x4e0e25))['join']('');}_0x11f240(await _0x43f33c());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0xbbe57b,{outlineDefinitions:_0x48cbd9,outlineChanges:_0x4e8400}){this['_currentOutlineDefinitions']=_0x48cbd9,this['view']['sync'](_0x4e8400);}['_setActiveViewItem'](_0x1b36ff){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x1b36ff]&&(this['view']['activeItemIndex']=_0x1b36ff);}['_handleItemSelected'](_0x469d67){const _0x37d2f2=this['_currentOutlineDefinitions'][_0x469d67]['modelElement'];this['editor']['model']['change'](_0x1b59fb=>{_0x1b59fb['setSelection'](_0x37d2f2,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x469d67);}['_updateActiveDefinitionOnViewportChange'](){const _0x5c819a=this['editor'];let _0x5d3809;for(const _0x3e8565 of _0x5c819a['model']['document']['getRootNames']()){const _0x1ac4aa=_0x5c819a['editing']['view']['getDomRoot'](_0x3e8565),_0x8b22a=_0x1ac4aa&&new _0x5a0f8d(_0x1ac4aa)['getVisible']();if(_0x8b22a){const _0x241847=new _0x5a0f8d(_0x50442b['window'])['getIntersection'](_0x8b22a);_0x241847&&(_0x5d3809=_0x241847['top']+0.25*_0x241847['height']);}}if(void 0x0===_0x5d3809)return;const _0x5a4e8a=k(_0x5c819a['editing'],this['_currentOutlineDefinitions'],_0x5d3809);_0x5a4e8a?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x5a4e8a)):this['_setActiveViewItem'](-0x1);}}function k(_0x353d33,_0x211250,_0x53eca5,_0x4c52b8=0x0,_0x27d1a7=_0x211250['length']-0x1){const _0xef9909=Math['floor'](_0x4c52b8+(_0x27d1a7-_0x4c52b8)/0x2);if(_0x27d1a7>=_0x4c52b8){const _0x3c4c87=_0x211250[_0xef9909],_0x525c02=_0x353d33['mapper']['toViewElement'](_0x3c4c87['modelElement']);if(!_0x525c02)return null;const _0x234e03=_0x353d33['view']['domConverter']['mapViewToDom'](_0x525c02);return new _0x5a0f8d(_0x234e03)['bottom']>_0x53eca5?k(_0x353d33,_0x211250,_0x53eca5,_0x4c52b8,_0xef9909-0x1):k(_0x353d33,_0x211250,_0x53eca5,_0xef9909+0x1,_0x27d1a7);}return _0xef9909<0x0?null:_0x211250[_0xef9909];}class K extends _0x170292{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,L];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18a1b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41315c;for(const _0x18b2a4 in _0x18a1b2){const _0x46d6b3=_0x18b2a4,_0x548b23=_0x18a1b2[_0x46d6b3];if('documentOutlineLicenseKeyValid'==_0x548b23||'documentOutlineLicenseKeyInvalid'==_0x548b23||'documentOutlineLicenseKeyExpired'==_0x548b23||'documentOutlineLicenseKeyDomainLimit'==_0x548b23||'documentOutlineLicenseKeyNotAllowed'==_0x548b23||'documentOutlineLicenseKeyEvaluationLimit'==_0x548b23||'documentOutlineLicenseKeyUsageLimit'==_0x548b23){delete _0x18a1b2[_0x46d6b3],_0x41315c=_0x548b23,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x41315c&&_0x18a1b2['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x41315c&&_0x18a1b2['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x41315c&&_0x18a1b2['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x41315c&&_0x18a1b2['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x41315c&&_0x18a1b2['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x41315c&&_0x18a1b2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x2d4894{['execute'](){this['editor']['model']['change'](_0xdc5b67=>{this['editor']['model']['insertObject'](_0xdc5b67['createElement']('tableOfContents'));});}['refresh'](){const _0x492e6c=this['editor']['model'],_0x2753bc=_0x492e6c['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x2753bc&&_0x492e6c['schema']['findAllowedParent'](_0x2753bc,'tableOfContents'));}}class N extends _0x170292{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2860f8=this['editor'];if(_0x2860f8['config']['get']('headingId.modelAttributeName'))return;(function(_0x4d582f){const _0xb960f0=new Map();if(_0x4d582f)return _0x4d582f['forEach'](_0x16742c=>{'paragraph'!==_0x16742c['model']&&_0xb960f0['set'](_0x16742c['view'],_0x16742c['model']);}),_0xb960f0['get']('h1')||_0xb960f0['set']('h1','heading1'),_0xb960f0;return _0xb960f0;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x454a2f,_0x3e1129)=>{this['_customUpcastHeadingsConversion'](_0x3e1129),this['_customDataDowncastHeadingsConversion'](_0x454a2f),_0x2860f8['model']['schema']['isRegistered'](_0x454a2f)&&_0x2860f8['model']['schema']['extend'](_0x454a2f,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x830848){this['editor']['conversion']['for']('upcast')['add'](_0x95db77=>_0x95db77['on']('element:'+_0x830848,(_0x272112,_0x1e1829,_0x23aaaa)=>{const {consumable:_0x161b10,writer:_0x5a4762}=_0x23aaaa,_0x105f22=_0x1e1829['viewItem']['getAttribute']('id'),_0x134c73=_0x1e1829['modelRange']['getContainedElement']();if(_0x134c73)return _0x105f22&&_0x105f22['length']||_0x134c73['hasAttribute']('headingId')?void(_0x161b10['consume'](_0x1e1829['viewItem'],{'attributes':['id']})&&_0x5a4762['setAttribute']('headingId',_0x105f22,_0x134c73)):(_0x161b10['consume'](_0x1e1829['viewItem'],{'attributes':['id']}),void _0x5a4762['setAttribute']('headingId',_0x5a68c1(),_0x134c73));},{'priority':_0x5f53d5['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0xae9c13){this['editor']['conversion']['for']('downcast')['add'](_0x433d58=>_0x433d58['on']('attribute:headingId:'+_0xae9c13,(_0x18ba79,_0x4a755b,_0x43dd2e)=>{if(!_0x43dd2e['consumable']['consume'](_0x4a755b['item'],_0x18ba79['name']))return;const _0x1f776e=_0x4a755b['item']['getAttribute']('headingId'),_0x51e17f=_0x43dd2e['mapper']['toViewElement'](_0x4a755b['item']);_0x43dd2e['writer']['setAttribute']('id',_0x1f776e,_0x51e17f);}));}['_registerHeadingIdAttributePostfixer'](){const _0x3f1a5b=this['editor'],_0x35308a=new Set(),_0x18c8c=new Set();function _0x4eaf8b(_0x4897f1,_0x56dbe7){const _0x520690=_0x5a68c1();return _0x18c8c['add'](_0x520690),_0x4897f1['setAttribute']('headingId',_0x520690,_0x56dbe7),_0x520690;}function _0x2e0e66(_0x42f10f,_0x53bcb6){_0x42f10f['removeAttribute']('headingId',_0x53bcb6);}_0x3f1a5b['model']['document']['registerPostFixer'](_0x4f4bd6=>{const _0xa0a989=_0x3f1a5b['model']['document']['differ']['getChanges']();let _0x2d13e0=!0x1;for(const _0x3d484c of _0xa0a989)if('insert'==_0x3d484c['type']&&_0x3d484c['name']){if(T(_0x3d484c['name'])){const _0x16cd7a=_0x3d484c['attributes']['get']('headingId');'string'==typeof _0x16cd7a?_0x35308a['has'](_0x16cd7a)?(_0x4eaf8b(_0x4f4bd6,_0x3d484c['position']['nodeAfter']),_0x2d13e0=!0x0):_0x18c8c['add'](_0x16cd7a):(_0x4eaf8b(_0x4f4bd6,_0x3d484c['position']['nodeAfter']),_0x2d13e0=!0x0);}else'string'==typeof _0x3d484c['attributes']['get']('headingId')&&(_0x2e0e66(_0x4f4bd6,_0x3d484c['position']['nodeAfter']),_0x2d13e0=!0x0);}else{if('remove'==_0x3d484c['type']){const _0x70205f=_0x3d484c['attributes']['get']('headingId');'string'==typeof _0x70205f&&_0x35308a['delete'](_0x70205f);}}return _0x2d13e0;}),_0x3f1a5b['model']['document']['on']('change',()=>{_0x18c8c['forEach'](_0x24794d=>_0x35308a['add'](_0x24794d)),_0x18c8c['clear']();});}}function T(_0x545855){return!!_0x545855['match'](/heading\d/);}class A extends _0x170292{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x24eb4d,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x3295d2){super(_0x3295d2),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x3e319f=this['editor'],_0x3eeffa=_0x3e319f['editing']['view']['document'];_0x3e319f['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x3e319f['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x3eeffa,'click',(_0x589a3b,_0x1feec0)=>{if(!_0x1feec0['target'])return;const _0x43f68a=_0x1feec0['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x43f68a)&&(_0x1feec0['domEvent']['preventDefault'](),_0x589a3b['stop'](),this['_handleScrollToHeading'](_0x43f68a));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x3e319f['commands']['add']('insertTableOfContents',new E(_0x3e319f));const _0x1e7941=_0x3e319f['config']['get']('tableOfContents.headings');if(_0x1e7941&&_0x1e7941['length'])this['listenTo'](_0x3e319f['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x1e7941),this['_updateTableOfContentsElements']();});else _0x3e319f['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x801b99,_0x1610c8)=>{this['_currentOutlineDefinitions']=_0x1610c8['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x3e319f['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x43d773){const _0x18d116=_0x39c131([0x6d,0x72,0x34,0x7a,0x32,0x79,0x61,0x6b,0x4d,0x33,0x78,0x30,0x70,0x68,0x74,0x44,0x37,0x6a,0x42,0x77,0x31,0x54,0x36,0x71,0x52,0x66,0x65,0x55,0x75,0x5a,0x63,0x4f,0x4c,0x4e,0x4b,0x56,0x67,0x51,0x53,0x50,0x45,0x39,0x69,0x47,0x49,0x48,0x6f,0x58,0x6c,0x4a,0x57,0x38,0x59,0x73,0x43,0x62,0x35,0x41,0x6e,0x64,0x46,0x76]),_0x59d217=0x6b9b05fd,_0x5bf3a4=0x6b9c8c3d^_0x59d217,_0x32847e=window[_0x39c131([0x44,0x61,0x74,0x65])][_0x39c131([0x6e,0x6f,0x77])](),_0xc54c14=_0x43d773[_0x39c131([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23913f=new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x186f79=>{_0xc54c14[_0x39c131([0x6f,0x6e,0x63,0x65])](_0x39c131([0x72,0x65,0x61,0x64,0x79]),_0x186f79);}),_0x5eaf98={[_0x39c131([0x6b,0x74,0x79])]:_0x39c131([0x45,0x43]),[_0x39c131([0x75,0x73,0x65])]:_0x39c131([0x73,0x69,0x67]),[_0x39c131([0x63,0x72,0x76])]:_0x39c131([0x50,0x2d,0x32,0x35,0x36]),[_0x39c131([0x78])]:_0x39c131([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]),[_0x39c131([0x79])]:_0x39c131([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]),[_0x39c131([0x61,0x6c,0x67])]:_0x39c131([0x45,0x53,0x32,0x35,0x36])},_0x422710=_0xc54c14[_0x39c131([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39c131([0x67,0x65,0x74])](_0x39c131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xdff27(){let _0x18f3ff,_0x5b567b=null,_0x3fde97=null;try{if(_0x422710==_0x39c131([0x47,0x50,0x4c]))return _0x39c131([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18f3ff=_0x1d581b(),!_0x18f3ff)return _0x39c131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18f3ff[_0x39c131([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fde97=_0x3260f2(_0x18f3ff[_0x39c131([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18f3ff[_0x39c131([0x6a,0x74,0x69])])),await _0x31e4e2()?_0x76314e()?_0x1f5c24()?_0x39c131([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c947b()?(_0x18f3ff[_0x39c131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39c131([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b567b=_0x4b0e59(_0x39c131([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x85a932()):_0x39c131([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39c131([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39c131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x39c131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f5c24(){const _0x4cf0ec=[_0x39c131([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39c131([0x74,0x72,0x69,0x61,0x6c])][_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f3ff[_0x39c131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32847e/0x3e8:0xe10*_0x5bf3a4;return _0x18f3ff[_0x39c131([0x65,0x78,0x70])]<_0x4cf0ec;}function _0x76314e(){const _0x350c37=_0x18f3ff[_0x39c131([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x350c37&&(!!_0x350c37[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x2a]))||(!!_0x350c37[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x54,0x4f,0x43]))||(!!_0x350c37[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x50,0x50]))||!(!_0x350c37[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x12f9ea()))));}function _0x4c947b(){const _0x2ba46a=_0x18f3ff[_0x39c131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ba46a||0x0==_0x2ba46a[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b9057}=new URL(window[_0x39c131([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ba46a[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b9057))return!0x0;const _0x5d82ce=_0x5b9057[_0x39c131([0x73,0x70,0x6c,0x69,0x74])](_0x39c131([0x2e]));return _0x2ba46a[_0x39c131([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ac12a=>_0x4ac12a[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x2a])))[_0x39c131([0x6d,0x61,0x70])](_0x11b99b=>_0x11b99b[_0x39c131([0x73,0x70,0x6c,0x69,0x74])](_0x39c131([0x2e])))[_0x39c131([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x599347=>_0x599347[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d82ce[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39c131([0x6d,0x61,0x70])](_0x1637a2=>Array(_0x5d82ce[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1637a2[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39c131([0x66,0x69,0x6c,0x6c])](_0x1637a2[0x0]===_0x39c131([0x2a])?_0x39c131([0x2a]):'')[_0x39c131([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1637a2))[_0x39c131([0x73,0x6f,0x6d,0x65])](_0x1a1fea=>_0x5d82ce[_0x39c131([0x65,0x76,0x65,0x72,0x79])]((_0x26b688,_0x187af4)=>_0x1a1fea[_0x187af4]===_0x26b688||_0x1a1fea[_0x187af4]===_0x39c131([0x2a])));}function _0x85a932(){return _0x5b567b&&_0x3fde97?new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2895f7,_0x35b10b)=>{_0x5b567b[_0x39c131([0x74,0x68,0x65,0x6e])](_0x2895f7,_0x35b10b),_0x3fde97[_0x39c131([0x74,0x68,0x65,0x6e])](_0x48cf7e=>{_0x48cf7e!=_0x39c131([0x56,0x61,0x6c,0x69,0x64])&&_0x2895f7(_0x48cf7e);},_0x35b10b);}):_0x5b567b||_0x3fde97||_0x39c131([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3260f2(_0x3d42b7,_0x2bde41){return new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x480984=>{if(_0x3c2512())return _0x480984(_0x39c131([0x56,0x61,0x6c,0x69,0x64]));_0x3da08e(),_0xc54c14[_0x39c131([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39c131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x372cb2=!0x1;const _0x31e99a=_0x5a68c1();function _0x3c40f4(_0x1b6290){return!!_0x1b6290&&(typeof _0x1b6290===_0x39c131([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b6290===_0x39c131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b6290[_0x39c131([0x74,0x68,0x65,0x6e])]===_0x39c131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b6290[_0x39c131([0x63,0x61,0x74,0x63,0x68])]===_0x39c131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x491321(_0x1e1cf8){_0x41241d(_0x1e1cf8)[_0x39c131([0x74,0x68,0x65,0x6e])](_0x53d4cf=>{if(!_0x53d4cf||_0x53d4cf[_0x39c131([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39c131([0x6f,0x6b]))return _0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x135349(_0x2a0eee(_0x31e99a+_0x2bde41))!=_0x53d4cf[_0x39c131([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39c131([0x56,0x61,0x6c,0x69,0x64]);})[_0x39c131([0x74,0x68,0x65,0x6e])](_0x4b6cb9=>(_0x214b37(),_0x4b6cb9),()=>{const _0x17e79e=_0x10b205();return null==_0x17e79e?(_0x214b37(),_0x39c131([0x56,0x61,0x6c,0x69,0x64])):_0x39c131(_0x32847e-_0x17e79e>(0x4f9781fd^_0x59d217)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39c131([0x74,0x68,0x65,0x6e])](_0x480984)[_0x39c131([0x63,0x61,0x74,0x63,0x68])](()=>{_0x480984(_0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcbb302=0x6badeb7d^_0x59d217;function _0x214b37(){const _0x30e9e7=_0x39c131([0x6c,0x6c,0x63,0x74,0x2d])+_0x135349(_0x2a0eee(_0x3d42b7)),_0x4816de=_0x38a948(_0x135349(window[_0x39c131([0x4d,0x61,0x74,0x68])][_0x39c131([0x63,0x65,0x69,0x6c])](_0x32847e/_0xcbb302)));window[_0x39c131([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39c131([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30e9e7,_0x4816de);}function _0x10b205(){const _0x23e8a5=_0x39c131([0x6c,0x6c,0x63,0x74,0x2d])+_0x135349(_0x2a0eee(_0x3d42b7)),_0x3f284e=window[_0x39c131([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39c131([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23e8a5);return _0x3f284e?window[_0x39c131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a948(_0x3f284e),0x10)*_0xcbb302:null;}function _0x41241d(_0x5dd6a){return new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x569e2e,_0x343317)=>{_0x5dd6a[_0x39c131([0x74,0x68,0x65,0x6e])](_0x569e2e,_0x343317),window[_0x39c131([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x343317,0x6b9ad13d^_0x59d217);});}}_0xc54c14[_0x39c131([0x6f,0x6e])](_0x39c131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa03010,_0x5c0fdd)=>{if(_0x5c0fdd[0x0]!=_0x3d42b7)return _0x480984(_0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c0fdd[0x1]={..._0x5c0fdd[0x1],[_0x39c131([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31e99a};},{[_0x39c131([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39c131([0x68,0x69,0x67,0x68])}),_0xc54c14[_0x39c131([0x6f,0x6e])](_0x39c131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2874e7=>{_0x3c40f4(_0x2874e7[_0x39c131([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x372cb2=!0x0,_0x491321(_0x2874e7[_0x39c131([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39c131([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39c131([0x6c,0x6f,0x77])}),_0x23913f[_0x39c131([0x74,0x68,0x65,0x6e])](()=>{_0x372cb2||_0x480984(_0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c2512(){return _0xc54c14[_0x39c131([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39c131([0x76,0x69,0x65,0x77])][_0x39c131([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39c131([0x61,0x75,0x74,0x6f]);}function _0x3da08e(){_0xc54c14[_0x39c131([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39c131([0x76,0x69,0x65,0x77])][_0x39c131([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39c131([0x61,0x75,0x74,0x6f]);}}function _0x4b0e59(_0x1021a4){const _0x179757=[new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d0fdd=>setTimeout(_0x2d0fdd,0x6b923b31^_0x59d217)),_0x23913f[_0x39c131([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aad36=>{let _0x24bc5a=0x0;_0xc54c14[_0x39c131([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c131([0x6f,0x6e])](_0x39c131([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50528a,_0x2a9d5d)=>{_0x2a9d5d[0x0][_0x39c131([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24bc5a++,_0x24bc5a==(0x6b9b0015^_0x59d217)&&(_0x1aad36(),_0x50528a[_0x39c131([0x6f,0x66,0x66])]());});}))];return window[_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39c131([0x72,0x61,0x63,0x65])](_0x179757)[_0x39c131([0x74,0x68,0x65,0x6e])](()=>_0x1021a4);}async function _0x2f3532(){await _0x23913f,_0xc54c14[_0x39c131([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c131([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fccb7,_0xc54c14[_0x39c131([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c131([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fccb7,_0xc54c14[_0x39c131([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39c131([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12f9ea(){return window[_0x39c131([0x67,0x6c,0x6f,0x62])]&&window[_0x39c131([0x67,0x6c,0x6f,0x62])][_0x39c131([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x6475e(_0x292151){const _0x55e8aa=_0x42e4ff();_0xc54c14[_0x55e8aa]=_0x39c131([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x292151,_0x292151!=_0x39c131([0x56,0x61,0x6c,0x69,0x64])&&_0x2f3532();}function _0x42e4ff(){const _0x2f7f54=window[_0x39c131([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39c131([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39c131([0x6e,0x6f,0x77])]())[_0x39c131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39c131([0x2e]),'');let _0x11c92b=_0x39c131([0x6d]);for(let _0x1b629d=0x0;_0x1b629d<_0x2f7f54[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b629d+=0x2){let _0x5ef0b4=window[_0x39c131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f7f54[_0x39c131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b629d,_0x1b629d+0x2));_0x5ef0b4>=_0x18d116[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ef0b4-=_0x18d116[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11c92b+=_0x18d116[_0x5ef0b4];}return _0x11c92b;}function _0x1d581b(){const _0x1994aa=_0x422710[_0x39c131([0x73,0x70,0x6c,0x69,0x74])](_0x39c131([0x2e]));if(0x3!=_0x1994aa[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59353f(_0x1994aa[0x1]);function _0x59353f(_0x3f7c4c){const _0x1115c7=_0x1ddf1e(_0x3f7c4c);return _0x1115c7&&_0x14396a()?_0x1115c7:null;function _0x14396a(){const _0xc79bcb=_0x1115c7[_0x39c131([0x6a,0x74,0x69])],_0x155406=window[_0x39c131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc79bcb[_0x39c131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc79bcb[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfa4681={..._0x1115c7,[_0x39c131([0x6a,0x74,0x69])]:_0xc79bcb[_0x39c131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc79bcb[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfa4681[_0x39c131([0x76,0x63])],_0x2a0eee(_0xfa4681)==_0x155406;}}}async function _0x31e4e2(){let _0x27d912=!0x0;try{const _0x255eef=_0x422710[_0x39c131([0x73,0x70,0x6c,0x69,0x74])](_0x39c131([0x2e])),[_0x1fbaf8,_0x1bb7a4,_0x3a5f7d]=_0x255eef;return _0x440bd5(_0x1fbaf8),await _0x240e57(_0x1fbaf8,_0x1bb7a4,_0x3a5f7d),_0x27d912;}catch{return!0x1;}function _0x440bd5(_0xd2956e){const _0x27a69b=_0x1ddf1e(_0xd2956e);_0x27a69b&&_0x27a69b[_0x39c131([0x61,0x6c,0x67])]==_0x39c131([0x45,0x53,0x32,0x35,0x36])||(_0x27d912=!0x1);}async function _0x240e57(_0x36449f,_0xa90ec8,_0x43a890){const _0x35b15d=window[_0x39c131([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39c131([0x66,0x72,0x6f,0x6d])](_0x1c515a(_0x43a890),_0x290a01=>_0x290a01[_0x39c131([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xab7dd=new window[(_0x39c131([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39c131([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36449f+_0x39c131([0x2e])+_0xa90ec8),_0x1bf462=window[_0x39c131([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39c131([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bf462)return;const _0x53c288=await _0x1bf462[_0x39c131([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39c131([0x6a,0x77,0x6b]),_0x5eaf98,{[_0x39c131([0x6e,0x61,0x6d,0x65])]:_0x39c131([0x45,0x43,0x44,0x53,0x41]),[_0x39c131([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39c131([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39c131([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bf462[_0x39c131([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39c131([0x6e,0x61,0x6d,0x65])]:_0x39c131([0x45,0x43,0x44,0x53,0x41]),[_0x39c131([0x68,0x61,0x73,0x68])]:{[_0x39c131([0x6e,0x61,0x6d,0x65])]:_0x39c131([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53c288,_0x35b15d,_0xab7dd)||(_0x27d912=!0x1);}}function _0x1ddf1e(_0x2382ea){return _0x2382ea[_0x39c131([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39c131([0x65,0x79]))?JSON[_0x39c131([0x70,0x61,0x72,0x73,0x65])](_0x1c515a(_0x2382ea)):null;}function _0x1c515a(_0x4724d2){return window[_0x39c131([0x61,0x74,0x6f,0x62])](_0x4724d2[_0x39c131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39c131([0x2b]))[_0x39c131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39c131([0x2f])));}function _0x2a0eee(_0x5af6e6){let _0x422ec9=0x1505;function _0x4c301b(_0x1c4aab){for(let _0x425beb=0x0;_0x425beb<_0x1c4aab[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x425beb++){const _0xfef490=_0x1c4aab[_0x39c131([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x425beb);_0x422ec9=(_0x422ec9<<0x5)+_0x422ec9+_0xfef490,_0x422ec9&=_0x422ec9;}}function _0x59fc4a(_0x2bfe4d){Array[_0x39c131([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bfe4d)?_0x2bfe4d[_0x39c131([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59fc4a):_0x2bfe4d&&typeof _0x2bfe4d==_0x39c131([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39c131([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bfe4d)[_0x39c131([0x73,0x6f,0x72,0x74])]()[_0x39c131([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa74d44,_0x200864])=>{_0x4c301b(_0xa74d44),_0x59fc4a(_0x200864);}):_0x4c301b(window[_0x39c131([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bfe4d));}return _0x59fc4a(_0x5af6e6),_0x422ec9>>>0x0;}function _0x135349(_0x550a7f){return _0x550a7f[_0x39c131([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39c131([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39c131([0x30]));}function _0x38a948(_0x436d2e){return _0x436d2e[_0x39c131([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39c131([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39c131([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fccb7(){}function _0x39c131(_0x475f97){return _0x475f97['map'](_0x30b858=>String['fromCharCode'](_0x30b858))['join']('');}_0x6475e(await _0xdff27());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x28625d=>{'$graveyard'!==_0x28625d['rootName']&&this['editor']['editing']['reconvertItem'](_0x28625d);});}['_trackNewToCElements'](){for(const _0x4507d0 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x4507d0['type']||'tableOfContents'!==_0x4507d0['name'])return;this['_tableOfContentsElements']['add'](_0x4507d0['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x3ee8aa){const _0x2eb5c0=this['editor'],_0x3e44cb=[];for(const _0x4a43c2 of _0x2eb5c0['model']['document']['getRootNames']())_0x24826f(_0x2eb5c0['model']['document']['getRoot'](_0x4a43c2));function _0x24826f(_0x4ad8a){for(const _0x564ed8 of _0x4ad8a['getChildren']())_0x564ed8['is']('element')&&(_0x3ee8aa['includes'](_0x564ed8['name'])&&_0x3e44cb['push']({'level':_0x3ee8aa['indexOf'](_0x564ed8['name'])+0x1,'text':v(_0x564ed8),'modelElement':_0x564ed8}),_0x24826f(_0x564ed8));}return _0x3e44cb;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x281196=this['editor']['conversion'];_0x281196['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x281196['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x2a1c14,{writer:_0xdf83b})=>this['_createTableOfContents'](_0xdf83b,!0x0)}),_0x281196['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x58b794,{writer:_0xcea193})=>{this['_tableOfContentsElements']['add'](_0x58b794);const _0x56e481=this['_createTableOfContents'](_0xcea193);return _0x344d43(_0x56e481,_0xcea193,{'label':C(this['editor']['locale'],'Table\x20of\x20contents')});}}),this['editor']['data']['registerRawContentMatcher']({'name':'div','classes':'table-of-contents'}),this['editor']['editing']['mapper']['on']('viewToModelPosition',this['_redirectMapper'](),{'priority':'high'});}['_createTableOfContents'](_0x444fa1,_0x52b528=!0x1){const {locale:_0x12ff4e}=this['editor'],_0x5b15d6=_0x444fa1['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x52b528&&{'data-table-of-contents-label':C(_0x12ff4e,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x52b528&&_0x444fa1['insert'](_0x444fa1['createPositionAt'](_0x5b15d6,'end'),_0x444fa1['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x444fa1['createText'](C(_0x12ff4e,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x51111d=_0x52b528?'':'['+C(_0x12ff4e,'Empty\x20heading')+']';let _0x2e73a1=_0x5b15d6;return this['_currentOutlineDefinitions']['forEach']((_0x10ed15,_0x4ce210,_0x2950c6)=>{const _0x495139=this['editor']['model']['hasContent'](_0x10ed15['modelElement'],{'ignoreWhitespaces':!0x0}),_0x1756f2=_0x495139?_0x10ed15['text']:_0x51111d,_0x620215=_0x10ed15['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x44355d=_0x444fa1['createContainerElement']('a',{'href':'#'+_0x620215,...!_0x52b528&&{'tabindex':'-1'}},[_0x444fa1['createText'](_0x1756f2)]),_0xc55fcb=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x444fa1['setCustomProperty']('tableOfContentsHeadingIndex',_0x4ce210,_0x44355d);const _0x484331=_0x444fa1['createContainerElement']('li',null,[_0x495139||!_0x52b528&&_0xc55fcb?_0x44355d:_0x444fa1['createText']('')]),_0x2cd050=_0x4ce210?_0x2950c6[_0x4ce210-0x1]['level']:0x0,_0xc5485=Math['abs'](_0x10ed15['level']-_0x2cd050);if(_0x10ed15['level']>_0x2cd050){const _0x47fdad=P(_0x484331,_0xc5485,_0x444fa1);_0x444fa1['insert'](_0x444fa1['createPositionAt'](_0x2e73a1,'end'),_0x47fdad);}else{const _0x56e593=function(_0x40ea43,_0x30f38e){return _0x40ea43['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x5c07b2=>_0x5c07b2['is']('element','ol'))[_0x30f38e];}(_0x2e73a1,_0xc5485);_0x444fa1['insert'](_0x444fa1['createPositionAt'](_0x56e593,'end'),_0x484331);}_0x2e73a1=_0x484331;}),_0x5b15d6;}['_handleScrollToHeading'](_0x9fafe){const _0x4a74dd=this['_currentOutlineDefinitions'][_0x9fafe]['modelElement'];this['editor']['model']['change'](_0x283644=>{_0x283644['setSelection'](_0x4a74dd,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x5548b3,_0x154af1)=>{const _0x1ca948=_0x154af1['mapper'],_0x23f45a=_0x1ca948['findMappedViewAncestor'](_0x154af1['viewPosition']),_0x586f98=_0x1ca948['toModelElement'](_0x23f45a);_0x586f98['is']('element','tableOfContents')&&(_0x154af1['modelPosition']=this['editor']['model']['createPositionAt'](_0x586f98,0x0),_0x5548b3['stop']());};}}function P(_0x13872a,_0x5788e6,_0x4d80ea){return 0x1===_0x5788e6?_0x4d80ea['createContainerElement']('ol',null,[_0x13872a]):_0x4d80ea['createContainerElement']('ol',null,[_0x4d80ea['createContainerElement']('li',null,[P(_0x13872a,_0x5788e6-0x1,_0x4d80ea)])]);}class D extends _0x170292{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2225b7=this['editor'];_0x2225b7['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x2b297d=this['_createButton'](_0x2d886d);return _0x2b297d['tooltip']=!0x0,_0x2b297d;}),_0x2225b7['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x52938e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e8ad4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x224511;for(const _0x3523eb in _0x1e8ad4){const _0x282d5=_0x3523eb,_0x4cba13=_0x1e8ad4[_0x282d5];if('tableOfContentsLicenseKeyValid'==_0x4cba13||'tableOfContentsLicenseKeyInvalid'==_0x4cba13||'tableOfContentsLicenseKeyExpired'==_0x4cba13||'tableOfContentsLicenseKeyDomainLimit'==_0x4cba13||'tableOfContentsLicenseKeyNotAllowed'==_0x4cba13||'tableOfContentsLicenseKeyEvaluationLimit'==_0x4cba13||'tableOfContentsLicenseKeyUsageLimit'==_0x4cba13){delete _0x1e8ad4[_0x282d5],_0x224511=_0x4cba13,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x224511&&_0x1e8ad4['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x224511&&_0x1e8ad4['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x224511&&_0x1e8ad4['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x224511&&_0x1e8ad4['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x224511&&_0x1e8ad4['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x224511&&_0x1e8ad4['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x338ce5){const _0x5104fe=this['editor'],_0x27e46c=_0x5104fe['locale'],_0x29472b=_0x5104fe['commands']['get']('insertTableOfContents'),_0x5e0196=new _0x338ce5(_0x27e46c);return _0x5e0196['set']({'label':C(_0x27e46c,'Table\x20of\x20contents'),'icon':_0x3f4ec9}),_0x5e0196['bind']('isEnabled')['to'](_0x29472b,'isEnabled'),this['listenTo'](_0x5e0196,'execute',()=>{_0x5104fe['execute']('insertTableOfContents'),_0x5104fe['editing']['view']['focus']();}),_0x5e0196;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x170292{static get['requires'](){return[A,D];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{K as DocumentOutline,L as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-document-outline",
3
- "version": "48.1.0-alpha.3",
3
+ "version": "48.1.0-alpha.5",
4
4
  "description": "Document outline feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,13 +21,13 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.1.0-alpha.3",
25
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.3",
26
- "@ckeditor/ckeditor5-heading": "48.1.0-alpha.3",
27
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.3",
28
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.3",
29
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.3",
30
- "@ckeditor/ckeditor5-widget": "48.1.0-alpha.3",
24
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
25
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
26
+ "@ckeditor/ckeditor5-heading": "48.1.0-alpha.5",
27
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
28
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
29
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.5",
30
+ "@ckeditor/ckeditor5-widget": "48.1.0-alpha.5",
31
31
  "es-toolkit": "1.45.1"
32
32
  },
33
33
  "files": [