@ckeditor/ckeditor5-document-outline 48.0.0-alpha.2 → 48.0.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x35067f,Command as _0x46e38d}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x3dbb24,throttle as _0x4593b1}from'es-toolkit/compat';import{ModelText as _0x1845e4,ModelTreeWalker as _0x143545}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x20ac0d,diffToChanges as _0x4f3e7b,scrollAncestorsToShowTarget as _0x4c72ea,CKEditorError as _0x3330b7,global as _0x2da803,Rect as _0x19d281,uid as _0x2d0c66,priorities as _0x51dd04}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x283879,ButtonView as _0x331297,MenuBarMenuListItemButtonView as _0x3fa828}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x16b98b,toWidget as _0x55caf5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x137d66}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x5eed85){let _0x52aff1='';for(const _0x59fc73 of _0x5eed85['getChildren']())_0x59fc73 instanceof _0x1845e4&&(_0x52aff1+=_0x59fc73['data']);return _0x52aff1;}class I extends _0x35067f{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0xa4e987=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x471ce1=[];_0xa4e987['model']['document']['on']('change',_0x3dbb24(()=>{const _0x28c025=_0x471ce1;_0x471ce1=this['_getOutlineDefinitions']();const _0x2fa789=_0x20ac0d(_0x28c025,_0x471ce1,(_0x32fe1e,_0x5041a5)=>_0x32fe1e['level']===_0x5041a5['level']&&_0x32fe1e['text']===_0x5041a5['text']&&_0x32fe1e['modelElement']===_0x5041a5['modelElement']),_0x5c631b=_0x4f3e7b(_0x2fa789,_0x471ce1),_0x22ccab=this['_getActiveHeading'](),_0x2a5a81=_0x471ce1['findIndex'](_0x28fa97=>_0x28fa97['modelElement']===_0x22ccab);_0x5c631b['length']&&this['fire']('change',{'outlineDefinitions':_0x471ce1,'activeItemIndex':_0x2a5a81,'outlineChanges':_0x5c631b}),this['fire']('activeItemIndex',{'index':_0x2a5a81});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x92622=this['editor'],_0x4a3bce=[],_0x5eb750=this['_headingNames'];for(const _0x4d7c3f of _0x92622['model']['document']['getRootNames']())_0x2afa94(_0x92622['model']['document']['getRoot'](_0x4d7c3f));function _0x2afa94(_0x2fb36f){for(const _0x52acad of _0x2fb36f['getChildren']())_0x52acad['is']('element')&&(_0x5eb750['includes'](_0x52acad['name'])&&_0x4a3bce['push']({'level':_0x5eb750['indexOf'](_0x52acad['name'])+0x1,'text':v(_0x52acad),'modelElement':_0x52acad}),_0x2afa94(_0x52acad));}return _0x4a3bce;}['_getActiveHeading'](){const _0x190a17=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x4532db=new _0x143545({'direction':'backward','startPosition':_0x190a17});for(const _0x5accb7 of _0x4532db)if(_0x5accb7['item']['is']('element')&&this['_headingNames']['includes'](_0x5accb7['item']['name']))return _0x5accb7['item'];}['_getHeadingNames'](){const _0x4f43df=this['editor']['config']['get']('documentOutline.headings');return _0x4f43df||function(_0x45b845){const _0x3e067a=_0x45b845['config']['get']('heading.options');return _0x3e067a?_0x3e067a['reduce']((_0x6bbfc3,_0x27c6e9)=>('paragraph'!==_0x27c6e9['model']&&_0x6bbfc3['push'](_0x27c6e9['model']),_0x6bbfc3),[]):_0x45b845['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x392cab=this['editor'],_0x53db60=['h1','h2','h3','h4','h5','h6'],_0x367a0c=[];for(const _0x259097 of _0x53db60){const _0x2377fb=_0x392cab['editing']['view']['domConverter']['domToView'](document['createElement'](_0x259097)),_0xe53942=_0x392cab['data']['toModel'](_0x2377fb)['getChild'](0x0);_0xe53942?.['is']('element')&&_0x367a0c['push'](_0xe53942['name']);}this['_headingNames']=_0x367a0c;}}function C(_0x4a2f22,_0x45091e){const t=_0x4a2f22['t'];switch(_0x45091e){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 _0x45091e;}}class _ extends _0x283879{constructor(_0x413b79,_0xbd5ba4=!0x1){super(_0x413b79);const _0x2a85ac=this['bindTemplate'],_0x156d82=_0xbd5ba4?'['+C(_0x413b79,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0xca36ba=>!_0xca36ba),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2a85ac['to']('level',_0x50dce3=>'ck-document-outline__item_level-'+_0x50dce3),_0x2a85ac['if']('isActive','ck-document-outline__item_active'),_0x2a85ac['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2a85ac['to']('text')},'children':[{'text':_0x2a85ac['to']('text',_0x4eb9fd=>_0x4eb9fd||_0x156d82)}],'on':{'click':_0x2a85ac['to']('click')}});}}class L extends _0x283879{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0xcd2e0b,_0x485fae=!0x1,_0x37a8e0){super(_0xcd2e0b),this['showEmptyHeadingText']=_0x485fae,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x37a8e0,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x25a0c3,_0x22acb0,_0x4be47f,_0x1baa47)=>{this['_setActiveItem'](_0x1baa47,_0x4be47f);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xcd2e0b['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0xcd2e0b,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x5cf817){_0x5cf817['forEach'](_0x4f8959=>{'insert'==_0x4f8959['type']?this['_insertItem'](_0x4f8959['index'],..._0x4f8959['values']):'delete'==_0x4f8959['type']&&this['_deleteItem'](_0x4f8959['index'],_0x4f8959['howMany']);});}['_setActiveItem'](_0x392c8c,_0x339588){if(-0x1!==_0x392c8c){const _0x30cf9d=this['items']['get'](_0x392c8c);_0x30cf9d&&(_0x30cf9d['isActive']=!0x1);}-0x1!==_0x339588&&(this['items']['get'](_0x339588)['isActive']=!0x0,this['_scrollToItem'](_0x339588));}['_insertItem'](_0x3a3171,..._0x2b5e01){const _0x5a2915=_0x2b5e01['map']((_0x243656,_0x45b152)=>{const _0x44698c=new _(this['locale'],this['showEmptyHeadingText']);return _0x44698c['text']=_0x243656['text'],_0x44698c['level']=_0x243656['level'],_0x3a3171+_0x45b152===this['activeItemIndex']&&(_0x44698c['isActive']=!0x0),_0x44698c;});this['items']['addMany'](_0x5a2915,_0x3a3171);}['_deleteItem'](_0x5ae641,_0x394c92){do{this['items']['remove'](_0x5ae641);}while(--_0x394c92);}['_handleItemClick'](_0x2cf1f0){const _0xe7bb80=this['items']['getIndex'](_0x2cf1f0['source']);this['fire']('itemSelected',_0xe7bb80);}['_scrollToItem'](_0x1fb38e){_0x4c72ea(this['items']['get'](_0x1fb38e)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class x extends _0x35067f{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x206191){super(_0x206191),this['view']=new L(_0x206191['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x4593b1(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x1f7cf8=this['editor'],_0xfb3331=_0x1f7cf8['plugins']['get']('DocumentOutlineUtils');let _0xdf50f3=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x1f7cf8['config']['get']('documentOutline.container'))throw new _0x3330b7('document-outline-container-not-provided',{'editor':_0x1f7cf8});_0x1f7cf8['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0xfb3331['on']('change',this['_handleOutlineChange']['bind'](this)),_0xfb3331['on']('activeItemIndex',(_0x417190,{index:_0x3eb8f3})=>this['_setActiveViewItem'](_0x3eb8f3)),this['view']['on']('itemSelected',(_0x40ac15,_0x42287e)=>{_0xdf50f3=!0x0,this['_handleItemSelected'](_0x42287e);}),this['view']['listenTo'](_0x2da803['document'],'scroll',()=>{_0xdf50f3?_0xdf50f3=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x2da803['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x4168a2){const _0xa1fc78=_0x325428([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]),_0x3a7753=0x1cb264a3,_0x4c486f=0x1cb5e05b^_0x3a7753,_0x5e562e=window[_0x325428([0x44,0x61,0x74,0x65])][_0x325428([0x6e,0x6f,0x77])](),_0x174ac2=_0x4168a2[_0x325428([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ba342=new window[(_0x325428([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2280e9=>{_0x174ac2[_0x325428([0x6f,0x6e,0x63,0x65])](_0x325428([0x72,0x65,0x61,0x64,0x79]),_0x2280e9);}),_0x56cdfc={[_0x325428([0x6b,0x74,0x79])]:_0x325428([0x45,0x43]),[_0x325428([0x75,0x73,0x65])]:_0x325428([0x73,0x69,0x67]),[_0x325428([0x63,0x72,0x76])]:_0x325428([0x50,0x2d,0x32,0x35,0x36]),[_0x325428([0x78])]:_0x325428([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]),[_0x325428([0x79])]:_0x325428([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]),[_0x325428([0x61,0x6c,0x67])]:_0x325428([0x45,0x53,0x32,0x35,0x36])},_0x1105c3=_0x174ac2[_0x325428([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x325428([0x67,0x65,0x74])](_0x325428([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ae996(){let _0x4be5ed,_0x322fb2=null,_0x21c129=null;try{if(_0x1105c3==_0x325428([0x47,0x50,0x4c]))return _0x325428([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4be5ed=_0x4c7586(),!_0x4be5ed)return _0x325428([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4be5ed[_0x325428([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21c129=_0x3a9b21(_0x4be5ed[_0x325428([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4be5ed[_0x325428([0x6a,0x74,0x69])])),await _0x27af44()?_0x545558()?_0x4cbdb9()?_0x325428([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x354b13()?(_0x4be5ed[_0x325428([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x325428([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x322fb2=_0x166fe8(_0x325428([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd52f3()):_0x325428([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x325428([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x325428([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x325428([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4cbdb9(){const _0x398ed5=[_0x325428([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x325428([0x74,0x72,0x69,0x61,0x6c])][_0x325428([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4be5ed[_0x325428([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e562e/0x3e8:0xe10*_0x4c486f;return _0x4be5ed[_0x325428([0x65,0x78,0x70])]<_0x398ed5;}function _0x545558(){const _0x2e6455=_0x4be5ed[_0x325428([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e6455&&(!!_0x2e6455[_0x325428([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x325428([0x2a]))||(!!_0x2e6455[_0x325428([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x325428([0x44,0x4f]))||(!!_0x2e6455[_0x325428([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x325428([0x50,0x50]))||!(!_0x2e6455[_0x325428([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x325428([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5578ae()))));}function _0x354b13(){const _0x5297e1=_0x4be5ed[_0x325428([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5297e1||0x0==_0x5297e1[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3441c1}=new URL(window[_0x325428([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5297e1[_0x325428([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3441c1))return!0x0;const _0x35fdea=_0x3441c1[_0x325428([0x73,0x70,0x6c,0x69,0x74])](_0x325428([0x2e]));return _0x5297e1[_0x325428([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a14a3=>_0x5a14a3[_0x325428([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x325428([0x2a])))[_0x325428([0x6d,0x61,0x70])](_0x2282c3=>_0x2282c3[_0x325428([0x73,0x70,0x6c,0x69,0x74])](_0x325428([0x2e])))[_0x325428([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e3d1e=>_0x4e3d1e[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35fdea[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x325428([0x6d,0x61,0x70])](_0x9327ea=>Array(_0x35fdea[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9327ea[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x325428([0x66,0x69,0x6c,0x6c])](_0x9327ea[0x0]===_0x325428([0x2a])?_0x325428([0x2a]):'')[_0x325428([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9327ea))[_0x325428([0x73,0x6f,0x6d,0x65])](_0x2bbd2f=>_0x35fdea[_0x325428([0x65,0x76,0x65,0x72,0x79])]((_0x25a322,_0x2796f9)=>_0x2bbd2f[_0x2796f9]===_0x25a322||_0x2bbd2f[_0x2796f9]===_0x325428([0x2a])));}function _0xd52f3(){return _0x322fb2&&_0x21c129?new window[(_0x325428([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5861d0,_0x5aa644)=>{_0x322fb2[_0x325428([0x74,0x68,0x65,0x6e])](_0x5861d0,_0x5aa644),_0x21c129[_0x325428([0x74,0x68,0x65,0x6e])](_0x52c915=>{_0x52c915!=_0x325428([0x56,0x61,0x6c,0x69,0x64])&&_0x5861d0(_0x52c915);},_0x5aa644);}):_0x322fb2||_0x21c129||_0x325428([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a9b21(_0x3fd4e7,_0x3b3e37){return new window[(_0x325428([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5426de=>{if(_0x3d968b())return _0x5426de(_0x325428([0x56,0x61,0x6c,0x69,0x64]));_0x40b4c6(),_0x174ac2[_0x325428([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x325428([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f3c74=!0x1;const _0x1341f1=_0x2d0c66();function _0x1d578d(_0x3f4fc2){return!!_0x3f4fc2&&(typeof _0x3f4fc2===_0x325428([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f4fc2===_0x325428([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f4fc2[_0x325428([0x74,0x68,0x65,0x6e])]===_0x325428([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f4fc2[_0x325428([0x63,0x61,0x74,0x63,0x68])]===_0x325428([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c0aaa(_0xc1efcd){_0x2acfcc(_0xc1efcd)[_0x325428([0x74,0x68,0x65,0x6e])](_0x383982=>{if(!_0x383982||_0x383982[_0x325428([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x325428([0x6f,0x6b]))return _0x325428([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x116a38(_0x2040c3(_0x1341f1+_0x3b3e37))!=_0x383982[_0x325428([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x325428([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x325428([0x56,0x61,0x6c,0x69,0x64]);})[_0x325428([0x74,0x68,0x65,0x6e])](_0x4c993d=>(_0x5c1dce(),_0x4c993d),()=>{const _0xa53afc=_0x368556();return null==_0xa53afc?(_0x5c1dce(),_0x325428([0x56,0x61,0x6c,0x69,0x64])):_0x325428(_0x5e562e-_0xa53afc>(0x38bee0a3^_0x3a7753)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x325428([0x74,0x68,0x65,0x6e])](_0x5426de)[_0x325428([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5426de(_0x325428([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x477233=0x1c848a23^_0x3a7753;function _0x5c1dce(){const _0x363db7=_0x325428([0x6c,0x6c,0x63,0x74,0x2d])+_0x116a38(_0x2040c3(_0x3fd4e7)),_0xbf27e9=_0x5703d1(_0x116a38(window[_0x325428([0x4d,0x61,0x74,0x68])][_0x325428([0x63,0x65,0x69,0x6c])](_0x5e562e/_0x477233)));window[_0x325428([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x325428([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x363db7,_0xbf27e9);}function _0x368556(){const _0xc94f92=_0x325428([0x6c,0x6c,0x63,0x74,0x2d])+_0x116a38(_0x2040c3(_0x3fd4e7)),_0x118a8f=window[_0x325428([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x325428([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc94f92);return _0x118a8f?window[_0x325428([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5703d1(_0x118a8f),0x10)*_0x477233:null;}function _0x2acfcc(_0x37dd9a){return new window[(_0x325428([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd04455,_0x42f0d2)=>{_0x37dd9a[_0x325428([0x74,0x68,0x65,0x6e])](_0xd04455,_0x42f0d2),window[_0x325428([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42f0d2,0x1cb3b063^_0x3a7753);});}}_0x174ac2[_0x325428([0x6f,0x6e])](_0x325428([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14a989,_0x3a14a4)=>{if(_0x3a14a4[0x0]!=_0x3fd4e7)return _0x5426de(_0x325428([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a14a4[0x1]={..._0x3a14a4[0x1],[_0x325428([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1341f1};},{[_0x325428([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x325428([0x68,0x69,0x67,0x68])}),_0x174ac2[_0x325428([0x6f,0x6e])](_0x325428([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20b734=>{_0x1d578d(_0x20b734[_0x325428([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f3c74=!0x0,_0x5c0aaa(_0x20b734[_0x325428([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x325428([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x325428([0x6c,0x6f,0x77])}),_0x3ba342[_0x325428([0x74,0x68,0x65,0x6e])](()=>{_0x5f3c74||_0x5426de(_0x325428([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d968b(){return _0x174ac2[_0x325428([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x325428([0x76,0x69,0x65,0x77])][_0x325428([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x325428([0x61,0x75,0x74,0x6f]);}function _0x40b4c6(){_0x174ac2[_0x325428([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x325428([0x76,0x69,0x65,0x77])][_0x325428([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x325428([0x61,0x75,0x74,0x6f]);}}function _0x166fe8(_0x100c0b){const _0x32ca0f=[new window[(_0x325428([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337577=>setTimeout(_0x337577,0x1cbb5a6f^_0x3a7753)),_0x3ba342[_0x325428([0x74,0x68,0x65,0x6e])](()=>new window[(_0x325428([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1567f9=>{let _0x267283=0x0;_0x174ac2[_0x325428([0x6d,0x6f,0x64,0x65,0x6c])][_0x325428([0x6f,0x6e])](_0x325428([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27070e,_0x4165e7)=>{_0x4165e7[0x0][_0x325428([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x267283++,_0x267283==(0x1cb2614b^_0x3a7753)&&(_0x1567f9(),_0x27070e[_0x325428([0x6f,0x66,0x66])]());});}))];return window[_0x325428([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x325428([0x72,0x61,0x63,0x65])](_0x32ca0f)[_0x325428([0x74,0x68,0x65,0x6e])](()=>_0x100c0b);}async function _0x53d26a(){await _0x3ba342,_0x174ac2[_0x325428([0x6d,0x6f,0x64,0x65,0x6c])][_0x325428([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd6e2b,_0x174ac2[_0x325428([0x6d,0x6f,0x64,0x65,0x6c])][_0x325428([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd6e2b,_0x174ac2[_0x325428([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x325428([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5578ae(){return window[_0x325428([0x67,0x6c,0x6f,0x62])]&&window[_0x325428([0x67,0x6c,0x6f,0x62])][_0x325428([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5b2f5b(_0x224e50){const _0x3c87e2=_0x2b13ac();_0x174ac2[_0x3c87e2]=_0x325428([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])+_0x224e50,_0x224e50!=_0x325428([0x56,0x61,0x6c,0x69,0x64])&&_0x53d26a();}function _0x2b13ac(){const _0x942be5=window[_0x325428([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x325428([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x325428([0x6e,0x6f,0x77])]())[_0x325428([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x325428([0x2e]),'');let _0x5e1ffc=_0x325428([0x61]);for(let _0x298da0=0x0;_0x298da0<_0x942be5[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x298da0+=0x2){let _0x7f2701=window[_0x325428([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x942be5[_0x325428([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x298da0,_0x298da0+0x2));_0x7f2701>=_0xa1fc78[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7f2701-=_0xa1fc78[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e1ffc+=_0xa1fc78[_0x7f2701];}return _0x5e1ffc;}function _0x4c7586(){const _0x223422=_0x1105c3[_0x325428([0x73,0x70,0x6c,0x69,0x74])](_0x325428([0x2e]));if(0x3!=_0x223422[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27969b(_0x223422[0x1]);function _0x27969b(_0x57c70d){const _0x2649cd=_0x39d2ba(_0x57c70d);return _0x2649cd&&_0x4077d9()?_0x2649cd:null;function _0x4077d9(){const _0xda9827=_0x2649cd[_0x325428([0x6a,0x74,0x69])],_0x1cf712=window[_0x325428([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xda9827[_0x325428([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xda9827[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x212722={..._0x2649cd,[_0x325428([0x6a,0x74,0x69])]:_0xda9827[_0x325428([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xda9827[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x212722[_0x325428([0x76,0x63])],_0x2040c3(_0x212722)==_0x1cf712;}}}async function _0x27af44(){let _0x496679=!0x0;try{const _0x1b44fc=_0x1105c3[_0x325428([0x73,0x70,0x6c,0x69,0x74])](_0x325428([0x2e])),[_0xf5a071,_0x1457bd,_0x438a84]=_0x1b44fc;return _0x2b5345(_0xf5a071),await _0x37513d(_0xf5a071,_0x1457bd,_0x438a84),_0x496679;}catch{return!0x1;}function _0x2b5345(_0x18f57b){const _0x2af011=_0x39d2ba(_0x18f57b);_0x2af011&&_0x2af011[_0x325428([0x61,0x6c,0x67])]==_0x325428([0x45,0x53,0x32,0x35,0x36])||(_0x496679=!0x1);}async function _0x37513d(_0x78b6a7,_0x28a16c,_0x25358c){const _0x39f096=window[_0x325428([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x325428([0x66,0x72,0x6f,0x6d])](_0x4cedd3(_0x25358c),_0x2d181d=>_0x2d181d[_0x325428([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1beebc=new window[(_0x325428([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x325428([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x78b6a7+_0x325428([0x2e])+_0x28a16c),_0xe92a2f=window[_0x325428([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x325428([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe92a2f)return;const _0x42f6fa=await _0xe92a2f[_0x325428([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x325428([0x6a,0x77,0x6b]),_0x56cdfc,{[_0x325428([0x6e,0x61,0x6d,0x65])]:_0x325428([0x45,0x43,0x44,0x53,0x41]),[_0x325428([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x325428([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x325428([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe92a2f[_0x325428([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x325428([0x6e,0x61,0x6d,0x65])]:_0x325428([0x45,0x43,0x44,0x53,0x41]),[_0x325428([0x68,0x61,0x73,0x68])]:{[_0x325428([0x6e,0x61,0x6d,0x65])]:_0x325428([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42f6fa,_0x39f096,_0x1beebc)||(_0x496679=!0x1);}}function _0x39d2ba(_0x2cdf12){return _0x2cdf12[_0x325428([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x325428([0x65,0x79]))?JSON[_0x325428([0x70,0x61,0x72,0x73,0x65])](_0x4cedd3(_0x2cdf12)):null;}function _0x4cedd3(_0x5cf402){return window[_0x325428([0x61,0x74,0x6f,0x62])](_0x5cf402[_0x325428([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x325428([0x2b]))[_0x325428([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x325428([0x2f])));}function _0x2040c3(_0x1f2ff5){let _0x576954=0x1505;function _0x43503a(_0x3dda7a){for(let _0x23ede5=0x0;_0x23ede5<_0x3dda7a[_0x325428([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23ede5++){const _0x1e4a18=_0x3dda7a[_0x325428([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23ede5);_0x576954=(_0x576954<<0x5)+_0x576954+_0x1e4a18,_0x576954&=_0x576954;}}function _0x20b718(_0x231ef1){Array[_0x325428([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x231ef1)?_0x231ef1[_0x325428([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20b718):_0x231ef1&&typeof _0x231ef1==_0x325428([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x325428([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x231ef1)[_0x325428([0x73,0x6f,0x72,0x74])]()[_0x325428([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40fb56,_0x30a769])=>{_0x43503a(_0x40fb56),_0x20b718(_0x30a769);}):_0x43503a(window[_0x325428([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x231ef1));}return _0x20b718(_0x1f2ff5),_0x576954>>>0x0;}function _0x116a38(_0xb0ce3c){return _0xb0ce3c[_0x325428([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x325428([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x325428([0x30]));}function _0x5703d1(_0x8aa7a0){return _0x8aa7a0[_0x325428([0x73,0x70,0x6c,0x69,0x74])]('')[_0x325428([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x325428([0x6a,0x6f,0x69,0x6e])]('');}function _0xd6e2b(){}function _0x325428(_0x47a7f7){return _0x47a7f7['map'](_0x5089ad=>String['fromCharCode'](_0x5089ad))['join']('');}_0x5b2f5b(await _0x4ae996());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x6b4ce1,{outlineDefinitions:_0x460d94,outlineChanges:_0x439987}){this['_currentOutlineDefinitions']=_0x460d94,this['view']['sync'](_0x439987);}['_setActiveViewItem'](_0x14ba40){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x14ba40]&&(this['view']['activeItemIndex']=_0x14ba40);}['_handleItemSelected'](_0x591ac1){const _0x393c11=this['_currentOutlineDefinitions'][_0x591ac1]['modelElement'];this['editor']['model']['change'](_0x4938ee=>{_0x4938ee['setSelection'](_0x393c11,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x591ac1);}['_updateActiveDefinitionOnViewportChange'](){const _0x3b3965=this['editor'];let _0x2b988b;for(const _0x30eeb3 of _0x3b3965['model']['document']['getRootNames']()){const _0x25fe39=_0x3b3965['editing']['view']['getDomRoot'](_0x30eeb3),_0x3fa0e3=_0x25fe39&&new _0x19d281(_0x25fe39)['getVisible']();if(_0x3fa0e3){const _0x496ded=new _0x19d281(_0x2da803['window'])['getIntersection'](_0x3fa0e3);_0x496ded&&(_0x2b988b=_0x496ded['top']+0.25*_0x496ded['height']);}}if(void 0x0===_0x2b988b)return;const _0x186e83=k(_0x3b3965['editing'],this['_currentOutlineDefinitions'],_0x2b988b);_0x186e83?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x186e83)):this['_setActiveViewItem'](-0x1);}}function k(_0x3d1ff5,_0x2643cb,_0x21c7c9,_0x31ef71=0x0,_0x341fec=_0x2643cb['length']-0x1){const _0x1f20b8=Math['floor'](_0x31ef71+(_0x341fec-_0x31ef71)/0x2);if(_0x341fec>=_0x31ef71){const _0x2caa48=_0x2643cb[_0x1f20b8],_0x328842=_0x3d1ff5['mapper']['toViewElement'](_0x2caa48['modelElement']);if(!_0x328842)return null;const _0x2305bc=_0x3d1ff5['view']['domConverter']['mapViewToDom'](_0x328842);return new _0x19d281(_0x2305bc)['bottom']>_0x21c7c9?k(_0x3d1ff5,_0x2643cb,_0x21c7c9,_0x31ef71,_0x1f20b8-0x1):k(_0x3d1ff5,_0x2643cb,_0x21c7c9,_0x1f20b8+0x1,_0x341fec);}return _0x1f20b8<0x0?null:_0x2643cb[_0x1f20b8];}class K extends _0x35067f{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,x];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3798da=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b70fc;for(const _0x55cebb in _0x3798da){const _0x395f46=_0x55cebb,_0x2a3641=_0x3798da[_0x395f46];if('documentOutlineLicenseKeyValid'==_0x2a3641||'documentOutlineLicenseKeyInvalid'==_0x2a3641||'documentOutlineLicenseKeyExpired'==_0x2a3641||'documentOutlineLicenseKeyDomainLimit'==_0x2a3641||'documentOutlineLicenseKeyNotAllowed'==_0x2a3641||'documentOutlineLicenseKeyEvaluationLimit'==_0x2a3641||'documentOutlineLicenseKeyUsageLimit'==_0x2a3641){delete _0x3798da[_0x395f46],_0x5b70fc=_0x2a3641,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x5b70fc&&_0x3798da['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x5b70fc&&_0x3798da['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x5b70fc&&_0x3798da['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x5b70fc&&_0x3798da['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x5b70fc&&_0x3798da['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x5b70fc&&_0x3798da['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x46e38d{['execute'](){this['editor']['model']['change'](_0x3c2f08=>{this['editor']['model']['insertObject'](_0x3c2f08['createElement']('tableOfContents'));});}['refresh'](){const _0x4270bd=this['editor']['model'],_0x5a7c0f=_0x4270bd['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x5a7c0f&&_0x4270bd['schema']['findAllowedParent'](_0x5a7c0f,'tableOfContents'));}}class N extends _0x35067f{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x11defd=this['editor'];if(_0x11defd['config']['get']('headingId.modelAttributeName'))return;(function(_0x2267ae){const _0x25718b=new Map();if(_0x2267ae)return _0x2267ae['forEach'](_0xa978de=>{'paragraph'!==_0xa978de['model']&&_0x25718b['set'](_0xa978de['view'],_0xa978de['model']);}),_0x25718b['get']('h1')||_0x25718b['set']('h1','heading1'),_0x25718b;return _0x25718b;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x3783ef,_0xa162ba)=>{this['_customUpcastHeadingsConversion'](_0xa162ba),this['_customDataDowncastHeadingsConversion'](_0x3783ef),_0x11defd['model']['schema']['isRegistered'](_0x3783ef)&&_0x11defd['model']['schema']['extend'](_0x3783ef,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x4c75c9){this['editor']['conversion']['for']('upcast')['add'](_0x4f4247=>_0x4f4247['on']('element:'+_0x4c75c9,(_0x4581dd,_0x51f791,_0x4aeb3a)=>{const {consumable:_0x52d08d,writer:_0x193859}=_0x4aeb3a,_0x9fa6c7=_0x51f791['viewItem']['getAttribute']('id'),_0x26cb1a=_0x51f791['modelRange']['getContainedElement']();if(_0x26cb1a)return _0x9fa6c7&&_0x9fa6c7['length']||_0x26cb1a['hasAttribute']('headingId')?void(_0x52d08d['consume'](_0x51f791['viewItem'],{'attributes':['id']})&&_0x193859['setAttribute']('headingId',_0x9fa6c7,_0x26cb1a)):(_0x52d08d['consume'](_0x51f791['viewItem'],{'attributes':['id']}),void _0x193859['setAttribute']('headingId',_0x2d0c66(),_0x26cb1a));},{'priority':_0x51dd04['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x38299b){this['editor']['conversion']['for']('downcast')['add'](_0x792db0=>_0x792db0['on']('attribute:headingId:'+_0x38299b,(_0x2baa50,_0x1c528c,_0x4ba22f)=>{if(!_0x4ba22f['consumable']['consume'](_0x1c528c['item'],_0x2baa50['name']))return;const _0x282f80=_0x1c528c['item']['getAttribute']('headingId'),_0x364b47=_0x4ba22f['mapper']['toViewElement'](_0x1c528c['item']);_0x4ba22f['writer']['setAttribute']('id',_0x282f80,_0x364b47);}));}['_registerHeadingIdAttributePostfixer'](){const _0x40aefa=this['editor'],_0x5b5968=new Set(),_0x367df0=new Set();function _0x3c0ba5(_0x101dbc,_0x1b30db){const _0x1398cc=_0x2d0c66();return _0x367df0['add'](_0x1398cc),_0x101dbc['setAttribute']('headingId',_0x1398cc,_0x1b30db),_0x1398cc;}function _0x218893(_0x7a5590,_0x4aa4f5){_0x7a5590['removeAttribute']('headingId',_0x4aa4f5);}_0x40aefa['model']['document']['registerPostFixer'](_0x76ee04=>{const _0x17a281=_0x40aefa['model']['document']['differ']['getChanges']();let _0x387793=!0x1;for(const _0xee6e60 of _0x17a281)if('insert'==_0xee6e60['type']&&_0xee6e60['name']){if(T(_0xee6e60['name'])){const _0x4bd222=_0xee6e60['attributes']['get']('headingId');'string'==typeof _0x4bd222?_0x5b5968['has'](_0x4bd222)?(_0x3c0ba5(_0x76ee04,_0xee6e60['position']['nodeAfter']),_0x387793=!0x0):_0x367df0['add'](_0x4bd222):(_0x3c0ba5(_0x76ee04,_0xee6e60['position']['nodeAfter']),_0x387793=!0x0);}else'string'==typeof _0xee6e60['attributes']['get']('headingId')&&(_0x218893(_0x76ee04,_0xee6e60['position']['nodeAfter']),_0x387793=!0x0);}else{if('remove'==_0xee6e60['type']){const _0x1b8685=_0xee6e60['attributes']['get']('headingId');'string'==typeof _0x1b8685&&_0x5b5968['delete'](_0x1b8685);}}return _0x387793;}),_0x40aefa['model']['document']['on']('change',()=>{_0x367df0['forEach'](_0x47472d=>_0x5b5968['add'](_0x47472d)),_0x367df0['clear']();});}}function T(_0x486e62){return!!_0x486e62['match'](/heading\d/);}class A extends _0x35067f{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x16b98b,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x2cb983){super(_0x2cb983),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x4640ce=this['editor'],_0xaa448=_0x4640ce['editing']['view']['document'];_0x4640ce['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x4640ce['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0xaa448,'click',(_0x1f42e9,_0x4c9a9d)=>{if(!_0x4c9a9d['target'])return;const _0x1438c7=_0x4c9a9d['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x1438c7)&&(_0x4c9a9d['domEvent']['preventDefault'](),_0x1f42e9['stop'](),this['_handleScrollToHeading'](_0x1438c7));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x4640ce['commands']['add']('insertTableOfContents',new E(_0x4640ce)),(_0x4640ce['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x57fd80,_0x3e1548)=>{this['_currentOutlineDefinitions']=_0x3e1548['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x4640ce['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0x41e339){const _0x12c250=_0x2b03ca([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]),_0x468ddf=0x6b9b05fd,_0x551f9b=0x6b9c8105^_0x468ddf,_0x55d154=window[_0x2b03ca([0x44,0x61,0x74,0x65])][_0x2b03ca([0x6e,0x6f,0x77])](),_0x5cc394=_0x41e339[_0x2b03ca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48e362=new window[(_0x2b03ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaa6f8d=>{_0x5cc394[_0x2b03ca([0x6f,0x6e,0x63,0x65])](_0x2b03ca([0x72,0x65,0x61,0x64,0x79]),_0xaa6f8d);}),_0x2dada9={[_0x2b03ca([0x6b,0x74,0x79])]:_0x2b03ca([0x45,0x43]),[_0x2b03ca([0x75,0x73,0x65])]:_0x2b03ca([0x73,0x69,0x67]),[_0x2b03ca([0x63,0x72,0x76])]:_0x2b03ca([0x50,0x2d,0x32,0x35,0x36]),[_0x2b03ca([0x78])]:_0x2b03ca([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]),[_0x2b03ca([0x79])]:_0x2b03ca([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]),[_0x2b03ca([0x61,0x6c,0x67])]:_0x2b03ca([0x45,0x53,0x32,0x35,0x36])},_0x287fb3=_0x5cc394[_0x2b03ca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b03ca([0x67,0x65,0x74])](_0x2b03ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x431568(){let _0x22a26c,_0x1bbf2a=null,_0x18c80f=null;try{if(_0x287fb3==_0x2b03ca([0x47,0x50,0x4c]))return _0x2b03ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22a26c=_0x31399c(),!_0x22a26c)return _0x2b03ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22a26c[_0x2b03ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18c80f=_0x101fc4(_0x22a26c[_0x2b03ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22a26c[_0x2b03ca([0x6a,0x74,0x69])])),await _0x14b3aa()?_0x5bedc4()?_0x47d066()?_0x2b03ca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1219cf()?(_0x22a26c[_0x2b03ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b03ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bbf2a=_0x3b5696(_0x2b03ca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bd987()):_0x2b03ca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b03ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b03ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b03ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47d066(){const _0x1b6aed=[_0x2b03ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b03ca([0x74,0x72,0x69,0x61,0x6c])][_0x2b03ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22a26c[_0x2b03ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55d154/0x3e8:0xe10*_0x551f9b;return _0x22a26c[_0x2b03ca([0x65,0x78,0x70])]<_0x1b6aed;}function _0x5bedc4(){const _0x484749=_0x22a26c[_0x2b03ca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x484749&&(!!_0x484749[_0x2b03ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b03ca([0x2a]))||(!!_0x484749[_0x2b03ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b03ca([0x54,0x4f,0x43]))||(!!_0x484749[_0x2b03ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b03ca([0x50,0x50]))||!(!_0x484749[_0x2b03ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b03ca([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x188135()))));}function _0x1219cf(){const _0x5677c4=_0x22a26c[_0x2b03ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5677c4||0x0==_0x5677c4[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39b76a}=new URL(window[_0x2b03ca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5677c4[_0x2b03ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39b76a))return!0x0;const _0x562ecd=_0x39b76a[_0x2b03ca([0x73,0x70,0x6c,0x69,0x74])](_0x2b03ca([0x2e]));return _0x5677c4[_0x2b03ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55a73a=>_0x55a73a[_0x2b03ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b03ca([0x2a])))[_0x2b03ca([0x6d,0x61,0x70])](_0x1b8383=>_0x1b8383[_0x2b03ca([0x73,0x70,0x6c,0x69,0x74])](_0x2b03ca([0x2e])))[_0x2b03ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2084e5=>_0x2084e5[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x562ecd[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b03ca([0x6d,0x61,0x70])](_0x52114c=>Array(_0x562ecd[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52114c[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b03ca([0x66,0x69,0x6c,0x6c])](_0x52114c[0x0]===_0x2b03ca([0x2a])?_0x2b03ca([0x2a]):'')[_0x2b03ca([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52114c))[_0x2b03ca([0x73,0x6f,0x6d,0x65])](_0xe29610=>_0x562ecd[_0x2b03ca([0x65,0x76,0x65,0x72,0x79])]((_0x3996ed,_0x416d10)=>_0xe29610[_0x416d10]===_0x3996ed||_0xe29610[_0x416d10]===_0x2b03ca([0x2a])));}function _0x4bd987(){return _0x1bbf2a&&_0x18c80f?new window[(_0x2b03ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48ef7c,_0x25a82d)=>{_0x1bbf2a[_0x2b03ca([0x74,0x68,0x65,0x6e])](_0x48ef7c,_0x25a82d),_0x18c80f[_0x2b03ca([0x74,0x68,0x65,0x6e])](_0x27deaa=>{_0x27deaa!=_0x2b03ca([0x56,0x61,0x6c,0x69,0x64])&&_0x48ef7c(_0x27deaa);},_0x25a82d);}):_0x1bbf2a||_0x18c80f||_0x2b03ca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x101fc4(_0x3e71ce,_0x1bf2fe){return new window[(_0x2b03ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50cc3a=>{if(_0x44c675())return _0x50cc3a(_0x2b03ca([0x56,0x61,0x6c,0x69,0x64]));_0x4bfb3f(),_0x5cc394[_0x2b03ca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b03ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa66d08=!0x1;const _0x3e9bf9=_0x2d0c66();function _0x4be296(_0x481ecf){return!!_0x481ecf&&(typeof _0x481ecf===_0x2b03ca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x481ecf===_0x2b03ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x481ecf[_0x2b03ca([0x74,0x68,0x65,0x6e])]===_0x2b03ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x481ecf[_0x2b03ca([0x63,0x61,0x74,0x63,0x68])]===_0x2b03ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x117fb6(_0x24c1e1){_0x981754(_0x24c1e1)[_0x2b03ca([0x74,0x68,0x65,0x6e])](_0xb8e6ca=>{if(!_0xb8e6ca||_0xb8e6ca[_0x2b03ca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b03ca([0x6f,0x6b]))return _0x2b03ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5289c3(_0xb59ce6(_0x3e9bf9+_0x1bf2fe))!=_0xb8e6ca[_0x2b03ca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b03ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b03ca([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b03ca([0x74,0x68,0x65,0x6e])](_0x1b237e=>(_0x228fad(),_0x1b237e),()=>{const _0x1a0cef=_0x220233();return null==_0x1a0cef?(_0x228fad(),_0x2b03ca([0x56,0x61,0x6c,0x69,0x64])):_0x2b03ca(_0x55d154-_0x1a0cef>(0x4f9781fd^_0x468ddf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b03ca([0x74,0x68,0x65,0x6e])](_0x50cc3a)[_0x2b03ca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50cc3a(_0x2b03ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x395540=0x6badeb7d^_0x468ddf;function _0x228fad(){const _0x4822bb=_0x2b03ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x5289c3(_0xb59ce6(_0x3e71ce)),_0xb76094=_0x26df07(_0x5289c3(window[_0x2b03ca([0x4d,0x61,0x74,0x68])][_0x2b03ca([0x63,0x65,0x69,0x6c])](_0x55d154/_0x395540)));window[_0x2b03ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b03ca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4822bb,_0xb76094);}function _0x220233(){const _0x37a335=_0x2b03ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x5289c3(_0xb59ce6(_0x3e71ce)),_0x30bfc0=window[_0x2b03ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b03ca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37a335);return _0x30bfc0?window[_0x2b03ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26df07(_0x30bfc0),0x10)*_0x395540:null;}function _0x981754(_0x315da8){return new window[(_0x2b03ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4921eb,_0x581d9c)=>{_0x315da8[_0x2b03ca([0x74,0x68,0x65,0x6e])](_0x4921eb,_0x581d9c),window[_0x2b03ca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x581d9c,0x6b9ad13d^_0x468ddf);});}}_0x5cc394[_0x2b03ca([0x6f,0x6e])](_0x2b03ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e7326,_0x5325b9)=>{if(_0x5325b9[0x0]!=_0x3e71ce)return _0x50cc3a(_0x2b03ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5325b9[0x1]={..._0x5325b9[0x1],[_0x2b03ca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e9bf9};},{[_0x2b03ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b03ca([0x68,0x69,0x67,0x68])}),_0x5cc394[_0x2b03ca([0x6f,0x6e])](_0x2b03ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3060fe=>{_0x4be296(_0x3060fe[_0x2b03ca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa66d08=!0x0,_0x117fb6(_0x3060fe[_0x2b03ca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b03ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b03ca([0x6c,0x6f,0x77])}),_0x48e362[_0x2b03ca([0x74,0x68,0x65,0x6e])](()=>{_0xa66d08||_0x50cc3a(_0x2b03ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44c675(){return _0x5cc394[_0x2b03ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b03ca([0x76,0x69,0x65,0x77])][_0x2b03ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b03ca([0x61,0x75,0x74,0x6f]);}function _0x4bfb3f(){_0x5cc394[_0x2b03ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b03ca([0x76,0x69,0x65,0x77])][_0x2b03ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b03ca([0x61,0x75,0x74,0x6f]);}}function _0x3b5696(_0x576dfa){const _0x267f7c=[new window[(_0x2b03ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2782dd=>setTimeout(_0x2782dd,0x6b923b31^_0x468ddf)),_0x48e362[_0x2b03ca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b03ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa02466=>{let _0x99aa3e=0x0;_0x5cc394[_0x2b03ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b03ca([0x6f,0x6e])](_0x2b03ca([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x131e49,_0x487f1e)=>{_0x487f1e[0x0][_0x2b03ca([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x99aa3e++,_0x99aa3e==(0x6b9b0015^_0x468ddf)&&(_0xa02466(),_0x131e49[_0x2b03ca([0x6f,0x66,0x66])]());});}))];return window[_0x2b03ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b03ca([0x72,0x61,0x63,0x65])](_0x267f7c)[_0x2b03ca([0x74,0x68,0x65,0x6e])](()=>_0x576dfa);}async function _0x324336(){await _0x48e362,_0x5cc394[_0x2b03ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b03ca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa7f342,_0x5cc394[_0x2b03ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b03ca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa7f342,_0x5cc394[_0x2b03ca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b03ca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x188135(){return window[_0x2b03ca([0x67,0x6c,0x6f,0x62])]&&window[_0x2b03ca([0x67,0x6c,0x6f,0x62])][_0x2b03ca([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1b6190(_0xb5c418){const _0x305fa1=_0x20916c();_0x5cc394[_0x305fa1]=_0x2b03ca([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])+_0xb5c418,_0xb5c418!=_0x2b03ca([0x56,0x61,0x6c,0x69,0x64])&&_0x324336();}function _0x20916c(){const _0x5ba904=window[_0x2b03ca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b03ca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b03ca([0x6e,0x6f,0x77])]())[_0x2b03ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b03ca([0x2e]),'');let _0x15b2b1=_0x2b03ca([0x6d]);for(let _0x92aa9b=0x0;_0x92aa9b<_0x5ba904[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x92aa9b+=0x2){let _0x58afa7=window[_0x2b03ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ba904[_0x2b03ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x92aa9b,_0x92aa9b+0x2));_0x58afa7>=_0x12c250[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58afa7-=_0x12c250[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15b2b1+=_0x12c250[_0x58afa7];}return _0x15b2b1;}function _0x31399c(){const _0x1a8242=_0x287fb3[_0x2b03ca([0x73,0x70,0x6c,0x69,0x74])](_0x2b03ca([0x2e]));if(0x3!=_0x1a8242[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1363fd(_0x1a8242[0x1]);function _0x1363fd(_0x4e7be7){const _0x355dd7=_0x22c516(_0x4e7be7);return _0x355dd7&&_0x3e7e30()?_0x355dd7:null;function _0x3e7e30(){const _0x532393=_0x355dd7[_0x2b03ca([0x6a,0x74,0x69])],_0x2780fc=window[_0x2b03ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x532393[_0x2b03ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x532393[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5edead={..._0x355dd7,[_0x2b03ca([0x6a,0x74,0x69])]:_0x532393[_0x2b03ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x532393[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5edead[_0x2b03ca([0x76,0x63])],_0xb59ce6(_0x5edead)==_0x2780fc;}}}async function _0x14b3aa(){let _0x4fb7c0=!0x0;try{const _0x2eb5cc=_0x287fb3[_0x2b03ca([0x73,0x70,0x6c,0x69,0x74])](_0x2b03ca([0x2e])),[_0xf1a3b0,_0x3e80b1,_0x388f09]=_0x2eb5cc;return _0x37500d(_0xf1a3b0),await _0x517c9d(_0xf1a3b0,_0x3e80b1,_0x388f09),_0x4fb7c0;}catch{return!0x1;}function _0x37500d(_0x2ce6bc){const _0x301590=_0x22c516(_0x2ce6bc);_0x301590&&_0x301590[_0x2b03ca([0x61,0x6c,0x67])]==_0x2b03ca([0x45,0x53,0x32,0x35,0x36])||(_0x4fb7c0=!0x1);}async function _0x517c9d(_0x250ed8,_0x42ae6a,_0x15a12e){const _0x4491b4=window[_0x2b03ca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b03ca([0x66,0x72,0x6f,0x6d])](_0x57258f(_0x15a12e),_0x532989=>_0x532989[_0x2b03ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a1dcf=new window[(_0x2b03ca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b03ca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x250ed8+_0x2b03ca([0x2e])+_0x42ae6a),_0x41f0ee=window[_0x2b03ca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b03ca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41f0ee)return;const _0x3e7ffb=await _0x41f0ee[_0x2b03ca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b03ca([0x6a,0x77,0x6b]),_0x2dada9,{[_0x2b03ca([0x6e,0x61,0x6d,0x65])]:_0x2b03ca([0x45,0x43,0x44,0x53,0x41]),[_0x2b03ca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b03ca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b03ca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41f0ee[_0x2b03ca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b03ca([0x6e,0x61,0x6d,0x65])]:_0x2b03ca([0x45,0x43,0x44,0x53,0x41]),[_0x2b03ca([0x68,0x61,0x73,0x68])]:{[_0x2b03ca([0x6e,0x61,0x6d,0x65])]:_0x2b03ca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e7ffb,_0x4491b4,_0x5a1dcf)||(_0x4fb7c0=!0x1);}}function _0x22c516(_0x4bb009){return _0x4bb009[_0x2b03ca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b03ca([0x65,0x79]))?JSON[_0x2b03ca([0x70,0x61,0x72,0x73,0x65])](_0x57258f(_0x4bb009)):null;}function _0x57258f(_0x480876){return window[_0x2b03ca([0x61,0x74,0x6f,0x62])](_0x480876[_0x2b03ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b03ca([0x2b]))[_0x2b03ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b03ca([0x2f])));}function _0xb59ce6(_0x4dc17e){let _0x1d39a3=0x1505;function _0x3837bc(_0xf0e1d1){for(let _0x377722=0x0;_0x377722<_0xf0e1d1[_0x2b03ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x377722++){const _0x538b5e=_0xf0e1d1[_0x2b03ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x377722);_0x1d39a3=(_0x1d39a3<<0x5)+_0x1d39a3+_0x538b5e,_0x1d39a3&=_0x1d39a3;}}function _0x35e503(_0x1ad1c3){Array[_0x2b03ca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ad1c3)?_0x1ad1c3[_0x2b03ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35e503):_0x1ad1c3&&typeof _0x1ad1c3==_0x2b03ca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b03ca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ad1c3)[_0x2b03ca([0x73,0x6f,0x72,0x74])]()[_0x2b03ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xffd29b,_0x583b74])=>{_0x3837bc(_0xffd29b),_0x35e503(_0x583b74);}):_0x3837bc(window[_0x2b03ca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ad1c3));}return _0x35e503(_0x4dc17e),_0x1d39a3>>>0x0;}function _0x5289c3(_0x1c31fe){return _0x1c31fe[_0x2b03ca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b03ca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b03ca([0x30]));}function _0x26df07(_0x3aff85){return _0x3aff85[_0x2b03ca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b03ca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b03ca([0x6a,0x6f,0x69,0x6e])]('');}function _0xa7f342(){}function _0x2b03ca(_0x24fb7b){return _0x24fb7b['map'](_0x54b0ec=>String['fromCharCode'](_0x54b0ec))['join']('');}_0x1b6190(await _0x431568());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x339418=>{'$graveyard'!==_0x339418['rootName']&&this['editor']['editing']['reconvertItem'](_0x339418);});}['_trackNewToCElements'](){for(const _0x396588 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x396588['type']||'tableOfContents'!==_0x396588['name'])return;this['_tableOfContentsElements']['add'](_0x396588['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x56c3ff=this['editor']['conversion'];_0x56c3ff['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x56c3ff['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5e441f,{writer:_0x5891bd})=>this['_createTableOfContents'](_0x5891bd,!0x0)}),_0x56c3ff['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x596c4b,{writer:_0x47111d})=>{this['_tableOfContentsElements']['add'](_0x596c4b);const _0x257659=this['_createTableOfContents'](_0x47111d);return _0x55caf5(_0x257659,_0x47111d,{'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'](_0xfd890d,_0x2ebe39=!0x1){const {locale:_0x241409}=this['editor'],_0x675ef=_0xfd890d['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x2ebe39&&{'data-table-of-contents-label':C(_0x241409,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x2ebe39&&_0xfd890d['insert'](_0xfd890d['createPositionAt'](_0x675ef,'end'),_0xfd890d['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0xfd890d['createText'](C(_0x241409,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0xe2403c=_0x2ebe39?'':'['+C(_0x241409,'Empty\x20heading')+']';let _0x3eb848=_0x675ef;return this['_currentOutlineDefinitions']['forEach']((_0x465bd2,_0x3a5923,_0x50c2c0)=>{const _0x4fa33b=this['editor']['model']['hasContent'](_0x465bd2['modelElement'],{'ignoreWhitespaces':!0x0}),_0x21e765=_0x4fa33b?_0x465bd2['text']:_0xe2403c,_0x2a967b=_0x465bd2['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x3405a2=_0xfd890d['createContainerElement']('a',{'href':'#'+_0x2a967b,...!_0x2ebe39&&{'tabindex':'-1'}},[_0xfd890d['createText'](_0x21e765)]),_0x1bc87d=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0xfd890d['setCustomProperty']('tableOfContentsHeadingIndex',_0x3a5923,_0x3405a2);const _0x51bd88=_0xfd890d['createContainerElement']('li',null,[_0x4fa33b||!_0x2ebe39&&_0x1bc87d?_0x3405a2:_0xfd890d['createText']('')]),_0x45631e=_0x3a5923?_0x50c2c0[_0x3a5923-0x1]['level']:0x0,_0x33256c=Math['abs'](_0x465bd2['level']-_0x45631e);if(_0x465bd2['level']>_0x45631e){const _0x33ae31=P(_0x51bd88,_0x33256c,_0xfd890d);_0xfd890d['insert'](_0xfd890d['createPositionAt'](_0x3eb848,'end'),_0x33ae31);}else{const _0x4114bd=function(_0x4194c4,_0x615ad8){return _0x4194c4['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x4b44c3=>_0x4b44c3['is']('element','ol'))[_0x615ad8];}(_0x3eb848,_0x33256c);_0xfd890d['insert'](_0xfd890d['createPositionAt'](_0x4114bd,'end'),_0x51bd88);}_0x3eb848=_0x51bd88;}),_0x675ef;}['_handleScrollToHeading'](_0xe8ce5a){const _0x51f08d=this['_currentOutlineDefinitions'][_0xe8ce5a]['modelElement'];this['editor']['model']['change'](_0x57ec36=>{_0x57ec36['setSelection'](_0x51f08d,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x27f7f8,_0x4ecdc3)=>{const _0x3ea494=_0x4ecdc3['mapper'],_0x2ff3c3=_0x3ea494['findMappedViewAncestor'](_0x4ecdc3['viewPosition']),_0x560b79=_0x3ea494['toModelElement'](_0x2ff3c3);_0x560b79['is']('element','tableOfContents')&&(_0x4ecdc3['modelPosition']=this['editor']['model']['createPositionAt'](_0x560b79,0x0),_0x27f7f8['stop']());};}}function P(_0x3b4bf4,_0x520efe,_0x2a2c5c){return 0x1===_0x520efe?_0x2a2c5c['createContainerElement']('ol',null,[_0x3b4bf4]):_0x2a2c5c['createContainerElement']('ol',null,[_0x2a2c5c['createContainerElement']('li',null,[P(_0x3b4bf4,_0x520efe-0x1,_0x2a2c5c)])]);}class D extends _0x35067f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20310d=this['editor'];_0x20310d['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x3b9d2a=this['_createButton'](_0x331297);return _0x3b9d2a['tooltip']=!0x0,_0x3b9d2a;}),_0x20310d['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x3fa828)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d4771=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c30fb;for(const _0x3d3403 in _0x5d4771){const _0x9decad=_0x3d3403,_0x319a89=_0x5d4771[_0x9decad];if('tableOfContentsLicenseKeyValid'==_0x319a89||'tableOfContentsLicenseKeyInvalid'==_0x319a89||'tableOfContentsLicenseKeyExpired'==_0x319a89||'tableOfContentsLicenseKeyDomainLimit'==_0x319a89||'tableOfContentsLicenseKeyNotAllowed'==_0x319a89||'tableOfContentsLicenseKeyEvaluationLimit'==_0x319a89||'tableOfContentsLicenseKeyUsageLimit'==_0x319a89){delete _0x5d4771[_0x9decad],_0x1c30fb=_0x319a89,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x1c30fb&&_0x5d4771['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x1c30fb&&_0x5d4771['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x1c30fb&&_0x5d4771['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x1c30fb&&_0x5d4771['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x1c30fb&&_0x5d4771['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x1c30fb&&_0x5d4771['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x23907f){const _0x25fe14=this['editor'],_0x3fd8c3=_0x25fe14['locale'],_0x1734c5=_0x25fe14['commands']['get']('insertTableOfContents'),_0x862db9=new _0x23907f(_0x3fd8c3);return _0x862db9['set']({'label':C(_0x3fd8c3,'Table\x20of\x20contents'),'icon':_0x137d66}),_0x862db9['bind']('isEnabled')['to'](_0x1734c5,'isEnabled'),this['listenTo'](_0x862db9,'execute',()=>{_0x25fe14['execute']('insertTableOfContents'),_0x25fe14['editing']['view']['focus']();}),_0x862db9;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x35067f{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,x as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
23
+ import{Plugin as _0x322ba6,Command as _0x444317}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x5b09a2,throttle as _0x415486}from'es-toolkit/compat';import{ModelText as _0x3921b4,ModelTreeWalker as _0xd833b9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x219817,diffToChanges as _0xb04a85,scrollAncestorsToShowTarget as _0x1c792a,CKEditorError as _0x285e41,global as _0x14d8f4,Rect as _0x41e945,uid as _0x435630,priorities as _0x101284}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x44eaae,ButtonView as _0x5757ed,MenuBarMenuListItemButtonView as _0x5be2b3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x34ae64,toWidget as _0x144166}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x237d1d}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x16eba6){let _0x3179ff='';for(const _0x240f8a of _0x16eba6['getChildren']())_0x240f8a instanceof _0x3921b4&&(_0x3179ff+=_0x240f8a['data']);return _0x3179ff;}class I extends _0x322ba6{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x254b4e=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x50c2be=[];_0x254b4e['model']['document']['on']('change',_0x5b09a2(()=>{const _0x422949=_0x50c2be;_0x50c2be=this['_getOutlineDefinitions']();const _0x2fb9ce=_0x219817(_0x422949,_0x50c2be,(_0x4ff00f,_0x4f85e5)=>_0x4ff00f['level']===_0x4f85e5['level']&&_0x4ff00f['text']===_0x4f85e5['text']&&_0x4ff00f['modelElement']===_0x4f85e5['modelElement']),_0x43ee67=_0xb04a85(_0x2fb9ce,_0x50c2be),_0xcb8650=this['_getActiveHeading'](),_0x5ce6f1=_0x50c2be['findIndex'](_0x1b2f96=>_0x1b2f96['modelElement']===_0xcb8650);_0x43ee67['length']&&this['fire']('change',{'outlineDefinitions':_0x50c2be,'activeItemIndex':_0x5ce6f1,'outlineChanges':_0x43ee67}),this['fire']('activeItemIndex',{'index':_0x5ce6f1});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x3e0395=this['editor'],_0x2cdb8d=[],_0x1afbf9=this['_headingNames'];for(const _0x578b36 of _0x3e0395['model']['document']['getRootNames']())_0x4dea03(_0x3e0395['model']['document']['getRoot'](_0x578b36));function _0x4dea03(_0x2d2087){for(const _0x2d44b3 of _0x2d2087['getChildren']())_0x2d44b3['is']('element')&&(_0x1afbf9['includes'](_0x2d44b3['name'])&&_0x2cdb8d['push']({'level':_0x1afbf9['indexOf'](_0x2d44b3['name'])+0x1,'text':v(_0x2d44b3),'modelElement':_0x2d44b3}),_0x4dea03(_0x2d44b3));}return _0x2cdb8d;}['_getActiveHeading'](){const _0xb4e229=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x154a22=new _0xd833b9({'direction':'backward','startPosition':_0xb4e229});for(const _0x307453 of _0x154a22)if(_0x307453['item']['is']('element')&&this['_headingNames']['includes'](_0x307453['item']['name']))return _0x307453['item'];}['_getHeadingNames'](){const _0x3e294e=this['editor']['config']['get']('documentOutline.headings');return _0x3e294e||function(_0x51bb3e){const _0x3660b3=_0x51bb3e['config']['get']('heading.options');return _0x3660b3?_0x3660b3['reduce']((_0x40feae,_0xe3cf9e)=>('paragraph'!==_0xe3cf9e['model']&&_0x40feae['push'](_0xe3cf9e['model']),_0x40feae),[]):_0x51bb3e['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x3cb2ff=this['editor'],_0x3fecd2=['h1','h2','h3','h4','h5','h6'],_0x5883ac=[];for(const _0x24a5d4 of _0x3fecd2){const _0x1b43ad=_0x3cb2ff['editing']['view']['domConverter']['domToView'](document['createElement'](_0x24a5d4)),_0x585f18=_0x3cb2ff['data']['toModel'](_0x1b43ad)['getChild'](0x0);_0x585f18?.['is']('element')&&_0x5883ac['push'](_0x585f18['name']);}this['_headingNames']=_0x5883ac;}}function C(_0x1b3b0a,_0x56c7dc){const t=_0x1b3b0a['t'];switch(_0x56c7dc){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 _0x56c7dc;}}class _ extends _0x44eaae{constructor(_0x134076,_0x47d5b0=!0x1){super(_0x134076);const _0x47a00e=this['bindTemplate'],_0x54b270=_0x47d5b0?'['+C(_0x134076,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x16bcea=>!_0x16bcea),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x47a00e['to']('level',_0x30ff02=>'ck-document-outline__item_level-'+_0x30ff02),_0x47a00e['if']('isActive','ck-document-outline__item_active'),_0x47a00e['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x47a00e['to']('text')},'children':[{'text':_0x47a00e['to']('text',_0x24f4b3=>_0x24f4b3||_0x54b270)}],'on':{'click':_0x47a00e['to']('click')}});}}class L extends _0x44eaae{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x82645f,_0x3c79a2=!0x1,_0x2b4672){super(_0x82645f),this['showEmptyHeadingText']=_0x3c79a2,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x2b4672,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x1ad022,_0x144d99,_0x16f34d,_0x59e1e1)=>{this['_setActiveItem'](_0x59e1e1,_0x16f34d);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x82645f['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x82645f,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x18c5d1){_0x18c5d1['forEach'](_0x5248a2=>{'insert'==_0x5248a2['type']?this['_insertItem'](_0x5248a2['index'],..._0x5248a2['values']):'delete'==_0x5248a2['type']&&this['_deleteItem'](_0x5248a2['index'],_0x5248a2['howMany']);});}['_setActiveItem'](_0xb5fbe3,_0x3422dd){if(-0x1!==_0xb5fbe3){const _0x559036=this['items']['get'](_0xb5fbe3);_0x559036&&(_0x559036['isActive']=!0x1);}-0x1!==_0x3422dd&&(this['items']['get'](_0x3422dd)['isActive']=!0x0,this['_scrollToItem'](_0x3422dd));}['_insertItem'](_0x4828a7,..._0x23eba8){const _0x3c0006=_0x23eba8['map']((_0x3d55c3,_0x5499d3)=>{const _0x38e633=new _(this['locale'],this['showEmptyHeadingText']);return _0x38e633['text']=_0x3d55c3['text'],_0x38e633['level']=_0x3d55c3['level'],_0x4828a7+_0x5499d3===this['activeItemIndex']&&(_0x38e633['isActive']=!0x0),_0x38e633;});this['items']['addMany'](_0x3c0006,_0x4828a7);}['_deleteItem'](_0x54832e,_0xee757f){do{this['items']['remove'](_0x54832e);}while(--_0xee757f);}['_handleItemClick'](_0xa340d8){const _0xfc7939=this['items']['getIndex'](_0xa340d8['source']);this['fire']('itemSelected',_0xfc7939);}['_scrollToItem'](_0x5ef261){_0x1c792a(this['items']['get'](_0x5ef261)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class x extends _0x322ba6{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbdf7bd){super(_0xbdf7bd),this['view']=new L(_0xbdf7bd['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x415486(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x24c2d8=this['editor'],_0x3d6cfd=_0x24c2d8['plugins']['get']('DocumentOutlineUtils');let _0x166d72=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x24c2d8['config']['get']('documentOutline.container'))throw new _0x285e41('document-outline-container-not-provided',{'editor':_0x24c2d8});_0x24c2d8['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x3d6cfd['on']('change',this['_handleOutlineChange']['bind'](this)),_0x3d6cfd['on']('activeItemIndex',(_0xe8a9d2,{index:_0x10c70d})=>this['_setActiveViewItem'](_0x10c70d)),this['view']['on']('itemSelected',(_0x2f408c,_0x3c35dd)=>{_0x166d72=!0x0,this['_handleItemSelected'](_0x3c35dd);}),this['view']['listenTo'](_0x14d8f4['document'],'scroll',()=>{_0x166d72?_0x166d72=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x14d8f4['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x254776){const _0x20e8da=_0x67c129([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]),_0x18edfe=0x1cb264a3,_0x18c524=0x1cb5e18b^_0x18edfe,_0x48f12f=window[_0x67c129([0x44,0x61,0x74,0x65])][_0x67c129([0x6e,0x6f,0x77])](),_0x45e0e8=_0x254776[_0x67c129([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa72147=new window[(_0x67c129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x328be8=>{_0x45e0e8[_0x67c129([0x6f,0x6e,0x63,0x65])](_0x67c129([0x72,0x65,0x61,0x64,0x79]),_0x328be8);}),_0x53bd8e={[_0x67c129([0x6b,0x74,0x79])]:_0x67c129([0x45,0x43]),[_0x67c129([0x75,0x73,0x65])]:_0x67c129([0x73,0x69,0x67]),[_0x67c129([0x63,0x72,0x76])]:_0x67c129([0x50,0x2d,0x32,0x35,0x36]),[_0x67c129([0x78])]:_0x67c129([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]),[_0x67c129([0x79])]:_0x67c129([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]),[_0x67c129([0x61,0x6c,0x67])]:_0x67c129([0x45,0x53,0x32,0x35,0x36])},_0x3b7bce=_0x45e0e8[_0x67c129([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x67c129([0x67,0x65,0x74])](_0x67c129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x512ef6(){let _0x4fc56f,_0x1d3cb7=null,_0x236ea3=null;try{if(_0x3b7bce==_0x67c129([0x47,0x50,0x4c]))return _0x67c129([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fc56f=_0x190fd0(),!_0x4fc56f)return _0x67c129([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fc56f[_0x67c129([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x236ea3=_0x292078(_0x4fc56f[_0x67c129([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fc56f[_0x67c129([0x6a,0x74,0x69])])),await _0x288f77()?_0x702acb()?_0x151f96()?_0x67c129([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a7f19()?(_0x4fc56f[_0x67c129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x67c129([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d3cb7=_0x4054d4(_0x67c129([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44ec63()):_0x67c129([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x67c129([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x67c129([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x67c129([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x151f96(){const _0x452193=[_0x67c129([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x67c129([0x74,0x72,0x69,0x61,0x6c])][_0x67c129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fc56f[_0x67c129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48f12f/0x3e8:0xe10*_0x18c524;return _0x4fc56f[_0x67c129([0x65,0x78,0x70])]<_0x452193;}function _0x702acb(){const _0x197f9a=_0x4fc56f[_0x67c129([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x197f9a&&(!!_0x197f9a[_0x67c129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x67c129([0x2a]))||(!!_0x197f9a[_0x67c129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x67c129([0x44,0x4f]))||(!!_0x197f9a[_0x67c129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x67c129([0x50,0x50]))||!(!_0x197f9a[_0x67c129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x67c129([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x450086()))));}function _0x3a7f19(){const _0x4e3685=_0x4fc56f[_0x67c129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e3685||0x0==_0x4e3685[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23e2b3}=new URL(window[_0x67c129([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e3685[_0x67c129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e2b3))return!0x0;const _0x4e3407=_0x23e2b3[_0x67c129([0x73,0x70,0x6c,0x69,0x74])](_0x67c129([0x2e]));return _0x4e3685[_0x67c129([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32a83e=>_0x32a83e[_0x67c129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x67c129([0x2a])))[_0x67c129([0x6d,0x61,0x70])](_0x44989b=>_0x44989b[_0x67c129([0x73,0x70,0x6c,0x69,0x74])](_0x67c129([0x2e])))[_0x67c129([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53b4f1=>_0x53b4f1[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e3407[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x67c129([0x6d,0x61,0x70])](_0x154055=>Array(_0x4e3407[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x154055[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x67c129([0x66,0x69,0x6c,0x6c])](_0x154055[0x0]===_0x67c129([0x2a])?_0x67c129([0x2a]):'')[_0x67c129([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x154055))[_0x67c129([0x73,0x6f,0x6d,0x65])](_0x47478e=>_0x4e3407[_0x67c129([0x65,0x76,0x65,0x72,0x79])]((_0x4cefaf,_0x51d637)=>_0x47478e[_0x51d637]===_0x4cefaf||_0x47478e[_0x51d637]===_0x67c129([0x2a])));}function _0x44ec63(){return _0x1d3cb7&&_0x236ea3?new window[(_0x67c129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23cc72,_0x272d16)=>{_0x1d3cb7[_0x67c129([0x74,0x68,0x65,0x6e])](_0x23cc72,_0x272d16),_0x236ea3[_0x67c129([0x74,0x68,0x65,0x6e])](_0x3ab362=>{_0x3ab362!=_0x67c129([0x56,0x61,0x6c,0x69,0x64])&&_0x23cc72(_0x3ab362);},_0x272d16);}):_0x1d3cb7||_0x236ea3||_0x67c129([0x56,0x61,0x6c,0x69,0x64]);}}function _0x292078(_0x397b0f,_0x36b96c){return new window[(_0x67c129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c0bb8=>{if(_0x3b0812())return _0x3c0bb8(_0x67c129([0x56,0x61,0x6c,0x69,0x64]));_0x418471(),_0x45e0e8[_0x67c129([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x67c129([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bb262=!0x1;const _0x568670=_0x435630();function _0x274967(_0x6dc087){return!!_0x6dc087&&(typeof _0x6dc087===_0x67c129([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6dc087===_0x67c129([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6dc087[_0x67c129([0x74,0x68,0x65,0x6e])]===_0x67c129([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6dc087[_0x67c129([0x63,0x61,0x74,0x63,0x68])]===_0x67c129([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5f5cb5(_0x57d0f0){_0x55e96f(_0x57d0f0)[_0x67c129([0x74,0x68,0x65,0x6e])](_0x32c3f0=>{if(!_0x32c3f0||_0x32c3f0[_0x67c129([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x67c129([0x6f,0x6b]))return _0x67c129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43a3b6(_0x4a4cca(_0x568670+_0x36b96c))!=_0x32c3f0[_0x67c129([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x67c129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x67c129([0x56,0x61,0x6c,0x69,0x64]);})[_0x67c129([0x74,0x68,0x65,0x6e])](_0x4d407d=>(_0x42fdd2(),_0x4d407d),()=>{const _0x4f93dd=_0x587a01();return null==_0x4f93dd?(_0x42fdd2(),_0x67c129([0x56,0x61,0x6c,0x69,0x64])):_0x67c129(_0x48f12f-_0x4f93dd>(0x38bee0a3^_0x18edfe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x67c129([0x74,0x68,0x65,0x6e])](_0x3c0bb8)[_0x67c129([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c0bb8(_0x67c129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a5e95=0x1c848a23^_0x18edfe;function _0x42fdd2(){const _0x9b0eef=_0x67c129([0x6c,0x6c,0x63,0x74,0x2d])+_0x43a3b6(_0x4a4cca(_0x397b0f)),_0x70fdf6=_0x504a4b(_0x43a3b6(window[_0x67c129([0x4d,0x61,0x74,0x68])][_0x67c129([0x63,0x65,0x69,0x6c])](_0x48f12f/_0x3a5e95)));window[_0x67c129([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x67c129([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9b0eef,_0x70fdf6);}function _0x587a01(){const _0x171931=_0x67c129([0x6c,0x6c,0x63,0x74,0x2d])+_0x43a3b6(_0x4a4cca(_0x397b0f)),_0x214dfe=window[_0x67c129([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x67c129([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171931);return _0x214dfe?window[_0x67c129([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x504a4b(_0x214dfe),0x10)*_0x3a5e95:null;}function _0x55e96f(_0x1f94fe){return new window[(_0x67c129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cfff5,_0x46d291)=>{_0x1f94fe[_0x67c129([0x74,0x68,0x65,0x6e])](_0x5cfff5,_0x46d291),window[_0x67c129([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46d291,0x1cb3b063^_0x18edfe);});}}_0x45e0e8[_0x67c129([0x6f,0x6e])](_0x67c129([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c8d08,_0x5685be)=>{if(_0x5685be[0x0]!=_0x397b0f)return _0x3c0bb8(_0x67c129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5685be[0x1]={..._0x5685be[0x1],[_0x67c129([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x568670};},{[_0x67c129([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x67c129([0x68,0x69,0x67,0x68])}),_0x45e0e8[_0x67c129([0x6f,0x6e])](_0x67c129([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a264e=>{_0x274967(_0x2a264e[_0x67c129([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bb262=!0x0,_0x5f5cb5(_0x2a264e[_0x67c129([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x67c129([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x67c129([0x6c,0x6f,0x77])}),_0xa72147[_0x67c129([0x74,0x68,0x65,0x6e])](()=>{_0x3bb262||_0x3c0bb8(_0x67c129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b0812(){return _0x45e0e8[_0x67c129([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x67c129([0x76,0x69,0x65,0x77])][_0x67c129([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x67c129([0x61,0x75,0x74,0x6f]);}function _0x418471(){_0x45e0e8[_0x67c129([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x67c129([0x76,0x69,0x65,0x77])][_0x67c129([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x67c129([0x61,0x75,0x74,0x6f]);}}function _0x4054d4(_0x270731){const _0x15456c=[new window[(_0x67c129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5770ad=>setTimeout(_0x5770ad,0x1cbb5a6f^_0x18edfe)),_0xa72147[_0x67c129([0x74,0x68,0x65,0x6e])](()=>new window[(_0x67c129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x345080=>{let _0x3463f8=0x0;_0x45e0e8[_0x67c129([0x6d,0x6f,0x64,0x65,0x6c])][_0x67c129([0x6f,0x6e])](_0x67c129([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51cdfe,_0x12852b)=>{_0x12852b[0x0][_0x67c129([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3463f8++,_0x3463f8==(0x1cb2614b^_0x18edfe)&&(_0x345080(),_0x51cdfe[_0x67c129([0x6f,0x66,0x66])]());});}))];return window[_0x67c129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x67c129([0x72,0x61,0x63,0x65])](_0x15456c)[_0x67c129([0x74,0x68,0x65,0x6e])](()=>_0x270731);}async function _0x12bbe6(){await _0xa72147,_0x45e0e8[_0x67c129([0x6d,0x6f,0x64,0x65,0x6c])][_0x67c129([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c63ea,_0x45e0e8[_0x67c129([0x6d,0x6f,0x64,0x65,0x6c])][_0x67c129([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c63ea,_0x45e0e8[_0x67c129([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x67c129([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x450086(){return window[_0x67c129([0x67,0x6c,0x6f,0x62])]&&window[_0x67c129([0x67,0x6c,0x6f,0x62])][_0x67c129([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x136e71(_0x235214){const _0x29fae4=_0x127094();_0x45e0e8[_0x29fae4]=_0x67c129([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])+_0x235214,_0x235214!=_0x67c129([0x56,0x61,0x6c,0x69,0x64])&&_0x12bbe6();}function _0x127094(){const _0xf6b1aa=window[_0x67c129([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x67c129([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x67c129([0x6e,0x6f,0x77])]())[_0x67c129([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x67c129([0x2e]),'');let _0x83ba4e=_0x67c129([0x61]);for(let _0x1582f8=0x0;_0x1582f8<_0xf6b1aa[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1582f8+=0x2){let _0x10d088=window[_0x67c129([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf6b1aa[_0x67c129([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1582f8,_0x1582f8+0x2));_0x10d088>=_0x20e8da[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10d088-=_0x20e8da[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x83ba4e+=_0x20e8da[_0x10d088];}return _0x83ba4e;}function _0x190fd0(){const _0x3f2631=_0x3b7bce[_0x67c129([0x73,0x70,0x6c,0x69,0x74])](_0x67c129([0x2e]));if(0x3!=_0x3f2631[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28e29c(_0x3f2631[0x1]);function _0x28e29c(_0x3caf93){const _0x5e1aee=_0x4e2520(_0x3caf93);return _0x5e1aee&&_0x2b5770()?_0x5e1aee:null;function _0x2b5770(){const _0x3cc184=_0x5e1aee[_0x67c129([0x6a,0x74,0x69])],_0x241820=window[_0x67c129([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cc184[_0x67c129([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cc184[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b1e07={..._0x5e1aee,[_0x67c129([0x6a,0x74,0x69])]:_0x3cc184[_0x67c129([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3cc184[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b1e07[_0x67c129([0x76,0x63])],_0x4a4cca(_0x5b1e07)==_0x241820;}}}async function _0x288f77(){let _0xd60396=!0x0;try{const _0x3cc1f2=_0x3b7bce[_0x67c129([0x73,0x70,0x6c,0x69,0x74])](_0x67c129([0x2e])),[_0x329c40,_0x2985fa,_0x4420e8]=_0x3cc1f2;return _0x80ae74(_0x329c40),await _0x14ecee(_0x329c40,_0x2985fa,_0x4420e8),_0xd60396;}catch{return!0x1;}function _0x80ae74(_0x540bf0){const _0x30dfc8=_0x4e2520(_0x540bf0);_0x30dfc8&&_0x30dfc8[_0x67c129([0x61,0x6c,0x67])]==_0x67c129([0x45,0x53,0x32,0x35,0x36])||(_0xd60396=!0x1);}async function _0x14ecee(_0x569021,_0x640d,_0x32a570){const _0x626ee3=window[_0x67c129([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x67c129([0x66,0x72,0x6f,0x6d])](_0x5bdec6(_0x32a570),_0x32c7b8=>_0x32c7b8[_0x67c129([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa1fdc=new window[(_0x67c129([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x67c129([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x569021+_0x67c129([0x2e])+_0x640d),_0x5bbffe=window[_0x67c129([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x67c129([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5bbffe)return;const _0x5e660b=await _0x5bbffe[_0x67c129([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x67c129([0x6a,0x77,0x6b]),_0x53bd8e,{[_0x67c129([0x6e,0x61,0x6d,0x65])]:_0x67c129([0x45,0x43,0x44,0x53,0x41]),[_0x67c129([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x67c129([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x67c129([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5bbffe[_0x67c129([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x67c129([0x6e,0x61,0x6d,0x65])]:_0x67c129([0x45,0x43,0x44,0x53,0x41]),[_0x67c129([0x68,0x61,0x73,0x68])]:{[_0x67c129([0x6e,0x61,0x6d,0x65])]:_0x67c129([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e660b,_0x626ee3,_0xa1fdc)||(_0xd60396=!0x1);}}function _0x4e2520(_0x204921){return _0x204921[_0x67c129([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x67c129([0x65,0x79]))?JSON[_0x67c129([0x70,0x61,0x72,0x73,0x65])](_0x5bdec6(_0x204921)):null;}function _0x5bdec6(_0x55726a){return window[_0x67c129([0x61,0x74,0x6f,0x62])](_0x55726a[_0x67c129([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x67c129([0x2b]))[_0x67c129([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x67c129([0x2f])));}function _0x4a4cca(_0x2ce78e){let _0xfbbd10=0x1505;function _0x2cf51e(_0x30bb30){for(let _0x46e903=0x0;_0x46e903<_0x30bb30[_0x67c129([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46e903++){const _0x4afb5a=_0x30bb30[_0x67c129([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46e903);_0xfbbd10=(_0xfbbd10<<0x5)+_0xfbbd10+_0x4afb5a,_0xfbbd10&=_0xfbbd10;}}function _0x4851b7(_0x6e7e5b){Array[_0x67c129([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6e7e5b)?_0x6e7e5b[_0x67c129([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4851b7):_0x6e7e5b&&typeof _0x6e7e5b==_0x67c129([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x67c129([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6e7e5b)[_0x67c129([0x73,0x6f,0x72,0x74])]()[_0x67c129([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d348b,_0x27bcf7])=>{_0x2cf51e(_0x4d348b),_0x4851b7(_0x27bcf7);}):_0x2cf51e(window[_0x67c129([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6e7e5b));}return _0x4851b7(_0x2ce78e),_0xfbbd10>>>0x0;}function _0x43a3b6(_0x62da96){return _0x62da96[_0x67c129([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x67c129([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x67c129([0x30]));}function _0x504a4b(_0x3b5aed){return _0x3b5aed[_0x67c129([0x73,0x70,0x6c,0x69,0x74])]('')[_0x67c129([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x67c129([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c63ea(){}function _0x67c129(_0x1cae67){return _0x1cae67['map'](_0x21e90d=>String['fromCharCode'](_0x21e90d))['join']('');}_0x136e71(await _0x512ef6());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x4dc875,{outlineDefinitions:_0x127fae,outlineChanges:_0x263667}){this['_currentOutlineDefinitions']=_0x127fae,this['view']['sync'](_0x263667);}['_setActiveViewItem'](_0x28e12a){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x28e12a]&&(this['view']['activeItemIndex']=_0x28e12a);}['_handleItemSelected'](_0x4c6a4d){const _0x8e6526=this['_currentOutlineDefinitions'][_0x4c6a4d]['modelElement'];this['editor']['model']['change'](_0x1db0ef=>{_0x1db0ef['setSelection'](_0x8e6526,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x4c6a4d);}['_updateActiveDefinitionOnViewportChange'](){const _0x3b3b1f=this['editor'];let _0x5b490c;for(const _0x50ac88 of _0x3b3b1f['model']['document']['getRootNames']()){const _0x4d5ee3=_0x3b3b1f['editing']['view']['getDomRoot'](_0x50ac88),_0x13879d=_0x4d5ee3&&new _0x41e945(_0x4d5ee3)['getVisible']();if(_0x13879d){const _0x5a74e7=new _0x41e945(_0x14d8f4['window'])['getIntersection'](_0x13879d);_0x5a74e7&&(_0x5b490c=_0x5a74e7['top']+0.25*_0x5a74e7['height']);}}if(void 0x0===_0x5b490c)return;const _0x2aa2e5=k(_0x3b3b1f['editing'],this['_currentOutlineDefinitions'],_0x5b490c);_0x2aa2e5?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x2aa2e5)):this['_setActiveViewItem'](-0x1);}}function k(_0x1099ce,_0x120384,_0x271f73,_0x2cf977=0x0,_0xaefd0=_0x120384['length']-0x1){const _0x4f8ac8=Math['floor'](_0x2cf977+(_0xaefd0-_0x2cf977)/0x2);if(_0xaefd0>=_0x2cf977){const _0xa82c01=_0x120384[_0x4f8ac8],_0x532549=_0x1099ce['mapper']['toViewElement'](_0xa82c01['modelElement']);if(!_0x532549)return null;const _0x429d4a=_0x1099ce['view']['domConverter']['mapViewToDom'](_0x532549);return new _0x41e945(_0x429d4a)['bottom']>_0x271f73?k(_0x1099ce,_0x120384,_0x271f73,_0x2cf977,_0x4f8ac8-0x1):k(_0x1099ce,_0x120384,_0x271f73,_0x4f8ac8+0x1,_0xaefd0);}return _0x4f8ac8<0x0?null:_0x120384[_0x4f8ac8];}class K extends _0x322ba6{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,x];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30af51=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56c093;for(const _0x1b0225 in _0x30af51){const _0x4bfe27=_0x1b0225,_0x2f9090=_0x30af51[_0x4bfe27];if('documentOutlineLicenseKeyValid'==_0x2f9090||'documentOutlineLicenseKeyInvalid'==_0x2f9090||'documentOutlineLicenseKeyExpired'==_0x2f9090||'documentOutlineLicenseKeyDomainLimit'==_0x2f9090||'documentOutlineLicenseKeyNotAllowed'==_0x2f9090||'documentOutlineLicenseKeyEvaluationLimit'==_0x2f9090||'documentOutlineLicenseKeyUsageLimit'==_0x2f9090){delete _0x30af51[_0x4bfe27],_0x56c093=_0x2f9090,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x56c093&&_0x30af51['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x56c093&&_0x30af51['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x56c093&&_0x30af51['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x56c093&&_0x30af51['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x56c093&&_0x30af51['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x56c093&&_0x30af51['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x444317{['execute'](){this['editor']['model']['change'](_0x63517b=>{this['editor']['model']['insertObject'](_0x63517b['createElement']('tableOfContents'));});}['refresh'](){const _0x2ee47c=this['editor']['model'],_0x10edd2=_0x2ee47c['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x10edd2&&_0x2ee47c['schema']['findAllowedParent'](_0x10edd2,'tableOfContents'));}}class N extends _0x322ba6{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x13059d=this['editor'];if(_0x13059d['config']['get']('headingId.modelAttributeName'))return;(function(_0x1feae7){const _0x3b3573=new Map();if(_0x1feae7)return _0x1feae7['forEach'](_0x57519e=>{'paragraph'!==_0x57519e['model']&&_0x3b3573['set'](_0x57519e['view'],_0x57519e['model']);}),_0x3b3573['get']('h1')||_0x3b3573['set']('h1','heading1'),_0x3b3573;return _0x3b3573;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x239409,_0x6f04e6)=>{this['_customUpcastHeadingsConversion'](_0x6f04e6),this['_customDataDowncastHeadingsConversion'](_0x239409),_0x13059d['model']['schema']['isRegistered'](_0x239409)&&_0x13059d['model']['schema']['extend'](_0x239409,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x34353b){this['editor']['conversion']['for']('upcast')['add'](_0x49de6f=>_0x49de6f['on']('element:'+_0x34353b,(_0x47a39a,_0x5bcc72,_0x4c1065)=>{const {consumable:_0x36ea1c,writer:_0x585eea}=_0x4c1065,_0xf6843b=_0x5bcc72['viewItem']['getAttribute']('id'),_0x1b918a=_0x5bcc72['modelRange']['getContainedElement']();if(_0x1b918a)return _0xf6843b&&_0xf6843b['length']||_0x1b918a['hasAttribute']('headingId')?void(_0x36ea1c['consume'](_0x5bcc72['viewItem'],{'attributes':['id']})&&_0x585eea['setAttribute']('headingId',_0xf6843b,_0x1b918a)):(_0x36ea1c['consume'](_0x5bcc72['viewItem'],{'attributes':['id']}),void _0x585eea['setAttribute']('headingId',_0x435630(),_0x1b918a));},{'priority':_0x101284['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x108514){this['editor']['conversion']['for']('downcast')['add'](_0xa2775=>_0xa2775['on']('attribute:headingId:'+_0x108514,(_0x18edc7,_0x539721,_0x58574b)=>{if(!_0x58574b['consumable']['consume'](_0x539721['item'],_0x18edc7['name']))return;const _0x586a43=_0x539721['item']['getAttribute']('headingId'),_0x5027bc=_0x58574b['mapper']['toViewElement'](_0x539721['item']);_0x58574b['writer']['setAttribute']('id',_0x586a43,_0x5027bc);}));}['_registerHeadingIdAttributePostfixer'](){const _0xf7294b=this['editor'],_0x422584=new Set(),_0x2a79d3=new Set();function _0x40cef3(_0x3df49a,_0x6f537d){const _0x266167=_0x435630();return _0x2a79d3['add'](_0x266167),_0x3df49a['setAttribute']('headingId',_0x266167,_0x6f537d),_0x266167;}function _0x4ced00(_0x13aac5,_0x490897){_0x13aac5['removeAttribute']('headingId',_0x490897);}_0xf7294b['model']['document']['registerPostFixer'](_0x9a9062=>{const _0x3bcf18=_0xf7294b['model']['document']['differ']['getChanges']();let _0x408eab=!0x1;for(const _0x4e43de of _0x3bcf18)if('insert'==_0x4e43de['type']&&_0x4e43de['name']){if(T(_0x4e43de['name'])){const _0x1e862b=_0x4e43de['attributes']['get']('headingId');'string'==typeof _0x1e862b?_0x422584['has'](_0x1e862b)?(_0x40cef3(_0x9a9062,_0x4e43de['position']['nodeAfter']),_0x408eab=!0x0):_0x2a79d3['add'](_0x1e862b):(_0x40cef3(_0x9a9062,_0x4e43de['position']['nodeAfter']),_0x408eab=!0x0);}else'string'==typeof _0x4e43de['attributes']['get']('headingId')&&(_0x4ced00(_0x9a9062,_0x4e43de['position']['nodeAfter']),_0x408eab=!0x0);}else{if('remove'==_0x4e43de['type']){const _0xc07bd2=_0x4e43de['attributes']['get']('headingId');'string'==typeof _0xc07bd2&&_0x422584['delete'](_0xc07bd2);}}return _0x408eab;}),_0xf7294b['model']['document']['on']('change',()=>{_0x2a79d3['forEach'](_0x37a6f6=>_0x422584['add'](_0x37a6f6)),_0x2a79d3['clear']();});}}function T(_0x273929){return!!_0x273929['match'](/heading\d/);}class A extends _0x322ba6{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x34ae64,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x189033){super(_0x189033),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x3e1f36=this['editor'],_0x45f6c0=_0x3e1f36['editing']['view']['document'];_0x3e1f36['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x3e1f36['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x45f6c0,'click',(_0x2c66c3,_0x232d87)=>{if(!_0x232d87['target'])return;const _0x4140ad=_0x232d87['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x4140ad)&&(_0x232d87['domEvent']['preventDefault'](),_0x2c66c3['stop'](),this['_handleScrollToHeading'](_0x4140ad));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x3e1f36['commands']['add']('insertTableOfContents',new E(_0x3e1f36)),(_0x3e1f36['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x574333,_0x2bb9c3)=>{this['_currentOutlineDefinitions']=_0x2bb9c3['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x3e1f36['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0x55eda2){const _0x11bb86=_0x5d4aeb([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]),_0x88aa23=0x6b9b05fd,_0x793bf2=0x6b9c80d5^_0x88aa23,_0x5ba062=window[_0x5d4aeb([0x44,0x61,0x74,0x65])][_0x5d4aeb([0x6e,0x6f,0x77])](),_0x54a284=_0x55eda2[_0x5d4aeb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x381e53=new window[(_0x5d4aeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e4103=>{_0x54a284[_0x5d4aeb([0x6f,0x6e,0x63,0x65])](_0x5d4aeb([0x72,0x65,0x61,0x64,0x79]),_0x3e4103);}),_0x2a6391={[_0x5d4aeb([0x6b,0x74,0x79])]:_0x5d4aeb([0x45,0x43]),[_0x5d4aeb([0x75,0x73,0x65])]:_0x5d4aeb([0x73,0x69,0x67]),[_0x5d4aeb([0x63,0x72,0x76])]:_0x5d4aeb([0x50,0x2d,0x32,0x35,0x36]),[_0x5d4aeb([0x78])]:_0x5d4aeb([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]),[_0x5d4aeb([0x79])]:_0x5d4aeb([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]),[_0x5d4aeb([0x61,0x6c,0x67])]:_0x5d4aeb([0x45,0x53,0x32,0x35,0x36])},_0x5c61f5=_0x54a284[_0x5d4aeb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d4aeb([0x67,0x65,0x74])](_0x5d4aeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x309eea(){let _0x69d43d,_0x334383=null,_0x291f1e=null;try{if(_0x5c61f5==_0x5d4aeb([0x47,0x50,0x4c]))return _0x5d4aeb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x69d43d=_0x9c929d(),!_0x69d43d)return _0x5d4aeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x69d43d[_0x5d4aeb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x291f1e=_0x3e68e9(_0x69d43d[_0x5d4aeb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x69d43d[_0x5d4aeb([0x6a,0x74,0x69])])),await _0x42041c()?_0xac1647()?_0x2cdf70()?_0x5d4aeb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c5e29()?(_0x69d43d[_0x5d4aeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d4aeb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x334383=_0x523e2b(_0x5d4aeb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47ce61()):_0x5d4aeb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d4aeb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d4aeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d4aeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cdf70(){const _0x45b1c7=[_0x5d4aeb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d4aeb([0x74,0x72,0x69,0x61,0x6c])][_0x5d4aeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x69d43d[_0x5d4aeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ba062/0x3e8:0xe10*_0x793bf2;return _0x69d43d[_0x5d4aeb([0x65,0x78,0x70])]<_0x45b1c7;}function _0xac1647(){const _0x16c2ba=_0x69d43d[_0x5d4aeb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x16c2ba&&(!!_0x16c2ba[_0x5d4aeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d4aeb([0x2a]))||(!!_0x16c2ba[_0x5d4aeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d4aeb([0x54,0x4f,0x43]))||(!!_0x16c2ba[_0x5d4aeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d4aeb([0x50,0x50]))||!(!_0x16c2ba[_0x5d4aeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d4aeb([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x35fd24()))));}function _0x2c5e29(){const _0x53c15c=_0x69d43d[_0x5d4aeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53c15c||0x0==_0x53c15c[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c9744}=new URL(window[_0x5d4aeb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53c15c[_0x5d4aeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9744))return!0x0;const _0x5e4bd9=_0x1c9744[_0x5d4aeb([0x73,0x70,0x6c,0x69,0x74])](_0x5d4aeb([0x2e]));return _0x53c15c[_0x5d4aeb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d8c7e=>_0x2d8c7e[_0x5d4aeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d4aeb([0x2a])))[_0x5d4aeb([0x6d,0x61,0x70])](_0x1b2c90=>_0x1b2c90[_0x5d4aeb([0x73,0x70,0x6c,0x69,0x74])](_0x5d4aeb([0x2e])))[_0x5d4aeb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x164bbf=>_0x164bbf[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e4bd9[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d4aeb([0x6d,0x61,0x70])](_0x5a1cdf=>Array(_0x5e4bd9[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a1cdf[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d4aeb([0x66,0x69,0x6c,0x6c])](_0x5a1cdf[0x0]===_0x5d4aeb([0x2a])?_0x5d4aeb([0x2a]):'')[_0x5d4aeb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a1cdf))[_0x5d4aeb([0x73,0x6f,0x6d,0x65])](_0x5e3276=>_0x5e4bd9[_0x5d4aeb([0x65,0x76,0x65,0x72,0x79])]((_0x3e6e3f,_0x4eb95e)=>_0x5e3276[_0x4eb95e]===_0x3e6e3f||_0x5e3276[_0x4eb95e]===_0x5d4aeb([0x2a])));}function _0x47ce61(){return _0x334383&&_0x291f1e?new window[(_0x5d4aeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x381ba5,_0x58bb9d)=>{_0x334383[_0x5d4aeb([0x74,0x68,0x65,0x6e])](_0x381ba5,_0x58bb9d),_0x291f1e[_0x5d4aeb([0x74,0x68,0x65,0x6e])](_0x237b55=>{_0x237b55!=_0x5d4aeb([0x56,0x61,0x6c,0x69,0x64])&&_0x381ba5(_0x237b55);},_0x58bb9d);}):_0x334383||_0x291f1e||_0x5d4aeb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e68e9(_0x356093,_0x3e9ae0){return new window[(_0x5d4aeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xab0c88=>{if(_0x2c0ce1())return _0xab0c88(_0x5d4aeb([0x56,0x61,0x6c,0x69,0x64]));_0x41575e(),_0x54a284[_0x5d4aeb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d4aeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51f64e=!0x1;const _0x45a04b=_0x435630();function _0x595e54(_0x4a2d07){return!!_0x4a2d07&&(typeof _0x4a2d07===_0x5d4aeb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a2d07===_0x5d4aeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a2d07[_0x5d4aeb([0x74,0x68,0x65,0x6e])]===_0x5d4aeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a2d07[_0x5d4aeb([0x63,0x61,0x74,0x63,0x68])]===_0x5d4aeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e9ba6(_0x3da4fd){_0x3bfa15(_0x3da4fd)[_0x5d4aeb([0x74,0x68,0x65,0x6e])](_0x13f1e5=>{if(!_0x13f1e5||_0x13f1e5[_0x5d4aeb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d4aeb([0x6f,0x6b]))return _0x5d4aeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b126b(_0x2e7c89(_0x45a04b+_0x3e9ae0))!=_0x13f1e5[_0x5d4aeb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d4aeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d4aeb([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d4aeb([0x74,0x68,0x65,0x6e])](_0x50847a=>(_0x4d311d(),_0x50847a),()=>{const _0x32d55d=_0x49c3fc();return null==_0x32d55d?(_0x4d311d(),_0x5d4aeb([0x56,0x61,0x6c,0x69,0x64])):_0x5d4aeb(_0x5ba062-_0x32d55d>(0x4f9781fd^_0x88aa23)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d4aeb([0x74,0x68,0x65,0x6e])](_0xab0c88)[_0x5d4aeb([0x63,0x61,0x74,0x63,0x68])](()=>{_0xab0c88(_0x5d4aeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1df49c=0x6badeb7d^_0x88aa23;function _0x4d311d(){const _0x51937c=_0x5d4aeb([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b126b(_0x2e7c89(_0x356093)),_0x478743=_0xdf3932(_0x1b126b(window[_0x5d4aeb([0x4d,0x61,0x74,0x68])][_0x5d4aeb([0x63,0x65,0x69,0x6c])](_0x5ba062/_0x1df49c)));window[_0x5d4aeb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d4aeb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51937c,_0x478743);}function _0x49c3fc(){const _0x5a4146=_0x5d4aeb([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b126b(_0x2e7c89(_0x356093)),_0x54dcb1=window[_0x5d4aeb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d4aeb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a4146);return _0x54dcb1?window[_0x5d4aeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdf3932(_0x54dcb1),0x10)*_0x1df49c:null;}function _0x3bfa15(_0x380da9){return new window[(_0x5d4aeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10ea18,_0x17d825)=>{_0x380da9[_0x5d4aeb([0x74,0x68,0x65,0x6e])](_0x10ea18,_0x17d825),window[_0x5d4aeb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17d825,0x6b9ad13d^_0x88aa23);});}}_0x54a284[_0x5d4aeb([0x6f,0x6e])](_0x5d4aeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34719b,_0x5d9cbe)=>{if(_0x5d9cbe[0x0]!=_0x356093)return _0xab0c88(_0x5d4aeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d9cbe[0x1]={..._0x5d9cbe[0x1],[_0x5d4aeb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45a04b};},{[_0x5d4aeb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d4aeb([0x68,0x69,0x67,0x68])}),_0x54a284[_0x5d4aeb([0x6f,0x6e])](_0x5d4aeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc495bb=>{_0x595e54(_0xc495bb[_0x5d4aeb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51f64e=!0x0,_0x4e9ba6(_0xc495bb[_0x5d4aeb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d4aeb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d4aeb([0x6c,0x6f,0x77])}),_0x381e53[_0x5d4aeb([0x74,0x68,0x65,0x6e])](()=>{_0x51f64e||_0xab0c88(_0x5d4aeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c0ce1(){return _0x54a284[_0x5d4aeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d4aeb([0x76,0x69,0x65,0x77])][_0x5d4aeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d4aeb([0x61,0x75,0x74,0x6f]);}function _0x41575e(){_0x54a284[_0x5d4aeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d4aeb([0x76,0x69,0x65,0x77])][_0x5d4aeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d4aeb([0x61,0x75,0x74,0x6f]);}}function _0x523e2b(_0x253e37){const _0x19676e=[new window[(_0x5d4aeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e900e=>setTimeout(_0x5e900e,0x6b923b31^_0x88aa23)),_0x381e53[_0x5d4aeb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d4aeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x302557=>{let _0x21e7b5=0x0;_0x54a284[_0x5d4aeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d4aeb([0x6f,0x6e])](_0x5d4aeb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1eb166,_0x54ba13)=>{_0x54ba13[0x0][_0x5d4aeb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21e7b5++,_0x21e7b5==(0x6b9b0015^_0x88aa23)&&(_0x302557(),_0x1eb166[_0x5d4aeb([0x6f,0x66,0x66])]());});}))];return window[_0x5d4aeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d4aeb([0x72,0x61,0x63,0x65])](_0x19676e)[_0x5d4aeb([0x74,0x68,0x65,0x6e])](()=>_0x253e37);}async function _0x2fc3f0(){await _0x381e53,_0x54a284[_0x5d4aeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d4aeb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ffb79,_0x54a284[_0x5d4aeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d4aeb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ffb79,_0x54a284[_0x5d4aeb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d4aeb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35fd24(){return window[_0x5d4aeb([0x67,0x6c,0x6f,0x62])]&&window[_0x5d4aeb([0x67,0x6c,0x6f,0x62])][_0x5d4aeb([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x501463(_0x273f0e){const _0x4c7638=_0xb997a2();_0x54a284[_0x4c7638]=_0x5d4aeb([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])+_0x273f0e,_0x273f0e!=_0x5d4aeb([0x56,0x61,0x6c,0x69,0x64])&&_0x2fc3f0();}function _0xb997a2(){const _0x220f03=window[_0x5d4aeb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d4aeb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d4aeb([0x6e,0x6f,0x77])]())[_0x5d4aeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d4aeb([0x2e]),'');let _0x21de9d=_0x5d4aeb([0x6d]);for(let _0xcd3b72=0x0;_0xcd3b72<_0x220f03[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcd3b72+=0x2){let _0x1afc92=window[_0x5d4aeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x220f03[_0x5d4aeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcd3b72,_0xcd3b72+0x2));_0x1afc92>=_0x11bb86[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1afc92-=_0x11bb86[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21de9d+=_0x11bb86[_0x1afc92];}return _0x21de9d;}function _0x9c929d(){const _0x2ca498=_0x5c61f5[_0x5d4aeb([0x73,0x70,0x6c,0x69,0x74])](_0x5d4aeb([0x2e]));if(0x3!=_0x2ca498[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e0efa(_0x2ca498[0x1]);function _0x1e0efa(_0x36ea9c){const _0xfd0eb=_0x213813(_0x36ea9c);return _0xfd0eb&&_0x1ac753()?_0xfd0eb:null;function _0x1ac753(){const _0x6029ce=_0xfd0eb[_0x5d4aeb([0x6a,0x74,0x69])],_0x1a6af8=window[_0x5d4aeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6029ce[_0x5d4aeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6029ce[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f59ac={..._0xfd0eb,[_0x5d4aeb([0x6a,0x74,0x69])]:_0x6029ce[_0x5d4aeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6029ce[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f59ac[_0x5d4aeb([0x76,0x63])],_0x2e7c89(_0x4f59ac)==_0x1a6af8;}}}async function _0x42041c(){let _0x4d2a78=!0x0;try{const _0x5a6076=_0x5c61f5[_0x5d4aeb([0x73,0x70,0x6c,0x69,0x74])](_0x5d4aeb([0x2e])),[_0x223af2,_0xf3c7bd,_0x1e9b45]=_0x5a6076;return _0x4bd965(_0x223af2),await _0x301de2(_0x223af2,_0xf3c7bd,_0x1e9b45),_0x4d2a78;}catch{return!0x1;}function _0x4bd965(_0x3fd481){const _0x2db01c=_0x213813(_0x3fd481);_0x2db01c&&_0x2db01c[_0x5d4aeb([0x61,0x6c,0x67])]==_0x5d4aeb([0x45,0x53,0x32,0x35,0x36])||(_0x4d2a78=!0x1);}async function _0x301de2(_0x307032,_0x27a14a,_0x4374b3){const _0x5f54b9=window[_0x5d4aeb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d4aeb([0x66,0x72,0x6f,0x6d])](_0x2415dd(_0x4374b3),_0x41c426=>_0x41c426[_0x5d4aeb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1380ca=new window[(_0x5d4aeb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d4aeb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x307032+_0x5d4aeb([0x2e])+_0x27a14a),_0x57ca7d=window[_0x5d4aeb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d4aeb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57ca7d)return;const _0x1bea2b=await _0x57ca7d[_0x5d4aeb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d4aeb([0x6a,0x77,0x6b]),_0x2a6391,{[_0x5d4aeb([0x6e,0x61,0x6d,0x65])]:_0x5d4aeb([0x45,0x43,0x44,0x53,0x41]),[_0x5d4aeb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d4aeb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d4aeb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57ca7d[_0x5d4aeb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d4aeb([0x6e,0x61,0x6d,0x65])]:_0x5d4aeb([0x45,0x43,0x44,0x53,0x41]),[_0x5d4aeb([0x68,0x61,0x73,0x68])]:{[_0x5d4aeb([0x6e,0x61,0x6d,0x65])]:_0x5d4aeb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1bea2b,_0x5f54b9,_0x1380ca)||(_0x4d2a78=!0x1);}}function _0x213813(_0x51878e){return _0x51878e[_0x5d4aeb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d4aeb([0x65,0x79]))?JSON[_0x5d4aeb([0x70,0x61,0x72,0x73,0x65])](_0x2415dd(_0x51878e)):null;}function _0x2415dd(_0x404f12){return window[_0x5d4aeb([0x61,0x74,0x6f,0x62])](_0x404f12[_0x5d4aeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d4aeb([0x2b]))[_0x5d4aeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d4aeb([0x2f])));}function _0x2e7c89(_0x22d9aa){let _0x446e81=0x1505;function _0x521942(_0x378afd){for(let _0x4e7167=0x0;_0x4e7167<_0x378afd[_0x5d4aeb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e7167++){const _0x2cd9a1=_0x378afd[_0x5d4aeb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e7167);_0x446e81=(_0x446e81<<0x5)+_0x446e81+_0x2cd9a1,_0x446e81&=_0x446e81;}}function _0x30bcae(_0x46e354){Array[_0x5d4aeb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46e354)?_0x46e354[_0x5d4aeb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30bcae):_0x46e354&&typeof _0x46e354==_0x5d4aeb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d4aeb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46e354)[_0x5d4aeb([0x73,0x6f,0x72,0x74])]()[_0x5d4aeb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ac81d,_0x485a42])=>{_0x521942(_0x4ac81d),_0x30bcae(_0x485a42);}):_0x521942(window[_0x5d4aeb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46e354));}return _0x30bcae(_0x22d9aa),_0x446e81>>>0x0;}function _0x1b126b(_0x3d0acf){return _0x3d0acf[_0x5d4aeb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d4aeb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d4aeb([0x30]));}function _0xdf3932(_0x50e74e){return _0x50e74e[_0x5d4aeb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d4aeb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d4aeb([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ffb79(){}function _0x5d4aeb(_0x57e4bf){return _0x57e4bf['map'](_0x396b57=>String['fromCharCode'](_0x396b57))['join']('');}_0x501463(await _0x309eea());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x47021e=>{'$graveyard'!==_0x47021e['rootName']&&this['editor']['editing']['reconvertItem'](_0x47021e);});}['_trackNewToCElements'](){for(const _0x4ed62e of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x4ed62e['type']||'tableOfContents'!==_0x4ed62e['name'])return;this['_tableOfContentsElements']['add'](_0x4ed62e['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x455862=this['editor']['conversion'];_0x455862['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x455862['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x123af7,{writer:_0x5b3de7})=>this['_createTableOfContents'](_0x5b3de7,!0x0)}),_0x455862['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x197a42,{writer:_0xe27944})=>{this['_tableOfContentsElements']['add'](_0x197a42);const _0x36b4d0=this['_createTableOfContents'](_0xe27944);return _0x144166(_0x36b4d0,_0xe27944,{'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'](_0x15d54a,_0x5bf642=!0x1){const {locale:_0x19562e}=this['editor'],_0x188072=_0x15d54a['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x5bf642&&{'data-table-of-contents-label':C(_0x19562e,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x5bf642&&_0x15d54a['insert'](_0x15d54a['createPositionAt'](_0x188072,'end'),_0x15d54a['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x15d54a['createText'](C(_0x19562e,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x9cba=_0x5bf642?'':'['+C(_0x19562e,'Empty\x20heading')+']';let _0x31d1a2=_0x188072;return this['_currentOutlineDefinitions']['forEach']((_0x3178de,_0x1b836d,_0x29dbf2)=>{const _0x22b692=this['editor']['model']['hasContent'](_0x3178de['modelElement'],{'ignoreWhitespaces':!0x0}),_0x2544f5=_0x22b692?_0x3178de['text']:_0x9cba,_0x78f771=_0x3178de['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x57f39a=_0x15d54a['createContainerElement']('a',{'href':'#'+_0x78f771,...!_0x5bf642&&{'tabindex':'-1'}},[_0x15d54a['createText'](_0x2544f5)]),_0x202e4e=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x15d54a['setCustomProperty']('tableOfContentsHeadingIndex',_0x1b836d,_0x57f39a);const _0x3c2e80=_0x15d54a['createContainerElement']('li',null,[_0x22b692||!_0x5bf642&&_0x202e4e?_0x57f39a:_0x15d54a['createText']('')]),_0x1f1f35=_0x1b836d?_0x29dbf2[_0x1b836d-0x1]['level']:0x0,_0x182805=Math['abs'](_0x3178de['level']-_0x1f1f35);if(_0x3178de['level']>_0x1f1f35){const _0x443fc9=P(_0x3c2e80,_0x182805,_0x15d54a);_0x15d54a['insert'](_0x15d54a['createPositionAt'](_0x31d1a2,'end'),_0x443fc9);}else{const _0x3acc83=function(_0x482b81,_0xaf5282){return _0x482b81['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x3697cf=>_0x3697cf['is']('element','ol'))[_0xaf5282];}(_0x31d1a2,_0x182805);_0x15d54a['insert'](_0x15d54a['createPositionAt'](_0x3acc83,'end'),_0x3c2e80);}_0x31d1a2=_0x3c2e80;}),_0x188072;}['_handleScrollToHeading'](_0x22de2e){const _0x56da0b=this['_currentOutlineDefinitions'][_0x22de2e]['modelElement'];this['editor']['model']['change'](_0x5421b7=>{_0x5421b7['setSelection'](_0x56da0b,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x363d91,_0x478d08)=>{const _0x35bb5c=_0x478d08['mapper'],_0x4a289e=_0x35bb5c['findMappedViewAncestor'](_0x478d08['viewPosition']),_0x191e1b=_0x35bb5c['toModelElement'](_0x4a289e);_0x191e1b['is']('element','tableOfContents')&&(_0x478d08['modelPosition']=this['editor']['model']['createPositionAt'](_0x191e1b,0x0),_0x363d91['stop']());};}}function P(_0x1383f8,_0x325eec,_0x30609c){return 0x1===_0x325eec?_0x30609c['createContainerElement']('ol',null,[_0x1383f8]):_0x30609c['createContainerElement']('ol',null,[_0x30609c['createContainerElement']('li',null,[P(_0x1383f8,_0x325eec-0x1,_0x30609c)])]);}class D extends _0x322ba6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5ce1c3=this['editor'];_0x5ce1c3['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x571804=this['_createButton'](_0x5757ed);return _0x571804['tooltip']=!0x0,_0x571804;}),_0x5ce1c3['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x5be2b3)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24389e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57ad00;for(const _0x52a5eb in _0x24389e){const _0x2d3897=_0x52a5eb,_0x5767d8=_0x24389e[_0x2d3897];if('tableOfContentsLicenseKeyValid'==_0x5767d8||'tableOfContentsLicenseKeyInvalid'==_0x5767d8||'tableOfContentsLicenseKeyExpired'==_0x5767d8||'tableOfContentsLicenseKeyDomainLimit'==_0x5767d8||'tableOfContentsLicenseKeyNotAllowed'==_0x5767d8||'tableOfContentsLicenseKeyEvaluationLimit'==_0x5767d8||'tableOfContentsLicenseKeyUsageLimit'==_0x5767d8){delete _0x24389e[_0x2d3897],_0x57ad00=_0x5767d8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x57ad00&&_0x24389e['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x57ad00&&_0x24389e['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x57ad00&&_0x24389e['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x57ad00&&_0x24389e['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x57ad00&&_0x24389e['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x57ad00&&_0x24389e['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x3ca41c){const _0x432a40=this['editor'],_0x37f918=_0x432a40['locale'],_0x57a411=_0x432a40['commands']['get']('insertTableOfContents'),_0x288625=new _0x3ca41c(_0x37f918);return _0x288625['set']({'label':C(_0x37f918,'Table\x20of\x20contents'),'icon':_0x237d1d}),_0x288625['bind']('isEnabled')['to'](_0x57a411,'isEnabled'),this['listenTo'](_0x288625,'execute',()=>{_0x432a40['execute']('insertTableOfContents'),_0x432a40['editing']['view']['focus']();}),_0x288625;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x322ba6{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,x 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.0.0-alpha.2",
3
+ "version": "48.0.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.0.0-alpha.2",
25
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.2",
26
- "@ckeditor/ckeditor5-heading": "48.0.0-alpha.2",
27
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.2",
28
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.2",
29
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.2",
30
- "@ckeditor/ckeditor5-widget": "48.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.4",
25
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.4",
26
+ "@ckeditor/ckeditor5-heading": "48.0.0-alpha.4",
27
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.4",
28
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.4",
29
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.4",
30
+ "@ckeditor/ckeditor5-widget": "48.0.0-alpha.4",
31
31
  "es-toolkit": "1.45.1"
32
32
  },
33
33
  "files": [