@ckeditor/ckeditor5-document-outline 48.1.0-alpha.3 → 48.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +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 _0x138ed0,Command as _0x4efd3d}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x1c6816,throttle as _0x2eeddd}from'es-toolkit/compat';import{ModelText as _0x4e4c07,ModelTreeWalker as _0x338cea}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x5999fe,diffToChanges as _0x514d18,scrollAncestorsToShowTarget as _0x4572c1,CKEditorError as _0x9083d3,global as _0x291953,Rect as _0x438df7,uid as _0x42b37c,priorities as _0x51285b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x148307,ButtonView as _0x52f647,MenuBarMenuListItemButtonView as _0xcf0d6e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x59302b,toWidget as _0x1b9690}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x538b3c}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x3b8e6b){let _0x18f9a1='';for(const _0x2cfe6f of _0x3b8e6b['getChildren']())_0x2cfe6f instanceof _0x4e4c07&&(_0x18f9a1+=_0x2cfe6f['data']);return _0x18f9a1;}class I extends _0x138ed0{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x1b1005=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x118044=[];_0x1b1005['model']['document']['on']('change',_0x1c6816(()=>{const _0xa8347a=_0x118044;_0x118044=this['_getOutlineDefinitions']();const _0x2f1dc8=_0x5999fe(_0xa8347a,_0x118044,(_0x4eacfb,_0x1e99ee)=>_0x4eacfb['level']===_0x1e99ee['level']&&_0x4eacfb['text']===_0x1e99ee['text']&&_0x4eacfb['modelElement']===_0x1e99ee['modelElement']),_0x764a2e=_0x514d18(_0x2f1dc8,_0x118044),_0xafa8f8=this['_getActiveHeading'](),_0x38143c=_0x118044['findIndex'](_0x158789=>_0x158789['modelElement']===_0xafa8f8);_0x764a2e['length']&&this['fire']('change',{'outlineDefinitions':_0x118044,'activeItemIndex':_0x38143c,'outlineChanges':_0x764a2e}),this['fire']('activeItemIndex',{'index':_0x38143c});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x382566=this['editor'],_0x2f6012=[],_0x2e6ae4=this['_headingNames'];for(const _0x3dc1ec of _0x382566['model']['document']['getRootNames']())_0x4543cb(_0x382566['model']['document']['getRoot'](_0x3dc1ec));function _0x4543cb(_0x13d8e9){for(const _0xa41b7e of _0x13d8e9['getChildren']())_0xa41b7e['is']('element')&&(_0x2e6ae4['includes'](_0xa41b7e['name'])&&_0x2f6012['push']({'level':_0x2e6ae4['indexOf'](_0xa41b7e['name'])+0x1,'text':v(_0xa41b7e),'modelElement':_0xa41b7e}),_0x4543cb(_0xa41b7e));}return _0x2f6012;}['_getActiveHeading'](){const _0x147100=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x68a8a8=new _0x338cea({'direction':'backward','startPosition':_0x147100});for(const _0x442bf5 of _0x68a8a8)if(_0x442bf5['item']['is']('element')&&this['_headingNames']['includes'](_0x442bf5['item']['name']))return _0x442bf5['item'];}['_getHeadingNames'](){const _0x1267bb=this['editor']['config']['get']('documentOutline.headings');return _0x1267bb||function(_0xb8e581){const _0x7f0e00=_0xb8e581['config']['get']('heading.options');return _0x7f0e00?_0x7f0e00['reduce']((_0x3efe6d,_0x1c6656)=>('paragraph'!==_0x1c6656['model']&&_0x3efe6d['push'](_0x1c6656['model']),_0x3efe6d),[]):_0xb8e581['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x160a8f=this['editor'],_0x5e3ebf=['h1','h2','h3','h4','h5','h6'],_0x66f6f=[];for(const _0x51ccc4 of _0x5e3ebf){const _0x4d86c2=_0x160a8f['editing']['view']['domConverter']['domToView'](document['createElement'](_0x51ccc4)),_0x4236ce=_0x160a8f['data']['toModel'](_0x4d86c2)['getChild'](0x0);_0x4236ce?.['is']('element')&&_0x66f6f['push'](_0x4236ce['name']);}this['_headingNames']=_0x66f6f;}}function C(_0x8a6e86,_0xabd7f8){const t=_0x8a6e86['t'];switch(_0xabd7f8){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 _0xabd7f8;}}class _ extends _0x148307{constructor(_0x415f77,_0x52dba2=!0x1){super(_0x415f77);const _0x476078=this['bindTemplate'],_0x761b3f=_0x52dba2?'['+C(_0x415f77,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x49ffd0=>!_0x49ffd0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x476078['to']('level',_0x3442b8=>'ck-document-outline__item_level-'+_0x3442b8),_0x476078['if']('isActive','ck-document-outline__item_active'),_0x476078['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x476078['to']('text')},'children':[{'text':_0x476078['to']('text',_0x470358=>_0x470358||_0x761b3f)}],'on':{'click':_0x476078['to']('click')}});}}class x extends _0x148307{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x511137,_0x16adbd=!0x1,_0x71189){super(_0x511137),this['showEmptyHeadingText']=_0x16adbd,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x71189,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x556fee,_0x539154,_0x5b6051,_0x19664b)=>{this['_setActiveItem'](_0x19664b,_0x5b6051);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x511137['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x511137,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3fa462){_0x3fa462['forEach'](_0x22524c=>{'insert'==_0x22524c['type']?this['_insertItem'](_0x22524c['index'],..._0x22524c['values']):'delete'==_0x22524c['type']&&this['_deleteItem'](_0x22524c['index'],_0x22524c['howMany']);});}['_setActiveItem'](_0x521258,_0x41bd1b){if(-0x1!==_0x521258){const _0x81bd18=this['items']['get'](_0x521258);_0x81bd18&&(_0x81bd18['isActive']=!0x1);}-0x1!==_0x41bd1b&&(this['items']['get'](_0x41bd1b)['isActive']=!0x0,this['_scrollToItem'](_0x41bd1b));}['_insertItem'](_0x26fb89,..._0x27d2fb){const _0x4bda3c=_0x27d2fb['map']((_0x234e27,_0x13ce1e)=>{const _0x247035=new _(this['locale'],this['showEmptyHeadingText']);return _0x247035['text']=_0x234e27['text'],_0x247035['level']=_0x234e27['level'],_0x26fb89+_0x13ce1e===this['activeItemIndex']&&(_0x247035['isActive']=!0x0),_0x247035;});this['items']['addMany'](_0x4bda3c,_0x26fb89);}['_deleteItem'](_0x2f5101,_0x45b51e){do{this['items']['remove'](_0x2f5101);}while(--_0x45b51e);}['_handleItemClick'](_0x4331ed){const _0x13a7b6=this['items']['getIndex'](_0x4331ed['source']);this['fire']('itemSelected',_0x13a7b6);}['_scrollToItem'](_0x5548b6){_0x4572c1(this['items']['get'](_0x5548b6)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class L extends _0x138ed0{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b014b){super(_0x1b014b),this['view']=new x(_0x1b014b['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x2eeddd(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x497ffd=this['editor'],_0x4610c7=_0x497ffd['plugins']['get']('DocumentOutlineUtils');let _0x13617a=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x497ffd['config']['get']('documentOutline.container'))throw new _0x9083d3('document-outline-container-not-provided',{'editor':_0x497ffd});_0x497ffd['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x4610c7['on']('change',this['_handleOutlineChange']['bind'](this)),_0x4610c7['on']('activeItemIndex',(_0x96533a,{index:_0x5bedff})=>this['_setActiveViewItem'](_0x5bedff)),this['view']['on']('itemSelected',(_0x3b492d,_0x4967ee)=>{_0x13617a=!0x0,this['_handleItemSelected'](_0x4967ee);}),this['view']['listenTo'](_0x291953['document'],'scroll',()=>{_0x13617a?_0x13617a=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x291953['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x12d659){const _0x2af32b=_0x44bcc4([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]),_0x32d231=0x1cb264a3,_0x7140c7=0x1cb5ed0b^_0x32d231,_0x1ec554=window[_0x44bcc4([0x44,0x61,0x74,0x65])][_0x44bcc4([0x6e,0x6f,0x77])](),_0x60285a=_0x12d659[_0x44bcc4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x577d79=new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bb368=>{_0x60285a[_0x44bcc4([0x6f,0x6e,0x63,0x65])](_0x44bcc4([0x72,0x65,0x61,0x64,0x79]),_0x5bb368);}),_0x1bdb42={[_0x44bcc4([0x6b,0x74,0x79])]:_0x44bcc4([0x45,0x43]),[_0x44bcc4([0x75,0x73,0x65])]:_0x44bcc4([0x73,0x69,0x67]),[_0x44bcc4([0x63,0x72,0x76])]:_0x44bcc4([0x50,0x2d,0x32,0x35,0x36]),[_0x44bcc4([0x78])]:_0x44bcc4([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]),[_0x44bcc4([0x79])]:_0x44bcc4([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]),[_0x44bcc4([0x61,0x6c,0x67])]:_0x44bcc4([0x45,0x53,0x32,0x35,0x36])},_0x4741e7=_0x60285a[_0x44bcc4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44bcc4([0x67,0x65,0x74])](_0x44bcc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a230a(){let _0x5a06db,_0x2d4ebb=null,_0x16f532=null;try{if(_0x4741e7==_0x44bcc4([0x47,0x50,0x4c]))return _0x44bcc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a06db=_0x6b99da(),!_0x5a06db)return _0x44bcc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a06db[_0x44bcc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16f532=_0x26dc6d(_0x5a06db[_0x44bcc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a06db[_0x44bcc4([0x6a,0x74,0x69])])),await _0x5241cd()?_0x176d52()?_0x5bb58a()?_0x44bcc4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12236b()?(_0x5a06db[_0x44bcc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44bcc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d4ebb=_0x33b361(_0x44bcc4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35b63f()):_0x44bcc4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44bcc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44bcc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x44bcc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bb58a(){const _0x91e0ce=[_0x44bcc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44bcc4([0x74,0x72,0x69,0x61,0x6c])][_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a06db[_0x44bcc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ec554/0x3e8:0xe10*_0x7140c7;return _0x5a06db[_0x44bcc4([0x65,0x78,0x70])]<_0x91e0ce;}function _0x176d52(){const _0x25da78=_0x5a06db[_0x44bcc4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25da78&&(!!_0x25da78[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x2a]))||(!!_0x25da78[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x44,0x4f]))||(!!_0x25da78[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x50,0x50]))||!(!_0x25da78[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x11826c()))));}function _0x12236b(){const _0x5d6fc0=_0x5a06db[_0x44bcc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d6fc0||0x0==_0x5d6fc0[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42a94b}=new URL(window[_0x44bcc4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d6fc0[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a94b))return!0x0;const _0x48f87f=_0x42a94b[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])](_0x44bcc4([0x2e]));return _0x5d6fc0[_0x44bcc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e6a84=>_0x4e6a84[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x2a])))[_0x44bcc4([0x6d,0x61,0x70])](_0x2c1084=>_0x2c1084[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])](_0x44bcc4([0x2e])))[_0x44bcc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11e441=>_0x11e441[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x48f87f[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44bcc4([0x6d,0x61,0x70])](_0x2059d9=>Array(_0x48f87f[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2059d9[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44bcc4([0x66,0x69,0x6c,0x6c])](_0x2059d9[0x0]===_0x44bcc4([0x2a])?_0x44bcc4([0x2a]):'')[_0x44bcc4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2059d9))[_0x44bcc4([0x73,0x6f,0x6d,0x65])](_0x5cf3e9=>_0x48f87f[_0x44bcc4([0x65,0x76,0x65,0x72,0x79])]((_0x21342a,_0x40842b)=>_0x5cf3e9[_0x40842b]===_0x21342a||_0x5cf3e9[_0x40842b]===_0x44bcc4([0x2a])));}function _0x35b63f(){return _0x2d4ebb&&_0x16f532?new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x257c62,_0xfaed52)=>{_0x2d4ebb[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x257c62,_0xfaed52),_0x16f532[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x52d1fc=>{_0x52d1fc!=_0x44bcc4([0x56,0x61,0x6c,0x69,0x64])&&_0x257c62(_0x52d1fc);},_0xfaed52);}):_0x2d4ebb||_0x16f532||_0x44bcc4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26dc6d(_0x4b6080,_0x64ffab){return new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43178c=>{if(_0x441fb5())return _0x43178c(_0x44bcc4([0x56,0x61,0x6c,0x69,0x64]));_0x353e43(),_0x60285a[_0x44bcc4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44bcc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a7418=!0x1;const _0x4341a7=_0x42b37c();function _0x425071(_0x1814c0){return!!_0x1814c0&&(typeof _0x1814c0===_0x44bcc4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1814c0===_0x44bcc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1814c0[_0x44bcc4([0x74,0x68,0x65,0x6e])]===_0x44bcc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1814c0[_0x44bcc4([0x63,0x61,0x74,0x63,0x68])]===_0x44bcc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ca3d7(_0x1b4e24){_0x7688f5(_0x1b4e24)[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x15d567=>{if(!_0x15d567||_0x15d567[_0x44bcc4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44bcc4([0x6f,0x6b]))return _0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a43fb(_0x190e8f(_0x4341a7+_0x64ffab))!=_0x15d567[_0x44bcc4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44bcc4([0x56,0x61,0x6c,0x69,0x64]);})[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x311f55=>(_0x42406f(),_0x311f55),()=>{const _0x476a61=_0x4f62c1();return null==_0x476a61?(_0x42406f(),_0x44bcc4([0x56,0x61,0x6c,0x69,0x64])):_0x44bcc4(_0x1ec554-_0x476a61>(0x38bee0a3^_0x32d231)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x43178c)[_0x44bcc4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x43178c(_0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b4684=0x1c848a23^_0x32d231;function _0x42406f(){const _0x4260af=_0x44bcc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a43fb(_0x190e8f(_0x4b6080)),_0x4e1bf1=_0x1dad63(_0x3a43fb(window[_0x44bcc4([0x4d,0x61,0x74,0x68])][_0x44bcc4([0x63,0x65,0x69,0x6c])](_0x1ec554/_0x3b4684)));window[_0x44bcc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44bcc4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4260af,_0x4e1bf1);}function _0x4f62c1(){const _0x3b86fe=_0x44bcc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a43fb(_0x190e8f(_0x4b6080)),_0x245553=window[_0x44bcc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44bcc4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b86fe);return _0x245553?window[_0x44bcc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dad63(_0x245553),0x10)*_0x3b4684:null;}function _0x7688f5(_0x5b0b57){return new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4783ca,_0x4e8cd6)=>{_0x5b0b57[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x4783ca,_0x4e8cd6),window[_0x44bcc4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e8cd6,0x1cb3b063^_0x32d231);});}}_0x60285a[_0x44bcc4([0x6f,0x6e])](_0x44bcc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb8fdf7,_0x203f2d)=>{if(_0x203f2d[0x0]!=_0x4b6080)return _0x43178c(_0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x203f2d[0x1]={..._0x203f2d[0x1],[_0x44bcc4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4341a7};},{[_0x44bcc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44bcc4([0x68,0x69,0x67,0x68])}),_0x60285a[_0x44bcc4([0x6f,0x6e])](_0x44bcc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55cc80=>{_0x425071(_0x55cc80[_0x44bcc4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a7418=!0x0,_0x4ca3d7(_0x55cc80[_0x44bcc4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44bcc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44bcc4([0x6c,0x6f,0x77])}),_0x577d79[_0x44bcc4([0x74,0x68,0x65,0x6e])](()=>{_0x1a7418||_0x43178c(_0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x441fb5(){return _0x60285a[_0x44bcc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44bcc4([0x76,0x69,0x65,0x77])][_0x44bcc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44bcc4([0x61,0x75,0x74,0x6f]);}function _0x353e43(){_0x60285a[_0x44bcc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44bcc4([0x76,0x69,0x65,0x77])][_0x44bcc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44bcc4([0x61,0x75,0x74,0x6f]);}}function _0x33b361(_0x4fe1ea){const _0x111085=[new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc610=>setTimeout(_0x3fc610,0x1cbb5a6f^_0x32d231)),_0x577d79[_0x44bcc4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24dba9=>{let _0x30b394=0x0;_0x60285a[_0x44bcc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bcc4([0x6f,0x6e])](_0x44bcc4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e78bf,_0x3d0a3d)=>{_0x3d0a3d[0x0][_0x44bcc4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30b394++,_0x30b394==(0x1cb2614b^_0x32d231)&&(_0x24dba9(),_0x4e78bf[_0x44bcc4([0x6f,0x66,0x66])]());});}))];return window[_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44bcc4([0x72,0x61,0x63,0x65])](_0x111085)[_0x44bcc4([0x74,0x68,0x65,0x6e])](()=>_0x4fe1ea);}async function _0x1d8657(){await _0x577d79,_0x60285a[_0x44bcc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bcc4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x63954d,_0x60285a[_0x44bcc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bcc4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x63954d,_0x60285a[_0x44bcc4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44bcc4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11826c(){return window[_0x44bcc4([0x67,0x6c,0x6f,0x62])]&&window[_0x44bcc4([0x67,0x6c,0x6f,0x62])][_0x44bcc4([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x53e8b3(_0x12e28c){const _0x5d6907=_0x15a5e8();_0x60285a[_0x5d6907]=_0x44bcc4([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])+_0x12e28c,_0x12e28c!=_0x44bcc4([0x56,0x61,0x6c,0x69,0x64])&&_0x1d8657();}function _0x15a5e8(){const _0x524fd6=window[_0x44bcc4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44bcc4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44bcc4([0x6e,0x6f,0x77])]())[_0x44bcc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44bcc4([0x2e]),'');let _0x2b4b7f=_0x44bcc4([0x61]);for(let _0x3ffed2=0x0;_0x3ffed2<_0x524fd6[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ffed2+=0x2){let _0xb4350b=window[_0x44bcc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x524fd6[_0x44bcc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ffed2,_0x3ffed2+0x2));_0xb4350b>=_0x2af32b[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb4350b-=_0x2af32b[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b4b7f+=_0x2af32b[_0xb4350b];}return _0x2b4b7f;}function _0x6b99da(){const _0x37e372=_0x4741e7[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])](_0x44bcc4([0x2e]));if(0x3!=_0x37e372[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34675b(_0x37e372[0x1]);function _0x34675b(_0x263602){const _0x5458ca=_0x2bab08(_0x263602);return _0x5458ca&&_0x4e96db()?_0x5458ca:null;function _0x4e96db(){const _0x587b9a=_0x5458ca[_0x44bcc4([0x6a,0x74,0x69])],_0x57e5cc=window[_0x44bcc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x587b9a[_0x44bcc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x587b9a[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2818f4={..._0x5458ca,[_0x44bcc4([0x6a,0x74,0x69])]:_0x587b9a[_0x44bcc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x587b9a[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2818f4[_0x44bcc4([0x76,0x63])],_0x190e8f(_0x2818f4)==_0x57e5cc;}}}async function _0x5241cd(){let _0x583483=!0x0;try{const _0x57cddd=_0x4741e7[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])](_0x44bcc4([0x2e])),[_0x5dd411,_0x1fa221,_0x12acef]=_0x57cddd;return _0x139a77(_0x5dd411),await _0x14f4de(_0x5dd411,_0x1fa221,_0x12acef),_0x583483;}catch{return!0x1;}function _0x139a77(_0x5a27f0){const _0x130a7a=_0x2bab08(_0x5a27f0);_0x130a7a&&_0x130a7a[_0x44bcc4([0x61,0x6c,0x67])]==_0x44bcc4([0x45,0x53,0x32,0x35,0x36])||(_0x583483=!0x1);}async function _0x14f4de(_0x3d3718,_0x33d8d2,_0x293a9f){const _0x167f79=window[_0x44bcc4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44bcc4([0x66,0x72,0x6f,0x6d])](_0x132d7a(_0x293a9f),_0x3b53b2=>_0x3b53b2[_0x44bcc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a59cd=new window[(_0x44bcc4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44bcc4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d3718+_0x44bcc4([0x2e])+_0x33d8d2),_0x5603b0=window[_0x44bcc4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44bcc4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5603b0)return;const _0x17346d=await _0x5603b0[_0x44bcc4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44bcc4([0x6a,0x77,0x6b]),_0x1bdb42,{[_0x44bcc4([0x6e,0x61,0x6d,0x65])]:_0x44bcc4([0x45,0x43,0x44,0x53,0x41]),[_0x44bcc4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44bcc4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44bcc4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5603b0[_0x44bcc4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44bcc4([0x6e,0x61,0x6d,0x65])]:_0x44bcc4([0x45,0x43,0x44,0x53,0x41]),[_0x44bcc4([0x68,0x61,0x73,0x68])]:{[_0x44bcc4([0x6e,0x61,0x6d,0x65])]:_0x44bcc4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17346d,_0x167f79,_0x4a59cd)||(_0x583483=!0x1);}}function _0x2bab08(_0x18ad60){return _0x18ad60[_0x44bcc4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44bcc4([0x65,0x79]))?JSON[_0x44bcc4([0x70,0x61,0x72,0x73,0x65])](_0x132d7a(_0x18ad60)):null;}function _0x132d7a(_0x2a2c10){return window[_0x44bcc4([0x61,0x74,0x6f,0x62])](_0x2a2c10[_0x44bcc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44bcc4([0x2b]))[_0x44bcc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44bcc4([0x2f])));}function _0x190e8f(_0x49ea4b){let _0x3d7665=0x1505;function _0x19383d(_0x33cb9b){for(let _0x541f44=0x0;_0x541f44<_0x33cb9b[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x541f44++){const _0x42a57e=_0x33cb9b[_0x44bcc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x541f44);_0x3d7665=(_0x3d7665<<0x5)+_0x3d7665+_0x42a57e,_0x3d7665&=_0x3d7665;}}function _0x2b9306(_0x178b42){Array[_0x44bcc4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x178b42)?_0x178b42[_0x44bcc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b9306):_0x178b42&&typeof _0x178b42==_0x44bcc4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44bcc4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x178b42)[_0x44bcc4([0x73,0x6f,0x72,0x74])]()[_0x44bcc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fbea6,_0x49960b])=>{_0x19383d(_0x2fbea6),_0x2b9306(_0x49960b);}):_0x19383d(window[_0x44bcc4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x178b42));}return _0x2b9306(_0x49ea4b),_0x3d7665>>>0x0;}function _0x3a43fb(_0x4b688b){return _0x4b688b[_0x44bcc4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44bcc4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44bcc4([0x30]));}function _0x1dad63(_0x2f702f){return _0x2f702f[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44bcc4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44bcc4([0x6a,0x6f,0x69,0x6e])]('');}function _0x63954d(){}function _0x44bcc4(_0x3e5e34){return _0x3e5e34['map'](_0x3d31d4=>String['fromCharCode'](_0x3d31d4))['join']('');}_0x53e8b3(await _0x2a230a());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x55005d,{outlineDefinitions:_0x1667d1,outlineChanges:_0x2d93a7}){this['_currentOutlineDefinitions']=_0x1667d1,this['view']['sync'](_0x2d93a7);}['_setActiveViewItem'](_0x4203bb){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x4203bb]&&(this['view']['activeItemIndex']=_0x4203bb);}['_handleItemSelected'](_0x42c71d){const _0x18c0b4=this['_currentOutlineDefinitions'][_0x42c71d]['modelElement'];this['editor']['model']['change'](_0x52c4e4=>{_0x52c4e4['setSelection'](_0x18c0b4,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x42c71d);}['_updateActiveDefinitionOnViewportChange'](){const _0x89ecd=this['editor'];let _0x58de31;for(const _0x3cb784 of _0x89ecd['model']['document']['getRootNames']()){const _0x4d7333=_0x89ecd['editing']['view']['getDomRoot'](_0x3cb784),_0xddadf0=_0x4d7333&&new _0x438df7(_0x4d7333)['getVisible']();if(_0xddadf0){const _0x5a3cca=new _0x438df7(_0x291953['window'])['getIntersection'](_0xddadf0);_0x5a3cca&&(_0x58de31=_0x5a3cca['top']+0.25*_0x5a3cca['height']);}}if(void 0x0===_0x58de31)return;const _0x32cb94=k(_0x89ecd['editing'],this['_currentOutlineDefinitions'],_0x58de31);_0x32cb94?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x32cb94)):this['_setActiveViewItem'](-0x1);}}function k(_0x19ecf3,_0x3f0f70,_0x2d53f7,_0x1dd387=0x0,_0xc924ef=_0x3f0f70['length']-0x1){const _0x256cef=Math['floor'](_0x1dd387+(_0xc924ef-_0x1dd387)/0x2);if(_0xc924ef>=_0x1dd387){const _0xbee773=_0x3f0f70[_0x256cef],_0x1edda1=_0x19ecf3['mapper']['toViewElement'](_0xbee773['modelElement']);if(!_0x1edda1)return null;const _0x4b15a5=_0x19ecf3['view']['domConverter']['mapViewToDom'](_0x1edda1);return new _0x438df7(_0x4b15a5)['bottom']>_0x2d53f7?k(_0x19ecf3,_0x3f0f70,_0x2d53f7,_0x1dd387,_0x256cef-0x1):k(_0x19ecf3,_0x3f0f70,_0x2d53f7,_0x256cef+0x1,_0xc924ef);}return _0x256cef<0x0?null:_0x3f0f70[_0x256cef];}class K extends _0x138ed0{['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 _0x1db985=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b0d1a;for(const _0x1eb603 in _0x1db985){const _0x44289b=_0x1eb603,_0x2fffbb=_0x1db985[_0x44289b];if('documentOutlineLicenseKeyValid'==_0x2fffbb||'documentOutlineLicenseKeyInvalid'==_0x2fffbb||'documentOutlineLicenseKeyExpired'==_0x2fffbb||'documentOutlineLicenseKeyDomainLimit'==_0x2fffbb||'documentOutlineLicenseKeyNotAllowed'==_0x2fffbb||'documentOutlineLicenseKeyEvaluationLimit'==_0x2fffbb||'documentOutlineLicenseKeyUsageLimit'==_0x2fffbb){delete _0x1db985[_0x44289b],_0x2b0d1a=_0x2fffbb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x2b0d1a&&_0x1db985['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x2b0d1a&&_0x1db985['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x2b0d1a&&_0x1db985['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x2b0d1a&&_0x1db985['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x2b0d1a&&_0x1db985['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x2b0d1a&&_0x1db985['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x4efd3d{['execute'](){this['editor']['model']['change'](_0x9e17b8=>{this['editor']['model']['insertObject'](_0x9e17b8['createElement']('tableOfContents'));});}['refresh'](){const _0x505f6f=this['editor']['model'],_0x52ef83=_0x505f6f['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x52ef83&&_0x505f6f['schema']['findAllowedParent'](_0x52ef83,'tableOfContents'));}}class N extends _0x138ed0{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x54106b=this['editor'];if(_0x54106b['config']['get']('headingId.modelAttributeName'))return;(function(_0x267799){const _0x47d503=new Map();if(_0x267799)return _0x267799['forEach'](_0x12bf98=>{'paragraph'!==_0x12bf98['model']&&_0x47d503['set'](_0x12bf98['view'],_0x12bf98['model']);}),_0x47d503['get']('h1')||_0x47d503['set']('h1','heading1'),_0x47d503;return _0x47d503;}(this['editor']['config']['get']('heading.options'))['forEach']((_0xf92086,_0x5ea866)=>{this['_customUpcastHeadingsConversion'](_0x5ea866),this['_customDataDowncastHeadingsConversion'](_0xf92086),_0x54106b['model']['schema']['isRegistered'](_0xf92086)&&_0x54106b['model']['schema']['extend'](_0xf92086,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x5a59d3){this['editor']['conversion']['for']('upcast')['add'](_0x19ab13=>_0x19ab13['on']('element:'+_0x5a59d3,(_0x39b0f6,_0x2ab7db,_0x4e86af)=>{const {consumable:_0x56e2e2,writer:_0x1f1d4a}=_0x4e86af,_0x389148=_0x2ab7db['viewItem']['getAttribute']('id'),_0x3330c5=_0x2ab7db['modelRange']['getContainedElement']();if(_0x3330c5)return _0x389148&&_0x389148['length']||_0x3330c5['hasAttribute']('headingId')?void(_0x56e2e2['consume'](_0x2ab7db['viewItem'],{'attributes':['id']})&&_0x1f1d4a['setAttribute']('headingId',_0x389148,_0x3330c5)):(_0x56e2e2['consume'](_0x2ab7db['viewItem'],{'attributes':['id']}),void _0x1f1d4a['setAttribute']('headingId',_0x42b37c(),_0x3330c5));},{'priority':_0x51285b['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x10c54e){this['editor']['conversion']['for']('downcast')['add'](_0x20a07a=>_0x20a07a['on']('attribute:headingId:'+_0x10c54e,(_0x42cf37,_0x531927,_0x2873cc)=>{if(!_0x2873cc['consumable']['consume'](_0x531927['item'],_0x42cf37['name']))return;const _0x14b262=_0x531927['item']['getAttribute']('headingId'),_0x1adbd6=_0x2873cc['mapper']['toViewElement'](_0x531927['item']);_0x2873cc['writer']['setAttribute']('id',_0x14b262,_0x1adbd6);}));}['_registerHeadingIdAttributePostfixer'](){const _0x4016d0=this['editor'],_0x197f84=new Set(),_0x441494=new Set();function _0x271367(_0x3f169e,_0x4d266f){const _0x25a59c=_0x42b37c();return _0x441494['add'](_0x25a59c),_0x3f169e['setAttribute']('headingId',_0x25a59c,_0x4d266f),_0x25a59c;}function _0x368604(_0x289f46,_0x527914){_0x289f46['removeAttribute']('headingId',_0x527914);}_0x4016d0['model']['document']['registerPostFixer'](_0x337c0d=>{const _0x1f53f5=_0x4016d0['model']['document']['differ']['getChanges']();let _0x51a10f=!0x1;for(const _0x47b053 of _0x1f53f5)if('insert'==_0x47b053['type']&&_0x47b053['name']){if(T(_0x47b053['name'])){const _0x1c550f=_0x47b053['attributes']['get']('headingId');'string'==typeof _0x1c550f?_0x197f84['has'](_0x1c550f)?(_0x271367(_0x337c0d,_0x47b053['position']['nodeAfter']),_0x51a10f=!0x0):_0x441494['add'](_0x1c550f):(_0x271367(_0x337c0d,_0x47b053['position']['nodeAfter']),_0x51a10f=!0x0);}else'string'==typeof _0x47b053['attributes']['get']('headingId')&&(_0x368604(_0x337c0d,_0x47b053['position']['nodeAfter']),_0x51a10f=!0x0);}else{if('remove'==_0x47b053['type']){const _0x2eac48=_0x47b053['attributes']['get']('headingId');'string'==typeof _0x2eac48&&_0x197f84['delete'](_0x2eac48);}}return _0x51a10f;}),_0x4016d0['model']['document']['on']('change',()=>{_0x441494['forEach'](_0x5c4681=>_0x197f84['add'](_0x5c4681)),_0x441494['clear']();});}}function T(_0x6b0015){return!!_0x6b0015['match'](/heading\d/);}class A extends _0x138ed0{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x59302b,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x221264){super(_0x221264),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x264beb=this['editor'],_0x4b780c=_0x264beb['editing']['view']['document'];_0x264beb['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x264beb['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x4b780c,'click',(_0x3c99c0,_0x555247)=>{if(!_0x555247['target'])return;const _0x4198d6=_0x555247['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x4198d6)&&(_0x555247['domEvent']['preventDefault'](),_0x3c99c0['stop'](),this['_handleScrollToHeading'](_0x4198d6));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x264beb['commands']['add']('insertTableOfContents',new E(_0x264beb));const _0x1e525d=_0x264beb['config']['get']('tableOfContents.headings');if(_0x1e525d&&_0x1e525d['length'])this['listenTo'](_0x264beb['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x1e525d),this['_updateTableOfContentsElements']();});else _0x264beb['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x1a3d00,_0x209356)=>{this['_currentOutlineDefinitions']=_0x209356['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x264beb['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x500031){const _0x2f0fc2=_0x13c155([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]),_0xa759ed=0x6b9b05fd,_0x332a9f=0x6b9c8c55^_0xa759ed,_0x5af953=window[_0x13c155([0x44,0x61,0x74,0x65])][_0x13c155([0x6e,0x6f,0x77])](),_0x5e93b1=_0x500031[_0x13c155([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2580fd=new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261309=>{_0x5e93b1[_0x13c155([0x6f,0x6e,0x63,0x65])](_0x13c155([0x72,0x65,0x61,0x64,0x79]),_0x261309);}),_0x3221d9={[_0x13c155([0x6b,0x74,0x79])]:_0x13c155([0x45,0x43]),[_0x13c155([0x75,0x73,0x65])]:_0x13c155([0x73,0x69,0x67]),[_0x13c155([0x63,0x72,0x76])]:_0x13c155([0x50,0x2d,0x32,0x35,0x36]),[_0x13c155([0x78])]:_0x13c155([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]),[_0x13c155([0x79])]:_0x13c155([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]),[_0x13c155([0x61,0x6c,0x67])]:_0x13c155([0x45,0x53,0x32,0x35,0x36])},_0x5941eb=_0x5e93b1[_0x13c155([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13c155([0x67,0x65,0x74])](_0x13c155([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe18e42(){let _0x81c5d6,_0x40d3f9=null,_0x3d1794=null;try{if(_0x5941eb==_0x13c155([0x47,0x50,0x4c]))return _0x13c155([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x81c5d6=_0x24e073(),!_0x81c5d6)return _0x13c155([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x81c5d6[_0x13c155([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d1794=_0xddc829(_0x81c5d6[_0x13c155([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x81c5d6[_0x13c155([0x6a,0x74,0x69])])),await _0x30c7be()?_0x874a20()?_0x56405a()?_0x13c155([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x425bc3()?(_0x81c5d6[_0x13c155([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13c155([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40d3f9=_0x7a9a2c(_0x13c155([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b1a45()):_0x13c155([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13c155([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13c155([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13c155([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56405a(){const _0x5c7635=[_0x13c155([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13c155([0x74,0x72,0x69,0x61,0x6c])][_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x81c5d6[_0x13c155([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5af953/0x3e8:0xe10*_0x332a9f;return _0x81c5d6[_0x13c155([0x65,0x78,0x70])]<_0x5c7635;}function _0x874a20(){const _0x19e1e4=_0x81c5d6[_0x13c155([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19e1e4&&(!!_0x19e1e4[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x2a]))||(!!_0x19e1e4[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x54,0x4f,0x43]))||(!!_0x19e1e4[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x50,0x50]))||!(!_0x19e1e4[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x343be4()))));}function _0x425bc3(){const _0x5ccf91=_0x81c5d6[_0x13c155([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ccf91||0x0==_0x5ccf91[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57b32b}=new URL(window[_0x13c155([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ccf91[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b32b))return!0x0;const _0x131e46=_0x57b32b[_0x13c155([0x73,0x70,0x6c,0x69,0x74])](_0x13c155([0x2e]));return _0x5ccf91[_0x13c155([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4557cd=>_0x4557cd[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x2a])))[_0x13c155([0x6d,0x61,0x70])](_0x3723a5=>_0x3723a5[_0x13c155([0x73,0x70,0x6c,0x69,0x74])](_0x13c155([0x2e])))[_0x13c155([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2387dd=>_0x2387dd[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x131e46[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13c155([0x6d,0x61,0x70])](_0x3a0dd7=>Array(_0x131e46[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a0dd7[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13c155([0x66,0x69,0x6c,0x6c])](_0x3a0dd7[0x0]===_0x13c155([0x2a])?_0x13c155([0x2a]):'')[_0x13c155([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a0dd7))[_0x13c155([0x73,0x6f,0x6d,0x65])](_0xe2eb33=>_0x131e46[_0x13c155([0x65,0x76,0x65,0x72,0x79])]((_0x5f548c,_0x4597d1)=>_0xe2eb33[_0x4597d1]===_0x5f548c||_0xe2eb33[_0x4597d1]===_0x13c155([0x2a])));}function _0x2b1a45(){return _0x40d3f9&&_0x3d1794?new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1db819,_0x817db3)=>{_0x40d3f9[_0x13c155([0x74,0x68,0x65,0x6e])](_0x1db819,_0x817db3),_0x3d1794[_0x13c155([0x74,0x68,0x65,0x6e])](_0x50104d=>{_0x50104d!=_0x13c155([0x56,0x61,0x6c,0x69,0x64])&&_0x1db819(_0x50104d);},_0x817db3);}):_0x40d3f9||_0x3d1794||_0x13c155([0x56,0x61,0x6c,0x69,0x64]);}}function _0xddc829(_0x1805d1,_0x3c076c){return new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x319ad5=>{if(_0x357031())return _0x319ad5(_0x13c155([0x56,0x61,0x6c,0x69,0x64]));_0x7b2af9(),_0x5e93b1[_0x13c155([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13c155([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17fc1b=!0x1;const _0xfe3d57=_0x42b37c();function _0x281fb0(_0x527a71){return!!_0x527a71&&(typeof _0x527a71===_0x13c155([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x527a71===_0x13c155([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x527a71[_0x13c155([0x74,0x68,0x65,0x6e])]===_0x13c155([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x527a71[_0x13c155([0x63,0x61,0x74,0x63,0x68])]===_0x13c155([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x151381(_0x1a01c5){_0x55fab0(_0x1a01c5)[_0x13c155([0x74,0x68,0x65,0x6e])](_0x74a6cb=>{if(!_0x74a6cb||_0x74a6cb[_0x13c155([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13c155([0x6f,0x6b]))return _0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x104872(_0x3c152d(_0xfe3d57+_0x3c076c))!=_0x74a6cb[_0x13c155([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13c155([0x56,0x61,0x6c,0x69,0x64]);})[_0x13c155([0x74,0x68,0x65,0x6e])](_0x23a9b2=>(_0x1c566e(),_0x23a9b2),()=>{const _0xc7783b=_0x62cab3();return null==_0xc7783b?(_0x1c566e(),_0x13c155([0x56,0x61,0x6c,0x69,0x64])):_0x13c155(_0x5af953-_0xc7783b>(0x4f9781fd^_0xa759ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13c155([0x74,0x68,0x65,0x6e])](_0x319ad5)[_0x13c155([0x63,0x61,0x74,0x63,0x68])](()=>{_0x319ad5(_0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d24f7=0x6badeb7d^_0xa759ed;function _0x1c566e(){const _0x52c277=_0x13c155([0x6c,0x6c,0x63,0x74,0x2d])+_0x104872(_0x3c152d(_0x1805d1)),_0x5bd425=_0x4077bb(_0x104872(window[_0x13c155([0x4d,0x61,0x74,0x68])][_0x13c155([0x63,0x65,0x69,0x6c])](_0x5af953/_0x5d24f7)));window[_0x13c155([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13c155([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52c277,_0x5bd425);}function _0x62cab3(){const _0xcb6efd=_0x13c155([0x6c,0x6c,0x63,0x74,0x2d])+_0x104872(_0x3c152d(_0x1805d1)),_0xe1f0b1=window[_0x13c155([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13c155([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcb6efd);return _0xe1f0b1?window[_0x13c155([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4077bb(_0xe1f0b1),0x10)*_0x5d24f7:null;}function _0x55fab0(_0x166434){return new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a3a9,_0x53c2e4)=>{_0x166434[_0x13c155([0x74,0x68,0x65,0x6e])](_0x48a3a9,_0x53c2e4),window[_0x13c155([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53c2e4,0x6b9ad13d^_0xa759ed);});}}_0x5e93b1[_0x13c155([0x6f,0x6e])](_0x13c155([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ecacd,_0x24aa8b)=>{if(_0x24aa8b[0x0]!=_0x1805d1)return _0x319ad5(_0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24aa8b[0x1]={..._0x24aa8b[0x1],[_0x13c155([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfe3d57};},{[_0x13c155([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13c155([0x68,0x69,0x67,0x68])}),_0x5e93b1[_0x13c155([0x6f,0x6e])](_0x13c155([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x352e36=>{_0x281fb0(_0x352e36[_0x13c155([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17fc1b=!0x0,_0x151381(_0x352e36[_0x13c155([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13c155([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13c155([0x6c,0x6f,0x77])}),_0x2580fd[_0x13c155([0x74,0x68,0x65,0x6e])](()=>{_0x17fc1b||_0x319ad5(_0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x357031(){return _0x5e93b1[_0x13c155([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13c155([0x76,0x69,0x65,0x77])][_0x13c155([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13c155([0x61,0x75,0x74,0x6f]);}function _0x7b2af9(){_0x5e93b1[_0x13c155([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13c155([0x76,0x69,0x65,0x77])][_0x13c155([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13c155([0x61,0x75,0x74,0x6f]);}}function _0x7a9a2c(_0x439af2){const _0x1a6e85=[new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x332f59=>setTimeout(_0x332f59,0x6b923b31^_0xa759ed)),_0x2580fd[_0x13c155([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a5bc5=>{let _0x2d9df2=0x0;_0x5e93b1[_0x13c155([0x6d,0x6f,0x64,0x65,0x6c])][_0x13c155([0x6f,0x6e])](_0x13c155([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d766b,_0xc07247)=>{_0xc07247[0x0][_0x13c155([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9df2++,_0x2d9df2==(0x6b9b0015^_0xa759ed)&&(_0x2a5bc5(),_0x1d766b[_0x13c155([0x6f,0x66,0x66])]());});}))];return window[_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13c155([0x72,0x61,0x63,0x65])](_0x1a6e85)[_0x13c155([0x74,0x68,0x65,0x6e])](()=>_0x439af2);}async function _0x3c5bdf(){await _0x2580fd,_0x5e93b1[_0x13c155([0x6d,0x6f,0x64,0x65,0x6c])][_0x13c155([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a7082,_0x5e93b1[_0x13c155([0x6d,0x6f,0x64,0x65,0x6c])][_0x13c155([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a7082,_0x5e93b1[_0x13c155([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13c155([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x343be4(){return window[_0x13c155([0x67,0x6c,0x6f,0x62])]&&window[_0x13c155([0x67,0x6c,0x6f,0x62])][_0x13c155([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xa33566(_0x59873f){const _0x394844=_0x5cba87();_0x5e93b1[_0x394844]=_0x13c155([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])+_0x59873f,_0x59873f!=_0x13c155([0x56,0x61,0x6c,0x69,0x64])&&_0x3c5bdf();}function _0x5cba87(){const _0x282ad9=window[_0x13c155([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13c155([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13c155([0x6e,0x6f,0x77])]())[_0x13c155([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13c155([0x2e]),'');let _0x282261=_0x13c155([0x6d]);for(let _0x59ee1f=0x0;_0x59ee1f<_0x282ad9[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59ee1f+=0x2){let _0x36e2ef=window[_0x13c155([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x282ad9[_0x13c155([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59ee1f,_0x59ee1f+0x2));_0x36e2ef>=_0x2f0fc2[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36e2ef-=_0x2f0fc2[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x282261+=_0x2f0fc2[_0x36e2ef];}return _0x282261;}function _0x24e073(){const _0x75eb86=_0x5941eb[_0x13c155([0x73,0x70,0x6c,0x69,0x74])](_0x13c155([0x2e]));if(0x3!=_0x75eb86[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34fe7f(_0x75eb86[0x1]);function _0x34fe7f(_0x232141){const _0x58072e=_0x1d0ec0(_0x232141);return _0x58072e&&_0x1e4f8e()?_0x58072e:null;function _0x1e4f8e(){const _0x23c593=_0x58072e[_0x13c155([0x6a,0x74,0x69])],_0x38065f=window[_0x13c155([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23c593[_0x13c155([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23c593[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x404f8f={..._0x58072e,[_0x13c155([0x6a,0x74,0x69])]:_0x23c593[_0x13c155([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23c593[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x404f8f[_0x13c155([0x76,0x63])],_0x3c152d(_0x404f8f)==_0x38065f;}}}async function _0x30c7be(){let _0x4a5b89=!0x0;try{const _0x1a5ef2=_0x5941eb[_0x13c155([0x73,0x70,0x6c,0x69,0x74])](_0x13c155([0x2e])),[_0x196dbe,_0x5ac5e5,_0x4db7d2]=_0x1a5ef2;return _0x17659c(_0x196dbe),await _0x655021(_0x196dbe,_0x5ac5e5,_0x4db7d2),_0x4a5b89;}catch{return!0x1;}function _0x17659c(_0x4f4eff){const _0x3f9478=_0x1d0ec0(_0x4f4eff);_0x3f9478&&_0x3f9478[_0x13c155([0x61,0x6c,0x67])]==_0x13c155([0x45,0x53,0x32,0x35,0x36])||(_0x4a5b89=!0x1);}async function _0x655021(_0x7c245e,_0x3afead,_0x384fda){const _0x48d7eb=window[_0x13c155([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13c155([0x66,0x72,0x6f,0x6d])](_0x27325d(_0x384fda),_0x25ba9e=>_0x25ba9e[_0x13c155([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dc8cb=new window[(_0x13c155([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13c155([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7c245e+_0x13c155([0x2e])+_0x3afead),_0x4a2f88=window[_0x13c155([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13c155([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a2f88)return;const _0x20b123=await _0x4a2f88[_0x13c155([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13c155([0x6a,0x77,0x6b]),_0x3221d9,{[_0x13c155([0x6e,0x61,0x6d,0x65])]:_0x13c155([0x45,0x43,0x44,0x53,0x41]),[_0x13c155([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13c155([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13c155([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a2f88[_0x13c155([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13c155([0x6e,0x61,0x6d,0x65])]:_0x13c155([0x45,0x43,0x44,0x53,0x41]),[_0x13c155([0x68,0x61,0x73,0x68])]:{[_0x13c155([0x6e,0x61,0x6d,0x65])]:_0x13c155([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x20b123,_0x48d7eb,_0x1dc8cb)||(_0x4a5b89=!0x1);}}function _0x1d0ec0(_0x3c22b5){return _0x3c22b5[_0x13c155([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13c155([0x65,0x79]))?JSON[_0x13c155([0x70,0x61,0x72,0x73,0x65])](_0x27325d(_0x3c22b5)):null;}function _0x27325d(_0x3e40be){return window[_0x13c155([0x61,0x74,0x6f,0x62])](_0x3e40be[_0x13c155([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13c155([0x2b]))[_0x13c155([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13c155([0x2f])));}function _0x3c152d(_0x45b0d8){let _0x3f9c9c=0x1505;function _0x5ea71a(_0x5c76b1){for(let _0x1deda7=0x0;_0x1deda7<_0x5c76b1[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1deda7++){const _0x5a74fd=_0x5c76b1[_0x13c155([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1deda7);_0x3f9c9c=(_0x3f9c9c<<0x5)+_0x3f9c9c+_0x5a74fd,_0x3f9c9c&=_0x3f9c9c;}}function _0x23a97e(_0x516420){Array[_0x13c155([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x516420)?_0x516420[_0x13c155([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23a97e):_0x516420&&typeof _0x516420==_0x13c155([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13c155([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x516420)[_0x13c155([0x73,0x6f,0x72,0x74])]()[_0x13c155([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d8165,_0x2911fb])=>{_0x5ea71a(_0x2d8165),_0x23a97e(_0x2911fb);}):_0x5ea71a(window[_0x13c155([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x516420));}return _0x23a97e(_0x45b0d8),_0x3f9c9c>>>0x0;}function _0x104872(_0x53e3e3){return _0x53e3e3[_0x13c155([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13c155([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13c155([0x30]));}function _0x4077bb(_0x453c6b){return _0x453c6b[_0x13c155([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13c155([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13c155([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a7082(){}function _0x13c155(_0x4d2d18){return _0x4d2d18['map'](_0x470667=>String['fromCharCode'](_0x470667))['join']('');}_0xa33566(await _0xe18e42());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x223650=>{'$graveyard'!==_0x223650['rootName']&&this['editor']['editing']['reconvertItem'](_0x223650);});}['_trackNewToCElements'](){for(const _0x20b177 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x20b177['type']||'tableOfContents'!==_0x20b177['name'])return;this['_tableOfContentsElements']['add'](_0x20b177['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x4d03d7){const _0x258625=this['editor'],_0x4aed12=[];for(const _0x296493 of _0x258625['model']['document']['getRootNames']())_0x38ab7c(_0x258625['model']['document']['getRoot'](_0x296493));function _0x38ab7c(_0x3b11b9){for(const _0x371e2b of _0x3b11b9['getChildren']())_0x371e2b['is']('element')&&(_0x4d03d7['includes'](_0x371e2b['name'])&&_0x4aed12['push']({'level':_0x4d03d7['indexOf'](_0x371e2b['name'])+0x1,'text':v(_0x371e2b),'modelElement':_0x371e2b}),_0x38ab7c(_0x371e2b));}return _0x4aed12;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x1e954c=this['editor']['conversion'];_0x1e954c['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x1e954c['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5e6d33,{writer:_0x4eaf15})=>this['_createTableOfContents'](_0x4eaf15,!0x0)}),_0x1e954c['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x563358,{writer:_0x25c528})=>{this['_tableOfContentsElements']['add'](_0x563358);const _0x594c23=this['_createTableOfContents'](_0x25c528);return _0x1b9690(_0x594c23,_0x25c528,{'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'](_0x111ba4,_0x50770b=!0x1){const {locale:_0x2963e9}=this['editor'],_0x18a3ad=_0x111ba4['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x50770b&&{'data-table-of-contents-label':C(_0x2963e9,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x50770b&&_0x111ba4['insert'](_0x111ba4['createPositionAt'](_0x18a3ad,'end'),_0x111ba4['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x111ba4['createText'](C(_0x2963e9,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x18e804=_0x50770b?'':'['+C(_0x2963e9,'Empty\x20heading')+']';let _0xe99074=_0x18a3ad;return this['_currentOutlineDefinitions']['forEach']((_0x45464e,_0x1448b3,_0x484dc6)=>{const _0xf3abf6=this['editor']['model']['hasContent'](_0x45464e['modelElement'],{'ignoreWhitespaces':!0x0}),_0xef40a7=_0xf3abf6?_0x45464e['text']:_0x18e804,_0x2d60a1=_0x45464e['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x4a66a1=_0x111ba4['createContainerElement']('a',{'href':'#'+_0x2d60a1,...!_0x50770b&&{'tabindex':'-1'}},[_0x111ba4['createText'](_0xef40a7)]),_0xe4ae52=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x111ba4['setCustomProperty']('tableOfContentsHeadingIndex',_0x1448b3,_0x4a66a1);const _0x27bb20=_0x111ba4['createContainerElement']('li',null,[_0xf3abf6||!_0x50770b&&_0xe4ae52?_0x4a66a1:_0x111ba4['createText']('')]),_0x4aa6cc=_0x1448b3?_0x484dc6[_0x1448b3-0x1]['level']:0x0,_0x5a2755=Math['abs'](_0x45464e['level']-_0x4aa6cc);if(_0x45464e['level']>_0x4aa6cc){const _0x2deacf=P(_0x27bb20,_0x5a2755,_0x111ba4);_0x111ba4['insert'](_0x111ba4['createPositionAt'](_0xe99074,'end'),_0x2deacf);}else{const _0x50db42=function(_0x4059c8,_0x3f0f5f){return _0x4059c8['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x312d20=>_0x312d20['is']('element','ol'))[_0x3f0f5f];}(_0xe99074,_0x5a2755);_0x111ba4['insert'](_0x111ba4['createPositionAt'](_0x50db42,'end'),_0x27bb20);}_0xe99074=_0x27bb20;}),_0x18a3ad;}['_handleScrollToHeading'](_0x4e9425){const _0x24297f=this['_currentOutlineDefinitions'][_0x4e9425]['modelElement'];this['editor']['model']['change'](_0x584d3f=>{_0x584d3f['setSelection'](_0x24297f,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x18695d,_0x54395f)=>{const _0x48aaca=_0x54395f['mapper'],_0x357c11=_0x48aaca['findMappedViewAncestor'](_0x54395f['viewPosition']),_0x5c7741=_0x48aaca['toModelElement'](_0x357c11);_0x5c7741['is']('element','tableOfContents')&&(_0x54395f['modelPosition']=this['editor']['model']['createPositionAt'](_0x5c7741,0x0),_0x18695d['stop']());};}}function P(_0x39c5c6,_0x42c153,_0x4244e2){return 0x1===_0x42c153?_0x4244e2['createContainerElement']('ol',null,[_0x39c5c6]):_0x4244e2['createContainerElement']('ol',null,[_0x4244e2['createContainerElement']('li',null,[P(_0x39c5c6,_0x42c153-0x1,_0x4244e2)])]);}class D extends _0x138ed0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c50b3=this['editor'];_0x4c50b3['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x36d762=this['_createButton'](_0x52f647);return _0x36d762['tooltip']=!0x0,_0x36d762;}),_0x4c50b3['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0xcf0d6e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x301cfc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3eed63;for(const _0x45a799 in _0x301cfc){const _0x5f536c=_0x45a799,_0x441de7=_0x301cfc[_0x5f536c];if('tableOfContentsLicenseKeyValid'==_0x441de7||'tableOfContentsLicenseKeyInvalid'==_0x441de7||'tableOfContentsLicenseKeyExpired'==_0x441de7||'tableOfContentsLicenseKeyDomainLimit'==_0x441de7||'tableOfContentsLicenseKeyNotAllowed'==_0x441de7||'tableOfContentsLicenseKeyEvaluationLimit'==_0x441de7||'tableOfContentsLicenseKeyUsageLimit'==_0x441de7){delete _0x301cfc[_0x5f536c],_0x3eed63=_0x441de7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x3eed63&&_0x301cfc['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x3eed63&&_0x301cfc['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x3eed63&&_0x301cfc['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x3eed63&&_0x301cfc['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x3eed63&&_0x301cfc['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x3eed63&&_0x301cfc['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x347e6d){const _0x302cd1=this['editor'],_0x40e3f1=_0x302cd1['locale'],_0x7bfb9c=_0x302cd1['commands']['get']('insertTableOfContents'),_0x446029=new _0x347e6d(_0x40e3f1);return _0x446029['set']({'label':C(_0x40e3f1,'Table\x20of\x20contents'),'icon':_0x538b3c}),_0x446029['bind']('isEnabled')['to'](_0x7bfb9c,'isEnabled'),this['listenTo'](_0x446029,'execute',()=>{_0x302cd1['execute']('insertTableOfContents'),_0x302cd1['editing']['view']['focus']();}),_0x446029;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x138ed0{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
|
+
"version": "48.1.0-alpha.4",
|
|
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.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-heading": "48.1.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "48.1.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.4",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
|
|
26
|
+
"@ckeditor/ckeditor5-heading": "48.1.0-alpha.4",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "48.1.0-alpha.4",
|
|
31
31
|
"es-toolkit": "1.45.1"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|